978576ac7c764aa7d374ec76ddcaf2ef538fb6bb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-30 Pedro Alves <pedro@palves.net>
2
3 * blockframe.c (block_innermost_frame): Use get_selected_frame.
4 * frame.c
5 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6 Use save_selected_frame. Save language as well.
7 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8 Use restore_selected_frame, and restore language as well.
9 (selected_frame_id, selected_frame_level): New.
10 (selected_frame): Update comments.
11 (save_selected_frame, restore_selected_frame): New.
12 (get_selected_frame): Use lookup_selected_frame.
13 (get_selected_frame_if_set): Delete.
14 (select_frame): Record selected_frame_level and selected_frame_id.
15 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
16 fields.
17 (get_selected_frame): Make 'message' parameter optional.
18 (get_selected_frame_if_set): Delete declaration.
19 (select_frame): Update comments.
20 (save_selected_frame, restore_selected_frame)
21 (lookup_selected_frame): Declare.
22 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
23 * infrun.c (struct infcall_control_state) <selected_frame_level>:
24 New field.
25 (save_infcall_control_state): Use save_selected_frame.
26 (restore_selected_frame): Delete.
27 (restore_infcall_control_state): Use restore_selected_frame.
28 * stack.c (select_frame_command_core, frame_command_core): Use
29 get_selected_frame.
30 * thread.c (restore_selected_frame): Rename to ...
31 (lookup_selected_frame): ... this and make extern. Select the
32 current frame if the frame level is -1.
33 (scoped_restore_current_thread::restore): Also restore the
34 language.
35 (scoped_restore_current_thread::~scoped_restore_current_thread):
36 Don't try/catch.
37 (scoped_restore_current_thread::scoped_restore_current_thread):
38 Save the language as well. Use save_selected_frame.
39
40 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
43 documentation.
44 * gdbarch.h: Re-generate.
45
46 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
49 parameter.
50 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
51 Likewise.
52 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
53 Likewise.
54 * arch-utils.c (default_displaced_step_hw_singlestep):
55 Likewise.
56 * arch-utils.h (default_displaced_step_hw_singlestep):
57 Likewise.
58 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
59 Likewise.
60 * s390-tdep.c (s390_displaced_step_hw_singlestep):
61 Likewise.
62 * gdbarch.c: Re-generate.
63 * gdbarch.h: Re-generate.
64 * infrun.c (resume_1): Adjust.
65
66 2020-10-29 Tom Tromey <tom@tromey.com>
67
68 * progspace.c (program_space::~program_space): Don't call
69 exec_close.
70
71 2020-10-29 Tom Tromey <tom@tromey.com>
72
73 * exec.c (exec_target::close): Don't change current program
74 space.
75
76 2020-10-29 Tom Tromey <tom@tromey.com>
77
78 * symfile.c (add_symbol_file_command): Update.
79 * exec.c (program_space::add_target_sections): Rename.
80 * symfile-mem.c (symbol_file_add_from_memory): Update.
81 * progspace.h (struct program_space) <add_target_sections>:
82 Declare new overload.
83 * exec.h (add_target_sections_of_objfile): Don't declare.
84
85 2020-10-29 Tom Tromey <tom@tromey.com>
86
87 * solib.c (solib_map_sections): Update.
88 * exec.c (program_space::add_target_sections): Now a method.
89 (exec_file_attach): Update.
90 * exec.h (add_target_sections): Don't declare.
91 * progspace.h (struct program_space) <add_target_sections>:
92 Declare.
93
94 2020-10-29 Tom Tromey <tom@tromey.com>
95
96 * progspace.h (struct program_space) <remove_target_sections>:
97 Declare.
98 * exec.c (program_space::remove_target_sections): Now a method.
99 * exec.h (remove_target_sections): Don't declare.
100
101 2020-10-29 Tom Tromey <tom@tromey.com>
102
103 * inferior.c (delete_inferior): Update.
104 * progspace.c (program_space::empty): Rename from
105 program_space_empty_p. Return bool.
106 * progspace.h (struct program_space) <empty>: New method.
107 (program_space_empty_p): Don't declare.
108
109 2020-10-29 Tom Tromey <tom@tromey.com>
110
111 * progspace.c (program_space::~program_space): Don't call
112 clear_program_space_solib_cache.
113 (program_space::clear_solib_cache): Rename from
114 clear_solib_cache.
115 * solib.c (handle_solib_event): Update.
116 * progspace.h (struct program_space) <clear_solib_cache>: New
117 method.
118 (clear_program_space_solib_cache): Don't declare.
119
120 2020-10-29 Tom Tromey <tom@tromey.com>
121
122 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
123 * target.c (info_target_command): Update.
124 * symfile.c (syms_from_objfile_1, finish_new_objfile)
125 (symbol_file_clear, reread_symbols): Update.
126 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
127 * stabsread.c (scan_file_globals): Update.
128 * solib.c (update_solib_list): Update.
129 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
130 (svr4_fetch_objfile_link_map, enable_break)
131 (svr4_relocate_main_executable)
132 (svr4_iterate_over_objfiles_in_search_order): Update.
133 * solib-frv.c (lm_base, enable_break)
134 (frv_relocate_main_executable): Update.
135 (main_got, frv_fdpic_find_canonical_descriptor): Update.
136 (frv_fetch_objfile_link_map): Update.
137 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
138 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
139 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
140 * remote.c (remote_target::get_offsets): Update.
141 (remote_target::start_remote)
142 (extended_remote_target::post_attach): Update.
143 * objfiles.c (entry_point_address_query): Update.
144 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
145 * minsyms.c (get_symbol_leading_char): Update.
146 * frame.c (inside_main_func): Update.
147 * progspace.h (symfile_objfile): Remove macro.
148
149 2020-10-29 Tom Tromey <tom@tromey.com>
150
151 * exec.c (exec_file_attach): Update.
152 * progspace.c (program_space::exec_close): Update.
153 * progspace.h (struct program_space) <ebfd>: Now a
154 gdb_bfd_ref_ptr.
155 <set_exec_bfd>: Change argument type.
156 <exec_bfd>: Update.
157
158 2020-10-29 Tom Tromey <tom@tromey.com>
159
160 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
161 * symfile.c (reread_symbols): Update.
162 * symfile-mem.c (add_symbol_file_from_memory_command)
163 (add_vsyscall_page): Update.
164 * source-cache.c (source_cache::get_plain_source_lines): Update.
165 * solib-svr4.c (find_program_interpreter, elf_locate_base)
166 (svr4_current_sos_direct, svr4_exec_displacement)
167 (svr4_relocate_main_executable): Update.
168 (svr4_iterate_over_objfiles_in_search_order): Update.
169 * solib-frv.c (enable_break2, enable_break): Update.
170 * solib-dsbt.c (lm_base, enable_break): Update.
171 * solib-darwin.c (find_program_interpreter)
172 (darwin_solib_create_inferior_hook): Update.
173 * sol-thread.c (rw_common, ps_pdmodel): Update.
174 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
175 * remote.c (compare_sections_command)
176 (remote_target::trace_set_readonly_regions): Update.
177 * remote-sim.c (get_sim_inferior_data)
178 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
179 (gdbsim_target_open, gdbsim_target::files_info): Update.
180 * exec.h (exec_bfd): Remove macro.
181 * progspace.c (initialize_progspace): Update.
182 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
183 Update.
184 * nto-procfs.c (nto_procfs_target::post_attach)
185 (nto_procfs_target::create_inferior): Update.
186 * maint.c (maintenance_info_sections): Update.
187 * linux-thread-db.c (thread_db_target::get_thread_local_address):
188 Update.
189 * infcmd.c (post_create_inferior): Update.
190 * gcore.c (default_gcore_arch, default_gcore_target): Update.
191 (objfile_find_memory_regions): Update.
192 * exec.c (validate_exec_file, exec_file_attach)
193 (exec_read_partial_read_only, print_section_info): Update.
194 * corelow.c (core_target_open): Update.
195 * corefile.c (reopen_exec_file, validate_files): Update.
196 * arm-tdep.c (gdb_print_insn_arm): Update.
197 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
198 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
199 methods.
200
201 2020-10-29 Tom Tromey <tom@tromey.com>
202
203 * progspace.h (current_target_sections): Remove macro.
204 * solib-svr4.c (scan_dyntag): Update.
205 * solib-dsbt.c (scan_dyntag): Update.
206 * exec.c (exec_target::close): Update.
207 (add_target_sections, add_target_sections_of_objfile)
208 (remove_target_sections, exec_target::get_section_table)
209 (exec_target::files_info, set_section_command)
210 (exec_set_section_address, exec_target::has_memory)
211 (exec_target::has_memory): Update.
212
213 2020-10-29 Tom Tromey <tom@tromey.com>
214
215 * source-cache.c (source_cache::get_plain_source_lines): Use
216 current_program_space.
217 * corefile.c (reopen_exec_file): Use current_program_space.
218 * exec.c (exec_file_attach): Use current_program_space.
219 * exec.h (exec_bfd_mtime): Remove.
220
221 2020-10-29 Tom Tromey <tom@tromey.com>
222
223 * gcore.c (default_gcore_mach): Remove.
224 (create_gcore_bfd): Update.
225
226 2020-10-29 Tom Tromey <tom@tromey.com>
227
228 * progspace.c (program_space::exec_close): New method, from
229 exec_close in exec.c.
230 * exec.c (exec_close): Move to progspace.c.
231 (exec_target::close, exec_file_attach): Update.
232 * progspace.h (struct program_space) <exec_close>: Declare
233 method.
234
235 2020-10-29 Tom Tromey <tom@tromey.com>
236
237 * progspace.h (struct program_space) <exec_filename>: Rename from
238 pspace_exec_filename. Now a unique_xmalloc_ptr.
239 * inferior.c (print_selected_inferior): Update.
240 (print_inferior): Update.
241 * mi/mi-main.c (print_one_inferior): Update.
242 * exec.h (exec_filename): Remove macro.
243 * corefile.c (get_exec_file): Update.
244 * exec.c (exec_close): Update.
245 (exec_file_attach): Update.
246 * progspace.c (clone_program_space): Update.
247 (print_program_space): Update.
248
249 2020-10-29 Tom Tromey <tom@tromey.com>
250
251 * target-section.h (struct target_section): Add constructor.
252 * exec.c (build_section_table, add_target_sections_of_objfile):
253 Update.
254 * corelow.c (core_target::build_file_mappings): Update.
255
256 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
257
258 PR gdb/19318
259 * inferior.c (detach_inferior_command): Restore the current thread.
260 (kill_inferior_command): Ditto.
261
262 2020-10-28 Tom de Vries <tdevries@suse.de>
263
264 PR symtab/26772
265 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
266 map, check it in the "best match" loop.
267
268 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
269
270 * m32c-tdep.c: Remove unused includes.
271
272 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
273
274 * xtensa-tdep.c: Remove includes.
275
276 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
277
278 * breakpoint.c (struct condition_command_opts): New struct.
279 (condition_command_option_defs): New static global.
280 (make_condition_command_options_def_group): New function.
281 (condition_completer): Update to consider the '-force' flag.
282 (condition_command): Use gdb::option for the '-force' flag.
283
284 2020-10-27 Tom de Vries <tdevries@suse.de>
285
286 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
287 symbols in section check.
288
289 2020-10-27 Tom de Vries <tdevries@suse.de>
290
291 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
292
293 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
294
295 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
296 * breakpoint.c: Update the help text of the 'condition' and 'break'
297 commands.
298 (set_breakpoint_condition): Take a new bool parameter
299 to control whether condition definition should be forced even when
300 the condition expression is invalid in all of the current locations.
301 (condition_command): Update the call to 'set_breakpoint_condition'.
302 (find_condition_and_thread): Take the "-force-condition" flag into
303 account.
304 * linespec.c (linespec_keywords): Add "-force-condition" as an
305 element.
306 (FORCE_KEYWORD_INDEX): New #define.
307 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
308 as a keyword.
309 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
310 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
311 * python/py-breakpoint.c (bppy_set_condition): Ditto.
312 * NEWS: Mention the changes to the 'break' and 'condition' commands.
313
314 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
315
316 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
317 * breakpoint.c (set_breakpoint_location_condition): New function.
318 (set_breakpoint_condition): Disable a breakpoint location if parsing
319 the condition string gives an error.
320 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
321 (build_target_condition_list): Ditto.
322 (build_target_command_list): Ditto.
323 (build_bpstat_chain): Ditto.
324 (print_one_breakpoint_location): Ditto.
325 (print_one_breakpoint): Ditto.
326 (breakpoint_1): Ditto.
327 (bp_location::bp_location): Ditto.
328 (locations_are_equal): Ditto.
329 (update_breakpoint_locations): Ditto.
330 (enable_disable_bp_num_loc): Ditto.
331 (init_breakpoint_sal): Use set_breakpoint_location_condition.
332 (find_condition_and_thread_for_sals): New static function.
333 (create_breakpoint): Call find_condition_and_thread_for_sals.
334 (location_to_sals): Call find_condition_and_thread_for_sals instead
335 of find_condition_and_thread.
336
337 2020-10-26 Tom de Vries <tdevries@suse.de>
338
339 * dwarf2/read.c (process_full_comp_unit): Call
340 dwarf2_find_base_address.
341
342 2020-10-26 Tom Tromey <tromey@adacore.com>
343
344 * gdbtypes.c (create_range_type): Revert previous patch. Add
345 comment.
346
347 2020-10-26 Pedro Alves <pedro@palves.net>
348
349 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
350 (my_waitpid): Use gdb::handle_eintr.
351
352 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
353
354 * acinclude.m4: Update ptrace.m4 path.
355 * ptrace.m4: Moved to gdbsupport.
356
357 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
358
359 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
360 instead of target_gdbarch.
361
362 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
363
364 * jit.c (jit_reader_load_command): Pass current inferior.
365 (jit_inferior_init): Change parameter type to inferior, use it.
366 (jit_inferior_created): Remove.
367 (jit_inferior_created_hook): Pass inferior parameter down.
368 (_initialize_jit): Use jit_inferior_created_hook instead of
369 jit_inferior_created.
370 * jit.h (jit_inferior_created_hook): Add inferior parameter.
371 * infrun.c (follow_exec): Pass inferior to
372 jit_inferior_created_hook.
373
374 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
375
376 * linux-thread-db.c (check_pid_namespace_match): Add inferior
377 parameter and use it.
378 (thread_db_inferior_created): Pass inferior argument.
379
380 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
381
382 * aix-thread.c (aix_thread_inferior_created): Add inferior
383 parameter.
384 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
385 * dummy-frame.c (cleanup_dummy_frames): Likewise.
386 * jit.c (jit_inferior_created): Likewise.
387 * linux-thread-db.c (thread_db_inferior_created): Likewise.
388 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
389 * observable.h (inferior_created): Likewise.
390 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
391 * symfile-mem.c (add_vsyscall_page): Likewise.
392 * infcmd.c (post_create_inferior): Pass inferior argument.
393
394 2020-10-24 Joel Brobecker <brobecker@adacore.com>
395
396 GDB 10.1 released.
397
398 2020-10-23 Joel Brobecker <brobecker@adacore.com>
399
400 * ada-typeprint.c (ada_print_type): Remove superfluous second call
401 to ada_check_typedef.
402
403 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
404
405 * f-exp.y (f_parse): Rename to...
406 (f_language::parser): ...this.
407 * f-lang.c (f_get_encoding): Rename to...
408 (f_language::get_encoding): ...this.
409 (f_op_print_tab): Rename to...
410 (f_language::op_print_tab): ...this.
411 (exp_descriptor_f): Rename to...
412 (f_language::exp_descriptor_tab): ...this.
413 (class f_language): Moved to f-lang.h.
414 (f_language::language_arch_info): New function, moved out of class
415 declaration.
416 (f_language::search_name_hash): Likewise.
417 (f_language::lookup_symbol_nonlocal): Likewise.
418 (f_language::get_symbol_name_matcher_inner): Likewise.
419 * f-lang.h: Add 'valprint.h' include.
420 (class f_language): Moved here from f-lang.c.
421 * f-typeprint.c (f_type_print_args): Delete commented out
422 declaration.
423 (f_print_typedef): Rename to...
424 (f_language::print_typedef): ...this.
425 (f_print_type): Rename to...
426 (f_language::print_type): ...this.
427 (f_type_print_varspec_prefix): Delete declaration and rename to...
428 (f_language::f_type_print_varspec_prefix): ...this.
429 (f_type_print_varspec_suffix): Delete declaration and rename to...
430 (f_language::f_type_print_varspec_suffix): ...this.
431 (f_type_print_base): Delete declaration and rename to...
432 (f_language::f_type_print_base): ...this.
433 * f-valprint.c (f_value_print_inner): Rename to...
434 (f_language::value_print_inner): ...this.
435 * parse.c: Delete 'f-lang.h' include.
436
437 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * language.h (language_defn::print_type): Add variable names in
440 declaration, and update header comment.
441
442 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
443
444 * ada-lang.c (ada_language::demangle): Rename to...
445 (ada_language::demangle_symbol): ...this.
446 * c-lang.c (cplus_language::demangle): Rename to...
447 (cplus_language::demangle_symbol): ...this.
448 * d-lang.c (d_language::demangle): Rename to...
449 (d_language::demangle_symbol): ...this.
450 * f-lang.c (f_language::demangle): Rename to...
451 (f_language::demangle_symbol): ...this.
452 * go-lang.c (go_language::demangle): Rename to...
453 (go_language::demangle_symbol): ...this.
454 * language.c (language_demangle): Update call to demangle_symbol.
455 (auto_or_unknown_language::demangle): Rename to...
456 (auto_or_unknown_language::demangle_symbol): ...this.
457 * language.h (language_defn::demangle): Rename to...
458 (language_defn::demangle_symbol): ...this.
459 * objc-lang.c (objc_language::demangle): Rename to...
460 (objc_language::demangle_symbol): ...this.
461 * rust-lang.c (rust_language::demangle): Rename to...
462 (rust_language::demangle_symbol): ...this.
463
464 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
465
466 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
467 (iterate_over_file_blocks): Replace use of macro with the macros
468 definition.
469
470 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
471
472 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
473 * valprint.c (maybe_print_array_index): Replace use of macro with
474 the macros definition.
475
476 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
477
478 * ada-lang.c (ada_language::print_array_index): Call value_print
479 directly.
480 * language.c (language_defn::print_array_index): Likewise.
481 * language.h (LA_VALUE_PRINT): Delete.
482 * valprint.c (value_print): Call value_print on the
483 current_language directly.
484
485 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
486
487 * language.h (LA_PRINT_TYPEDEF): Delete.
488 * typeprint.c (typedef_print): Call print_typedef directly on the
489 current_language object.
490
491 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
492
493 * m2-exp.y (m2_parse): Rename to...
494 (m2_language::parser): ...this. Update function signature.
495 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
496 (m2_op_print): Rename to...
497 (m2_language::op_print_tab): ...this, and make const.
498 (exp_descriptor_modula2): Rename to...
499 (m2_language::exp_descriptor_modula2): ...this.
500 (class m2_language): Move to m2-lang.h.
501 (m2_language::language_arch_info): New function, moved out of
502 class declaration.
503 (m2_language::printchar): New function, body from m2_printchar.
504 (m2_language::printstr): New function, moved out of class
505 declaration.
506 (m2_language::emitchar): Likewise.
507 * m2-lang.h (m2_parse): Delete declaration.
508 (m2_print_typedef): Delete declaration.
509 (m2_value_print_inner): Delete declaration.
510 (class m2_language): Class declaration moved from m2-lang.c,
511 larger functions are left in m2-lang.c.
512 * m2-typeprint.c (m2_print_typedef): Rename to...
513 (m2_language::print_typedef): ...this, and update function
514 signature.
515 * m2-valprint.c (m2_value_print_inner): Rename to...
516 (m2_language::value_print_inner): ...this, replace use of
517 LA_PRINT_STRING with a direct call to printstr member function,
518 and update recursive call.
519
520 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * language.c (default_is_string_type_p): Delete, implementation
523 moved into auto_or_unknown_language::is_string_type_p.
524 (unk_op_print_tab): Moved into
525 auto_or_unknown_language::opcode_print_table.
526 (unknown_language_arch_info): Delete, implementation moved into
527 auto_or_unknown_language::language_arch_info.
528 (class auto_or_unknown_language): New class, member functions
529 copied from unknown_language class, with some updates.
530 (class unknown_language): Most member functions moved into
531 auto_or_unknown_language class. Inherit from
532 auto_or_unknown_language class.
533 (class auto_language): Inherit from auto_or_unknown_language.
534 Delete most member functions.
535
536 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
537
538 * stabsread.c (read_member_functions): Remove gdb_assert.
539
540 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
541
542 * gdbtypes.c (init_complex_type): Check target type name.
543
544 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
545
546 * target-debug.h (target_debug_print_struct_target_ops_p):
547 Remove.
548 (target_debug_print_async_callback_ftype_p): Remove.
549 (target_debug_print_struct_trace_state_variable_p): Remove.
550 (target_debug_print_struct_traceframe_info_p): Remove.
551 (target_debug_print_VEC__btrace_block_s__pp): Remove.
552 (target_debug_print_enum_btrace_format): Remove.
553 (target_debug_print_enum_info_proc_what): Remove.
554 (target_debug_print_thread_info_pp): Remove.
555
556 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
557
558 * target.h (struct target_ops) <make_corefile_notes>:
559 Change return type to unique pointer.
560 * target.c (dummy_make_corefile_notes): Likewise.
561 * exec.c (struct exec_target) <make_corefile_notes>:
562 Likewise.
563 (exec_target::make_corefile_notes): Likewise.
564 * procfs.c (class procfs_target) <make_corefile_notes>:
565 Likewise.
566 (procfs_do_thread_registers): Adjust to unique pointer.
567 (struct procfs_corefile_thread_data): Add constructor.
568 <note_data>: Change type to unique pointer.
569 (procfs_corefile_thread_callback): Adjust to unique pointer.
570 (procfs_target::make_corefile_notes): Change return type to
571 unique pointer.
572 * target-delegates.c: Re-generate.
573 * gcore.c (write_gcore_file_1): Adjust.
574 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
575 New.
576
577 2020-10-22 Tom de Vries <tdevries@suse.de>
578
579 * block.c (find_block_in_blockvector): Make sure the returned block
580 contains pc.
581
582 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
583
584 PR gdb/26693
585 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
586 parameter.
587 (load_cu): Pass existing CU.
588 (process_imported_unit_die): Likewise.
589 (follow_die_offset): Likewise.
590
591 2020-10-22 Luis Machado <luis.machado@linaro.org>
592
593 * corelow.c (core_target::xfer_partial): Also check for an empty
594 m_core_unavailable_mappings vector.
595
596 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
599 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
600 * f-exp.y (arglist): Allow for a series of subranges.
601 (subrange): Add cases for subranges with strides.
602 * f-lang.c (value_f90_subarray): Catch use of array strides and
603 throw an error.
604 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
605
606 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * expprint.c (print_subexp_standard): Change enum range_type to
609 range_flag and rename variables to match.
610 (dump_subexp_body_standard): Likewise.
611 * expression.h (enum range_type): Rename to...
612 (enum range_flag): ...this.
613 (range_types): Rename to...
614 (range_flags): ...this.
615 * f-lang.c (value_f90_subarray): Change enum range_type to
616 range_flag and rename variables to match.
617 * parse.c (operator_length_standard): Likewise.
618 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
619 range_type to range_flag.
620 * rust-lang.c (rust_evaluate_funcall): Likewise.
621 (rust_range): Likewise.
622 (rust_compute_range): Likewise.
623 (rust_subscript): Likewise.
624
625 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * expprint.c (print_subexp_standard): Update to reflect changes to
628 enum range_type.
629 (dump_subexp_body_standard): Likewise.
630 * expression.h (enum range_type): Convert to a bit field enum, and
631 make the enum unsigned.
632 * f-exp.y (subrange): Update to reflect changes to enum
633 range_type.
634 * f-lang.c (value_f90_subarray): Likewise.
635 * parse.c (operator_length_standard): Likewise.
636 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
637 * rust-lang.c (rust_range): Likewise.
638 (rust_compute_range): Likewise.
639 (rust_subscript): Likewise.
640
641 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
642
643 * infrun.c (displaced_step_in_progress_thread): Fix comment.
644 (displaced_step_in_progress): Fix comment.
645
646 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
647
648 * gdbarch.sh (make_corefile_notes): Return unique pointer.
649 * gdbarch.c: Re-generate.
650 * gdbarch.h: Re-generate.
651 * gcore.c (write_gcore_file_1): Adjust.
652 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
653 constructor.
654 <note_data>: Change type to unique pointer.
655 <abort_iteration>: Change type to bool.
656 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
657 (fbsd_collect_thread_registers): Return void, adjust.
658 (struct fbsd_corefile_thread_data): Add construtor.
659 <note_data>: Change type to unique pointer.
660 (fbsd_corefile_thread): Adjust.
661 (fbsd_make_corefile_notes): Return unique pointer, adjust.
662 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
663 to unique pointer, adjust.
664 (struct linux_collect_regset_section_cb_data): Add constructor.
665 <note_data>: Change type to unique pointer.
666 <abort_iteration>: Change type to bool.
667 (linux_collect_thread_registers): Return void, adjust.
668 (struct linux_corefile_thread_data): Add constructor.
669 <note_data>: Change type to unique pointer.
670 (linux_corefile_thread): Adjust.
671 (linux_make_corefile_notes): Return unique pointer, adjust.
672
673 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
676 * gdbarch.c: Re-generate.
677 * gdbarch.h: Re-generate.
678 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
679 bool.
680 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
681 Likewise.
682 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
683 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
684 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
685 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
686
687 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * gdbarch.sh: Make generated predicates return bool.
690 * gdbarch.c: Re-generate.
691 * gdbarch.h: Re-generate.
692
693 2020-10-20 Tom Tromey <tom@tromey.com>
694
695 * varobj-iter.h (struct varobj_item): Remove typedef.
696
697 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * infrun.c (currently_stepping): Change int to bool
700 (maybe_software_singlestep): Likewise.
701 (show_stop_on_solib_events): Likewise.
702 (stepping_past_nonsteppable_watchpoint): Likewise.
703 (displaced_step_in_progress_any_inferior): Likewise.
704 (displaced_step_in_progress_thread): Likewise.
705 (keep_going_stepped_thread): Likewise.
706 (thread_still_needs_step_over): Likewise.
707 (start_step_over): Likewise.
708 (do_target_resume): Likewise.
709 (resume_1): Likewise.
710 (clear_proceed_status): Likewise.
711 (thread_still_needs_step_over_bp): Likewise.
712 (proceed): Likewise.
713 (switch_back_to_stepped_thread): Likewise.
714 (adjust_pc_after_break): Likewise.
715 (stepped_in_from): Likewise.
716 (handle_stop_requested): Likewise.
717 (handle_syscall_event): Likewise.
718 (handle_no_resumed): Likewise.
719 (handle_inferior_event): Likewise.
720 (finish_step_over): Likewise.
721 (handle_signal_stop): Likewise.
722 (process_event_stop_test): Likewise.
723
724 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
725
726 * infrun.c (get_displaced_stepping_state): Fix comment.
727
728 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
729
730 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
731
732 2020-10-19 Tom Tromey <tromey@adacore.com>
733
734 PR tui/26719
735 * tui/tui-winsource.h (struct tui_source_window_base)
736 <refresh_window>: Rename from refresh_pad.
737 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
738 Rename from refresh_pad.
739 (tui_source_window_base::show_source_content)
740 (tui_source_window_base::do_scroll_horizontal): Update.
741
742 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
743
744 * thread.c (_initialize_thread): Fine-tune the help text of
745 'info threads'.
746
747 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
748
749 * frame.c: Remove the unused 'uinteger_option_def' type alias.
750
751 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
752
753 * breakpoint.c (handle_jit_event): Add an argument, change how
754 `jit_event_handler` is called.
755
756 2020-10-17 Tom Tromey <tom@tromey.com>
757
758 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
759 (scan_xcoff_symtab): Update.
760 * psymtab.h (class psymtab_storage) <global_psymbols,
761 static_psymbols, current_global_psymbols,
762 current_static_psymbols>: Remove.
763 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
764 (match_partial_symbol, lookup_partial_symbol): Update.
765 (print_partial_symbols): Change parameters.
766 (dump_psymtab, recursively_search_psymtabs)
767 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
768 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
769 (concat): Remove.
770 (end_psymtab_common): Simplify.
771 (append_psymbol_to_list): Change parameters.
772 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
773 (init_psymbol_list): Simplify.
774 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
775 * psympriv.h (struct partial_symtab) <empty>: New method.
776 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
777 Remove.
778 <global_psymbols, static_psymbols>: New members.
779 <add_psymbol>: New methods.
780 (add_psymbol_to_list): Don't declare.
781 (psymbol_placement): Move earlier.
782 * mdebugread.c (parse_partial_symbols): Update.
783 (handle_psymbol_enumerators): Change parameters.
784 (mdebug_expand_psymtab): Update.
785 * dwarf2/read.c (process_psymtab_comp_unit_reader)
786 (add_partial_symbol): Update.
787 * dwarf2/index-write.c (write_psymbols): Change parameters.
788 (write_one_signatured_type): Update.
789 (recursively_count_psymbols): Update.
790 (recursively_write_psymbols): Update.
791 (class debug_names) <recursively_write_psymbols>: Update.
792 <write_psymbols>: Change parameters.
793 <write_one_signatured_type>: Update.
794 * dbxread.c (read_dbx_symtab): Update.
795 (dbx_end_psymtab): Use partial_symtab::empty.
796 * ctfread.c (struct ctf_context) <pst>: New member.
797 (create_partial_symtab): Set it.
798 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
799 (scan_partial_symbols): Use the psymtab's context. Update.
800
801 2020-10-17 Tom Tromey <tom@tromey.com>
802
803 * valprint.c (generic_value_print): Remove comment.
804 * m2-valprint.c (m2_value_print_inner): Remove comment.
805 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
806 type.
807
808 2020-10-17 Tom de Vries <tdevries@suse.de>
809
810 PR symtab/26317
811 * source.c (select_source_symtab): Handling sal.symtab == NULL for
812 symbol main.
813
814 2020-10-14 Tom de Vries <tdevries@suse.de>
815
816 PR gdb/26733
817 * solib.c (solib_contains_address_p): Handle
818 'solib->sections == nullptr'.
819
820 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
821
822 PR gdb/26642
823 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
824 target can't do async.
825 * target.c (target_wait): Assert that we don't pass
826 TARGET_WNOHANG to a target that can't async.
827
828 2020-10-13 Kamil Rytarowski <n54@gmx.com>
829
830 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
831 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
832 * alpha-bsd-nat.c: Adjust include.
833 * alpha-bsd-tdep.h: Adjust comment.
834 * alpha-nbsd-tdep.c: Rename to ...
835 * alpha-netbsd-tdep.c: ... this, adjust include.
836 * amd64-nbsd-nat.c: Rename to ...
837 * amd64-netbsd-nat.c: ... this, adjust include.
838 * amd64-nbsd-tdep.c: Rename to ...
839 * amd64-netbsd-tdep.c: ... this, adjust include.
840 * amd64-tdep.h: Adjust include.
841 * arm-nbsd-nat.c: Rename to ...
842 * arm-netbsd-nat.c: ... this, adjust include.
843 * arm-nbsd-tdep.c: Rename to ...
844 * arm-netbsd-tdep.c: ... this, adjust include.
845 * arm-nbsd-tdep.h: Rename to ...
846 * arm-netbsd-tdep.h: ... this, adjust include.
847 * configure.nat: Adjust file lists.
848 * configure.tgt: Likewise.
849 * hppa-nbsd-nat.c: Rename to ...
850 * hppa-netbsd-nat.c: ... this, adjust include.
851 * hppa-nbsd-tdep.c: Rename to ...
852 * hppa-netbsd-tdep.c: ... this, adjust include.
853 * i386-nbsd-nat.c: Rename to ...
854 * i386-netbsd-nat.c: ... this, adjust include.
855 * i386-nbsd-tdep.c: Rename to ...
856 * i386-netbsd-tdep.c: ... this, adjust include.
857 * m68k-bsd-nat.c: Adjust include.
858 * mips-nbsd-nat.c: Rename to ...
859 * mips-netbsd-nat.c: ... this, adjust include.
860 * mips-nbsd-tdep.c: Rename to ...
861 * mips-netbsd-tdep.c: ... this, adjust include.
862 * mips-nbsd-tdep.h: Rename to ...
863 * mips-netbsd-tdep.h: ... this.
864 * nbsd-nat.c: Rename to ...
865 * netbsd-nat.c: ... this, adjust include.
866 * nbsd-nat.h: Rename to ...
867 * netbsd-nat.h: ... this, adjust include.
868 * nbsd-tdep.c: Rename to ...
869 * netbsd-tdep.c: ... this, adjust include.
870 * nbsd-tdep.h: Rename to ...
871 * netbsd-tdep.h: ... this.
872 * ppc-nbsd-nat.c: Rename to ...
873 * ppc-netbsd-nat.c: ... this, adjust include.
874 * ppc-nbsd-tdep.c: Rename to ...
875 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
876 * ppc-nbsd-tdep.h: Rename to ...
877 * ppc-netbsd-tdep.h: ... this.
878 * sh-nbsd-nat.c: Rename to ...
879 * sh-netbsd-nat.c: ... this, adjust include.
880 * sh-nbsd-tdep.c: Rename to ...
881 * sh-netbsd-tdep.c: ... this, adjust include.
882 * sparc-nbsd-nat.c: Rename to ...
883 * sparc-netbsd-nat.c: ... this.
884 * sparc-nbsd-tdep.c: Rename to ...
885 * sparc-netbsd-tdep.c: ... this, adjust include.
886 * sparc64-nbsd-nat.c: Rename to ...
887 * sparc64-netbsd-nat.c: ... this.
888 * sparc64-nbsd-tdep.c: Rename to ...
889 * sparc64-netbsd-tdep.c: ... this, adjust include.
890 * sparc64-tdep.h: Adjust comment.
891 * vax-bsd-nat.c: Adjust include.
892 * vax-nbsd-tdep.c: Rename to ...
893 * vax-netbsd-tdep.c: ... this, adjust include.
894
895 2020-10-12 Tom Tromey <tom@tromey.com>
896
897 * target.h (struct target_ops) <get_section_table>: Update.
898 (target_get_section_table): Update.
899 * target.c (target_get_section_table, target_section_by_addr)
900 (memory_xfer_partial_1): Update.
901 * target-section.h (target_section_table): Now an alias.
902 * target-delegates.c: Rebuild.
903 * target-debug.h (target_debug_print_target_section_table_p):
904 Rename from target_debug_print_struct_target_section_table_p.
905 * symfile.c (build_section_addr_info_from_section_table): Update.
906 * solib.c (solib_map_sections, solib_contains_address_p): Update.
907 * solib-svr4.c (scan_dyntag): Update.
908 * solib-dsbt.c (scan_dyntag): Update.
909 * remote.c (remote_target::remote_xfer_live_readonly_partial):
910 Update.
911 * record-full.c (record_full_core_target::xfer_partial): Update.
912 * progspace.h (struct program_space) <target_sections>: Update.
913 * exec.h (print_section_info): Update.
914 * exec.c (exec_target::close, build_section_table)
915 (add_target_sections, add_target_sections_of_objfile)
916 (remove_target_sections, exec_on_vfork)
917 (section_table_available_memory)
918 (section_table_xfer_memory_partial)
919 (exec_target::get_section_table, exec_target::xfer_partial)
920 (print_section_info, set_section_command)
921 (exec_set_section_address, exec_target::has_memory): Update.
922 * corelow.c (core_target::build_file_mappings)
923 (core_target::xfer_partial, core_target::info_proc_mappings)
924 (core_target::info_proc_mappings): Update.
925 * bfd-target.c (class target_bfd): Update
926
927 2020-10-12 Tom Tromey <tom@tromey.com>
928
929 * progspace.c (program_space::~program_space): Don't call
930 clear_section_table.
931 * exec.h (clear_section_table): Don't declare.
932 * exec.c (exec_target::close): Update.
933 (clear_section_table): Remove.
934
935 2020-10-12 Tom Tromey <tom@tromey.com>
936
937 * exec.c (add_target_sections_of_objfile): Simplify.
938
939 2020-10-12 Tom Tromey <tom@tromey.com>
940
941 * solib.c (solib_map_sections): Update.
942 * record-full.c (record_full_core_open_1): Update.
943 * exec.h (build_section_table): Return a target_section_table.
944 * exec.c (exec_file_attach): Update.
945 (build_section_table): Return a target_section_table.
946 * corelow.c (core_target::core_target): Update.
947 * bfd-target.c (target_bfd::target_bfd): Update.
948
949 2020-10-12 Tom Tromey <tom@tromey.com>
950
951 * target.c (target_section_by_addr, memory_xfer_partial_1):
952 Update.
953 * target-section.h (struct target_section_table): Use
954 std::vector.
955 * symfile.h (build_section_addr_info_from_section_table): Take a
956 target_section_table.
957 * symfile.c (build_section_addr_info_from_section_table): Take a
958 target_section_table.
959 * solist.h (struct so_list) <sections>: Change type.
960 <sections_end>: Remove.
961 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
962 (solib_contains_address_p): Update.
963 * solib-svr4.c (scan_dyntag): Update.
964 * solib-dsbt.c (scan_dyntag): Update.
965 * remote.c (remote_target::remote_xfer_live_readonly_partial):
966 Update.
967 * record-full.c (record_full_core_start, record_full_core_end):
968 Remove.
969 (record_full_core_sections): New global.
970 (record_full_core_open_1, record_full_core_target::xfer_partial):
971 Update.
972 * exec.h (build_section_table, section_table_xfer_memory_partial)
973 (add_target_sections): Take a target_section_table.
974 * exec.c (exec_file_attach, clear_section_table): Update.
975 (resize_section_table): Remove.
976 (build_section_table, add_target_sections): Take a
977 target_section_table.
978 (add_target_sections_of_objfile, remove_target_sections)
979 (exec_on_vfork): Update.
980 (section_table_available_memory): Take a target_section_table.
981 (section_table_read_available_memory): Update.
982 (section_table_xfer_memory_partial): Take a target_section_table.
983 (print_section_info, set_section_command)
984 (exec_set_section_address, exec_target::has_memory): Update.
985 * corelow.c (class core_target) <m_core_section_table,
986 m_core_file_mappings>: Remove braces.
987 <~core_target>: Remove.
988 (core_target::core_target): Update.
989 (core_target::~core_target): Remove.
990 (core_target::build_file_mappings)
991 (core_target::xfer_memory_via_mappings)
992 (core_target::xfer_partial, core_target::info_proc_mappings):
993 Update.
994 * bfd-target.c (target_bfd::xfer_partial): Update.
995 (target_bfd::target_bfd): Update.
996 (target_bfd::~target_bfd): Remove.
997
998 2020-10-12 Tom Tromey <tom@tromey.com>
999
1000 * target.h (struct target_section, struct target_section_table):
1001 Move to target-section.h.
1002 * target-section.h: New file.
1003
1004 2020-10-12 Pedro Alves <pedro@palves.net>
1005
1006 PR exp/26602
1007 * valops.c (struct struct_field_searcher): New.
1008 (update_search_result): Rename to ...
1009 (struct_field_searcher::update_result): ... this. Simplify
1010 prototype. Record all found fields.
1011 (do_search_struct_field): Rename to ...
1012 (struct_field_searcher::search): ... this. Simplify prototype.
1013 Maintain stack of visited baseclass path. Call update_result for
1014 fields too. Keep searching fields in baseclasses instead of
1015 stopping at the first found field.
1016 (search_struct_field): Use struct_field_searcher. When looking
1017 for fields, report ambiguous access attempts.
1018
1019 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * frame.c (inside_main_func): Check full symbols as well as
1022 minimal symbols.
1023
1024 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1025
1026 * ada-lang.c (advance_wild_match): Rewrite the function's
1027 description. Change the type of target0, t0 and t1 to char.
1028
1029 2020-10-09 Tom Tromey <tromey@adacore.com>
1030
1031 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1032
1033 2020-10-09 Tom Tromey <tromey@adacore.com>
1034
1035 * ada-lang.h (ada_encode): Return std::string.
1036 * ada-lang.c (ada_encode_1): Return std::string.
1037 (ada_encode): Likewise.
1038 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1039 Update.
1040 * ada-exp.y (block_lookup, write_var_or_type): Update.
1041
1042 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1043
1044 PR exp/26714
1045 * printcmd.c (print_formatted): Handle void results as
1046 unformatted prints.
1047
1048 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1049
1050 * arch/aarch32.c (aarch32_create_target_description): Release the
1051 target_desc_up as late as possible.
1052 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1053 * arch/amd64.c (amd64_create_target_description): Likewise.
1054 * arch/arc.c (arc_create_target_description): Return a
1055 target_desc_up, don't release it.
1056 * arch/arc.h (arc_create_target_description): Update declaration.
1057 (arc_lookup_target_description): Move target_desc_up into the
1058 cache, and return a borrowed pointer.
1059 * arch/arm.c (arm_create_target_description): Release the
1060 target_desc_up as late as possible.
1061 * arch/i386.c (i386_create_target_description): Likewise.
1062 * arch/riscv.h (riscv_create_target_description): Update
1063 declaration to match definition.
1064 * arch/tic6x.c (tic6x_create_target_description): Release the
1065 target_desc_up as late as possible.
1066
1067 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1070 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1071
1072 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1073
1074 * source.c (directory_command): Notify observers that "directories"
1075 parameter has changed.
1076
1077 2020-10-08 Tom Tromey <tom@tromey.com>
1078
1079 * cli/cli-cmds.c (print_disassembly): Style function name and
1080 addresses. Add _() wrappers.
1081
1082 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1083
1084 * NEWS: Mention ARC support in GDBserver.
1085
1086 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * arch/aarch32.c (aarch32_create_target_description): Release
1089 unique_ptr returned from allocate_target_description.
1090 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1091 * arch/amd64.c (amd64_create_target_description): Likewise.
1092 * arch/arc.c (arc_create_target_description): Likewise.
1093 * arch/arm.c (arm_create_target_description): Likewise.
1094 * arch/i386.c (i386_create_target_description): Likewise.
1095 * arch/riscv.c (riscv_create_target_description): Update return
1096 type. Handle allocate_target_description returning a unique_ptr.
1097 (riscv_lookup_target_description): Update to handle unique_ptr.
1098 * arch/tic6x.c (tic6x_create_target_description): Release
1099 unique_ptr returned from allocate_target_description.
1100 * features/microblaze-with-stack-protect.c: Regenerate.
1101 * features/microblaze.c: Regenerate.
1102 * features/mips-dsp-linux.c: Regenerate.
1103 * features/mips-linux.c: Regenerate.
1104 * features/mips64-dsp-linux.c: Regenerate.
1105 * features/mips64-linux.c: Regenerate.
1106 * features/nds32.c: Regenerate.
1107 * features/nios2.c: Regenerate.
1108 * features/or1k.c: Regenerate.
1109 * features/rs6000/powerpc-32.c: Regenerate.
1110 * features/rs6000/powerpc-32l.c: Regenerate.
1111 * features/rs6000/powerpc-403.c: Regenerate.
1112 * features/rs6000/powerpc-403gc.c: Regenerate.
1113 * features/rs6000/powerpc-405.c: Regenerate.
1114 * features/rs6000/powerpc-505.c: Regenerate.
1115 * features/rs6000/powerpc-601.c: Regenerate.
1116 * features/rs6000/powerpc-602.c: Regenerate.
1117 * features/rs6000/powerpc-603.c: Regenerate.
1118 * features/rs6000/powerpc-604.c: Regenerate.
1119 * features/rs6000/powerpc-64.c: Regenerate.
1120 * features/rs6000/powerpc-64l.c: Regenerate.
1121 * features/rs6000/powerpc-7400.c: Regenerate.
1122 * features/rs6000/powerpc-750.c: Regenerate.
1123 * features/rs6000/powerpc-860.c: Regenerate.
1124 * features/rs6000/powerpc-altivec32.c: Regenerate.
1125 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1126 * features/rs6000/powerpc-altivec64.c: Regenerate.
1127 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1128 * features/rs6000/powerpc-e500.c: Regenerate.
1129 * features/rs6000/powerpc-e500l.c: Regenerate.
1130 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1131 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1132 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1133 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1134 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1135 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1136 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1137 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1138 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1139 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1140 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1141 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1142 * features/rs6000/powerpc-vsx32.c: Regenerate.
1143 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1144 * features/rs6000/powerpc-vsx64.c: Regenerate.
1145 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1146 * features/rs6000/rs6000.c: Regenerate.
1147 * features/rx.c: Regenerate.
1148 * features/s390-gs-linux64.c: Regenerate.
1149 * features/s390-linux32.c: Regenerate.
1150 * features/s390-linux32v1.c: Regenerate.
1151 * features/s390-linux32v2.c: Regenerate.
1152 * features/s390-linux64.c: Regenerate.
1153 * features/s390-linux64v1.c: Regenerate.
1154 * features/s390-linux64v2.c: Regenerate.
1155 * features/s390-te-linux64.c: Regenerate.
1156 * features/s390-tevx-linux64.c: Regenerate.
1157 * features/s390-vx-linux64.c: Regenerate.
1158 * features/s390x-gs-linux64.c: Regenerate.
1159 * features/s390x-linux64.c: Regenerate.
1160 * features/s390x-linux64v1.c: Regenerate.
1161 * features/s390x-linux64v2.c: Regenerate.
1162 * features/s390x-te-linux64.c: Regenerate.
1163 * features/s390x-tevx-linux64.c: Regenerate.
1164 * features/s390x-vx-linux64.c: Regenerate.
1165 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1166 from allocate_target_description.
1167 * target-descriptions.c (allocate_target_description): Update
1168 return type.
1169 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1170 allocate_target_description.
1171
1172 2020-10-07 Tom Tromey <tromey@adacore.com>
1173
1174 * unittests/search-memory-selftests.c: New file.
1175 * Makefile.in (SELFTESTS_SRCS): Add
1176 unittests/search-memory-selftests.c.
1177
1178 2020-10-07 Tom Tromey <tromey@adacore.com>
1179
1180 PR gdb/16930:
1181 * findcmd.c (_initialize_mem_search): Mention that the range is
1182 inclusive.
1183
1184 2020-10-07 Tom Tromey <tromey@adacore.com>
1185
1186 * target.h (simple_search_memory): Don't declare.
1187 * target.c (simple_search_memory): Move to gdbsupport.
1188 (default_search_memory): Update.
1189 * remote.c (remote_target::search_memory): Update.
1190
1191 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1192
1193 * Makefile.in (COMPILE): Add CXXFLAGS.
1194 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1195 (check-headers): Add CXXFLAGS.
1196
1197 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1198
1199 * arc-linux-tdep.h: New file.
1200 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1201 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1202 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1203 arc_linux_gregset, arc_linux_v2_regset,
1204 arc_linux_iterate_over_regset_sections,
1205 arc_linux_core_read_description): Implement.
1206 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1207 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1208 (arc_gdbarch_features_create): Add.
1209 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1210
1211 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1212
1213 * arch/arc.h: Rename "arc_gdbarch_features" to
1214 "arc_arch_features".
1215 * arc-tdep.h: Likewise.
1216 * arc-tdep.c: Likewise.
1217
1218 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1219
1220 * infcmd.c (attach_command): Remove the redundant call to
1221 `clear_proceed_status`.
1222
1223 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1224
1225 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1226
1227 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1228
1229 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1230 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1231 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1232
1233 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1234
1235 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1236 (_initialize_break_catch_sig): Don't allocate array.
1237
1238 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1239
1240 * symtab.c (find_pc_line): Return unmapped addresses when the
1241 requested address is also unmapped.
1242
1243 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1244
1245 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1246 tui/tui-out.h.
1247
1248 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1249
1250 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1251 type::is_vector instead of TYPE_VECTOR.
1252
1253 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1254
1255 * auto-load.c (auto_load_objfile_script_1): Don't use
1256 debugfile_holder as temporary variable when stripping drive
1257 letter.
1258
1259 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1260
1261 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1262 Add TYPE_CODE_COMPLEX.
1263 (amd64_windows_return_value): Fix types returned via XMM0.
1264
1265 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1266
1267 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1268 AArch64/ARM maintainers.
1269
1270 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * NEWS: Mention set/show debug event-loop.
1273
1274 2020-10-02 Tom Tromey <tromey@adacore.com>
1275
1276 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1277 REG_EXTENDED.
1278
1279 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1280
1281 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1282 * procfs.c (procfs_inferior_created): Remove.
1283 (_initialize_procfs): Don't register procfs_inferior_created.
1284
1285 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1286
1287 * async-event.c (invoke_async_signal_handlers): Add debug
1288 print.
1289 (check_async_event_handlers): Likewise.
1290 * event-top.c (show_debug_event_loop): New function.
1291 (_initialize_event_top): Register "set debug event-loop"
1292 setting.
1293
1294 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1295
1296 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1297 * debug.h: Remove.
1298 * infrun.c: Include gdbsupport/common-debug.h.
1299 * linux-nat.c: Likewise.
1300
1301 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1302
1303 * async-event.h (create_async_signal_handler): Add name
1304 parameter.
1305 (create_async_event_handler): Likewise.
1306 * async-event.c (struct async_signal_handler) <name>: New field.
1307 (struct async_event_handler) <name>: New field.
1308 (create_async_signal_handler): Assign name.
1309 (create_async_event_handler): Assign name.
1310 * event-top.c (async_init_signals): Pass name when creating
1311 handler.
1312 * infrun.c (_initialize_infrun): Likewise.
1313 * record-btrace.c (record_btrace_push_target): Likewise.
1314 * record-full.c (record_full_open): Likewise.
1315 * remote-notif.c (remote_notif_state_allocate): Likewise.
1316 * remote.c (remote_target::open_1): Likewise.
1317 * tui/tui-win.c (tui_initialize_win): Likewise.
1318
1319 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1320
1321 * async-event.c (initialize_async_signal_handlers): Pass name to
1322 add_file_handler
1323 * event-top.c (ui_register_input_event_handler): Likewise.
1324 * linux-nat.c (linux_nat_target::async): Likewise.
1325 * run-on-main-thread.c (_initialize_run_on_main_thread):
1326 Likewise
1327 * ser-base.c (reschedule): Likewise.
1328 (ser_base_async): Likewise.
1329 * tui/tui-io.c: Likewise.
1330 * top.h (struct ui) <num>: New field.
1331 * top.c (highest_ui_num): New variable.
1332 (ui::ui): Initialize num.
1333
1334 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * observable.h <inferior_created>: Remove parameters. Update all
1337 listeners.
1338 * inferior.h (post_create_inferior): Remove target parameter.
1339 Update all callers.
1340
1341 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1342
1343 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1344 and DW_MACRO_undef_strx.
1345 (dwarf_decode_macros): Likewise
1346 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1347 which is the value of DW_AT_str_offsets_base.
1348 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1349 str_offsets_base.
1350
1351 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1352
1353 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1354
1355 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1356
1357 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1358 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1359
1360 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1361
1362 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1363
1364 2020-09-30 Tom de Vries <tdevries@suse.de>
1365
1366 PR symtab/26683
1367 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1368
1369 2020-09-30 Tom Tromey <tromey@adacore.com>
1370
1371 * dwarf2/read.c (handle_variant): Use constant_value.
1372
1373 2020-09-29 Tom Tromey <tom@tromey.com>
1374
1375 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1376 (read_file_scope, dwarf2_get_pc_bounds)
1377 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1378 (read_structure_type, handle_struct_member_die)
1379 (read_enumeration_type, read_array_type, read_set_type)
1380 (read_tag_pointer_type, read_tag_reference_type)
1381 (read_subroutine_type, read_base_type, read_subrange_type)
1382 (read_full_die_1, partial_die_info::read)
1383 (partial_die_info::read, by, new_symbol)
1384 (dwarf2_const_value_data, dwarf2_const_value_attr)
1385 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1386 (prepare_one_comp_unit): Update.
1387 * dwarf2/attribute.h (DW_UNSND): Remove.
1388
1389 2020-09-29 Tom Tromey <tom@tromey.com>
1390
1391 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1392 (read_subroutine_type, partial_die_info::read)
1393 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1394 (dwarf2_add_member_fn): Update.
1395 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1396 * dwarf2/attribute.c (attribute::as_boolean): New method.
1397
1398 2020-09-29 Tom Tromey <tom@tromey.com>
1399
1400 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1401 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1402 method.
1403 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1404
1405 2020-09-29 Tom Tromey <tom@tromey.com>
1406
1407 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1408 the attribute's form.
1409
1410 2020-09-29 Tom Tromey <tom@tromey.com>
1411
1412 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1413 (dwarf2_add_member_fn): Update.
1414 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1415 * dwarf2/attribute.c (attribute::defaulted): New method, from
1416 is_valid_DW_AT_defaulted.
1417
1418 2020-09-29 Tom Tromey <tom@tromey.com>
1419
1420 * dwarf2/read.c (dw2_get_file_names_reader)
1421 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1422 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1423 (dwarf2_symbol_mark_computed): Use as_unsigned.
1424 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1425 method.
1426 <form_is_section_offset>: Update comment.
1427
1428 2020-09-29 Tom Tromey <tom@tromey.com>
1429
1430 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1431 dwarf2_default_access_attribute. Look up attribute.
1432 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1433 Update.
1434
1435 2020-09-29 Tom Tromey <tom@tromey.com>
1436
1437 * dwarf2/read.c (skip_one_die): Update.
1438 (read_full_die_1): Change how reprocessing is done.
1439 (partial_die_info::read): Update.
1440 (read_attribute_value): Remove need_reprocess parameter.
1441 (read_attribute): Likewise.
1442 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1443 New method.
1444
1445 2020-09-29 Tom Tromey <tom@tromey.com>
1446
1447 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1448 (dwarf2_const_value_attr, dump_die_shallow)
1449 (dwarf2_fetch_constant_bytes): Update.
1450 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1451 comment.
1452 <set_address>: New method.
1453 (DW_ADDR): Remove.
1454 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1455 (attribute::as_string, attribute::as_address): Add assert.
1456
1457 2020-09-29 Tom Tromey <tom@tromey.com>
1458
1459 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1460 (read_attribute_reprocess, read_attribute_value): Update.
1461 (read_attribute): Clear requires_reprocessing.
1462 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1463 form_requires_reprocessing>: New methods.
1464 <string_init>: Clear requires_reprocessing.
1465 <set_unsigned_reprocess>: New method.
1466 <name>: Shrink by one bit.
1467 <requires_reprocessing>: New member.
1468 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1469 method.
1470
1471 2020-09-29 Tom Tromey <tom@tromey.com>
1472
1473 * dwarf2/read.c (read_attribute_value): Update.
1474 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1475 set_unsigned>: New methods.
1476 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1477
1478 2020-09-29 Tom Tromey <tom@tromey.com>
1479
1480 * dwarf2/read.c (get_alignment, read_array_order)
1481 (read_attribute_value, dwarf2_const_value_attr)
1482 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1483 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1484 New methods.
1485 (DW_SND): Remove.
1486
1487 2020-09-29 Tom Tromey <tom@tromey.com>
1488
1489 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1490 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1491 Update.
1492 * dwarf2/attribute.h (struct attribute) <as_signature,
1493 set_signature>: New methods.
1494 (DW_SIGNATURE): Remove.
1495
1496 2020-09-29 Tom Tromey <tom@tromey.com>
1497
1498 * dwarf2/read.c (read_call_site_scope)
1499 (handle_data_member_location, dwarf2_add_member_fn)
1500 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1501 (partial_die_info::read, read_attribute_value)
1502 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1503 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1504 (dwarf2_symbol_mark_computed): Update.
1505 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1506 methods.
1507 (DW_BLOCK): Remove.
1508 * dwarf2/attribute.c (attribute::form_is_block): Add
1509 DW_FORM_data16.
1510
1511 2020-09-29 Tom Tromey <tom@tromey.com>
1512
1513 * dwarf2/read.c (read_cutu_die_from_dwo)
1514 (read_attribute_reprocess, read_attribute_value, read_attribute)
1515 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1516 (dwarf2_fetch_constant_bytes): Update.
1517 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1518 <set_string_noncanonical, set_string_canonical>: New methods.
1519 <string_is_canonical>: Update comment.
1520 <canonical_string_p>: Add assert.
1521 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1522 * dwarf2/attribute.c (attribute::form_is_string): New method.
1523 (attribute::string): Use it.
1524
1525 2020-09-29 Tom Tromey <tom@tromey.com>
1526
1527 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1528 (dump_die_shallow): Use canonical_string_p.
1529 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1530 method.
1531
1532 2020-09-29 Tom Tromey <tom@tromey.com>
1533
1534 * dwarf2/read.c (partial_die_info::read)
1535 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1536 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1537 attribute::as_string.
1538
1539 2020-09-29 Tom Tromey <tom@tromey.com>
1540
1541 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1542 DW_ADDR.
1543 (attribute::string): Don't use DW_STRING.
1544 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1545 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1546
1547 2020-09-29 Tom Tromey <tom@tromey.com>
1548
1549 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1550 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1551 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1552 * dwarf2/attribute.h (struct attribute): Rename methods.
1553 * dwarf2/attribute.c (attribute::as_address): Rename from
1554 value_as_address.
1555 (attribute::as_string): Rename from value_as_string.
1556
1557 2020-09-29 Tom Tromey <tom@tromey.com>
1558
1559 * dwarf2/read.c (partial_die_info::read) <case
1560 DW_AT_linkage_name>: Use value_as_string.
1561 (dwarf2_string_attr): Use value_as_string.
1562 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1563 method.
1564 * dwarf2/attribute.c (attribute::value_as_string): New method.
1565
1566 2020-09-29 Pedro Alves <pedro@palves.net>
1567
1568 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1569 defined before using '#pragma GCC diagnostic' instead of checking
1570 __clang__.
1571
1572 2020-09-28 Tom Tromey <tom@tromey.com>
1573
1574 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1575 (handle_signal_stop): Update.
1576 * procfs.c (procfs_target::insert_watchpoint): Update.
1577 * target.h (target_have_steppable_watchpoint): Now a function.
1578
1579 2020-09-28 Tom Tromey <tom@tromey.com>
1580
1581 * infrun.c (set_schedlock_func): Update.
1582 * target.h (target_can_lock_scheduler): Now a function.
1583
1584 2020-09-28 Tom Tromey <tom@tromey.com>
1585
1586 * inferior.h (class inferior) <has_execution>: Update.
1587 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1588 * valops.c (find_function_in_inferior)
1589 (value_allocate_space_in_inferior): Update.
1590 * top.c (kill_or_detach): Update.
1591 * target.c (target_preopen, set_target_permissions): Update.
1592 (target_has_execution_current): Remove.
1593 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1594 Update.
1595 * solib.c (update_solib_list, reload_shared_libraries): Update.
1596 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1597 * solib-dsbt.c (enable_break): Update.
1598 * score-tdep.c (score7_fetch_inst): Update.
1599 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1600 Update.
1601 * remote.c (remote_target::start_remote)
1602 (remote_target::remote_check_symbols, remote_target::open_1)
1603 (remote_target::remote_detach_1, remote_target::verify_memory)
1604 (remote_target::xfer_partial, remote_target::read_description)
1605 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1606 * record-full.c (record_full_open_1): Update.
1607 * record-btrace.c (record_btrace_target_open): Update.
1608 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1609 (value_nsstring): Update.
1610 * linux-thread-db.c (add_thread_db_info)
1611 (thread_db_find_new_threads_silently, check_thread_db_callback)
1612 (try_thread_db_load_1, record_thread): Update.
1613 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1614 Update.
1615 * linux-fork.c (checkpoint_command): Update.
1616 * infrun.c (set_non_stop, set_observer_mode)
1617 (check_multi_target_resumption, for_each_just_stopped_thread)
1618 (maybe_remove_breakpoints, normal_stop)
1619 (class infcall_suspend_state): Update.
1620 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1621 (info_program_command, attach_command): Update.
1622 * infcall.c (call_function_by_hand_dummy): Update.
1623 * inf-loop.c (inferior_event_handler): Update.
1624 * gcore.c (gcore_command, derive_heap_segment): Update.
1625 * exec.c (exec_file_command): Update.
1626 * eval.c (evaluate_subexp): Update.
1627 * compile/compile.c (compile_to_object): Update.
1628 * cli/cli-dump.c (restore_command): Update.
1629 * breakpoint.c (update_watchpoint)
1630 (update_inserted_breakpoint_locations)
1631 (insert_breakpoint_locations, get_bpstat_thread): Update.
1632 * target.h (target_has_execution): Remove macro.
1633 (target_has_execution_current): Don't declare.
1634 (target_has_execution): Rename from target_has_execution_1. Add
1635 argument default.
1636
1637 2020-09-28 Tom Tromey <tom@tromey.com>
1638
1639 * mi/mi-main.c (exec_reverse_continue)
1640 (mi_cmd_list_target_features): Update.
1641 * infrun.c (set_exec_direction_func): Update.
1642 * target.c (default_execution_direction): Update.
1643 * reverse.c (exec_reverse_once): Update.
1644 * target.h (target_can_execute_reverse): Now a function.
1645
1646 2020-09-28 Tom Tromey <tom@tromey.com>
1647
1648 * tui/tui-regs.c (tui_get_register)
1649 (tui_data_window::show_registers): Update.
1650 * thread.c (scoped_restore_current_thread::restore)
1651 (scoped_restore_current_thread::scoped_restore_current_thread):
1652 Update.
1653 * regcache-dump.c (regcache_print): Update.
1654 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1655 Update.
1656 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1657 * mep-tdep.c (current_me_module, current_options): Update.
1658 * linux-thread-db.c (thread_db_load): Update.
1659 * infcmd.c (registers_info, info_vector_command)
1660 (info_float_command): Update.
1661 * ia64-tdep.c (ia64_frame_prev_register)
1662 (ia64_sigtramp_frame_prev_register): Update.
1663 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1664 * gcore.c (derive_stack_segment): Update.
1665 * frame.c (get_current_frame, has_stack_frames): Update.
1666 * findvar.c (language_defn::read_var_value): Update.
1667 * arm-tdep.c (arm_pc_is_thumb): Update.
1668 * target.c (target_has_registers): Rename from
1669 target_has_registers_1.
1670 * target.h (target_has_registers): Remove macro.
1671 (target_has_registers): Rename from target_has_registers_1.
1672
1673 2020-09-28 Tom Tromey <tom@tromey.com>
1674
1675 * windows-tdep.c (tlb_make_value): Update.
1676 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1677 * thread.c (scoped_restore_current_thread::restore)
1678 (scoped_restore_current_thread::scoped_restore_current_thread)
1679 (thread_command): Update.
1680 * stack.c (backtrace_command_1, frame_apply_level_command)
1681 (frame_apply_all_command, frame_apply_command): Update.
1682 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1683 Update.
1684 * gcore.c (derive_stack_segment): Update.
1685 * frame.c (get_current_frame, has_stack_frames): Update.
1686 * auxv.c (info_auxv_command): Update.
1687 * ada-tasks.c (ada_build_task_list): Update.
1688 * target.c (target_has_stack): Rename from target_has_stack_1.
1689 * target.h (target_has_stack): Remove macro.
1690 (target_has_stack): Rename from target_has_stack_1.
1691
1692 2020-09-28 Tom Tromey <tom@tromey.com>
1693
1694 * target.c (target_has_memory): Rename from target_has_memory_1.
1695 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1696 * thread.c (scoped_restore_current_thread::restore)
1697 (scoped_restore_current_thread::scoped_restore_current_thread):
1698 Update.
1699 * frame.c (get_current_frame, has_stack_frames): Update.
1700 * target.h (target_has_memory): Remove macro.
1701 (target_has_memory): Rename from target_has_memory_1.
1702
1703 2020-09-28 Tom Tromey <tom@tromey.com>
1704
1705 * target.c (target_has_all_memory_1): Remove.
1706 * target.h (target_has_all_memory): Remove define.
1707 (target_has_all_memory_1): Don't declare.
1708
1709 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1710
1711 * ser-base.c: Adjust comments formatting.
1712
1713 2020-09-27 Tom Tromey <tom@tromey.com>
1714
1715 PR tui/25342:
1716 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1717
1718 2020-09-27 Tom Tromey <tom@tromey.com>
1719
1720 PR tui/25342:
1721 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1722
1723 2020-09-27 Tom Tromey <tom@tromey.com>
1724
1725 * unittests/tui-selftests.c: Update.
1726 * tui/tui-winsource.h (struct tui_source_window_base)
1727 <extra_margin, show_line_number, refresh_pad>: New methods.
1728 <m_max_length, m_pad>: New members.
1729 (tui_copy_source_line): Update.
1730 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1731 first_col, line_width, ndigits parameters. Add length.
1732 (tui_source_window_base::show_source_line): Write to pad. Line
1733 number now 0-based.
1734 (tui_source_window_base::refresh_pad): New method.
1735 (tui_source_window_base::show_source_content): Write to pad. Call
1736 refresh_pad.
1737 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1738 not refill.
1739 (tui_source_window_base::update_exec_info): Call
1740 show_line_number.
1741 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1742 method.
1743 <m_digits>: New member.
1744 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1745 and m_max_length.
1746 (tui_source_window::show_line_number): New method.
1747 * tui/tui-io.h (tui_puts): Fix comment.
1748 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1749 m_max_length.
1750
1751 2020-09-27 Tom Tromey <tom@tromey.com>
1752
1753 * tui/tui-winsource.c
1754 (tui_source_window_base::set_is_exec_point_at): Don't call
1755 show_source_line.
1756
1757 2020-09-27 Tom Tromey <tom@tromey.com>
1758
1759 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1760 method.
1761 <erase>: Update.
1762 <cursor_x, cursor_y>: Remove.
1763 <m_inner_window>: New member.
1764 (tui_py_window::rerender): Create inner window.
1765 (tui_py_window::output): Write to inner window.
1766
1767 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1768
1769 PR python/26586
1770 * cli/cli-script.c (execute_control_commands): don't set
1771 instream to nullptr here as this breaks the from_tty argument
1772 to gdb.execute in Python.
1773 (execute_user_command): set instream to nullptr here instead.
1774
1775 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1776
1777 * infrun.h (infrun_debug_printf): Fix formatting.
1778 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1779
1780 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1781
1782 * compile/compile-object-load.h (struct munmap_list): Add
1783 explicitly-defined move constructor.
1784
1785 2020-09-24 Tom Tromey <tromey@adacore.com>
1786
1787 PR tui/26638:
1788 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1789 method.
1790 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1791 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1792 (tui_prev_win): Rewrite.
1793
1794 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1795
1796 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1797 in WOW64 processes as SIGINT.
1798 * nat/windows-nat.h: Make wow64_process a shared variable.
1799 * windows-nat.c: Remove static wow64_process variable.
1800
1801 2020-09-23 Tom Tromey <tom@tromey.com>
1802
1803 PR symtab/25470:
1804 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1805 offset and bit size.
1806 * printcmd.c (print_scalar_formatted): Handle zero-length
1807 integer.
1808 (print_scalar_formatted): Use bit_size_differs_p.
1809 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1810 constant.
1811 (union type_specific): <int_stuff>: New member.
1812 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1813 methods.
1814 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1815 TYPE_SPECIFIC_FIELD.
1816 (recursive_dump_type, copy_type_recursive): Update.
1817 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1818 DW_AT_data_bit_offset.
1819
1820 2020-09-23 Tom Tromey <tom@tromey.com>
1821
1822 * utils.h (class gdb_argv): Add move operators.
1823 <append>: New methods.
1824 * compile/compile.c (build_argc_argv): Remove.
1825 (compile_args_argc): Remove.
1826 (compile_args_argv): Change type.
1827 (set_compile_args): Simplify.
1828 (append_args): Remove.
1829 (filter_args): Remove argcp parameter.
1830 (get_args): Return gdb_argv. Simplify.
1831 (compile_to_object): Update.
1832
1833 2020-09-23 Tom Tromey <tom@tromey.com>
1834
1835 * compile/compile-object-run.c (do_module_cleanup)
1836 <~do_module_cleanup> :Remove.
1837 (do_module_cleanup): Update.
1838 * compile/compile-object-load.h (struct munmap_list): Add move
1839 assignment operator.
1840 <source_file>: Now a std::string.
1841 <munmap_list>: Rename. No longer a pointer.
1842 * compile/compile-object-load.c (struct setup_sections_data): Add
1843 constructor.
1844 <setup_one_section>: Declare.
1845 <munmap_list>: Move earlier.
1846 <m_bfd>: New member.
1847 <m_last_size, m_last_section_first, m_last_prot,
1848 m_last_max_alignment>: Rename, add initializers where needed.
1849 (setup_sections_data::setup_one_section): Rename from
1850 setup_sections. Update.
1851 (compile_object_load): Update. Don't use bfd_map_over_sections.
1852
1853 2020-09-23 Tom Tromey <tom@tromey.com>
1854
1855 * compile/compile-object-run.c (struct do_module_cleanup): Add
1856 parameters to constructor. Update destructor.
1857 <source_file, scope, scope_data, out_value_type, out_value_addr,
1858 munmap_list_head, objfile_name_string>: Remove.
1859 <module>: New member.
1860 (do_module_cleanup): Update.
1861 (compile_object_run): Update.
1862
1863 2020-09-23 Tom Tromey <tom@tromey.com>
1864
1865 * compile/compile.c (eval_compile_command): Update.
1866 * compile/compile-object-run.h (compile_object_run): Take a
1867 compile_module_up.
1868 * compile/compile-object-run.c (compile_object_run): Take a
1869 compile_module_up.
1870 * compile/compile-object-load.h (struct compile_module): Add
1871 constructor, destructor.
1872 (compile_module_up): New typedef.
1873 (compile_object_load): Return compile_object_up.
1874 * compile/compile-object-load.c (compile_object_load): Return
1875 compile_module_up.
1876
1877 2020-09-23 Tom Tromey <tom@tromey.com>
1878
1879 * compile/compile-object-run.c (struct do_module_cleanup): Add
1880 constructor, destructor.
1881 <objfile_name_string>: Don't use struct hack.
1882 (do_module_cleanup): Use delete.
1883 (compile_object_run): Use new.
1884
1885 2020-09-23 Tom Tromey <tom@tromey.com>
1886
1887 * compile/compile-cplus-types.c
1888 (compile_cplus_convert_struct_or_union): Use std::vector.
1889 (compile_cplus_convert_func): Likewise.
1890 * compile/compile-c-types.c (convert_func): Use std::vector.
1891
1892 2020-09-21 Tom Tromey <tromey@adacore.com>
1893
1894 * sparc-tdep.c (sparc32_skip_prologue): Use
1895 skip_prologue_using_sal.
1896
1897 2020-09-19 Tom Tromey <tom@tromey.com>
1898
1899 * symfile.c (add_section_size_callback): Remove.
1900 (load_one_section): Rename from load_section_callback. Change
1901 parameters.
1902 (generic_load): Use foreach.
1903
1904 2020-09-19 Tom Tromey <tom@tromey.com>
1905
1906 * exec.c (add_to_section_table): Remove.
1907 (build_section_table): Use foreach.
1908
1909 2020-09-19 Tom Tromey <tom@tromey.com>
1910
1911 * elfread.c (elf_locate_sections): Change parameters.
1912 (elf_symfile_read): Use foreach.
1913
1914 2020-09-19 Tom Tromey <tom@tromey.com>
1915
1916 * cli/cli-dump.c (struct callback_data): Remove.
1917 (restore_one_section): Rename from restore_section_callback.
1918 Change parameters.
1919 (restore_binary_file): Change parameters.
1920 (restore_command): Use foreach.
1921
1922 2020-09-19 Tom Tromey <tom@tromey.com>
1923
1924 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1925 (gcore_copy_callback): Likewise.
1926 (gcore_memory_sections): Use foreach.
1927
1928 2020-09-19 Tom Tromey <tom@tromey.com>
1929
1930 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1931 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1932 parameters.
1933 (generic_elf_osabi_sniffer): Use foreach.
1934 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1935 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1936
1937 2020-09-19 Tom Tromey <tom@tromey.com>
1938
1939 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1940 (dwarf2_get_dwz_file): Use foreach.
1941 (dwarf2_locate_dwo_sections): Change parameters.
1942 (open_and_init_dwo_file): Use foreach.
1943 (dwarf2_locate_common_dwp_sections): Change parameters.
1944 (open_and_init_dwp_file): Use foreach.
1945
1946 2020-09-19 Tom Tromey <tom@tromey.com>
1947
1948 * symfile.h: (find_lowest_section): Don't declare.
1949 * symfile.c (find_lowest_section): Now static. Change
1950 parameters.
1951 (struct place_section_arg): Remove.
1952 (place_section): Change parameters.
1953 (addr_info_make_relative): Use foreach.
1954 (symfile_dummy_outputs): Remove.
1955 (default_symfile_relocate): Use foreach.
1956
1957 2020-09-19 Tom Tromey <tom@tromey.com>
1958
1959 * objfiles.c (add_to_objfile_sections): Rename from
1960 add_to_objfile_sections_full.
1961 (add_to_objfile_sections): Remove.
1962 (build_objfile_section_table): Use foreach.
1963
1964 2020-09-19 Tom Tromey <tom@tromey.com>
1965
1966 * stap-probe.c (get_stap_base_address_1): Remove.
1967 (get_stap_base_address): Use foreach.
1968
1969 2020-09-19 Tom Tromey <tom@tromey.com>
1970
1971 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1972 parameters.
1973 (gdb_bfd_close_or_warn): Use foreach.
1974
1975 2020-09-19 Tom Tromey <tom@tromey.com>
1976
1977 * corelow.c (add_to_thread_list): Change parameters.
1978 (core_target_open): Use foreach.
1979
1980 2020-09-19 Tom Tromey <tom@tromey.com>
1981
1982 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1983 existing function.
1984
1985 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1986
1987 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1988 for arrays.
1989
1990 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * eval.c: Remove 'f-lang.h' include.
1993 (value_f90_subarray): Moved to f-lang.c.
1994 (eval_call): Renamed to...
1995 (evaluate_subexp_do_call): ...this, is no longer static, header
1996 comment moved into header file.
1997 (evaluate_funcall): Update call to eval_call.
1998 (skip_undetermined_arglist): Moved to f-lang.c.
1999 (fortran_value_subarray): Likewise.
2000 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2001 moved to evaluate_subexp_f.
2002 (calc_f77_array_dims): Moved to f-lang.c
2003 * expprint.c (print_subexp_funcall): New function.
2004 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2005 moved to print_subexp_f, OP_FUNCALL uses new function.
2006 (dump_subexp_body_funcall): New function.
2007 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2008 moved to dump_subexp_f, OP_FUNCALL uses new function.
2009 * expression.h (evaluate_subexp_do_call): Declare.
2010 * f-lang.c (value_f90_subarray): Moved from eval.c.
2011 (skip_undetermined_arglist): Likewise.
2012 (calc_f77_array_dims): Likewise.
2013 (fortran_value_subarray): Likewise.
2014 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2015 (operator_length_f): Likewise.
2016 (print_subexp_f): Likewise.
2017 (dump_subexp_body_f): Likewise.
2018 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2019 declaration of this operation to here.
2020 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2021 support moved to operator_length_f.
2022 * parser-defs.h (dump_subexp_body_funcall): Declare.
2023 (print_subexp_funcall): Declare.
2024 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2025 fortran-operator.def.
2026
2027 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2028
2029 * eval.c (fortran_value_subarray): New function, content is taken
2030 from...
2031 (evaluate_subexp_standard): ...here, in two places. Now arrays
2032 and strings both call the new function.
2033 (calc_f77_array_dims): Add header comment, handle strings.
2034
2035 2020-09-18 Victor Collod <vcollod@nvidia.com>
2036
2037 PR gdb/26635
2038 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2039 (i386_analyze_prologue): Call i386_skip_endbr.
2040
2041 2020-09-18 Tom Tromey <tromey@adacore.com>
2042
2043 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2044 (windows_nat_target::wait): Update.
2045 * target/wait.h (enum target_wait_flag): New. Use
2046 DEF_ENUM_FLAGS_TYPE.
2047 * target/target.h (target_wait): Change type of options.
2048 * target.h (target_options_to_string, default_target_wait):
2049 Update.
2050 (struct target_ops) <wait>: Change type of options.
2051 * target.c (target_wait, default_target_wait, do_option): Change
2052 type of "options".
2053 (target_options_to_string): Likewise.
2054 * target-delegates.c: Rebuild.
2055 * target-debug.h (target_debug_print_target_wait_flags): Rename
2056 from target_debug_print_options.
2057 * sol-thread.c (class sol_thread_target) <wait>: Update.
2058 (sol_thread_target::wait): Update.
2059 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2060 (rs6000_nat_target::wait): Update.
2061 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2062 Update.
2063 (remote_target::wait_ns, remote_target::wait_as): Change type of
2064 "options".
2065 (remote_target::wait): Update.
2066 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2067 (gdbsim_target::wait): Update.
2068 * record-full.c (class record_full_base_target) <wait>: Update.
2069 (record_full_wait_1): Change type of "options".
2070 (record_full_base_target::wait): Update.
2071 * record-btrace.c (class record_btrace_target) <wait>: Update.
2072 (record_btrace_target::wait): Update.
2073 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2074 Update.
2075 (ravenscar_thread_target::wait): Update.
2076 * procfs.c (class procfs_target) <wait>: Update.
2077 (procfs_target::wait): Update.
2078 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2079 * obsd-nat.c (obsd_nat_target::wait): Update.
2080 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2081 (nto_procfs_target::wait): Update.
2082 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2083 * nbsd-nat.c (nbsd_wait): Change type of "options".
2084 (nbsd_nat_target::wait): Update.
2085 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2086 (thread_db_target::wait): Update.
2087 * linux-nat.h (class linux_nat_target) <wait>: Update.
2088 * linux-nat.c (linux_nat_target::wait): Update.
2089 (linux_nat_wait_1): Update.
2090 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2091 "options".
2092 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2093 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2094 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2095 (go32_nat_target::wait): Update.
2096 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2097 * gnu-nat.c (gnu_nat_target::wait): Update.
2098 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2099 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2100 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2101 * darwin-nat.c (darwin_nat_target::wait): Update.
2102 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2103 (bsd_uthread_target::wait): Update.
2104 * aix-thread.c (class aix_thread_target) <wait>: Update.
2105 (aix_thread_target::wait): Update.
2106
2107 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * compile/compile-object-run.c (create_copied_type_recursive): New
2110 function.
2111 (compile_object_run): Use new function.
2112
2113 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2114
2115 * NEWS: Mention x86_64 Cygwin core file support.
2116
2117 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2118
2119 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2120 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2121
2122 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2123
2124 * windows-tdep.h: Add prototypes.
2125 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2126 (i386_windows_core_pid_to_str): Move and rename ...
2127 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2128 (windows_core_pid_to_str): ... and here.
2129 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2130
2131 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2132 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2133 (amd64_windows_init_abi_common): ... and register.
2134
2135 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2136
2137 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2138 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2139
2140 2020-09-18 Pedro Alves <pedro@palves.net>
2141
2142 PR gdb/26631
2143 * thread.c (thread_find_command): Switch inferior before calling
2144 target methods.
2145
2146 2020-09-17 Tom Tromey <tromey@adacore.com>
2147
2148 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2149 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2150 (tdesc_arch_data_up): New typedef.
2151 (tdesc_use_registers, tdesc_data_alloc): Update.
2152 (tdesc_data_cleanup): Don't declare.
2153 * target-descriptions.c (tdesc_data_alloc): Return a
2154 tdesc_arch_data_up.
2155 (tdesc_arch_data_deleter::operator()): Rename from
2156 tdesc_data_cleanup. Change argument type.
2157 (tdesc_use_registers): Change early_data to an rvalue reference.
2158 (tdesc_use_registers): Don't use delete.
2159 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2160 * s390-tdep.c (s390_gdbarch_init): Update.
2161 * rx-tdep.c (rx_gdbarch_init): Update.
2162 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2163 * riscv-tdep.c (riscv_gdbarch_init): Update.
2164 * or1k-tdep.c (or1k_gdbarch_init): Update.
2165 * nios2-tdep.c (nios2_gdbarch_init): Update.
2166 * nds32-tdep.c (nds32_gdbarch_init): Update.
2167 * mips-tdep.c (mips_gdbarch_init): Update.
2168 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2169 * m68k-tdep.c (m68k_gdbarch_init): Update.
2170 * i386-tdep.c (i386_gdbarch_init): Update.
2171 * arm-tdep.c (arm_gdbarch_init): Update.
2172 * arc-tdep.c (arc_tdesc_init): Update.
2173 (arc_gdbarch_init): Update.
2174 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2175
2176 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2177
2178 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2179 for WOW64 processes.
2180
2181 2020-09-17 Tom Tromey <tom@tromey.com>
2182
2183 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2184
2185 2020-09-17 Tom Tromey <tom@tromey.com>
2186
2187 * value.c (preserve_values): Update.
2188 * python/py-type.c (save_objfile_types): Update.
2189 * guile/scm-type.c (save_objfile_types): Update.
2190 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2191 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2192 * compile/compile-object-run.c (compile_object_run): Update.
2193
2194 2020-09-17 Tom Tromey <tom@tromey.com>
2195
2196 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2197 Remove.
2198 <m_table>: Now htab_up.
2199 * typeprint.c (typedef_hash_table::recursively_update)
2200 (typedef_hash_table::add_template_parameters)
2201 (typedef_hash_table::typedef_hash_table): Update.
2202 (typedef_hash_table::~typedef_hash_table): Remove.
2203 (typedef_hash_table::typedef_hash_table)
2204 (typedef_hash_table::find_global_typedef)
2205 (typedef_hash_table::find_typedef): Update.
2206
2207 2020-09-17 Tom Tromey <tom@tromey.com>
2208
2209 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2210
2211 2020-09-17 Tom Tromey <tom@tromey.com>
2212
2213 * linespec.c (class decode_compound_collector)
2214 <~decode_compound_collector>: Remove.
2215 <m_unique_syms>: Now htab_up.
2216 (decode_compound_collector::operator ()): Update.
2217 (class symtab_collector) <~symtab_collector>: Remove.
2218 <m_symtab_table>: Now htab_up.
2219 (symtab_collector::operator ()): Update.
2220
2221 2020-09-17 Tom Tromey <tom@tromey.com>
2222
2223 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2224 (filename_seen_cache::clear): Update.
2225 (~filename_seen_cache): Remove.
2226 (filename_seen_cache::seen): Update.
2227 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2228 htab_up.
2229 <~filename_seen_cache>: Remove.
2230 <traverse>: Update.
2231
2232 2020-09-17 Tom Tromey <tom@tromey.com>
2233
2234 * completer.c (completion_tracker::discard_completions)
2235 (completion_tracker::~completion_tracker)
2236 (completion_tracker::maybe_add_completion)
2237 (completion_tracker::remove_completion)
2238 (completion_tracker::recompute_lowest_common_denominator)
2239 (completion_tracker::build_completion_result): Update.
2240 * completer.h (class completion_tracker) <have_completions>:
2241 Update.
2242 <m_entries_hash>: Now htab_up.
2243
2244 2020-09-17 Tom Tromey <tom@tromey.com>
2245
2246 * breakpoint.c (ambiguous_names_p): Use htab_up.
2247
2248 2020-09-17 Tom Tromey <tom@tromey.com>
2249
2250 * auto-load.c (struct auto_load_pspace_info)
2251 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2252 <loaded_script_files, loaded_script_texts>: Change type to
2253 htab_up.
2254 (~auto_load_pspace_info) Remove.
2255 (init_loaded_scripts_info, maybe_add_script_file)
2256 (maybe_add_script_text, auto_load_info_scripts): Update.
2257
2258 2020-09-17 Tom Tromey <tromey@adacore.com>
2259
2260 * c-exp.y (name_obstack): Now static.
2261
2262 2020-09-17 Chungyi Chi <demonic@csie.io>
2263
2264 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2265
2266 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2267
2268 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2269 (add_solib_catchpoint): Likewise.
2270 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2271 to bool.
2272 (add_solib_catchpoint): Change int parameter/variable to bool.
2273 (catch_load_or_unload): Likewise.
2274 (init_catchpoint): Likewise.
2275 (create_fork_vfork_event_catchpoint): Likewise.
2276 (catch_fork_command_1): Likewise.
2277 (catch_exec_command_1): Likewise.
2278
2279 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2282 Change instance_flags to m_instance_flags.
2283
2284 2020-09-16 Tom Tromey <tromey@adacore.com>
2285
2286 PR gdb/26598:
2287 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2288
2289 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2290
2291 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2292 PL_FLAG_EXEC.
2293 (fbsd_nat_target::insert_exec_catchpoint)
2294 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2295 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2296 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2297
2298 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2299
2300 * configure.ac: Remove check for kinfo_getvmmap().
2301 * configure, config.in: Regenerate.
2302 * fbsd-nat.c (fbsd_read_mapping): Remove
2303 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2304 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2305 kinfo_get_vmmap() are always present.
2306
2307 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2308
2309 * fbsd-nat.c: Always include support for
2310 TARGET_OBJECT_SIGNAL_INFO.
2311
2312 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2313
2314 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2315 sysctl and remove procfs fallback.
2316
2317 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2318
2319 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2320 * fbsd-nat.h: Likewise.
2321
2322 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2323
2324 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2325 argument.
2326
2327 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2328
2329 * ada-lang.c (ada_language_data): Delete.
2330 (ada_language): Remove references to ada_language_data.
2331 * c-lang.c (c_language_data): Delete.
2332 (c_language): Remove references to c_language_data.
2333 (cplus_language_data): Delete.
2334 (cplus_language): Remove references to cplus_language_data.
2335 (asm_language_data): Delete.
2336 (asm_language): Remove references to asm_language_data.
2337 (minimal_language_data): Delete.
2338 (minimal_language): Remove references to minimal_language_data.
2339 * d-lang.c (d_language_data): Delete.
2340 (d_language): Remove references to d_language_data.
2341 * f-lang.c (f_language_data): Delete.
2342 (f_language): Remove references to f_language_data.
2343 * go-lang.c (go_language_data): Delete.
2344 (go_language): Remove references to go_language_data.
2345 * language.c (unknown_language_data): Delete.
2346 (unknown_language): Remove references to unknown_language_data.
2347 (auto_language_data): Delete.
2348 (auto_language): Remove references to auto_language_data.
2349 * language.h (language_data): Delete struct.
2350 (language_defn): No longer inherit from language_data.
2351 * m2-lang.c (m2_language_data): Delete.
2352 (m2_language): Remove references to m2_language_data.
2353 * objc-lang.c (objc_language_data): Delete.
2354 (objc_language): Remove references to objc_language_data.
2355 * opencl-lang.c (opencl_language_data): Delete.
2356 (opencl_language): Remove references to opencl_language_data.
2357 * p-lang.c (pascal_language_data): Delete.
2358 (pascal_language): Remove references to pascal_language_data.
2359 * rust-lang.c (rust_language_data): Delete.
2360 (rust_language): Remove references to rust_language_data.
2361
2362 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2363
2364 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2365 initializer.
2366 (ada_language::opcode_print_table): New member function.
2367 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2368 (c_language::opcode_print_table): New member function.
2369 (cplus_language_data): Remove la_op_print_tab initializer.
2370 (cplus_language::opcode_print_table): New member function.
2371 (asm_language_data): Remove la_op_print_tab initializer.
2372 (asm_language::opcode_print_table): New member function.
2373 (minimal_language_data): Remove la_op_print_tab initializer.
2374 (minimal_language::opcode_print_table): New member function.
2375 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2376 (d_language::opcode_print_table): New member function.
2377 * expprint.c (print_subexp_standard): Update call to
2378 opcode_print_table.
2379 (op_string): Likewise.
2380 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2381 (f_language::opcode_print_table): New member function.
2382 * go-lang.c (go_language_data): Remove la_op_print_tab
2383 initializer.
2384 (go_language::opcode_print_table): New member function.
2385 * language.c (unknown_language_data): Remove la_op_print_tab
2386 initializer.
2387 (unknown_language::opcode_print_table): New member function.
2388 (auto_language_data): Remove la_op_print_tab initializer.
2389 (auto_language::opcode_print_table): New member function.
2390 * language.h (language_data): Remove la_op_print_tab field.
2391 (language_defn::opcode_print_table): Declare new member function.
2392 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2393 initializer.
2394 (m2_language::opcode_print_table): New member function.
2395 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2396 initializer.
2397 (objc_language::opcode_print_table): New member function.
2398 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2399 initializer.
2400 (opencl_language::opcode_print_table): New member function.
2401 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2402 initializer.
2403 (pascal_language::opcode_print_table): New member function.
2404 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2405 initializer.
2406 (rust_language::opcode_print_table): New member function.
2407
2408 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2411 (ada_language::expression_ops): New member function.
2412 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2413 (c_language::expression_ops): New member function.
2414 (cplus_language_data): Remove la_exp_desc initializer.
2415 (cplus_language::expression_ops): New member function.
2416 (asm_language_data): Remove la_exp_desc initializer.
2417 (asm_language::expression_ops): New member function.
2418 (minimal_language_data): Remove la_exp_desc initializer.
2419 (minimal_language::expression_ops): New member function.
2420 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2421 (d_language::expression_ops): New member function.
2422 * eval.c (evaluate_subexp): Update call to expression_ops.
2423 * expprint.c (print_subexp): Likewise.
2424 (op_name): Likewise.
2425 (dump_subexp_body): Likewise.
2426 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2427 (f_language::expression_ops): New member function.
2428 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2429 (go_language::expression_ops): New member function.
2430 * language.c (language_defn::expression_ops): New function.
2431 (unknown_language_data): Remove la_exp_desc initializer.
2432 (auto_language_data): Likewise.
2433 * language.h (language_data): Remove la_exp_desc field.
2434 (language_defn::expression_ops): Declare new member function.
2435 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2436 (m2_language::expression_ops): New member function.
2437 * objc-lang.c (objc_language_data): Remove la_exp_desc
2438 initializer.
2439 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2440 initializer.
2441 (opencl_language::expression_ops): New member function.
2442 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2443 * parse.c (operator_length): Update call to expression_ops.
2444 (exp_iterate): Likewise.
2445 * rust-lang.c (rust_language_data): Remove la_exp_desc
2446 initializer.
2447 (ruse_language::expression_ops): New member function.
2448
2449 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2450
2451 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2452 initializer.
2453 (ada_language::varobj_ops): New member function.
2454 * c-lang.c (c_language_data): Remove la_varobj_ops
2455 initializer.
2456 (cplus_language_data): Likewise.
2457 (cplus_language::varobj_ops): New member function.
2458 (asm_language_data): Remove la_varobj_ops initializer.
2459 (minimal_language_data): Likewise.
2460 * d-lang.c (d_language_data): Likewise.
2461 * f-lang.c (f_language_data): Likewise.
2462 * go-lang.c (go_language_data): Likewise.
2463 * language.c (language_defn::varobj_ops): New function.
2464 (unknown_language_data): Remove la_varobj_ops
2465 initializer.
2466 (auto_language_data): Likewise.
2467 * language.h (language_data): Remove la_varobj_ops field.
2468 (language_defn::varobj_ops): Declare new member function.
2469 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2470 * objc-lang.c (objc_language_data): Likewise.
2471 * opencl-lang.c (opencl_language_data): Likewise.
2472 * p-lang.c (pascal_language_data): Likewise.
2473 * rust-lang.c (rust_language_data): Likewise.
2474 * varobj.c (varobj_create): Update call to varobj_ops.
2475 * varobj.h (default_varobj_ops): Delete define.
2476
2477 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2480 initializer.
2481 * c-lang.c (c_language_data): Likewise.
2482 (c_language::macro_expansion): New member function.
2483 (cplus_language_data): Likewise.
2484 (cplus_language::macro_expansion): New member function.
2485 (asm_language_data): Likewise.
2486 (asm_language::macro_expansion): New member function.
2487 (minimal_language_data): Likewise.
2488 (minimal_language::macro_expansion): New member function.
2489 * d-lang.c (d_language_data): Remove la_macro_expansion
2490 initializer.
2491 * f-lang.c (f_language_data): Likewise.
2492 * go-lang.c (go_language_data): Likewise.
2493 * language.c (unknown_language_data): Likewise.
2494 (auto_language_data): Likewise.
2495 * language.h (language_data): Remove la_macro_expansion field.
2496 (language_defn::macro_expansion): New member function.
2497 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2498 initializer.
2499 * objc-lang.c (objc_language_data): Likewise.
2500 (objc_language::macro_expansion): New member function.
2501 * opencl-lang.c (opencl_language_data): Likewise.
2502 (opencl_language::macro_expansion): New member function.
2503 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2504 initializer.
2505 * rust-lang.c (rust_language_data): Likewise.
2506 * symtab.c (default_collect_symbol_completion_matches_break_on):
2507 Update call to macro_expansion.
2508
2509 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * ada-lang.c (ada_language_data): Remove la_array_ordering
2512 initializer.
2513 * c-lang.c (c_language_data): Likewise.
2514 (cplus_language_data): Likewise.
2515 (asm_language_data): Likewise.
2516 (minimal_language_data): Likewise.
2517 * d-lang.c (d_language_data): Likewise.
2518 * dwarf2/read.c (read_array_order): Update for call to
2519 array_ordering.
2520 * f-lang.c (f_language_data): Remove la_array_ordering
2521 initializer.
2522 (f_language::array_ordering): New member function.
2523 * go-lang.c (go_language_data): Remove la_array_ordering
2524 initializer.
2525 * language.c (unknown_language_data): Likewise.
2526 (auto_language_data): Likewise.
2527 * language.h (language_data): Delete la_array_ordering field.
2528 (language_defn::array_ordering): New member function.
2529 * m2-lang.c (m2_language_data): Remove la_array_ordering
2530 initializer.
2531 * objc-lang.c (objc_language_data): Likewise.
2532 * opencl-lang.c (opencl_language_data): Likewise.
2533 * p-lang.c (pascal_language_data): Likewise.
2534 * rust-lang.c (rust_language_data): Likewise.
2535
2536 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2537
2538 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2539 initializer.
2540 * c-lang.c (c_language_data): Likewise.
2541 (cplus_language_data): Likewise.
2542 (asm_language_data): Likewise.
2543 (minimal_language_data): Likewise.
2544 * d-lang.c (d_language_data): Likewise.
2545 * f-lang.c (f_language_data): Likewise.
2546 (f_language::case_sensitivity): New member function.
2547 * go-lang.c (go_language_data): Remove la_case_sensitivity
2548 initializer.
2549 * language.c (enum case_mode): Moved here from language.h.
2550 (case_mode): Make static.
2551 (show_case_command): Update for case_sensitivity being a method.
2552 (set_case_command): Likewise.
2553 (set_range_case): Likewise.
2554 (unknown_language_data): Remove la_case_sensitivity initializer.
2555 (auto_language_data): Likewise.
2556 * language.h (case_mode): Delete, move enum declaration to
2557 language.c.
2558 (language_data): Delete la_case_sensitivity field.
2559 (language_defn::case_sensitivity): New member function.
2560 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2561 initializer.
2562 * objc-lang.c (objc_language_data): Likewise.
2563 * opencl-lang.c (opencl_language_data): Likewise.
2564 * p-lang.c (pascal_language_data): Likewise.
2565 * rust-lang.c (rust_language_data): Likewise.
2566
2567 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * ada-lang.c (ada_language_data): Remove la_range_check
2570 initializer.
2571 * c-lang.c (c_language_data): Likewise.
2572 (cplus_language_data): Likewise.
2573 (asm_language_data): Likewise.
2574 (minimal_language_data): Likewise.
2575 * d-lang.c (d_language_data): Likewise.
2576 * f-lang.c (f_language_data): Likewise.
2577 (f_language::range_checking_on_by_default): New member function.
2578 * go-lang.c (go_language_data): Remove la_range_check initializer.
2579 * language.c (enum range_mode): Moved here from language.h.
2580 (range_mode): Made static.
2581 (show_range_command): Update to use
2582 range_checking_on_by_default.
2583 (set_range_command): Likewise.
2584 (set_range_case): Likewise.
2585 (unknown_language_data): Remove la_range_check initializer.
2586 (auto_language_data): Likewise.
2587 * language.h (range_mode): Delete. Enum definition moved to
2588 language.c.
2589 (language_data): Remove la_range_check field.
2590 (language_defn::range_checking_on_by_default): New member
2591 function.
2592 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2593 (m2_language::range_checking_on_by_default): New member function.
2594 * objc-lang.c (objc_language_data): Remove la_range_check
2595 initializer.
2596 * opencl-lang.c (opencl_language_data): Likewise.
2597 * p-lang.c (pascal_language_data): Likewise.
2598 (pascal_language::range_checking_on_by_default): New member
2599 function.
2600 * rust-lang.c (rust_language_data): Remove la_range_check
2601 initializer.
2602 (rust_language::range_checking_on_by_default): New member
2603 function.
2604
2605 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2606
2607 * dwarf2/read.c (dwarf2_physname): Remove special case for
2608 language_go.
2609 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2610 member function.
2611
2612 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * ada-lang.c (ada_language_data): Remove
2615 la_store_sym_names_in_linkage_form_p initializer.
2616 (ada_language::store_sym_names_in_linkage_form_p): New member
2617 function.
2618 * c-lang.c (c_language_data): Remove
2619 la_store_sym_names_in_linkage_form_p initializer.
2620 (c_language::store_sym_names_in_linkage_form_p): New member
2621 function.
2622 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2623 initializer.
2624 (asm_language_data): Likewise.
2625 (asm_language::store_sym_names_in_linkage_form_p): New member
2626 function.
2627 (minimal_language_data): Remove
2628 la_store_sym_names_in_linkage_form_p initializer.
2629 (minimal_language::store_sym_names_in_linkage_form_p): New member
2630 function.
2631 * d-lang.c (d_language_data): Remove
2632 la_store_sym_names_in_linkage_form_p initializer.
2633 * dwarf2/read.c (dwarf2_physname): Update call to
2634 store_sym_names_in_linkage_form_p.
2635 * f-lang.c (f_language_data): Remove
2636 la_store_sym_names_in_linkage_form_p initializer.
2637 * go-lang.c (go_language_data): Remove
2638 la_store_sym_names_in_linkage_form_p initializer.
2639 * language.c (unknown_language_data): Remove
2640 la_store_sym_names_in_linkage_form_p initializer.
2641 (unknown_language::store_sym_names_in_linkage_form_p): New member
2642 function.
2643 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2644 initializer.
2645 (auto_language::store_sym_names_in_linkage_form_p): New member
2646 function.
2647 * language.h (language_data): Remove
2648 la_store_sym_names_in_linkage_form_p member variable.
2649 (language_defn::store_sym_names_in_linkage_form_p): New member
2650 function.
2651 * m2-lang.c (m2_language_data): Remove
2652 la_store_sym_names_in_linkage_form_p initializer.
2653 * objc-lang.c (objc_language_data): Likewise.
2654 * opencl-lang.c (opencl_language_data): Likewise.
2655 * p-lang.c (pascal_language_data): Likewise.
2656 * rust-lang.c (rust_language_data): Likewise.
2657
2658 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * ada-lang.c (ada_language_data): Remove string_lower_bound
2661 initializer.
2662 * c-lang.c (c_language_data): Likewise.
2663 (cplus_language_data): Likewise.
2664 (asm_language_data): Likewise.
2665 (minimal_language_data): Likewise.
2666 * d-lang.c (d_language_data): Likewise.
2667 * f-lang.c (f_language_data): Likewise.
2668 * go-lang.c (go_language_data): Likewise.
2669 * language.c (unknown_language_data): Likewise.
2670 (auto_language_data): Likewise.
2671 * language.h (language_data): Remove string_lower_bound field.
2672 (language_defn::string_lower_bound): New member function.
2673 * m2-lang.c (m2_language_data): Remove string_lower_bound
2674 initializer.
2675 (m2_language::string_lower_bound): New member function.
2676 * objc-lang.c (objc_language_data): Remove string_lower_bound
2677 initializer.
2678 * opencl-lang.c (opencl_language_data): Likewise.
2679 * p-lang.c (pascal_language_data): Likewise.
2680 * rust-lang.c (rust_language_data): Likewise.
2681 * valops.c (value_cstring): Update call to string_lower_bound.
2682 (value_string): Likewise.
2683 * value.c (allocate_repeated_value): Likewise.
2684
2685 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2686
2687 * valops.c (value_repeat): Fix incorrect argument name in comment.
2688
2689 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * ada-lang.c (ada_language_data): Remove c_style_arrays
2692 initializer.
2693 (ada_language::c_style_arrays_p): New member fuction.
2694 * c-lang.c (c_language_data): Remove c_style_arrays
2695 initializer.
2696 (cplus_language_data): Likewise.
2697 (asm_language_data): Likewise.
2698 (minimal_language_data): Likewise.
2699 * d-lang.c (d_language_data): Likewise.
2700 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2701 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2702 (f_language::c_style_arrays_p): New member function.
2703 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2704 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2705 * language.c (unknown_language_data): Remove c_style_arrays
2706 initializer.
2707 (auto_language_data): Likewise.
2708 * language.h (language_data): Remove c_style_arrays field.
2709 (language_defn::c_style_arrays_p): New member function.
2710 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2711 (m2_language::c_style_arrays_p): New member function.
2712 * objc-lang.c (objc_language_data): Remove c_style_arrays
2713 initializer.
2714 * opencl-lang.c (opencl_language_data): Likewise.
2715 * p-lang.c (pascal_language_data): Likewise.
2716 * rust-lang.c (rust_language_data): Likewise.
2717 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2718 and update local variable to a bool.
2719 * valops.c (value_cast): Update call to c_style_arrays_p.
2720 (value_array): Likewise.
2721 * value.c (coerce_array): Likewise.
2722
2723 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * ada-lang.c (ada_language_data): Remove la_language initializer.
2726 * c-lang.c (c_language_data): Likewise.
2727 (cplus_language_data): Likewise.
2728 (asm_language_data): Likewise.
2729 (minimal_language_data): Likewise.
2730 * d-lang.c (d_language_data): Likewise.
2731 * f-lang.c (f_language_data): Likewise.
2732 * go-lang.c (go_language_data): Likewise.
2733 * language.c (unknown_language_data): Likewise.
2734 (auto_language_data): Likewise.
2735 * language.h (language_data): Remove la_language field.
2736 (language_defn::language_defn): Initialise la_language field.
2737 (language_defn::la_language): New member variable.
2738 * m2-lang.c (m2_language_data): Remove la_language field.
2739 * objc-lang.c (objc_language_data): Likewise.
2740 * opencl-lang.c (opencl_language_data): Likewise.
2741 * p-lang.c (pascal_language_data): Likewise.
2742 * rust-lang.c (rust_language_data): Likewise.
2743
2744 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2745
2746 * ada-lang.c (ada_extensions): Delete, moved into
2747 ada_language::filename_extensions.
2748 (ada_language_data): Remove la_filename_extensions initializer.
2749 (ada_language::filename_extensions): New member function.
2750 * c-lang.c (c_extensions): Delete, moved into
2751 c_language::filename_extensions.
2752 (c_language_data): Remove la_filename_extensions initializer.
2753 (c_language::filename_extensions): New member function.
2754 (cplus_extensions): Delete, moved into
2755 cplus_language::filename_extensions.
2756 (cplus_language_data): Remove la_filename_extensions initializer.
2757 (cplus_language::filename_extensions): New member function.
2758 (asm_extensions): Delete, moved into
2759 asm_language::filename_extensions.
2760 (asm_language_data): Remove la_filename_extensions initializer.
2761 (asm_language::filename_extensions): New member function.
2762 (minimal_language_data): Remove la_filename_extensions
2763 initializer.
2764 * d-lang.c (d_extensions): Delete, moved into
2765 d_language::filename_extensions.
2766 (d_language_data): Remove la_filename_extensions initializer.
2767 (d_language::filename_extensions): New member function.
2768 * f-lang.c (f_extensions): Delete, moved into
2769 f_language::filename_extensions.
2770 (f_language_data): Remove la_filename_extensions initializer.
2771 (f_language::filename_extensions): New member function.
2772 * go-lang.c (go_language_data): Remove la_filename_extensions
2773 initializer.
2774 * language.c (add_set_language_command): Update now that
2775 filename_extensions returns a vector.
2776 (unknown_language_data): Remove la_filename_extensions
2777 initializer.
2778 (auto_language_data): Likewise.
2779 * language.h (language_data): Remove la_filename_extensions field.
2780 (language_defn::filename_extensions): New member function.
2781 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2782 initializer.
2783 * objc-lang.c (objc_extensions): Delete, moved into
2784 objc_language::filename_extensions.
2785 (objc_language_data): Remove la_filename_extensions initializer.
2786 (objc_language::filename_extensions): New member function.
2787 * opencl-lang.c (opencl_language_data): Remove
2788 la_filename_extensions initializer.
2789 * p-lang.c (pascal_extensions): Delete, moved into
2790 pascal_language::filename_extensions.
2791 (pascal_language_data): Remove la_filename_extensions initializer.
2792 (pascal_language::filename_extensions): New member function.
2793 * rust-lang.c (rust_extensions): Delete, moved into
2794 rust_language::filename_extensions.
2795 (rust_language_data): Remove la_filename_extensions initializer.
2796 (rust_language::filename_extensions): New member function.
2797 * symfile.c (add_filename_language): Add new assert.
2798
2799 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2800
2801 * ada-lang.c (ada_language_data): Remove la_name and
2802 la_natural_name initializers.
2803 (ada_language::name): New member function.
2804 (ada_language::natural_name): New member function.
2805 * c-lang.c (c_language_data): Remove la_name and
2806 la_natural_name initializers.
2807 (c_language::name): New member function.
2808 (c_language::natural_name): New member function.
2809 (cplus_language_data): Remove la_name and
2810 la_natural_name initializers.
2811 (cplus_language::name): New member function.
2812 (cplus_language::natural_name): New member function.
2813 (asm_language_data): Remove la_name and
2814 la_natural_name initializers.
2815 (asm_language::name): New member function.
2816 (asm_language::natural_name): New member function.
2817 (minimal_language_data): Remove la_name and
2818 la_natural_name initializers.
2819 (minimal_language::name): New member function.
2820 (minimal_language::natural_name): New member function.
2821 * compile/compile.c (compile_to_object): Update call to
2822 lanugage_defn::name.
2823 * d-lang.c (d_language_data): Remove la_name and
2824 la_natural_name initializers.
2825 (d_language::name): New member function.
2826 (d_language::natural_name): New member function.
2827 * expprint.c (print_subexp_standard): Update call to
2828 language_defn::name.
2829 (dump_raw_expression): Likewise
2830 (dump_prefix_expression): Likewise.
2831 * f-lang.c (f_language_data): Remove la_name and
2832 la_natural_name initializers.
2833 (f_language::name): New member function.
2834 (f_language::natural_name): New member function.
2835 * go-lang.c (go_language_data): Remove la_name and
2836 la_natural_name initializers.
2837 (go_language::name): New member function.
2838 (go_language::natural_name): New member function.
2839 * language.c (show_language_command): Update call to
2840 language_defn::name.
2841 (set_language_command): Likewise.
2842 (language_enum): Likewise.
2843 (language_str): Likewise.
2844 (add_set_language_command): Likewise, use
2845 language_defn::natural_name in the doc string.
2846 (unknown_language_data): Remove la_name and
2847 la_natural_name initializers.
2848 (unknown_language::name): New member function.
2849 (unknown_language::natural_name): New member function.
2850 (auto_language_data): Remove la_name and
2851 la_natural_name initializers.
2852 (auto_language::name): New member function.
2853 (auto_language::natural_name): New member function.
2854 (language_lookup_primitive_type_as_symbol): Update call to
2855 language_defn::name.
2856 * language.h (language_data): Remove la_name and la_natural_name
2857 member variables.
2858 (language_defn::name): New member function.
2859 (language_defn::natural_name): New member function.
2860 * m2-lang.c (m2_language_data): Remove la_name and
2861 la_natural_name initializers.
2862 (m2_language::name): New member function.
2863 (m2_language::natural_name): New member function.
2864 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2865 language_defn::natural_name.
2866 * objc-lang.c (objc_language_data): Remove la_name and
2867 la_natural_name initializers.
2868 (objc_language::name): New member function.
2869 (objc_language::natural_name): New member function.
2870 * opencl-lang.c (opencl_language_data): Remove la_name and
2871 la_natural_name initializers.
2872 (opencl_language::name): New member function.
2873 (opencl_language::natural_name): New member function.
2874 * p-lang.c (pascal_language_data): Remove la_name and
2875 la_natural_name initializers.
2876 (pascal_language::name): New member function.
2877 (pascal_language::natural_name): New member function.
2878 * rust-lang.c (rust_language_data): Remove la_name and
2879 la_natural_name initializers.
2880 (rust_language::name): New member function.
2881 (rust_language::natural_name): New member function.
2882 * symtab.c (lookup_language_this): Update call to
2883 language_defn::name.
2884
2885 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * ada-lang.c (ada_language_data): Remove la_name_of_this
2888 initializer.
2889 * ax-gdb.c (gen_expr): Update call to name_of_this.
2890 * c-exp.y (classify_name): Likewise.
2891 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2892 (cplus_language_data): Likewise.
2893 (cplus_language::name_of_this): New member function.
2894 (asm_language_data): Remove la_name_of_this initializer.
2895 (minimal_language_data): Likewise.
2896 * d-lang.c (d_language_data): Likewise.
2897 (d_language::name_of_this): New member function.
2898 * expprint.c (print_subexp_standard): Update call to name_of_this.
2899 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2900 * go-lang.c (go_language_data): Likewise.
2901 * language.c (unknown_language_data): Likewise.
2902 (unknown_language::name_of_this): New member function.
2903 (auto_language_data): Remove la_name_of_this initializer.
2904 (auto_language::name_of_this): New member function.
2905 * language.h (language_data): Delete la_name_of_this member
2906 variable.
2907 (language_defn::name_of_this): New member function.
2908 * m2-lang.c (m2_language_data): Remove la_name_of_this
2909 initializer.
2910 * objc-lang.c (objc_language_data): Likewise.
2911 (objc_language::name_of_this): New member function.
2912 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2913 initializer.
2914 * p-lang.c (pascal_language_data): Likewise.
2915 (pascal_language::name_of_this): New member function.
2916 * rust-lang.c (rust_language_data): Remove la_name_of_this
2917 initializer.
2918 * symtab.c (lookup_language_this): Update call to name_of_this.
2919 (lookup_symbol_aux): Likewise.
2920 * valops.c (value_of_this): Likewise.
2921
2922 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2923
2924 * ada-lang.c (ada_language_data): Remove
2925 la_struct_too_deep_ellipsis initializer.
2926 (ada_language::struct_too_deep_ellipsis): New member function.
2927 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2928 initializer.
2929 (cplus_language_data): Likewise.
2930 (asm_language_data): Likewise.
2931 (minimal_language_data): Likewise.
2932 * cp-valprint.c (cp_print_value): Update call to
2933 struct_too_deep_ellipsis.
2934 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2935 initializer.
2936 * f-lang.c (f_language_data): Likewise.
2937 (f_language::struct_too_deep_ellipsis): New member function.
2938 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2939 initializer.
2940 * language.c (unknown_language_data): Likewise.
2941 (auto_language_data): Likewise.
2942 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2943 member variable.
2944 (language_defn::struct_too_deep_ellipsis): New member function.
2945 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2946 initializer.Q
2947 * objc-lang.c (objc_language_data): Likewise.
2948 * opencl-lang.c (opencl_language_data): Likewise.
2949 * p-lang.c (pascal_language_data): Likewise.
2950 * rust-lang.c (rust_language_data): Likewise.
2951 * valprint.c (val_print_check_max_depth): Update call to
2952 struct_too_deep_ellipsis.
2953
2954 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2955
2956 * MAINTAINERS (Write After Approval): Add myself.
2957
2958 2020-09-15 Tom Tromey <tom@tromey.com>
2959
2960 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2961 Remove.
2962
2963 2020-09-15 Tom Tromey <tom@tromey.com>
2964
2965 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2966 and TYPE_CODE_METHODPTR cases.
2967 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2968 (c_value_print_inner): Update.
2969 * valprint.c (generic_value_print_memberptr): New function, from
2970 c_value_print_memberptr.
2971 (generic_value_print): Use it. Call cplus_print_method_ptr.
2972
2973 2020-09-15 Tom Tromey <tromey@adacore.com>
2974
2975 * python/python-internal.h (PyInt_FromLong): Remove define.
2976 * python/py-value.c (convert_value_from_python): Use
2977 gdb_py_object_from_longest.
2978 * python/py-type.c (typy_get_code): Use
2979 gdb_py_object_from_longest.
2980 * python/py-symtab.c (salpy_get_line): Use
2981 gdb_py_object_from_longest.
2982 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2983 gdb_py_object_from_longest.
2984 * python/py-record.c (recpy_gap_reason_code): Use
2985 gdb_py_object_from_longest.
2986 * python/py-record-btrace.c (recpy_bt_insn_size)
2987 (recpy_bt_func_level, btpy_list_count): Use
2988 gdb_py_object_from_longest.
2989 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2990 gdb_py_object_from_longest. Fix error handling.
2991 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2992 gdb_py_object_from_longest.
2993 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2994 gdb_py_object_from_longest.
2995 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2996 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2997 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2998
2999 2020-09-15 Tom Tromey <tromey@adacore.com>
3000
3001 * python/python.c (gdbpy_parameter_value): Use
3002 gdb_py_object_from_ulongest.
3003
3004 2020-09-15 Tom Tromey <tromey@adacore.com>
3005
3006 * python/py-infevents.c (create_register_changed_event_object):
3007 Use gdb_py_object_from_longest.
3008 * python/py-exitedevent.c (create_exited_event_object): Use
3009 gdb_py_object_from_longest.
3010
3011 2020-09-15 Tom Tromey <tromey@adacore.com>
3012
3013 * python/python.c (gdbpy_parameter_value): Use
3014 gdb_py_object_from_longest.
3015 * python/py-type.c (convert_field, typy_range): Use
3016 gdb_py_object_from_longest.
3017 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3018 gdb_py_object_from_longest.
3019 * python/py-lazy-string.c (stpy_get_length): Use
3020 gdb_py_object_from_longest.
3021 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3022 gdb_py_object_from_longest.
3023 * python/py-infevents.c (create_memory_changed_event_object): Use
3024 gdb_py_object_from_longest.
3025 * python/py-inferior.c (infpy_get_num): Use
3026 gdb_py_object_from_longest.
3027 (infpy_get_pid): Likewise.
3028
3029 2020-09-15 Tom Tromey <tromey@adacore.com>
3030
3031 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3032 defines.
3033 * python/py-value.c (valpy_long): Use
3034 gdb_py_object_from_ulongest.
3035 * python/py-symtab.c (salpy_get_pc): Use
3036 gdb_py_object_from_ulongest.
3037 (salpy_get_last): Likewise.
3038 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3039 gdb_py_object_from_ulongest.
3040 * python/py-lazy-string.c (stpy_get_address): Use
3041 gdb_py_object_from_ulongest.
3042 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3043 * python/py-arch.c (archpy_disassemble): Use
3044 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3045 error handling.
3046
3047 2020-09-15 Tom Tromey <tromey@adacore.com>
3048
3049 * python/python-internal.h (gdb_py_long_from_longest): Remove
3050 defines.
3051 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3052 * python/py-type.c (convert_field, typy_get_sizeof): Use
3053 gdb_py_object_from_longest.
3054 * python/py-record-btrace.c (btpy_list_index): Use
3055 gdb_py_object_from_longest.
3056
3057 2020-09-15 Tom Tromey <tromey@adacore.com>
3058
3059 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3060 * python/py-record.c (recpy_element_number): Use
3061 gdb_py_object_from_longest.
3062 (recpy_gap_number): Likewise.
3063
3064 2020-09-15 Tom Tromey <tromey@adacore.com>
3065
3066 * top.c (ui::ui): Update.
3067 (highest_ui_num): Remove.
3068 * top.h (struct ui) <num>: Remove.
3069
3070 2020-09-15 Tom Tromey <tromey@adacore.com>
3071
3072 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3073 * ui-style.c (ansi_regex_text): Now array.
3074 * rust-exp.y (number_regex_text): Now array.
3075 * linespec.c (linespec_quote_characters): Now array.
3076 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3077 Now arrays.
3078
3079 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3080
3081 * debuginfod-support.c (debuginfod_client_deleter): New.
3082 (debuginfod_client_up): New.
3083 (debuginfod_init): Return debuginfod_client_up.
3084 (debuginfod_source_query): Adjust.
3085 (debuginfod_debuginfo_query): Adjust.
3086
3087 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 * debuginfod-support.c (debuginfod_source_query): Use
3090 make_unique_xstrdup.
3091
3092 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3093
3094 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3095 with `type::instance_flags`.
3096
3097 2020-09-14 Michael Mullin <masmullin@gmail.com>
3098
3099 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3100 Remove baton parameter.
3101
3102 2020-09-14 Pedro Alves <pedro@palves.net>
3103
3104 * Makefile.in (SELFTESTS_SRCS): Add
3105 unittests/enum-flags-selftests.c.
3106 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3107 btrace_function_flags instead of enum btrace_function_flag.
3108 * compile/compile-c-types.c (convert_qualified): Use
3109 enum_flags::raw.
3110 * compile/compile-cplus-symbols.c (convert_one_symbol)
3111 (convert_symbol_bmsym):
3112 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3113 (compile_cplus_convert_struct_or_union_methods)
3114 (compile_cplus_instance::convert_qualified_base):
3115 * go-exp.y (parse_string_or_char): Add cast to int.
3116 * unittests/enum-flags-selftests.c: New file.
3117 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3118 type to btrace_thread_flags from btrace_thread_flag.
3119 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3120 local's type to btrace_thread_flags from btrace_thread_flag. Add
3121 cast in DEBUG call.
3122
3123 2020-09-14 Pedro Alves <pedro@palves.net>
3124
3125 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3126 * gdbtypes.c (address_space_name_to_int): Rename to ...
3127 (address_space_name_to_type_instance_flags): ... this.
3128 (address_space_int_to_name): Rename to ...
3129 (address_space_type_instance_flags_to_name): ... this.
3130 * gdbtypes.h (address_space_name_to_int): Rename to ...
3131 (address_space_name_to_type_instance_flags): ... this.
3132 (address_space_int_to_name): Rename to ...
3133 (address_space_type_instance_flags_to_name): ... this.
3134 * type-stack.c (type_stack::insert): Adjust to rename.
3135 * type-stack.h (type_stack::insert): Likewise.
3136
3137 2020-09-14 Pedro Alves <pedro@palves.net>
3138 Andrew Burgess <andrew.burgess@embecosm.com>
3139
3140 * avr-tdep.c (avr_address_class_type_flags): Return
3141 type_instance_flags.
3142 (avr_address_class_type_flags_to_name): Take a
3143 type_instance_flags.
3144 (avr_address_class_name_to_type_flags): Return bool and take a
3145 type_instance_flags.
3146 * d-lang.c (build_d_types): Use type::set_instance_flags.
3147 * ft32-tdep.c (ft32_address_class_type_flags): Return
3148 type_instance_flags.
3149 (ft32_address_class_type_flags_to_name): Take a
3150 type_instance_flags.
3151 (ft32_address_class_name_to_type_flags): Return bool and take a
3152 type_instance_flags.
3153 (ft32_gdbarch_init): Use type::set_instance_flags.
3154 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3155 * gdbarch.h, gdbarch.c: Regenerate.
3156 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3157 (address_class_name_to_type_flags): Use type_instance_flags and
3158 bool.
3159 * gdbtypes.c (address_space_name_to_int)
3160 (address_space_int_to_name, make_qualified_type): Use
3161 type_instance_flags.
3162 (make_qualified_type): Use type_instance_flags and
3163 type::set_instance_flags.
3164 (make_type_with_address_space, make_cv_type, make_vector_type)
3165 (check_typedef): Use type_instance_flags.
3166 (recursive_dump_type): Cast type_instance_flags to unsigned for
3167 printing.
3168 (copy_type_recursive): Use type::set_instance_flags.
3169 (gdbtypes_post_init): Use type::set_instance_flags.
3170 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3171 <m_instance_flags>: ... this.
3172 <instance_flags, set_instance_flags>: New methods.
3173 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3174 (SET_TYPE_INSTANCE_FLAGS): New.
3175 (address_space_name_to_int, address_space_int_to_name)
3176 (make_type_with_address_space): Pass flags using
3177 type_instance_flags instead of int.
3178 * stabsread.c (cleanup_undefined_types_noname): Use
3179 type::set_instance_flags.
3180 * s390-tdep.c (s390_address_class_type_flags): Return
3181 type_instance_flags.
3182 (s390_address_class_type_flags_to_name): Take a
3183 type_instance_flags.
3184 (s390_address_class_name_to_type_flags): Return bool and take a
3185 type_instance_flags.
3186 * type-stack.c (type_stack::follow_types): Use
3187 type_instance_flags.
3188 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3189
3190 2020-09-14 Tom Tromey <tromey@adacore.com>
3191
3192 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3193 * x86-tdep.c (x86_is_thunk_register_name)
3194 (x86_in_indirect_branch_thunk): Update.
3195 * sparc64-tdep.c (sparc64_fpu_register_names)
3196 (sparc64_cp0_register_names, sparc64_register_names)
3197 (sparc64_pseudo_register_names): Now const.
3198 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3199 cp0_registers_num>: Now const.
3200 * sparc-tdep.c (sparc_core_register_names)
3201 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3202 (sparc32_pseudo_register_names): Now const.
3203 (validate_tdesc_registers): Update.
3204 * rust-lang.c (rust_extensions): Now const.
3205 * p-lang.c (p_extensions): Now const.
3206 * objc-lang.c (objc_extensions): Now const.
3207 * nto-tdep.c (nto_thread_state_str): Now const.
3208 * moxie-tdep.c (moxie_register_names): Now const.
3209 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3210 Now const.
3211 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3212 (mips_linux_reg_names): Now const.
3213 (mips_gdbarch_init): Update.
3214 * microblaze-tdep.c (microblaze_register_names): Now const.
3215 * m68k-tdep.c (m68k_register_names): Now const.
3216 * m32r-tdep.c (m32r_register_names): Now const.
3217 * ia64-tdep.c (ia64_register_names): Now const.
3218 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3219 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3220 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3221 ymm_avx512_register_names, pkeys_register_names>: Now const.
3222 * i386-tdep.c (i386_register_names, i386_zmm_names)
3223 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3224 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3225 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3226 * f-lang.c (f_extensions): Now const.
3227 * d-lang.c (d_extensions): Now const.
3228 * csky-tdep.c (csky_register_names): Now const.
3229 * charset.c (default_charset_names, charset_enum): Now const.
3230 (_initialize_charset): Update.
3231 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3232 const.
3233 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3234 (bsd_uthread_solib_loaded): Update.
3235 (bsd_uthread_state): Now const.
3236 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3237 (amd64_ymm_avx512_names, amd64_ymmh_names)
3238 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3239 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3240 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3241 (amd64_dword_names): Now const.
3242 * agent.c (can_use_agent_enum): Now const.
3243 * ada-tasks.c (task_states, long_task_states): Now const.
3244 * ada-lang.c (known_runtime_file_name_patterns)
3245 (known_auxiliary_function_name_patterns, attribute_names)
3246 (standard_exc, ada_extensions): Now const.
3247
3248 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3249
3250 * bcache.h (struct bcache) <bcache>: Remove constructor.
3251 <m_hash_function, m_compare_function>: Remove.
3252 <~bcache>: Make virtual.
3253 <compare>: Remove static method, introduce virtual method.
3254 <default_hash>: Remove.
3255 <hash>: New virtual method.
3256 * bcache.c (bcache::expand_hash_table): Update.
3257 (bcache::insert): Update.
3258 (bcache::hash): New.
3259 (bcache::compare): Update comment and parameter names.
3260 * gdbtypes.c (types_deeply_equal): Update.
3261 * psymtab.h (struct psymbol_bcache): New struct.
3262 (class psymtab_storage) <psymtab_storage>: Make default.
3263 <psymbol_cache>: Change type to psymbol_bcache.
3264 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3265 (psymbol_hash): Change to...
3266 (psymbol_bcache::hash): ... this.
3267 (psymbol_compare): Change to...
3268 (psymbol_bcache::compare): ... this.
3269
3270 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3271
3272 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3273 checking for initial lwp.
3274
3275 2020-09-14 Tom Tromey <tromey@adacore.com>
3276
3277 * m68k-tdep.c (m68k_extract_return_value): Use
3278 pointer_result_regnum.
3279 (m68k_store_return_value): Likewise.
3280 (m68k_reg_struct_return_p): Handle vectors and arrays.
3281 (m68k_return_value): Handle arrays.
3282 (m68k_svr4_return_value): Fix single-element aggregate handling.
3283 Handle long double. Adjust for embedded ABI.
3284 (m68k_svr4_init_abi): Set pointer_result_regnum.
3285 (m68k_embedded_init_abi): New function.
3286 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3287 (m68k_osabi_sniffer): New function.
3288 (_initialize_m68k_tdep): Register osabi sniffer.
3289 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3290 member.
3291
3292 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3293
3294 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3295 with gdb::unique_xmalloc_ptr<char>.
3296
3297 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3298
3299 * xml-support.h (xml_fetch_another): Change type to be a
3300 function_view.
3301 (xml_process_xincludes): Remove baton parameter.
3302 (xml_fetch_content_from_file): Change baton parameter to
3303 dirname.
3304 * xml-support.c (struct xinclude_parsing_data)
3305 <xinclude_parsing_data>: Remove baton parameter.
3306 <fetcher_baton>: Remove.
3307 (xinclude_start_include): Adjust.
3308 (xml_process_xincludes): Adjust.
3309 (xml_fetch_content_from_file): Replace baton parameter with
3310 dirname.
3311 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3312 (xml_init_syscalls_info): Use a lambda.
3313 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3314 (file_read_description_xml): Use a lambda.
3315 (fetch_available_features_from_target): Change baton parameter
3316 to target_ops.
3317 (target_read_description_xml): Use a lambda.
3318 (target_fetch_description_xml): Use a lambda.
3319 (string_read_description_xml): Update.
3320
3321 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3322
3323 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3324 uses with type::endianity_is_not_default.
3325
3326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * gdbtypes.h (struct type) <endianity_is_not_default,
3329 set_endianity_is_not_default>: New methods.
3330 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3331 type::endianity_is_not_default, change all write call sites to
3332 use type::set_endianity_is_not_default.
3333
3334 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3335
3336 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3337 uses with type::is_fixed_instance.
3338
3339 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3340
3341 * gdbtypes.h (struct type) <is_fixed_instance,
3342 set_is_fixed_instance>: New methods.
3343 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3344 write call sites to use type::set_is_fixed_instance.
3345
3346 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3347
3348 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3349 uses with type::is_gnu_ifunc.
3350
3351 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3352
3353 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3354 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3355 use type::set_is_gnu_ifunc.
3356
3357 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3358
3359 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3360 uses with type::stub_is_supported.
3361
3362 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3365 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3366 use type::set_stub_is_supported.
3367
3368 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3371 uses with type::is_vector.
3372
3373 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3374
3375 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3376 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3377 use type::set_is_vector.
3378
3379 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3382 uses with type::has_varargs.
3383
3384 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3385
3386 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3387 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3388 use type::set_has_varargs.
3389
3390 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3391
3392 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3393 uses with type::is_prototyped.
3394
3395 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3396
3397 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3398 New methods.
3399 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3400 call sites to use type::set_is_prototyped.
3401
3402 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3405 uses with type::target_is_stub.
3406
3407 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3410 New methods.
3411 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3412 sites to use type::set_target_is_stub.
3413
3414 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3415
3416 * gdbtypes.h (TYPE_STUB): Remove, replace all
3417 uses with type::is_stub.
3418
3419 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3420
3421 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3422 (TYPE_STUB): Use type::is_stub, change all write call sites to
3423 use type::set_is_stub.
3424
3425 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3426
3427 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3428 type::has_no_signedness.
3429
3430 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * gdbtypes.h (struct type) <has_no_signedness,
3433 set_has_no_signedness>: New methods.
3434 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3435 call sites to use type::set_has_no_signedness.
3436
3437 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3438
3439 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3440 type::is_unsigned.
3441
3442 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3445 methods.
3446 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3447 sites to use type::set_is_unsigned.
3448
3449 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3450 Adam Renquinha <arenquinha@cimeq.qc.ca>
3451
3452 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3453 pointer and stack frame offset when unwinding.
3454
3455 2020-09-13 Pedro Alves <pedro@palves.net>
3456
3457 * NEWS: Document "-break-insert --qualified".
3458 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3459
3460 2020-09-13 Pedro Alves <pedro@palves.net>
3461
3462 * linespec.c (classify_mtype, compare_msyms): Delete.
3463 (search_minsyms_for_name): Remove classification logic. Instead
3464 filter out trampoline symbols if we also found an external
3465 function of the same name.
3466
3467 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3468
3469 * NEWS: Create a new section for the next release branch.
3470 Rename the section of the current branch, now that it has
3471 been cut.
3472
3473 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3474
3475 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3476 * version.in: Bump version to 11.0.50.DATE-git.
3477
3478 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3479
3480 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3481
3482 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3483 Felix Willgerodt <Felix.Willgerodt@intel.com>
3484
3485 * gdbarch.sh: Added bfloat16 type.
3486 * gdbarch.c: Regenerated.
3487 * gdbarch.h: Regenerated.
3488 * gdbtypes.c (floatformats_bfloat16): New struct.
3489 (gdbtypes_post_init): Add builtin_bfloat16.
3490 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3491 (floatformats_bfloat16): New struct.
3492 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3493 (i386_ymm_type): Add field "v16_bfloat16"
3494 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3495 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3496 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3497 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3498 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3499 * features/i386/64bit-avx512.c: Regenerated.
3500 * features/i386/64bit-sse.xml: Add bfloat16 type.
3501 * features/i386/64bit-sse.c: Regenerated.
3502
3503 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3504
3505 * i386-tdep.c (i386_zmm_type): Fix field names.
3506 (i386_ymm_type): Fix field names.
3507
3508 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3509
3510 * breakpoint.c: Fix typo in the help message of the
3511 "set breakpoint condition-evaluation" command.
3512
3513 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3514
3515 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3516 * (nbsd_nat_target::pid_to_exec_file)
3517 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3518 (nbsd_nat_target::post_startup_inferior)
3519 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3520 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3521 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3522 * (nbsd_thread_lister): Remove.
3523
3524 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3525
3526 * fork-inferior.c (startup_inferior): Avoid double free.
3527
3528 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3529
3530 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3531 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3532
3533 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3534
3535 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3536 * netbsd-nat.c: Include <sys/ptrace.h>.
3537 * (netbsd_nat::enable_proc_events): Add.
3538
3539 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3540
3541 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3542 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3543 (netbsd_nat::for_each_thread): Add.
3544 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3545 "gdbsupport/common-debug.h".
3546 * (netbsd_nat::netbsd_thread_lister)
3547 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3548 (netbsd_nat::for_each_thread): Add.
3549
3550 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3551
3552 * netbsd-nat.h: Include <unistd.h>.
3553 * (netbsd_nat::pid_to_exec_file): Add.
3554 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3555 * (netbsd_nat::pid_to_exec_file) Add.
3556
3557 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3558
3559 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3560
3561 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3562
3563 * netbsd-nat.h: New file.
3564 * netbsd-nat.c: Likewise.
3565
3566 2020-09-09 Tom Tromey <tromey@adacore.com>
3567
3568 * ada-lang.c (remove_extra_symbols): Do not increment when
3569 removing an element
3570
3571 2020-09-08 Tom Tromey <tromey@adacore.com>
3572
3573 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3574
3575 2020-09-08 Tom Tromey <tromey@adacore.com>
3576
3577 PR win32/25302:
3578 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3579 (gdb_bfd_init_data): New function.
3580 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3581
3582 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3583
3584 * infrun.c (fetch_inferior_event): Use
3585 `switch_to_target_no_thread` to switch the target.
3586
3587 2020-09-06 Tom Tromey <tom@tromey.com>
3588
3589 * symfile.h (dwarf2_free_objfile): Don't declare.
3590
3591 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3592
3593 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3594 to match 16 byte real/complex type generated by Flang compiler.
3595
3596 2020-09-03 Tom de Vries <tdevries@suse.de>
3597
3598 PR breakpoint/26546
3599 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3600 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3601
3602 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3603
3604 * maint.c (index_digits): New function.
3605 (struct maint_print_section_data): Remove.
3606 (print_bfd_section_info): Remove print_data parameter, add arg
3607 and index_digits.
3608 (print_objfile_section_info): Likewise.
3609 (print_bfd_section_info_maybe_relocated): Likewise (plus
3610 objfile).
3611 (maintenance_info_sections): Adjust calls.
3612
3613 2020-09-02 Tom Tromey <tromey@adacore.com>
3614
3615 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3616 for null pointers.
3617 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3618
3619 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3620
3621 * bcache.h (struct bcache) <insert>: Change type of `added` to
3622 pointer to bool.
3623 * bcache.c (bcache::insert): Likewise.
3624 * gdbtypes.c (check_types_worklist): Adjust.
3625 * psymtab.c (add_psymbol_to_bcache): Adjust.
3626
3627 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3628
3629 * corelow.c (unordered_set): Include.
3630 (class core_target): Add field 'm_core_unavailable_mappings'.
3631 (core_target::build_file_mappings): Print only one warning
3632 per inaccessible file. Add unavailable/broken mappings
3633 to m_core_unavailable_mappings.
3634 (core_target::xfer_partial): Call...
3635 (core_target::xfer_memory_via_mappings): New method.
3636
3637 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3638
3639 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3640 type to bool.
3641
3642 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3643
3644 * dwarf2/read.c (struct field_info): Fix indentation.
3645
3646 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3647
3648 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3649 ordering in comment.
3650 * frame.c (frame_id_eq): Fix indentation.
3651
3652 2020-08-31 Scott Linder <scott@scottlinder.com>
3653 Simon Marchi <simon.marchi@efficios.com>
3654
3655 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3656 inline frame ids in outer frame.
3657
3658 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3661 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3662 (outer_frame_id): Use FID_STACK_OUTER instead of
3663 FID_STACK_INVALID.
3664 (frame_id_p): Don't check for outer_frame_id.
3665
3666 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3667
3668 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3669 regnum/frame in value. Call allocate_value_lazy.
3670 * frame.c (frame_unwind_register_value): Use
3671 val_print_not_saved.
3672
3673 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3676
3677 2020-08-29 Pedro Alves <pedro@palves.net>
3678
3679 * progspace.c (print_program_space): Use all_inferiors. Switch to
3680 the inferior before calling target_pid_to_str.
3681
3682 2020-08-28 Tom Tromey <tom@tromey.com>
3683
3684 * xcoffread.c (xcoff_end_psymtab): Update comment.
3685 * dbxread.c (dbx_end_psymtab): Update comment.
3686
3687 2020-08-28 Tom de Vries <tdevries@suse.de>
3688
3689 PR breakpoint/26544
3690 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3691 event_location.
3692 (create_breakpoint): Same.
3693 (base_breakpoint_decode_location): Same.
3694 (bkpt_create_sals_from_location): Same.
3695 (bkpt_decode_location): Same.
3696 (bkpt_probe_create_sals_from_location): Same.
3697 (bkpt_probe_decode_location): Same.
3698 (tracepoint_create_sals_from_location): Same.
3699 (tracepoint_decode_location): Same.
3700 (tracepoint_probe_decode_location): Same.
3701 (strace_marker_create_sals_from_location): Same.
3702 (strace_marker_decode_location): Same.
3703 (create_sals_from_location_default): Same.
3704 (decode_location_default): Same.
3705 * breakpoint.h (struct breakpoint_ops): Same.
3706 (create_breakpoint): Same.
3707 * linespec.h (decode_line_full): Same.
3708 * linespec.c (decode_line_full): Same. Throw error if
3709 result.size () == 0.
3710
3711 2020-08-27 Pedro Alves <pedro@palves.net>
3712
3713 PR gdb/26524
3714 * breakpoint.c (until_break_fsm) <location_breakpoint,
3715 caller_breakpoint>: Delete fields.
3716 <breakpoints>: New field.
3717 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3718 two individual breakpoints.
3719 (until_break_fsm::should_stop): Loop over breakpoints in the
3720 breakpoint vector.
3721 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3722 vector.
3723 (until_break_command): Handle location expanding into multiple
3724 sals.
3725
3726 2020-08-27 Pedro Alves <pedro@palves.net>
3727
3728 PR gdb/26523
3729 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3730 bp_until breakpoints user-specified locations. Update intro
3731 comment.
3732
3733 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3734
3735 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3736 gdb_bfd_sections): New.
3737 * maint.c (print_bfd_section_info): Change param type to
3738 maint_print_section_data.
3739 (print_objfile_section_info): Likewise.
3740 (print_bfd_section_info_maybe_relocated): Likewise.
3741 (maintenance_info_sections): Use gdb_bfd_sections.
3742
3743 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3744
3745 * MAINTAINERS: Add ARC target and maintainer.
3746
3747 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3748
3749 * configure.tgt: ARC support for GNU/Linux.
3750 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3751 * arc-linux-tdep.c: New file.
3752 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3753 * arc-tdep.c (arc_write_pc): Use it.
3754
3755 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3756
3757 * arc-tdep.c (arc_check_for_hardware_loop): New.
3758 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3759
3760 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3761
3762 * arc-tdep.h: Include "gdbarch.h".
3763
3764 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3765
3766 * arch/arc.h
3767 (arc_gdbarch_features): New class to stir the selection of target XML.
3768 (arc_create_target_description): Use FEATURES to choose XML target.
3769 (arc_lookup_target_description): Use arc_create_target_description
3770 to create _new_ target descriptions or return the already created
3771 ones if the FEATURES is the same.
3772 * arch/arc.c: Implementation of prototypes described above.
3773 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3774 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3775 * arc-tdep.c (*_feature_name): Make feature names consistent.
3776 (arc_register_feature): A new struct to hold information about
3777 registers of a particular target/feature.
3778 (arc_check_tdesc_feature): Check if XML provides registers in
3779 compliance with ARC_REGISTER_FEATURE structs.
3780 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3781 (determine_*_reg_feature_set): Which feature name to look for.
3782 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3783 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3784 to expected ISA enums to be used in arc_gdbarch_features structs.
3785 * features/Makefile (FEATURE_XMLFILES): Add new files.
3786 * gdb/features/arc/v1-aux.c: New file.
3787 * gdb/features/arc/v1-aux.xml: Likewise.
3788 * gdb/features/arc/v1-core.c: Likewise.
3789 * gdb/features/arc/v1-core.xml: Likewise.
3790 * gdb/features/arc/v2-aux.c: Likewise.
3791 * gdb/features/arc/v2-aux.xml: Likewise.
3792 * gdb/features/arc/v2-core.c: Likewise.
3793 * gdb/features/arc/v2-core.xml: Likewise.
3794 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3795
3796 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3797 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 PR m2/26372
3800 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3801 an assert. Remove single element array indexing pattern as the
3802 MULTI_SUBSCRIPT support will handle this case too.
3803
3804 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3805
3806 * value.h (valprint_check_validity): Move declaration from
3807 here...
3808 * valprint.h (valprint_check_validity): ... to here.
3809
3810 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3811
3812 * debug.h: New file.
3813 * debug.c (debug_prefixed_vprintf): New function.
3814 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3815 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3816
3817 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3818
3819 * infrun.h (infrun_debug_printf_1): New function declaration.
3820 (infrun_debug_printf): New macro.
3821 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3822 throughout.
3823 (infrun_debug_printf): New function.
3824 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3825 (handle_jit_event): Likewise.
3826
3827 2020-08-21 Mark Wielaard <mark@klomp.org>
3828
3829 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3830
3831 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3832
3833 * frame.c (enum class frame_id_status): New.
3834 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3835 (fprintf_frame): Update.
3836 (compute_frame_id): Set frame id status to "computing" on entry.
3837 Set it back to "not_computed" on failure and to "computed" on
3838 success.
3839 (get_frame_id): Assert the frame id is not being computed.
3840 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3841 (create_new_frame): Likewise.
3842 (frame_cleanup_after_sniffer): Update assert.
3843
3844 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3845
3846 * regcache.c (pid_ptid_regcache_map): New type.
3847 (target_ptid_regcache_map): Remove.
3848 (target_pid_ptid_regcache_map): New type.
3849 (regcaches): Change type to target_pid_ptid_regcache_map.
3850 (get_thread_arch_aspace_regcache): Update.
3851 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3852 case.
3853 (regcaches_size): Update.
3854 (regcache_count): Update.
3855 (registers_changed_ptid_target_pid_test): New.
3856 (_initialize_regcache): Register new test.
3857
3858 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3859
3860 * regcache.c (regcache_count): New.
3861 (struct regcache_test_data): New.
3862 (regcache_test_data_up): New.
3863 (populate_regcaches_for_test): New.
3864 (regcaches_test): Remove.
3865 (get_thread_arch_aspace_regcache_test): New.
3866 (registers_changed_ptid_all_test): New.
3867 (registers_changed_ptid_target_test): New.
3868 (registers_changed_ptid_target_ptid_test): New.
3869 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3870 (_initialize_regcache): Register new tests.
3871
3872 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3873
3874 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3875 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3876 gdbarch and aspace parameter. Use current inferior's aspace.
3877 Validate regcache's arch value.
3878 (regcaches_test): Update.
3879
3880 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3881
3882 * regcache.c (regcaches_test): Call registers_changed.
3883
3884 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3885
3886 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3887
3888 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3889
3890 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3891 to find the end of prologue for flang compiled binaries.
3892 * arm-tdep.c (arm_skip_prologue): Likewise.
3893 * i386-tdep.c (i386_skip_prologue): Likewise.
3894 * producer.c (producer_is_llvm): New function.
3895 (producer_parsing_tests): Added new tests for clang/flang.
3896 * producer.h (producer_is_llvm): New declaration.
3897
3898 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3899
3900 * linux-nat.c (linux_nat_debug_printf): New function.
3901 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3902
3903 2020-08-18 Aaron Merey <amerey@redhat.com>
3904
3905 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3906 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3907 (CLIBS): Add DEBUGINFOD_LIBS.
3908
3909 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3910
3911 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3912 'gdbarch_num_regs'.
3913
3914 2020-08-17 Tom Tromey <tromey@adacore.com>
3915
3916 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3917 ada_get_decoded_value returns NULL.
3918
3919 2020-08-17 Tom Tromey <tromey@adacore.com>
3920
3921 * python/py-inferior.c (infpy_search_memory): Use
3922 gdb_py_object_from_ulongest.
3923 * python/py-infevents.c (create_inferior_call_event_object)
3924 (create_memory_changed_event_object): Use
3925 gdb_py_object_from_ulongest.
3926 * python/py-linetable.c (ltpy_entry_get_pc): Use
3927 gdb_py_object_from_ulongest.
3928
3929 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3930
3931 * loc.c (class symbol_needs_eval_context): Fix indentation.
3932
3933 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3934
3935 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3936 bool.
3937
3938 2020-08-17 Tom de Vries <tdevries@suse.de>
3939
3940 PR gdb/26393
3941 * gdbtypes.c (dump_dynamic_prop): New function.
3942 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3943
3944 2020-08-15 Tom de Vries <tdevries@suse.de>
3945
3946 PR backtrace/26390
3947 * stack.c (print_frame_args): Temporarily set the selected
3948 frame to FRAME while printing the frame's arguments.
3949
3950 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3951
3952 PR breakpoints/26385
3953 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3954 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3955
3956 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3957
3958 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3959 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3960 and >= to check return value instead of == -1 and != -1.
3961
3962 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3963
3964 * utils.h (class gdb_argv) <as_array_view>: New method.
3965 * utils.c (gdb_argv_as_array_view_test): New.
3966 (_initialize_utils): Register selftest.
3967 * maint.c (maintenance_selftest): Use the new method.
3968
3969 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3970
3971 * target.h (supports_dumpcore, dumpcore): New
3972 function declarations.
3973 * target.c (supports_dumpcore, dumpcore): New
3974 functions.
3975 * target-delegates.c: Rebuild.
3976 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3977 and target_dumpcore ().
3978
3979 2020-08-13 Aaron Merey <amerey@redhat.com>
3980
3981 * debuginfod-support.c: Replace global variables with user_data.
3982
3983 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3984
3985 * maint.c (maintenance_selftest): Split args and pass array_view
3986 to run_tests.
3987
3988 2020-08-12 Luis Machado <luis.machado@linaro.org>
3989
3990 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3991 type's length.
3992 Use %s and pulongest to print the length.
3993
3994 2020-08-12 Pedro Alves <palves@redhat.com>
3995
3996 * NEWS: Move "Multi-target debugging support" item to the
3997 "Changes since GDB 9" section.
3998
3999 2020-08-12 Pedro Alves <palves@redhat.com>
4000
4001 PR gdb/26336
4002 * progspace.c (program_space::remove_objfile): Invalidate the
4003 frame cache.
4004
4005 2020-08-11 Tom de Vries <tdevries@suse.de>
4006
4007 * MAINTAINERS: Mark ms1 as deleted.
4008
4009 2020-08-10 Luis Machado <luis.machado@linaro.org>
4010
4011 PR gdb/26310
4012
4013 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4014 act accordingly.
4015 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4016 movz/str/stur/stp skipping behavior.
4017
4018 2020-08-10 Luis Machado <luis.machado@linaro.org>
4019
4020 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4021 struct user_sve_header instead of struct sve_context.
4022
4023 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4024
4025 * read.h (dwarf2_fetch_die_loc_sect_off,
4026 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4027 `void *` parameter with function_view.
4028 * read.c (dwarf2_fetch_die_loc_sect_off,
4029 dwarf2_fetch_die_loc_cu_off): Likewise.
4030 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4031 (per_cu_dwarf_call): Adjust.
4032 (get_frame_address_in_block_wrapper): Remove.
4033 (indirect_synthetic_pointer): Adjust.
4034 (get_ax_pc): Remove.
4035 (dwarf2_compile_expr_to_ax): Adjust.
4036
4037 2020-08-08 Tom de Vries <tdevries@suse.de>
4038
4039 PR build/26344
4040 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4041 constructor.
4042 * regcache.c (get_thread_arch_aspace_regcache): Same.
4043
4044 2020-08-07 Tom Tromey <tromey@adacore.com>
4045
4046 * ravenscar-thread.c
4047 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4048 New method.
4049 (ravenscar_thread_target::wait): Check
4050 runtime_initialized.
4051 (ravenscar_thread_target::prepare_to_store)
4052 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4053 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4054 (ravenscar_thread_target::stopped_by_watchpoint)
4055 (ravenscar_thread_target::stopped_data_address)
4056 (ravenscar_thread_target::core_of_thread): Use
4057 scoped_restore_current_thread and
4058 set_base_thread_from_ravenscar_task.
4059
4060 2020-08-07 Tom Tromey <tromey@adacore.com>
4061
4062 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4063
4064 2020-08-07 Tom Tromey <tromey@adacore.com>
4065
4066 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4067 update_inferior_ptid before update_thread_list.
4068 (temporarily_change_regcache_ptid): New class.
4069 (ravenscar_thread_target::fetch_registers)
4070 (ravenscar_thread_target::store_registers)
4071 (ravenscar_thread_target::prepare_to_store): Use base thread when
4072 forwarding operation.
4073
4074 2020-08-07 Tom Tromey <tromey@adacore.com>
4075
4076 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4077 "is_pid" case.
4078
4079 2020-08-07 Tom Tromey <tromey@adacore.com>
4080
4081 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4082 New methods.
4083 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4084 first.
4085 (ravenscar_thread_target::add_thread): Rename from
4086 ravenscar_add_thread.
4087 (ravenscar_thread_target::update_thread_list): Use a lambda.
4088 (ravenscar_thread_target::xfer_partial): New method.
4089
4090 2020-08-07 Tom Tromey <tromey@adacore.com>
4091
4092 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4093 gdb::function_view.
4094 (iterate_over_live_ada_tasks): Change type of argument.
4095 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4096 of argument.
4097
4098 2020-08-07 Tom Tromey <tromey@adacore.com>
4099
4100 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4101 Remove.
4102 (ravenscar_thread_target::extra_thread_info): Remove.
4103 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4104 defer to target beneath for non-Ravenscar threads.
4105
4106 2020-08-07 Tom Tromey <tromey@adacore.com>
4107
4108 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4109 get_base_thread_from_ravenscar_task>: Now methods.
4110 <m_cpu_map>: New member.
4111 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4112 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4113 (ravenscar_thread_target::task_is_currently_active): Update.
4114 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4115 Now a method.
4116 (ravenscar_thread_target::add_active_thread): Put initial thread
4117 into the m_cpu_map.
4118
4119 2020-08-07 Tom Tromey <tromey@adacore.com>
4120
4121 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4122 event_ptid.
4123
4124 2020-08-07 Tom Tromey <tromey@adacore.com>
4125
4126 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4127 runtime_initialized.
4128
4129 2020-08-07 Tom Tromey <tromey@adacore.com>
4130
4131 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4132 add_active_thread.
4133 (ravenscar_thread_target::add_active_thread): Now public.
4134 (ravenscar_inferior_created): Call add_active_thread after pushing
4135 the target.
4136
4137 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4138
4139 * regcache.c (ptid_regcache_map): New type.
4140 (target_ptid_regcache_map): New type.
4141 (regcaches): Change type to target_ptid_regcache_map.
4142 (get_thread_arch_aspace_regcache): Update to regcaches' new
4143 type.
4144 (regcache_thread_ptid_changed): Likewise.
4145 (registers_changed_ptid): Likewise.
4146 (regcaches_size): Likewise.
4147 (regcaches_test): Update.
4148 (regcache_thread_ptid_changed): Update.
4149 * regcache.h (regcache_up): New type.
4150 * gdbsupport/ptid.h (hash_ptid): New struct.
4151
4152 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * observable.h (thread_ptid_changed): Add parameter
4155 `process_stratum_target *`.
4156 * infrun.c (infrun_thread_ptid_changed): Add parameter
4157 `process_stratum_target *` and use it.
4158 (selftests): New namespace.
4159 (infrun_thread_ptid_changed): New function.
4160 (_initialize_infrun): Register selftest.
4161 * regcache.c (regcache_thread_ptid_changed): Add parameter
4162 `process_stratum_target *` and use it.
4163 (regcache_thread_ptid_changed): New function.
4164 (_initialize_regcache): Register selftest.
4165 * thread.c (thread_change_ptid): Pass target to
4166 thread_ptid_changed observable.
4167
4168 2020-08-06 Caroline Tice <cmtice@google.com>
4169
4170 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4171 (struct dwp_sections): Update field comments. Add loclists and
4172 rnglists fields.
4173 (struct virtual_v2_dwo_sections): Rename struct to
4174 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4175 size & offset fields for loclists and rnglists.
4176 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4177 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4178 skipping dummy type units.
4179 (create_dwp_hash_table): Update the large comment above the function to
4180 discuss Version 5 DWP files as well, with references. Update all the
4181 version checks in the function to check for version 5 as well. Add new
4182 section at the end to create dwp hash table for version 5.
4183 (create_dwp_v2_section): Rename function to
4184 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4185 Add V5 to error message text.
4186 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4187 into calls to create_dwp_v2_or_v5_section.
4188 (create_dwo_unit_in_dwp_v5): New function.
4189 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4190 check for version2; add else clause to handle version 5.
4191 (open_and_init_dwo_file): Add code to check dwarf version & only call
4192 create_debug_types_hash_table (with sections.types) if version is not 5;
4193 else call create_debug_type_hash_table, with sections.info.
4194 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4195 version 5.
4196 (dwarf2_locate_v5_dwp_sections): New function.
4197 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4198 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4199
4200 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * regcache.h (class regcache): Remove friend
4203 registers_changed_ptid.
4204 <regcache_thread_ptid_changed>: Remove.
4205 <regcaches>: Remove.
4206 * regcache.c (regcache::regcaches): Rename to...
4207 (regcaches): ... this. Make static.
4208 (get_thread_arch_aspace_regcache): Update.
4209 (regcache::regcache_thread_ptid_changed): Rename to...
4210 (regcache_thread_ptid_changed): ... this. Update.
4211 (class regcache_access): Remove.
4212 (regcaches_test): Update.
4213 (_initialize_regcache): Update.
4214 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4215 <forward_list>.
4216
4217 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * regcache.h (class regcache) <current_regcache>: Rename to...
4220 <regcaches>: ... this. Move doc here.
4221 * regcache.c (regcache::current_regcache) Rename to...
4222 (regcache::regcaches): ... this. Move doc to header.
4223 (get_thread_arch_aspace_regcache): Update.
4224 (regcache::regcache_thread_ptid_changed): Update.
4225 (registers_changed_ptid): Update.
4226 (class regcache_access) <current_regcache_size>: Rename to...
4227 <regcaches_size>: ... this.
4228 (current_regcache_test): Rename to...
4229 (regcaches_test): ... this.
4230 (_initialize_regcache): Update.
4231
4232 2020-08-06 Victor Collod <vcollod@nvidia.com>
4233
4234 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4235
4236 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4237
4238 * corelow.c (core_target::build_file_mappings): Don't output
4239 null pathname in warning.
4240
4241 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4242
4243 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4244 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4245 gdb.dwarf2/dw2-single-line-discriminators.exp,
4246 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4247
4248 2020-08-05 Tom Tromey <tromey@adacore.com>
4249
4250 PR rust/26197:
4251 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4252 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4253 Fix off-by-one and type size errors in ordinary case.
4254
4255 2020-08-05 Tom de Vries <tdevries@suse.de>
4256
4257 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4258 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4259
4260 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4261
4262 * frame.h (frame_id_p): Return bool.
4263 (frame_id_artificial_p): Return bool.
4264 (frame_id_eq): Return bool.
4265 (has_stack_frames): Return bool.
4266 (get_selected_frame): Fix typo in comment.
4267 (get_frame_pc_if_available): Return bool.
4268 (get_frame_address_in_block_if_available): Return bool.
4269 (get_frame_func_if_available): Return bool.
4270 (read_frame_register_unsigned): Return bool.
4271 (get_frame_register_bytes): Return bool.
4272 (safe_frame_unwind_memory): Return bool.
4273 (deprecated_frame_register_read): Return bool.
4274 (frame_unwinder_is): Return bool.
4275 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4276 bool.
4277 <this_id::p>: Likewise.
4278 <prev_p>: Likewise.
4279 (frame_stash_add): Return bool.
4280 (get_frame_id): Use bool.
4281 (frame_id_build_special) Use bool.
4282 (frame_id_build_unavailable_stack): Use bool.
4283 (frame_id_build): Use bool.
4284 (frame_id_p): Return bool, use true/false instead of 1/0.
4285 (frame_id_artificial_p): Likewise.
4286 (frame_id_eq): Likewise.
4287 (frame_id_inner): Likewise.
4288 (get_frame_func_if_available): Likewise.
4289 (read_frame_register_unsigned): Likewise.
4290 (deprecated_frame_register_read): Likewise.
4291 (get_frame_register_bytes): Likewise.
4292 (has_stack_frames): Likewise.
4293 (inside_main_func): Likewise.
4294 (inside_entry_func): Likewise.
4295 (get_frame_pc_if_available): Likewise.
4296 (get_frame_address_in_block_if_available): Likewise.
4297 (frame_unwinder_is): Likewise.
4298 (safe_frame_unwind_memory): Likewise.
4299 (frame_unwind_arch): Likewise.
4300
4301 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4304 type to cached_copy_status.
4305 (fprintf_frame): Adjust.
4306 (get_frame_func_if_available): Adjust.
4307 (frame_cleanup_after_sniffer): Adjust.
4308
4309 2020-08-04 Mark Wielaard <mark@klomp.org>
4310
4311 * MAINTAINERS (Write After Approval): Update email address.
4312
4313 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4314
4315 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4316 dynamic_prop::const_val.
4317
4318 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4321 dynamic_prop::kind.
4322
4323 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4324
4325 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4326
4327 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4328
4329 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4330
4331 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4332 Jose E. Marchesi <jose.marchesi@oracle.com>
4333
4334 * configure.tgt: Add entry for bpf-*-*.
4335 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4336 (ALLDEPFILES): Add bpf-tdep.c.
4337 * bpf-tdep.c: New file.
4338 * MAINTAINERS: Add bpf target and maintainer.
4339 * NEWS: Mention the support for the new target.
4340
4341 2020-08-04 Tom de Vries <tdevries@suse.de>
4342
4343 PR symtab/23270
4344 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4345 Error.
4346
4347 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4348
4349 * syscalls/freebsd.xml: Regenerate.
4350
4351 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4352
4353 * syscalls/update-freebsd.sh: Fix usage and year range.
4354
4355 2020-08-03 Tom de Vries <tdevries@suse.de>
4356
4357 PR symtab/26333
4358 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4359 DW_LNE_lo_user/DW_LNE_hi_user range.
4360
4361 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4362
4363 PR ada/26318
4364 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4365 kind.
4366
4367 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4368
4369 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4370
4371 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4372
4373 * breakpoint.c (set_breakpoint_condition): Update the condition
4374 expressions after checking that the input condition string parses
4375 successfully and does not contain junk at the end.
4376
4377 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4378
4379 * breakpoint.c (set_breakpoint_condition): Update the
4380 condition string after parsing the new condition successfully.
4381
4382 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4383
4384 * proc-api.c (_STRUCTURED_PROC): Don't define.
4385 * proc-events.c: Likewise.
4386 * proc-flags.c: Likewise.
4387 * proc-why.c: Likewise.
4388 * procfs.c: Likewise.
4389
4390 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4391 * configure, config.in: Regenerate.
4392
4393 2020-07-30 Tom de Vries <tdevries@suse.de>
4394
4395 PR build/26320
4396 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4397 m_red/m_green/m_blue in a union.
4398
4399 2020-07-29 Tom de Vries <tdevries@suse.de>
4400
4401 PR tdep/26280
4402 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4403
4404 2020-07-28 Tom Tromey <tromey@adacore.com>
4405
4406 PR symtab/26270:
4407 * symtab.h (find_pc_partial_function_sym): Declare.
4408 * cli/cli-cmds.c (disassemble_command): Use
4409 find_pc_partial_function_sym. Check asm_demangle.
4410 * blockframe.c (cache_pc_function_sym): New global.
4411 (cache_pc_function_name): Remove.
4412 (clear_pc_function_cache): Update.
4413 (find_pc_partial_function_sym): New function, from
4414 find_pc_partial_function.
4415 (find_pc_partial_function): Rewrite using
4416 find_pc_partial_function_sym.
4417
4418 2020-07-28 Tom Tromey <tromey@adacore.com>
4419
4420 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4421 help. Add usage.
4422
4423 2020-07-28 Tom Tromey <tromey@adacore.com>
4424
4425 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4426 <DW_OP_GNU_variable_value>: Cast to address type.
4427
4428 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4429
4430 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4431 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4432 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4433 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4434 (nbsd_get_siginfo_type): New.
4435 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4436 (_initialize_nbsd_tdep): New.
4437
4438 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4439
4440 PR binutils/26301
4441 * configure: Regenerated.
4442
4443 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4444
4445 PR binutils/26301
4446 * configure: Regenerated.
4447
4448 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4449
4450 * python/py-frame.c: Remove 'user-regs.h' include.
4451 (frapy_read_register): Rewrite to make use of
4452 gdbpy_parse_register_id.
4453 * python/py-registers.c (gdbpy_parse_register_id): New function,
4454 moved here from python/py-unwind.c. Updated the return type, and
4455 also accepts register descriptor objects.
4456 * python/py-unwind.c: Remove 'user-regs.h' include.
4457 (pyuw_parse_register_id): Moved to python/py-registers.c.
4458 (unwind_infopy_add_saved_register): Update to use
4459 gdbpy_parse_register_id.
4460 (pending_framepy_read_register): Likewise.
4461 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4462
4463 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * python/py-registers.c: Add 'user-regs.h' include.
4466 (register_descriptor_iter_find): New function.
4467 (register_descriptor_iterator_object_methods): New static global
4468 methods array.
4469 (register_descriptor_iterator_object_type): Add pointer to methods
4470 array.
4471
4472 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4473
4474 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4475 for all architectures on FreeBSD 11.3 and later.
4476
4477 2020-07-27 Tom Tromey <tromey@adacore.com>
4478
4479 * gcore.h (load_corefile): Don't declare.
4480
4481 2020-07-27 Tom de Vries <tdevries@suse.de>
4482
4483 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4484 * config.in: Regenerate.
4485 * configure: Regenerate.
4486
4487 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4488
4489 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4490 ws2tcpip.h. When checking whether socklen_t type is defined, use
4491 ws2tcpip.h if it is available and sys/socket.h isn't.
4492 * configure: Regenerate.
4493 * config.in: Regenerate.
4494
4495 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4496
4497 PR fortran/23051
4498 PR fortran/26139
4499 * valops.c (value_ind): Pass address to
4500 readjust_indirect_value_type.
4501 * value.c (readjust_indirect_value_type): Make parameter
4502 non-const, and add extra address parameter. Resolve original type
4503 before using it.
4504 * value.h (readjust_indirect_value_type): Update function
4505 signature and comment.
4506
4507 2020-07-25 Tom de Vries <tdevries@suse.de>
4508
4509 PR symtab/26243
4510 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4511 entries.
4512
4513 2020-07-24 Aaron Merey <amerey@redhat.com>
4514
4515 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4516 * configure: Rebuild.
4517
4518 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4519
4520 PR corefiles/26294
4521 * corelow.c (_initialize_corelow): Add period to help text
4522 for "maintenance print core-file-backed-mappings".
4523
4524 2020-07-23 Pedro Alves <pedro@palves.net>
4525
4526 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4527 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4528 meanwhile.
4529 * frame.c (frame_cache_generation, get_frame_cache_generation):
4530 New.
4531 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4532 (get_prev_frame_if_no_cycle): On exception, don't touch
4533 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4534 * frame.h (get_frame_cache_generation): Declare.
4535
4536 2020-07-23 Tom de Vries <tdevries@suse.de>
4537
4538 PR tui/26282
4539 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4540 New default constructor.
4541
4542 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4545 exclude non-statement entries.
4546
4547 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4548
4549 * NEWS (New commands): Mention new command
4550 "maintenance print core-file-backed-mappings".
4551
4552 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4553
4554 * corelow.c (gdbcmd.h): Include.
4555 (core_target::info_proc_mappings): New method.
4556 (get_current_core_target): New function.
4557 (maintenance_print_core_file_backed_mappings): New function.
4558 (_initialize_corelow): Add core-file-backed-mappings to
4559 "maint print" commands.
4560
4561 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4562
4563 * linux-tdep.c (dump_note_entry_p): New function.
4564 (linux_dump_mapping_p_ftype): New typedef.
4565 (linux_find_memory_regions_full): Add new parameter,
4566 should_dump_mapping_p.
4567 (linux_find_memory_regions): Adjust call to
4568 linux_find_memory_regions_full.
4569 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4570 call to linux_find_memory_regions_full.
4571
4572 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4573
4574 * corelow.c (solist.h, unordered_map): Include.
4575 (class core_target): Add field m_core_file_mappings and
4576 method build_file_mappings.
4577 (core_target::core_target): Call build_file_mappings.
4578 (core_target::~core_target): Free memory associated with
4579 m_core_file_mappings.
4580 (core_target::build_file_mappings): New method.
4581 (core_target::xfer_partial): Use m_core_file_mappings
4582 for memory transfers.
4583 * linux-tdep.c (linux_read_core_file_mappings): New
4584 function.
4585 (linux_core_info_proc_mappings): Rewrite to use
4586 linux_read_core_file_mappings.
4587 (linux_init_abi): Register linux_read_core_file_mappings.
4588
4589 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4590
4591 * arch-utils.c (default_read_core_file_mappings): New function.
4592 * arch-utils.c (default_read_core_file_mappings): Declare.
4593 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4594 * gdbarch.h, gdbarch.c: Regenerate.
4595
4596 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4597
4598 PR corefiles/25631
4599 * corelow.c (core_target:xfer_partial): Revise
4600 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4601 case after first checking the stratum beneath the core
4602 target.
4603 (has_all_memory): Return true.
4604 * target.c (raw_memory_xfer_partial): Revise comment
4605 regarding use of has_all_memory.
4606
4607 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4608
4609 * exec.h (section_table_xfer_memory): Revise declaration,
4610 replacing section name parameter with an optional callback
4611 predicate.
4612 * exec.c (section_table_xfer_memory): Likewise.
4613 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4614 of section_table_xfer_memory.
4615
4616 2020-07-22 Tom Tromey <tromey@adacore.com>
4617
4618 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4619 lookup_symbol_search_name.
4620
4621 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4622
4623 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4624 redundant local variable.
4625 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4626 reference, not pointer, update code accordingly.
4627
4628 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4629 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4630
4631 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4632 * jit.c (jit_breakpoint_re_set_internal): Use the
4633 `skip_jit_symbol_lookup` field.
4634
4635 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4636 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4637
4638 * jit.c (jit_read_descriptor): Define the descriptor address once,
4639 use twice.
4640 (jit_breakpoint_deleted): Move the declaration of the loop variable
4641 `iter` into the loop header.
4642 (jit_breakpoint_re_set_internal): Move the declaration of the local
4643 variable `objf_data` to the first point of definition.
4644 (jit_event_handler): Move the declaration of local variables
4645 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4646 Rename `objf` to `jited`.
4647
4648 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4649
4650 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4651 Remove.
4652 * jit.c (get_jiter_objfile_data): Update.
4653
4654 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4655 Simon Marchi <simon.marchi@polymtl.ca>
4656
4657 * jit.c (struct jit_program_space_data): Remove.
4658 (jit_program_space_key): Remove.
4659 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4660 stuff.
4661 (get_jit_program_space_data): Remove.
4662 (jit_breakpoint_deleted): Iterate on all of the program space's
4663 objfiles.
4664 (jit_inferior_init): Likewise.
4665 (jit_breakpoint_re_set_internal): Likewise. Also change return
4666 type to void.
4667 (jit_breakpoint_re_set): Pass current_program_space to
4668 jit_breakpoint_re_set_internal.
4669
4670 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4671
4672 * jit.h (struct jiter_objfile_data) <cached_code_address,
4673 jit_breakpoint>: Move to here from ...
4674 * jit.c (jit_program_space_data): ... here.
4675 (jiter_objfile_data::~jiter_objfile_data): Update.
4676 (jit_breakpoint_deleted): Update.
4677 (jit_breakpoint_re_set_internal): Update.
4678
4679 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4680
4681 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4682 checks.
4683 (jit_read_descriptor): Remove NULL check.
4684 (jit_event_handler): Add an assertion.
4685
4686 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4687
4688 * jit.h (struct jit_objfile_data): Split into...
4689 (struct jiter_objfile_data): ... this ...
4690 (struct jited_objfile_data): ... and this.
4691 * objfiles.h (struct objfile) <jit_data>: Remove.
4692 <jiter_data, jited_data>: New fields.
4693 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4694 (jiter_objfile_data::~jiter_objfile_data): ... this.
4695 (get_jit_objfile_data): Rename to ...
4696 (get_jiter_objfile_data): ... this.
4697 (add_objfile_entry): Update.
4698 (jit_read_descriptor): Use get_jiter_objfile_data.
4699 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4700 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4701 (jit_inferior_exit_hook): Use objfile's jited_data field.
4702
4703 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4704
4705 * jit.h: Forward-declare `struct minimal_symbol`.
4706 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4707 constructor, destructor, and an objfile* field.
4708 * jit.c (jit_objfile_data): Remove.
4709 (struct jit_objfile_data): Migrate from here to jit.h.
4710 (jit_objfile_data::~jit_objfile_data): New destructor
4711 implementation with code moved from free_objfile_data.
4712 (free_objfile_data): Delete.
4713 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4714 (jit_find_objf_with_entry_addr): Ditto.
4715 (jit_inferior_exit_hook): Ditto.
4716 (_initialize_jit): Remove the call to
4717 register_objfile_data_with_cleanup.
4718 * objfiles.h (struct objfile) <jit_data>: New field.
4719
4720 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4721
4722 * jit.h: Forward-declare `struct objfile`.
4723 (jit_event_handler): Add a second parameter, the JITer objfile.
4724 * jit.c (jit_read_descriptor): Change the signature to take the
4725 JITer objfile as an argument instead of the jit_program_space_data.
4726 (jit_inferior_init): Update the call to jit_read_descriptor.
4727 (jit_event_handler): Use the new JITer objfile argument when calling
4728 jit_read_descriptor.
4729 * breakpoint.c (handle_jit_event): Update the call to
4730 jit_event_handler to pass the JITer objfile.
4731
4732 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4733
4734 * gdbarch.c: Regenerate.
4735 * gdbarch.h: Regenerate.
4736 * gdbarch.sh (handle_segmentation_fault): Remove method.
4737 * infrun.c (handle_segmentation_fault): Remove.
4738 (print_signal_received_reason): Remove call to
4739 handle_segmentation_fault.
4740
4741 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4742
4743 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4744 Rename to sparc64_linux_report_signal_info and add siggnal
4745 argument.
4746 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4747 instead of sparc64_linux_handle_segmentation_fault.
4748
4749 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4750
4751 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4752 i386_linux_report_signal_info instead of
4753 i386_linux_handle_segmentation_fault.
4754 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4755 to i386_linux_report_signal_info and add siggnal argument.
4756 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4757 of i386_linux_handle_segmentation_fault.
4758 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4759 to i386_linux_report_signal_info and add siggnal argument.
4760
4761 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4762
4763 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4764 hook if present.
4765
4766 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4767
4768 * gdbarch.c: Regenerate.
4769 * gdbarch.h: Regenerate.
4770 * gdbarch.sh (report_signal_info): New method.
4771 * infrun.c (print_signal_received_reason): Invoke gdbarch
4772 report_signal_info hook if present.
4773
4774 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4775
4776 * python/py-registers.c : Add 'unordered_map' include.
4777 (gdbpy_new_reggroup): Renamed to...
4778 (gdbpy_get_reggroup): ...this. Update to only create register
4779 group descriptors when needed.
4780 (gdbpy_reggroup_iter_next): Update.
4781
4782 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4783
4784 * python/py-registers.c (gdbpy_register_object_data): New static
4785 global.
4786 (gdbpy_register_object_data_init): New function.
4787 (gdbpy_new_register_descriptor): Renamed to...
4788 (gdbpy_get_register_descriptor): ...this, and update to reuse
4789 existing register descriptors where possible.
4790 (gdbpy_register_descriptor_iter_next): Update.
4791 (gdbpy_initialize_registers): Register new gdbarch data.
4792
4793 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4794
4795 * linux-nat.c (stopped_pids): Make static.
4796
4797 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4798
4799 PR ada/26235
4800 * gdbtypes.c (ada_discrete_type_low_bound,
4801 ada_discrete_type_high_bound): Handle undefined bounds.
4802
4803 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4804
4805 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4806 declaration.
4807 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4808 function.
4809
4810 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4811
4812 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4813 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4814 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4815 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4816 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4817 method.
4818
4819 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4820
4821 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4822 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4823 which are deprecated in Guile 3.0.
4824 * configure.ac (try_guile_versions): Add "guile-3.0".
4825 * configure (try_guile_versions): Regenerate.
4826 * NEWS: Update entry.
4827
4828 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4829 Doug Evans <dje@google.com>
4830
4831 PR gdb/21104
4832 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4833 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4834 USING_GUILE_BEFORE_2_2.
4835 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4836 Change type to 'scm_t_port_type *'.
4837 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4838 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4839 parameter and honor it. Update callers.
4840 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4841 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4842 functions.
4843 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4844 USING_GUILE_BEFORE_2_2.
4845 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4846 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4847 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4848 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4849 and 'SCM_PORT_TYPE'.
4850 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4851 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4852 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4853 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4854 [!USING_GUILE_BEFORE_2_2]: New functions.
4855 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4856 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4857 'gdbscm_memory_port_read'.
4858 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4859 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4860 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4861 function.
4862 (ioscm_init_memory_port): Remove.
4863 (ioscm_init_memory_port_stream): New function
4864 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4865 function.
4866 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4867 Return scm_from_uint (0).
4868 (gdbscm_set_memory_port_read_buffer_size_x)
4869 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4870 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4871 Return scm_from_uint (0).
4872 (gdbscm_set_memory_port_write_buffer_size_x)
4873 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4874 * configure.ac (try_guile_versions): Add "guile-2.2".
4875 * configure: Regenerate.
4876 * NEWS: Add entry.
4877
4878 2020-07-18 Tom Tromey <tom@tromey.com>
4879
4880 * linux-nat.c (linux_multi_process): Remove.
4881 (linux_nat_target::supports_multi_process): Return true.
4882
4883 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4884
4885 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4886 (riscv_lookup_target_description): Return pointer out of
4887 unique_ptr.
4888 * target-descriptions.c (allocate_target_description): Add
4889 comment.
4890 (target_desc_deleter::operator()): Likewise.
4891 * target-descriptions.h (struct target_desc_deleter): Moved to
4892 gdbsupport/tdesc.h.
4893 (target_desc_up): Likewise.
4894
4895 2020-07-17 Tom Tromey <tromey@adacore.com>
4896
4897 * linux-nat.c (linux_nat_target::supports_non_stop)
4898 (linux_nat_target::always_non_stop_p): Use "true".
4899 (linux_nat_target::supports_disable_randomization): Use "true" and
4900 "false".
4901
4902 2020-07-16 Caroline Tice <cmtice@google.com>
4903
4904 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4905 (RNGLIST_HEADER_SIZE64): New constant definition.
4906 (struct dwop_section_names): Add rnglists_dwo.
4907 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4908 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4909 (struct dwo_sections): Add rnglists field.
4910 (read_attribut_reprocess): Add tag parameter.
4911 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4912 (cu_debug_rnglists_section): New function (decl & definition).
4913 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4914 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4915 die whose range is being checked; get rnglist section from
4916 cu_debug_rnglists_section, to get from either objfile or dwo file as
4917 appropriate. Add cases for DW_RLE_base_addressx,
4918 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4919 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4920 test inside if-condition and updating complaint message.
4921 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4922 dwarf2_rnglists_process.
4923 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4924 dwarf2_ranges_process.
4925 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4926 need_ranges_base and update comment appropriately. Also pass die tag
4927 to dwarf2_ranges_read.
4928 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4929 need_ranges_base and update comment appropriately. Also pass die tag
4930 to dwarf2_ranges_process.
4931 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4932 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4933 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4934 need_ranges_base and update comment appropriately. Also pass die tag
4935 to read_attribute_reprocess and dwarf2_ranges_read.
4936 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4937 and update function comment appropriately.
4938 (read_loclist_index): Call read_loclists_rnglists_header instead of
4939 read_loclist_header.
4940 (read_rnglist_index): New function.
4941 (read_attribute_reprocess): Add tag parameter. Add code for
4942 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4943 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4944
4945 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4948 being resolved.
4949
4950 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4951
4952 * arch-utils.c (show_architecture): Update formatting of messages.
4953
4954 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * gdbtypes.h (struct type) <bounds>: Handle array and string
4957 types.
4958 * ada-lang.c (assign_aggregate): Use type::bounds on
4959 array/string type.
4960 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4961 * c-varobj.c (c_number_of_children): Likewise.
4962 (c_describe_child): Likewise.
4963 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4964 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4965 (f_type_print_base): Likewise.
4966 * f-valprint.c (f77_array_offset_tbl): Likewise.
4967 (f77_get_upperbound): Likewise.
4968 (f77_print_array_1): Likewise.
4969 * guile/scm-type.c (gdbscm_type_range): Likewise.
4970 * m2-typeprint.c (m2_array): Likewise.
4971 (m2_is_long_set_of_type): Likewise.
4972 * m2-valprint.c (get_long_set_bounds): Likewise.
4973 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4974 * python/py-type.c (typy_range): Likewise.
4975 * rust-lang.c (rust_internal_print_type): Likewise.
4976 * type-stack.c (type_stack::follow_types): Likewise.
4977 * valarith.c (value_subscripted_rvalue): Likewise.
4978 * valops.c (value_cast): Likewise.
4979
4980 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4981
4982 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4983 callers to use the equivalent accessor methods.
4984
4985 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4988 (struct type) <bit_stride>: New method.
4989 (TYPE_BIT_STRIDE): Remove.
4990 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4991
4992 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4993
4994 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4995 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4996 callers to use the equivalent accessor methods instead.
4997
4998 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4999
5000 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5001 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5002 callers to use the equivalent accessor methods instead.
5003
5004 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5005
5006 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5007 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5008 to use dynamic_prop::kind.
5009
5010 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5011
5012 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5013 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5014 to get the bound property's kind and check against
5015 PROP_UNDEFINED.
5016
5017 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5018
5019 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5020 all callers to use type::range_bounds followed by
5021 dynamic_prop::{low,high}.
5022
5023 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5024
5025 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5026 const_val, set_const_val, baton, set_locexpr, set_loclist,
5027 set_addr_offset, variant_parts, set_variant_parts,
5028 original_type, set_original_type>: New methods.
5029 <kind>: Rename to...
5030 <m_kind>: ... this. Update all users to use the new methods
5031 instead.
5032 <data>: Rename to...
5033 <m_data>: ... this. Update all users to use the new methods
5034 instead.
5035
5036 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5037
5038 * gdbtypes.c (get_discrete_bounds): Return failure if
5039 the range type's bounds are not both defined and constant
5040 values.
5041 (get_array_bounds): Update comment. Remove undefined bound check.
5042
5043 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5044
5045 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5046 the type::bounds method directly.
5047
5048 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5051 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5052 are used to set the range type's bounds to use set_bounds.
5053
5054 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5055
5056 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5057
5058 2020-07-10 Pedro Alves <pedro@palves.net>
5059
5060 * gdbthread.h (inferior_ref): Define.
5061 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5062 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5063 * thread.c
5064 (scoped_restore_current_thread::restore):
5065 Adjust to gdb::ref_ptr.
5066 (scoped_restore_current_thread::~scoped_restore_current_thread):
5067 Remove manual decref handling.
5068 (scoped_restore_current_thread::scoped_restore_current_thread):
5069 Adjust to use
5070 inferior_ref::new_reference/thread_info_ref::new_reference.
5071 Incref the thread before calling get_frame_id instead of after.
5072 Let TARGET_CLOSE_ERROR propagate.
5073
5074 2020-07-10 Pedro Alves <pedro@palves.net>
5075
5076 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5077 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5078 NOT_AVAILABLE_ERROR.
5079 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5080 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5081
5082 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5083 Pedro Alves <pedro@palves.net>
5084
5085 PR gdb/26199
5086 * infrun.c (threads_are_resumed_pending_p): Delete.
5087 (do_target_wait): Remove threads_are_executing and
5088 threads_are_resumed_pending_p checks from the inferior_matches
5089 lambda. Update comments.
5090
5091 2020-07-10 Pedro Alves <pedro@palves.net>
5092
5093 PR gdb/26199
5094 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5095 executing threads.
5096
5097 2020-07-10 Pedro Alves <pedro@palves.net>
5098
5099 PR gdb/26199
5100 * infrun.c (handle_no_resumed): Handle multiple targets.
5101
5102 2020-07-10 Pedro Alves <pedro@palves.net>
5103
5104 PR gdb/26199
5105 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5106 target_is_async_p.
5107
5108 2020-07-10 Pedro Alves <pedro@palves.net>
5109
5110 PR gdb/26199
5111 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5112 threads, not all threads.
5113
5114 2020-07-10 Pedro Alves <pedro@palves.net>
5115
5116 PR gdb/26199
5117 * remote.c (remote_target::open_1): Pass remote target pointer as
5118 data to create_async_event_handler.
5119 (remote_async_inferior_event_handler): Mark async event handler
5120 before returning if the remote target still has either pending
5121 events or unacknowledged notifications.
5122
5123 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5124
5125 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5126 declaration.
5127 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5128 function.
5129
5130 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5131
5132 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5133 inferior_ptid.
5134
5135 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5136
5137 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5138 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5139 AT_FREEBSD_PS_STRINGS.
5140
5141 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5142
5143 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5144 of debugfile path on Windows.
5145
5146 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5147
5148 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5149 argument to 'data'.
5150
5151 2020-07-08 Tom Tromey <tromey@adacore.com>
5152
5153 * ada-lang.c (ada_exception_message_1): Use read_memory.
5154
5155 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5156
5157 PR python/22748
5158 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5159 special handling for inline frames.
5160 * findvar.c (value_of_register_lazy): Skip inline frames when
5161 creating lazy register values.
5162 * frame.c (frame_id_computed_p): Delete definition.
5163 * frame.h (frame_id_computed_p): Delete declaration.
5164
5165 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5166
5167 * NEWS: Mention additions to Python API.
5168 * python/py-arch.c (archpy_register_groups): New function.
5169 (arch_object_methods): Add 'register_groups' method.
5170 * python/py-registers.c (reggroup_iterator_object): New struct.
5171 (reggroup_object): New struct.
5172 (gdbpy_new_reggroup): New function.
5173 (gdbpy_reggroup_to_string): New function.
5174 (gdbpy_reggroup_name): New function.
5175 (gdbpy_reggroup_iter): New function.
5176 (gdbpy_reggroup_iter_next): New function.
5177 (gdbpy_new_reggroup_iterator): New function
5178 (gdbpy_initialize_registers): Register new types.
5179 (reggroup_iterator_object_type): Define new Python type.
5180 (gdbpy_reggroup_getset): New static global.
5181 (reggroup_object_type): Define new Python type.
5182 * python/python-internal.h
5183
5184 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5185
5186 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5187 * python/py-arch.c (archpy_registers): New function.
5188 (arch_object_methods): Add 'registers' method.
5189 * python/py-registers.c: New file.
5190 * python/python-internal.h
5191 (gdbpy_new_register_descriptor_iterator): Declare.
5192 (gdbpy_initialize_registers): Declare.
5193 * python/python.c (do_start_initialization): Call
5194 gdbpy_initialize_registers.
5195 * NEWS: Mention additions to the Python API.
5196
5197 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * NEWS: Mention new Python API method.
5200 * python/py-unwind.c (pending_framepy_architecture): New function.
5201 (pending_frame_object_methods): Add architecture method.
5202
5203 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5204
5205 * gdbarch.c: Regenerate.
5206 * gdbarch.h: Regenerate.
5207 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5208 (gdbarch_data): Use internal_error for the case where
5209 deprecated_set_gdbarch_data was originally needed.
5210 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5211 and use passed in obstack.
5212 (libunwind_frame_set_descr): Should no longer get back NULL from
5213 gdbarch_data.
5214 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5215 type.
5216 * user-regs.c (user_regs_init): Update parameters, and use passed
5217 in obstack.
5218 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5219 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5220
5221 2020-07-06 Tom de Vries <tdevries@suse.de>
5222
5223 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5224 End-Of-Sequence in lte_is_less_than.
5225 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5226 "gdb: Don't reorder line table entries too much when sorting".
5227
5228 2020-07-06 Tom de Vries <tdevries@suse.de>
5229
5230 PR tui/26205
5231 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5232
5233 2020-07-05 Tom de Vries <tdevries@suse.de>
5234
5235 PR build/26187
5236 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5237 std::uncaught_exceptions instead of deprecated
5238 std::uncaught_exception.
5239
5240 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5241
5242 * macroexp.h (macro_stringify): Return
5243 gdb::unique_xmalloc_ptr<char>.
5244 * macroexp.c (macro_stringify): Likewise.
5245 * macrotab.c (fixup_definition): Update.
5246
5247 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5248
5249 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5250 (lex_one_token): Update.
5251 * macroexp.c (struct macro_buffer) <release>: Return
5252 gdb::unique_xmalloc_ptr<char>.
5253 (macro_stringify): Update.
5254 (macro_expand): Update.
5255 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5256 * macroexp.h (macro_expand_next): Likewise.
5257
5258 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5259
5260 * macroexp.h (macro_lookup_ftype): Remove.
5261 (macro_expand, macro_expand_once, macro_expand_next): Remove
5262 lookup function parameters, add scope parameter.
5263 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5264 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5265 * macroscope.h (standard_macro_lookup): Change parameter type
5266 to macro_scope.
5267 * macroscope.c (standard_macro_lookup): Likewise.
5268 * c-exp.y (lex_one_token): Update.
5269 * macrocmd.c (macro_expand_command): Likewise.
5270 (macro_expand_once_command): Likewise.
5271
5272 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5273
5274 * inf-loop.c (inferior_event_handler): Remove client_data param.
5275 * inf-loop.h (inferior_event_handler): Likewise.
5276 * infcmd.c (step_1): Adjust.
5277 * infrun.c (proceed): Adjust.
5278 (fetch_inferior_event): Remove client_data param.
5279 (infrun_async_inferior_event_handler): Adjust.
5280 * infrun.h (fetch_inferior_event): Remove `void *` param.
5281 * linux-nat.c (handle_target_event): Adjust.
5282 * record-btrace.c (record_btrace_handle_async_inferior_event):
5283 Adjust.
5284 * record-full.c (record_full_async_inferior_event_handler):
5285 Adjust.
5286 * remote.c (remote_async_inferior_event_handler): Adjust.
5287
5288 2020-07-01 Tom Tromey <tom@tromey.com>
5289
5290 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5291 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5292
5293 2020-07-01 Tom Tromey <tom@tromey.com>
5294
5295 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5296 tui_gen_win_info.
5297 (tui_win_info::make_window): Merge with
5298 tui_gen_win_info::make_window.
5299 (tui_win_info::make_visible): Move from tui_gen_win_info.
5300 * tui/tui-win.c (tui_win_info::max_width): Move from
5301 tui_gen_win_info.
5302 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5303 type.
5304 <window_factory>: Likewise.
5305 * tui/tui-layout.c (tui_win_info::resize): Move from
5306 tui_gen_win_info.
5307 (make_standard_window): Change return type.
5308 (get_locator_window, tui_get_window_by_name): Likewise.
5309 (tui_layout_window::apply): Remove a cast.
5310 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5311 (struct tui_win_info): Merge with tui_gen_win_info.
5312 (struct tui_gen_win_info): Remove.
5313
5314 2020-07-01 Tom Tromey <tom@tromey.com>
5315
5316 * tui/tui-stack.h (struct tui_locator_window): Derive from
5317 tui_win_info.
5318 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5319 <can_box>: New method.
5320
5321 2020-07-01 Tom Tromey <tom@tromey.com>
5322
5323 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5324
5325 2020-07-01 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-regs.c (tui_data_window::display_registers_from)
5328 (tui_data_window::display_registers_from)
5329 (tui_data_window::first_data_item_displayed)
5330 (tui_data_window::delete_data_content_windows): Update.
5331 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5332 Remove.
5333 (tui_data_window::check_register_values): Update.
5334 (tui_data_item_window::rerender): Add parameters. Update.
5335 (tui_data_item_window::refresh_window): Remove.
5336 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5337 virtual.
5338 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5339 tui_gen_win_info.
5340 <refresh_window, max_height, min_height>: Remove.
5341 <rerender>: Add parameters.
5342 <x, y, visible>: New members.
5343 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5344 <m_item_width>: New member.
5345
5346 2020-07-01 Tom Tromey <tom@tromey.com>
5347
5348 * tui/tui-regs.c (tui_data_window::show_register_group)
5349 (tui_data_window::check_register_values): Update.
5350 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5351 from item_no.
5352
5353 2020-07-01 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5356 useless "if".
5357
5358 2020-07-01 Tom Tromey <tom@tromey.com>
5359
5360 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5361 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5362
5363 2020-07-01 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5366 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5367 (struct tui_line_or_address): Move from tui-data.h.
5368 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5369 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5370 (tui_cmd_window, tui_source_window_base, tui_source_window)
5371 (tui_disasm_window): Don't declare.
5372 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5373 to tui-winsource.h.
5374 (SINGLE_KEY): Move to tui-stack.c.
5375
5376 2020-07-01 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5379 std::string.
5380 * tui/tui-regs.c (class tab_expansion_file): New.
5381 (tab_expansion_file::write): New method.
5382 (tui_register_format): Change return type. Use
5383 tab_expansion_file.
5384 (tui_get_register, tui_data_window::display_registers_from)
5385 (tui_data_item_window::rerender): Update.
5386 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5387 * tui/tui-io.c (tui_expand_tabs): Remove.
5388
5389 2020-07-01 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5392
5393 2020-07-01 Fangrui Song <maskray@google.com>
5394
5395 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5396
5397 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5398
5399 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5400 forms for DW_AT_associated and DW_AT_allocated attributes,
5401 which is already checked in function attr_to_dynamic_prop.
5402
5403 2020-06-30 Tom Tromey <tromey@adacore.com>
5404
5405 * dwarf2/read.c (quirk_rust_enum): Correctly call
5406 alloc_rust_variant for default-less enum.
5407
5408 2020-06-30 Tom Tromey <tromey@adacore.com>
5409
5410 PR build/26183:
5411 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5412 gdb::to_string.
5413
5414 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5415
5416 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5417 * gdbarch.h: Re-generate.
5418
5419 2020-06-28 Tom Tromey <tom@tromey.com>
5420
5421 * command.h (cmd_types): Remove.
5422 (cmd_type): Don't declare.
5423 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5424 typedef.
5425 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5426 * cli/cli-decode.c (cmd_type): Remove.
5427
5428 2020-06-27 Pedro Alves <palves@redhat.com>
5429
5430 * fork-child.c (prefork_hook): Adjust.
5431 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5432 Delete.
5433 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5434 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5435 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5436 Remove declarations.
5437 (struct inferior) <set_tty, tty>: New methods.
5438 (struct inferior) <terminal>: Rename to ...
5439 (struct inferior) <m_terminal>: ... this and make private.
5440 * main.c (captured_main_1): Adjust.
5441 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5442 (mi_cmd_inferior_tty_show): Adjust.
5443 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5444 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5445
5446 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5447
5448 * configure.ac: Add --enable-libctf: handle --disable-static
5449 properly.
5450 * acinclude.m4: sinclude ../config/enable.m4.
5451 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5452 (LIBCTF): Substitute in.
5453 (CTF_DEPS): New, likewise.
5454 (CLIBS): libctf needs symbols from libbfd: move earlier.
5455 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5456 flags.
5457 * ctfread.c: Surround in ENABLE_LIBCTF.
5458 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5459 * configure: Regenerate.
5460 * config.in: Likewise.
5461
5462 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5463
5464 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5465
5466 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5467
5468 * inferior.h (struct inferior) <terminal>: Change type to
5469 gdb::unique_xmalloc_ptr<char>.
5470 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5471 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5472 field, adjust to unique pointer.
5473 (get_inferior_io_terminal): Adjust to unique pointer.
5474
5475 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5476
5477 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5478 registers, not just the known core set of registers.
5479
5480 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5481
5482 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5483 fflags, frm, and fcsr registers.
5484 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5485 restore groups.
5486 (riscv_tdesc_unknown_reg): New function.
5487 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5488 tdesc_use_registers.
5489 * riscv-tdep.h (struct gdbarch_tdep): Add
5490 unknown_csrs_first_regnum, unknown_csrs_count,
5491 duplicate_fflags_regnum, duplicate_frm_regnum, and
5492 duplicate_fcsr_regnum fields.
5493
5494 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5495
5496 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5497 callback, use the callback (when not null) to help number unknown
5498 registers.
5499 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5500 (tdesc_use_registers): Add extra parameter to declaration.
5501
5502 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5505 in the file.
5506 (class riscv_pending_register_alias): Likewise.
5507 (riscv_register_feature::register_info): Change 'required_p' field
5508 to 'required', and change its type. Add 'check' member function.
5509 (riscv_register_feature::register_info::check): Define new member
5510 function.
5511 (riscv_xreg_feature): Change initialisation of 'required' field.
5512 (riscv_freg_feature): Likewise.
5513 (riscv_virtual_feature): Likewise.
5514 (riscv_csr_feature): Likewise.
5515 (riscv_check_tdesc_feature): Take extra parameter, the csr
5516 tdesc_feature, rewrite the function to use the new
5517 riscv_register_feature::register_info::check function.
5518 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5519
5520 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * features/Makefile: Remove all references to the deleted files
5523 below.
5524 * features/riscv/32bit-csr.c: Deleted.
5525 * features/riscv/32bit-csr.xml: Deleted.
5526 * features/riscv/64bit-csr.c: Deleted.
5527 * features/riscv/64bit-csr.xml: Deleted.
5528 * features/riscv/rebuild-csr-xml.sh: Deleted.
5529
5530 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5531
5532 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5533 whitespace error for declaration of names member variable.
5534 (struct riscv_register_feature): Add new prefer_first_name member
5535 variable, and fix whitespace error in declaration of registers.
5536 (riscv_xreg_feature): Initialize prefer_first_name field.
5537 (riscv_freg_feature): Likewise.
5538 (riscv_virtual_feature): Likewise.
5539 (riscv_csr_feature): Likewise.
5540 (riscv_register_name): Expand on comments. Remove register name
5541 modifications for CSR and virtual registers.
5542
5543 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5544
5545 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5546 errors.
5547
5548 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5551 riscv-opc.h.
5552 (class riscv_pending_register_alias): New class.
5553 (riscv_check_tdesc_feature): Take vector of pending aliases and
5554 populate it as appropriate.
5555 (riscv_setup_register_aliases): Delete.
5556 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5557 to riscv_check_tdesc_feature in all cases. Use the vector to
5558 create the register aliases.
5559
5560 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5561
5562 * sol2-tdep.c (sol2_static_transform_name): Remove.
5563 (sol2_init_abi): Don't register it.
5564 * gdbarch.sh (static_transform_name): Remove.
5565 * gdbarch.c, gdbarch.h: Regenerate.
5566
5567 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5568 gdbarch_static_transform_name.
5569 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5570 * stabsread.c (define_symbol) <'X'>: Remove.
5571 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5572 handling.
5573 <'V'>: Likewise.
5574 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5575 <'S'>: Remove call to gdbarch_static_transform_name.
5576
5577 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5578
5579 * procfs.c (procfs_pre_trace): New function.
5580 (procfs_target::create_inferior): Pass it to fork_inferior.
5581
5582 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5583
5584 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5585 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5586 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5587 sol2-tdep.o, sparc-sol2-tdep.o.
5588 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5589 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5590 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5591 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5592
5593 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5594
5595 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5596 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5597 Call sol2_init_abi.
5598 Remove calls to set_gdbarch_skip_solib_resolver,
5599 set_gdbarch_core_pid_to_str.
5600 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5601 (i386_sol2_static_transform_name): Remove.
5602 (i386_sol2_init_abi): Call sol2_init_abi.
5603 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5604 set_gdbarch_static_transform_name,
5605 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5606 Use sol2_sigtramp_p.
5607 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5608 (sol2_sigtramp_p): New function.
5609 (sol2_static_transform_name): New function.
5610 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5611 (sol2_init_abi): New function.
5612 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5613 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5614 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5615 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5616 (sparc_sol2_static_transform_name): Remove.
5617 (sparc32_sol2_init_abi): Call sol2_init_abi.
5618 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5619 set_gdbarch_static_transform_name,
5620 set_gdbarch_skip_solib_resolver,
5621 set_gdbarch_core_pid_to_str.
5622 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5623 (sparc_sol2_static_transform_name): Remove
5624 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5625 call sol2_sigtramp_p.
5626 (sparc64_sol2_init_abi): Call sol2_init_abi.
5627 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5628 set_gdbarch_static_transform_name,
5629 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5630
5631 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5632
5633 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5634 * exec.c (validate_exec_file): If from_tty, set both
5635 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5636 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5637 and from_tty, unconditionally ask a confirmation.
5638
5639 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5640
5641 * target-descriptions.c (tdesc_architecture_name): Protect against
5642 NULL pointer dereference.
5643 (maint_print_xml_tdesc_cmd): New function.
5644 (_initialize_target_descriptions): Register new 'maint print
5645 xml-tdesc' command and give it the filename completer.
5646 * NEWS: Mention new 'maint print xml-tdesc' command.
5647
5648 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5649
5650 * target-descriptions.c (class tdesc_compatible_info): New class.
5651 (struct target_desc): Change type of compatible vector.
5652 (tdesc_compatible_p): Update for change in type of
5653 target_desc::compatible.
5654 (tdesc_compatible_info_list): New function.
5655 (tdesc_compatible_info_arch_name): New function.
5656 (tdesc_add_compatible): Update for change in type of
5657 target_desc::compatible.
5658 (print_c_tdesc::visit_pre): Likewise.
5659
5660 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5661
5662 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5663 whitespace to underscore.
5664 (maint_print_c_tdesc_cmd): Use fake filename for target
5665 descriptions that came from the target.
5666 (_initialize_target_descriptions): Add filename command completion
5667 for 'maint print c-tdesc'.
5668
5669 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5670
5671 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5672 lines.
5673
5674 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5675
5676 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5677 lines.
5678 (dwarf2_find_location_expression): Likewise.
5679 (call_site_parameter_matches): Likewise.
5680 (dwarf2_compile_expr_to_ax): Likewise.
5681 (disassemble_dwarf_expression): Likewise.
5682 (loclist_describe_location): Likewise.
5683
5684 2020-06-23 Pedro Alves <palves@redhat.com>
5685
5686 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5687 progspace-and-thread.h. Include scoped-mock-context.h instead.
5688 (register_to_value_test): Use scoped_mock_context.
5689 * regcache.c: Include "scoped-mock-context.h".
5690 (cooked_read_test): Don't error out if a target is already pushed.
5691 Use scoped_mock_context. Adjust.
5692 * scoped-mock-context.h: New file.
5693
5694 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5697 initializer.
5698 (ada_language::is_string_type_p): New member function.
5699 * c-lang.c (c_language_data): Delete la_is_string_type_p
5700 initializer.
5701 (cplus_language_data): Likewise.
5702 (asm_language_data): Likewise.
5703 (minimal_language_data): Likewise.
5704 * d-lang.c (d_language_data): Likewise.
5705 * f-lang.c (f_is_string_type_p): Delete function, implementation
5706 moved to f_language::is_string_type_p.
5707 (f_language_data): Delete la_is_string_type_p initializer.
5708 (f_language::is_string_type_p): New member function,
5709 implementation from f_is_string_type_p.
5710 * go-lang.c (go_is_string_type_p): Delete function, implementation
5711 moved to go_language::is_string_type_p.
5712 (go_language_data): Delete la_is_string_type_p initializer.
5713 (go_language::is_string_type_p): New member function,
5714 implementation from go_is_string_type_p.
5715 * language.c (language_defn::is_string_type_p): Define new member
5716 function.
5717 (default_is_string_type_p): Make static, add comment copied from
5718 header file.
5719 (unknown_language_data): Delete la_is_string_type_p initializer.
5720 (unknown_language::is_string_type_p): New member function.
5721 (auto_language_data): Delete la_is_string_type_p initializer.
5722 (auto_language::is_string_type_p): New member function.
5723 * language.h (language_data): Delete la_is_string_type_p field.
5724 (language_defn::is_string_type_p): Declare new function.
5725 (default_is_string_type_p): Delete desclaration, move comment to
5726 definition.
5727 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5728 moved to m2_language::is_string_type_p.
5729 (m2_language_data): Delete la_is_string_type_p initializer.
5730 (m2_language::is_string_type_p): New member function,
5731 implementation from m2_is_string_type_p.
5732 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5733 initializer.
5734 * opencl-lang.c (opencl_language_data): Likewise.
5735 * p-lang.c (pascal_is_string_type_p): Delete function,
5736 implementation moved to pascal_language::is_string_type_p.
5737 (pascal_language_data): Delete la_is_string_type_p initializer.
5738 (pascal_language::is_string_type_p): New member function,
5739 implementation from pascal_is_string_type_p.
5740 * rust-lang.c (rust_is_string_type_p): Delete function,
5741 implementation moved to rust_language::is_string_type_p.
5742 (rust_language_data): Delete la_is_string_type_p initializer.
5743 (rust_language::is_string_type_p): New member function,
5744 implementation from rust_is_string_type_p.
5745 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5746 is_string_type_p.
5747
5748 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5749
5750 * ada-lang.c (ada_language_data): Delete la_print_typedef
5751 initializer.
5752 (ada_language::print_typedef): New member function.
5753 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5754 (cplus_language_data): Likewise.
5755 (asm_language_data): Likewise.
5756 (minimal_language_data): Likewise.
5757 * d-lang.c (d_language_data): Likewise.
5758 * f-lang.c (f_language_data): Likewise.
5759 (f_language::print_typedef): New member function.
5760 * go-lang.c (go_language_data): Delete la_print_typedef
5761 initializer.
5762 * language.c (language_defn::print_typedef): Define member
5763 function.
5764 (unknown_language_data): Delete la_print_typedef initializer.
5765 (unknown_language::print_typedef): New member function.
5766 (auto_language_data): Delete la_print_typedef initializer.
5767 (auto_language::print_typedef): New member function.
5768 * language.h (language_data): Delete la_print_typedef field.
5769 (language_defn::print_typedef): Declare new member function.
5770 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5771 (default_print_typedef): Delete declaration.
5772 * m2-lang.c (m2_language_data): Delete la_print_typedef
5773 initializer.
5774 (m2_language::print_typedef): New member function.
5775 * objc-lang.c (objc_language_data): Delete la_print_typedef
5776 initializer.
5777 * opencl-lang.c (opencl_language_data): Likewise.
5778 * p-lang.c (pascal_language_data): Likewise.
5779 (pascal_language::print_typedef): New member function.
5780 * rust-lang.c (rust_print_typedef): Delete function,
5781 implementation moved to rust_language::print_typedef.
5782 (rust_language): Delete la_print_typedef initializer.
5783 (rust_language::print_typedef): New member function,
5784 implementation from rust_print_typedef.
5785 * typeprint.c (default_print_typedef): Delete.
5786
5787 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5788
5789 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5790 (ada_language::printstr): New member function.
5791 * c-lang.c (c_language_data): Delete la_printstr initializer.
5792 (cplus_language_data): Likewise.
5793 (asm_language_data): Likewise.
5794 (minimal_language_data): Likewise.
5795 * d-lang.c (d_language_data): Likewise.
5796 * f-lang.c (f_printstr): Rename to f_language::printstr.
5797 (f_language_data): Delete la_printstr initializer.
5798 (f_language::printstr): New member function, implementation from
5799 f_printstr.
5800 * go-lang.c (go_language_data): Delete la_printstr initializer.
5801 * language.c (language_defn::printstr): Define new member
5802 function.
5803 (unk_lang_printstr): Delete.
5804 (unknown_language_data): Delete la_printstr initializer.
5805 (unknown_language::printstr): New member function.
5806 (auto_language_data): Delete la_printstr initializer.
5807 (auto_language::printstr): New member function.
5808 * language.h (language_data): Delete la_printstr field.
5809 (language_defn::printstr): Declare new member function.
5810 (LA_PRINT_STRING): Update call to printstr.
5811 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5812 (m2_language_data): Delete la_printstr initializer.
5813 (m2_language::printstr): New member function, implementation from
5814 m2_printstr.
5815 * objc-lang.c (objc_language_data): Delete la_printstr
5816 initializer.
5817 * opencl-lang.c (opencl_language_data): Likewise.
5818 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5819 (pascal_language_data): Delete la_printstr initializer.
5820 (pascal_language::printstr): New member function, implementation
5821 from pascal_printstr.
5822 * p-lang.h (pascal_printstr): Delete declaration.
5823 * rust-lang.c (rust_printstr): Update header comment.
5824 (rust_language_data): Delete la_printstr initializer.
5825 (rust_language::printstr): New member function.
5826
5827 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5828
5829 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5830 (ada_language::printchar): New member function.
5831 * c-lang.c (c_language_data): Delete la_printchar initializer.
5832 (cplus_language_data): Likewise.
5833 (asm_language_data): Likewise.
5834 (minimal_language_data): Likewise.
5835 * d-lang.c (d_language_data): Likewise.
5836 * f-lang.c (f_printchar): Rename to f_language::printchar.
5837 (f_language_data): Delete la_printchar initializer.
5838 (f_language::printchar): New member function, implementation from
5839 f_printchar.
5840 * go-lang.c (go_language_data): Delete la_printchar initializer.
5841 * language.c (unk_lang_printchar): Delete.
5842 (language_defn::printchar): Define new member function.
5843 (unknown_language_data): Delete la_printchar initializer.
5844 (unknown_language::printchar): New member function.
5845 (auto_language_data): Delete la_printchar initializer.
5846 (auto_language::printchar): New member function.
5847 * language.h (language_data): Delete la_printchar field.
5848 (language_defn::printchar): Declare new member function.
5849 (LA_PRINT_CHAR): Update call to printchar.
5850 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5851 (m2_language::printchar): New member function.
5852 * objc-lang.c (objc_language_data): Delete la_printchar
5853 initializer.
5854 * opencl-lang.c (opencl_language_data): Likewise.
5855 * p-lang.c (pascal_language_data): Delete la_printchar
5856 initializer.
5857 (pascal_language::printchar): New member function.
5858 * rust-lang.c (rust_printchar): Rename to
5859 rust_language::printchar.
5860 (rust_language_data): Delete la_printchar initializer.
5861 (rust_language::printchar): New member function, implementation
5862 from rust_printchar.
5863
5864 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5865
5866 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5867 (ada_language_data): Delete la_emitchar initializer.
5868 (ada_language::emitchar): New member function, implementation from
5869 emit_char.
5870 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5871 (cplus_language_data): Likewise.
5872 (asm_language_data): Likewise.
5873 (minimal_language_data): Likewise.
5874 * d-lang.c (d_language_data): Likewise.
5875 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5876 (f_language_data): Delete la_emitchar initializer.
5877 (f_language::emitchar): New member function, implementation from
5878 f_emit_char.
5879 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5880 * language.c (unk_lang_emit_char): Delete.
5881 (language_defn::emitchar): New member function definition.
5882 (unknown_language_data): Delete la_emitchar initializer.
5883 (unknown_language::emitchar): New member function.
5884 (auto_language_data): Delete la_emitchar initializer.
5885 (auto_language::emitchar): New member function.
5886 * language.h (language_data): Delete la_emitchar field.
5887 (language_defn::emitchar): New member field declaration.
5888 (LA_EMIT_CHAR): Update call to emitchar.
5889 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5890 (m2_language_data): Delete la_emitchar initializer.
5891 (m2_language::emitchar): New member function, implementation from
5892 m2_emit_char.
5893 * objc-lang.c (objc_language_data): Delete la_emitchar
5894 initializer.
5895 * opencl-lang.c (opencl_language_data): Likewise.
5896 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5897 (pascal_language_data): Delete la_emitchar initializer.
5898 (pascal_language::emitchar): New member function, implementation
5899 from pascal_emit_char.
5900 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5901 (rust_language_data): Delete la_emitchar initializer.
5902 (rust_language::emitchar): New member function, implementation
5903 from rust_emitchar.
5904
5905 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5906
5907 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5908 (ada_language_data): Delete la_post_parser initializer.
5909 (ada_language::post_parser): New member function.
5910 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5911 (cplus_language_data): Likewise.
5912 (asm_language_data): Likewise.
5913 (minimal_language_data): Likewise.
5914 * d-lang.c (d_language_data): Likewise.
5915 * f-lang.c (f_language_data): Likewise.
5916 * go-lang.c (go_language_data): Likewise.
5917 * language.c (unknown_language_data): Likewise.
5918 (auto_language_data): Likewise.
5919 * language.h (language_data): Delete la_post_parser field.
5920 (language_defn::post_parser): New member function.
5921 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5922 * objc-lang.c (objc_language_data): Likewise.
5923 * opencl-lang.c (opencl_language_data): Likewise.
5924 * p-lang.c (pascal_language_data): Likewise.
5925 * parse.c (parse_exp_in_context): Update call to post_parser.
5926 (null_post_parser): Delete definition.
5927 * parser-defs.h (null_post_parser): Delete declaration.
5928 * rust-lang.c (rust_language_data): Delete la_post_parser
5929 initializer.
5930
5931 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5932
5933 * ada-lang.c (parse): Rename to ada_language::parser.
5934 (ada_language_data): Delete la_parser initializer.
5935 (ada_language::parser): New member function, implementation from
5936 parse.
5937 * c-lang.c (c_language_data): Delete la_parser initializer.
5938 (cplus_language_data): Likewise.
5939 (asm_language_data): Likewise.
5940 (minimal_language_data): Likewise.
5941 * d-lang.c (d_language_data): Likewise.
5942 (d_language::parser): New member function.
5943 * f-lang.c (f_language_data): Delete la_parser initializer.
5944 (f_language::parser): New member function.
5945 * go-lang.c (go_language_data): Delete la_parser initializer.
5946 (go_language::parser): New member function.
5947 * language.c (unk_lang_parser): Delete.
5948 (language_defn::parser): Define new member function.
5949 (unknown_language_data): Delete la_parser initializer.
5950 (unknown_language::parser): New member function.
5951 (auto_language_data): Delete la_parser initializer.
5952 (auto_language::parser): New member function.
5953 * language.h (language_data): Delete la_parser field.
5954 (language_defn::parser): Declare new member function.
5955 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5956 (m2_language::parser): New member function.
5957 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5958 * opencl-lang.c (opencl_language_data): Likewise.
5959 * p-lang.c (pascal_language_data): Likewise.
5960 (pascal_language::parser): New member function.
5961 * parse.c (parse_exp_in_context): Update call to parser.
5962 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5963 (rust_language::parser): New member function.
5964
5965 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5966
5967 * top.c (print_gdb_configuration): Print --with-python-libdir
5968 configuration value.
5969
5970 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5971
5972 * NEWS: Mention change to the alias command.
5973
5974 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5975
5976 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5977 (alias_command_completer)
5978 (make_alias_options_def_group): New functions.
5979 (alias_opts, alias_option_defs): New struct and array.
5980 (alias_usage_error): Update usage.
5981 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5982 Use option framework.
5983 (_initialize_cli_cmds): Update alias command help.
5984 Update aliases command help.
5985 (show_user):
5986 Add NULL for new default_args lookup_cmd argument.
5987 (valid_command_p): Rename to validate_aliased_command.
5988 Add NULL for new default_args lookup_cmd argument. Verify that the
5989 aliased_command has no default args.
5990 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5991 (lookup_cmd_1, lookup_cmd): New argument default_args.
5992 (add_alias_cmd):
5993 Add NULL for new default_args lookup_cmd argument.
5994 (print_help_for_command): Show default args under the layout
5995 alias some_alias = some_aliased_cmd some_alias_default_arg.
5996 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5997 xfree default_args in destructor.
5998 * cli/cli-script.c (process_next_line, do_define_command):
5999 Add NULL for new default_args lookup_cmd argument.
6000 * command.h: Declare new default_args argument in lookup_cmd
6001 and lookup_cmd_1.
6002 * completer.c (complete_line_internal_1):
6003 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6004 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6005 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6006 Likewise.
6007 * infcmd.c (_initialize_infcmd): Likewise.
6008 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6009 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6010 * python/py-param.c (add_setshow_generic): Likewise.
6011 * remote.c (_initialize_remote): Likewise.
6012 * top.c (execute_command): Prepend default_args if command has some.
6013 (set_verbose):
6014 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6015 * tracepoint.c (validate_actionline, encode_actions_1):
6016 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6017
6018 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6019
6020 * jit.c (jit_read_descriptor): Use bool as the return type.
6021 (jit_breakpoint_re_set_internal): Use bool as the return type.
6022 Invert the return value logic; return true if the jit breakpoint
6023 has been successfully initialized.
6024 (jit_inferior_init): Update the call to
6025 jit_breakpoint_re_set_internal.
6026
6027 2020-06-22 Pedro Alves <palves@redhat.com>
6028
6029 PR gdb/25939
6030 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6031 Use the current inferior instead. Don't return
6032 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6033 wait again.
6034 * sol-thread.c (sol_thread_target::wait): Don't reference
6035 inferior_ptid.
6036 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6037 (sol_update_thread_list_callback): Use the current inferior's pid
6038 instead of inferior_ptid.
6039
6040 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6041
6042 * procfs.c: Cleanup many comments.
6043
6044 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6045 (AFTER_WATCHFLAG): Replace by value.
6046
6047 (MAIN_PROC_NAME_FORMAT): Inline ...
6048 (create_procinfo): ... here.
6049
6050 (procfs_debug_inferior): Remove SYS_exec handling.
6051 (syscall_is_exec): Likewise.
6052 (procfs_set_exec_trap): Likewise.
6053
6054 (syscall_is_lwp_exit): Inline in callers.
6055 (syscall_is_exit): Likewise.
6056 (syscall_is_exec): Likewise.
6057 (syscall_is_lwp_create): Likewise.
6058
6059 (invalidate_cache): Remove #if 0 code.
6060
6061 (make_signal_thread_runnable): Remove.
6062 (procfs_target::resume): Remove #if 0 code.
6063
6064 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6065
6066 PR gdb/25939
6067 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6068 call ...
6069 (procfs_target::create_inferior): ... here.
6070
6071 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6072
6073 * exec.c (validate_exec_file): Ensure the build-id is up to
6074 date by calling reopen_exec_file (that checks file timestamp
6075 to decide to re-read the file).
6076
6077 2020-06-18 Pedro Alves <palves@redhat.com>
6078
6079 PR gdb/25412
6080 * gdbthread.h (delete_thread, delete_thread_silent)
6081 (find_thread_ptid): Update comments.
6082 * thread.c (current_thread_): New global.
6083 (is_current_thread): Move higher, and reimplement.
6084 (inferior_thread): Reimplement.
6085 (set_thread_exited): Use bool. Add assertions.
6086 (add_thread_silent): Simplify thread-reuse handling by always
6087 calling delete_thread.
6088 (delete_thread): Remove intro comment.
6089 (find_thread_ptid): Skip exited threads.
6090 (switch_to_thread_no_regs): Write to current_thread_.
6091 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6092 INFERIOR_PTID. Clear current_thread_.
6093
6094 2020-06-18 Pedro Alves <palves@redhat.com>
6095
6096 * aix-thread.c (pd_update): Use switch_to_thread.
6097
6098 2020-06-18 Pedro Alves <palves@redhat.com>
6099
6100 * ravenscar-thread.c (ravenscar_thread_target): Update.
6101 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6102 (ravenscar_thread_target::add_active_thread): ... this. Don't
6103 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6104 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6105
6106 2020-06-18 Pedro Alves <palves@redhat.com>
6107
6108 * nat/windows-nat.c (current_windows_thread): Remove.
6109 * nat/windows-nat.h (current_windows_thread): Remove.
6110 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6111 Adjust.
6112 (display_selectors): Adjust to fetch the current
6113 windows_thread_info based on inferior_ptid.
6114 (fake_create_process): No longer write to current_windows_thread.
6115 (windows_nat_target::get_windows_debug_event):
6116 Don't set inferior_ptid or current_windows_thread.
6117 (windows_nat_target::wait): Adjust to not rely on
6118 current_windows_thread.
6119 (do_initial_windows_stuff): Now a method of windows_nat_target.
6120 Switch to the last_ptid thread.
6121 (windows_nat_target::attach): Adjust.
6122 (windows_nat_target::detach): Use switch_to_no_thread instead of
6123 writing to inferior_ptid directly.
6124 (windows_nat_target::create_inferior): Adjust.
6125
6126 2020-06-18 Pedro Alves <palves@redhat.com>
6127
6128 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6129
6130 2020-06-18 Pedro Alves <palves@redhat.com>
6131
6132 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6133 after creating it, instead of writing to inferior_ptid. Don't
6134 write to inferior_ptid.
6135
6136 2020-06-18 Pedro Alves <palves@redhat.com>
6137
6138 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6139
6140 2020-06-18 Pedro Alves <palves@redhat.com>
6141
6142 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6143 it, instead of writing to inferior_ptid.
6144
6145 2020-06-18 Pedro Alves <palves@redhat.com>
6146
6147 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6148 to inferior_ptid.
6149
6150 2020-06-18 Pedro Alves <palves@redhat.com>
6151
6152 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6153 instead of writing to inferior_ptid directly.
6154
6155 2020-06-18 Pedro Alves <palves@redhat.com>
6156
6157 * corelow.c (core_target::close): Use switch_to_no_thread instead
6158 of writing to inferior_ptid directly.
6159 (add_to_thread_list, core_target_open): Use switch_to_thread
6160 instead of writing to inferior_ptid directly.
6161
6162 2020-06-18 Pedro Alves <palves@redhat.com>
6163
6164 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6165 inferior_ptid.
6166 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6167 inferior_ptid.
6168 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6169 inferior_ptid directly.
6170 (darwin_nat_target::init_thread_list): Switch to thread, instead
6171 of writing to inferior_ptid.
6172 (darwin_nat_target::attach): Don't write to inferior_ptid.
6173 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6174
6175 2020-06-18 Pedro Alves <palves@redhat.com>
6176
6177 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6178 thread.
6179 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6180 Instead use switch_to_thread.
6181 (gnu_nat_target::detach): Use switch_to_no_thread
6182 instead of writing to inferior_ptid directly. Used passed-in
6183 inferior instead of looking up the inferior by pid.
6184
6185 2020-06-18 Pedro Alves <palves@redhat.com>
6186
6187 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6188 inferior_ptid.
6189
6190 2020-06-18 Pedro Alves <palves@redhat.com>
6191
6192 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6193 inferior_ptid.
6194 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6195 thread.
6196 (nto_procfs_target::detach): Avoid referencing
6197 inferior_ptid. Use switch_to_no_thread instead of writing to
6198 inferior_ptid directly.
6199 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6200 instead of writing to inferior_ptid directly.
6201 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6202 to thread.
6203
6204 2020-06-18 Pedro Alves <palves@redhat.com>
6205
6206 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6207 after creating it, instead of writing to inferior_ptid.
6208 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6209 to inferior_ptid directly.
6210 (gdbsim_target::wait): Don't write to inferior_ptid.
6211
6212 2020-06-18 Pedro Alves <palves@redhat.com>
6213
6214 * remote.c (remote_target::remote_notice_new_inferior): Use
6215 switch_to_thread instead of writing to inferior_ptid directly.
6216 (remote_target::add_current_inferior_and_thread): Use
6217 switch_to_no_thread instead of writing to inferior_ptid directly.
6218 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6219 and switch_to_thread instead of using set_current_inferior or
6220 writing to inferior_ptid directly.
6221
6222 2020-06-18 Pedro Alves <palves@redhat.com>
6223
6224 * tracectf.c (ctf_target_open): Switch to added thread instead of
6225 writing to inferior_ptid directly.
6226 (ctf_target::close): Use switch_to_no_thread instead of writing to
6227 inferior_ptid directly.
6228
6229 2020-06-18 Pedro Alves <palves@redhat.com>
6230
6231 * tracefile-tfile.c (tfile_target_open): Don't write to
6232 inferior_ptid directly, instead switch to added thread.
6233 (tfile_target::close): Use switch_to_no_thread instead of writing
6234 to inferior_ptid directly.
6235
6236 2020-06-18 Pedro Alves <palves@redhat.com>
6237
6238 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6239 (procfs_target::detach): Use switch_to_no_thread
6240 instead of writing to inferior_ptid directly.
6241 (do_attach): Change return type to void. Switch to the added
6242 thread.
6243 (procfs_target::create_inferior): Switch to the added thread.
6244 (procfs_do_thread_registers): Don't write to inferior_ptid.
6245
6246 2020-06-18 Pedro Alves <palves@redhat.com>
6247
6248 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6249 of writing to inferior_ptid.
6250 (scoped_restore_exited_inferior): Delete.
6251 (handle_vfork_child_exec_or_exit): Simplify using
6252 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6253 instead of writing to inferior_ptid.
6254 (THREAD_STOPPED_BY): Delete.
6255 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6256 (thread_stopped_by_hw_breakpoint): Delete.
6257 (save_waitstatus): Use
6258 scoped_restore_current_thread+switch_to_thread, and call
6259 target_stopped_by_watchpoint instead of
6260 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6261 instead of thread_stopped_by_sw_breakpoint, and
6262 target_stopped_by_hw_breakpoint instead of
6263 thread_stopped_by_hw_breakpoint.
6264 (handle_inferior_event)
6265 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6266 inferior_ptid directly, nor
6267 set_current_inferior/set_current_program_space. Use
6268 switch_to_thread / switch_to_inferior_no_thread instead.
6269
6270 2020-06-18 Pedro Alves <palves@redhat.com>
6271
6272 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6273 instead of writing to inferior_ptid.
6274
6275 2020-06-18 Pedro Alves <palves@redhat.com>
6276
6277 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6278 added thread.
6279 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6280 to the added thread.
6281 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6282 instead of writing to inferior_ptid.
6283
6284 2020-06-18 Pedro Alves <palves@redhat.com>
6285
6286 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6287 (register_to_value_test): Mock a program_space too. Heap-allocate
6288 the address space. Don't write to inferior_ptid. Use
6289 switch_to_thread instead.
6290
6291 2020-06-18 Pedro Alves <palves@redhat.com>
6292
6293 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6294 Delete.
6295 (find_signalled_thread()): New, factored out from
6296 linux_make_corefile_notes and adjusted to handle exited threads.
6297 (linux_make_corefile_notes): Adjust to use the new
6298 find_signalled_thread.
6299
6300 2020-06-18 Pedro Alves <palves@redhat.com>
6301
6302 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6303 of saving/restoring inferior_ptid.
6304
6305 2020-06-17 Tom Tromey <tom@tromey.com>
6306
6307 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6308 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6309 declare.
6310 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6311
6312 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6315 of partial symtabs.
6316
6317 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6318
6319 * regformats/reg-arm.dat: Remove.
6320 * regformats/reg-bfin.dat: Remove.
6321 * regformats/reg-cris.dat: Remove.
6322 * regformats/reg-crisv32.dat: Remove.
6323 * regformats/reg-m32r.dat: Remove.
6324 * regformats/reg-tilegx.dat: Remove.
6325 * regformats/reg-tilegx32.dat: Remove.
6326
6327 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6328
6329 * features/Makefile (WHICH): Remove arm files.
6330 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6331 * regformats/arm/arm-with-neon.dat: Remove.
6332 * regformats/arm/arm-with-vfpv2.dat: Remove.
6333 * regformats/arm/arm-with-vfpv3.dat: Remove.
6334
6335 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6336
6337 * features/Makefile (XMLTOC): Remove rx.xml.
6338
6339 2020-06-17 Pedro Alves <palves@redhat.com>
6340
6341 * gdbthread.h (thread_control_state) <trap_expected> Update
6342 comments.
6343
6344 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6345
6346 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6347 ada_language::lookup_symbol_nonlocal.
6348 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6349 (ada_language::lookup_symbol_nonlocal): New member function,
6350 implementation from ada_lookup_symbol_nonlocal.
6351 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6352 initializer.
6353 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6354 initializer.
6355 (cplus_language::lookup_symbol_nonlocal): New member function.
6356 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6357 (minimal_language_data) Likewise.
6358 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6359 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6360 initializer.
6361 (d_language::lookup_symbol_nonlocal): New member function.
6362 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6363 initializer.
6364 (f_language::lookup_symbol_nonlocal): New member function.
6365 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6366 initializer.
6367 * language.c (unknown_language_data): Likewise.
6368 (auto_language_data): Likewise.
6369 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6370 field.
6371 (language_defn::lookup_symbol_nonlocal): New member function.
6372 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6373 initializer.
6374 * objc-lang.c (objc_language_data): Likewise.
6375 * opencl-lang.c (opencl_language_data): Likewise.
6376 * p-lang.c (pascal_language_data): Likewise.
6377 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6378 rust_language::lookup_symbol_nonlocal.
6379 (rust_language_data): Delete la_lookup_symbol_nonlocal
6380 initializer.
6381 (rust_language::lookup_symbol_nonlocal): New member function,
6382 implementation from rust_lookup_symbol_nonlocal.
6383 * symtab.c (lookup_symbol_aux): Update call to
6384 lookup_symbol_nonlocal.
6385 (basic_lookup_symbol_nonlocal): Rename to...
6386 (language_defn::lookup_symbol_nonlocal): ...this, and update
6387 header comment. Remove language_defn parameter, and replace with
6388 uses of `this'.
6389 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6390
6391 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6394 initializer.
6395 (ada_language::value_print_inner): New member function.
6396 * c-lang.c (c_language_data): Delete la_value_print_inner
6397 initializer.
6398 (cplus_language_data): Likewise.
6399 (asm_language_data): Likewise.
6400 (minimal_language_data): Likewise.
6401 * d-lang.c (d_language_data): Likewise.
6402 (d_language::value_print_inner): New member function.
6403 * f-lang.c (f_language_data): Delete la_value_print_inner
6404 initializer.
6405 (f_language::value_print_inner): New member function.
6406 * f-lang.h (f_value_print_innner): Rename to...
6407 (f_value_print_inner): ...this (note spelling of 'inner').
6408 * f-valprint.c (f_value_print_innner): Rename to...
6409 (f_value_print_inner): ...this (note spelling of 'inner').
6410 * go-lang.c (go_language_data): Delete la_value_print_inner
6411 initializer.
6412 (go_language::value_print_inner): New member function.
6413 * language.c (language_defn::value_print_inner): Define new member
6414 function.
6415 (unk_lang_value_print_inner): Delete.
6416 (unknown_language_data): Delete la_value_print_inner initializer.
6417 (unknown_language::value_print_inner): New member function.
6418 (auto_language_data): Delete la_value_print_inner initializer.
6419 (auto_language::value_print_inner): New member function.
6420 * language.h (language_data): Delete la_value_print_inner field.
6421 (language_defn::value_print_inner): Delcare new member function.
6422 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6423 initializer.
6424 (m2_language::value_print_inner): New member function.
6425 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6426 initializer.
6427 * opencl-lang.c (opencl_language_data): Likewise.
6428 * p-lang.c (pascal_language_data): Likewise.
6429 (pascal_language::value_print_inner): New member function.
6430 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6431 initializer.
6432 (rust_language::value_print_inner): New member function.
6433 * valprint.c (do_val_print): Update call to value_print_inner.
6434
6435 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6436
6437 * ada-lang.c (ada_language_data): Delete la_value_print
6438 initializer.
6439 (ada_language::value_print): New member function.
6440 * c-lang.c (c_language_data): Delete la_value_print initializer.
6441 (cplus_language_data): Likewise.
6442 (asm_language_data): Likewise.
6443 (minimal_language_data): Likewise.
6444 * d-lang.c (d_language_data): Likewise.
6445 * f-lang.c (f_language_data): Likewise.
6446 * go-lang.c (go_language_data): Likewise.
6447 * language.c (unk_lang_value_print): Delete.
6448 (language_defn::value_print): Define new member function.
6449 (unknown_language_data): Delete la_value_print initializer.
6450 (unknown_language::value_print): New member function.
6451 (auto_language_data): Delete la_value_print initializer.
6452 (auto_language::value_print): New member function.
6453 * language.h (language_data): Delete la_value_print field.
6454 (language_defn::value_print): Declare new member function.
6455 (LA_VALUE_PRINT): Update call to value_print.
6456 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6457 * objc-lang.c (objc_language_data): Likewise.
6458 * opencl-lang.c (opencl_language_data): Likewise.
6459 * p-lang.c (pascal_language_data): Likewise.
6460 (pascal_language::value_print): New member function.
6461 * rust-lang.c (rust_language_data): Delete la_value_print
6462 initializer.
6463
6464 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * ada-lang.c (ada_watch_location_expression): Rename to
6467 ada_language::watch_location_expression.
6468 (ada_language_data): Delete la_watch_location_expression
6469 initializer.
6470 (ada_language::watch_location_expression): New member function,
6471 implementation from ada_watch_location_expression.
6472 * breakpoint.c (watch_command_1): Update call to
6473 watch_location_expression.
6474 * c-lang.c (c_watch_location_expression): Rename to
6475 language_defn::watch_location_expression.
6476 (c_language_data): Delete la_watch_location_expression
6477 initializer.
6478 (cplus_language_data): Likewise.
6479 (asm_language_data): Likewise.
6480 (minimal_language_data): Likewise.
6481 * c-lang.h (c_watch_location_expression): Delete declaration.
6482 * d-lang.c (d_language_data): Delete la_watch_location_expression
6483 initializer.
6484 * f-lang.c (f_language_data): Likewise.
6485 * go-lang.c (go_language_data): Likewise.
6486 * language.c (language_defn::watch_location_expression): Member
6487 function implementation from c_watch_location_expression.
6488 (unknown_language_data): Delete la_watch_location_expression
6489 initializer.
6490 (auto_language_data): Likewise.
6491 * language.h (language_data): Delete la_watch_location_expression
6492 field.
6493 (language_defn::watch_location_expression): Declare new member
6494 function.
6495 * m2-lang.c (m2_language_data): Delete
6496 la_watch_location_expression initializer.
6497 * objc-lang.c (objc_language_data): Likewise.
6498 * opencl-lang.c (opencl_language_data): Likewise.
6499 * p-lang.c (pascal_language_data): Likewise.
6500 * rust-lang.c (rust_watch_location_expression): Rename to
6501 rust_language::watch_location_expression.
6502 (rust_language_data): Delete la_watch_location_expression
6503 initializer.
6504 (rust_language::watch_location_expression): New member function,
6505 implementation from rust_watch_location_expression.
6506
6507 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6508
6509 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6510 ada_language::collect_symbol_completion_matches.
6511 (ada_language_data): Delete la_collect_symbol_completion_matches
6512 initializer.
6513 (ada_language::collect_symbol_completion_matches): New member
6514 function, implementation from
6515 ada_collect_symbol_completion_matches.
6516 * c-lang.c (c_language_data): Delete
6517 la_collect_symbol_completion_matches initializer.
6518 (cplus_language_data): Likewise.
6519 (asm_language_data): Likewise.
6520 (minimal_language_data): Likewise.
6521 * d-lang.c (d_language_data): Likewise.
6522 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6523 f_language::collect_symbol_completion_matches.
6524 (f_language_data): Delete la_collect_symbol_completion_matches
6525 initializer.
6526 (f_language::collect_symbol_completion_matches) New member
6527 function, implementation from f_collect_symbol_completion_matches.
6528 * go-lang.c (go_language_data): Delete
6529 la_collect_symbol_completion_matches initializer.
6530 * language.c (unknown_language_data): Likewise.
6531 (auto_language_data): Likewise.
6532 * language.h (language_data): Delete
6533 la_collect_symbol_completion_matches field.
6534 (language_defn::collect_symbol_completion_matches): New member
6535 function.
6536 * m2-lang.c (m2_language_data): Delete
6537 la_collect_symbol_completion_matches initializer.
6538 * objc-lang.c (objc_language_data): Likewise.
6539 * opencl-lang.c (opencl_language_data): Likewise.
6540 * p-lang.c (pascal_language_data): Likewise.
6541 * rust-lang.c (rust_language_data): Likewise.
6542 * symtab.c (default_collect_symbol_completion_matches): Delete.
6543 (collect_symbol_completion_matches): Update call to
6544 collect_symbol_completion_matches.
6545 (collect_symbol_completion_matches_type): Likewise.
6546 * symtab.h (default_collect_symbol_completion_matches): Delete
6547 declaration.
6548
6549 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6550
6551 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6552 (ada_language_data): Delete la_word_break_characters initializer.
6553 (ada_language::word_break_characters): New member function.
6554 * c-lang.c (c_language_data): Delete la_word_break_characters
6555 initializer.
6556 (cplus_language_data): Likewise.
6557 (asm_language_data): Likewise.
6558 (minimal_language_data): Likewise.
6559 * completer.c: Update global comment.
6560 (advance_to_expression_complete_word_point): Update call to
6561 word_break_characters.
6562 (complete_files_symbols): Likewise.
6563 (complete_line_internal_1): Likewise.
6564 (default_completer_handle_brkchars): Likewise.
6565 (skip_quoted_chars): Likewise.
6566 * d-lang.c (d_language_data): Delete la_word_break_characters
6567 initializer.
6568 * f-lang.c (f_word_break_characters): Delete.
6569 (f_language_data): Delete la_word_break_characters initializer.
6570 (f_language::word_break_characters): New member function.
6571 * go-lang.c (go_language_data): Delete la_word_break_characters
6572 initializer.
6573 * language.c (unknown_language_data): Likewise.
6574 (auto_language_data): Likewise.
6575 * language.h (default_word_break_characters): Move declaration to
6576 earlier in the file.
6577 (language_data): Delete la_word_break_characters field.
6578 (language_defn::word_break_characters): New member function.
6579 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6580 initializer.
6581 * objc-lang.c (objc_language_data): Likewise.
6582 * opencl-lang.c (opencl_language_data): Likewise.
6583 * p-lang.c (pascal_language_data): Likewise.
6584 * rust-lang.c (rust_language_data): Likewise.
6585
6586 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6587
6588 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6589 (ada_language_data): Delete la_get_symbol_name_matcher
6590 initializer.
6591 (language_defn::get_symbol_name_matcher_inner): New member
6592 function.
6593 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6594 initializer.
6595 (cplus_language_data): Likewise.
6596 (cplus_language::get_symbol_name_matcher_inner): New member
6597 function.
6598 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6599 (minimal_language_data): Likewise.
6600 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6601 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6602 initializer.
6603 * dictionary.c (iter_match_first_hashed): Update call to
6604 get_symbol_name_matcher.
6605 (iter_match_next_hashed): Likewise.
6606 (iter_match_next_linear): Likewise.
6607 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6608 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6609 initializer.
6610 (f_language::get_symbol_name_matcher_inner): New member function.
6611 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6612 initializer.
6613 * language.c (default_symbol_name_matcher): Update header comment,
6614 make static.
6615 (language_defn::get_symbol_name_matcher): New definition.
6616 (language_defn::get_symbol_name_matcher_inner): Likewise.
6617 (get_symbol_name_matcher): Delete.
6618 (unknown_language_data): Delete la_get_symbol_name_matcher
6619 initializer.
6620 (auto_language_data): Likewise.
6621 * language.h (language_data): Delete la_get_symbol_name_matcher
6622 field.
6623 (language_defn::get_symbol_name_matcher): New member function.
6624 (language_defn::get_symbol_name_matcher_inner): Likewise.
6625 (default_symbol_name_matcher): Delete declaration.
6626 * linespec.c (find_methods): Update call to
6627 get_symbol_name_matcher.
6628 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6629 initializer.
6630 * minsyms.c (lookup_minimal_symbol): Update call to
6631 get_symbol_name_matcher.
6632 (iterate_over_minimal_symbols): Likewise.
6633 * objc-lang.c (objc_language_data): Delete
6634 la_get_symbol_name_matcher initializer.
6635 * opencl-lang.c (opencl_language_data): Likewise.
6636 * p-lang.c (pascal_language_data): Likewise.
6637 * psymtab.c (psymbol_name_matches): Update call to
6638 get_symbol_name_matcher.
6639 * rust-lang.c (rust_language_data): Delete
6640 la_get_symbol_name_matcher initializer.
6641 * symtab.c (symbol_matches_search_name): Update call to
6642 get_symbol_name_matcher.
6643 (compare_symbol_name): Likewise.
6644
6645 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6646
6647 * ada-lang.c (ada_language_data): Delete la_compute_program
6648 initializer.
6649 * c-lang.c (c_language_data): Likewise.
6650 (c_language::compute_program): New member function.
6651 (cplus_language_data): Delete la_compute_program initializer.
6652 (cplus_language::compute_program): New member function.
6653 (asm_language_data): Delete la_compute_program initializer.
6654 (minimal_language_data): Likewise.
6655 * c-lang.h (c_compute_program): Update comment.
6656 (cplus_compute_program): Likewise.
6657 * compile/compile-c-support.c (c_compute_program): Likewise.
6658 (cplus_compute_program): Likewise.
6659 * compile/compile.c (compile_to_object): Update call to
6660 la_compute_program.
6661 * d-lang.c (d_language_data): Delete la_compute_program
6662 initializer.
6663 * f-lang.c (f_language_data): Likewise.
6664 * go-lang.c (go_language_data): Likewise.
6665 * language.c (unknown_language_data): Likewise.
6666 (auto_language_data): Likewise.
6667 * language.h (language_data): Delete la_compute_program field.
6668 (language_defn::compute_program): New member function.
6669 * m2-lang.c (m2_language_data): Delete la_compute_program
6670 initializer.
6671 * objc-lang.c (objc_language_data): Likewise.
6672 * opencl-lang.c (opencl_language_data): Likewise.
6673 * p-lang.c (pascal_language_data): Likewise.
6674 * rust-lang.c (rust_language_data): Likewise.
6675
6676 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6677
6678 * ada-lang.c (ada_language_data) Delete
6679 la_class_name_from_physname initializer.
6680 * c-lang.c (c_language_data): Likewise.
6681 (cplus_language_data): Likewise.
6682 (cplus_language::class_name_from_physname): New member function.
6683 (asm_language_data): Delete la_class_name_from_physname
6684 initializer.
6685 (minimal_language_data): Likewise.
6686 * d-lang.c (d_language_data): Likewise.
6687 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6688 method on language_defn class.
6689 (guess_full_die_structure_name): Likewise.
6690 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6691 initializer.
6692 * go-lang.c (go_language_data): Likewise.
6693 * language.c (language_class_name_from_physname): Delete.
6694 (unk_lang_class_name): Delete.
6695 (unknown_language_data): Delete la_class_name_from_physname
6696 initializer.
6697 (auto_language_data): Likewise.
6698 * language.h (language_data): Delete la_class_name_from_physname
6699 field.
6700 (language_defn::class_name_from_physname): New function.
6701 (language_class_name_from_physname): Delete declaration.
6702 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6703 initializer.
6704 * objc-lang.c (objc_language_data): Likewise.
6705 * opencl-lang.c (opencl_language_data): Likewise.
6706 * p-lang.c (pascal_language_data): Likewise.
6707 * rust-lang.c (rust_language_data): Likewise.
6708
6709 2020-06-16 Tom Tromey <tom@tromey.com>
6710
6711 * tui/tui-data.h (STATUS_NAME): New macro.
6712 * tui/tui-layout.c (tui_remove_some_windows)
6713 (initialize_known_windows, tui_register_window)
6714 (tui_layout_split::remove_windows, initialize_layouts)
6715 (tui_new_layout_command): Don't use hard-coded window names.
6716
6717 2020-06-16 Tom Tromey <tom@tromey.com>
6718
6719 PR tui/25348:
6720 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6721 tui_initialize_readline. Only run once. Call rl_initialize.
6722 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6723 tui_initialize_readline.
6724 * tui/tui-io.c (tui_setup_io): Call
6725 tui_ensure_readline_initialized.
6726 * tui/tui-interp.c (tui_interp::init): Update.
6727
6728 2020-06-16 Tom Tromey <tom@tromey.com>
6729
6730 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6731 Also preserve the status window.
6732
6733 2020-06-16 Tom Tromey <tom@tromey.com>
6734
6735 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6736 where m_window==nullptr.
6737
6738 2020-06-15 Tom Tromey <tromey@adacore.com>
6739
6740 * windows-nat.c (windows_nat::handle_output_debug_string):
6741 Update.
6742 (windows_nat::handle_ms_vc_exception): Update.
6743 * target.h (target_read_string): Change API.
6744 * target.c (target_read_string): Change API.
6745 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6746 Update.
6747 * solib-frv.c (frv_current_sos): Update.
6748 * solib-dsbt.c (dsbt_current_sos): Update.
6749 * solib-darwin.c (darwin_current_sos): Update.
6750 * linux-thread-db.c (inferior_has_bug): Update.
6751 * expprint.c (print_subexp_standard): Update.
6752 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6753 (ada_exception_message_1): Update.
6754
6755 2020-06-15 Tom Tromey <tromey@adacore.com>
6756
6757 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6758
6759 2020-06-15 Tom Tromey <tromey@adacore.com>
6760
6761 * valprint.c (read_string): Update comment.
6762 * target.c (MIN): Remove.
6763 (target_read_string): Rewrite.
6764
6765 2020-06-15 Tom Tromey <tromey@adacore.com>
6766
6767 * corefile.c (read_memory_string): Remove.
6768 * ada-valprint.c (ada_value_print_ptr): Update.
6769 * ada-lang.h (ada_tag_name): Change return type.
6770 * ada-lang.c (type_from_tag): Update.
6771 (ada_tag_name_from_tsd): Change return type. Use
6772 target_read_string.
6773 (ada_tag_name): Likewise.
6774 * gdbcore.h (read_memory_string): Don't declare.
6775
6776 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6777
6778 * symtab.c (rbreak_command): Ignore Windows drive colon.
6779
6780 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6781
6782 * NEWS: Mention removed GDBserver host support.
6783
6784 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6785
6786 * features/riscv/rebuild-csr-xml.sh: Updated.
6787
6788 2020-06-11 Tom Tromey <tom@tromey.com>
6789
6790 PR gdb/18318:
6791 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6792
6793 2020-06-09 Jonny Grant <jg@jguk.org>
6794 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6795
6796 * main.c (captured_main_1): Don't print new line after help.
6797 (print_gdb_help): add mailing list and IRC channel information
6798 to --help. Add new lines between items in the footer. Remove
6799 quotes around bug url.
6800
6801 2020-06-11 Keith Seitz <keiths@redhat.com>
6802
6803 PR gdb/21356
6804 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6805 Resolve typedefs for type length calculations.
6806
6807 2020-06-10 Tom de Vries <tdevries@suse.de>
6808
6809 PR ada/24713
6810 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6811 (write_psymbols): Enable .gdb_index for ada.
6812 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6813 ada.
6814
6815 2020-06-10 Tom de Vries <tdevries@suse.de>
6816
6817 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6818 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6819 namei" instead of "const char *name" argument.
6820 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6821 dw2_symtab_iter_init.
6822
6823 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6824
6825 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6826 to use type::field and field::type instead.
6827
6828 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6829
6830 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6831 to use field::type instead.
6832
6833 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6834
6835 * gdbtypes.h (struct field) <type, set_type>: New methods.
6836 Rename `type` field to...
6837 <m_type>: ... this. Change references throughout to use type or
6838 set_type methods.
6839 (FIELD_TYPE): Use field::type. Change call sites that modify
6840 the field's type to use field::set_type instead.
6841
6842 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6843
6844 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6845 to use type::index_type instead.
6846
6847 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6848
6849 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6850 methods.
6851 (TYPE_INDEX_TYPE): Use type::index_type.
6852 * gdbtypes.c (create_array_type_with_stride): Likewise.
6853
6854 2020-06-07 Tom Tromey <tom@tromey.com>
6855
6856 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6857 parameter.
6858 (generic_value_print): Update.
6859
6860 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6861
6862 Revert commit 982a38f60b0.
6863 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6864
6865 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6866
6867 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6868 avoid use after free.
6869
6870 2020-06-05 Tom de Vries <tdevries@suse.de>
6871
6872 * NEWS: Fix typos.
6873
6874 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6875
6876 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6877 the per_bfd object.
6878 (dwarf2_read_debug_names): Likewise.
6879 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6880 object when re-using a per_bfd object with an index.
6881
6882 2020-06-03 Tom de Vries <tdevries@suse.de>
6883
6884 PR symtab/26046
6885 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6886 children for C++.
6887 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6888 DW_TAG_subprogram.
6889
6890 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6891
6892 * ada-lang.c (ada_language_data): Delete skip_trampoline
6893 initializer.
6894 * c-lang.c (c_language_data): Likewise.
6895 (cplus_language_data): Likewise.
6896 (cplus_language::skip_trampoline): New member function.
6897 (asm_language_data): Delete skip_trampoline initializer.
6898 (minimal_language_data): Likewise.
6899 * d-lang.c (d_language_data): Likewise.
6900 * f-lang.c (f_language_data): Likewise.
6901 * go-lang.c (go_language_data): Likewise.
6902 * language.c (unk_lang_trampoline): Delete function.
6903 (skip_language_trampoline): Update.
6904 (unknown_language_data): Delete skip_trampoline initializer.
6905 (auto_language_data): Likewise.
6906 * language.h (language_data): Delete skip_trampoline field.
6907 (language_defn::skip_trampoline): New function.
6908 * m2-lang.c (m2_language_data): Delete skip_trampoline
6909 initializer.
6910 * objc-lang.c (objc_skip_trampoline): Delete function, move
6911 implementation to objc_language::skip_trampoline.
6912 (objc_language_data): Delete skip_trampoline initializer.
6913 (objc_language::skip_trampoline): New member function with
6914 implementation from objc_skip_trampoline.
6915 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6916 initializer.
6917 * p-lang.c (pascal_language_data): Likewise.
6918 * rust-lang.c (rust_language_data): Likewise.
6919
6920 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6921
6922 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6923 (ada_language::demangle): New member function.
6924 * c-lang.c (c_language_data): Delete la_demangle initializer.
6925 (cplus_language_data): Delete la_demangle initializer.
6926 (cplus_language::demangle): New member function.
6927 (asm_language_data): Delete la_demangle initializer.
6928 (minimal_language_data): Delete la_demangle initializer.
6929 * d-lang.c (d_language_data): Delete la_demangle initializer.
6930 (d_language::demangle): New member function.
6931 * f-lang.c (f_language_data): Delete la_demangle initializer.
6932 (f_language::demangle): New member function.
6933 * go-lang.c (go_language_data): Delete la_demangle initializer.
6934 (go_language::demangle): New member function.
6935 * language.c (language_demangle): Update.
6936 (unk_lang_demangle): Delete.
6937 (unknown_language_data): Delete la_demangle initializer.
6938 (unknown_language::demangle): New member function.
6939 (auto_language_data): Delete la_demangle initializer.
6940 (auto_language::demangle): New member function.
6941 * language.h (language_data): Delete la_demangle field.
6942 (language_defn::demangle): New function.
6943 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6944 * objc-lang.c (objc_language_data): Delete la_demangle
6945 initializer.
6946 (objc_language::demangle): New member function.
6947 * opencl-lang.c (opencl_language_data): Delete la_demangle
6948 initializer.
6949 * p-lang.c (pascal_language_data): Likewise.
6950 * rust-lang.c (rust_language_data): Likewise.
6951 (rust_language::demangle): New member function.
6952
6953 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6954
6955 * ada-lang.c (ada_language_data): Delete la_print_type
6956 initializer.
6957 (ada_language::print_type): New member function.
6958 * c-lang.c (c_language_data): Delete la_print_type initializer.
6959 (c_language::print_type): New member function.
6960 (cplus_language_data): Delete la_print_type initializer.
6961 (cplus_language::print_type): New member function.
6962 (asm_language_data): Delete la_print_type initializer.
6963 (asm_language::print_type): New member function.
6964 (minimal_language_data): Delete la_print_type initializer.
6965 (minimal_language::print_type): New member function.
6966 * d-lang.c (d_language_data): Delete la_print_type initializer.
6967 (d_language::print_type): New member function.
6968 * f-lang.c (f_language_data): Delete la_print_type initializer.
6969 (f_language::print_type): New member function.
6970 * go-lang.c (go_language_data): Delete la_print_type initializer.
6971 (go_language::print_type): New member function.
6972 * language.c (unk_lang_print_type): Delete.
6973 (unknown_language_data): Delete la_print_type initializer.
6974 (unknown_language::print_type): New member function.
6975 (auto_language_data): Delete la_print_type initializer.
6976 (auto_language::print_type): New member function.
6977 * language.h (language_data): Delete la_print_type field.
6978 (language_defn::print_type): New function.
6979 (LA_PRINT_TYPE): Update.
6980 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6981 (m2_language::print_type): New member function.
6982 * objc-lang.c (objc_language_data): Delete la_print_type
6983 initializer.
6984 (objc_language::print_type): New member function.
6985 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6986 to opencl_language::print_type.
6987 (opencl_language_data): Delete la_print_type initializer.
6988 (opencl_language::print_type): New member function, implementation
6989 from opencl_print_type.
6990 * p-lang.c (pascal_language_data): Delete la_print_type
6991 initializer.
6992 (pascal_language::print_type): New member function.
6993 * rust-lang.c (rust_print_type): Delete, implementation moved to
6994 rust_language::print_type.
6995 (rust_language_data): Delete la_print_type initializer.
6996 (rust_language::print_type): New member function, implementation
6997 from rust_print_type.
6998
6999 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7000
7001 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7002 implementation moves to...
7003 (ada_language::sniff_from_mangled_name): ...here. Update return
7004 type.
7005 (ada_language_data): Delete la_sniff_from_mangled_name
7006 initializer.
7007 * c-lang.c (c_language_data): Likewise.
7008 (cplus_language_data): Likewise.
7009 (cplus_language::sniff_from_mangled_name): New member function,
7010 implementation taken from gdb_sniff_from_mangled_name.
7011 (asm_language_data): Delete la_sniff_from_mangled_name
7012 initializer.
7013 (minimal_language_data): Likewise.
7014 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7015 implementation moves to cplus_language::sniff_from_mangled_name.
7016 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7017 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7018 moves to...
7019 (d_language::sniff_from_mangled_name): ...here.
7020 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7021 * f-lang.c (f_language_data): Likewise.
7022 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7023 moves to...
7024 (go_language::sniff_from_mangled_name): ...here.
7025 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7026 * language.c (language_sniff_from_mangled_name): Delete.
7027 (unknown_language_data): Delete la_sniff_from_mangled_name
7028 initializer.
7029 (auto_language_data): Likewise.
7030 * language.h (language_data): Delete la_sniff_from_mangled_name
7031 field.
7032 (language_defn::sniff_from_mangled_name): New function.
7033 (language_sniff_from_mangled_name): Delete declaration.
7034 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7035 field.
7036 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7037 implementation moves to...
7038 (objc_language::sniff_from_mangled_name): ...here.
7039 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7040 * opencl-lang.c (opencl_language_data): Likewise.
7041 * p-lang.c (pascal_language_data): Likewise.
7042 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7043 implementation moves to...
7044 (rust_language::sniff_from_mangled_name): ...here.
7045 (rust_language_data): Delete la_sniff_from_mangled_name
7046 initializer.
7047 * symtab.c (symbol_find_demangled_name): Call
7048 sniff_from_mangled_name member function.
7049
7050 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7051
7052 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7053 initializer.
7054 * c-lang.c (c_language_data): Likewise.
7055 (cplus_language_data): Likewise.
7056 (cplus_language::search_name_hash): New member function.
7057 (asm_language_data): Delete la_search_name_hash initializer.
7058 (minimal_language_data): Likewise.
7059 * d-lang.c (d_language_data): Likewise.
7060 * dictionary.c (default_search_name_hash): Rename to...
7061 (language_defn::search_name_hash): ...this.
7062 * f-lang.c (f_language_data): Likewise.
7063 (f_language::search_name_hash): New member function.
7064 * go-lang.c (go_language_data): Delete la_search_name_hash
7065 initializer.
7066 * language.c (unknown_language_data): Likewise.
7067 (auto_language_data): Likewise.
7068 * language.h (struct language_data): Delete la_search_name_hash
7069 field.
7070 (language_defn::search_name_hash): Declare new member function.
7071 (default_search_name_hash): Delete declaration.
7072 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7073 initializer.
7074 * objc-lang.c (objc_language_data): Likewise.
7075 * opencl-lang.c (opencl_language_data): Likewise.
7076 * p-lang.c (pascal_language_data): Likewise.
7077 * rust-lang.c (rust_language_data): Likewise.
7078 * symtab.c (search_name_hash): Update call.
7079
7080 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7081
7082 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7083 initializer.
7084 * c-lang.c (class compile_instance): Declare.
7085 (c_language_data): Delete la_get_compile_instance initializer.
7086 (c_language::get_compile_instance): New member function.
7087 (cplus_language_data): Delete la_get_compile_instance initializer.
7088 (cplus_language::get_compile_instance): New member function.
7089 (asm_language_data): Delete la_get_compile_instance initializer.
7090 (minimal_language_data): Likewise.
7091 * c-lang.h (c_get_compile_context): Update comment.
7092 (cplus_get_compile_context): Update comment.
7093 * compile/compile.c (compile_to_object): Update calls, don't rely
7094 on function pointer being NULL.
7095 * d-lang.c (d_language_data): Delete la_get_compile_instance
7096 initializer.
7097 * f-lang.c (f_language_data): Likewise.
7098 * go-lang.c (go_language_data): Likewise.
7099 * language.c (unknown_language_data): Likewise.
7100 (auto_language_data): Likewise.
7101 * language.h (language_data): Delete la_get_compile_instance field.
7102 (language_defn::get_compile_instance): New member function.
7103 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7104 initializer.
7105 * objc-lang.c (objc_language_data): Likewise.
7106 * opencl-lang.c (opencl_language_data): Likewise.
7107 * p-lang.c (pascal_language_data): Likewise.
7108 * rust-lang.c (rust_language_data): Likewise.
7109
7110 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7111
7112 * ada-lang.c (ada_add_all_symbols): Update comment.
7113 (ada_iterate_over_symbols): Delete, move implementation to...
7114 (ada_language::iterate_over_symbols): ...here, a new member
7115 function, rewrite to use range based for loop.
7116 (ada_language_data): Delete la_iterate_over_symbols initializer.
7117 * c-lang.c (c_language_data): Likewise.
7118 (cplus_language_data): Likewise.
7119 (asm_language_data): Likewise.
7120 (minimal_language_data): Likewise.
7121 * d-lang.c (d_language_data): Likewise.
7122 * f-lang.c (f_language_data): Likewise.
7123 * go-lang.c (go_language_data): Likewise.
7124 * language.c (unknown_language_data): Likewise.
7125 (auto_language_data): Likewise.
7126 * language.h (language_data): Delete la_iterate_over_symbols field.
7127 (language_defn::iterate_over_symbols): New member function.
7128 (LA_ITERATE_OVER_SYMBOLS): Update.
7129 * linespec.c (iterate_over_all_matching_symtabs): Update.
7130 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7131 initializer.
7132 * objc-lang.c (objc_language_data): Likewise.
7133 * opencl-lang.c (opencl_language_data): Likewise.
7134 * p-lang.c (pascal_language_data): Likewise.
7135 * rust-lang.c (rust_language_data): Likewise.
7136
7137 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7138
7139 * ada-lang.c (ada_language_data): Delete
7140 la_lookup_transparent_type initializer.
7141 * c-lang.c (c_language_data): Likewise.
7142 (cplus_language_data): Likewise.
7143 (cplus_language::lookup_transparent_type): New member function.
7144 (asm_language_data): Delete la_lookup_transparent_type
7145 initializer.
7146 (minimal_language_data): Likewise.
7147 * d-lang.c (d_language_data): Likewise.
7148 * f-lang.c (f_language_data): Likewise.
7149 * go-lang.c (go_language_data): Likewise.
7150 * language.c (unknown_language_data): Likewise.
7151 (auto_language_data): Likewise.
7152 * language.h (struct language_data): Delete
7153 la_lookup_transparent_type field.
7154 (language_defn::lookup_transparent_type): New member function.
7155 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7156 initializer.
7157 * objc-lang.c (objc_language_data): Likewise.
7158 * opencl-lang.c (opencl_language_data): Likewise.
7159 * p-lang.c (pascal_language_data): Likewise.
7160 * rust-lang.c (rust_language_data): Likewise.
7161 * symtab.c (symbol_matches_domain): Update call.
7162
7163 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7164
7165 * ada-lang.c (ada_language_arch_info): Delete function, move
7166 implementation to...
7167 (ada_language::language_arch_info): ...here, a new member
7168 function.
7169 (ada_language_data): Delete la_language_arch_info.
7170 * c-lang.c (c_language_data): Likewise.
7171 (c_language::language_arch_info): New member function.
7172 (cplus_language_arch_info): Delete function, move
7173 implementation to...
7174 (cplus_language::language_arch_info): ...here, a new member
7175 function.
7176 (cplus_language_data): Delete la_language_arch_info.
7177 (asm_language_data): Likewise.
7178 (asm_language::language_arch_info): New member function.
7179 (minimal_language_data): Delete la_language_arch_info.
7180 (minimal_language::language_arch_info): New member function.
7181 * d-lang.c (d_language_arch_info): Delete function, move
7182 implementation to...
7183 (d_language::language_arch_info): ...here, a new member
7184 function.
7185 (d_language_data): Delete la_language_arch_info.
7186 * f-lang.c (f_language_arch_info): Delete function, move
7187 implementation to...
7188 (f_language::language_arch_info): ...here, a new member
7189 function.
7190 (f_language_data): Delete la_language_arch_info.
7191 * go-lang.c (go_language_arch_info): Delete function, move
7192 implementation to...
7193 (go_language::language_arch_info): ...here, a new member
7194 function.
7195 (go_language_data): Delete la_language_arch_info.
7196 * language.c (unknown_language_data): Likewise.
7197 (unknown_language::language_arch_info): New member function.
7198 (auto_language_data): Delete la_language_arch_info.
7199 (auto_language::language_arch_info): New member function.
7200 (language_gdbarch_post_init): Update call to
7201 la_language_arch_info.
7202 * language.h (language_data): Delete la_language_arch_info
7203 function pointer.
7204 (language_defn::language_arch_info): New function.
7205 * m2-lang.c (m2_language_arch_info): Delete function, move
7206 implementation to...
7207 (m2_language::language_arch_info): ...here, a new member
7208 function.
7209 (m2_language_data): Delete la_language_arch_info.
7210 * objc-lang.c (objc_language_arch_info): Delete function, move
7211 implementation to...
7212 (objc_language::language_arch_info): ...here, a new member
7213 function.
7214 (objc_language_data): Delete la_language_arch_info.
7215 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7216 implementation to...
7217 (opencl_language::language_arch_info): ...here, a new member
7218 function.
7219 (opencl_language_data): Delete la_language_arch_info.
7220 * p-lang.c (pascal_language_arch_info): Delete function, move
7221 implementation to...
7222 (pascal_language::language_arch_info): ...here, a new member
7223 function.
7224 (pascal_language_data): Delete la_language_arch_info.
7225 * rust-lang.c (rust_language_arch_info): Delete function, move
7226 implementation to...
7227 (rust_language::language_arch_info): ...here, a new member
7228 function.
7229 (rust_language_data): Delete la_language_arch_info.
7230
7231 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7232
7233 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7234 initializer.
7235 * c-lang.c (c_language_data): Likewise.
7236 (cplus_language_data): Likewise.
7237 (cplus_language::pass_by_reference_info): New method.
7238 (asm_language_data): Delete la_pass_by_reference initializer.
7239 (minimal_language_data): Likewise.
7240 * cp-abi.c (cp_pass_by_reference): Remove use of
7241 default_pass_by_reference.
7242 * d-lang.c (d_language_data): Likewise.
7243 * f-lang.c (f_language_data): Likewise.
7244 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7245 default_pass_by_reference.
7246 * go-lang.c (go_language_data): Likewise.
7247 * language.c (language_pass_by_reference): Update.
7248 (default_pass_by_reference): Delete.
7249 (unknown_language_data): Delete la_pass_by_reference
7250 initializer.
7251 (auto_language_data): Likewise.
7252 * language.h (struct language_data): Delete la_pass_by_reference
7253 field.
7254 (language_defn::pass_by_reference_info): New member function.
7255 (default_pass_by_reference): Delete declaration.
7256 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7257 initializer.
7258 * objc-lang.c (objc_language_data): Likewise.
7259 * opencl-lang.c (opencl_language_data): Likewise.
7260 * p-lang.c (pascal_language_data): Likewise.
7261 * rust-lang.c (rust_language_data): Likewise.
7262
7263 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7264
7265 * ada-lang.c (ada_read_var_value): Delete function, move
7266 implementation to...
7267 (ada_language::read_var_value): ...here.
7268 (ada_language_data): Delete la_read_var_value initializer.
7269 * c-lang.c (c_language_data): Likewise.
7270 (cplus_language_data): Likewise.
7271 (minimal_language_data): Likewise.
7272 * d-lang.c (d_language_data): Likewise.
7273 * f-lang.c (f_language_data): Likewise.
7274 * findvar.c (default_read_var_value): Rename to...
7275 (language_defn::read_var_value): ...this.
7276 * findvar.c (read_var_value): Update header comment, and change to
7277 call member function instead of function pointer.
7278 * go-lang.c (go_language_data): Likewise.
7279 * language.c (unknown_language_data): Delete la_read_var_value
7280 initializer.
7281 (auto_language_data): Likewise.
7282 * language.h (struct language_data): Delete la_read_var_value
7283 field.
7284 (language_defn::read_var_value): New member function.
7285 (default_read_var_value): Delete declaration.
7286 * m2-lang.c (m2_language_data): Delete la_read_var_value
7287 initializer.
7288 * objc-lang.c (objc_language_data): Likewise.
7289 * opencl-lang.c (opencl_language_data): Likewise.
7290 * p-lang.c (pascal_language_data): Likewise.
7291 * rust-lang.c (rust_language_data): Likewise.
7292 * value.h (default_read_var_value): Delete declaration.
7293
7294 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7295
7296 * ada-lang.c (ada_print_array_index): Delete function, move
7297 implementation to...
7298 (ada_language::print_array_index): ...here.
7299 (ada_language_data): Delete la_print_array_index initializer.
7300 * c-lang.c (c_language_data): Likewise.
7301 (cplus_language_data): Likewise.
7302 (minimal_language_data): Likewise.
7303 * d-lang.c (d_language_data): Likewise.
7304 * f-lang.c (f_language_data): Likewise.
7305 * go-lang.c (go_language_data): Likewise.
7306 * language.c (default_print_array_index): Delete function, move
7307 implementation to...
7308 (language_defn::print_array_index): ...here.
7309 (unknown_language_data): Delete la_print_array_index initializer.
7310 (auto_language_data): Likewise.
7311 * language.h (struct language_data): Delete la_print_array_index
7312 field.
7313 (language_defn::print_array_index): New member function.
7314 (LA_PRINT_ARRAY_INDEX): Update.
7315 (default_print_array_index): Delete declaration.
7316 * m2-lang.c (m2_language_data): Delete la_print_array_index
7317 initializer.
7318 * objc-lang.c (objc_language_data): Likewise.
7319 * opencl-lang.c (opencl_language_data): Likewise.
7320 * p-lang.c (pascal_language_data): Likewise.
7321 * rust-lang.c (rust_language_data): Likewise.
7322
7323 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7324
7325 * gdb/ada-lang.c (ada_language_defn): Convert to...
7326 (ada_language_data): ...this.
7327 (class ada_language): New class.
7328 (ada_language_defn): New static global.
7329 * gdb/c-lang.c (c_language_defn): Convert to...
7330 (c_language_data): ...this.
7331 (class c_language): New class.
7332 (c_language_defn): New static global.
7333 (cplus_language_defn): Convert to...
7334 (cplus_language_data): ...this.
7335 (class cplus_language): New class.
7336 (cplus_language_defn): New static global.
7337 (asm_language_defn): Convert to...
7338 (asm_language_data): ...this.
7339 (class asm_language): New class.
7340 (asm_language_defn): New static global.
7341 (minimal_language_defn): Convert to...
7342 (minimal_language_data): ...this.
7343 (class minimal_language): New class.
7344 (minimal_language_defn): New static global.
7345 * gdb/d-lang.c (d_language_defn): Convert to...
7346 (d_language_data): ...this.
7347 (class d_language): New class.
7348 (d_language_defn): New static global.
7349 * gdb/f-lang.c (f_language_defn): Convert to...
7350 (f_language_data): ...this.
7351 (class f_language): New class.
7352 (f_language_defn): New static global.
7353 * gdb/go-lang.c (go_language_defn): Convert to...
7354 (go_language_data): ...this.
7355 (class go_language): New class.
7356 (go_language_defn): New static global.
7357 * gdb/language.c (unknown_language_defn): Remove declaration.
7358 (current_language): Initialize to nullptr, real initialization is
7359 moved to _initialize_language.
7360 (languages): Delete global.
7361 (language_defn::languages): Define.
7362 (set_language_command): Use language_defn::languages.
7363 (set_language): Likewise.
7364 (range_error): Likewise.
7365 (language_enum): Likewise.
7366 (language_def): Likewise.
7367 (add_set_language_command): Use language_def::languages for the
7368 language list, and language_def to lookup language pointers.
7369 (skip_language_trampoline): Use language_defn::languages.
7370 (unknown_language_defn): Convert to...
7371 (unknown_language_data): ...this.
7372 (class unknown_language): New class.
7373 (unknown_language_defn): New static global.
7374 (auto_language_defn): Convert to...
7375 (auto_language_data): ...this.
7376 (class auto_language): New class.
7377 (auto_language_defn): New static global.
7378 (language_gdbarch_post_init): Use language_defn::languages.
7379 (_initialize_language): Initialize current_language.
7380 * gdb/language.h (struct language_defn): Rename to...
7381 (struct language_data): ...this.
7382 (struct language_defn): New.
7383 (auto_language_defn): Delete.
7384 (unknown_language_defn): Delete.
7385 (minimal_language_defn): Delete.
7386 (ada_language_defn): Delete.
7387 (asm_language_defn): Delete.
7388 (c_language_defn): Delete.
7389 (cplus_language_defn): Delete.
7390 (d_language_defn): Delete.
7391 (f_language_defn): Delete.
7392 (go_language_defn): Delete.
7393 (m2_language_defn): Delete.
7394 (objc_language_defn): Delete.
7395 (opencl_language_defn): Delete.
7396 (pascal_language_defn): Delete.
7397 (rust_language_defn): Delete.
7398 * gdb/m2-lang.c (m2_language_defn): Convert to...
7399 (m2_language_data): ...this.
7400 (class m2_language): New class.
7401 (m2_language_defn): New static global.
7402 * gdb/objc-lang.c (objc_language_defn): Convert to...
7403 (objc_language_data): ...this.
7404 (class objc_language): New class.
7405 (objc_language_defn): New static global.
7406 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7407 (opencl_language_data): ...this.
7408 (class opencl_language): New class.
7409 (opencl_language_defn): New static global.
7410 * gdb/p-lang.c (pascal_language_defn): Convert to...
7411 (pascal_language_data): ...this.
7412 (class pascal_language): New class.
7413 (pascal_language_defn): New static global.
7414 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7415 language pointer, update comment format.
7416 * gdb/rust-lang.c (rust_language_defn): Convert to...
7417 (rust_language_data): ...this.
7418 (class rust_language): New class.
7419 (rust_language_defn): New static global.
7420
7421 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7422
7423 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7424 member variable.
7425 <m_stmt_at_address>: New member variable.
7426 (lnp_state_machine::record_line): Don't record some lines, update
7427 tracking of is_stmt at the same address.
7428 (lnp_state_machine::lnp_state_machine): Initialise new member
7429 variables.
7430
7431 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7432
7433 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7434 "-include gnu-nat-mig.h".
7435 * gnu-nat-mig.h: New file.
7436 * gnu-nat.c: Include "gnu-nat-mig.h".
7437 (exc_server, msg_reply_server, notify_server,
7438 process_reply_server): Remove declarations.
7439
7440 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7441
7442 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7443 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7444 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7445 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7446 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7447 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7448 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7449 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7450 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7451 to gnu_nat_target class.
7452 * gnu-nat.c: Likewise.
7453 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7454 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7455 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7456 object.
7457 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7458 instead of `gnu_target'.
7459
7460 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7461
7462 * i386-gnu-tdep.c: Include "gdbcore.h"
7463 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7464 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7465 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7466 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7467 i386_gnu_sigcontext_addr): New functions
7468 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7469 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7470 tdep.
7471
7472 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7473
7474 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7475 before fork_inferior call. Avoid calling it if target_is_pushed returns
7476 true.
7477
7478 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7479
7480 * gnu-nat.h (gnu_target): New variable declaration.
7481 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7482 gnu_target.
7483 * gnu-nat.c (gnu_target): New variable.
7484 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7485 add_thread_silent, and add_thread calls.
7486 (gnu_nat_target::create_inferior): Pass gnu_target to
7487 add_thread_silent, thread_change_ptid call.
7488 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7489 call.
7490
7491 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7492
7493 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7494 (gnu_nat_target::find_memory_regions): Remove unused
7495 `old_address' variable.
7496
7497 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7498
7499 * gnu-nat.c: Include "gdbarch.h".
7500
7501 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7502
7503 * reply_mig_hack.awk (Error return): Cast function through
7504 void *, to bypass compiler function call check.
7505
7506 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7507
7508 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7509 $(srcdir)/reply_mig_hack.awk.
7510
7511 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7512
7513 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7514
7515 2020-05-30 Jonny Grant <jg@jguk.org>
7516
7517 * configure.ac (ACX_BUGURL): change bug URL to https.
7518
7519 2020-05-30 Pedro Alves <palves@redhat.com>
7520
7521 * cp-support.c (replace_typedefs_template): New.
7522 (replace_typedefs_qualified_name): Handle
7523 DEMANGLE_COMPONENT_TEMPLATE.
7524
7525 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7526
7527 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7528 dwarf2/index-cache.h, dwarf2/index-write.c,
7529 dwarf2/index-write.h, dwarf2/line-header.c,
7530 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7531 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7532 variables and fields from `dwarf2_per_objfile` to just
7533 `per_objfile` throughout.
7534
7535 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7536
7537 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7538 <push_dwarf_reg_entry_value>: Add comment.
7539
7540 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7541 Keith Seitz <keiths@redhat.com>
7542
7543 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7544 instead of PyEval_ReleaseLock.
7545 (class gdbpy_gil): Move to earlier in file.
7546 (finalize_python): Set gdb_python_initialized.
7547 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7548 when not initialized.
7549
7550 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7551
7552 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7553 <push_dwarf_reg_entry_value>: Remove assert. Override
7554 per_objfile with caller_per_objfile.
7555
7556 2020-05-28 Tom de Vries <tdevries@suse.de>
7557
7558 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7559 PR gold/15646 workaround to symbol kind "type".
7560
7561 2020-05-27 Tom Tromey <tromey@adacore.com>
7562
7563 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7564
7565 2020-05-27 Tom Tromey <tromey@adacore.com>
7566
7567 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7568 Use htab_find_with_hash.
7569 <add_abbrev>: Remove "abbrev_number" parameter.
7570 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7571 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7572 (hash_abbrev): Add comment.
7573 (abbrev_table::lookup_abbrev): Move to header file.
7574 (abbrev_table::read): Update.
7575
7576 2020-05-27 Tom Tromey <tromey@adacore.com>
7577
7578 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7579 method.
7580 <canonical_name>: New member.
7581 <raw_name>: Rename from "name".
7582 (partial_die_info): Initialize canonical_name.
7583 (scan_partial_symbols): Check raw_name.
7584 (partial_die_parent_scope, partial_die_full_name)
7585 (add_partial_symbol, add_partial_subprogram)
7586 (add_partial_enumeration, load_partial_dies): Use "name" method.
7587 (partial_die_info::name): New method.
7588 (partial_die_info::read, guess_partial_die_structure_name)
7589 (partial_die_info::fixup): Update.
7590
7591 2020-05-27 Tom Tromey <tromey@adacore.com>
7592
7593 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7594 <get_ref_die_offset>: Inline.
7595 <get_ref_die_offset_complaint>: New method.
7596 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7597 (attribute::get_ref_die_offset_complaint): Rename from
7598 get_ref_die_offset. Just issue complaint.
7599
7600 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7601
7602 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7603
7604 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7605
7606 * exec.c (exec_file_attach): Use errno value of first openp failure.
7607
7608 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7609
7610 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7611 Don't close thread handle.
7612
7613 2020-05-27 Tom Tromey <tom@tromey.com>
7614 Simon Marchi <simon.marchi@efficios.com>
7615
7616 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7617 shared_ptr.
7618 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7619 member.
7620 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7621 dwarf2_per_bfd_objfile_data_key>: New globals.
7622 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7623 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7624 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7625 shared.
7626 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7627 short-circuit when sharing.
7628 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7629 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7630
7631 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7634 to...
7635 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7636 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7637
7638 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7639
7640 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7641 build_name_components, find_name_components_bounds>:
7642 Add per_objfile parameter.
7643 (struct mapped_index) <symbol_name_at>: Likewise.
7644 (struct mapped_debug_names): Remove constructor.
7645 <dwarf2_per_objfile>: Remove field.
7646 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7647 (mapped_index_base::find_name_components_bounds,
7648 mapped_index_base::build_name_components,
7649 dw2_expand_symtabs_matching_symbol): Likewise.
7650 (class mock_mapped_index) <symbol_name_at>: Likewise.
7651 (check_match): Likewise.
7652 (check_find_bounds_finds): Likewise.
7653 (test_mapped_index_find_name_component_bounds): Update.
7654 (CHECK_MATCH): Update.
7655 (dw2_expand_symtabs_matching): Update.
7656 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7657 per_objfile parameter.
7658 <find_vec_in_debug_names>: Likewise.
7659 <m_per_objfile>: New field.
7660 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7661 parameter.
7662 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7663 (dw2_debug_names_iterator::next): Update.
7664 (dw2_debug_names_lookup_symbol): Update.
7665 (dw2_debug_names_expand_symtabs_for_function): Update.
7666 (dw2_debug_names_map_matching_symbols): Update.
7667 (dw2_debug_names_expand_symtabs_matching): Update.
7668 (dwarf2_read_debug_names): Update.
7669
7670 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7671
7672 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7673 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7674 move to dwarf2_per_objfile.
7675 <read_in_chain>: Remove.
7676 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7677 remove_all_cus, age_comp_units>: New methods.
7678 <m_dwarf2_cus>: New member.
7679 (struct dwarf2_per_cu_data) <cu>: Remove.
7680 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7681 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7682 moved to methods of dwarf2_per_objfile.
7683 (dwarf2_clear_marks): Remove.
7684 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7685 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7686 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7687 (dwarf2_per_objfile::remove_all_cus): New.
7688 (class free_cached_comp_units) <~free_cached_comp_units>:
7689 Update.
7690 (load_cu): Update.
7691 (dw2_do_instantiate_symtab): Adjust.
7692 (fill_in_sig_entry_from_dwo_entry): Adjust.
7693 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7694 (cutu_reader::cutu_reader): Likewise.
7695 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7696 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7697 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7698 and dwarf2_per_objfile::age_comp_units.
7699 (load_partial_comp_unit): Update.
7700 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7701 (process_queue): Likewise.
7702 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7703 backlink.
7704 (dwarf2_read_addr_index): Likewise.
7705 (follow_die_offset): Likewise.
7706 (dwarf2_fetch_die_loc_sect_off): Likewise.
7707 (dwarf2_fetch_constant_bytes): Likewise.
7708 (dwarf2_fetch_die_type_sect_off): Likewise.
7709 (follow_die_sig_1): Likewise.
7710 (load_full_type_unit): Likewise.
7711 (read_signatured_type): Likewise.
7712 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7713 (dwarf2_cu::~dwarf2_cu): Remove.
7714 (dwarf2_per_objfile::get_cu): New.
7715 (dwarf2_per_objfile::set_cu): New.
7716 (age_cached_comp_units): Rename to...
7717 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7718 to std::unordered_map.
7719 (free_one_cached_comp_unit): Rename to...
7720 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7721 to std::unordered_map.
7722 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7723 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7724 a dwarf2_per_objfile in data.
7725 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7726 (dwarf2_clear_marks): Remove.
7727
7728 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7729
7730 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7731 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7732 (init_tu_and_read_dwo_dies): Likewise.
7733 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7734 (cutu_reader::cutu_reader): Likewise.
7735 (load_partial_comp_unit): Likewise.
7736 (process_psymtab_comp_unit): Update.
7737 (build_type_psymtabs_1): Update.
7738 (process_skeletonless_type_unit): Update.
7739 (load_full_comp_unit): Update.
7740 (find_partial_die): Update.
7741 (dwarf2_read_addr_index): Update.
7742 (read_signatured_type): Update.
7743
7744 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7745
7746 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7747 m_header_read_in>: New fields.
7748 <get_header>: New method.
7749 * dwarf2/read.c (per_cu_header_read_in): Remove.
7750 (dwarf2_per_cu_data::get_header): New.
7751 (dwarf2_per_cu_data::addr_size): Update.
7752 (dwarf2_per_cu_data::offset_size): Update.
7753 (dwarf2_per_cu_data::ref_addr_size): Update.
7754
7755 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7756
7757 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7758 (dw2_do_instantiate_symtab): Update.
7759 (queue_and_load_all_dwo_tus): Change parameter from
7760 dwarf2_per_cu_data to dwarf2_cu.
7761 (dwarf2_fetch_die_loc_sect_off): Update.
7762 (dwarf2_fetch_constant_bytes): Update.
7763 (dwarf2_fetch_die_type_sect_off): Update.
7764
7765 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7766
7767 * dwarf2/read.c (process_full_comp_unit,
7768 process_full_type_unit): Remove per_cu, per_objfile paramters.
7769 Add dwarf2_cu parameter.
7770 (process_queue): Update.
7771
7772 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7773
7774 * dwarf2/read.c (create_cu_from_index_list): Replace
7775 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7776 (create_cus_from_index_list): Likewise.
7777 (create_cus_from_index): Likewise.
7778 (create_signatured_type_table_from_index): Likewise.
7779 (create_cus_from_debug_names_list): Likewise.
7780 (create_cus_from_debug_names): Likewise.
7781 (dwarf2_read_gdb_index): Update.
7782 (dwarf2_read_debug_names): Update.
7783
7784 2020-05-27 Tom Tromey <tom@tromey.com>
7785 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * dwarf2/read.h (struct dwarf2_per_objfile)
7788 <get_type_for_signatured_type, set_type_for_signatured_type>:
7789 New methods.
7790 <m_type_map>: New member.
7791 (struct signatured_type) <type>: Remove.
7792 * dwarf2/read.c
7793 (dwarf2_per_objfile::get_type_for_signatured_type,
7794 dwarf2_per_objfile::set_type_for_signatured_type): New.
7795 (get_signatured_type): Use new methods.
7796
7797 2020-05-27 Tom Tromey <tom@tromey.com>
7798 Simon Marchi <simon.marchi@efficios.com>
7799
7800 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7801 (struct dwarf2_per_objfile) <type_units>: New member.
7802 <get_type_unit_group_unshareable>: New method.
7803 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7804 num_symtabs, symtabs>: Remove; move to
7805 type_unit_group_unshareable.
7806 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7807 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7808 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7809
7810 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7811
7812 * dwarf2/read.h (struct dwarf2_per_cu_data):
7813 <dwarf2_per_objfile>: Remove.
7814 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7815 dwarf2_per_objfile.
7816 (create_signatured_type_table_from_index): Likewise.
7817 (create_signatured_type_table_from_debug_names): Likewise.
7818 (create_debug_type_hash_table): Likewise.
7819 (fill_in_sig_entry_from_dwo_entry): Likewise.
7820 (create_type_unit_group): Likewise.
7821 (read_comp_units_from_section): Likewise.
7822 (create_cus_hash_table): Likewise.
7823
7824 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7825
7826 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7827 dwarf2_per_cu_data::dwarf2_per_objfile.
7828 (compute_compunit_symtab_includes): Likewise.
7829 (dwarf2_cu::start_symtab): Likewise.
7830
7831 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7832
7833 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7834 parameter.
7835 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7836 (read_namespace_alias): Update.
7837 (lookup_die_type): Update.
7838 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7839 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7840 Update.
7841 (disassemble_dwarf_expression): Update.
7842
7843 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * dwarf2/read.h (struct dwarf2_queue_item): Add
7846 dwarf2_per_objfile parameter, assign new parameter.
7847 <per_objfile>: New field.
7848 * dwarf2/read.c (free_one_cached_comp_unit): Add
7849 dwarf2_per_objfile parameter.
7850 (queue_comp_unit): Likewise.
7851 (dw2_do_instantiate_symtab): Update.
7852 (process_psymtab_comp_unit): Update.
7853 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7854 (process_imported_unit_die): Update.
7855 (queue_and_load_dwo_tu): Update.
7856 (follow_die_offset): Update.
7857 (follow_die_sig_1): Update.
7858
7859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7862 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7863 (read_call_site_scope): Assign per_objfile.
7864 (dwarf2_per_cu_data::objfile): Remove.
7865 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7866 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7867 dwarf2_per_objfile parameter.
7868 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7869 dwarf2_per_objfile parameter.
7870 (dwarf_expr_reg_to_entry_parameter): Add output
7871 dwarf2_per_objfile parameter.
7872 (locexpr_get_frame_base): Update.
7873 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7874 <push_dwarf_reg_entry_value>: Update.
7875 <call_site_to_target_addr>: Update.
7876 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7877 parameter.
7878 (value_of_dwarf_reg_entry): Update.
7879 (rw_pieced_value): Update.
7880 (indirect_synthetic_pointer): Update.
7881 (dwarf2_evaluate_property): Update.
7882 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7883 parameter.
7884 (locexpr_read_variable): Update.
7885 (locexpr_get_symbol_read_needs): Update.
7886 (loclist_read_variable): Update.
7887
7888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7889
7890 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7891 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7892 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7893 parameter.
7894 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7895 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7896 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7897 parameter.
7898 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7899 sect_variable_value): Add dwarf2_per_objfile parameter.
7900 (class dwarf_evaluate_loc_desc) <dwarf_call,
7901 dwarf_variable_value>: Update.
7902 (fetch_const_value_from_synthetic_pointer): Add
7903 dwarf2_per_objfile parameter.
7904 (fetch_const_value_from_synthetic_pointer): Update.
7905 (coerced_pieced_ref): Update.
7906 (class symbol_needs_eval_context) <dwarf_call,
7907 dwarf_variable_value>: Update.
7908 (dwarf2_compile_expr_to_ax): Update.
7909
7910 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7913 parameter.
7914 (dwarf2_evaluate_loc_desc_full): Update.
7915
7916 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7917
7918 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7919 parameter.
7920 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7921 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7922 dwarf2_per_objfile parameter.
7923 (decode_debug_loc_dwo_addresses): Likewise.
7924 (dwarf2_find_location_expression): Update.
7925 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7926 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7927 parameter.
7928 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7929 parameter.
7930 (locexpr_describe_location_1): Likewise.
7931 (locexpr_describe_location): Update.
7932
7933 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7936 Remove.
7937 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7938 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7939 (dwarf2_compile_property_to_c): Update.
7940 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7941 use text offset from objfile.
7942 (locexpr_tracepoint_var_ref): Update.
7943 (locexpr_generate_c_location): Update.
7944 (loclist_describe_location): Update.
7945 (loclist_tracepoint_var_ref): Update.
7946 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7947 dwarf2_per_objfile parameter.
7948 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7949 use text offset from objfile.
7950 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7951
7952 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7953
7954 * dwarf2/expr.h (struct dwarf_expr_context)
7955 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7956 <offset>: Remove.
7957 <per_objfile>: New member.
7958 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7959 dwarf2_per_objfile parameter. Don't set offset, set
7960 per_objfile.
7961 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7962 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7963 a dwarf2_per_objfile object instead of an offset.
7964 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7965 constructor.
7966 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7967 to dwarf2_expr_executor constructor. Don't set offset.
7968 (dwarf2_fetch_cfa_info): Update.
7969 (struct dwarf2_frame_cache) <text_offset>: Remove.
7970 <per_objfile>: New field.
7971 (dwarf2_frame_cache): Update.
7972 (dwarf2_frame_prev_register): Update.
7973 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7974 <dwarf_evaluate_loc_desc>: Add constructor.
7975 (dwarf2_evaluate_loc_desc_full): Update.
7976 (dwarf2_locexpr_baton_eval): Update.
7977 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7978 Add constructor.
7979 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7980
7981 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7984 addr_sized_int_type>: Move to dwarf2_cu.
7985 <int_type>: Move to dwarf2_per_objfile.
7986 (struct dwarf2_per_objfile) <int_type>: Move here.
7987 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7988 addr_sized_int_type>: Move here.
7989 (read_func_scope): Update.
7990 (read_array_type): Update.
7991 (read_tag_string_type): Update.
7992 (attr_to_dynamic_prop): Update.
7993 (dwarf2_per_cu_data::int_type): Rename to...
7994 (dwarf2_per_objfile::int_type): ... this.
7995 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7996 (dwarf2_cu::addr_sized_int_type): ... this.
7997 (read_subrange_type): Update.
7998 (dwarf2_per_cu_data::addr_type): Rename to...
7999 (dwarf2_cu::addr_type): ... this.
8000 (set_die_type): Update.
8001
8002 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8003
8004 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8005 data through per_cu->cu.
8006
8007 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8010 dwarf2_per_cu_data parameter fo dwarf2_cu.
8011 (lookup_dwo_type_unit): Likewise.
8012 (read_cutu_die_from_dwo): Likewise.
8013 (lookup_dwo_unit): Likewise.
8014 (open_and_init_dwo_file): Likewise.
8015 (lookup_dwo_cutu): Likewise.
8016 (lookup_dwo_comp_unit): Likewise.
8017 (lookup_dwo_type_unit): Likewise.
8018 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8019 (cutu_reader::cutu_reader): Update.
8020
8021 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8022
8023 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8024 parameter.
8025 (process_full_type_unit): Likewise.
8026 (process_queue): Update.
8027
8028 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8029
8030 * dwarf2/read.c (recursively_compute_inclusions): Add
8031 dwarf2_per_objfile parameter.
8032 (compute_compunit_symtab_includes): Likewise.
8033 (process_cu_includes): Update.
8034
8035 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8038 parameter.
8039 (create_type_unit_group): Update.
8040 (process_psymtab_comp_unit_reader): Update.
8041 (build_type_psymtabs_reader): Update.
8042
8043 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8044
8045 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8046 object through m_this_cu->cu.
8047
8048 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8049
8050 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8051 the info parameter.
8052 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8053
8054 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8055
8056 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8057 per_objfile parameter.
8058 (load_full_type_unit): Add per_objfile parameter.
8059 (read_signatured_type): Likewise.
8060 (load_full_comp_unit): Likewise.
8061 (load_cu): Likewise.
8062 (dw2_do_instantiate_symtab): Likewise.
8063 (dw2_get_file_names): Likewise.
8064 (dw2_map_symtabs_matching_filename): Update.
8065 (dw_expand_symtabs_matching_file_matcher): Update.
8066 (dw2_map_symbol_filenames): Update.
8067 (process_psymtab_comp_unit): Add per_objfile parameter.
8068 (build_type_psymtabs_1): Update.
8069 (process_skeletonless_type_unit): Update.
8070 (dwarf2_build_psymtabs_hard): Update.
8071 (load_partial_comp_unit): Add per_objfile parameter.
8072 (scan_partial_symbols): Update.
8073 (load_full_comp_unit): Add per_objfile parameter.
8074 (process_imported_unit_die): Update.
8075 (create_cus_hash_table): Update.
8076 (find_partial_die): Update.
8077 (dwarf2_read_addr_index): Update.
8078 (follow_die_offset): Update.
8079 (dwarf2_fetch_die_loc_sect_off): Update.
8080 (dwarf2_fetch_constant_bytes): Update.
8081 (dwarf2_fetch_die_type_sect_off): Update.
8082 (follow_die_sig_1): Update.
8083 (load_full_type_unit): Add per_objfile parameter.
8084 (read_signatured_type): Likewise.
8085
8086 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8087
8088 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8089 of objfile_name.
8090
8091 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8092
8093 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8094 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8095 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8096 field.
8097 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8098 (create_cus_from_index): Update.
8099 (dwarf2_read_gdb_index): Update.
8100 (create_cus_from_debug_names): Update.
8101 (dwarf2_read_debug_names): Update.
8102 (get_abbrev_section_for_cu): Update.
8103 (create_all_comp_units): Update.
8104 (read_attribute_value): Update.
8105 (get_debug_line_section): Update.
8106 * dwarf2/index-cache.c (index_cache::store): Update.
8107 * dwarf2/index-write.c (save_gdb_index_command): Update.
8108 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8109
8110 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8111
8112 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8113 member.
8114 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8115 dwarf2_per_cu_data::per_bfd.
8116 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8117 (create_type_unit_group): Likewise.
8118 (queue_comp_unit): Remove reference to
8119 per_cu->dwarf2_per_objfile.
8120 (maybe_queue_comp_unit): Likewise.
8121 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8122 (create_cus_hash_table): Assign new field.
8123
8124 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8125
8126 * dwarf2/read.c: Replace
8127 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8128 dwarf2_cu->per_objfile throughout.
8129
8130 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8133 parameter, don't use per_cu->dwarf2_per_objfile.
8134 (dw2_instantiate_symtab): Likewise.
8135 (dw2_find_last_source_symtab): Update.
8136 (dw2_map_expand_apply): Update.
8137 (dw2_lookup_symbol): Update.
8138 (dw2_expand_symtabs_for_function): Update.
8139 (dw2_expand_all_symtabs): Update.
8140 (dw2_expand_symtabs_with_fullname): Update.
8141 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8142 don't use per_cu->dwarf2_per_objfile.
8143 (dw2_expand_marked_cus): Update.
8144 (dw2_find_pc_sect_compunit_symtab): Update.
8145 (dw2_debug_names_lookup_symbol): Update.
8146 (dw2_debug_names_expand_symtabs_for_function): Update.
8147 (dw2_debug_names_map_matching_symbols): Update.
8148 (dwarf2_psymtab::expand_psymtab): Update.
8149
8150 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8151
8152 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8153 <per_objfile>: New member.
8154 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8155 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8156 call to dwarf2_cu.
8157 (cutu_reader::cutu_reader): Update.
8158 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8159
8160 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8161
8162 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8163 struct dwarf2_per_objfile.
8164 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8165 dwarf2_per_bfd.
8166 * dwarf2/read.c (set_die_type): Update.
8167 (get_die_type_at_offset): Update.
8168
8169 2020-05-27 Tom Tromey <tom@tromey.com>
8170 Simon Marchi <simon.marchi@efficios.com>
8171
8172 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8173 method.
8174 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8175 get_symtab, set_symtab>: New methods.
8176 <m_symtabs>: New field.
8177 (struct dwarf2_psymtab): Derive from partial_symtab.
8178 <readin_p, get_compunit_symtab>: Declare methods.
8179 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8180 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8181 New methods.
8182 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8183 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8184 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8185 (dw2_symtab_iter_next, dw2_print_stats)
8186 (dw2_expand_symtabs_with_fullname)
8187 (dw2_expand_symtabs_matching_one)
8188 (dw_expand_symtabs_matching_file_matcher)
8189 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8190 (dw2_debug_names_iterator::next)
8191 (dw2_debug_names_map_matching_symbols)
8192 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8193 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8194 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8195 New methods.
8196 (get_compunit_symtab, process_full_comp_unit)
8197 (process_full_type_unit): Update.
8198 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8199
8200 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8201
8202 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8203 then introduce a new dwarf2_per_objfile type.
8204 <read_line_string>: Move to the new dwarf2_per_objfile type.
8205 <objfile>: Likewise.
8206 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8207 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8208 dwarf2_per_objfile->per_bfd.
8209 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8210 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8211 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8212 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8213 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8214 (dwarf2_per_objfile::locate_sections): Rename to...
8215 (dwarf2_per_bfd::locate_sections): ... this.
8216 (dwarf2_per_objfile::get_cutu): Rename to...
8217 (dwarf2_per_bfd::get_cutu): ... this.
8218 (dwarf2_per_objfile::get_cu): Rename to...
8219 (dwarf2_per_bfd::get_cu): ... this.
8220 (dwarf2_per_objfile::get_tu): Rename to...
8221 (dwarf2_per_bfd::get_tu): ... this.
8222 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8223 (dwarf2_per_bfd::allocate_per_cu): ... this.
8224 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8225 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8226 (get_gdb_index_contents_ftype): Change parameter from
8227 dwarf2_per_objfile to dwarf2_per_bfd.
8228 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8229 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8230
8231 2020-05-27 Tom Tromey <tom@tromey.com>
8232 Simon Marchi <simon.marchi@efficios.com>
8233
8234 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8235 (allocate_piece_closure): Set "per_objfile" member.
8236 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8237 (locexpr_describe_location, loclist_describe_location): Use new
8238 member.
8239 * dwarf2/read.c (read_call_site_scope)
8240 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8241 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8242 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8243 handle_data_member_location): Set per_objfile member.
8244 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8245 member.
8246 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8247
8248 2020-05-27 Tom Tromey <tom@tromey.com>
8249
8250 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8251 allocate_signatured_type>: Declare new methods.
8252 <m_num_psymtabs>: New member.
8253 (struct dwarf2_per_cu_data) <index>: New member.
8254 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8255 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8256 (create_cu_from_index_list): Use allocate_per_cu.
8257 (create_signatured_type_table_from_index)
8258 (create_signatured_type_table_from_debug_names)
8259 (create_debug_type_hash_table, add_type_unit)
8260 (read_comp_units_from_section): Use allocate_signatured_type.
8261
8262 2020-05-27 Tom Tromey <tom@tromey.com>
8263
8264 * psymtab.c (partial_map_expand_apply)
8265 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8266 (psym_lookup_global_symbol_language)
8267 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8268 (psym_print_stats, psym_expand_symtabs_for_function)
8269 (psym_map_symbol_filenames, psym_map_matching_symbols)
8270 (psym_expand_symtabs_matching)
8271 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8272 (maintenance_check_psymtabs): Update.
8273 * psympriv.h (struct partial_symtab) <readin_p,
8274 get_compunit_symtab>: Add objfile parameter.
8275 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8276 Likewise.
8277 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8278 get_compunit_symtab>: Likewise.
8279 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8280
8281 2020-05-27 Tom Tromey <tom@tromey.com>
8282
8283 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8284 member.
8285 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8286 (create_cu_from_index_list)
8287 (create_signatured_type_table_from_index)
8288 (create_signatured_type_table_from_debug_names)
8289 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8290 (dwarf2_create_include_psymtab)
8291 (create_debug_type_hash_table, add_type_unit)
8292 (create_type_unit_group, read_comp_units_from_section)
8293 (dwarf2_compute_name, create_cus_hash_table)
8294 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8295 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8296 obstack.
8297 (dw2_get_real_path): Likewise. Change argument to
8298 dwarf2_per_objfile.
8299
8300 2020-05-27 Luis Machado <luis.machado@linaro.org>
8301
8302 PR tdep/26000
8303 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8304 for ldrd (immediate).
8305
8306 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8307
8308 * command.h: Add comment giving the name of class_tui.
8309 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8310 create the fake command for the help for class_tui.
8311
8312 2020-05-26 Tom Tromey <tromey@adacore.com>
8313
8314 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8315 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8316 (val_atr): New function.
8317 (value_val_atr): Use it.
8318 * ada-valprint.c (print_optional_low_bound): Change low bound
8319 handling for enums.
8320 (val_print_packed_array_elements): Don't call discrete_position.
8321 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8322 discrete_position for enum types.
8323 * language.c (default_print_array_index): Change type.
8324 * language.h (struct language_defn) <la_print_array_index>: Add
8325 index_type parameter, change type of index_value.
8326 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8327 (default_print_array_index): Update.
8328 * valprint.c (maybe_print_array_index): Don't call
8329 value_from_longest. Update.
8330 (value_print_array_elements): Don't call discrete_position.
8331
8332 2020-05-26 Tom Tromey <tromey@adacore.com>
8333
8334 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8335 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8336
8337 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8338
8339 PR gdb/13519
8340 * avr-tdep.c (avr_integer_to_address): Return data or code
8341 address accordingly to the second 'type' argument of the
8342 function.
8343
8344 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8345
8346 * infcmd.c, inferior.h: (construct_inferior_arguments):
8347 Moved function from here to gdbsupport/common-inferior.{h,cc}
8348
8349 2020-05-23 Tom Tromey <tom@tromey.com>
8350
8351 Revert commit eca1f90c:
8352 * NEWS: Remove entry for completion styling.
8353 * completer.c (_rl_completion_prefix_display_length): Move
8354 declaration later.
8355 (gdb_fnprint): Revert.
8356 (gdb_display_match_list_1): Likewise.
8357 * cli/cli-style.c (completion_prefix_style)
8358 (completion_difference_style, completion_suffix_style): Remove.
8359 (_initialize_cli_style): Revert.
8360 * cli/cli-style.h (completion_prefix_style)
8361 (completion_difference_style, completion_suffix_style): Don't
8362 declare.
8363
8364 2020-05-24 Pedro Alves <palves@redhat.com>
8365
8366 * symtab.c (completion_list_add_name): Return boolean indication
8367 of whether the symbol matched.
8368 (completion_list_add_symbol): Don't try to remove C++ aliases if
8369 the symbol didn't match in the first place.
8370 * symtab.h (completion_list_add_name): Return bool.
8371
8372 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8373
8374 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8375 type::field.
8376
8377 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8378
8379 GDB 9.2 released.
8380
8381 2020-05-23 Tom Tromey <tom@tromey.com>
8382
8383 * NEWS: Add entry for completion styling.
8384 * completer.c (_rl_completion_prefix_display_length): Move
8385 declaration earlier.
8386 (gdb_fnprint): Use completion_style.
8387 (gdb_display_match_list_1): Likewise.
8388 * cli/cli-style.c (completion_prefix_style)
8389 (completion_difference_style, completion_suffix_style): New
8390 globals.
8391 (_initialize_cli_style): Register new globals.
8392 * cli/cli-style.h (completion_prefix_style)
8393 (completion_difference_style, completion_suffix_style): Declare.
8394
8395 2020-05-23 Pedro Alves <palves@redhat.com>
8396
8397 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8398 (parse_escape): Use ISDIGIT instead of isdigit.
8399 (puts_debug): Use gdb_isprint instead of isprint.
8400 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8401 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8402 ISSPACE instead of isspace.
8403 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8404 instead of isspace.
8405 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8406 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8407 instead of isxdigit and ISDIGIT instead of isdigit.
8408
8409 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8410
8411 * gdbtypes.h (struct type) <field>: New method.
8412 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8413 or type::field.
8414
8415 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8418 (TYPE_FIELDS): Use type::fields. Change all call sites that
8419 modify the propery to use type::set_fields instead.
8420
8421 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8422
8423 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8424 type::num_fields instead.
8425
8426 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8427
8428 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8429 methods.
8430 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8431 that modify the number of fields to use type::set_num_fields
8432 instead.
8433
8434 2020-05-22 Tom Tromey <tromey@adacore.com>
8435
8436 * compile/compile-object-load.h (munmap_list_free): Don't
8437 declare.
8438
8439 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8440
8441 * annotate.c (annotate_source_line): Update return type, add call
8442 to update current symtab and line.
8443 * annotate.h (annotate_source_line): Update return type, and
8444 extend header comment.
8445 * source.c (info_line_command): Check annotation_level before
8446 calling annotate_source_line.
8447 * stack.c (print_frame_info): If calling annotate_source_line
8448 returns true, then don't print any other source line information.
8449
8450 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8451
8452 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8453
8454 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8455
8456 * coffread.c (patch_type): Remove NULL check before xfree.
8457 * corefile.c (set_gnutarget): Likewise.
8458 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8459 * exec.c (build_section_table): Likewise.
8460 * remote.c (remote_target::pass_signals): Likewise.
8461 * utils.c (n_spaces): Likewise.
8462 * cli/cli-script.c (document_command): Likewise.
8463 * i386-windows-tdep.c (core_process_module_section): Likewise.
8464 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8465
8466 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8467
8468 * symfile.c (reread_symbols): Clear objfile's section_offsets
8469 vector and section indices, re-compute them by calling
8470 sym_offsets.
8471
8472 2020-05-20 Tom Tromey <tromey@adacore.com>
8473
8474 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8475 (desc_one_bound, desc_index_type): Compute field name.
8476
8477 2020-05-20 Tom de Vries <tdevries@suse.de>
8478
8479 PR symtab/25833
8480 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8481
8482 2020-05-20 Alan Modra <amodra@gmail.com>
8483
8484 PR 25993
8485 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8486 bfd_set_filename.
8487 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8488 passed to bfd_set_filename.
8489 * symfile-mem.c (add_vsyscall_page): Likewise for string
8490 passed to symbol_file_add_from_memory.
8491 (symbol_file_add_from_memory): Make name param a const char* and
8492 don't strdup.
8493
8494 2020-05-20 Alan Modra <amodra@gmail.com>
8495
8496 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8497 rather than accessing bfd->filename directly.
8498 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8499 and use bfd_section_name.
8500 * dwarf2/frame.c (decode_frame_entry): Likewise.
8501 * exec.c (exec_set_section_address): Likewise.
8502 * solib-aix.c (solib_aix_bfd_open): Likewise.
8503 * stap-probe.c (get_stap_base_address): Likewise.
8504 * symfile.c (reread_symbols): Likewise.
8505
8506 2020-05-19 Tom Tromey <tromey@adacore.com>
8507
8508 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8509
8510 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8511
8512 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8513
8514 2020-05-19 Pedro Alves <palves@redhat.com>
8515
8516 * NEWS (set exec-file-mismatch): Adjust entry.
8517 * exec.c: Include "build-id.h".
8518 (validate_exec_file): Try to match build IDs instead of filenames.
8519 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8520 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8521 and pass down 'warn_if_slow'.
8522 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8523 gdb_bfd_open_closure to pass it down.
8524 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8525
8526 2020-05-19 Pedro Alves <palves@redhat.com>
8527
8528 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8529 * target.c (target_fileio_open_1): Rename to target_fileio_open
8530 and make extern. Use bool.
8531 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8532 (target_fileio_read_alloc_1): Adjust.
8533 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8534 (target_fileio_open_warn_if_slow): Delete declaration.
8535
8536 2020-05-19 Pedro Alves <palves@redhat.com>
8537
8538 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8539 Adjust all callers.
8540
8541 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8542
8543 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8544 whether disp is negative.
8545
8546 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8547
8548 * symfile.h (struct symfile_segment_data)
8549 <~symfile_segment_data>: Remove.
8550 <segment_info>: Change to std::vector.
8551 * symfile.c (default_symfile_segments): Update.
8552 * elfread.c (elf_symfile_segments): Update.
8553
8554 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8555
8556 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8557 <segments>: New.
8558 <segment_bases, segment_sizes>: Remove.
8559 * symfile.c (default_symfile_segments): Update.
8560 * elfread.c (elf_symfile_segments): Update.
8561 * remote.c (remote_target::get_offsets): Update.
8562 * solib-target.c (solib_target_relocate_section_addresses):
8563 Update.
8564
8565 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * symfile.h (struct symfile_segment_data): Initialize fields.
8568 <~symfile_segment_data>: Add.
8569 (symfile_segment_data_up): New.
8570 (struct sym_fns) <sym_segments>: Return a
8571 symfile_segment_data_up.
8572 (default_symfile_segments): Return a symfile_segment_data_up.
8573 (free_symfile_segment_data): Remove.
8574 (get_symfile_segment_data): Return a symfile_segment_data_up.
8575 * symfile.c (default_symfile_segments): Likewise.
8576 (get_symfile_segment_data): Likewise.
8577 (free_symfile_segment_data): Remove.
8578 (symfile_find_segment_sections): Update.
8579 * elfread.c (elf_symfile_segments): Return a
8580 symfile_segment_data_up.
8581 * remote.c (remote_target::get_offsets): Update.
8582 * solib-target.c (solib_target_relocate_section_addresses):
8583 Update.
8584 * symfile-debug.c (debug_sym_segments): Return a
8585 symfile_segment_data_up.
8586
8587 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8588
8589 PR build/25981
8590 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8591 Hardcode register numbers.
8592
8593 PR build/25981
8594 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8595 procfs_find_LDT_entry): Remove.
8596 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8597 procfs_find_LDT_entry): Remove.
8598 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8599 Remove.
8600
8601 2020-05-17 Pedro Alves <palves@redhat.com>
8602 Andrew Burgess <andrew.burgess@embecosm.com>
8603 Keno Fischer <keno@juliacomputing.com>
8604
8605 PR gdb/25741
8606 * breakpoint.c (build_target_condition_list): Update comments.
8607 (build_target_command_list): Update comments and skip matching
8608 locations.
8609 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8610 a separate function. Simplify "set breakpoint auto-hw off"
8611 handling.
8612 (insert_breakpoints): Update comment.
8613 (tracepoint_locations_match): New parameter. For breakpoints,
8614 compare location types too, if the caller wants to.
8615 (handle_automatic_hardware_breakpoints): New functions.
8616 (bp_location_is_less_than): Also sort by location type and
8617 hardware breakpoint length.
8618 (update_global_location_list): Handle "set breakpoint auto-hw on"
8619 here.
8620 (update_breakpoint_locations): Ask breakpoint_locations_match to
8621 ignore location types.
8622
8623 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8624
8625 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8626 type::name instead.
8627
8628 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8629
8630 * gdbtypes.h (struct type) <name, set_name>: New methods.
8631 (TYPE_CODE): Use type::name. Change all call sites used to set
8632 the name to use type::set_name instead.
8633
8634 2020-05-16 Tom Tromey <tom@tromey.com>
8635
8636 * top.c (quit_force): Update.
8637 * infrun.c (handle_no_resumed): Update.
8638 * top.h (all_uis): New function.
8639 (ALL_UIS): Remove.
8640
8641 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8642
8643 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8644
8645 2020-05-16 Pedro Alves <palves@redhat.com>
8646
8647 * ia64-linux-nat.c
8648 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8649 Declare method.
8650 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8651
8652 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8653
8654 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8655 (sparc64_adi_info): Likewise.
8656
8657 2020-05-15 Tom Tromey <tom@tromey.com>
8658
8659 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8660 block_objfile.
8661 (lookup_objfile_from_block): Remove.
8662 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8663 (lookup_global_symbol): Use block_objfile.
8664 * symtab.h (lookup_objfile_from_block): Don't declare.
8665 * printcmd.c (clear_dangling_display_expressions): Use
8666 block_objfile.
8667 * parse.c (operator_check_standard): Use block_objfile.
8668
8669 2020-05-15 Tom Tromey <tom@tromey.com>
8670
8671 * language.c (language_alloc_type_symbol): Set
8672 SYMBOL_SECTION.
8673 * symtab.c (initialize_objfile_symbol): Remove.
8674 (allocate_symbol): Remove.
8675 (allocate_template_symbol): Remove.
8676 * dwarf2/read.c (fixup_go_packaging): Use "new".
8677 (new_symbol): Use "new".
8678 (read_variable): Don't call initialize_objfile_symbol. Use
8679 "new".
8680 (read_func_scope): Use "new".
8681 * xcoffread.c (process_xcoff_symbol): Don't call
8682 initialize_objfile_symbol.
8683 (SYMBOL_DUP): Remove.
8684 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8685 "new".
8686 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8687 (allocate_template_symbol): Don't declare.
8688 (struct symbol): Add copy constructor. Change defaults.
8689 * jit.c (finalize_symtab): Use "new".
8690 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8691 Use "new".
8692 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8693 (common_block_end): Use "new".
8694 * mdebugread.c (parse_symbol): Use "new".
8695 (new_symbol): Likewise.
8696
8697 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8698
8699 * NEWS: Mention changes to help and apropos.
8700
8701 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8702
8703 * command.h (enum command_class): Improve comments, document
8704 that class_alias is for user-defined aliases, give the class
8705 name for each class, remove unused class_xdb.
8706 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8707 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8708 by a precise class.
8709 * infcmd.c (_initialize_infcmd): Likewise.
8710 * reverse.c (_initialize_reverse): Likewise.
8711 * stack.c (_initialize_stack): Likewise.
8712 * symfile.c (_initialize_symfile): Likewise.
8713 * tracepoint.c (_initialize_tracepoint): Likewise.
8714
8715 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8716
8717 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8718 when their aliased command is traversed.
8719 (help_cmd): Add fput_command_names_styled call to
8720 output command name and aliases when command has an alias.
8721
8722 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8723
8724 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8725 * cli/cli-decode.c (help_cmd_list): Declare as static,
8726 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8727 a command together with the command.
8728 (fput_command_name_styled, fput_command_names_styled): New functions.
8729 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8730 fput_command_name_styled.
8731 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8732 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8733
8734 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8735
8736 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8737 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8738 * command.h (cmd_show_list): Likewise.
8739 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8740 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8741
8742 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8743
8744 * unittests/command-def-selftests.c (traverse_command_structure):
8745 Verify all commands of a list have the same prefix command and
8746 that only the top cmdlist commands have a null prefix.
8747
8748 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8749
8750 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8751 as prefix, not one of its aliases.
8752 (set_cmd_prefix): Remove.
8753 (do_add_cmd): Centralize the setting of the prefix of a command, when
8754 command is defined after its full chain of prefix commands.
8755 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8756 (add_setshow_cmd_full): Likewise.
8757 (update_prefix_field_of_prefixed_commands): New function.
8758 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8759 update_prefix_field_of_prefixed_commands.
8760 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8761 addresses of remote_set_cmdlist and remote_show_cmdlist given
8762 as argument, not the address of an argument.
8763 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8764 * gdb/remote.c (_initialize_remote): Likewise.
8765
8766 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8767
8768 * cli/cli-cmds.c (alias_command): Check for an existing alias
8769 using lookup_cmd_composition, as valid_command_p is too strict
8770 and forbids aliases that are the prefix of an existing alias
8771 or command.
8772 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8773 command is properly recognised as a valid command.
8774
8775 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8776
8777 * unittests/help-doc-selftests.c: Rename to
8778 unittests/command-def-selftests.c
8779 * unittests/command-def-selftests.c (help_doc_tests): Update some
8780 comments.
8781 (command_structure_tests, traverse_command_structure): New namespace
8782 and function.
8783 (command_structure_invariants_tests): New function.
8784 (_initialize_command_def_selftests) Renamed from
8785 _initialize_help_doc_selftests, register command_structure_invariants
8786 selftest.
8787
8788 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8789
8790 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8791 an alias of 'show'.
8792
8793 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8794
8795 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8796 ada_is_fixed_point_type. Update all callers.
8797 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8798 all callers.
8799 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8800 Update all callers.
8801 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8802 print_fixed_point_type. Update all callers.
8803 * ada-valprint.c (ada_value_print_num): Replace call to
8804 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8805
8806 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8807
8808 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8809 processors.
8810 (cpu_supports_bts): Add CV_AMD case.
8811
8812 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8813 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * infrun.c (stop_all_threads): Collect multiple wait events at
8816 each pass.
8817
8818 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8819
8820 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8821 type::code instead.
8822
8823 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * gdbtypes.h (struct type) <code, set_code>: New methods.
8826 (TYPE_CODE): Use type::code. Change all call sites used to set
8827 the code to use type::set_code instead.
8828
8829 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8830 Tom de Vries <tdevries@suse.de>
8831 Pedro Alves <palves@redhat.com>
8832
8833 PR threads/25478
8834 * infrun.c (stop_all_threads): Do NOT ignore
8835 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8836 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8837 received.
8838 (handle_no_resumed): Remove code handling a live inferior with no
8839 threads.
8840 * remote.c (has_single_non_exited_thread): New.
8841 (remote_target::update_thread_list): Do not delete a thread if is
8842 the last thread of the process.
8843 * thread.c (thread_select): Call delete_exited_threads instead of
8844 prune_threads.
8845
8846 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8847
8848 * infrun.c (stop_all_threads): Enable/disable thread events of all
8849 targets. Move a debug message denoting the end of the function
8850 into the SCOPED_EXIT block.
8851
8852 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8853
8854 * process-stratum-target.h: Include <set>.
8855 (all_non_exited_process_targets, switch_to_target_no_thread): New
8856 function declarations.
8857 * process-stratum-target.c (all_non_exited_process_targets)
8858 (switch_to_target_no_thread): New function implementations.
8859
8860 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8861
8862 * infrun.c (handle_inferior_event): Extract out a piece of code
8863 into...
8864 (mark_non_executing_threads): ...this new function.
8865
8866 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8867
8868 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8869 use.
8870
8871 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8872
8873 * regcache.c (regcache_read_pc_protected): New function
8874 implementation that returns 0 if the PC cannot read via
8875 'regcache_read_pc'.
8876 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8877 instead of 'regcache_read_pc'.
8878 (keep_going_pass_signal): Ditto.
8879
8880 2020-05-13 Tom Tromey <tromey@adacore.com>
8881
8882 * ada-lang.c (align_value): Remove.
8883 (ada_template_to_fixed_record_type_1): Use align_up.
8884
8885 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8886
8887 * async-event.c: Update the copyright year.
8888 * async-event.h: Update the copyright year.
8889
8890 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8891
8892 * objfiles.h (is_addr_in_objfile,
8893 shared_objfile_contains_address_p): Return bool.
8894 * objfile.c (is_addr_in_objfile,
8895 shared_objfile_contains_address_p): Return bool.
8896
8897 2020-05-11 Tom Tromey <tromey@adacore.com>
8898
8899 * cli/cli-cmds.c (info_command): Restore.
8900 (_initialize_cli_cmds): Use add_prefix_command for "info".
8901 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8902
8903 2020-05-11 Tom Tromey <tromey@adacore.com>
8904
8905 * ada-lang.c (ada_value_primitive_field): Now public.
8906 * ada-lang.h (ada_value_primitive_field): Declare.
8907 * ada-valprint.c (print_field_values): Use
8908 ada_value_primitive_field for wrapper fields.
8909
8910 2020-05-11 Tom de Vries <tdevries@suse.de>
8911
8912 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8913 MODULE_DOMAIN.
8914
8915 2020-05-11 Tom de Vries <tdevries@suse.de>
8916
8917 PR symtab/25941
8918 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8919 with length 0, if not gdb-produced.
8920 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8921
8922 2020-05-09 Tom de Vries <tdevries@suse.de>
8923
8924 PR gdb/25955
8925 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8926 calculation.
8927
8928 2020-05-09 Tom Tromey <tom@tromey.com>
8929
8930 * top.c (server_command): Now bool.
8931 * top.h (server_command): Now bool.
8932
8933 2020-05-08 Tom Tromey <tromey@adacore.com>
8934
8935 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8936 already being processed.
8937
8938 2020-05-08 Tom Tromey <tom@tromey.com>
8939
8940 * printcmd.c (struct display) <next>: Remove.
8941 <display>: New constructor.
8942 <exp_string>: Now a std::string.
8943 <enabled_p>: Now a bool.
8944 (display_number): Move definition earlier.
8945 (displays): Rename from display_chain. Now a std::vector.
8946 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8947 (display_command): Update.
8948 (do_one_display, disable_display)
8949 (enable_disable_display_command, do_enable_disable_display):
8950 Update.
8951 (free_display): Remove.
8952 (clear_displays): Rewrite.
8953 (delete_display): Update.
8954 (map_display_numbers): Use function_view. Remove "data"
8955 parameter. Update.
8956 (do_delete_display): Remove.
8957 (undisplay_command): Update.
8958 (do_one_display, do_displays, disable_display)
8959 (info_display_command): Update.
8960 (do_enable_disable_display): Remove.
8961 (enable_disable_display_command)
8962 (clear_dangling_display_expressions): Update.
8963
8964 2020-05-08 Tom Tromey <tom@tromey.com>
8965
8966 * symtab.c (set_symbol_cache_size)
8967 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8968 (maintenance_print_symbol_cache_statistics): Update.
8969 * symmisc.c (print_symbol_bcache_statistics)
8970 (print_objfile_statistics, maintenance_print_objfiles)
8971 (maintenance_info_symtabs, maintenance_check_symtabs)
8972 (maintenance_expand_symtabs, maintenance_info_line_tables):
8973 Update.
8974 * symfile-debug.c (set_debug_symfile): Update.
8975 * source.c (forget_cached_source_info): Update.
8976 * python/python.c (gdbpy_progspaces): Update.
8977 * psymtab.c (maintenance_info_psymtabs): Update.
8978 * probe.c (parse_probes): Update.
8979 * linespec.c (iterate_over_all_matching_symtabs)
8980 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8981 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8982 * exec.c (exec_target::close): Update.
8983 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8984 * breakpoint.c (print_one_breakpoint_location)
8985 (create_longjmp_master_breakpoint)
8986 (create_std_terminate_master_breakpoint): Update.
8987 * progspace.c (program_spaces): Now a std::vector.
8988 (maybe_new_address_space): Update.
8989 (add_program_space): Remove.
8990 (program_space::program_space): Update.
8991 (remove_program_space): Update.
8992 (number_of_program_spaces): Remove.
8993 (print_program_space, update_address_spaces): Update.
8994 * progspace.h (program_spaces): Change type.
8995 (ALL_PSPACES): Remove.
8996 (number_of_program_spaces): Don't declare.
8997 (struct program_space) <next>: Remove.
8998
8999 2020-05-08 Tom Tromey <tom@tromey.com>
9000
9001 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9002 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9003 (enable_break): Update.
9004 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9005 (frv_fdpic_find_canonical_descriptor): Update.
9006 (frv_fetch_objfile_link_map): Update.
9007 * progspace.c (program_space::free_all_objfiles): Update.
9008 (program_space::solibs): New method.
9009 * progspace.h (struct program_space) <solibs>: New method.
9010 * solist.h (master_so_list): Don't declare.
9011 (ALL_SO_LIBS): Remove.
9012 * solib.h (so_list_head): Remove.
9013 (update_solib_list): Update comment.
9014 * solib.c (master_so_list): Remove.
9015 (solib_used, update_solib_list, solib_add)
9016 (info_sharedlibrary_command, clear_solib)
9017 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9018
9019 2020-05-08 Tom Tromey <tom@tromey.com>
9020
9021 * extension.c (extension_languages): Now a std::array.
9022 (ALL_EXTENSION_LANGUAGES): Remove.
9023 (get_ext_lang_defn, get_ext_lang_of_file)
9024 (eval_ext_lang_from_control_command): Update.
9025 (finish_ext_lang_initialization)
9026 (auto_load_ext_lang_scripts_for_objfile)
9027 (ext_lang_type_printers::ext_lang_type_printers)
9028 (apply_ext_lang_type_printers)
9029 (ext_lang_type_printers::~ext_lang_type_printers)
9030 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9031 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9032 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9033 (get_matching_xmethod_workers, ext_lang_colorize)
9034 (ext_lang_before_prompt): Update.
9035 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9036
9037 2020-05-08 Tom Tromey <tom@tromey.com>
9038
9039 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9040 overload.
9041 <swap_string, m_string>: Remove.
9042 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9043 Update.
9044 * stabsread.c (define_symbol, read_type): Update.
9045 * linespec.c (find_linespec_symbols): Update.
9046 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9047 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9048 * dbxread.c (read_dbx_symtab): Update.
9049 * cp-support.h (cp_canonicalize_string_full)
9050 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9051 Return unique_xmalloc_ptr.
9052 * cp-support.c (inspect_type): Update.
9053 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9054 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9055 Likewise.
9056 * c-typeprint.c (print_name_maybe_canonical): Update.
9057 * break-catch-throw.c (check_status_exception_catchpoint):
9058 Update.
9059
9060 2020-05-08 Tom de Vries <tdevries@suse.de>
9061
9062 * infrun.c (follow_fork): Copy current_line and current_symtab to
9063 child thread.
9064
9065 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9066
9067 * async-event.c (struct async_signal_handler, struct
9068 async_event_handler): Reformat, remove typedef.
9069
9070 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9071
9072 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9073 access thistype->main_type->dyn_prop_list directly.
9074
9075 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9078 (remove_dyn_prop): Remove. Update all users to use
9079 type::remove_dyn_prop.
9080 * gdbtypes.c (remove_dyn_prop): Rename to...
9081 (type::remove_dyn_prop): ... this.
9082
9083 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9084
9085 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9086 (add_dyn_prop): Remove. Update all users to use
9087 type::add_dyn_prop.
9088 * gdbtypes.c (add_dyn_prop): Rename to...
9089 (type::add_dyn_prop): ... this.
9090
9091 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9092
9093 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9094 (get_dyn_prop): Remove. Update all users to use
9095 type::dyn_prop.
9096 * gdbtypes.c (get_dyn_prop): Rename to...
9097 (type::dyn_prop): ... this.
9098
9099 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9100
9101 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9102
9103 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9104
9105 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9106 instruction, skip it if it's there.
9107
9108 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9111
9112 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9113
9114 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9115 * gdbtypes.c (recursive_dump_type): Remove use of
9116 TYPE_INCOMPLETE.
9117
9118 2020-05-03 Tom Tromey <tom@tromey.com>
9119
9120 * breakpoint.c (catch_command, tcatch_command): Remove.
9121 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9122 add_show_prefix_cmd.
9123 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9124 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9125 Remove.
9126 (add_internal_problem_command): Use add_basic_prefix_cmd,
9127 add_show_prefix_cmd.
9128 * mips-tdep.c (set_mipsfpu_command): Remove.
9129 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9130 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9131 (_initialize_index_cache): Use add_basic_prefix_cmd.
9132 * memattr.c (dummy_cmd): Remove.
9133 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9134 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9135 (_initialize_tui_win): Use add_basic_prefix_cmd,
9136 add_show_prefix_cmd.
9137 * cli/cli-logging.c (set_logging_command): Remove.
9138 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9139 add_show_prefix_cmd.
9140 (show_logging_command): Remove.
9141 * target.c (target_command): Remove.
9142 (add_target): Use add_basic_prefix_cmd.
9143
9144 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9145
9146 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9147
9148 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9149
9150 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9151 info_command.
9152
9153 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9154
9155 * nbsd-nat.c (nbsd_enable_proc_events)
9156 (nbsd_nat_target::post_startup_inferior): Add.
9157 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9158 (nbsd_nat_target::update_thread_list): Rewrite.
9159 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9160 "PTRACE_LWP_CREATE".
9161 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9162
9163 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9164
9165 * stack.c (_initialize_stack): Remove duplicated creation
9166 of "frame" command and "f" alias.
9167
9168 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9169
9170 PR gdb/18706
9171 * gdbtypes.c (check_typedef): Calculate size of array of
9172 stubbed type.
9173
9174 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9175
9176 PR gdb/15559
9177 * i386-tdep.c (i386_push_dummy_call): Call
9178 i386_thiscall_push_dummy_call.
9179 (i386_thiscall_push_dummy_call): New function.
9180 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9181 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9182 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9183
9184 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9185
9186 * gdbarch.sh (do_read): Add shellcheck disable directive for
9187 warning SC2162.
9188
9189 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9190
9191 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9192 "referenced but not assigned" warning.
9193
9194 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9195
9196 * gdbarch.sh: Remove code that sets fallbackdefault.
9197
9198 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9199
9200 * gdbarch.sh: Use shell operators && and || instead of
9201 -a and -o.
9202
9203 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9204
9205 * gdbarch.sh: Use $(...) instead of `...`.
9206
9207 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9208
9209 * gdbarch.sh: Use double quotes around variables.
9210
9211 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * gdbarch.sh: Use %s with printf, instead of variables in the
9214 format string.
9215
9216 2020-04-29 Tom Tromey <tromey@adacore.com>
9217
9218 PR ada/25875:
9219 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9220 type fields here.
9221 (read_enumeration_type): Call
9222 update_enumeration_type_from_children later. Update comments.
9223 (process_enumeration_scope): Don't create type fields.
9224
9225 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9226
9227 * nbsd-tdep.c: Include "xml-syscall.h".
9228 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9229
9230 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9231
9232 * nbsd-nat.c: Include "sys/wait.h".
9233 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9234 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9235 (nbsd_nat_target::remove_exec_catchpoint)
9236 (nbsd_nat_target::set_syscall_catchpoint): Add.
9237 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9238 (nbsd_nat_target::insert_exec_catchpoint)
9239 (nbsd_nat_target::remove_exec_catchpoint)
9240 (nbsd_nat_target::set_syscall_catchpoint): Add.
9241 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9242 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9243 `nbsd_get_syscall_number'.
9244
9245 2020-04-29 Tom Tromey <tom@tromey.com>
9246
9247 * stack.c (print_block_frame_labels): Remove.
9248
9249 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9250
9251 PR gdb/17320
9252 * ada-valprint.c (val_print_packed_array_elements): Move array
9253 end bracket to new line.
9254 (ada_val_print_string): Remove extra spaces before first array
9255 element.
9256 * c-valprint.c (c_value_print_array): Likewise.
9257 * m2-valprint.c (m2_print_array_contents): Likewise.
9258 (m2_value_print_inner): Likewise.
9259 * p-valprint.c (pascal_value_print_inner): Likewise.
9260 * valprint.c (generic_val_print_array): Likewise.
9261 (value_print_array_elements): Move first array element and array
9262 end bracket to new line.
9263
9264 2020-04-29 Tom de Vries <tdevries@suse.de>
9265
9266 PR symtab/25889
9267 * linespec.c (find_method): Fix ix calculation.
9268
9269 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9270
9271 * syscalls/update-netbsd.sh: New file.
9272 * syscalls/netbsd.xml: Regenerate.
9273 * data-directory/Makefile.in: Register `netbsd.xml' in
9274 `SYSCALLS_FILES'.
9275
9276 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9277
9278 * syscalls/update-freebsd.sh: Add double quotes.
9279
9280 2020-04-28 Tom Tromey <tom@tromey.com>
9281
9282 * NEWS: Update.
9283 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9284 (cmdpy_init): Allow class_tui.
9285
9286 2020-04-28 Mark Williams <mark@myosotissp.com>
9287
9288 PR gdb/24480
9289 * dwarf2read.c: Add missing assingments to list_in_scope when
9290 start_symtab was already called.
9291
9292 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9293
9294 PR gdb/25881
9295 * dwarf2/read.c (offset_map_type): Use
9296 gdb:hash_enum<sect_offset> as hash function.
9297
9298 2020-04-28 Tom de Vries <tdevries@suse.de>
9299
9300 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9301 with DW_AT_signature.
9302
9303 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9304
9305 * configure.ac: Remove check for fs_base/gs_base in
9306 user_regs_struct.
9307 * configure: Re-generate.
9308 * config.in: Re-generate.
9309 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9310 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9311 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9312
9313 2020-04-27 Luis Machado <luis.machado@linaro.org>
9314
9315 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9316 problematic inline frame unwinding situation.
9317 * frame.c (frame_id_computed_p): New function.
9318 * frame.h (frame_id_computed_p): New prototype.
9319
9320 2020-04-26 Tom Tromey <tom@tromey.com>
9321
9322 * command.h (enum command_class) <class_pseudo>: Remove.
9323
9324 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9325
9326 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9327 and whitespace.
9328
9329 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9330
9331 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9332 `PT_GET_PROCESS_STATE' block.
9333
9334 2020-04-24 Tom Tromey <tom@tromey.com>
9335
9336 * symtab.h (symbol_get_demangled_name): Don't declare.
9337 * symtab.c (symbol_get_demangled_name): Remove.
9338 (general_symbol_info::natural_name)
9339 (general_symbol_info::demangled_name): Update.
9340
9341 2020-04-24 Tom Tromey <tom@tromey.com>
9342
9343 PR rust/25025:
9344 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9345
9346 2020-04-24 Tom Tromey <tom@tromey.com>
9347
9348 PR symtab/12707:
9349 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9350 exists.
9351 (new_symbol): Likewise.
9352 * compile/compile-object-load.c (get_out_value_type): Use
9353 symbol_matches_search_name.
9354
9355 2020-04-24 Tom Tromey <tom@tromey.com>
9356
9357 * dwarf2/read.c (add_partial_symbol): Do not call
9358 compute_and_set_names.
9359
9360 2020-04-24 Tom Tromey <tom@tromey.com>
9361
9362 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9363 overload.
9364
9365 2020-04-24 Tom Tromey <tom@tromey.com>
9366
9367 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9368 (add_psymbol_to_list): New overload. Make old overload call new
9369 one.
9370 * psympriv.h (add_psymbol_to_list): New overload.
9371
9372 2020-04-24 Tom Tromey <tom@tromey.com>
9373
9374 * dwarf2/read.c (partial_die_info::read) <case
9375 DW_AT_linkage_name>: Use value_as_string.
9376 (dwarf2_string_attr): Use value_as_string.
9377 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9378 method.
9379 * dwarf2/attribute.c (attribute::value_as_string): New method.
9380
9381 2020-04-24 Tom Tromey <tom@tromey.com>
9382
9383 * symtab.c (general_symbol_info::natural_name)
9384 (general_symbol_info::demangled_name): Check for language_rust.
9385
9386 2020-04-24 Tom Tromey <tom@tromey.com>
9387
9388 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9389 (dwarf2_physname): ... from here.
9390 (partial_die_info::read): Add Rust "{" hack.
9391
9392 2020-04-24 Tom Tromey <tom@tromey.com>
9393
9394 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9395 method.
9396 (symbol_set_demangled_name): Don't declare.
9397 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9398 symbol_set_demangled_name.
9399 (general_symbol_info::set_language)
9400 (general_symbol_info::compute_and_set_names): Update.
9401 * minsyms.c (minimal_symbol_reader::install): Update.
9402 * dwarf2/read.c (new_symbol): Update.
9403
9404 2020-04-24 Tom Tromey <tromey@adacore.com>
9405
9406 PR python/23662:
9407 * python/py-type.c (convert_field): Handle
9408 FIELD_LOC_KIND_DWARF_BLOCK.
9409 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9410 (typy_get_dynamic): Nw function.
9411 (type_object_getset): Add "dynamic".
9412 * NEWS: Add entry.
9413
9414 2020-04-24 Tom Tromey <tromey@adacore.com>
9415
9416 * ada-typeprint.c (print_choices, print_variant_part)
9417 (print_record_field_types_dynamic): New functions.
9418 (print_record_field_types): Use print_record_field_types_dynamic.
9419
9420 2020-04-24 Tom Tromey <tromey@adacore.com>
9421
9422 * dwarf2/read.c (handle_data_member_location): New overload.
9423 (dwarf2_add_field): Use it.
9424 (decode_locdesc): Add "computed" parameter. Update comment.
9425 * gdbtypes.c (is_dynamic_type_internal): Also look for
9426 FIELD_LOC_KIND_DWARF_BLOCK.
9427 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9428 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9429 virtual base classes.
9430 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9431 FIELD_LOC_KIND_DWARF_BLOCK.
9432
9433 2020-04-24 Tom Tromey <tromey@adacore.com>
9434
9435 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9436 * gdbtypes.c (is_dynamic_type_internal): Check
9437 TYPE_HAS_DYNAMIC_LENGTH.
9438 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9439 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9440 New macros.
9441 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9442 constant.
9443
9444 2020-04-24 Tom Tromey <tromey@adacore.com>
9445
9446 * dwarf2/read.c (struct variant_field): Rewrite.
9447 (struct variant_part_builder): New.
9448 (struct nextfield): Remove "variant" field. Add "offset".
9449 (struct field_info): Add "current_variant_part" and
9450 "variant_parts".
9451 (alloc_discriminant_info): Remove.
9452 (alloc_rust_variant): New function.
9453 (quirk_rust_enum): Update.
9454 (dwarf2_add_field): Set "offset" member. Don't handle
9455 DW_TAG_variant_part.
9456 (offset_map_type): New typedef.
9457 (convert_variant_range, create_one_variant)
9458 (create_one_variant_part, create_variant_parts)
9459 (add_variant_property): New functions.
9460 (dwarf2_attach_fields_to_type): Call add_variant_property.
9461 (read_structure_type): Don't handle DW_TAG_variant_part.
9462 (handle_variant_part, handle_variant): New functions.
9463 (handle_struct_member_die): Use them.
9464 (process_structure_scope): Don't handle variant parts.
9465 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9466 (struct discriminant_info): Remove.
9467 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9468 (struct main_type) <flag_discriminated_union>: Remove.
9469 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9470 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9471 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9472 Update.
9473 * valops.c (value_union_variant): Remove.
9474 * value.h (value_union_variant): Don't declare.
9475
9476 2020-04-24 Tom Tromey <tromey@adacore.com>
9477
9478 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9479 (ada_value_primitive_packed_val): Update.
9480 * ada-valprint.c (ada_value_print_1): Update.
9481 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9482 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9483 just an address. Use evaluate_for_locexpr_baton.
9484 (dwarf2_evaluate_property): Update.
9485 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9486 array_view.
9487 * findvar.c (default_read_var_value): Update.
9488 * gdbtypes.c (compute_variant_fields_inner)
9489 (resolve_dynamic_type_internal): Update.
9490 (resolve_dynamic_type): Change type of valaddr parameter.
9491 * gdbtypes.h (resolve_dynamic_type): Update.
9492 * valarith.c (value_subscripted_rvalue): Update.
9493 * value.c (value_from_contents_and_address): Update.
9494
9495 2020-04-24 Tom Tromey <tromey@adacore.com>
9496
9497 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9498 "push_initial_value" parameter.
9499 (dwarf2_evaluate_property): Likewise.
9500 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9501
9502 2020-04-24 Tom Tromey <tromey@adacore.com>
9503
9504 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9505 (variant::matches, compute_variant_fields_recurse)
9506 (compute_variant_fields_inner, compute_variant_fields): New
9507 functions.
9508 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9509 Use resolved_type after type is made.
9510 (operator==): Add new cases.
9511 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9512 (struct discriminant_range, struct variant, struct variant_part):
9513 New.
9514 (union dynamic_prop_data) <variant_parts, original_type>: New
9515 members.
9516 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9517 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9518 constants.
9519 * value.c (unpack_bits_as_long): Now public.
9520 * value.h (unpack_bits_as_long): Declare.
9521
9522 2020-04-24 Tom Tromey <tromey@adacore.com>
9523
9524 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9525 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9526
9527 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9528
9529 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9530
9531 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9532
9533 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9534 (remove_fork_catchpoint, post_startup_inferior)
9535 (post_attach): Move...
9536 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9537 (remove_fork_catchpoint, post_startup_inferior)
9538 (post_attach): ...here.
9539 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9540 (remove_fork_catchpoint, post_startup_inferior)
9541 (post_attach): Move...
9542 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9543 (remove_fork_catchpoint, post_startup_inferior)
9544 (post_attach): ...here.
9545
9546 2020-04-24 Tom Tromey <tromey@adacore.com>
9547
9548 * nat/windows-nat.h (struct windows_thread_info)
9549 <pc_adjusted>: New member.
9550 * windows-nat.c (windows_fetch_one_register): Check
9551 pc_adjusted.
9552 (windows_nat_target::get_windows_debug_event)
9553 (windows_nat_target::wait): Set pc_adjusted.
9554
9555 2020-04-24 Tom de Vries <tdevries@suse.de>
9556
9557 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9558 Run gdb-add-index inside temp dir.
9559
9560 2020-04-23 Tom Tromey <tromey@adacore.com>
9561
9562 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9563 in loop.
9564
9565 2020-04-23 Luis Machado <luis.machado@linaro.org>
9566
9567 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9568 get_frame_register instead of gdbarch_unwind_pc.
9569
9570 2020-04-23 Tom de Vries <tdevries@suse.de>
9571
9572 * symtab.c (lookup_global_symbol): Prefer def over decl.
9573
9574 2020-04-23 Tom de Vries <tdevries@suse.de>
9575
9576 PR symtab/25807
9577 * block.c (best_symbol, better_symbol): Promote to external.
9578 * block.h (best_symbol, better_symbol): Declare.
9579 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9580 decl.
9581
9582 2020-04-23 Tom Tromey <tromey@adacore.com>
9583
9584 PR ada/25837:
9585 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9586 "const char *", not a "const std::string &".
9587 <name_and_matcher::operator==>: Update.
9588 * unittests/lookup_name_info-selftests.c: Change type of
9589 "result".
9590
9591 2020-04-23 Tom Tromey <tom@tromey.com>
9592
9593 * inferior.h (iterate_over_inferiors): Don't declare.
9594 * inferior.c (iterate_over_inferiors): Remove.
9595 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9596 Remove.
9597 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9598 use iterate_over_inferiors.
9599 (darwin_resume_inferior_it)
9600 (struct resume_inferior_threads_param)
9601 (darwin_resume_inferior_threads_it): Remove.
9602 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9603
9604 2020-04-23 Tom de Vries <tdevries@suse.de>
9605
9606 * blockframe.c (find_pc_partial_function): Use
9607 find_pc_sect_compunit_symtab rather than
9608 objfile->sf->qf->find_pc_sect_compunit_symtab.
9609
9610 2020-04-22 Tom de Vries <tdevries@suse.de>
9611
9612 PR symtab/25764
9613 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9614 in psymtabs.
9615
9616 2020-04-22 Tom de Vries <tdevries@suse.de>
9617
9618 PR symtab/25801
9619 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9620 symtabs.
9621
9622 2020-04-22 Tom de Vries <tdevries@suse.de>
9623
9624 PR symtab/25700
9625 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9626 CU if already created.
9627
9628 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9629
9630 * infrun.c (displaced_step_fixup): Switch to the event_thread
9631 before calling displaced_step_restore, not after.
9632
9633 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9634
9635 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9636 its inferior is not recorded by us.
9637 (record_btrace_target_open): Replace call to
9638 all_non_exited_threads () with call to current_inferior
9639 ()->non_exited_threads ().
9640 (record_btrace_target::stop_recording): Likewise.
9641 (record_btrace_target::close): Likewise.
9642 (record_btrace_target::wait): Likewise.
9643 (record_btrace_target::record_stop_replaying): Likewise.
9644
9645 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9646
9647 * btrace.c (btrace_enable): Throw an error on double enables and
9648 when enabling recording fails.
9649 (btrace_disable): Throw an error if the thread is not recorded.
9650
9651 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9652
9653 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9654 request if we do not have a thread_info.
9655
9656 2020-04-21 Tom de Vries <tdevries@suse.de>
9657
9658 PR gdb/25471
9659 * thread.c
9660 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9661 exception in get_frame_id.
9662
9663 2020-04-20 Tom Tromey <tromey@adacore.com>
9664
9665 * python/python.c (struct gdbpy_event): Mark move constructor as
9666 noexcept.
9667 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9668 constructor as noexcept.
9669 * completer.h (struct completion_result): Mark move constructor as
9670 noexcept.
9671 * completer.c (completion_result::completion_result): Use
9672 initialization style. Don't call reset_match_list.
9673
9674 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9675
9676 * MAINTAINERS (Write After Approval): Add myself.
9677
9678 2020-04-18 Tom Tromey <tom@tromey.com>
9679
9680 * windows-tdep.c (init_w32_command_list)
9681 (w32_prefix_command_valid): Restore.
9682 (_initialize_windows_tdep): Call init_w32_command_list.
9683
9684 2020-04-18 Tom Tromey <tom@tromey.com>
9685
9686 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9687 * value.c (value_fn_field): Update.
9688 * valops.c (find_function_in_inferior)
9689 (value_allocate_space_in_inferior): Update.
9690 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9691 Update.
9692 * tui/tui-source.c (tui_source_window::set_contents): Update.
9693 * symtab.c (lookup_global_or_static_symbol)
9694 (find_function_start_sal_1, skip_prologue_sal)
9695 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9696 * symmisc.c (dump_msymbols, dump_symtab_1)
9697 (maintenance_print_one_line_table): Update.
9698 * symfile.c (init_entry_point_info, section_is_mapped)
9699 (list_overlays_command, simple_read_overlay_table)
9700 (simple_overlay_update_1): Update.
9701 * stap-probe.c (handle_stap_probe): Update.
9702 * stabsread.c (dbx_init_float_type, define_symbol)
9703 (read_one_struct_field, read_enum_type, read_range_type): Update.
9704 * source.c (info_line_command): Update.
9705 * python/python.c (gdbpy_source_objfile_script)
9706 (gdbpy_execute_objfile_script): Update.
9707 * python/py-type.c (save_objfile_types): Update.
9708 * python/py-objfile.c (py_free_objfile): Update.
9709 * python/py-inferior.c (python_new_objfile): Update.
9710 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9711 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9712 (maintenance_check_psymtabs): Update.
9713 * printcmd.c (info_address_command): Update.
9714 * objfiles.h (struct objfile) <arch>: New method, from
9715 get_objfile_arch.
9716 (get_objfile_arch): Don't declare.
9717 * objfiles.c (get_objfile_arch): Remove.
9718 (filter_overlapping_sections): Update.
9719 * minsyms.c (msymbol_is_function): Update.
9720 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9721 (output_nondebug_symbol): Update.
9722 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9723 (mdebug_expand_psymtab): Update.
9724 * machoread.c (macho_add_oso_symfile): Update.
9725 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9726 Update.
9727 * linux-fork.c (checkpoint_command): Update.
9728 * linespec.c (convert_linespec_to_sals): Update.
9729 * jit.c (finalize_symtab): Update.
9730 * infrun.c (insert_exception_resume_from_probe): Update.
9731 * ia64-tdep.c (ia64_find_unwind_table): Update.
9732 * hppa-tdep.c (internalize_unwinds): Update.
9733 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9734 Update.
9735 * gcore.c (call_target_sbrk): Update.
9736 * elfread.c (record_minimal_symbol, elf_symtab_read)
9737 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9738 (elf_gnu_ifunc_resolve_by_got): Update.
9739 * dwarf2/read.c (create_addrmap_from_index)
9740 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9741 (read_debug_names_from_section)
9742 (process_psymtab_comp_unit_reader, add_partial_symbol)
9743 (add_partial_subprogram, process_full_comp_unit)
9744 (read_file_scope, read_func_scope, read_lexical_block_scope)
9745 (read_call_site_scope, dwarf2_ranges_read)
9746 (dwarf2_record_block_ranges, dwarf2_add_field)
9747 (mark_common_block_symbol_computed, read_tag_pointer_type)
9748 (read_tag_string_type, dwarf2_init_float_type)
9749 (dwarf2_init_complex_target_type, read_base_type)
9750 (partial_die_info::read, partial_die_info::read)
9751 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9752 (dwarf2_fetch_die_loc_sect_off): Update.
9753 * dwarf2/loc.c (dwarf2_find_location_expression)
9754 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9755 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9756 (dwarf2_loc_desc_get_symbol_read_needs)
9757 (locexpr_describe_location_piece, locexpr_describe_location_1)
9758 (loclist_describe_location): Update.
9759 * dwarf2/index-write.c (write_debug_names): Update.
9760 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9761 * dtrace-probe.c (dtrace_process_dof): Update.
9762 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9763 (process_one_symbol): Update.
9764 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9765 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9766 (coff_read_enum_type): Update.
9767 * cli/cli-cmds.c (edit_command, list_command): Update.
9768 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9769 * breakpoint.c (create_overlay_event_breakpoint)
9770 (create_longjmp_master_breakpoint)
9771 (create_std_terminate_master_breakpoint)
9772 (create_exception_master_breakpoint, get_sal_arch): Update.
9773 * block.c (block_gdbarch): Update.
9774 * annotate.c (annotate_source_line): Update.
9775
9776 2020-04-17 Tom Tromey <tromey@adacore.com>
9777
9778 * auto-load.c (show_auto_load_cmd): Remove.
9779 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9780 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9781 (maintenance_print_arc_command): Remove.
9782 * tui/tui-win.c (tui_command): Remove.
9783 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9784 * tui/tui-layout.c (tui_layout_command): Remove.
9785 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9786 * python/python.c (user_set_python, user_show_python): Remove.
9787 (_initialize_python): Use add_basic_prefix_cmd,
9788 add_show_prefix_cmd.
9789 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9790 (install_gdb_commands): Use add_basic_prefix_cmd,
9791 add_show_prefix_cmd.
9792 (info_guile_command): Remove.
9793 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9794 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9795 add_show_prefix_cmd.
9796 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9797 Remove do_set and do_show parameters.
9798 * cli/cli-style.c (set_style, show_style): Remove.
9799 (_initialize_cli_style): Use add_basic_prefix_cmd,
9800 add_show_prefix_cmd.
9801 (cli_style_option::add_setshow_commands): Remove do_set and
9802 do_show parameters.
9803 (cli_style_option::add_setshow_commands): Use
9804 add_basic_prefix_cmd, add_show_prefix_cmd.
9805 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9806 (set_style_name): Remove.
9807 * cli/cli-dump.c (dump_command, append_command): Remove.
9808 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9809 (tekhex_dump_command, binary_dump_command)
9810 (binary_append_command): Remove.
9811 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9812 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9813 (init_w32_command_list): Remove; move into ...
9814 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9815 * valprint.c (set_print, show_print, set_print_raw)
9816 (show_print_raw): Remove.
9817 (_initialize_valprint): Use add_basic_prefix_cmd,
9818 add_show_prefix_cmd.
9819 * typeprint.c (set_print_type, show_print_type): Remove.
9820 (_initialize_typeprint): Use add_basic_prefix_cmd,
9821 add_show_prefix_cmd.
9822 * record.c (set_record_command, show_record_command): Remove.
9823 (_initialize_record): Use add_basic_prefix_cmd,
9824 add_show_prefix_cmd.
9825 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9826 add_show_prefix_cmd.
9827 (info_command, show_command, set_debug, show_debug): Remove.
9828 * top.h (set_history, show_history): Don't declare.
9829 * top.c (set_history, show_history): Remove.
9830 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9831 (unset_tdesc_cmd): Remove.
9832 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9833 add_show_prefix_cmd.
9834 * symtab.c (info_module_command): Remove.
9835 (_initialize_symtab): Use add_basic_prefix_cmd.
9836 * symfile.c (overlay_command): Remove.
9837 (_initialize_symfile): Use add_basic_prefix_cmd.
9838 * sparc64-tdep.c (info_adi_command): Remove.
9839 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9840 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9841 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9842 add_show_prefix_cmd.
9843 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9844 (_initialize_serial): Use add_basic_prefix_cmd,
9845 add_show_prefix_cmd.
9846 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9847 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9848 add_show_prefix_cmd.
9849 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9850 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9851 add_show_prefix_cmd.
9852 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9853 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9854 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9855 add_show_prefix_cmd.
9856 * remote.c (remote_command, set_remote_cmd): Remove.
9857 (_initialize_remote): Use add_basic_prefix_cmd.
9858 * record-full.c (set_record_full_command)
9859 (show_record_full_command): Remove.
9860 (_initialize_record_full): Use add_basic_prefix_cmd,
9861 add_show_prefix_cmd.
9862 * record-btrace.c (cmd_set_record_btrace)
9863 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9864 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9865 (cmd_show_record_btrace_pt): Remove.
9866 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9867 add_show_prefix_cmd.
9868 * ravenscar-thread.c (set_ravenscar_command)
9869 (show_ravenscar_command): Remove.
9870 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9871 add_show_prefix_cmd.
9872 * mips-tdep.c (show_mips_command, set_mips_command)
9873 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9874 add_show_prefix_cmd.
9875 * maint.c (maintenance_command, maintenance_info_command)
9876 (maintenance_check_command, maintenance_print_command)
9877 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9878 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9879 add_show_prefix_cmd.
9880 (show_per_command_cmd): Remove.
9881 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9882 Remove.
9883 (maintenance_show_test_settings_cmd): Remove.
9884 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9885 add_show_prefix_cmd.
9886 * maint-test-options.c (maintenance_test_options_command):
9887 Remove.
9888 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9889 * macrocmd.c (macro_command): Remove
9890 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9891 * language.c (set_check, show_check): Remove.
9892 (_initialize_language): Use add_basic_prefix_cmd,
9893 add_show_prefix_cmd.
9894 * infcmd.c (unset_command): Remove.
9895 (_initialize_infcmd): Use add_basic_prefix_cmd.
9896 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9897 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9898 add_show_prefix_cmd.
9899 * go32-nat.c (go32_info_dos_command): Remove.
9900 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9901 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9902 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9903 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9904 (_initialize_frame): Use add_basic_prefix_cmd,
9905 add_show_prefix_cmd.
9906 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9907 (_initialize_dcache): Use add_basic_prefix_cmd,
9908 add_show_prefix_cmd.
9909 * cp-support.c (maint_cplus_command): Remove.
9910 (_initialize_cp_support): Use add_basic_prefix_cmd.
9911 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9912 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9913 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9914 add_basic_prefix_cmd, add_show_prefix_cmd.
9915 * breakpoint.c (save_command): Remove.
9916 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9917 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9918 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9919 add_show_prefix_cmd.
9920 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9921 (set_ada_command, show_ada_command): Remove.
9922 (_initialize_ada_language): Use add_basic_prefix_cmd,
9923 add_show_prefix_cmd.
9924 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9925
9926 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9927
9928 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9929 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9930
9931 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9932
9933 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9934 warning messages.
9935
9936 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9937
9938 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9939 import table is not at beginning of .idata section.
9940
9941 2020-04-16 Pedro Alves <palves@redhat.com>
9942
9943 * inferior.c (delete_inferior): Use delete operator directly
9944 instead of delete_program_space.
9945 * progspace.c (add_program_space): New, factored out from
9946 program_space::program_space.
9947 (remove_program_space): New, factored out from
9948 delete_program_space.
9949 (program_space::program_space): Remove intro comment. Rewrite.
9950 (program_space::~program_space): Remove intro comment. Call
9951 remove_program_space.
9952 (delete_program_space): Delete.
9953 * progspace.h (program_space::program_space): Make explicit. Move
9954 intro comment here, adjusted.
9955 (program_space::~program_space): Move intro comment here,
9956 adjusted.
9957 (delete_program_space): Remove.
9958
9959 2020-04-16 Tom Tromey <tromey@adacore.com>
9960
9961 * windows-nat.c (windows_nat::handle_access_violation): New
9962 function.
9963 * nat/windows-nat.h (handle_access_violation): Declare.
9964 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9965 windows-nat.c. Call handle_access_violation.
9966
9967 2020-04-16 Tom de Vries <tdevries@suse.de>
9968
9969 PR symtab/25791
9970 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9971 CUs without psymtab.
9972
9973 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9974
9975 * python/python.c (do_start_initialization): Don't call
9976 PyEval_InitThreads for Python 3.9 and beyond.
9977
9978 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9979
9980 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9981 thread functions.
9982 (obsd_nat_target::wait): Likewise.
9983
9984 2020-04-15 Tom Tromey <tromey@adacore.com>
9985
9986 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9987 (DEBUG_EXCEPT): Use debug_printf.
9988
9989 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9990
9991 * completer.c (class completion_tracker::completion_hash_entry)
9992 <hash_name>: New member function.
9993 (completion_tracker::discard_completions): New callback to hash a
9994 completion_hash_entry, pass this to htab_create_alloc.
9995
9996 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9997
9998 * windows-nat.c (windows_make_so): Warn rather than stopping with
9999 an error if realpath() fails.
10000
10001 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10002
10003 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10004 (nbsd_nat_target::info_proc): Add do_status.
10005
10006 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10007 Tom de Vries <tdevries@suse.de>
10008
10009 PR symtab/25718
10010 * psympriv.h (struct partial_symtab::read_symtab)
10011 (struct partial_symtab::expand_psymtab)
10012 (struct partial_symtab::read_dependencies): Update comments.
10013 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10014 read_symtab for includer.
10015 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10016 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10017 (struct dwarf2_include_psymtab::m_readin): Remove.
10018 (struct dwarf2_include_psymtab::includer): New member function.
10019 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10020
10021 2020-04-14 Tom de Vries <tdevries@suse.de>
10022
10023 PR symtab/25720
10024 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10025 with NULL symbol_matcher and lookup_name.
10026 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10027 and lookup_name.
10028 * dwarf2/read.c (dw2_expand_symtabs_matching)
10029 (dw2_debug_names_expand_symtabs_matching): Same.
10030 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10031 Make lookup_name a pointer. Update comment.
10032 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10033 lookup_name being a pointer.
10034 * symfile.c (expand_symtabs_matching): Same.
10035 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10036 * linespec.c (iterate_over_all_matching_symtabs): Same.
10037
10038 2020-04-13 Tom Tromey <tom@tromey.com>
10039
10040 * run-on-main-thread.c: Update include.
10041 * unittests/main-thread-selftests.c: Update include.
10042 * tui/tui-win.c: Update include.
10043 * tui/tui-io.c: Update include.
10044 * tui/tui-interp.c: Update include.
10045 * tui/tui-hooks.c: Update include.
10046 * top.h: Update include.
10047 * top.c: Update include.
10048 * ser-base.c: Update include.
10049 * remote.c: Update include.
10050 * remote-notif.c: Update include.
10051 * remote-fileio.c: Update include.
10052 * record-full.c: Update include.
10053 * record-btrace.c: Update include.
10054 * python/python.c: Update include.
10055 * posix-hdep.c: Update include.
10056 * mingw-hdep.c: Update include.
10057 * mi/mi-main.c: Update include.
10058 * mi/mi-interp.c: Update include.
10059 * main.c: Update include.
10060 * linux-nat.c: Update include.
10061 * interps.c: Update include.
10062 * infrun.c: Update include.
10063 * inf-loop.c: Update include.
10064 * event-top.c: Update include.
10065 * event-loop.c: Move to ../gdbsupport/.
10066 * event-loop.h: Move to ../gdbsupport/.
10067 * async-event.h: Update include.
10068 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10069
10070 2020-04-13 Tom Tromey <tom@tromey.com>
10071
10072 * tui/tui-win.c: Include async-event.h.
10073 * remote.c: Include async-event.h.
10074 * remote-notif.c: Include async-event.h.
10075 * record-full.c: Include async-event.h.
10076 * record-btrace.c: Include async-event.h.
10077 * infrun.c: Include async-event.h.
10078 * event-top.c: Include async-event.h.
10079 * event-loop.h: Move some declarations to async-event.h.
10080 * event-loop.c: Don't include ser-event.h or top.h. Move some
10081 code to async-event.c.
10082 * async-event.h: New file.
10083 * async-event.c: New file.
10084 * Makefile.in (COMMON_SFILES): Add async-event.c.
10085 (HFILES_NO_SRCDIR): Add async-event.h.
10086
10087 2020-04-13 Tom Tromey <tom@tromey.com>
10088
10089 * utils.c (flush_streams): New function.
10090 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10091
10092 2020-04-13 Tom Tromey <tom@tromey.com>
10093
10094 * event-loop.c (handle_file_event): Use warning, not
10095 printf_unfiltered.
10096
10097 2020-04-13 Tom Tromey <tom@tromey.com>
10098
10099 * event-loop.c: Include <chrono>.
10100
10101 2020-04-13 Tom Tromey <tom@tromey.com>
10102
10103 * gdb_select.h: Move to ../gdbsupport/.
10104 * event-loop.c: Update include path.
10105 * top.c: Update include path.
10106 * ser-base.c: Update include path.
10107 * ui-file.c: Update include path.
10108 * ser-tcp.c: Update include path.
10109 * guile/scm-ports.c: Update include path.
10110 * posix-hdep.c: Update include path.
10111 * ser-unix.c: Update include path.
10112 * gdb_usleep.c: Update include path.
10113 * mingw-hdep.c: Update include path.
10114 * inflow.c: Update include path.
10115 * infrun.c: Update include path.
10116 * event-top.c: Update include path.
10117
10118 2020-04-13 Tom Tromey <tom@tromey.com>
10119
10120 * configure: Rebuild.
10121 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10122
10123 2020-04-13 Tom Tromey <tom@tromey.com>
10124
10125 * event-loop.h (start_event_loop): Don't declare.
10126 * event-loop.c (start_event_loop): Move...
10127 * main.c (start_event_loop): ...here. Now static.
10128
10129 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10130
10131 * MAINTAINERS: Update my email address.
10132
10133 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10134
10135 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10136 IP_ALL.
10137
10138 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10139
10140 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10141 (nbsd_nat_target::info_proc): Add do_cmdline.
10142
10143 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10144
10145 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10146 (nbsd_nat_target::info_proc): Add do_cwd.
10147
10148 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10149
10150 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10151
10152 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10153
10154 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10155 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10156 (nbsd_nat_target::info_proc): New functions.
10157 * nbsd-nat.c (kinfo_get_vmmap): New function.
10158 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10159 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10160 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10161 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10162 functions.
10163 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10164 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10165 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10166 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10167 (KINFO_VME_FLAG_GROWS_DOWN): New.
10168
10169 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10170
10171 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10172 bit shift.
10173
10174 2020-04-10 Tom Tromey <tromey@adacore.com>
10175
10176 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10177
10178 2020-04-10 Tom Tromey <tromey@adacore.com>
10179
10180 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10181 separate debug files.
10182
10183 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10184
10185 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10186 Move to...
10187 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10188 ... here.
10189 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10190 Check for STATUS_WX86_BREAKPOINT.
10191 (windows_nat_target::wait): Same.
10192
10193 2020-04-10 Tom de Vries <tdevries@suse.de>
10194
10195 PR cli/25808
10196 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10197
10198 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10199
10200 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10201 (Write After Approval): Remove Tom de Vries.
10202
10203 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10204
10205 revert partially:
10206 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10207
10208 * buildsym.c (record_line): Fix undefined behavior and preserve
10209 lines at eof.
10210
10211 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10212
10213 * auxv.h (svr4_auxv_parse): New.
10214 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10215 and generic_auxv_parse.
10216 (svr4_auxv_parse): Add.
10217 * obsd-tdep.c: Include "auxv.h".
10218 (obsd_auxv_parse): Remove.
10219 (obsd_init_abi): Remove comment.
10220 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10221 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10222 * nbsd-tdep.c: Include "auxv.h".
10223 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10224
10225 2020-04-08 Tom Tromey <tromey@adacore.com>
10226
10227 * nat/windows-nat.h (last_wait_event): Don't declare.
10228 (wait_for_debug_event): Update comment.
10229 * nat/windows-nat.c (last_wait_event): Now static.
10230
10231 2020-04-08 Tom Tromey <tromey@adacore.com>
10232
10233 * windows-nat.c (wait_for_debug_event): Move to
10234 nat/windows-nat.c.
10235 * nat/windows-nat.h (wait_for_debug_event): Declare.
10236 * nat/windows-nat.c (wait_for_debug_event): Move from
10237 windows-nat.c. No longer static.
10238
10239 2020-04-08 Tom Tromey <tromey@adacore.com>
10240
10241 * windows-nat.c (get_windows_debug_event): Use
10242 fetch_pending_stop.
10243 * nat/windows-nat.h (fetch_pending_stop): Declare.
10244 * nat/windows-nat.c (fetch_pending_stop): New function.
10245
10246 2020-04-08 Tom Tromey <tromey@adacore.com>
10247
10248 * windows-nat.c (windows_continue): Use matching_pending_stop and
10249 continue_last_debug_event.
10250 * nat/windows-nat.h (matching_pending_stop)
10251 (continue_last_debug_event): Declare.
10252 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10253 (matching_pending_stop, continue_last_debug_event): New
10254 functions.
10255
10256 2020-04-08 Tom Tromey <tromey@adacore.com>
10257
10258 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10259 (handle_exception_result): Move to nat/windows-nat.h.
10260 (DEBUG_EXCEPTION_SIMPLE): Remove.
10261 (windows_nat::handle_ms_vc_exception): New function.
10262 (handle_exception): Move to nat/windows-nat.c.
10263 (get_windows_debug_event): Update.
10264 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10265 nat/windows-nat.c.
10266 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10267 (handle_exception_result): Move from windows-nat.c.
10268 (handle_exception): Declare.
10269 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10270 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10271 windows-nat.c.
10272
10273 2020-04-08 Tom Tromey <tromey@adacore.com>
10274
10275 * windows-nat.c (exception_count, event_count): Remove.
10276 (handle_exception, get_windows_debug_event)
10277 (do_initial_windows_stuff): Update.
10278
10279 2020-04-08 Tom Tromey <tromey@adacore.com>
10280
10281 * windows-nat.c (windows_nat::handle_load_dll)
10282 (windows_nat::handle_unload_dll): Rename. No longer static.
10283 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10284 Declare.
10285
10286 2020-04-08 Tom Tromey <tromey@adacore.com>
10287
10288 * complaints.h (stop_whining): Declare at top-level.
10289 (complaint): Don't declare stop_whining.
10290
10291 2020-04-08 Tom Tromey <tromey@adacore.com>
10292
10293 * windows-nat.c (windows_nat::handle_output_debug_string):
10294 Rename. No longer static.
10295 * nat/windows-nat.h (handle_output_debug_string): Declare.
10296
10297 2020-04-08 Tom Tromey <tromey@adacore.com>
10298
10299 * windows-nat.c (current_process_handle, current_process_id)
10300 (main_thread_id, last_sig, current_event, last_wait_event)
10301 (current_windows_thread, desired_stop_thread_id, pending_stops)
10302 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10303 (display_selectors, fake_create_process)
10304 (get_windows_debug_event): Update.
10305 * nat/windows-nat.h (current_process_handle, current_process_id)
10306 (main_thread_id, last_sig, current_event, last_wait_event)
10307 (current_windows_thread, desired_stop_thread_id, pending_stops)
10308 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10309 * nat/windows-nat.c (current_process_handle, current_process_id)
10310 (main_thread_id, last_sig, current_event, last_wait_event)
10311 (current_windows_thread, desired_stop_thread_id, pending_stops)
10312 (siginfo_er): New globals. Move from windows-nat.c.
10313
10314 2020-04-08 Tom Tromey <tromey@adacore.com>
10315
10316 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10317 (handle_load_dll): Update.
10318 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10319
10320 2020-04-08 Tom Tromey <tromey@adacore.com>
10321
10322 * windows-nat.c (enum thread_disposition_type): Move to
10323 nat/windows-nat.h.
10324 (windows_nat::thread_rec): Rename from thread_rec. No longer
10325 static.
10326 (windows_add_thread, windows_nat_target::fetch_registers)
10327 (windows_nat_target::store_registers, handle_exception)
10328 (windows_nat_target::resume, get_windows_debug_event)
10329 (windows_nat_target::get_tib_address)
10330 (windows_nat_target::thread_name)
10331 (windows_nat_target::thread_alive): Update.
10332 * nat/windows-nat.h (enum thread_disposition_type): Move from
10333 windows-nat.c.
10334 (thread_rec): Declare.
10335
10336 2020-04-08 Tom Tromey <tromey@adacore.com>
10337
10338 * windows-nat.c: Add "using namespace".
10339 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10340 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10341
10342 2020-04-08 Tom Tromey <tromey@adacore.com>
10343
10344 * nat/windows-nat.h (struct windows_thread_info): Declare
10345 destructor.
10346 * nat/windows-nat.c (~windows_thread_info): New.
10347
10348 2020-04-08 Tom Tromey <tromey@adacore.com>
10349
10350 PR gdb/22992
10351 * windows-nat.c (current_event): Update comment.
10352 (last_wait_event, desired_stop_thread_id): New globals.
10353 (struct pending_stop): New.
10354 (pending_stops): New global.
10355 (windows_nat_target) <stopped_by_sw_breakpoint>
10356 <supports_stopped_by_sw_breakpoint>: New methods.
10357 (windows_fetch_one_register): Add assertions. Adjust PC.
10358 (windows_continue): Handle pending stops. Suspend other threads
10359 when stepping. Use last_wait_event
10360 (wait_for_debug_event): New function.
10361 (get_windows_debug_event): Use wait_for_debug_event. Handle
10362 pending stops. Queue spurious stops.
10363 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10364 (windows_nat_target::kill): Use wait_for_debug_event.
10365 * nat/windows-nat.h (struct windows_thread_info)
10366 <stopped_at_software_breakpoint>: New field.
10367 * nat/windows-nat.c (windows_thread_info::resume): Clear
10368 stopped_at_software_breakpoint.
10369
10370 2020-04-08 Tom Tromey <tromey@adacore.com>
10371
10372 * windows-nat.c (enum thread_disposition_type): New.
10373 (thread_rec): Replace "get_context" parameter with "disposition";
10374 change type.
10375 (windows_add_thread, windows_nat_target::fetch_registers)
10376 (windows_nat_target::store_registers, handle_exception)
10377 (windows_nat_target::resume, get_windows_debug_event)
10378 (windows_nat_target::get_tib_address)
10379 (windows_nat_target::thread_name)
10380 (windows_nat_target::thread_alive): Update.
10381
10382 2020-04-08 Tom Tromey <tromey@adacore.com>
10383
10384 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10385 (windows_continue): Use windows_continue::resume.
10386 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10387 resume>: Declare new methods.
10388 * nat/windows-nat.c: New file.
10389 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10390
10391 2020-04-08 Tom Tromey <tromey@adacore.com>
10392
10393 * windows-nat.c (windows_add_thread, windows_delete_thread)
10394 (windows_nat_target::fetch_registers)
10395 (windows_nat_target::store_registers, fake_create_process)
10396 (windows_nat_target::resume, windows_nat_target::resume)
10397 (get_windows_debug_event, windows_nat_target::wait)
10398 (windows_nat_target::pid_to_str)
10399 (windows_nat_target::get_tib_address)
10400 (windows_nat_target::get_ada_task_ptid)
10401 (windows_nat_target::thread_name)
10402 (windows_nat_target::thread_alive): Use lwp, not tid.
10403
10404 2020-04-08 Tom Tromey <tromey@adacore.com>
10405
10406 * windows-nat.c (handle_exception)
10407 (windows_nat_target::thread_name): Update.
10408 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10409 <name>: Now unique_xmalloc_ptr.
10410
10411 2020-04-08 Tom Tromey <tromey@adacore.com>
10412
10413 * windows-nat.c (thread_rec)
10414 (windows_nat_target::fetch_registers): Update.
10415 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10416 Update comment.
10417 <debug_registers_changed, reload_context>: Now bool.
10418
10419 2020-04-08 Tom Tromey <tromey@adacore.com>
10420
10421 * windows-nat.c (windows_add_thread): Use new.
10422 (windows_init_thread_list, windows_delete_thread): Use delete.
10423 (get_windows_debug_event): Update.
10424 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10425 destructor, and initializers.
10426
10427 2020-04-08 Tom Tromey <tromey@adacore.com>
10428
10429 * windows-nat.c (struct windows_thread_info): Remove.
10430 * nat/windows-nat.h: New file.
10431
10432 2020-04-08 Tom Tromey <tromey@adacore.com>
10433
10434 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10435 (thread_rec, windows_add_thread, windows_delete_thread)
10436 (windows_continue): Update.
10437
10438 2020-04-08 Tom Tromey <tromey@adacore.com>
10439
10440 * windows-nat.c (struct windows_thread_info): Remove typedef.
10441 (thread_head): Remove.
10442 (thread_list): New global.
10443 (thread_rec, windows_add_thread, windows_init_thread_list)
10444 (windows_delete_thread, windows_continue): Update.
10445
10446 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10447
10448 * windows-tdep.h (windows_init_abi): Add comment.
10449 (cygwin_init_abi): New declaration.
10450 * windows-tdep.c: Split signal enumeration in two, one for
10451 Windows and one for Cygwin.
10452 (windows_gdb_signal_to_target): Only deal with signal of the
10453 Windows OS ABI.
10454 (cygwin_gdb_signal_to_target): New function.
10455 (windows_init_abi): Rename to windows_init_abi_common, don't set
10456 gdb_signal_to_target gdbarch method. Add new new function with
10457 this name.
10458 (cygwin_init_abi): New function.
10459 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10460 comment. Don't call windows_init_abi.
10461 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10462 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10463 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10464 i386_windows_init_abi_common, don't call windows_init_abi. Add
10465 a new function of this name.
10466 (i386_cygwin_init_abi): New function.
10467 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10468 OS ABI Cygwin.
10469
10470 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10471
10472 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10473 parameter.c.
10474 (dwarf2_read_gdb_index): Update.
10475
10476 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10477
10478 * nbsd-tdep.c: Include "objfiles.h".
10479 (nbsd_skip_solib_resolver): New.
10480 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10481
10482 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10483
10484 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10485 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10486 with DW_LLE_base_addressx are being emitted in DWARFv5.
10487 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10488 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10489 unsigned integer.
10490
10491 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10492
10493 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10494 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10495 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10496 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10497 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10498 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10499 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10500
10501
10502 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10503
10504 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10505 (read_loclist_index): New function definition.
10506 (lookup_loclist_base): New function definition.
10507 (read_loclist_header): New function definition.
10508 (dwarf2_cu): Add loclist_base and loclist_header field.
10509 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10510 (read_full_die_1): Read the value of DW_AT_loclists_base.
10511 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10512 (read_attribute_value): Handle DW_FORM_loclistx.
10513 (skip_one_die): Handle DW_FORM_loclistx.
10514 (loclist_header): New structure declaration.
10515 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10516
10517 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10518
10519 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10520 constructor. Remove `addr` parameter from other constructor and
10521 add `per_cu` parameter.
10522 * dwarf2/read.c (create_partial_symtab): Update.
10523
10524 2020-04-07 Tom de Vries <tdevries@suse.de>
10525
10526 PR symtab/25796
10527 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10528 (partial_die_info::fixup): Inherit has_const_value.
10529
10530 2020-04-07 Tom de Vries <tdevries@suse.de>
10531
10532 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10533 symbols without address.
10534
10535 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10536
10537 * nbsd-nat.h (struct thread_info): Add forward declaration.
10538 (nbsd_nat_target::thread_alive): Add.
10539 (nbsd_nat_target::thread_name): Likewise.
10540 (nbsd_nat_target::update_thread_list): Likewise.
10541 (update_thread_list::post_attach): Likewise.
10542 (post_attach::pid_to_str): Likewise.
10543 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10544 (nbsd_thread_lister): Add.
10545 (nbsd_nat_target::thread_alive): Likewise.
10546 (nbsd_nat_target::thread_name): Likewise.
10547 (nbsd_add_threads): Likewise.
10548 (update_thread_list::post_attach): Likewise.
10549 (nbsd_nat_target::update_thread_list): Likewise.
10550 (post_attach::pid_to_str): Likewise.
10551
10552 2020-04-06 Tom Tromey <tromey@adacore.com>
10553
10554 * ada-valprint.c (print_variant_part): Extract the variant field.
10555 (print_field_values): Use the field as the outer value when
10556 recursing.
10557
10558 2020-04-06 Tom Tromey <tromey@adacore.com>
10559
10560 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10561 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10562 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10563 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10564 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10565
10566 2020-04-06 Tom Tromey <tromey@adacore.com>
10567
10568 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10569 TYPE_CODE_ERROR.
10570
10571 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10572
10573 * nbsd-tdep.c: Include "gdbarch.h".
10574 Define enum with NetBSD signal numbers.
10575 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10576 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10577 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10578 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10579 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10580 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10581 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10582 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10583 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10584 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10585 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10586 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10587
10588 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10589
10590 PR gdb/25325
10591 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10592
10593 2020-04-03 Tom Tromey <tromey@adacore.com>
10594
10595 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10596 Read constant block.
10597
10598 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10599
10600 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10601 (gdb_bfd_get_full_section_contents): New declaration.
10602 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10603 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10604 gdb_bfd_get_full_section_contents.
10605
10606 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10607
10608 * exec.c (build_section_table): Replace internal_error with
10609 gdb_assert.
10610 (section_table_xfer_memory_partial): Likewise.
10611 * mdebugread.c (parse_partial_symbols): Likewise.
10612 * psymtab.c (lookup_partial_symbol): Likewise.
10613 * utils.c (wrap_here): Likewise.
10614
10615 2020-04-02 Tom Tromey <tromey@adacore.com>
10616
10617 * f-lang.c (build_fortran_types): Use arch_type to initialize
10618 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10619
10620 2020-04-02 Tom Tromey <tromey@adacore.com>
10621
10622 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10623 of attributes.
10624
10625 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10626 Bernd Edlinger <bernd.edlinger@hotmail.de>
10627 Tom Tromey <tromey@adacore.com>
10628
10629 * buildsym.c (buildsym_compunit::record_line): Remove
10630 deduplication code.
10631
10632 2020-04-02 Tom de Vries <tdevries@suse.de>
10633
10634 PR ada/24671
10635 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10636
10637 2020-04-02 Tom de Vries <tdevries@suse.de>
10638
10639 * dwarf2/read.c (dwarf2_gdb_index_functions,
10640 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10641 NULL.
10642 * psymtab.c (psym_lookup_global_symbol_language): New function.
10643 (psym_functions): Init psym_lookup_global_symbol_language with
10644 psym_lookup_global_symbol_language.
10645 * symfile-debug.c (debug_sym_quick_functions): Init
10646 lookup_global_symbol_language with NULL.
10647 * symfile.c (set_initial_language): Remove fixme comment.
10648 * symfile.h (struct quick_symbol_functions): Add
10649 lookup_global_symbol_language.
10650 * symtab.c (find_quick_global_symbol_language): New function.
10651 (find_main_name): Use find_quick_global_symbol_language.
10652
10653 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10654
10655 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10656
10657 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10658
10659 * buildsym.c (record_line): Fix undefined behavior and preserve
10660 lines at eof.
10661
10662 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10663
10664 * buildsym.c (record_line): Fix the resizing condition.
10665
10666 2020-04-01 Tom Tromey <tom@tromey.com>
10667
10668 * value.h (value_literal_complex): Add comment.
10669 * valops.c (value_literal_complex): Refer to value.h.
10670
10671 2020-04-01 Tom Tromey <tom@tromey.com>
10672
10673 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10674 (scalar_type): New rule, from typebase.
10675 (typebase): Use scalar_type. Recognize complex types.
10676 (field_name): Handle FLOAT_KEYWORD.
10677 (ident_tokens): Add _Complex and __complex__.
10678
10679 2020-04-01 Tom Tromey <tom@tromey.com>
10680
10681 PR exp/25299:
10682 * valarith.c (promotion_type, complex_binop): New functions.
10683 (scalar_binop): Handle complex numbers. Use promotion_type.
10684 (value_pos, value_neg, value_complement): Handle complex numbers.
10685
10686 2020-04-01 Tom Tromey <tom@tromey.com>
10687
10688 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10689 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10690 (parse_number): Handle complex numbers.
10691
10692 2020-04-01 Tom Tromey <tom@tromey.com>
10693
10694 * c-valprint.c (c_decorations): Change complex suffix to "i".
10695
10696 2020-04-01 Tom Tromey <tom@tromey.com>
10697
10698 * valprint.c (generic_value_print_complex): Use accessors.
10699 * value.h (value_real_part, value_imaginary_part): Declare.
10700 * valops.c (value_real_part, value_imaginary_part): New
10701 functions.
10702 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10703
10704 2020-04-01 Tom Tromey <tom@tromey.com>
10705
10706 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10707 (read_range_type): Update.
10708 * mdebugread.c (basic_type): Update.
10709 * go-lang.c (build_go_types): Use init_complex_type.
10710 * gdbtypes.h (struct main_type) <complex_type>: New member.
10711 (init_complex_type): Update.
10712 (arch_complex_type): Don't declare.
10713 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10714 Make name if none given. Use alloc_type_copy. Look for cached
10715 complex type.
10716 (arch_complex_type): Remove.
10717 (gdbtypes_post_init): Use init_complex_type.
10718 * f-lang.c (build_fortran_types): Use init_complex_type.
10719 * dwarf2/read.c (read_base_type): Update.
10720 * d-lang.c (build_d_types): Use init_complex_type.
10721 * ctfread.c (read_base_type): Update.
10722
10723 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10724
10725 * infrun.c (stop_all_threads): Update assertion, plus when
10726 stopping threads, take into account that we might be trying
10727 to stop an all-stop target.
10728 (stop_waiting): Call 'stop_all_threads' if there exists a
10729 non-stop target.
10730
10731 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10732
10733 * target.h (exists_non_stop_target): New function declaration.
10734 * target.c (exists_non_stop_target): New function.
10735
10736 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10737
10738 PR gdb/24789
10739 * eval.c (is_integral_or_integral_reference): New function.
10740 (evaluate_subexp_standard): Allow integer references in
10741 pointer arithmetic.
10742
10743 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10744
10745 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10746 check for no ptid in the stop reply when the target is non-stop.
10747
10748 2020-04-01 Tom Tromey <tromey@adacore.com>
10749
10750 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10751 "name" parameter to rvalue reference. Initialize m_name_holder.
10752 <lookup_name_info>: New overloads.
10753 <name>: Return gdb::string_view.
10754 <c_str>: New method.
10755 <make_ignore_params>: Update.
10756 <search_name_hash>: Update.
10757 <language_lookup_name>: Return const char *.
10758 <m_name>: Change type.
10759 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10760 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10761 (lookup_name_info::match_any): Update.
10762 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10763 Update.
10764 * minsyms.c (linkage_name_str): Update.
10765 * language.c (default_symbol_name_matcher): Update.
10766 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10767 Update.
10768 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10769 (ada_lookup_name_info::ada_lookup_name_info): Update.
10770 (literal_symbol_name_matcher): Update.
10771
10772 2020-04-01 Tom Tromey <tromey@adacore.com>
10773
10774 * psymtab.c (psymtab_search_name): Remove function.
10775 (psym_lookup_symbol): Create search name and lookup name here.
10776 (lookup_partial_symbol): Remove "name" parameter; add
10777 lookup_name.
10778 (psym_expand_symtabs_for_function): Update.
10779
10780 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10781
10782 PR tui/25597:
10783 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10784
10785 2020-03-31 Tom Tromey <tromey@adacore.com>
10786
10787 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10788 memcpy.
10789
10790 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10791
10792 * features/riscv/32bit-csr.xml: Regenerated.
10793 * features/riscv/64bit-csr.xml: Regenerated.
10794
10795 2020-03-30 Tom Tromey <tromey@adacore.com>
10796
10797 * ada-valprint.c (print_variant_part): Update.
10798 * ada-lang.h (ada_which_variant_applies): Update.
10799 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10800 outer_valaddr parameters; replace with "outer" value parameter.
10801 (to_fixed_variant_branch_type): Update.
10802
10803 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10804
10805 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10806 <list>. Remove inclusion of observable.h.
10807 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10808 (struct arch_lwp_info): New struct.
10809 (class ppc_linux_dreg_interface): New class.
10810 (struct ppc_linux_process_info): New struct.
10811 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10812 <low_new_clone, low_forget_process, low_prepare_to_resume>
10813 <copy_thread_dreg_state, mark_thread_stale>
10814 <mark_debug_registers_changed, register_hw_breakpoint>
10815 <clear_hw_breakpoint, register_wp, clear_wp>
10816 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10817 <num_memory_accesses, get_trigger_type>
10818 <create_watchpoint_request, hwdebug_point_cmp>
10819 <init_arch_lwp_info, get_arch_lwp_info>
10820 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10821 methods.
10822 <struct ptid_hash>: New inner struct.
10823 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10824 members.
10825 (saved_dabr_value, hwdebug_info, max_slots_number)
10826 (struct hw_break_tuple, struct thread_points, ppc_threads)
10827 (have_ptrace_hwdebug_interface)
10828 (hwdebug_find_thread_points_by_tid)
10829 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10830 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10831 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10832 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10833 use m_dreg_interface.
10834 (hwdebug_point_cmp): Change to...
10835 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10836 reference arguments instead of pointers.
10837 (ppc_linux_nat_target::ranged_break_num_registers): Use
10838 m_dreg_interface.
10839 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10840 m_dreg_interface. Call register_hw_breakpoint.
10841 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10842 m_dreg_interface. Call clear_hw_breakpoint.
10843 (get_trigger_type): Change to...
10844 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10845 comment.
10846 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10847 use m_dreg_interface. Call register_hw_breakpoint.
10848 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10849 use m_dreg_interface. Call clear_hw_breakpoint.
10850 (can_use_watchpoint_cond_accel): Change to...
10851 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10852 method. Update comment, use m_dreg_interface and
10853 m_process_info.
10854 (calculate_dvc): Change to...
10855 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10856 m_dreg_interface.
10857 (num_memory_accesses): Change to...
10858 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10859 (check_condition): Change to...
10860 (ppc_linux_nat_target::check_condition): ...this method.
10861 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10862 comment, use m_dreg_interface.
10863 (create_watchpoint_request): Change to...
10864 (ppc_linux_nat_target::create_watchpoint_request): ...this
10865 method. Use m_dreg_interface.
10866 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10867 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10868 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10869 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10870 (ppc_linux_nat_target::low_forget_process)
10871 (ppc_linux_nat_target::low_new_fork)
10872 (ppc_linux_nat_target::low_new_clone)
10873 (ppc_linux_nat_target::low_delete_thread)
10874 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10875 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10876 only call mark_thread_stale.
10877 (ppc_linux_thread_exit): Remove.
10878 (ppc_linux_nat_target::stopped_data_address): Change to...
10879 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10880 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10881 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10882 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10883 comment. Call low_stopped_data_address.
10884 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10885 m_dreg_interface.
10886 (ppc_linux_nat_target::masked_watch_num_registers): Use
10887 m_dreg_interface.
10888 (ppc_linux_nat_target::copy_thread_dreg_state)
10889 (ppc_linux_nat_target::mark_thread_stale)
10890 (ppc_linux_nat_target::mark_debug_registers_changed)
10891 (ppc_linux_nat_target::register_hw_breakpoint)
10892 (ppc_linux_nat_target::clear_hw_breakpoint)
10893 (ppc_linux_nat_target::register_wp)
10894 (ppc_linux_nat_target::clear_wp)
10895 (ppc_linux_nat_target::init_arch_lwp_info)
10896 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10897 (_initialize_ppc_linux_nat): Remove observer callback.
10898
10899 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10900
10901 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10902 (ppc_linux_nat_target::auxv_parse)
10903 (ppc_linux_nat_target::read_description)
10904 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10905 Move up.
10906
10907 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10908
10909 * linux-nat.h (low_new_clone): New method.
10910 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10911
10912 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10913
10914 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10915 (dbx_expand_psymtab): ... this.
10916 (start_psymtab): Update.
10917 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10918 (mdebug_expand_psymtab): ... this.
10919 (parse_partial_symbols): Update.
10920 (new_psymtab): Update.
10921 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10922 (xcoff_expand_psymtab): ... this.
10923 (xcoff_start_psymtab): Update.
10924
10925 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10926
10927 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10928 <expand_dependencies>: ... this.
10929 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10930 (partial_symtab::expand_dependencies): ... this.
10931 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10932 Update.
10933 (dwarf2_psymtab::expand_psymtab): Update.
10934 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10935 * mdebugread.c (psymtab_to_symtab_1): Update.
10936 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10937
10938 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10939
10940 * psympriv.h (discard_psymtab): Remove.
10941 * dbxread.c (dbx_end_psymtab): Update.
10942 * xcoffread.c (xcoff_end_psymtab): Update.
10943
10944 2020-03-28 Tom Tromey <tom@tromey.com>
10945
10946 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10947 comment.
10948
10949 2020-03-28 Tom Tromey <tom@tromey.com>
10950
10951 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10952
10953 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10954
10955 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10956
10957 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10958
10959 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10960
10961 2020-03-26 Tom Tromey <tom@tromey.com>
10962
10963 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10964 (mark_common_block_symbol_computed, read_tag_string_type)
10965 (attr_to_dynamic_prop, read_subrange_type): Update.
10966 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10967 to be methods on struct attribute.
10968 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10969 (read_call_site_scope, partial_die_info::read)
10970 (partial_die_info::read, lookup_die_type, follow_die_ref):
10971 Update.
10972 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10973 from dwarf2_get_ref_die_offset.
10974 (attribute::constant_value): New method, from
10975 dwarf2_get_attr_constant_value.
10976 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10977 Declare method.
10978 <constant_value>: New method.
10979
10980 2020-03-26 Tom Tromey <tom@tromey.com>
10981
10982 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10983 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10984 (dwarf_type_encoding_name): Move to stringify.c.
10985 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10986 * dwarf2/stringify.c: New file.
10987 * dwarf2/stringify.h: New file.
10988
10989 2020-03-26 Tom Tromey <tom@tromey.com>
10990
10991 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10992 Rewrite.
10993
10994 2020-03-26 Tom Tromey <tom@tromey.com>
10995
10996 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10997 methods.
10998 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10999 (lookup_ranges_base): Likewise.
11000 (read_cutu_die_from_dwo, read_full_die_1): Update.
11001
11002 2020-03-26 Tom Tromey <tom@tromey.com>
11003
11004 * dwarf2/read.c (read_import_statement, read_file_scope)
11005 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11006 (read_lexical_block_scope, read_call_site_scope)
11007 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11008 (handle_struct_member_die, process_structure_scope)
11009 (update_enumeration_type_from_children)
11010 (process_enumeration_scope, read_array_type, read_common_block)
11011 (read_namespace, read_module, read_subroutine_type): Update.
11012 (sibling_die): Remove.
11013
11014 2020-03-26 Tom Tromey <tom@tromey.com>
11015
11016 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11017 (build_type_psymtabs_reader, read_structure_type)
11018 (read_enumeration_type, read_full_die_1): Update.
11019 (dwarf2_attr_no_follow): Move to die.h.
11020 * dwarf2/die.h (struct die_info) <attr>: New method.
11021
11022 2020-03-26 Tom Tromey <tom@tromey.com>
11023
11024 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11025 <base_address>: Now an optional.
11026 (dwarf2_find_base_address, dwarf2_rnglists_process)
11027 (dwarf2_ranges_process, fill_in_loclist_baton)
11028 (dwarf2_symbol_mark_computed): Update.
11029
11030 2020-03-26 Tom Tromey <tom@tromey.com>
11031
11032 * dwarf2/read.c (struct die_info): Move to die.h.
11033 * dwarf2/die.h: New file.
11034
11035 2020-03-26 Tom Tromey <tom@tromey.com>
11036
11037 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11038 * dwarf2/read.c
11039 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11040 Move to line-header.c.
11041 (read_checked_initial_length_and_offset, read_formatted_entries):
11042 Likewise.
11043 (dwarf_decode_line_header): Split into two.
11044 * dwarf2/line-header.c
11045 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11046 Move from read.c.
11047 (read_checked_initial_length_and_offset, read_formatted_entries):
11048 Likewise.
11049 (dwarf_decode_line_header): New function, split from read.c.
11050
11051 2020-03-26 Tom Tromey <tom@tromey.com>
11052
11053 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11054 Declare method.
11055 * dwarf2/read.c (read_attribute_value): Update.
11056 (dwarf2_per_objfile::read_line_string): Rename from
11057 read_indirect_line_string.
11058 (read_formatted_entries): Update.
11059
11060 2020-03-26 Tom Tromey <tom@tromey.com>
11061
11062 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11063 variable.
11064
11065 2020-03-26 Tom Tromey <tom@tromey.com>
11066
11067 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11068 const.
11069 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11070 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11071 parameter const.
11072
11073 2020-03-26 Tom Tromey <tom@tromey.com>
11074
11075 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11076 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11077 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11078 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11079
11080 2020-03-26 Tom Tromey <tom@tromey.com>
11081
11082 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11083 file_names_size, file_full_name, file_file_name>: Use const.
11084 <file_name_at, file_names>: Add const overload.
11085 * dwarf2/line-header.c (line_header::file_file_name)
11086 (line_header::file_full_name): Update.
11087
11088 2020-03-26 Tom Tromey <tom@tromey.com>
11089
11090 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11091 (macro_start_file, consume_improper_spaces)
11092 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11093 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11094 (dwarf_decode_macros): Move to macro.c.
11095 * dwarf2/macro.c: New file.
11096 * dwarf2/macro.h: New file.
11097 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11098
11099 2020-03-26 Tom Tromey <tom@tromey.com>
11100
11101 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11102 method.
11103 * dwarf2/section.c: New method. From
11104 read_indirect_string_at_offset_from.
11105 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11106 (read_indirect_string_at_offset_from): Move to section.c.
11107 (read_indirect_string_at_offset): Rewrite.
11108 (read_indirect_line_string_at_offset): Remove.
11109 (read_indirect_string, read_indirect_line_string)
11110 (dwarf_decode_macro_bytes): Update.
11111
11112 2020-03-26 Tom Tromey <tom@tromey.com>
11113
11114 * dwarf2/section.h (struct dwarf2_section_info)
11115 <overload_complaint>: Declare.
11116 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11117 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11118 Rename from dwarf2_section_buffer_overflow_complaint.
11119 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11120 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11121
11122 2020-03-26 Tom Tromey <tom@tromey.com>
11123
11124 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11125 Declare.
11126 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11127 Move from read.c.
11128 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11129 to section.c.
11130
11131 2020-03-26 Tom Tromey <tom@tromey.com>
11132
11133 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11134
11135 2020-03-26 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11138 "builder".
11139 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11140 parameter.
11141 (dwarf_decode_macros): Update.
11142
11143 2020-03-26 Tom Tromey <tom@tromey.com>
11144
11145 * dwarf2/read.c (read_attribute_value): Update.
11146 (read_indirect_string_from_dwz): Move to dwz.c; change into
11147 method.
11148 (dwarf_decode_macro_bytes): Update.
11149 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11150 * dwarf2/dwz.c: New file.
11151 * Makefile.in (COMMON_SFILES): Add dwz.c.
11152
11153 2020-03-26 Tom Tromey <tom@tromey.com>
11154
11155 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11156 * dwarf2/read.c: Add include.
11157 * dwarf2/index-write.c: Add include.
11158 * dwarf2/index-cache.c: Add include.
11159 * dwarf2/dwz.h: New file.
11160
11161 2020-03-25 Tom Tromey <tom@tromey.com>
11162
11163 * compile/compile-object-load.c (get_out_value_type): Mention
11164 correct symbol name in error message.
11165
11166 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11167
11168 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11169
11170 2020-03-25 Tom de Vries <tdevries@suse.de>
11171
11172 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11173 * symmisc.c (dump_symtab_1): Print user and includes fields.
11174 (maintenance_info_symtabs): Same.
11175
11176 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11177
11178 PR gdb/25534
11179 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11180 (riscv_regcache_cooked_write): New function.
11181 (riscv_push_dummy_call): Use new function.
11182 (riscv_return_value): Likewise.
11183
11184 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11185
11186 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11187 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11188 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11189 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11190 * infrun.c (follow_fork): Likewise.
11191 (follow_fork_inferior): Likewise.
11192 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11193 * linux-nat.h (class linux_nat_target): Likewise.
11194 * remote.c (class remote_target) <follow_fork>: Likewise.
11195 (remote_target::follow_fork): Likewise.
11196 * target-delegates.c: Re-generate.
11197 * target.c (default_follow_fork): Likewise.
11198 (target_follow_fork): Likewise.
11199 * target.h (struct target_ops) <follow_fork>: Likewise.
11200 (target_follow_fork): Likewise.
11201
11202 2020-03-24 Tom de Vries <tdevries@suse.de>
11203
11204 * psymtab.c (maintenance_info_psymtabs): Print user field.
11205
11206 2020-03-20 Tom Tromey <tromey@adacore.com>
11207
11208 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11209 const.
11210 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11211 const.
11212
11213 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11214
11215 * ptrace.m4: Don't check for ptrace declaration.
11216 * config.in: Re-generate.
11217 * configure: Re-generate.
11218 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11219 not defined.
11220
11221 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11222
11223 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11224 `PTRACE_TYPE_RET'.
11225 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11226 * sparc-nat.c (gdb_ptrace): Likewise.
11227 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11228
11229 2020-03-20 Tom Tromey <tromey@adacore.com>
11230
11231 * c-exp.y (lex_one_token): Fix assert.
11232
11233 2020-03-20 Tom Tromey <tromey@adacore.com>
11234
11235 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11236 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11237 strncpy call.
11238
11239 2020-03-20 Tom Tromey <tromey@adacore.com>
11240
11241 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11242
11243 2020-03-20 Tom Tromey <tromey@adacore.com>
11244
11245 * ada-valprint.c (print_variant_part): Remove parameters; switch
11246 to value-based API.
11247 (print_field_values): Likewise.
11248 (ada_val_print_struct_union): Likewise.
11249 (ada_value_print_1): Update.
11250
11251 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11252
11253 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11254 nbsd_nat_target instead of inf_ptrace_target.
11255 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11256 nbsd_nat_target.
11257
11258 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11259
11260 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11261 it to the ptrace call.
11262 * (store_registers): Likewise.
11263
11264 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11265
11266 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11267 it to the ptrace call.
11268 * (store_registers): Likewise.
11269
11270 2020-03-19 Luis Machado <luis.machado@linaro.org>
11271
11272 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11273 valid, fetch vg value from ptrace.
11274
11275 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11276 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11277 * inf-ptrace.c: Likewise.
11278 * (gdb_ptrace): Add.
11279 * (inf_ptrace_target::resume): Update.
11280 * (inf_ptrace_target::xfer_partial): Likewise.
11281 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11282 * (inf_ptrace_peek_poke): Update.
11283
11284 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11285
11286 * x86-bsd-nat.c (gdb_ptrace): New.
11287 * (x86bsd_dr_set): Add new argument `ptid'.
11288 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11289 x86bsd_dr_set_addr): Update.
11290
11291 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11292
11293 * remote.c (remote_target::process_stop_reply): Handle events for
11294 all threads differently.
11295
11296 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11297
11298 * completer.c (completion_tracker::remove_completion): Define new
11299 function.
11300 * completer.h (completion_tracker::remove_completion): Declare new
11301 function.
11302 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11303 when adding a C++ function symbol.
11304
11305 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11306
11307 * completer.c (completion_tracker::completion_hash_entry): Define
11308 new class.
11309 (advance_to_filename_complete_word_point): Call
11310 recompute_lowest_common_denominator.
11311 (completion_tracker::completion_tracker): Call discard_completions
11312 to setup the hash table.
11313 (completion_tracker::discard_completions): Allow for being called
11314 from the constructor, pass new equal function, and element deleter
11315 when constructing the hash table. Initialise new class member
11316 variables.
11317 (completion_tracker::maybe_add_completion): Remove use of
11318 m_entries_vec, and store more information into m_entries_hash.
11319 (completion_tracker::recompute_lcd_visitor): New function, most
11320 content taken from...
11321 (completion_tracker::recompute_lowest_common_denominator):
11322 ...here, this now just visits each item in the hash calling the
11323 above visitor.
11324 (completion_tracker::build_completion_result): Remove use of
11325 m_entries_vec, call recompute_lowest_common_denominator.
11326 * completer.h (completion_tracker::have_completions): Remove use
11327 of m_entries_vec.
11328 (completion_tracker::completion_hash_entry): Declare new class.
11329 (completion_tracker::recompute_lowest_common_denominator): Change
11330 function signature.
11331 (completion_tracker::recompute_lcd_visitor): Declare new function.
11332 (completion_tracker::m_entries_vec): Delete.
11333 (completion_tracker::m_entries_hash): Initialize to NULL.
11334 (completion_tracker::m_lowest_common_denominator_valid): New
11335 member variable.
11336 (completion_tracker::m_lowest_common_denominator_max_length): New
11337 member variable.
11338
11339 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11340
11341 * regformats/regdef.h: Put reg in gdb namespace.
11342
11343 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11344
11345 * i386-bsd-nat.c (gdb_ptrace): New.
11346 * (i386bsd_fetch_inferior_registers,
11347 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11348 * (i386bsd_fetch_inferior_registers,
11349 i386bsd_store_inferior_registers) Use gdb_ptrace.
11350
11351 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11352
11353 * amd64-bsd-nat.c (gdb_ptrace): New.
11354 * (amd64bsd_fetch_inferior_registers,
11355 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11356 * (amd64bsd_fetch_inferior_registers,
11357 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11358
11359 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11360
11361 * user-regs.c (user_reg::read): Rename to...
11362 (user_reg::xread): ...this.
11363 * (append_user_reg): Rename argument `read' to `xread'.
11364 * (user_reg_add_builtin): Likewise.
11365 * (user_reg_add): Likewise.
11366 * (value_of_user_reg): Likewise.
11367
11368 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11369
11370 * sparc-nat.c (gdb_ptrace): New.
11371 * sparc-nat.c (sparc_fetch_inferior_registers)
11372 (sparc_store_inferior_registers) Remove obsolete comment.
11373 * sparc-nat.c (sparc_fetch_inferior_registers)
11374 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11375 * sparc-nat.c (sparc_fetch_inferior_registers)
11376 (sparc_store_inferior_registers) Use gdb_ptrace.
11377
11378 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11379
11380 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11381 it to the ptrace call.
11382 * sh-nbsd-nat.c (store_registers): Likewise.
11383
11384 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11385
11386 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11387 nbsd_nat_target instead of inf_ptrace_target.
11388 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11389 nbsd_nat_target.
11390
11391 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11392
11393 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11394
11395 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11396
11397 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11398 <sys/sysctl.h>.
11399 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11400
11401 2020-03-17 Tom de Vries <tdevries@suse.de>
11402
11403 PR gdb/23710
11404 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11405 fields.
11406 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11407 fields.
11408 (process_imported_unit_die): Skip import of c++ CUs.
11409
11410 2020-03-16 Tom Tromey <tom@tromey.com>
11411
11412 * p-valprint.c (pascal_object_print_value): Initialize
11413 base_value.
11414
11415 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11416 Shahab Vahedi <shahab@synopsys.com>
11417
11418 * Makefile.in: Add arch/arc.o
11419 * configure.tgt: Likewise.
11420 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11421 (_initialize_arc_tdep): Don't initialize old target descriptions.
11422 (arc_read_description): New function to cache target descriptions.
11423 * arc-tdep.h (arc_read_description): Add proto type.
11424 * arch/arc.c: New file.
11425 * arch/arc.h: Likewise.
11426 * features/Makefile: Replace old target descriptions with new.
11427 * features/arc-arcompact.c: Remove.
11428 * features/arc-arcompact.xml: Likewise.
11429 * features/arc-v2.c: Likewise
11430 * features/arc-v2.xml: Likewise
11431 * features/arc/aux-arcompact.xml: New file.
11432 * features/arc/aux-v2.xml: Likewise.
11433 * features/arc/core-arcompact.xml: Likewise.
11434 * features/arc/core-v2.xml: Likewise.
11435 * features/arc/aux-arcompact.c: Generate.
11436 * features/arc/aux-v2.c: Likewise.
11437 * features/arc/core-arcompact.c: Likewise.
11438 * features/arc/core-v2.c: Likewise.
11439 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11440
11441 2020-03-16 Tom Tromey <tromey@adacore.com>
11442
11443 PR gdb/25663:
11444 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11445 putting value into bcache.
11446
11447 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11448
11449 PR gdb/21500
11450 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11451 to...
11452 (amd64_windows_init_abi_common): ... this. Don't set size of
11453 long type.
11454 (amd64_windows_init_abi): New function.
11455 (amd64_cygwin_init_abi): New function.
11456 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11457 the Cygwin OS ABI.
11458 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11459 comment.
11460
11461 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11462
11463 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11464 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11465 (pe_import_directory_entry): New struct type.
11466 (is_linked_with_cygwin_dll): New function.
11467 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11468 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11469 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11470
11471 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11472
11473 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11474 i386_cygwin_core_osabi_sniffer.
11475
11476 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11477
11478 * i386-cygwin-tdep.c: Rename to...
11479 * i386-windows-tdep.c: ... this.
11480 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11481 i386-windows-tdep.c.
11482 * configure.tgt: Likewise.
11483
11484 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11485
11486 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11487 * osabi.c (gdb_osabi_names): Add "Windows".
11488 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11489 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11490 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11491 i386_cygwin_osabi_sniffer.
11492 (_initialize_i386_cygwin_tdep): Register OS ABI
11493 GDB_OSABI_WINDOWS for i386.
11494 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11495 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11496 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11497 for x86-64.
11498 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11499 when the target matches '*-*-mingw*'.
11500
11501 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11502
11503 * defs.h (enum gdb_osabi): Move to...
11504 * osabi.h (enum gdb_osabi): ... here.
11505 * gdbarch.sh: Include osabi.h in gdbarch.h.
11506 * gdbarch.h: Re-generate.
11507
11508 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11509
11510 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11511 function.
11512 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11513
11514 2020-03-14 Tom Tromey <tom@tromey.com>
11515
11516 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11517 for C++.
11518 (c_type_print_modifier): Likewise. Add "language" parameter.
11519 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11520 (c_type_print_base_1): Update.
11521 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11522 constants.
11523 * type-stack.c (type_stack::insert): Handle tp_atomic and
11524 tp_restrict.
11525 (type_stack::follow_type_instance_flags): Likewise.
11526 (type_stack::follow_types): Likewise. Merge type-following code.
11527 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11528 (space_identifier, cv_with_space_id)
11529 (const_or_volatile_or_space_identifier_noopt)
11530 (const_or_volatile_or_space_identifier): Remove.
11531 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11532 rules.
11533 (ptr_operator, typebase): Update.
11534 (enum token_flag) <FLAG_C>: New constant.
11535 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11536 "_Atomic".
11537 (lex_one_token): Handle FLAG_C.
11538
11539 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11540
11541 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11542 it to the ptrace call.
11543 * m68k-bsd-nat.c (store_registers): Likewise.
11544
11545 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11546
11547 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11548 gdb_byte *.
11549 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11550 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11551 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11552
11553 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11554
11555 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11556 nbsd_nat_target instead of inf_ptrace_target.
11557 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11558 nbsd_nat_target.
11559
11560 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11561
11562 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11563 register_t.
11564
11565 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11566
11567 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11568 it to the ptrace call.
11569 * alpha-bsd-nat.c (store_registers): Likewise.
11570
11571 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11572
11573 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11574 includes.
11575 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11576 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11577 fill_fpregset): Likewise.
11578
11579 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11580
11581 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11582 nbsd_nat_target instead of inf_ptrace_target.
11583 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11584 nbsd_nat_target.
11585
11586 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11587
11588 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11589 register_t.
11590
11591 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11592
11593 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11594 it to the ptrace call.
11595 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11596 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11597 * arm-nbsd-nat.c (store_register): Likewise.
11598 * arm-nbsd-nat.c (store_regs): Likewise.
11599 * arm-nbsd-nat.c (store_fp_register): Likewise.
11600 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11601
11602 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11603
11604 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11605 nbsd_nat_target instead of inf_ptrace_target.
11606 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11607 nbsd_nat_target.
11608
11609 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11610
11611 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11612 it to the ptrace call.
11613 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11614
11615 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11616
11617 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11618 it to the ptrace call.
11619 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11620
11621 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11622
11623 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11624 gdb_byte *.
11625 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11626
11627 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11628
11629 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11630 instead of inf_ptrace_target.
11631 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11632 nbsd_nat_target.
11633
11634 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11635
11636 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11637 register_t.
11638
11639 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11640
11641 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11642 register_t.
11643
11644 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11645
11646 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11647 register_t.
11648
11649 2020-03-13 Tom Tromey <tom@tromey.com>
11650
11651 * value.h (val_print): Don't declare.
11652 * valprint.h (val_print_array_elements)
11653 (val_print_scalar_formatted, generic_val_print): Don't declare.
11654 * valprint.c (generic_val_print_array): Take a struct value.
11655 (generic_val_print_ptr, generic_val_print_memberptr)
11656 (generic_val_print_bool, generic_val_print_int)
11657 (generic_val_print_char, generic_val_print_complex)
11658 (generic_val_print): Remove.
11659 (generic_value_print): Update.
11660 (do_val_print): Remove unused parameters. Don't call
11661 la_val_print.
11662 (val_print): Remove.
11663 (common_val_print): Update. Don't call value_check_printable.
11664 (val_print_scalar_formatted, val_print_array_elements): Remove.
11665 * rust-lang.c (rust_val_print): Remove.
11666 (rust_language_defn): Update.
11667 * p-valprint.c (pascal_val_print): Remove.
11668 (pascal_value_print_inner): Update.
11669 (pascal_object_print_val_fields, pascal_object_print_val):
11670 Remove.
11671 (pascal_object_print_static_field): Update.
11672 * p-lang.h (pascal_val_print): Don't declare.
11673 * p-lang.c (pascal_language_defn): Update.
11674 * opencl-lang.c (opencl_language_defn): Update.
11675 * objc-lang.c (objc_language_defn): Update.
11676 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11677 * m2-lang.h (m2_val_print): Don't declare.
11678 * m2-lang.c (m2_language_defn): Update.
11679 * language.h (struct language_defn) <la_val_print>: Remove.
11680 * language.c (unk_lang_value_print_inner): Rename. Change
11681 argument types.
11682 (unknown_language_defn, auto_language_defn): Update.
11683 * go-valprint.c (go_val_print): Remove.
11684 * go-lang.h (go_val_print): Don't declare.
11685 * go-lang.c (go_language_defn): Update.
11686 * f-valprint.c (f_val_print): Remove.
11687 * f-lang.h (f_value_print): Don't declare.
11688 * f-lang.c (f_language_defn): Update.
11689 * d-valprint.c (d_val_print): Remove.
11690 * d-lang.h (d_value_print): Don't declare.
11691 * d-lang.c (d_language_defn): Update.
11692 * cp-valprint.c (cp_print_value_fields)
11693 (cp_print_value_fields_rtti, cp_print_value): Remove.
11694 (cp_print_static_field): Update.
11695 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11696 (c_val_print_struct, c_val_print_union, c_val_print_int)
11697 (c_val_print_memberptr, c_val_print): Remove.
11698 * c-lang.h (c_val_print_array, cp_print_value_fields)
11699 (cp_print_value_fields_rtti): Don't declare.
11700 * c-lang.c (c_language_defn, cplus_language_defn)
11701 (asm_language_defn, minimal_language_defn): Update.
11702 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11703 (ada_val_print_enum): Take a struct value.
11704 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11705 (ada_val_print): Remove.
11706 (ada_value_print_1): Update.
11707 (printable_val_type): Remove.
11708 * ada-lang.h (ada_val_print): Don't declare.
11709 * ada-lang.c (ada_language_defn): Update.
11710
11711 2020-03-13 Tom Tromey <tom@tromey.com>
11712
11713 * valprint.c (do_val_print): Update.
11714 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11715 a struct value.
11716 (value_to_value_object_no_release): Declare.
11717 * python/py-value.c (value_to_value_object_no_release): New
11718 function.
11719 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11720 struct value.
11721 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11722 function.
11723 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11724 a struct value.
11725 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11726 Declare.
11727 (gdbscm_apply_val_pretty_printer): Take a struct value.
11728 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11729 value.
11730 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11731 value.
11732 * extension-priv.h (struct extension_language_ops)
11733 <apply_val_pretty_printer>: Take a struct value.
11734 * cp-valprint.c (cp_print_value): Create a struct value.
11735 (cp_print_value): Update.
11736
11737 2020-03-13 Tom Tromey <tom@tromey.com>
11738
11739 * ada-valprint.c (print_field_values): Call common_val_print.
11740
11741 2020-03-13 Tom Tromey <tom@tromey.com>
11742
11743 * ada-valprint.c (val_print_packed_array_elements): Remove
11744 bitoffset and val parameters. Call common_val_print.
11745 (ada_val_print_string): Remove offset, address, and original_value
11746 parameters.
11747 (ada_val_print_array): Update.
11748 (ada_value_print_array): New function.
11749 (ada_value_print_1): Call it.
11750
11751 2020-03-13 Tom Tromey <tom@tromey.com>
11752
11753 * ada-valprint.c (ada_value_print): Use common_val_print.
11754
11755 2020-03-13 Tom Tromey <tom@tromey.com>
11756
11757 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11758
11759 2020-03-13 Tom Tromey <tom@tromey.com>
11760
11761 * ada-valprint.c (ada_value_print_num): New function.
11762 (ada_value_print_1): Use it.
11763
11764 2020-03-13 Tom Tromey <tom@tromey.com>
11765
11766 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11767
11768 2020-03-13 Tom Tromey <tom@tromey.com>
11769
11770 * ada-valprint.c (ada_value_print_ptr): New function.
11771 (ada_value_print_1): Use it.
11772
11773 2020-03-13 Tom Tromey <tom@tromey.com>
11774
11775 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11776 call common_val_print.
11777 (ada_val_print_1): Update.
11778 (ada_value_print_1): New function.
11779 (ada_value_print_inner): Rewrite.
11780
11781 2020-03-13 Tom Tromey <tom@tromey.com>
11782
11783 * cp-valprint.c (cp_print_value_fields): Update.
11784 (cp_print_value): New function.
11785
11786 2020-03-13 Tom Tromey <tom@tromey.com>
11787
11788 * m2-valprint.c (m2_value_print_inner): Use
11789 cp_print_value_fields.
11790 * cp-valprint.c (cp_print_value_fields): New function.
11791 * c-valprint.c (c_value_print_struct): New function.
11792 (c_value_print_inner): Use c_value_print_struct.
11793 * c-lang.h (cp_print_value_fields): Declare.
11794
11795 2020-03-13 Tom Tromey <tom@tromey.com>
11796
11797 * c-valprint.c (c_value_print_array): New function.
11798 (c_value_print_inner): Use it.
11799
11800 2020-03-13 Tom Tromey <tom@tromey.com>
11801
11802 * c-valprint.c (c_value_print_memberptr): New function.
11803 (c_value_print_inner): Use it.
11804
11805 2020-03-13 Tom Tromey <tom@tromey.com>
11806
11807 * c-valprint.c (c_value_print_int): New function.
11808 (c_value_print_inner): Use it.
11809
11810 2020-03-13 Tom Tromey <tom@tromey.com>
11811
11812 * c-valprint.c (c_value_print_ptr): New function.
11813 (c_value_print_inner): Use it.
11814
11815 2020-03-13 Tom Tromey <tom@tromey.com>
11816
11817 * c-valprint.c (c_value_print_inner): Rewrite.
11818
11819 2020-03-13 Tom Tromey <tom@tromey.com>
11820
11821 * valprint.c (generic_value_print_complex): New function.
11822 (generic_value_print): Use it.
11823
11824 2020-03-13 Tom Tromey <tom@tromey.com>
11825
11826 * valprint.c (generic_val_print_float): Don't call
11827 val_print_scalar_formatted.
11828 (generic_val_print, generic_value_print): Update.
11829
11830 2020-03-13 Tom Tromey <tom@tromey.com>
11831
11832 * valprint.c (generic_value_print_char): New function
11833 (generic_value_print): Use it.
11834
11835 2020-03-13 Tom Tromey <tom@tromey.com>
11836
11837 * valprint.c (generic_value_print_int): New function.
11838 (generic_value_print): Use it.
11839
11840 2020-03-13 Tom Tromey <tom@tromey.com>
11841
11842 * valprint.c (generic_value_print_bool): New function.
11843 (generic_value_print): Use it.
11844
11845 2020-03-13 Tom Tromey <tom@tromey.com>
11846
11847 * valprint.c (generic_val_print_func): Simplify.
11848 (generic_val_print, generic_value_print): Update.
11849
11850 2020-03-13 Tom Tromey <tom@tromey.com>
11851
11852 * valprint.c (generic_val_print_flags): Remove.
11853 (generic_val_print, generic_value_print): Update.
11854 (val_print_type_code_flags): Add original_value parameter.
11855
11856 2020-03-13 Tom Tromey <tom@tromey.com>
11857
11858 * valprint.c (generic_val_print): Update.
11859 (generic_value_print): Update.
11860 * valprint.c (generic_val_print_enum): Don't call
11861 val_print_scalar_formatted.
11862
11863 2020-03-13 Tom Tromey <tom@tromey.com>
11864
11865 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11866 * valprint.c (generic_value_print_ptr): New function.
11867
11868 2020-03-13 Tom Tromey <tom@tromey.com>
11869
11870 * valprint.c (generic_value_print): Rewrite.
11871
11872 2020-03-13 Tom Tromey <tom@tromey.com>
11873
11874 * p-valprint.c (pascal_object_print_value_fields)
11875 (pascal_object_print_value): New functions.
11876
11877 2020-03-13 Tom Tromey <tom@tromey.com>
11878
11879 * p-valprint.c (pascal_value_print_inner): Rewrite.
11880
11881 2020-03-13 Tom Tromey <tom@tromey.com>
11882
11883 * f-valprint.c (f_value_print_innner): Rewrite.
11884
11885 2020-03-13 Tom Tromey <tom@tromey.com>
11886
11887 * m2-valprint.c (m2_print_unbounded_array): New overload.
11888 (m2_print_unbounded_array): Update.
11889 (m2_print_array_contents): Take a struct value.
11890 (m2_value_print_inner): Rewrite.
11891
11892 2020-03-13 Tom Tromey <tom@tromey.com>
11893
11894 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11895 (d_value_print_inner): New function.
11896 * d-lang.h (d_value_print_inner): Declare.
11897 * d-lang.c (d_language_defn): Use d_value_print_inner.
11898
11899 2020-03-13 Tom Tromey <tom@tromey.com>
11900
11901 * go-valprint.c (go_value_print_inner): New function.
11902 * go-lang.h (go_value_print_inner): Declare.
11903 * go-lang.c (go_language_defn): Use go_value_print_inner.
11904
11905 2020-03-13 Tom Tromey <tom@tromey.com>
11906
11907 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11908 API.
11909 (rust_val_print): Rewrite.
11910 (rust_value_print_inner): New function, from rust_val_print.
11911 (rust_language_defn): Use rust_value_print_inner.
11912
11913 2020-03-13 Tom Tromey <tom@tromey.com>
11914
11915 * ada-valprint.c (ada_value_print_inner): New function.
11916 * ada-lang.h (ada_value_print_inner): Declare.
11917 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11918
11919 2020-03-13 Tom Tromey <tom@tromey.com>
11920
11921 * f-valprint.c (f_value_print_innner): New function.
11922 * f-lang.h (f_value_print_innner): Declare.
11923 * f-lang.c (f_language_defn): Use f_value_print_innner.
11924
11925 2020-03-13 Tom Tromey <tom@tromey.com>
11926
11927 * p-valprint.c (pascal_value_print_inner): New function.
11928 * p-lang.h (pascal_value_print_inner): Declare.
11929 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11930
11931 2020-03-13 Tom Tromey <tom@tromey.com>
11932
11933 * m2-valprint.c (m2_value_print_inner): New function.
11934 * m2-lang.h (m2_value_print_inner): Declare.
11935 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11936
11937 2020-03-13 Tom Tromey <tom@tromey.com>
11938
11939 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11940 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11941 * c-valprint.c (c_value_print_inner): New function.
11942 * c-lang.h (c_value_print_inner): Declare.
11943 * c-lang.c (c_language_defn, cplus_language_defn)
11944 (asm_language_defn, minimal_language_defn): Use
11945 c_value_print_inner.
11946
11947 2020-03-13 Tom Tromey <tom@tromey.com>
11948
11949 * p-valprint.c (pascal_object_print_value_fields): Now static.
11950 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11951
11952 2020-03-13 Tom Tromey <tom@tromey.com>
11953
11954 * c-valprint.c (c_val_print_array): Simplify.
11955
11956 2020-03-13 Tom Tromey <tom@tromey.com>
11957
11958 * valprint.c (value_print_array_elements): New function.
11959 * valprint.h (value_print_array_elements): Declare.
11960
11961 2020-03-13 Tom Tromey <tom@tromey.com>
11962
11963 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11964 * mips-tdep.c (mips_print_register): Use
11965 value_print_scalar_formatted.
11966
11967 2020-03-13 Tom Tromey <tom@tromey.com>
11968
11969 * valprint.h (value_print_scalar_formatted): Declare.
11970 * valprint.c (value_print_scalar_formatted): New function.
11971
11972 2020-03-13 Tom Tromey <tom@tromey.com>
11973
11974 * valprint.h (generic_value_print): Declare.
11975 * valprint.c (generic_value_print): New function.
11976
11977 2020-03-13 Tom Tromey <tom@tromey.com>
11978
11979 * valprint.c (do_val_print): Call la_value_print_inner, if
11980 available.
11981 * rust-lang.c (rust_language_defn): Update.
11982 * p-lang.c (pascal_language_defn): Update.
11983 * opencl-lang.c (opencl_language_defn): Update.
11984 * objc-lang.c (objc_language_defn): Update.
11985 * m2-lang.c (m2_language_defn): Update.
11986 * language.h (struct language_defn) <la_value_print_inner>: New
11987 member.
11988 * language.c (unknown_language_defn, auto_language_defn): Update.
11989 * go-lang.c (go_language_defn): Update.
11990 * f-lang.c (f_language_defn): Update.
11991 * d-lang.c (d_language_defn): Update.
11992 * c-lang.c (c_language_defn, cplus_language_defn)
11993 (asm_language_defn, minimal_language_defn): Update.
11994 * ada-lang.c (ada_language_defn): Update.
11995
11996 2020-03-13 Tom Tromey <tom@tromey.com>
11997
11998 * c-valprint.c (c_value_print): Use common_val_print.
11999
12000 2020-03-13 Tom Tromey <tom@tromey.com>
12001
12002 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12003
12004 2020-03-13 Tom Tromey <tom@tromey.com>
12005
12006 * f-valprint.c (f77_print_array_1, f_val_print): Use
12007 common_val_print.
12008
12009 2020-03-13 Tom Tromey <tom@tromey.com>
12010
12011 * riscv-tdep.c (riscv_print_one_register_info): Use
12012 common_val_print.
12013
12014 2020-03-13 Tom Tromey <tom@tromey.com>
12015
12016 * mi/mi-main.c (output_register): Use common_val_print.
12017
12018 2020-03-13 Tom Tromey <tom@tromey.com>
12019
12020 * infcmd.c (default_print_one_register_info): Use
12021 common_val_print.
12022
12023 2020-03-13 Tom Tromey <tom@tromey.com>
12024
12025 * valprint.h (common_val_print_checked): Declare.
12026 * valprint.c (common_val_print_checked): New function.
12027 * stack.c (print_frame_arg): Use common_val_print_checked.
12028
12029 2020-03-13 Tom Tromey <tom@tromey.com>
12030
12031 * valprint.c (do_val_print): New function, from val_print.
12032 (val_print): Use do_val_print.
12033 (common_val_print): Use do_val_print.
12034
12035 2020-03-13 Tom Tromey <tom@tromey.com>
12036
12037 * valprint.c (value_print): Use scoped_value_mark.
12038
12039 2020-03-13 Tom de Vries <tdevries@suse.de>
12040
12041 PR symtab/25646
12042 * psymtab.c (partial_symtab::partial_symtab): Don't set
12043 globals_offset and statics_offset. Push element onto
12044 current_global_psymbols and current_static_psymbols stacks.
12045 (concat): New function.
12046 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12047 element from current_global_psymbols and current_static_psymbols
12048 stacks. Concat popped elements to global_psymbols and
12049 static_symbols.
12050 (add_psymbol_to_list): Use current_global_psymbols and
12051 current_static_psymbols stacks.
12052 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12053 current_static_psymbols fields.
12054
12055 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12056
12057 * corelow.c (sniff_core_bfd): Remove.
12058 (class core_target) <m_core_vec>: Remove.
12059 (core_target::core_target): Update.
12060 (core_file_fns): Remove.
12061 (deprecated_add_core_fns): Remove.
12062 (default_core_sniffer): Remove.
12063 (sniff_core_bfd): Remove.
12064 (default_check_format): Remove.
12065 (gdb_check_format): Remove.
12066 (core_target_open): Update.
12067 (core_target::get_core_register_section): Update.
12068 (get_core_registers_cb): Update.
12069 (core_target::fetch_registers): Update.
12070 * gdbcore.h (struct core_fns): Remove.
12071 (deprecated_add_core_fns): Remove.
12072 (default_core_sniffer): Remove.
12073 (default_check_format): Remove.
12074
12075 2020-03-12 Tom Tromey <tom@tromey.com>
12076
12077 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12078 CORE_ADDR.
12079 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12080
12081 2020-03-12 Tom Tromey <tom@tromey.com>
12082
12083 * remote.c (remote_target::download_tracepoint)
12084 (remote_target::enable_tracepoint)
12085 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12086 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12087 sprintf_vma.
12088
12089 2020-03-12 Tom Tromey <tom@tromey.com>
12090
12091 * symfile-mem.c: Update CORE_ADDR size assert.
12092
12093 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12094
12095 * selftest.m4: Move to gdbsupport/.
12096 * acinclude.m4: Update path to selftest.m4.
12097
12098 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12099
12100 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12101 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12102 gdbarch-selfselftests.c and selftest-arch.c.
12103 (SUBDIR_UNITTESTS_OBS): Rename to...
12104 (SELFTESTS_OBS): ... this.
12105 (COMMON_SFILES): Remove disasm-selftests.c and
12106 gdbarch-selftests.c.
12107 * configure.ac: Don't add selftest-arch.{c,o} to
12108 CONFIG_{SRCS,OBS}.
12109 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12110 preprocessor conditions.
12111
12112 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12113
12114 * configure.ac: Don't source bfd/development.sh.
12115 * selftest.m4: Modify comment.
12116 * configure: Re-generate.
12117
12118 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12119
12120 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12121 not "true" or "false".
12122 * configure: Re-generate.
12123
12124 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12125
12126 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12127 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12128 renamed to arm_nbsd_supply_gregset.
12129 (fetch_register): Update to call arm_nbsd_supply_gregset.
12130 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12131 (arm_netbsd_nat_target::fetch_registers): Update.
12132 (fetch_elfcore_registers): Removed.
12133 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12134 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12135 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12136 not require NetBSD system headers.
12137 (arm_nbsd_regset): New struct.
12138 (arm_nbsd_iterate_over_regset_sections): New function.
12139 (arm_netbsd_init_abi_common): Updated to call
12140 set_gdbarch_iterate_over_regset_sections.
12141 * arm-nbsd-tdep.h: New file.
12142
12143 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12144
12145 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12146 recursion.
12147
12148 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12149
12150 * configure: Re-generate.
12151
12152 2020-03-11 Tom Tromey <tromey@adacore.com>
12153
12154 * ada-typeprint.c (print_choices): Fix comment.
12155
12156 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12157
12158 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12159 previous item in the list, when the list has no items.
12160
12161 2020-03-11 Tom de Vries <tdevries@suse.de>
12162
12163 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12164 PROP_LOCLIST handling code.
12165
12166 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12167
12168 * buildsym-legacy.c (record_line): Pass extra parameter to
12169 record_line.
12170 * buildsym.c (buildsym_compunit::record_line): Take an extra
12171 parameter, reduce duplication in the line table, and record the
12172 is_stmt flag in the line table.
12173 * buildsym.h (buildsym_compunit::record_line): Add extra
12174 parameter.
12175 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12176 non-statement lines.
12177 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12178 this to the symtab builder.
12179 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12180 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12181 through to dwarf_record_line_1.
12182 * infrun.c (process_event_stop_test): When stepping, don't stop at
12183 a non-statement instruction, and only refresh the step info when
12184 we land in the middle of a line's range. Also add an extra
12185 comment.
12186 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12187 field.
12188 * record-btrace.c (btrace_find_line_range): Only record lines
12189 marked as is-statement.
12190 * stack.c (frame_show_address): Show the frame address if we are
12191 in a non-statement sal.
12192 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12193 (maintenance_print_one_line_table): Print a header for the is_stmt
12194 column, and include is_stmt information in the output.
12195 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12196 preference to non-statements.
12197 (find_pcs_for_symtab_line): Prefer is-statement entries.
12198 (find_line_common): Likewise.
12199 * symtab.h (struct linetable_entry): Add is_stmt field.
12200 (struct symtab_and_line): Likewise.
12201 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12202 arranging the line table.
12203
12204 2020-03-07 Tom de Vries <tdevries@suse.de>
12205
12206 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12207 DIE.
12208
12209 2020-03-07 Tom Tromey <tom@tromey.com>
12210
12211 * valops.c (value_literal_complex): Remove obsolete comment.
12212 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12213 comment.
12214
12215 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12216
12217 * infrun.h: Forward-declare thread_info.
12218 (set_step_info): Add thread_info parameter, add doc.
12219 * infrun.c (set_step_info): Add thread_info parameter, move doc
12220 to header.
12221 * infrun.c (process_event_stop_test): Pass thread to
12222 set_step_info call.
12223 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12224 set_step_info.
12225 (prepare_one_step): Add thread_info parameter, pass it to
12226 set_step_frame and prepare_one_step (recursive) call.
12227 (step_1): Pass thread to prepare_one_step call.
12228 (step_command_fsm::should_stop): Pass thread to
12229 prepare_one_step.
12230 (until_next_fsm): Pass thread to set_step_frame call.
12231 (finish_command): Pass thread to set_step_info call.
12232
12233 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12234
12235 * windows-tdep.c (windows_solib_create_inferior_hook):
12236 Check if inferior is running.
12237
12238 2020-03-06 Tom de Vries <tdevries@suse.de>
12239
12240 * NEWS: Fix "the the".
12241 * ctfread.c: Same.
12242
12243 2020-03-06 Tom de Vries <tdevries@suse.de>
12244
12245 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12246
12247 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12248
12249 * .dir-locals.el: Add a comment referencing the other copies of
12250 this file.
12251
12252 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12253
12254 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12255 psargs.
12256
12257 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12258
12259 * .gitattributes: New file.
12260
12261 2020-03-04 Tom Tromey <tom@tromey.com>
12262
12263 * symmisc.c (print_symbol_bcache_statistics)
12264 (print_objfile_statistics): Update.
12265 * symfile.c (allocate_symtab): Use intern.
12266 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12267 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12268 macro_cache>: Remove.
12269 <string_cache>: New member.
12270 (struct objfile) <intern>: New methods.
12271 * elfread.c (elf_symtab_read): Use intern.
12272 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12273 (dwarf2_compute_name, dwarf2_physname)
12274 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12275 names.
12276 (guess_partial_die_structure_name): Update.
12277 (partial_die_info::fixup): Intern name.
12278 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12279 name.
12280 (dwarf2_name): Intern name. Update.
12281 * buildsym.c (buildsym_compunit::get_macro_table): Use
12282 string_cache.
12283
12284 2020-03-04 Tom Tromey <tom@tromey.com>
12285
12286 * jit.c (bfd_open_from_target_memory): Make "target" const.
12287 * corefile.c (gnutarget): Now const.
12288 * gdbcore.h (gnutarget): Now const.
12289
12290 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12291
12292 * NEWS: Mention support for WOW64 processes.
12293 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12294 (amd64_windows_segment_register_p): Remove static.
12295 (_initialize_amd64_windows_nat): Update.
12296 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12297 * i386-windows-nat.c (context_offset): Update.
12298 (i386_mappings): Rename and remove static.
12299 (i386_windows_segment_register_p): Remove static.
12300 (_initialize_i386_windows_nat): Update.
12301 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12302 (STATUS_WX86_SINGLE_STEP): New macro.
12303 (EnumProcessModulesEx): New macro.
12304 (Wow64SuspendThread): New macro.
12305 (Wow64GetThreadContext): New macro.
12306 (Wow64SetThreadContext): New macro.
12307 (Wow64GetThreadSelectorEntry): New macro.
12308 (windows_set_context_register_offsets): Add static.
12309 (windows_set_segment_register_p): Likewise.
12310 (windows_add_thread): Adapt for WOW64 processes.
12311 (windows_fetch_one_register): Likewise.
12312 (windows_nat_target::fetch_registers): Likewise.
12313 (windows_store_one_register): Likewise.
12314 (display_selector): Likewise.
12315 (display_selectors): Likewise.
12316 (handle_exception): Likewise.
12317 (windows_continue): Likewise.
12318 (windows_nat_target::resume): Likewise.
12319 (windows_add_all_dlls): Likewise.
12320 (do_initial_windows_stuff): Likewise.
12321 (windows_nat_target::attach): Likewise.
12322 (windows_get_exec_module_filename): Likewise.
12323 (windows_nat_target::create_inferior): Likewise.
12324 (windows_xfer_siginfo): Likewise.
12325 (_initialize_loadable): Initialize Wow64SuspendThread,
12326 Wow64GetThreadContext, Wow64SetThreadContext,
12327 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12328 * windows-nat.h (windows_set_context_register_offsets):
12329 Remove declaration.
12330 (windows_set_segment_register_p): Likewise.
12331 (i386_windows_segment_register_p): Add declaration.
12332 (amd64_windows_segment_register_p): Likewise.
12333
12334 2020-03-04 Luis Machado <luis.machado@linaro.org>
12335
12336 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12337 in "info registers" for AArch64/ARM.
12338
12339 The change caused "info registers" to not print GPR's.
12340
12341 gdb/ChangeLog:
12342
12343 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12344
12345 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12346 when reg->group is empty and reggroup is not.
12347
12348 2020-03-03 Tom Tromey <tromey@adacore.com>
12349
12350 * dwarf2/frame.c (struct dwarf2_frame_cache)
12351 <checked_tailcall_bottom, entry_cfa_sp_offset,
12352 entry_cfa_sp_offset_p>: Remove members.
12353 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12354 (dwarf2_frame_prev_register): Don't call
12355 dwarf2_tailcall_sniffer_first.
12356 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12357 * frame-unwind.c (add_unwinder): New fuction.
12358 (frame_unwind_init): Use it. Add tailcall unwinder.
12359
12360 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12361 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12362
12363 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12364 value should be printed as true.
12365
12366 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12367
12368 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12369 (windows_init_abi): Set and use windows_so_ops.
12370
12371 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12372
12373 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12374 when verifying if dealing with a convenience variable.
12375
12376 2020-03-03 Luis Machado <luis.machado@linaro.org>
12377
12378 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12379
12380 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12381
12382 * infrun.c (gdbarch_supports_displaced_stepping): New.
12383 (use_displaced_stepping): Break up conditions in smaller pieces.
12384 Use gdbarch_supports_displaced_stepping.
12385 (displaced_step_prepare_throw): Use
12386 gdbarch_supports_displaced_stepping.
12387
12388 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12389
12390 * NEWS: Mention new behaviour of the history filename.
12391 * top.c (write_history_p): Add comment.
12392 (show_write_history_p): Add header comment, give a different
12393 message when history writing is on, but the history filename is
12394 empty.
12395 (history_filename): Add comment.
12396 (history_filename_empty): New function.
12397 (show_history_filename): Add header comment, give a different
12398 message when the filename is empty.
12399 (init_history): Compare history_filename against nullptr, and only
12400 read history if the filename is not empty.
12401 (set_history_filename): Add header comment, and only make
12402 non-empty filenames absolute.
12403 (init_main): Make the filename argument to 'set history filename'
12404 optional.
12405
12406 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12407
12408 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12409 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12410 (fetch_fp_register): Update.
12411 (fetch_fp_regs): Update.
12412 (store_fp_register): Update.
12413 (store_fp_regs): Update.
12414 (arm_netbsd_nat_target::read_description): New function.
12415 (fetch_elfcore_registers): Update.
12416
12417 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12418
12419 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12420 general_thread if the stop reply is missing a thread-id.
12421 (remote_target::process_stop_reply): Use the first non-exited
12422 thread if the target didn't pass a thread-id.
12423 * infrun.c (do_target_wait): Move call to
12424 switch_to_inferior_no_thread to ....
12425 (do_target_wait_1): ... here.
12426
12427 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12428
12429 * debuginfod-support.c: Include defs.h first.
12430
12431 2020-02-28 Tom de Vries <tdevries@suse.de>
12432
12433 * symfile.c (set_initial_language): Use default language for lookup.
12434
12435 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12436
12437 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12438 reader variable, pass `this` to read_cutu_die_from_dwo.
12439
12440 2020-02-27 Aaron Merey <amerey@redhat.com>
12441
12442 * source.c (open_source_file): Check for nullptr when computing
12443 srcpath.
12444
12445 2020-02-27 Tom Tromey <tromey@adacore.com>
12446
12447 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12448 member.
12449 (dwarf2_add_field): Don't update nfields.
12450 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12451
12452 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12453
12454 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12455 abs.
12456
12457 2020-02-26 Tom Tromey <tom@tromey.com>
12458
12459 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12460 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12461 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12462 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12463 per_cu_data.
12464
12465 2020-02-26 Tom Tromey <tom@tromey.com>
12466
12467 * dwarf2/index-write.c (psym_index_map): Change type.
12468 (add_address_entry_worker, write_one_signatured_type)
12469 (recursively_count_psymbols, recursively_write_psymbols)
12470 (class debug_names, psyms_seen_size, write_gdbindex)
12471 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12472
12473 2020-02-26 Aaron Merey <amerey@redhat.com>
12474
12475 * Makefile.in: Handle optional debuginfod support.
12476 * NEWS: Update.
12477 * README: Add --with-debuginfod summary.
12478 * config.in: Regenerate.
12479 * configure: Regenerate.
12480 * configure.ac: Handle optional debuginfod support.
12481 * debuginfod-support.c: debuginfod helper functions.
12482 * debuginfod-support.h: Ditto.
12483 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12484 summary.
12485 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12486 when a dwz file cannot be found.
12487 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12488 debuginfo file cannot be found.
12489 * source.c (open_source_file): Query debuginfod servers when a
12490 source file cannot be found.
12491 * top.c (print_gdb_configuration): Include
12492 --{with,without}-debuginfod in the output.
12493
12494 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12495
12496 * thread.c (thr_try_catch_cmd): Print thread name.
12497
12498 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12499
12500 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12501 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12502 dwarf2_fetch_die_type_sect_off): Move to...
12503 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12504 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12505 dwarf2_fetch_die_type_sect_off): ... here.
12506 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12507 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12508 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12509
12510 2020-02-26 Tom de Vries <tdevries@suse.de>
12511
12512 PR gdb/25603
12513 * symfile.c (set_initial_language): Exit-early if
12514 language_mode == language_mode_manual.
12515
12516 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12517
12518 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12519 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12520 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12521
12522 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12523
12524 * gdbtypes.c (create_array_type_with_stride): Handle negative
12525 array strides.
12526 * valarith.c (value_subscripted_rvalue): Likewise.
12527
12528 2020-02-25 Luis Machado <luis.machado@linaro.org>
12529
12530 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12531
12532 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12533
12534 * loc.h (dwarf2_get_die_type): Move to...
12535 * read.h (dwarf2_get_die_type): ... here.
12536 * read.c (dwarf2_get_die_type): Move doc to header.
12537
12538 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12539
12540 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12541 'gnulib/Makefile.in' to the list.
12542
12543 2020-02-24 Tom Tromey <tom@tromey.com>
12544
12545 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12546 Remove.
12547 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12548 XOBNEWVEC.
12549
12550 2020-02-24 Tom Tromey <tom@tromey.com>
12551
12552 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12553 New method.
12554 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12555 (dw2_do_instantiate_symtab, dw2_get_file_names)
12556 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12557
12558 2020-02-24 Tom Tromey <tom@tromey.com>
12559
12560 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12561 make_scoped_restore.
12562 (dwarf2_psymtab::read_symtab): Don't clear
12563 reading_partial_symbols.
12564
12565 2020-02-24 Tom de Vries <tdevries@suse.de>
12566
12567 PR gdb/25592
12568 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12569
12570 2020-02-24 Tom de Vries <tdevries@suse.de>
12571
12572 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12573 commands layout next/prev/regs.
12574
12575 2020-02-22 Tom Tromey <tom@tromey.com>
12576
12577 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12578 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12579
12580 2020-02-22 Tom Tromey <tom@tromey.com>
12581
12582 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12583
12584 2020-02-22 Tom Tromey <tom@tromey.com>
12585
12586 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12587 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12588 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12589 * tui/tui.c (_initialize_tui): Add usage text.
12590
12591 2020-02-22 Tom Tromey <tom@tromey.com>
12592
12593 * tui/tui-win.c (tui_set_focus_command)
12594 (tui_set_win_height_command): Use error_no_arg.
12595 (_initialize_tui_win): Update help text.
12596 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12597
12598 2020-02-22 Tom Tromey <tom@tromey.com>
12599
12600 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12601 * tui/tui-disasm.h (struct tui_disasm_window)
12602 <display_start_addr>: Declare.
12603 * tui/tui-source.h (struct tui_source_window)
12604 <display_start_addr>: Declare.
12605 * tui/tui-winsource.h (struct tui_source_window_base)
12606 <show_source_line, display_start_addr>: New methods.
12607 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12608 Rename and move to protected section.
12609 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12610 (tui_source_window_base::do_erase_source_content): Update.
12611 (tui_source_window_base::show_source_line): Now a method.
12612 (tui_source_window_base::show_source_content)
12613 (tui_source_window_base::tui_source_window_base)
12614 (tui_source_window_base::rerender)
12615 (tui_source_window_base::refill)
12616 (tui_source_window_base::do_scroll_horizontal)
12617 (tui_source_window_base::set_is_exec_point_at)
12618 (tui_source_window_base::update_breakpoint_info)
12619 (tui_source_window_base::update_exec_info): Update.
12620 * tui/tui-source.c (tui_source_window::set_contents)
12621 (tui_source_window::showing_source_p)
12622 (tui_source_window::do_scroll_vertical)
12623 (tui_source_window::location_matches_p)
12624 (tui_source_window::line_is_displayed): Update.
12625 (tui_source_window::display_start_addr): New method.
12626 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12627 (tui_disasm_window::do_scroll_vertical)
12628 (tui_disasm_window::location_matches_p): Update.
12629 (tui_disasm_window::display_start_addr): New method.
12630
12631 2020-02-22 Tom Tromey <tom@tromey.com>
12632
12633 * NEWS: Add entry for gdb.register_window_type.
12634 * tui/tui-layout.h (window_factory): New typedef.
12635 (tui_register_window): Declare.
12636 * tui/tui-layout.c (saved_tui_windows): New global.
12637 (tui_apply_current_layout): Use it.
12638 (tui_register_window): New function.
12639 * python/python.c (do_start_initialization): Call
12640 gdbpy_initialize_tui.
12641 (python_GdbMethods): Add "register_window_type" function.
12642 * python/python-internal.h (gdbpy_register_tui_window)
12643 (gdbpy_initialize_tui): Declare.
12644 * python/py-tui.c: New file.
12645 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12646
12647 2020-02-22 Tom Tromey <tom@tromey.com>
12648
12649 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12650
12651 2020-02-22 Tom Tromey <tom@tromey.com>
12652
12653 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12654 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12655 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12656 (tui_set_win_focus_to): Move from tui-win.c.
12657
12658 2020-02-22 Tom Tromey <tom@tromey.com>
12659
12660 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12661 functions.
12662 (known_window_types): New global.
12663 (tui_get_window_by_name): Reimplement.
12664 (initialize_known_windows): New function.
12665 (validate_window_name): Rewrite.
12666 (_initialize_tui_layout): Call initialize_known_windows.
12667
12668 2020-02-22 Tom Tromey <tom@tromey.com>
12669
12670 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12671 Remove constants.
12672 * tui/tui-winsource.h (struct tui_source_window_base)
12673 <tui_source_window_base>: Remove parameter.
12674 * tui/tui-winsource.c
12675 (tui_source_window_base::tui_source_window_base): Remove
12676 parameter.
12677 (tui_source_window_base::refill): Update.
12678 * tui/tui-stack.h (struct tui_locator_window)
12679 <tui_locator_window>: Update.
12680 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12681 Default the constructor.
12682 * tui/tui-regs.h (struct tui_data_item_window)
12683 <tui_data_item_window>: Default the constructor.
12684 (struct tui_data_window) <tui_data_window>: Likewise.
12685 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12686 Default the constructor.
12687 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12688 Default the constructor.
12689 <type>: Remove.
12690 (struct tui_win_info) <tui_win_info>: Default the constructor.
12691 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12692 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12693 Default the constructor.
12694
12695 2020-02-22 Tom Tromey <tom@tromey.com>
12696
12697 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12698 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12699 * tui/tui-win.c (tui_resize_all): Don't call
12700 tui_delete_invisible_windows.
12701 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12702 done.
12703 (tui_set_layout): Update.
12704 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12705 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12706 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12707
12708 2020-02-22 Tom Tromey <tom@tromey.com>
12709
12710 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12711 correctly.
12712
12713 2020-02-22 Tom Tromey <tom@tromey.com>
12714
12715 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12716
12717 2020-02-22 Tom Tromey <tom@tromey.com>
12718
12719 * tui/tui-winsource.h (struct tui_source_window_iterator)
12720 <inner_iterator>: New etytypedef.
12721 <tui_source_window_iterator>: Take "end" parameter.
12722 <tui_source_window_iterator>: Take iterator.
12723 <operator*, advance>: Update.
12724 <m_iter>: Change type.
12725 <m_end>: New field.
12726 (struct tui_source_windows) <begin, end>: Update.
12727 * tui/tui-layout.c (tui_windows): New global.
12728 (tui_apply_current_layout): Clear tui_windows.
12729 (tui_layout_window::apply): Update tui_windows.
12730 * tui/tui-data.h (tui_windows): Declare.
12731 (all_tui_windows): Now inline function.
12732 (class tui_window_iterator, struct all_tui_windows): Remove.
12733
12734 2020-02-22 Tom Tromey <tom@tromey.com>
12735
12736 PR tui/17850:
12737 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12738 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12739 "height" argument.
12740 (class tui_layout_window) <get_sizes>: Likewise.
12741 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12742 argument.
12743 <get_sizes>: Add "height" argument.
12744 <m_vertical>: New field.
12745 * tui/tui-layout.c (tui_layout_split::clone): Update.
12746 (tui_layout_split::get_sizes): Add "height" argument.
12747 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12748 (tui_new_layout_command): Parse "-horizontal".
12749 (_initialize_tui_layout): Update help string.
12750 (tui_layout_split::specification): Add "-horizontal" when needed.
12751 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12752 argument.
12753 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12754 New methods.
12755
12756 2020-02-22 Tom Tromey <tom@tromey.com>
12757
12758 * tui/tui-layout.h (enum tui_adjust_result): New.
12759 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12760 (class tui_layout_window) <adjust_size>: Return
12761 tui_adjust_result. Rewrite.
12762 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12763 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12764
12765 2020-02-22 Tom Tromey <tom@tromey.com>
12766
12767 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12768 parameter and return types.
12769 (class tui_layout_base) <specification>: Add "depth".
12770 (class tui_layout_window) <specification>: Add "depth".
12771 (class tui_layout_split) <specification>: Add "depth".
12772 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12773 and return types.
12774 (tui_new_layout_command): Parse sub-layouts.
12775 (_initialize_tui_layout): Update help string.
12776 (tui_layout_window::specification): Add "depth".
12777 (add_layout_command): Update.
12778
12779 2020-02-22 Tom Tromey <tom@tromey.com>
12780
12781 * NEWS: Add "tui new-layout" item.
12782 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12783 Add new-layout command to help text.
12784 (validate_window_name): New function.
12785 (tui_new_layout_command): New function.
12786 (_initialize_tui_layout): Register "new-layout".
12787 (tui_layout_window::specification): New method.
12788 (tui_layout_window::specification): New method.
12789 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12790 method.
12791 (class tui_layout_window) <specification>: New method.
12792 (class tui_layout_split) <specification>: New method.
12793
12794 2020-02-22 Tom Tromey <tom@tromey.com>
12795
12796 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12797 * tui/tui-win.c (window_name_completer): Update comment.
12798 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12799 Declare method.
12800 (class tui_layout_window) <replace_window>: Likewise.
12801 (class tui_layout_split) <replace_window>: Likewise.
12802 (tui_set_layout): Don't declare.
12803 (tui_set_initial_layout): Declare function.
12804 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12805 (asm_regs_layout): New globals.
12806 (tui_current_layout, show_layout): Remove.
12807 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12808 (find_layout, tui_apply_layout): New function.
12809 (layout_completer): Remove.
12810 (tui_next_layout): Reimplement.
12811 (tui_next_layout_command): New function.
12812 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12813 (tui_regs_layout): Reimplement.
12814 (tui_regs_layout_command): New function.
12815 (extract_display_start_addr): Rewrite.
12816 (next_layout, prev_layout): Remove.
12817 (tui_layout_window::replace_window): New method.
12818 (tui_layout_split::replace_window): New method.
12819 (destroy_layout): New function.
12820 (layout_list): New global.
12821 (add_layout_command): New function.
12822 (initialize_layouts): Update.
12823 (tui_layout_command): New function.
12824 (_initialize_tui_layout): Install "layout" commands.
12825 * tui/tui-data.h (enum tui_layout_type): Remove.
12826 (tui_current_layout): Don't declare.
12827
12828 2020-02-22 Tom Tromey <tom@tromey.com>
12829
12830 * tui/tui-regs.c (tui_reg_layout): Remove.
12831 (tui_reg_command): Use tui_regs_layout.
12832 * tui/tui-layout.h (tui_reg_command): Declare.
12833 * tui/tui-layout.c (tui_reg_command): New function.
12834
12835 2020-02-22 Tom Tromey <tom@tromey.com>
12836
12837 * tui/tui.c (tui_rl_delete_other_windows): Call
12838 tui_remove_some_windows.
12839 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12840 Declare method.
12841 (class tui_layout_window) <remove_windows>: New method.
12842 (class tui_layout_split) <remove_windows>: Declare.
12843 (tui_remove_some_windows): Declare.
12844 * tui/tui-layout.c (tui_remove_some_windows): New function.
12845 (tui_layout_split::remove_windows): New method.
12846
12847 2020-02-22 Tom Tromey <tom@tromey.com>
12848
12849 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12850 * tui/tui-layout.h (tui_next_layout): Declare.
12851 * tui/tui-layout.c (tui_next_layout): New function.
12852
12853 2020-02-22 Tom Tromey <tom@tromey.com>
12854
12855 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12856 correct coordinates.
12857
12858 2020-02-22 Tom Tromey <tom@tromey.com>
12859
12860 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12861 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12862 DATA_WIN case.
12863
12864 2020-02-22 Tom Tromey <tom@tromey.com>
12865
12866 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12867 TUI_DISASM_WIN, not tui_win_list.
12868
12869 2020-02-22 Tom Tromey <tom@tromey.com>
12870
12871 * valprint.c (generic_val_print_enum_1)
12872 (val_print_type_code_flags): Style member names.
12873 * rust-lang.c (val_print_struct, rust_print_enum)
12874 (rust_print_struct_def, rust_internal_print_type): Style member
12875 names.
12876 * p-valprint.c (pascal_object_print_value_fields): Style member
12877 names. Only call fprintf_symbol_filtered for static members.
12878 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12879 * f-valprint.c (f_val_print): Style member names.
12880 * f-typeprint.c (f_type_print_base): Style member names.
12881 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12882 call fprintf_symbol_filtered for static members.
12883 (cp_print_class_member): Style member names.
12884 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12885 member names.
12886 * ada-valprint.c (ada_print_scalar): Style enum names.
12887 (ada_val_print_enum): Likewise.
12888 * ada-typeprint.c (print_enum_type): Style enum names.
12889
12890 2020-02-21 Tom Tromey <tom@tromey.com>
12891
12892 * psympriv.h (struct partial_symtab): Update comment.
12893
12894 2020-02-21 Tom Tromey <tromey@adacore.com>
12895
12896 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12897 type is CORE_ADDR.
12898
12899 2020-02-21 Tom de Vries <tdevries@suse.de>
12900
12901 PR gdb/25534
12902 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12903 if dependencies[i]->user != NULL.
12904
12905 2020-02-21 Ali Tamur <tamur@google.com>
12906
12907 * dwarf2/read.c (dwarf2_name): Add null check.
12908
12909 2020-02-20 Tom Tromey <tom@tromey.com>
12910
12911 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12912 ">=", in binary search.
12913 (dwarf2_find_containing_comp_unit): New overload.
12914 (run_test): New self-test.
12915 (_initialize_dwarf2_read): Register new test.
12916
12917 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12918
12919 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12920 * riscv-tdep.h: Likewise.
12921 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12922 rv32-only CSR.
12923 * features/riscv/64bit-csr.xml: Regenerated.
12924
12925 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12926 Tom Tromey <tom@tromey.com>
12927
12928 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12929 of 'fputc_unfiltered'.
12930 (putchar_unfiltered): Call 'fputc_unfiltered'.
12931 (fputc_unfiltered): Call 'fputs_unfiltered'.
12932
12933 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12934
12935 * config.in: Regenerate.
12936 * configure: Regenerate.
12937 * configure.ac: Add --with-python-libdir option.
12938 * main.c: Use WITH_PYTHON_LIBDIR.
12939
12940 2020-02-19 Tom Tromey <tom@tromey.com>
12941
12942 * symtab.c (general_symbol_info::compute_and_set_names): Use
12943 obstack_strndup. Simplify call to symbol_set_demangled_name.
12944
12945 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12946
12947 * dwarf2/read.c (allocate_signatured_type_table,
12948 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12949 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12950 Remove objfile parameter, update all callers.
12951
12952 2020-02-19 Doug Evans <dje@google.com>
12953
12954 PR rust/25535
12955 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12956 rust_enum_variant calculation.
12957
12958 2020-02-19 Tom Tromey <tromey@adacore.com>
12959
12960 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12961
12962 2020-02-19 Tom Tromey <tromey@adacore.com>
12963
12964 * ada-lang.c (cache_symbol): Use obstack_strdup.
12965
12966 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12967
12968 * configure: Regenerate.
12969
12970 2020-02-19 Tom Tromey <tromey@adacore.com>
12971
12972 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12973 NULL check.
12974
12975 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12976
12977 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12978
12979 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12980
12981 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12982 if GDBSERVER is not defined.
12983 (riscv_tdesc_cache): Likewise, also store const target_desc.
12984 (STATIC_IN_GDB): Define.
12985 (riscv_create_target_description): Update declaration with
12986 STATIC_IN_GDB.
12987 (riscv_lookup_target_description): New function, only define if
12988 GDBSERVER is not defined.
12989 * arch/riscv.h (riscv_create_target_description): Declare only
12990 when GDBSERVER is defined.
12991 (riscv_lookup_target_description): New declaration when GDBSERVER
12992 is not defined.
12993 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12994 (riscv_linux_read_features): ...this, and return
12995 riscv_gdbarch_features instead of target_desc.
12996 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12997 (riscv_linux_read_description): Rename to...
12998 (riscv_linux_read_features): ...this.
12999 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13000 Update to use riscv_gdbarch_features and
13001 riscv_lookup_target_description.
13002 * riscv-tdep.c (riscv_find_default_target_description): Use
13003 riscv_lookup_target_description instead of
13004 riscv_create_target_description.
13005
13006 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13007
13008 * valprint.c (generic_val_print_enum_1): When printing a flag
13009 enum with value 0 and there is no enumerator with value 0, print
13010 just "0" instead of "(unknown: 0x0)".
13011
13012 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13013
13014 * valprint.c (generic_val_print_enum_1): Print unknown part of
13015 flag enum in hex.
13016
13017 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13018
13019 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13020 flag enums to contain duplicate enumerators.
13021 * valprint.c (generic_val_print_enum_1): Update comment.
13022
13023 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13024
13025 * dwarf2/read.c: Include "count-one-bits.h".
13026 (update_enumeration_type_from_children): If an enumerator has
13027 multiple bits set, don't treat the enumeration as a "flag enum".
13028 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13029 of flag enums have 0 or 1 bit set.
13030
13031 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13032
13033 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13034 conversion.
13035 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13036 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13037 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13038 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13039 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13040
13041 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13042
13043 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13044
13045 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13046
13047 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13048 displaced_step_closure_up.
13049 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13050 (struct displaced_step_closure_up):
13051 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13052 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13053 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13054 Likewise.
13055 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13056 * gdbarch.c, gdbarch.h: Re-generate.
13057 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13058 displaced_step_closure_up.
13059 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13060 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13061 * infrun.h (displaced_step_closure_up): New type alias.
13062 (struct displaced_step_inferior_state) <step_closure>: Change
13063 type to displaced_step_closure_up.
13064 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13065 displaced_step_closure_up.
13066 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13067
13068 2020-02-14 Tom Tromey <tom@tromey.com>
13069
13070 * minidebug.c (gnu_debug_key): New global.
13071 (find_separate_debug_file_in_section): Use it.
13072
13073 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13074
13075 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13076 std::unique_ptr.
13077 * gdbarch.c: Re-generate.
13078 * gdbarch.h: Re-generate.
13079 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13080 change.
13081 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13082 type to std::unique_ptr.
13083 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13084 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13085 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13086 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13087 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13088 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13089 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13090 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13091 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13092
13093 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13094
13095 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13096 std::unique_ptr.
13097 (displaced_step_clear): Rename to...
13098 (displaced_step_reset): ... this. Just call displaced->reset ().
13099 (displaced_step_clear_cleanup): Rename to...
13100 (displaced_step_reset_cleanup): ... this.
13101 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13102 (displaced_step_fixup): Likewise.
13103 (resume_1): Likewise.
13104 (handle_inferior_event): Restore child's memory before calling
13105 displaced_step_fixup on the parent.
13106 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13107 to std::unique_ptr.
13108 <step_closure>: Change type to std::unique_ptr.
13109
13110 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13111
13112 * arm-tdep.c: Include count-one-bits.h.
13113 (cleanup_block_store_pc): Use count_one_bits.
13114 (cleanup_block_load_pc): Use count_one_bits.
13115 (arm_copy_block_xfer): Use count_one_bits.
13116 (thumb2_copy_block_xfer): Use count_one_bits.
13117 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13118 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13119 (thumb_get_next_pcs_raw): Use count_one_bits.
13120 (arm_get_next_pcs_raw): Use count_one_bits_l.
13121 * arch/arm.c (bitcount): Remove.
13122 * arch/arm.h (bitcount): Remove.
13123
13124 2020-02-14 Tom Tromey <tromey@adacore.com>
13125
13126 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13127 Update.
13128 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13129 * dwarf2/loc.c (call_site_find_chain_1): Return
13130 unique_xmalloc_ptr.
13131 (call_site_find_chain): Likewise.
13132
13133 2020-02-14 Richard Biener <rguenther@suse.de>
13134
13135 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13136 on expression with division operators.
13137
13138 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13139
13140 * MAINTAINERS (Write After Approval): Adding myself.
13141
13142 2020-02-12 Tom Tromey <tom@tromey.com>
13143
13144 * event-loop.c (event_data, gdb_event, event_handler_func):
13145 Remove.
13146
13147 2020-02-12 Tom Tromey <tom@tromey.com>
13148
13149 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13150 (dwarf2_frame_objfile_data): Add comment.
13151 (find_comp_unit, set_comp_unit): New functions.
13152 (dwarf2_frame_find_fde): Use find_comp_unit.
13153 (dwarf2_build_frame_info): Use set_comp_unit.
13154
13155 2020-02-12 Tom Tromey <tom@tromey.com>
13156
13157 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13158 (comp_unit): Don't initialize objfile.
13159 (execute_cfa_program): Add text_offset parameter.
13160 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13161 (dwarf2_frame_cache): Update.
13162 (dwarf2_build_frame_info): Don't set "objfile" member.
13163
13164 2020-02-12 Tom Tromey <tom@tromey.com>
13165
13166 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13167 (decode_frame_entry): Likewise.
13168 (dwarf2_build_frame_info): Update.
13169
13170 2020-02-12 Tom Tromey <tom@tromey.com>
13171
13172 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13173 (decode_frame_entry_1): Use the comp_unit obstack.
13174
13175 2020-02-12 Tom Tromey <tom@tromey.com>
13176
13177 * dwarf2/frame.c (struct comp_unit): Add initializers and
13178 constructor.
13179 (dwarf2_frame_objfile_data): Store a comp_unit.
13180 (dwarf2_frame_find_fde): Update.
13181 (dwarf2_build_frame_info): Use "new".
13182
13183 2020-02-12 Tom Tromey <tom@tromey.com>
13184
13185 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13186 (dwarf2_fde_table): Typedef for std::vector.
13187 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13188 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13189 (decode_frame_entry): Update.
13190 (dwarf2_build_frame_info): Use "new".
13191
13192 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13193
13194 * arm-tdep.c (arm_gdbarch_init): Update.
13195 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13196 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13197 have_neon, is_m>: Change to bool.
13198
13199 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13200
13201 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13202
13203 2020-02-12 Tom Tromey <tom@tromey.com>
13204
13205 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13206
13207 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13208
13209 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13210 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13211
13212 2020-02-11 Tom Tromey <tom@tromey.com>
13213
13214 * psymtab.h: Update comment.
13215
13216 2020-02-11 Tom Tromey <tom@tromey.com>
13217
13218 * gdb_obstack.h (struct auto_obstack): Use
13219 DISABLE_COPY_AND_ASSIGN.
13220
13221 2020-02-11 Tom Tromey <tom@tromey.com>
13222
13223 * dwarf2/frame.h (struct objfile): Don't forward declare.
13224
13225 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13226
13227 * cris-tdep.c (cris_supply_gregset): Change signature to match
13228 what struct regset expects.
13229 (cris_regset): New struct.
13230 (fetch_core_registers): Remove.
13231 (cris_iterate_over_regset_sections): New function.
13232 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13233 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13234
13235 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13236
13237 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13238 registers.
13239
13240 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13241
13242 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13243
13244 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13245
13246 * configure: Re-generate.
13247
13248 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13249
13250 * configure: Re-generate.
13251
13252 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13253
13254 * acinclude: Update warning.m4 path.
13255 * warning.m4: Move to gdbsupport.
13256
13257 2020-02-11 Tom Tromey <tromey@adacore.com>
13258
13259 * remote.c (remote_console_output): Update.
13260 * printcmd.c (printf_command): Update.
13261 * event-loop.c (gdb_wait_for_event): Update.
13262 * linux-nat.c (sigchld_handler): Update.
13263 * remote-sim.c (gdb_os_write_stdout): Update.
13264 (gdb_os_flush_stdout): Update.
13265 (gdb_os_flush_stderr): Update.
13266 (gdb_os_write_stderr): Update.
13267 * exceptions.c (print_exception): Update.
13268 * remote-fileio.c (remote_fileio_func_read): Update.
13269 (remote_fileio_func_write): Update.
13270 * tui/tui.c (tui_enable): Update.
13271 * tui/tui-interp.c (tui_interp::init): Update.
13272 * utils.c (init_page_info): Update.
13273 (putchar_unfiltered, fputc_unfiltered): Update.
13274 (gdb_flush): Update.
13275 (emit_style_escape): Update.
13276 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13277 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13278 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13279 (stderr_file::write): Update.
13280 (stderr_file::puts): Update.
13281 * ui-file.h (ui_file_isatty, ui_file_write)
13282 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13283 (ui_file_puts): Don't declare.
13284
13285 2020-02-10 Tom de Vries <tdevries@suse.de>
13286
13287 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13288 sentinel to char *.
13289
13290 2020-02-09 Tom de Vries <tdevries@suse.de>
13291
13292 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13293 filename if it matches "<artificial>".
13294
13295 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13296
13297 * windows-tdep.c (struct enum_value_name): New struct.
13298 (create_enum): New function.
13299 (windows_get_siginfo_type): Create and use enum types.
13300
13301 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13302
13303 * NEWS: Mention $_siginfo support for Windows.
13304 * windows-nat.c (handle_exception): Set siginfo_er.
13305 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13306 (windows_xfer_siginfo): New function.
13307 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13308 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13309 (init_windows_gdbarch_data): New function.
13310 (get_windows_gdbarch_data): New function.
13311 (windows_get_siginfo_type): New function.
13312 (windows_init_abi): Register windows_get_siginfo_type.
13313 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13314
13315 2020-02-08 Tom Tromey <tom@tromey.com>
13316
13317 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13318 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13319 <keep>: Declare method.
13320 <m_keep>: Remove member.
13321 <~cutu_reader>: Remove.
13322 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13323 (cutu_reader::cutu_reader): Update.
13324 (cutu_reader::keep): Rename from ~cutu_reader.
13325 (process_psymtab_comp_unit, build_type_psymtabs_1)
13326 (process_skeletonless_type_unit, load_partial_comp_unit)
13327 (load_full_comp_unit, dwarf2_read_addr_index)
13328 (read_signatured_type): Update.
13329
13330 2020-02-08 Tom Tromey <tom@tromey.com>
13331
13332 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13333 "want_partial_unit" parameter.
13334 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13335 Inline check for DW_TAG_partial_unit.
13336 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13337
13338 2020-02-08 Tom Tromey <tom@tromey.com>
13339
13340 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13341 read.c.
13342 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13343 read.c.
13344
13345 2020-02-08 Tom Tromey <tom@tromey.com>
13346
13347 * dwarf2/read.c (read_address): Move to comp-unit.c.
13348 (dwarf2_rnglists_process, dwarf2_ranges_process)
13349 (read_attribute_value, dwarf_decode_lines_1)
13350 (var_decode_location, decode_locdesc): Update.
13351 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13352 read.c. Remove "cu" parameter.
13353 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13354 method.
13355
13356 2020-02-08 Tom Tromey <tom@tromey.com>
13357
13358 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13359 (read_indirect_line_string): Update.
13360 * dwarf2/comp-unit.c (read_offset): Remove.
13361 (read_comp_unit_head): Update.
13362 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13363 method.
13364 (read_offset): Don't declare.
13365
13366 2020-02-08 Tom Tromey <tom@tromey.com>
13367
13368 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13369 * dwarf2/read.c (struct comp_unit_head): Move to
13370 dwarf2/comp-unit.h.
13371 (enum class rcuh_kind): Move to comp-unit.h.
13372 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13373 (read_comp_unit_head, error_check_comp_unit_head)
13374 (read_and_check_comp_unit_head): Move to comp-unit.c.
13375 (read_offset, dwarf_unit_type_name): Likewise.
13376 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13377 (cutu_reader::cutu_reader, read_call_site_scope)
13378 (find_partial_die, follow_die_offset): Update.
13379 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13380
13381 2020-02-08 Tom Tromey <tom@tromey.com>
13382
13383 * dwarf2/read.c (read_offset_1): Move to leb.c.
13384 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13385 (dwarf_decode_macro_bytes): Update.
13386 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13387 * dwarf2/leb.h (read_offset): Declare.
13388
13389 2020-02-08 Tom Tromey <tom@tromey.com>
13390
13391 * dwarf2/read.c (dwarf2_section_size): Remove.
13392 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13393 Update.
13394 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13395
13396 2020-02-08 Tom Tromey <tom@tromey.com>
13397
13398 * dwarf2/read.c (read_initial_length): Move to leb.c.
13399 * dwarf2/leb.h (read_initial_length): Declare.
13400 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13401 handle_nonstd parameter.
13402 * dwarf2/frame.c (read_initial_length): Remove.
13403 (decode_frame_entry_1): Update.
13404
13405 2020-02-08 Tom Tromey <tom@tromey.com>
13406
13407 * dwarf2/loc.c (dwarf2_find_location_expression)
13408 (dwarf_evaluate_loc_desc::get_tls_address)
13409 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13410 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13411 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13412 (dwarf2_compile_property_to_c)
13413 (dwarf2_loc_desc_get_symbol_read_needs)
13414 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13415 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13416 (loclist_describe_location, loclist_tracepoint_var_ref)
13417 (loclist_generate_c_location): Update.
13418 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13419 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13420 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13421 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13422 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13423 (dwarf2_per_cu_data::addr_size)
13424 (dwarf2_per_cu_data::ref_addr_size)
13425 (dwarf2_per_cu_data::text_offset)
13426 (dwarf2_per_cu_data::addr_type): Now methods.
13427 (per_cu_header_read_in): Make per_cu "const".
13428 (dwarf2_version): Remove.
13429 (dwarf2_per_cu_data::int_type): Now a method.
13430 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13431 (set_die_type, read_array_type, read_subrange_index_type)
13432 (read_tag_string_type, read_subrange_type): Update.
13433 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13434 offset_size, ref_addr_size, text_offset, addr_type, version,
13435 objfile, int_type, addr_sized_int_type>: Declare methods.
13436
13437 2020-02-08 Tom Tromey <tom@tromey.com>
13438
13439 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13440 Move earlier.
13441
13442 2020-02-08 Tom Tromey <tom@tromey.com>
13443
13444 * dwarf2/read.h (dwarf_line_debug): Declare.
13445 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13446 * dwarf2/read.c: Move line_header code to new files.
13447 (dwarf_line_debug): No longer static.
13448 * dwarf2/line-header.c: New file.
13449 * dwarf2/line-header.h: New file.
13450
13451 2020-02-08 Tom Tromey <tom@tromey.com>
13452
13453 * dwarf2/read.c (struct line_header) <file_full_name,
13454 file_file_name>: Return unique_xmalloc_ptr.
13455 (line_header::file_file_name): Update.
13456 (line_header::file_full_name): Update.
13457 (dw2_get_file_names_reader): Update.
13458 (macro_start_file): Update.
13459
13460 2020-02-08 Tom Tromey <tom@tromey.com>
13461
13462 * dwarf2/read.c (struct line_header) <file_full_name,
13463 file_file_name>: Declare methods.
13464 (dw2_get_file_names_reader): Update.
13465 (file_file_name): Now a method.
13466 (file_full_name): Likewise.
13467 (macro_start_file): Update.
13468
13469 2020-02-08 Tom Tromey <tom@tromey.com>
13470
13471 * dwarf2/read.c (dwarf_always_disassemble)
13472 (show_dwarf_always_disassemble): Move to loc.c.
13473 (_initialize_dwarf2_read): Move "always-disassemble" registration
13474 to loc.c.
13475 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13476 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13477 static.
13478 (show_dwarf_always_disassemble): Move from read.c.
13479 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13480
13481 2020-02-08 Tom Tromey <tom@tromey.com>
13482
13483 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13484 (create_quick_file_names_table): Return htab_up.
13485 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13486 Update.
13487 * dwarf2/read.h (struct dwarf2_per_objfile)
13488 <quick_file_names_table>: Now htab_up.
13489
13490 2020-02-08 Tom Tromey <tom@tromey.com>
13491
13492 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13493
13494 2020-02-08 Tom Tromey <tom@tromey.com>
13495
13496 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13497 Rewrite.
13498 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13499 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13500 (abbrev_table::abbrev_table): No longer inline.
13501 (ABBREV_HASH_SIZE): Remove.
13502 (abbrev_table::m_abbrevs): Now an htab_up.
13503
13504 2020-02-08 Tom Tromey <tom@tromey.com>
13505
13506 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13507 (cutu_reader): Update.
13508 (build_type_psymtabs_1): Update.
13509 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13510 (abbrev_table::alloc_abbrev): Update.
13511 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13512 (abbrev_table::read): New static method, renamed from
13513 abbrev_table_read_table.
13514 (abbrev_table::alloc_abbrev)
13515 (abbrev_table::add_abbrev): Now private.
13516 (abbrev_table::abbrev_table): Now private.
13517 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13518
13519 2020-02-08 Tom Tromey <tom@tromey.com>
13520
13521 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13522 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13523 htab_up.
13524
13525 2020-02-08 Tom Tromey <tom@tromey.com>
13526
13527 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13528 htab_up.
13529 (lookup_dwo_unit_in_dwp): Update.
13530 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13531 on obstack.
13532
13533 2020-02-08 Tom Tromey <tom@tromey.com>
13534
13535 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13536 obstack.
13537
13538 2020-02-08 Tom Tromey <tom@tromey.com>
13539
13540 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13541 line_header_hash.
13542 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13543 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13544 Change type to htab_up.
13545
13546 2020-02-08 Tom Tromey <tom@tromey.com>
13547
13548 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13549 htab_up. Don't allocate on obstack.
13550 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13551 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13552 Change type to htab_up.
13553
13554 2020-02-08 Tom Tromey <tom@tromey.com>
13555
13556 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13557 Change type to htab_up.
13558 * dwarf2/read.c (create_signatured_type_table_from_index)
13559 (create_signatured_type_table_from_debug_names)
13560 (create_all_type_units, add_type_unit)
13561 (lookup_dwo_signatured_type, lookup_signatured_type)
13562 (process_skeletonless_type_unit): Update.
13563 (create_debug_type_hash_table, create_debug_types_hash_table):
13564 Change type of types_htab.
13565 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13566 htab_up. Don't allocate on obstack.
13567 (create_cus_hash_table): Change type of cus_htab parameter.
13568 (struct dwo_file) <cus, tus>: Now htab_up.
13569 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13570 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13571 (queue_and_load_all_dwo_tus): Update.
13572 * dwarf2/index-write.c (write_gdbindex): Update.
13573 (write_debug_names): Update.
13574
13575 2020-02-08 Tom Tromey <tom@tromey.com>
13576
13577 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13578 dwarf2/read.c. Remove "next" member. Add constructor ntad
13579 destructor.
13580 (struct dwarf2_per_objfile) <queue>: New member.
13581 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13582 dwarf2/read.h.
13583 (dwarf2_queue, dwarf2_queue_tail): Remove.
13584 (class dwarf2_queue_guard): Add parameter to constructor. Use
13585 DISABLE_COPY_AND_ASSIGN.
13586 <m_per_objfile>: New member.
13587 <~dwarf2_queue_guard>: Rewrite.
13588 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13589 Update.
13590 (~dwarf2_queue_item): New.
13591
13592 2020-02-08 Tom Tromey <tom@tromey.com>
13593
13594 * dwarf2/read.c (struct die_info) <has_children>: New member.
13595 (dw2_get_file_names_reader): Remove has_children.
13596 (dw2_get_file_names): Update.
13597 (read_cutu_die_from_dwo): Remove has_children.
13598 (cutu_reader::init_tu_and_read_dwo_dies)
13599 (cutu_reader::cutu_reader): Update.
13600 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13601 Remove has_children.
13602 (build_type_psymtabs_1, process_skeletonless_type_unit)
13603 (load_partial_comp_unit, load_full_comp_unit): Update.
13604 (create_dwo_cu_reader): Remove has_children.
13605 (create_cus_hash_table, read_die_and_children): Update.
13606 (read_full_die_1,read_full_die): Remove has_children.
13607 (read_signatured_type): Update.
13608 (class cutu_reader) <has_children>: Remove.
13609
13610 2020-02-08 Tom Tromey <tom@tromey.com>
13611
13612 * dwarf2/expr.c: Rename from dwarf2expr.c.
13613 * dwarf2/expr.h: Rename from dwarf2expr.h.
13614 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13615 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13616 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13617 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13618 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13619 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13620 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13621 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13622 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13623 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13624 * dwarf2/loc.c: Rename from dwarf2loc.c.
13625 * dwarf2/loc.h: Rename from dwarf2loc.h.
13626 * dwarf2/read.c: Rename from dwarf2read.c.
13627 * dwarf2/read.h: Rename from dwarf2read.h.
13628 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13629 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13630 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13631 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13632 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13633 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13634 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13635 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13636 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13637 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13638 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13639 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13640 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13641 Update.
13642 * Makefile.in (COMMON_SFILES): Update.
13643 (HFILES_NO_SRCDIR): Update.
13644
13645 2020-02-08 Tom Tromey <tom@tromey.com>
13646
13647 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13648 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13649
13650 2020-02-08 Tom Tromey <tom@tromey.com>
13651
13652 * dwarf2read.h (struct die_info): Don't declare.
13653
13654 2020-02-08 Tom Tromey <tom@tromey.com>
13655
13656 * dwarf2read.h (die_info_ptr): Remove typedef.
13657
13658 2020-02-08 Tom Tromey <tom@tromey.com>
13659
13660 * dwarf2read.c (read_call_site_scope)
13661 (handle_data_member_location, dwarf2_add_member_fn)
13662 (mark_common_block_symbol_computed, read_common_block)
13663 (attr_to_dynamic_prop, partial_die_info::read)
13664 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13665 (dwarf2_symbol_mark_computed, set_die_type): Update.
13666 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13667 method.
13668 (attr_form_is_block): Don't declare.
13669 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13670
13671 2020-02-08 Tom Tromey <tom@tromey.com>
13672
13673 * dwarf2read.c (dwarf2_find_base_address, )
13674 (read_call_site_scope, rust_containing_type)
13675 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13676 (handle_data_member_location, dwarf2_add_member_fn)
13677 (get_alignment, read_structure_type, process_structure_scope)
13678 (mark_common_block_symbol_computed, read_common_block)
13679 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13680 (partial_die_info::read, read_attribute_value, new_symbol)
13681 (lookup_die_type, dwarf2_get_ref_die_offset)
13682 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13683 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13684 (dwarf2_symbol_mark_computed): Update.
13685 * dwarf2/attribute.h (struct attribute) <value_as_address,
13686 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13687 methods.
13688 (value_as_address, attr_form_is_section_offset)
13689 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13690 * dwarf2/attribute.c (attribute::value_as_address)
13691 (attribute::form_is_section_offset, attribute::form_is_constant)
13692 (attribute::form_is_ref): Now methods.
13693
13694 2020-02-08 Tom Tromey <tom@tromey.com>
13695
13696 * dwarf2read.c (struct attribute, DW_STRING)
13697 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13698 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13699 (attr_form_is_block, attr_form_is_section_offset)
13700 (attr_form_is_constant, attr_form_is_ref): Move.
13701 * dwarf2/attribute.h: New file.
13702 * dwarf2/attribute.c: New file, from dwarf2read.c.
13703 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13704
13705 2020-02-08 Tom Tromey <tom@tromey.com>
13706
13707 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13708 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13709 Move.
13710 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13711 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13712 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13713 abbrev.c.
13714 * dwarf2/abbrev.h: New file.
13715 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13716 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13717
13718 2020-02-08 Tom Tromey <tom@tromey.com>
13719
13720 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13721 (dwarf2_section_size, dwarf2_get_section_info)
13722 (create_signatured_type_table_from_debug_names)
13723 (create_addrmap_from_aranges, read_debug_names_from_section)
13724 (get_gdb_index_contents_from_section, read_comp_unit_head)
13725 (error_check_comp_unit_head, read_abbrev_offset)
13726 (create_debug_type_hash_table, init_cu_die_reader)
13727 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13728 (read_comp_units_from_section, create_cus_hash_table)
13729 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13730 (create_dwp_v2_section, dwarf2_rnglists_process)
13731 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13732 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13733 (read_indirect_string_from_dwz, read_addr_index_1)
13734 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13735 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13736 (fill_in_loclist_baton): Update.
13737 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13738 get_containing_section, get_bfd_owner, get_bfd_section,
13739 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13740 (dwarf2_read_section, get_section_name, get_section_file_name)
13741 (get_containing_section, get_section_bfd_owner)
13742 (get_section_bfd_section, get_section_name, get_section_file_name)
13743 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13744 declare.
13745 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13746 (dwarf2_section_info::get_bfd_owner)
13747 (dwarf2_section_info::get_bfd_section)
13748 (dwarf2_section_info::get_name)
13749 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13750 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13751 (dwarf2_section_info::read): Now methods.
13752 * dwarf-index-write.c (class debug_names): Update.
13753
13754 2020-02-08 Tom Tromey <tom@tromey.com>
13755
13756 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13757 Move to dwarf2/section.h.
13758 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13759 (get_section_bfd_section, get_section_name)
13760 (get_section_file_name, get_section_id, get_section_flags)
13761 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13762 dwarf2/section.c.
13763 * dwarf2/section.h: New file.
13764 * dwarf2/section.c: New file, from dwarf2read.c.
13765 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13766
13767 2020-02-08 Tom Tromey <tom@tromey.com>
13768
13769 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13770 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13771 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13772 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13773 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13774 * dwarf2/leb.h: New file, from dwarf2read.c.
13775 * dwarf2/leb.c: New file, from dwarf2read.c.
13776 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13777 Remove.
13778 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13779 (COMMON_SFILES): Add dwarf2/leb.c.
13780
13781 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13782
13783 GDB 9.1 released.
13784
13785 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13786
13787 PR gdb/25190:
13788 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13789 * gdb/remote.c (remote_console_output): Update.
13790 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13791 (ui_file_puts): ...this.
13792 * gdb/ui-file.h (ui_file_puts): Add declaration.
13793 * gdb/utils.c (emit_style_escape): Update.
13794 (flush_wrap_buffer): Update.
13795 (fputs_maybe_filtered): Update.
13796 (fputs_unfiltered): Add function.
13797
13798 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13799
13800 * gdb/event-loop.c (gdb_wait_for_event): Update.
13801 * gdb/printcmd.c (printf_command): Update.
13802 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13803 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13804 (gdb_os_flush_stderr): Update.
13805 * gdb/remote.c (remote_console_output): Update.
13806 * gdb/ui-file.c (gdb_flush): Rename to...
13807 (ui_file_flush): ...this.
13808 (stderr_file::write): Update.
13809 (stderr_file::puts): Update.
13810 * gdb/ui-file.h (gdb_flush): Rename to...
13811 (ui_file_flush): ...this.
13812 * gdb/utils.c (gdb_flush): Add function.
13813 * gdb/utils.h (gdb_flush): Add declaration.
13814
13815 2020-02-07 Tom Tromey <tromey@adacore.com>
13816
13817 PR breakpoints/24915:
13818 * source.c (find_and_open_source): Do not check basenames_may_differ.
13819
13820 2020-02-07 Tom Tromey <tom@tromey.com>
13821
13822 * README: Update gdbserver documentation.
13823 * gdbserver: Move to top level.
13824 * configure.tgt (build_gdbserver): Remove.
13825 * configure.ac: Remove --enable-gdbserver.
13826 * configure: Rebuild.
13827 * Makefile.in (distclean): Don't mention gdbserver.
13828
13829 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13830
13831 * source-cache.c (source_cache::ensure): Surround
13832 get_plain_source_lines with a try/catch.
13833 (source_cache::get_line_charpos): Get rid of try/catch
13834 and only check for the return value of "ensure".
13835 * tui/tui-source.c (tui_source_window::set_contents):
13836 Simplify "nlines" calculation.
13837
13838 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13839
13840 * MAINTAINERS (Write After Approval): Add myself.
13841
13842 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13843
13844 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13845 function call.
13846
13847 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13848
13849 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13850
13851 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13852
13853 * nat/riscv-linux-tdesc.h: New file.
13854 * nat/riscv-linux-tdesc.c: New file, taking code from...
13855 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13856 ... here.
13857 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13858 NATDEPFILES.
13859
13860 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13861
13862 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13863 we don't set the fake simulator ptid to the null_ptid.
13864
13865 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13866
13867 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13868 * gdbthread.h (class thread_info) <resumed>: Likewise.
13869 * infrun.c (resume_1): Likewise.
13870 (proceed): Likewise.
13871 (infrun_thread_stop_requested): Likewise.
13872 (stop_all_threads): Likewise.
13873 (handle_inferior_event): Likewise.
13874 (restart_threads): Likewise.
13875 (finish_step_over): Likewise.
13876 (keep_going_stepped_thread): Likewise.
13877 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13878 (linux_handle_extended_wait): Likewise.
13879 * record-btrace.c (get_thread_current_frame_id): Likewise.
13880 * record-full.c (record_full_wait_1): Likewise.
13881 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13882 * target.c (target_resume): Likewise.
13883 * thread.c (set_running_thread): Likewise.
13884
13885 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13886
13887 * f-valprint.c (f77_print_array_1): Changed datatype of index
13888 variable to LONGEST from int to enable it to contain bound
13889 values correctly.
13890
13891 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13892
13893 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13894 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13895 offsets according to FLEN determined.
13896 (riscv_linux_nat_target::read_description): Determine FLEN
13897 dynamically.
13898 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13899 according to FLEN determined.
13900 (riscv_linux_nat_target::store_registers): Likewise.
13901
13902 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13903
13904 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13905 when reg->group is empty and reggroup is not.
13906
13907 2020-01-31 Tom Tromey <tromey@adacore.com>
13908
13909 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13910 Call beneath target's mourn_inferior after unpushing.
13911
13912 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13913
13914 PR tui/9765
13915 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13916 have enough lines to fill the screen, still return the lowest
13917 address we found.
13918
13919 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13920
13921 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13922 '-', '<', and '>' commands.
13923
13924 2020-01-29 Pedro Alves <palves@redhat.com>
13925 Sergio Durigan Junior <sergiodj@redhat.com>
13926
13927 * infcmd.c (construct_inferior_arguments): Assert that
13928 'argc' is greater than 0.
13929
13930 2020-01-29 Luis Machado <luis.machado@linaro.org>
13931
13932 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13933 (BRK_INSN_MASK): Define to 0xd4200000.
13934 (aarch64_program_breakpoint_here_p): New function.
13935 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13936 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13937 breakpoint.c.
13938 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13939 breakpoint.h
13940 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13941 call gdbarch_program_breakpoint_here_p.
13942 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13943 default_program_breakpoint_here_p, changed return type to bool and
13944 simplified.
13945 * breakpoint.h (program_breakpoint_here): Moved prototype to
13946 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13947 return type to bool.
13948 * gdbarch.c: Regenerate.
13949 * gdbarch.h: Regenerate.
13950 * gdbarch.sh (program_breakpoint_here_p): New method.
13951 * infrun.c (handle_signal_stop): Call
13952 gdbarch_program_breakpoint_here_p.
13953
13954 2020-01-26 Tom Tromey <tom@tromey.com>
13955
13956 * ctfread.c (struct ctf_fp_info): Reindent.
13957 (_initialize_ctfread): Remove.
13958
13959 2020-01-26 Tom Tromey <tom@tromey.com>
13960
13961 * psymtab.c (partial_map_expand_apply)
13962 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13963 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13964 (psym_print_stats, psym_expand_symtabs_for_function)
13965 (psym_map_symbol_filenames, psym_map_matching_symbols)
13966 (psym_expand_symtabs_matching)
13967 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13968 (maintenance_check_psymtabs): Use new methods.
13969 * psympriv.h (struct partial_symtab) <readin_p,
13970 get_compunit_symtab>: New methods.
13971 <readin, compunit_symtab>: Remove members.
13972 (struct standard_psymtab): New.
13973 (struct legacy_psymtab): Derive from standard_psymtab.
13974 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13975 standard_psymtab.
13976 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13977
13978 2020-01-26 Tom Tromey <tom@tromey.com>
13979
13980 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13981 read_dependencies. Add assert.
13982 * psymtab.c (partial_symtab::read_dependencies): New method.
13983 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13984 method.
13985 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13986 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13987 read_dependencies.
13988 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13989 Add assert.
13990
13991 2020-01-26 Tom Tromey <tom@tromey.com>
13992
13993 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13994 Call expand_psymtab.
13995 (xcoff_read_symtab): Call expand_psymtab.
13996 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13997 legacy_expand_psymtab.
13998 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13999 method.
14000 (struct legacy_psymtab) <expand_psymtab>: Implement.
14001 <legacy_expand_psymtab>: New member.
14002 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14003 (parse_partial_symbols): Set legacy_expand_psymtab.
14004 (psymtab_to_symtab_1): Change argument order. Call
14005 expand_psymtab.
14006 (new_psymtab): Set legacy_expand_psymtab.
14007 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14008 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14009 expand_psymtab.
14010 (dwarf2_psymtab::expand_psymtab): Rename from
14011 psymtab_to_symtab_1. Call expand_psymtab.
14012 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14013 (dbx_end_psymtab): Likewise.
14014 (dbx_psymtab_to_symtab_1): Change argument order. Call
14015 expand_psymtab.
14016 (dbx_read_symtab): Call expand_psymtab.
14017 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14018 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14019 (ctf_psymtab::read_symtab): Call expand_psymtab.
14020
14021 2020-01-26 Tom Tromey <tom@tromey.com>
14022
14023 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14024 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14025 messages.
14026 * mdebugread.c (mdebug_read_symtab): Remove prints.
14027 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14028 assert.
14029 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14030
14031 2020-01-26 Tom Tromey <tom@tromey.com>
14032
14033 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14034 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14035 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14036 legacy_symtab.
14037 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14038 * psymtab.c (psymtab_to_symtab): Call method.
14039 (dump_psymtab): Update.
14040 * psympriv.h (struct partial_symtab): Add virtual destructor.
14041 <read_symtab>: New method.
14042 (struct legacy_symtab): New.
14043 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14044 (struct pst_map) <pst>: Now a legacy_psymtab.
14045 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14046 (new_psymtab): Use legacy_psymtab.
14047 * dwarf2read.h (struct dwarf2_psymtab): New.
14048 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14049 * dwarf2read.c (dwarf2_create_include_psymtab)
14050 (dwarf2_build_include_psymtabs, create_type_unit_group)
14051 (create_partial_symtab, process_psymtab_comp_unit_reader)
14052 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14053 (set_partial_user): Use dwarf2_psymtab.
14054 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14055 (psymtab_to_symtab_1, process_full_comp_unit)
14056 (process_full_type_unit, dwarf2_ranges_read)
14057 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14058 (dwarf_decode_lines): Use dwarf2_psymtab.
14059 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14060 (add_address_entry_worker, write_one_signatured_type)
14061 (recursively_count_psymbols, recursively_write_psymbols)
14062 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14063 (write_debug_names): Likewise.
14064 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14065 <pst>: Now a legacy_psymtab.
14066 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14067 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14068 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14069 * ctfread.c (struct ctf_psymtab): New.
14070 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14071 ctf_psymtab.
14072 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14073 (create_partial_symtab): Return a ctf_psymtab.
14074 (scan_partial_symbols): Update.
14075
14076 2020-01-26 Tom Tromey <tom@tromey.com>
14077
14078 * xcoffread.c (xcoff_start_psymtab): Use new.
14079 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14080 renamed from start_psymtab_common.
14081 * psympriv.h (struct partial_symtab): Add new constructor.
14082 (start_psymtab_common): Don't declare.
14083 * mdebugread.c (parse_partial_symbols): Use new.
14084 * dwarf2read.c (create_partial_symtab): Use new.
14085 * dbxread.c (start_psymtab): Use new.
14086 * ctfread.c (create_partial_symtab): Use new.
14087
14088 2020-01-26 Tom Tromey <tom@tromey.com>
14089
14090 * xcoffread.c (xcoff_end_psymtab): Use new.
14091 * psymtab.c (start_psymtab_common): Use new.
14092 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14093 Update.
14094 * psympriv.h (struct partial_symtab): Add parameters to
14095 constructor. Don't inline.
14096 (allocate_psymtab): Don't declare.
14097 * mdebugread.c (new_psymtab): Use new.
14098 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14099 * dbxread.c (dbx_end_psymtab): Use new.
14100
14101 2020-01-26 Tom Tromey <tom@tromey.com>
14102
14103 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14104 allocate_psymtab. Update documentation.
14105 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14106 allocate_psymtab. Do not use new.
14107 (allocate_psymtab): Use new. Update.
14108
14109 2020-01-26 Tom Tromey <tom@tromey.com>
14110
14111 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14112 * psymtab.c (psym_print_stats): Update.
14113 * psympriv.h (struct partial_symtab) <readin,
14114 psymtabs_addrmap_supported, anonymous>: Now bool.
14115 * mdebugread.c (psymtab_to_symtab_1): Update.
14116 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14117 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14118 (process_full_comp_unit, process_full_type_unit): Update.
14119 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14120 * ctfread.c (psymtab_to_symtab): Update.
14121
14122 2020-01-26 Tom Tromey <tom@tromey.com>
14123
14124 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14125 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14126 * psymtab.c (psymtab_storage): Delete psymtabs.
14127 (psymtab_storage::allocate_psymtab): Use new.
14128 (psymtab_storage::discard_psymtab): Use delete.
14129 * psympriv.h (struct partial_symtab): Add constructor and
14130 initializers.
14131
14132 2020-01-26 Tom Tromey <tom@tromey.com>
14133
14134 * machoread.c: Do not include psympriv.h.
14135
14136 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14137
14138 * NEWS: Mention the new option and the set/show commands.
14139
14140 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14141
14142 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14143 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14144 (validate_exec_file): New variables, enums, functions.
14145 (exec_file_locate_attach, print_section_info): Style the filenames.
14146 (_initialize_exec): Install show_exec_file_mismatch_command and
14147 set_exec_file_mismatch_command.
14148 * gdbcore.h (validate_exec_file): Declare.
14149 * infcmd.c (attach_command): Call validate_exec_file.
14150 * remote.c ( remote_target::remote_add_inferior): Likewise.
14151
14152 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14153
14154 * frame.c (find_frame_sal): Move call to get_next_frame into more
14155 inner scope.
14156 * inline-frame.c (inilne_state) <inline_state>: Update argument
14157 types.
14158 (inilne_state) <skipped_symbol>: Rename to...
14159 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14160 (skip_inline_frames): Build vector of skipped symbols and use this
14161 to reate the inline_state.
14162 (inline_skipped_symbol): Add a comment and some assertions, fetch
14163 skipped symbol from the list.
14164
14165 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14166
14167 * buildsym.c (lte_is_less_than): Delete.
14168 (buildsym_compunit::end_symtab_with_blockvector): Create local
14169 lambda function to sort line table entries, and use
14170 std::stable_sort instead of std::sort.
14171 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14172 markers when looking for a previous line.
14173
14174 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14175
14176 * dwarf2read.c (lnp_state_machine::record_line): Include
14177 end_sequence parameter in debug print out. Record the line if we
14178 are at an end_sequence marker even if it's not the start of a
14179 statement.
14180 * symmisc.c (maintenance_print_one_line_table): Print end of
14181 sequence markers with 'END' not '0'.
14182
14183 2020-01-24 Pedro Alves <palves@redhat.com>
14184
14185 PR gdb/25410
14186 * thread.c (scoped_restore_current_thread::restore): Use
14187 switch_to_inferior_no_thread.
14188 * exec.c: Include "progspace-and-thread.h".
14189 (add_target_sections, remove_target_sections):
14190 scoped_restore_current_pspace_and_thread instead of
14191 scoped_restore_current_thread.
14192 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14193 and aspace to the inferior before calling clone_program_space.
14194 Remove stale comment.
14195
14196 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14197
14198 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14199 (arm_netbsd_nat_target::fetch_registers): ...this.
14200 (arm_nbsd_nat_target::store_registers): Rename to...
14201 (arm_netbsd_nat_target::store_registers): ...this.
14202
14203 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14204
14205 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14206 register_t.
14207
14208 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14209
14210 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14211 Update comment.
14212 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14213 Likewise.
14214 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14215 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14216 the correct replacement (iterate_over_regset_sections).
14217 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14218 Update comment.
14219
14220 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14221
14222 PR gdb/23718
14223 * gdb/python/python.c (execute_gdb_command): Call
14224 async_enable_stdin in catch block.
14225
14226 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14227
14228 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14229 SWITCH_THRU_ALL_UIS.
14230
14231 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14232
14233 PR tui/9765
14234 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14235 comment, add extra parameter, and update to store previous symbol
14236 when appropriate.
14237 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14238 add extra parameter.
14239 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14240 remove unneeded parameter, add try/catch around gdb_print_insn,
14241 rewrite to add items to asm_lines vector.
14242 (tui_find_backward_disassembly_start_address): New function.
14243 (tui_find_disassembly_address): Updated throughout.
14244 (tui_disasm_window::set_contents): Update for changes to
14245 tui_disassemble.
14246 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14247 number of lines to scroll.
14248
14249 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14250
14251 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14252 (SECT_OFF_DATA): Likewise.
14253 (SECT_OFF_RODATA): Likewise.
14254 (SECT_OFF_TEXT): Likewise.
14255 (SECT_OFF_BSS): Likewise.
14256 (struct objfile) <text_section_offset, data_section_offset>: New
14257 methods.
14258 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14259 objfile::text_section_offset.
14260 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14261 * coffread.c (coff_symtab_read): Likewise.
14262 (enter_linenos): Likewise.
14263 (process_coff_symbol): Likewise.
14264 * ctfread.c (get_objfile_text_range): Likewise.
14265 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14266 Use objfile::data_section_offset.
14267 * dwarf2-frame.c (execute_cfa_program): Use
14268 objfile::text_section_offset.
14269 (dwarf2_frame_find_fde): Likewise.
14270 * dwarf2read.c (create_addrmap_from_index): Likewise.
14271 (create_addrmap_from_aranges): Likewise.
14272 (dw2_find_pc_sect_compunit_symtab): Likewise.
14273 (process_psymtab_comp_unit_reader): Likewise.
14274 (add_partial_symbol): Likewise.
14275 (add_partial_subprogram): Likewise.
14276 (process_full_comp_unit): Likewise.
14277 (read_file_scope): Likewise.
14278 (read_func_scope): Likewise.
14279 (read_lexical_block_scope): Likewise.
14280 (read_call_site_scope): Likewise.
14281 (dwarf2_rnglists_process): Likewise.
14282 (dwarf2_ranges_process): Likewise.
14283 (dwarf2_ranges_read): Likewise.
14284 (dwarf_decode_lines_1): Likewise.
14285 (new_symbol): Likewise.
14286 (dwarf2_fetch_die_loc_sect_off): Likewise.
14287 (dwarf2_per_cu_text_offset): Likewise.
14288 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14289 * hppa-tdep.c (read_unwind_info): Likewise.
14290 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14291 * psympriv.h (struct partial_symtab): Likewise.
14292 * psymtab.c (find_pc_sect_psymtab): Likewise.
14293 * solib-svr4.c (enable_break): Likewise.
14294 * stap-probe.c (relocate_address): Use
14295 objfile::data_section_offset.
14296 * xcoffread.c (enter_line_range): Use
14297 objfile::text_section_offset.
14298 (read_xcoff_symtab): Likewise.
14299
14300 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14301
14302 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14303 declaration to narrower scopes.
14304
14305 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14306
14307 * darwin-nat.h (struct darwin_exception_msg, enum
14308 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14309 Move up.
14310 (class darwin_nat_target) <wait_1, check_new_threads,
14311 decode_exception_message, decode_message, stop_inferior,
14312 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14313 * darwin-nat.c (darwin_check_new_threads): Rename to...
14314 (darwin_nat_target::check_new_threads): ... this.
14315 (darwin_suspend_inferior_it): Remove.
14316 (darwin_decode_exception_message): Rename to...
14317 (darwin_nat_target::decode_exception_message): ... this.
14318 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14319 (darwin_decode_message): Rename to...
14320 (darwin_nat_target::decode_message): ... this.
14321 (cancel_breakpoint): Rename to...
14322 (darwin_nat_target::cancel_breakpoint): ... this.
14323 (darwin_wait): Rename to...
14324 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14325 instead of iterate_over_inferiors.
14326 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14327 (darwin_stop_inferior): Rename to...
14328 (darwin_nat_target::stop_inferior): ... this.
14329 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14330 (darwin_init_thread_list): Rename to...
14331 (darwin_nat_target::init_thread_list): ... this.
14332 (darwin_ptrace_him): Rename to...
14333 (darwin_nat_target::ptrace_him): ... this.
14334 (darwin_nat_target::create_inferior): Pass lambda function to
14335 fork_inferior.
14336 (darwin_nat_target::detach): Call stop_inferior instead of
14337 darwin_stop_inferior.
14338 * fork-inferior.h (fork_inferior): Change init_trace_fun
14339 parameter to gdb::function_view.
14340 * fork-inferior.c (fork_inferior): Likewise.
14341
14342 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14343
14344 * i386-cygwin-tdep.c (core_process_module_section): Update.
14345 * windows-nat.c (struct lm_info_windows): Add text_offset.
14346 (windows_xfer_shared_libraries): Update.
14347 * windows-tdep.c (windows_xfer_shared_library):
14348 Add text_offset_cached argument.
14349 * windows-tdep.h (windows_xfer_shared_library): Update.
14350
14351 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14352
14353 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14354
14355 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14356
14357 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14358 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14359 replace with range-based for.
14360 (gdbsim_interrupt_inferior): Remove.
14361 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14362 with a range-based for. Inline code from
14363 gdbsim_interrupt_inferior.
14364
14365 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14366
14367 * infrun.c (proceed): Fix indentation.
14368
14369 2020-01-21 Tom Tromey <tromey@adacore.com>
14370
14371 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14372 * python/python.c (python_extension_ops): Update.
14373 (gdbpy_colorize): New function.
14374 * python/lib/gdb/__init__.py (colorize): New function.
14375 * extension.h (ext_lang_colorize): Declare.
14376 * extension.c (ext_lang_colorize): New function.
14377 * extension-priv.h (struct extension_language_ops) <colorize>: New
14378 member.
14379 * cli/cli-style.c (_initialize_cli_style): Update help text.
14380
14381 2020-01-21 Luis Machado <luis.machado@linaro.org>
14382
14383 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14384 <cond>: Change type to bool.
14385 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14386 (aarch64_displaced_step_cb): Likewise.
14387 (aarch64_displaced_step_tb): Likewise.
14388
14389 2020-01-21 Luis Machado <luis.machado@linaro.org>
14390
14391 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14392 output.
14393
14394 2020-01-21 Luis Machado <luis.machado@linaro.org>
14395
14396 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14397 <pc_adjust>: Adjust the documentation.
14398 (aarch64_displaced_step_fixup): Check if PC really moved before
14399 adjusting it.
14400
14401 2020-01-19 Tom Tromey <tom@tromey.com>
14402
14403 * disasm.c (~gdb_disassembler): New destructor.
14404 (gdb_buffered_insn_length): Call disassemble_free_target.
14405 * disasm.h (class gdb_disassembler): Declare destructor. Use
14406 DISABLE_COPY_AND_ASSIGN.
14407
14408 2020-01-19 Tom Tromey <tom@tromey.com>
14409
14410 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14411 (die_reader_func_ftype): Remove.
14412 (cutu_reader): New class.
14413 (dw2_get_file_names_reader): Remove "data" parameter.
14414 (dw2_get_file_names): Use cutu_reader.
14415 (create_debug_type_hash_table): Update.
14416 (read_cutu_die_from_dwo): Update comment.
14417 (lookup_dwo_unit): Add dwo_name parameter.
14418 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14419 die_reader_func_ftype and data parameters.
14420 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14421 Remove die_reader_func_ftype and data parameters.
14422 (~cutu_reader): New; from init_cutu_and_read_dies.
14423 (cutu_reader::cutu_reader): Rename from
14424 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14425 and data parameters.
14426 (init_cutu_and_read_dies_simple): Remove.
14427 (struct process_psymtab_comp_unit_data): Remove.
14428 (process_psymtab_comp_unit_reader): Remove data parameter; add
14429 want_partial_unit and pretend_language parameters.
14430 (process_psymtab_comp_unit): Use cutu_reader.
14431 (build_type_psymtabs_reader): Remove data parameter.
14432 (build_type_psymtabs_1): Use cutu_reader.
14433 (process_skeletonless_type_unit): Likewise.
14434 (load_partial_comp_unit_reader): Remove.
14435 (load_partial_comp_unit): Use cutu_reader.
14436 (load_full_comp_unit_reader): Remove.
14437 (load_full_comp_unit): Use cutu_reader.
14438 (struct create_dwo_cu_data): Remove.
14439 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14440 dwo_unit parameters.
14441 (create_cus_hash_table): Use cutu_reader.
14442 (struct dwarf2_read_addr_index_data): Remove.
14443 (dwarf2_read_addr_index_reader): Remove.
14444 (dwarf2_read_addr_index): Use cutu_reader.
14445 (read_signatured_type_reader): Remove.
14446 (read_signatured_type): Use cutu_reader.
14447
14448 2020-01-19 Tom Tromey <tom@tromey.com>
14449
14450 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14451 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14452 (tui_wrefresh): Declare.
14453 * tui/tui-wingeneral.c (suppress_output): New global.
14454 (tui_suppress_output, ~tui_suppress_output): New constructor and
14455 destructor.
14456 (tui_wrefresh): New function.
14457 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14458 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14459 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14460 method.
14461 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14462 tui_wrefresh.
14463 (tui_data_window::no_refresh): New method.
14464 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14465 (tui_reg_command): Use tui_suppress_output
14466 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14467 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14468 method.
14469 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14470
14471 2020-01-19 Tom Tromey <tom@tromey.com>
14472
14473 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14474 Handle case where symtab is null.
14475
14476 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14477
14478 * linux-fork.c (one_fork_p): Simplify.
14479
14480 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14481
14482 * top.c (struct qt_args): Remove.
14483 (kill_or_detach): Change return type to void, replace `void *`
14484 parameter with a proper one.
14485 (print_inferior_quit_action): Likewise.
14486 (quit_confirm): Use range-based for loop to iterate over inferiors.
14487 (quit_force): Likewise.
14488
14489 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14490
14491 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14492 `void *` parameter with proper parameters.
14493 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14494 (print_one_inferior): Change return type to void, replace `void *`
14495 parameter with proper parameters.
14496 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14497 inferiors.
14498 (get_other_inferior): Remove.
14499 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14500 inferiors.
14501
14502 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14503
14504 * mi/mi-interp.c (report_initial_inferior): Remove.
14505 (mi_interp::init): Use range-based for to iterate over inferiors.
14506
14507 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14508
14509 * python/py-inferior.c (build_inferior_list): Remove.
14510 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14511
14512 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14513
14514 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14515 (btrace_stitch_trace): Likewise.
14516 * charset.c (intermediate_encoding): Likewise (vaild).
14517 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14518 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14519 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14520
14521 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14522
14523 * windows-tdep.c (windows_get_tlb_type):
14524 Add rtl_user_process_parameters type.
14525
14526 2020-01-16 Pedro Alves <palves@redhat.com>
14527 Norbert Lange <nolange79@gmail.com>
14528
14529 PR build/24805
14530 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14531 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14532 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14533 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14534 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14535 (ps_plog): Redeclare exported functions with default visibility.
14536
14537 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14538
14539 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14540 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14541
14542 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14543
14544 * infcmd.c (post_create_inferior): Use get_thread_regcache
14545 instead of get_current_regcache.
14546
14547 2020-01-14 Tom Tromey <tom@tromey.com>
14548
14549 PR symtab/12535:
14550 * python/python.c (gdbpy_decode_line): Treat empty string the same
14551 as no argument.
14552
14553 2020-01-14 Tom Tromey <tom@tromey.com>
14554
14555 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14556
14557 2020-01-14 Tom Tromey <tom@tromey.com>
14558
14559 * nat/linux-btrace.c: Don't include <config.h>.
14560 * nat/linux-ptrace.c: Don't include <config.h>.
14561 * nat/x86-linux-dregs.c: Don't include <config.h>.
14562
14563 2020-01-14 Tom Tromey <tom@tromey.com>
14564
14565 * configure: Rebuild.
14566 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14567
14568 2020-01-14 Tom Tromey <tom@tromey.com>
14569
14570 * nat/x86-linux-dregs.c: Include configh.h.
14571 * nat/linux-ptrace.c: Include configh.h.
14572 * nat/linux-btrace.c: Include configh.h.
14573 * defs.h: Include config.h, bfd.h.
14574 * configure.ac: Don't source common.host.
14575 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14576 * configure: Rebuild.
14577 * acinclude.m4: Update path.
14578 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14579 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14580 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14581 (CLIBS): Add LIBSUPPORT.
14582 (CDEPS): Likewise.
14583 (COMMON_SFILES): Remove gdbsupport files.
14584 (HFILES_NO_SRCDIR): Likewise.
14585 (stamp-version): Update path to create-version.sh.
14586 (ALLDEPFILES): Remove gdbsupport files.
14587
14588 2020-01-14 Tom Tromey <tom@tromey.com>
14589
14590 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14591 USE_WIN32API when needed.
14592 * configure.ac (USE_WIN32API): Don't define.
14593 (WIN32LIBS): Use WIN32APILIBS.
14594 * configure: Rebuild.
14595
14596 2020-01-14 Tom Tromey <tom@tromey.com>
14597
14598 * configure: Rebuild.
14599 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14600
14601 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14602
14603 * skip.c (skip_function_command): Make skip w/o arguments use the
14604 name of the inlined function if pc is inside any inlined function.
14605
14606 2020-01-14 Luis Machado <luis.machado@linaro.org>
14607
14608 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14609 * infrun.c (resume_1): Likewise.
14610 (handle_inferior_event): Remove stale comment.
14611 * linux-nat.c (linux_nat_target::resume): Update comments.
14612 (save_stop_reason): Likewise.
14613 (linux_nat_filter_event): Likewise.
14614 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14615
14616 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14617
14618 * elfread.c (record_minimal_symbol): Set section index to 0 for
14619 non-allocatable sections.
14620
14621
14622 2020-01-13 Ali Tamur <tamur@google.com>
14623
14624 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14625 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14626 to gdb::optional. Update comments.
14627 (dwo_file): Update comments.
14628 (read_attribute): Update API to take an additional out parameter,
14629 need_reprocess. This is used to mark attributes that need other
14630 attributes (e.g. str_offsets_base) for correct computation which may not
14631 have been read yet.
14632 (read_attribute_reprocess): New function declaration.
14633 (read_addr_index): Likewise.
14634 (read_dwo_str_index): Likewise.
14635 (read_stub_str_index): Likewise.
14636 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14637 (lookup_addr_base): New function definition.
14638 (lookup_ranges_base): Likewise.
14639 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14640 lookup_ranges_base.
14641 (init_cutu_and_read_dies): Update comments.
14642 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14643 unit. This is used to inherit parent's str_offsets_base and addr_base.
14644 Update comments.
14645 (init_cutu_and_read_dies_simple): Reflect API changes.
14646 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14647 (create_cus_hash_table): Change API to take parent compile unit.
14648 Reflect API changes.
14649 (open_and_init_dwo_file): Reflect API changes.
14650 (dwarf2_get_pc_bounds): Update comments.
14651 (dwarf2_record_block_ranges): Likewise.
14652 (read_full_die_1): Change implementation to reprocess attributes that
14653 need str_offsets_base and addr_base.
14654 (partial_die_info::read): Likewise.
14655 (read_attribute_reprocess): New function definition.
14656 (read_attribute_value): Change API to take an additional out parameter,
14657 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14658 when a non-dwo compile unit has index based attributes.
14659 (read_attribute): Reflect API changes.
14660 (read_addr_index_1): Reflect API changes. Update comments.
14661 (dwarf2_read_addr_index_data): Reflect API changes.
14662 (dwarf2_read_addr_index): Likewise.
14663 (read_str_index): Change API and implementation. This becomes a helper
14664 to be used by the new string index related methods. Update error
14665 message and comments.
14666 (read_dwo_str_index): New function definition.
14667 (read_stub_str_index): Likewise.
14668 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14669 * symfile.h (dwarf2_debug_sections): Likewise.
14670 * xcoffread.c (dwarf2_debug_sections): Likewise.
14671
14672 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14673
14674 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14675 core_reg_sect type to gdb_byte *.
14676 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14677 * cris-tdep.c (fetch_core_registers): Likewise.
14678 * corelow.c (core_target::get_core_register_section): Change
14679 type of `contents` to gdb::byte_vector.
14680
14681 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14682
14683 * tui/tui-wingeneral.c (box_win): Position the title in the center
14684 of the border.
14685
14686 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14687
14688 * corelow.c (core_target::get_core_register_section): Use
14689 std::vector instead of alloca.
14690
14691 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14692
14693 * warning.m4: Add -Wmissing-declarations to build_warnings.
14694 * configure: Re-generate.
14695
14696 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14697
14698 * python/python.c (init__gdb_module): Add declaration.
14699
14700 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14701
14702 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14703 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14704 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14705 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14706 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14707 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14708 * ada-exp.y (_initialize_ada_exp): Add declaration.
14709 * ada-lang.c (_initialize_ada_language): Add declaration.
14710 * ada-tasks.c (_initialize_tasks): Add declaration.
14711 * agent.c (_initialize_agent): Add declaration.
14712 * aix-thread.c (_initialize_aix_thread): Add declaration.
14713 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14714 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14715 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14716 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14717 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14718 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14719 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14720 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14721 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14722 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14723 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14724 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14725 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14726 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14727 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14728 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14729 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14730 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14731 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14732 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14733 * annotate.c (_initialize_annotate): Add declaration.
14734 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14735 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14736 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14737 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14738 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14739 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14740 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14741 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14742 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14743 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14744 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14745 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14746 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14747 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14748 * auto-load.c (_initialize_auto_load): Add declaration.
14749 * auxv.c (_initialize_auxv): Add declaration.
14750 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14751 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14752 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14753 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14754 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14755 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14756 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14757 * breakpoint.c (_initialize_breakpoint): Add declaration.
14758 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14759 * btrace.c (_initialize_btrace): Add declaration.
14760 * charset.c (_initialize_charset): Add declaration.
14761 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14762 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14763 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14764 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14765 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14766 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14767 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14768 * coffread.c (_initialize_coffread): Add declaration.
14769 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14770 * compile/compile.c (_initialize_compile): Add declaration.
14771 * complaints.c (_initialize_complaints): Add declaration.
14772 * completer.c (_initialize_completer): Add declaration.
14773 * copying.c (_initialize_copying): Add declaration.
14774 * corefile.c (_initialize_core): Add declaration.
14775 * corelow.c (_initialize_corelow): Add declaration.
14776 * cp-abi.c (_initialize_cp_abi): Add declaration.
14777 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14778 * cp-support.c (_initialize_cp_support): Add declaration.
14779 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14780 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14781 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14782 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14783 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14784 * ctfread.c (_initialize_ctfread): Add declaration.
14785 * d-lang.c (_initialize_d_language): Add declaration.
14786 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14787 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14788 * dbxread.c (_initialize_dbxread): Add declaration.
14789 * dcache.c (_initialize_dcache): Add declaration.
14790 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14791 * disasm.c (_initialize_disasm): Add declaration.
14792 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14793 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14794 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14795 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14796 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14797 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14798 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14799 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14800 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14801 * elfread.c (_initialize_elfread): Add declaration.
14802 * exec.c (_initialize_exec): Add declaration.
14803 * extension.c (_initialize_extension): Add declaration.
14804 * f-lang.c (_initialize_f_language): Add declaration.
14805 * f-valprint.c (_initialize_f_valprint): Add declaration.
14806 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14807 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14808 * filesystem.c (_initialize_filesystem): Add declaration.
14809 * findcmd.c (_initialize_mem_search): Add declaration.
14810 * findvar.c (_initialize_findvar): Add declaration.
14811 * fork-child.c (_initialize_fork_child): Add declaration.
14812 * frame-base.c (_initialize_frame_base): Add declaration.
14813 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14814 * frame.c (_initialize_frame): Add declaration.
14815 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14816 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14817 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14818 * gcore.c (_initialize_gcore): Add declaration.
14819 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14820 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14821 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14822 * gdbarch.c (_initialize_gdbarch): Add declaration.
14823 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14824 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14825 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14826 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14827 * go-lang.c (_initialize_go_language): Add declaration.
14828 * go32-nat.c (_initialize_go32_nat): Add declaration.
14829 * guile/guile.c (_initialize_guile): Add declaration.
14830 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14831 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14832 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14833 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14834 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14835 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14836 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14837 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14838 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14839 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14840 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14841 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14842 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14843 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14844 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14845 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14846 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14847 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14848 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14849 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14850 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14851 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14852 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14853 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14854 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14855 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14856 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14857 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14858 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14859 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14860 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14861 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14862 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14863 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14864 * infcall.c (_initialize_infcall): Add declaration.
14865 * infcmd.c (_initialize_infcmd): Add declaration.
14866 * inflow.c (_initialize_inflow): Add declaration.
14867 * infrun.c (_initialize_infrun): Add declaration.
14868 * interps.c (_initialize_interpreter): Add declaration.
14869 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14870 * jit.c (_initialize_jit): Add declaration.
14871 * language.c (_initialize_language): Add declaration.
14872 * linux-fork.c (_initialize_linux_fork): Add declaration.
14873 * linux-nat.c (_initialize_linux_nat): Add declaration.
14874 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14875 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14876 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14877 * m2-lang.c (_initialize_m2_language): Add declaration.
14878 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14879 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14880 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14881 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14882 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14883 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14884 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14885 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14886 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14887 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14888 * machoread.c (_initialize_machoread): Add declaration.
14889 * macrocmd.c (_initialize_macrocmd): Add declaration.
14890 * macroscope.c (_initialize_macroscope): Add declaration.
14891 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14892 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14893 * maint.c (_initialize_maint_cmds): Add declaration.
14894 * mdebugread.c (_initialize_mdebugread): Add declaration.
14895 * memattr.c (_initialize_mem): Add declaration.
14896 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14897 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14898 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14899 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14900 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14901 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14902 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14903 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14904 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14905 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14906 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14907 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14908 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14909 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14910 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14911 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14912 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14913 * mipsread.c (_initialize_mipsread): Add declaration.
14914 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14915 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14916 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14917 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14918 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14919 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14920 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14921 * nto-procfs.c (_initialize_procfs): Add declaration.
14922 * objc-lang.c (_initialize_objc_language): Add declaration.
14923 * observable.c (_initialize_observer): Add declaration.
14924 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14925 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14926 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14927 * osabi.c (_initialize_gdb_osabi): Add declaration.
14928 * osdata.c (_initialize_osdata): Add declaration.
14929 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14930 * parse.c (_initialize_parse): Add declaration.
14931 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14932 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14933 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14934 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14935 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14936 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14937 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14938 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14939 * printcmd.c (_initialize_printcmd): Add declaration.
14940 * probe.c (_initialize_probe): Add declaration.
14941 * proc-api.c (_initialize_proc_api): Add declaration.
14942 * proc-events.c (_initialize_proc_events): Add declaration.
14943 * proc-service.c (_initialize_proc_service): Add declaration.
14944 * procfs.c (_initialize_procfs): Add declaration.
14945 * producer.c (_initialize_producer): Add declaration.
14946 * psymtab.c (_initialize_psymtab): Add declaration.
14947 * python/python.c (_initialize_python): Add declaration.
14948 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14949 * record-btrace.c (_initialize_record_btrace): Add declaration.
14950 * record-full.c (_initialize_record_full): Add declaration.
14951 * record.c (_initialize_record): Add declaration.
14952 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14953 * regcache.c (_initialize_regcache): Add declaration.
14954 * reggroups.c (_initialize_reggroup): Add declaration.
14955 * remote-notif.c (_initialize_notif): Add declaration.
14956 * remote-sim.c (_initialize_remote_sim): Add declaration.
14957 * remote.c (_initialize_remote): Add declaration.
14958 * reverse.c (_initialize_reverse): Add declaration.
14959 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14960 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14961 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14962 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14963 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14964 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14965 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14966 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14967 Add declaration.
14968 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14969 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14970 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14971 * rust-exp.y (_initialize_rust_exp): Add declaration.
14972 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14973 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14974 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14975 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14976 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14977 * score-tdep.c (_initialize_score_tdep): Add declaration.
14978 * ser-go32.c (_initialize_ser_dos): Add declaration.
14979 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14980 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14981 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14982 * ser-uds.c (_initialize_ser_socket): Add declaration.
14983 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14984 * serial.c (_initialize_serial): Add declaration.
14985 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14986 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14987 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14988 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14989 * skip.c (_initialize_step_skip): Add declaration.
14990 * sol-thread.c (_initialize_sol_thread): Add declaration.
14991 * solib-aix.c (_initialize_solib_aix): Add declaration.
14992 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14993 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14994 * solib-frv.c (_initialize_frv_solib): Add declaration.
14995 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14996 * solib-target.c (_initialize_solib_target): Add declaration.
14997 * solib.c (_initialize_solib): Add declaration.
14998 * source-cache.c (_initialize_source_cache): Add declaration.
14999 * source.c (_initialize_source): Add declaration.
15000 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15001 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15002 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15003 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15004 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15005 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15006 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15007 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15008 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15009 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15010 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15011 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15012 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15013 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15014 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15015 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15016 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15017 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15018 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15019 * stabsread.c (_initialize_stabsread): Add declaration.
15020 * stack.c (_initialize_stack): Add declaration.
15021 * stap-probe.c (_initialize_stap_probe): Add declaration.
15022 * std-regs.c (_initialize_frame_reg): Add declaration.
15023 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15024 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15025 * symfile.c (_initialize_symfile): Add declaration.
15026 * symmisc.c (_initialize_symmisc): Add declaration.
15027 * symtab.c (_initialize_symtab): Add declaration.
15028 * target.c (_initialize_target): Add declaration.
15029 * target-connection.c (_initialize_target_connection): Add
15030 declaration.
15031 * target-dcache.c (_initialize_target_dcache): Add declaration.
15032 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15033 * thread.c (_initialize_thread): Add declaration.
15034 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15035 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15036 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15037 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15038 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15039 * tracectf.c (_initialize_ctf): Add declaration.
15040 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15041 * tracefile.c (_initialize_tracefile): Add declaration.
15042 * tracepoint.c (_initialize_tracepoint): Add declaration.
15043 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15044 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15045 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15046 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15047 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15048 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15049 * tui/tui.c (_initialize_tui): Add declaration.
15050 * typeprint.c (_initialize_typeprint): Add declaration.
15051 * ui-style.c (_initialize_ui_style): Add declaration.
15052 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15053 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15054 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15055 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15056 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15057 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15058 * unittests/filtered_iterator-selftests.c
15059 (_initialize_filtered_iterator_selftests): Add declaration.
15060 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15061 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15062 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15063 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15064 * unittests/main-thread-selftests.c
15065 (_initialize_main_thread_selftests): Add declaration.
15066 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15067 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15068 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15069 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15070 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15071 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15072 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15073 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15074 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15075 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15076 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15077 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15078 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15079 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15080 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15081 declaration.
15082 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15083 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15084 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15085 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15086 * user-regs.c (_initialize_user_regs): Add declaration.
15087 * utils.c (_initialize_utils): Add declaration.
15088 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15089 * valops.c (_initialize_valops): Add declaration.
15090 * valprint.c (_initialize_valprint): Add declaration.
15091 * value.c (_initialize_values): Add declaration.
15092 * varobj.c (_initialize_varobj): Add declaration.
15093 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15094 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15095 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15096 * windows-nat.c (_initialize_windows_nat): Add declaration.
15097 (_initialize_check_for_gdb_ini): Add declaration.
15098 (_initialize_loadable): Add declaration.
15099 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15100 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15101 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15102 * xcoffread.c (_initialize_xcoffread): Add declaration.
15103 * xml-support.c (_initialize_xml_support): Add declaration.
15104 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15105 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15106 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15107 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15108
15109 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15110
15111 * regformats/regdat.sh: Generate declaration for init function.
15112
15113 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15114
15115 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15116 up.
15117 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15118 close_one_inferior>: New methods.
15119 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15120 pass down target to find_inferior_pid.
15121 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15122 Pass down target to find_inferior_ptid.
15123 (gdbsim_target::create_inferior): Pass down target to
15124 add_thread_silent.
15125 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15126 target down to find_inferior_ptid and switch_to_thread.
15127 (gdbsim_target::close): Update to call close_one_inferior.
15128 (struct resume_data): Remove.
15129 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15130 directly, rather than through a void pointer.
15131 (gdbsim_target::resume): Update to call resume_one_inferior.
15132
15133 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15134
15135 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15136
15137 2020-01-12 Pedro Alves <palves@redhat.com>
15138
15139 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15140 directly for the current inferior instead of
15141 discard_all_inferiors.
15142 (discard_all_inferiors): Delete.
15143
15144 2020-01-11 Tom Tromey <tom@tromey.com>
15145
15146 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15147 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15148 deprecated_safe_get_selected_frame.
15149
15150 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15151
15152 * inferior.c (print_inferior): Switch inferior before printing it.
15153
15154 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15155 Pedro Alves <palves@redhat.com>
15156
15157 * progspace-and-thread.c (switch_to_program_space_and_thread):
15158 Assert there's an inferior for PSPACE. Use
15159 switch_to_inferior_no_thread to switch the inferior too.
15160 * progspace.c (program_space::~program_space): Call
15161 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15162 (program_space::free_all_objfiles): Don't call clear_symtab_users
15163 here.
15164 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15165
15166 2020-01-10 Pedro Alves <palves@redhat.com>
15167
15168 * NEWS: Mention multi-target debugging, "info connections", and
15169 "add-inferior -no-connection".
15170
15171 2020-01-10 Pedro Alves <palves@redhat.com>
15172
15173 * infrun.c: Include "target-connection.h".
15174 (check_multi_target_resumption): New.
15175 (proceed): Call it.
15176 * target-connection.c (make_target_connection_string): Make
15177 extern.
15178 * target-connection.h (make_target_connection_string): Declare.
15179
15180 2020-01-10 Pedro Alves <palves@redhat.com>
15181
15182 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15183 * inferior.c (uiout_field_connection): New function.
15184 (print_inferior): Add new "connection-id" column.
15185 (add_inferior_command): Show connection number/string of added
15186 inferior.
15187 * process-stratum-target.h
15188 (process_stratum_target::connection_string): New virtual method.
15189 (process_stratum_target::connection_number): New field.
15190 * remote.c (remote_target::connection_string): New override.
15191 * target-connection.c: New file.
15192 * target-connection.h: New file.
15193 * target.c (decref_target): Remove process_stratum targets from
15194 the connection list.
15195 (target_stack::push): Add process_stratum targets to the
15196 connection list.
15197
15198 2020-01-10 Pedro Alves <palves@redhat.com>
15199
15200 Revert:
15201 2016-04-12 Pedro Alves <palves@redhat.com>
15202 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15203 Remove references to name.
15204 * serial.h (struct serial) <name>: Delete.
15205
15206 2020-01-10 Pedro Alves <palves@redhat.com>
15207
15208 * gdbarch-selftests.c (register_to_value_test): Remove "target
15209 already pushed" check.
15210
15211 2020-01-10 Pedro Alves <palves@redhat.com>
15212 John Baldwin <jhb@FreeBSD.org>
15213
15214 * aarch64-linux-nat.c
15215 (aarch64_linux_nat_target::thread_architecture): Adjust.
15216 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15217 (task_command_1): Likewise.
15218 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15219 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15220 (aix_thread_target::store_registers)
15221 (aix_thread_target::thread_alive): Adjust.
15222 * amd64-fbsd-tdep.c: Include "inferior.h".
15223 (amd64fbsd_get_thread_local_address): Pass down target.
15224 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15225 thread's gdbarch instead of target_gdbarch.
15226 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15227 get_last_target_status.
15228 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15229 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15230 inferiors.
15231 (update_inserted_breakpoint_locations): Skip if inferiors with no
15232 execution.
15233 (update_global_location_list): When handling moribund locations,
15234 find representative inferior for location's pspace, and use thread
15235 count of its process_stratum target.
15236 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15237 * bsd-uthread.c (bsd_uthread_target::wait): Use
15238 as_process_stratum_target and adjust thread_change_ptid and
15239 add_thread calls.
15240 (bsd_uthread_target::update_thread_list): Use
15241 as_process_stratum_target and adjust find_thread_ptid,
15242 thread_change_ptid and add_thread calls.
15243 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15244 find_thread_ptid call.
15245 * corelow.c (add_to_thread_list): Adjust add_thread call.
15246 (core_target_open): Adjust add_thread_silent and thread_count
15247 calls.
15248 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15249 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15250 * event-top.c (async_disconnect): Pop targets from all inferiors.
15251 * exec.c (add_target_sections): Push exec target on all inferiors
15252 sharing the program space.
15253 (remove_target_sections): Remove the exec target from all
15254 inferiors sharing the program space.
15255 (exec_on_vfork): New.
15256 * exec.h (exec_on_vfork): Declare.
15257 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15258 Pass it down.
15259 (fbsd_nat_target::update_thread_list): Adjust.
15260 (fbsd_nat_target::resume): Adjust.
15261 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15262 down.
15263 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15264 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15265 get_thread_arch_regcache call.
15266 * fork-child.c (gdb_startup_inferior): Pass target down to
15267 startup_inferior and set_executing.
15268 * gdbthread.h (struct process_stratum_target): Forward declare.
15269 (add_thread, add_thread_silent, add_thread_with_info)
15270 (in_thread_list): Add process_stratum_target parameter.
15271 (find_thread_ptid(inferior*, ptid_t)): New overload.
15272 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15273 parameter.
15274 (all_threads()): Delete overload.
15275 (all_threads, all_non_exited_threads): Add process_stratum_target
15276 parameter.
15277 (all_threads_safe): Use brace initialization.
15278 (thread_count): Add process_stratum_target parameter.
15279 (set_resumed, set_running, set_stop_requested, set_executing)
15280 (threads_are_executing, finish_thread_state): Add
15281 process_stratum_target parameter.
15282 (switch_to_thread): Use is_current_thread.
15283 * i386-fbsd-tdep.c: Include "inferior.h".
15284 (i386fbsd_get_thread_local_address): Pass down target.
15285 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15286 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15287 have_inferiors check.
15288 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15289 (inf_ptrace_target::attach): Adjust.
15290 * infcall.c (run_inferior_call): Adjust.
15291 * infcmd.c (run_command_1): Pass target to
15292 scoped_finish_thread_state.
15293 (proceed_thread_callback): Skip inferiors with no execution.
15294 (continue_command): Rename 'all_threads' local to avoid hiding
15295 'all_threads' function. Adjust get_last_target_status call.
15296 (prepare_one_step): Adjust set_running call.
15297 (signal_command): Use user_visible_resume_target. Compare thread
15298 pointers instead of inferior_ptid.
15299 (info_program_command): Adjust to pass down target.
15300 (attach_command): Mark target's 'thread_executing' flag.
15301 (stop_current_target_threads_ns): New, factored out from ...
15302 (interrupt_target_1): ... this. Switch inferior before making
15303 target calls.
15304 * inferior-iter.h
15305 (struct all_inferiors_iterator, struct all_inferiors_range)
15306 (struct all_inferiors_safe_range)
15307 (struct all_non_exited_inferiors_range): Filter on
15308 process_stratum_target too. Remove explicit.
15309 * inferior.c (inferior::inferior): Push dummy target on target
15310 stack.
15311 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15312 Add process_stratum_target parameter, and pass it down.
15313 (have_live_inferiors): Adjust.
15314 (switch_to_inferior_and_push_target): New.
15315 (add_inferior_command, clone_inferior_command): Handle
15316 "-no-connection" parameter. Use
15317 switch_to_inferior_and_push_target.
15318 (_initialize_inferior): Mention "-no-connection" option in
15319 the help of "add-inferior" and "clone-inferior" commands.
15320 * inferior.h: Include "process-stratum-target.h".
15321 (interrupt_target_1): Use bool.
15322 (struct inferior) <push_target, unpush_target, target_is_pushed,
15323 find_target_beneath, top_target, process_target, target_at,
15324 m_stack>: New.
15325 (discard_all_inferiors): Delete.
15326 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15327 (all_inferiors, all_non_exited_inferiors): Add
15328 process_stratum_target parameter.
15329 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15330 (target_last_proc_target): New global.
15331 (follow_fork_inferior): Push target on new inferior. Pass target
15332 to add_thread_silent. Call exec_on_vfork. Handle target's
15333 reference count.
15334 (follow_fork): Adjust get_last_target_status call. Also consider
15335 target.
15336 (follow_exec): Push target on new inferior.
15337 (struct execution_control_state) <target>: New field.
15338 (user_visible_resume_target): New.
15339 (do_target_resume): Call target_async.
15340 (resume_1): Set target's threads_executing flag. Consider resume
15341 target.
15342 (commit_resume_all_targets): New.
15343 (proceed): Also consider resume target. Skip threads of inferiors
15344 with no execution. Commit resumtion in all targets.
15345 (start_remote): Pass current inferior to wait_for_inferior.
15346 (infrun_thread_stop_requested): Consider target as well. Pass
15347 thread_info pointer to clear_inline_frame_state instead of ptid.
15348 (infrun_thread_thread_exit): Consider target as well.
15349 (random_pending_event_thread): New inferior parameter. Use it.
15350 (do_target_wait): Rename to ...
15351 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15352 down.
15353 (threads_are_resumed_pending_p, do_target_wait): New.
15354 (prepare_for_detach): Adjust calls.
15355 (wait_for_inferior): New inferior parameter. Handle it. Use
15356 do_target_wait_1 instead of do_target_wait.
15357 (fetch_inferior_event): Adjust. Switch to representative
15358 inferior. Pass target down.
15359 (set_last_target_status): Add process_stratum_target parameter.
15360 Save target in global.
15361 (get_last_target_status): Add process_stratum_target parameter and
15362 handle it.
15363 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15364 (context_switch): Check inferior_ptid == null_ptid before calling
15365 inferior_thread().
15366 (get_inferior_stop_soon): Pass down target.
15367 (wait_one): Rename to ...
15368 (poll_one_curr_target): ... this.
15369 (struct wait_one_event): New.
15370 (wait_one): New.
15371 (stop_all_threads): Adjust.
15372 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15373 event's target.
15374 (switch_back_to_stepped_thread): Also consider target.
15375 (print_stop_event): Update.
15376 (normal_stop): Update. Also consider the resume target.
15377 * infrun.h (wait_for_inferior): Remove declaration.
15378 (user_visible_resume_target): New declaration.
15379 (get_last_target_status, set_last_target_status): New
15380 process_stratum_target parameter.
15381 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15382 process_stratum_target parameter, and use it.
15383 (clear_inline_frame_state (thread_info*)): New.
15384 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15385 process_stratum_target parameter.
15386 (clear_inline_frame_state (thread_info*)): Declare.
15387 * linux-fork.c (delete_checkpoint_command): Pass target down to
15388 find_thread_ptid.
15389 (checkpoint_command): Adjust.
15390 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15391 instead of just tweaking inferior_ptid.
15392 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15393 (exit_lwp): Pass target down to find_thread_ptid.
15394 (attach_proc_task_lwp_callback): Pass target down to
15395 add_thread/set_running/set_executing.
15396 (linux_nat_target::attach): Pass target down to
15397 thread_change_ptid.
15398 (get_detach_signal): Pass target down to find_thread_ptid.
15399 Consider last target status's target.
15400 (linux_resume_one_lwp_throw, resume_lwp)
15401 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15402 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15403 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15404 (linux_nat_target::async_wait_fd): New.
15405 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15406 target down.
15407 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15408 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15409 * linux-thread-db.c (struct thread_db_info::process_target): New
15410 field.
15411 (add_thread_db_info): Save target.
15412 (get_thread_db_info): New process_stratum_target parameter. Also
15413 match target.
15414 (delete_thread_db_info): New process_stratum_target parameter.
15415 Also match target.
15416 (thread_from_lwp): Adjust to pass down target.
15417 (thread_db_notice_clone): Pass down target.
15418 (check_thread_db_callback): Pass down target.
15419 (try_thread_db_load_1): Always push the thread_db target.
15420 (try_thread_db_load, record_thread): Pass target down.
15421 (thread_db_target::detach): Pass target down. Always unpush the
15422 thread_db target.
15423 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15424 target down. Always unpush the thread_db target.
15425 (find_new_threads_callback, thread_db_find_new_threads_2)
15426 (thread_db_target::update_thread_list): Pass target down.
15427 (thread_db_target::pid_to_str): Pass current inferior down.
15428 (thread_db_target::get_thread_local_address): Pass target down.
15429 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15430 target down.
15431 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15432 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15433 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15434 (procfs_init_inferior): Rename to ...
15435 (procfs_target::procfs_init_inferior): ... this and adjust.
15436 (procfs_target::create_inferior, procfs_notice_thread)
15437 (procfs_do_thread_registers): Adjust.
15438 * ppc-fbsd-tdep.c: Include "inferior.h".
15439 (ppcfbsd_get_thread_local_address): Pass down target.
15440 * proc-service.c (ps_xfer_memory): Switch current inferior and
15441 program space as well.
15442 (get_ps_regcache): Pass target down.
15443 * process-stratum-target.c
15444 (process_stratum_target::thread_address_space)
15445 (process_stratum_target::thread_architecture): Pass target down.
15446 * process-stratum-target.h
15447 (process_stratum_target::threads_executing): New field.
15448 (as_process_stratum_target): New.
15449 * ravenscar-thread.c
15450 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15451 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15452 down.
15453 * record-btrace.c (record_btrace_target::info_record): Adjust.
15454 (record_btrace_target::record_method)
15455 (record_btrace_target::record_is_replaying)
15456 (record_btrace_target::fetch_registers)
15457 (get_thread_current_frame_id, record_btrace_target::resume)
15458 (record_btrace_target::wait, record_btrace_target::stop): Pass
15459 target down.
15460 * record-full.c (record_full_wait_1): Switch to event thread.
15461 Pass target down.
15462 * regcache.c (regcache::regcache)
15463 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15464 process_stratum_target parameter and handle it.
15465 (current_thread_target): New global.
15466 (get_thread_regcache): Add process_stratum_target parameter and
15467 handle it. Switch inferior before calling target method.
15468 (get_thread_regcache): Pass target down.
15469 (get_thread_regcache_for_ptid): Pass target down.
15470 (registers_changed_ptid): Add process_stratum_target parameter and
15471 handle it.
15472 (registers_changed_thread, registers_changed): Pass target down.
15473 (test_get_thread_arch_aspace_regcache): New.
15474 (current_regcache_test): Define a couple local test_target_ops
15475 instances and use them for testing.
15476 (readwrite_regcache): Pass process_stratum_target parameter.
15477 (cooked_read_test, cooked_write_test): Pass mock_target down.
15478 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15479 (get_thread_arch_aspace_regcache): Add process_stratum_target
15480 parameter.
15481 (regcache::target): New method.
15482 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15483 (regcache::registers_changed_ptid): Add process_stratum_target
15484 parameter.
15485 (regcache::m_target): New field.
15486 (registers_changed_ptid): Add process_stratum_target parameter.
15487 * remote.c (remote_state::supports_vCont_probed): New field.
15488 (remote_target::async_wait_fd): New method.
15489 (remote_unpush_and_throw): Add remote_target parameter.
15490 (get_current_remote_target): Adjust.
15491 (remote_target::remote_add_inferior): Push target.
15492 (remote_target::remote_add_thread)
15493 (remote_target::remote_notice_new_inferior)
15494 (get_remote_thread_info): Pass target down.
15495 (remote_target::update_thread_list): Skip threads of inferiors
15496 bound to other targets. (remote_target::close): Don't discard
15497 inferiors. (remote_target::add_current_inferior_and_thread)
15498 (remote_target::process_initial_stop_replies)
15499 (remote_target::start_remote)
15500 (remote_target::remote_serial_quit_handler): Pass down target.
15501 (remote_target::remote_unpush_target): New remote_target
15502 parameter. Unpush the target from all inferiors.
15503 (remote_target::remote_unpush_and_throw): New remote_target
15504 parameter. Pass it down.
15505 (remote_target::open_1): Check whether the current inferior has
15506 execution instead of checking whether any inferior is live. Pass
15507 target down.
15508 (remote_target::remote_detach_1): Pass down target. Use
15509 remote_unpush_target.
15510 (extended_remote_target::attach): Pass down target.
15511 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15512 (remote_target::append_resumption): Pass down target.
15513 (remote_target::append_pending_thread_resumptions)
15514 (remote_target::remote_resume_with_hc, remote_target::resume)
15515 (remote_target::commit_resume): Pass down target.
15516 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15517 (remote_target::interrupt_query)
15518 (remote_target::remove_new_fork_children)
15519 (remote_target::check_pending_events_prevent_wildcard_vcont)
15520 (remote_target::remote_parse_stop_reply)
15521 (remote_target::process_stop_reply): Pass down target.
15522 (first_remote_resumed_thread): New remote_target parameter. Pass
15523 it down.
15524 (remote_target::wait_as): Pass down target.
15525 (unpush_and_perror): New remote_target parameter. Pass it down.
15526 (remote_target::readchar, remote_target::remote_serial_write)
15527 (remote_target::getpkt_or_notif_sane_1)
15528 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15529 down target.
15530 (remote_target::mourn_inferior): Pass down target. Use
15531 remote_unpush_target.
15532 (remote_target::core_of_thread)
15533 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15534 (remote_target::pid_to_exec_file)
15535 (remote_target::thread_handle_to_thread_info): Pass down target.
15536 (remote_target::async_wait_fd): New.
15537 * riscv-fbsd-tdep.c: Include "inferior.h".
15538 (riscv_fbsd_get_thread_local_address): Pass down target.
15539 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15540 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15541 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15542 Adjust.
15543 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15544 * solib-svr4.c (enable_break): Pass down target.
15545 * spu-multiarch.c (parse_spufs_run): Pass down target.
15546 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15547 * target-delegates.c: Regenerate.
15548 * target.c (g_target_stack): Delete.
15549 (current_top_target): Return the current inferior's top target.
15550 (target_has_execution_1): Refer to the passed-in inferior's top
15551 target.
15552 (target_supports_terminal_ours): Check whether the initial
15553 inferior was already created.
15554 (decref_target): New.
15555 (target_stack::push): Incref/decref the target.
15556 (push_target, push_target, unpush_target): Adjust.
15557 (target_stack::unpush): Defref target.
15558 (target_is_pushed): Return bool. Adjust to refer to the current
15559 inferior's target stack.
15560 (dispose_inferior): Delete, and inline parts ...
15561 (target_preopen): ... here. Only dispose of the current inferior.
15562 (target_detach): Hold strong target reference while detaching.
15563 Pass target down.
15564 (target_thread_name): Add assertion.
15565 (target_resume): Pass down target.
15566 (target_ops::beneath, find_target_at): Adjust to refer to the
15567 current inferior's target stack.
15568 (get_dummy_target): New.
15569 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15570 has a thread running.
15571 (initialize_targets): Rename to ...
15572 (_initialize_target): ... this.
15573 * target.h: Include "gdbsupport/refcounted-object.h".
15574 (struct target_ops): Inherit refcounted_object.
15575 (target_ops::shortname, target_ops::longname): Make const.
15576 (target_ops::async_wait_fd): New method.
15577 (decref_target): Declare.
15578 (struct target_ops_ref_policy): New.
15579 (target_ops_ref): New typedef.
15580 (get_dummy_target): Declare function.
15581 (target_is_pushed): Return bool.
15582 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15583 (all_matching_threads_iterator::all_matching_threads_iterator):
15584 Handle filter target.
15585 * thread-iter.h (struct all_matching_threads_iterator, struct
15586 all_matching_threads_range, class all_non_exited_threads_range):
15587 Filter by target too. Remove explicit.
15588 * thread.c (threads_executing): Delete.
15589 (inferior_thread): Pass down current inferior.
15590 (clear_thread_inferior_resources): Pass down thread pointer
15591 instead of ptid_t.
15592 (add_thread_silent, add_thread_with_info, add_thread): Add
15593 process_stratum_target parameter. Use it for thread and inferior
15594 searches.
15595 (is_current_thread): New.
15596 (thread_info::deletable): Use it.
15597 (find_thread_ptid, thread_count, in_thread_list)
15598 (thread_change_ptid, set_resumed, set_running): New
15599 process_stratum_target parameter. Pass it down.
15600 (set_executing): New process_stratum_target parameter. Pass it
15601 down. Adjust reference to 'threads_executing'.
15602 (threads_are_executing): New process_stratum_target parameter.
15603 Adjust reference to 'threads_executing'.
15604 (set_stop_requested, finish_thread_state): New
15605 process_stratum_target parameter. Pass it down.
15606 (switch_to_thread): Also match inferior.
15607 (switch_to_thread): New process_stratum_target parameter. Pass it
15608 down.
15609 (update_threads_executing): Reimplement.
15610 * top.c (quit_force): Pop targets from all inferior.
15611 (gdb_init): Don't call initialize_targets.
15612 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15613 Declare.
15614 (windows_add_thread, windows_delete_thread): Adjust.
15615 (get_windows_debug_event): Rename to ...
15616 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15617 * tracefile-tfile.c (tfile_target_open): Pass down target.
15618 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15619 Forward declare.
15620 (switch_to_thread): Add process_stratum_target parameter.
15621 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15622 parameter. Use it.
15623 (mi_on_resume): Pass target down.
15624 * nat/fork-inferior.c (startup_inferior): Add
15625 process_stratum_target parameter. Pass it down.
15626 * nat/fork-inferior.h (startup_inferior): Add
15627 process_stratum_target parameter.
15628 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15629
15630 2020-01-10 Pedro Alves <palves@redhat.com>
15631
15632 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15633 directly. Instead find the first thread in the thread list and
15634 use switch_to_thread.
15635
15636 2020-01-10 Pedro Alves <palves@redhat.com>
15637
15638 * remote.c (remote_target::remote_add_inferior): Don't bind a
15639 process to the current inferior if the current inferior is already
15640 bound to a process.
15641
15642 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15643 Pedro Alves <palves@redhat.com>
15644
15645 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15646 If no process is specified, return null_ptid instead of
15647 inferior_ptid.
15648 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15649 TARGET_WAITKIND_SIGNALLED with no pid.
15650
15651 2020-01-10 Pedro Alves <palves@redhat.com>
15652
15653 * remote.c (first_remote_resumed_thread): New.
15654 (remote_target::wait_as): Use it as default event_ptid instead of
15655 inferior_ptid.
15656
15657 2020-01-10 Pedro Alves <palves@redhat.com>
15658
15659 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15660
15661 2020-01-10 Pedro Alves <palves@redhat.com>
15662
15663 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15664 not -1.
15665
15666 2020-01-10 Pedro Alves <palves@redhat.com>
15667
15668 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15669 ptid to get_last_target_status.
15670 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15671 ptid to get_last_target_status.
15672 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15673 get_last_target_status.
15674 (info_program_command): Don't pass a target_waitstatus to
15675 get_last_target_status.
15676 * infrun.c (init_wait_for_inferior): Use
15677 nullify_last_target_wait_ptid.
15678 (get_last_target_status): Handle nullptr arguments.
15679 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15680 (print_stop_event): Don't pass a ptid to get_last_target_status.
15681 (normal_stop): Don't pass a ptid to get_last_target_status.
15682 * infrun.h (get_last_target_status, set_last_target_status): Move
15683 comments here and update.
15684 (nullify_last_target_wait_ptid): Declare.
15685 * linux-fork.c (fork_load_infrun_state): Remove local extern
15686 declaration of nullify_last_target_wait_ptid.
15687 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15688 to get_last_target_status.
15689
15690 2020-01-10 Pedro Alves <palves@redhat.com>
15691
15692 * gdbthread.h (scoped_restore_current_thread)
15693 <dont_restore, restore, m_dont_restore>: Declare.
15694 * thread.c (thread_alive): Add assertion. Return bool.
15695 (switch_to_thread_if_alive): New.
15696 (prune_threads): Switch inferior/thread.
15697 (print_thread_info_1): Switch thread before calling target methods.
15698 (scoped_restore_current_thread::restore): New, factored out from
15699 ...
15700 (scoped_restore_current_thread::~scoped_restore_current_thread):
15701 ... this.
15702 (scoped_restore_current_thread::scoped_restore_current_thread):
15703 Add assertion.
15704 (thread_apply_all_command, thread_select): Use
15705 switch_to_thread_if_alive.
15706 * infrun.c (proceed, restart_threads, handle_signal_stop)
15707 (switch_back_to_stepped_thread): Switch current thread before
15708 calling target methods.
15709
15710 2020-01-10 Pedro Alves <palves@redhat.com>
15711
15712 * inferior.c (switch_to_inferior_no_thread): New function,
15713 factored out from ...
15714 (inferior_command): ... here.
15715 * inferior.h (switch_to_inferior_no_thread): Declare.
15716 * mi/mi-main.c (run_one_inferior): Use
15717 switch_to_inferior_no_thread.
15718
15719 2020-01-10 Pedro Alves <palves@redhat.com>
15720
15721 * infcmd.c (kill_command): Remove dead code.
15722
15723 2020-01-10 Pedro Alves <palves@redhat.com>
15724
15725 * remote.c (remote_target::mourn_inferior): No longer check
15726 whether the target is running.
15727
15728 2020-01-10 Pedro Alves <palves@redhat.com>
15729
15730 * corelow.c (core_target::has_execution): Change parameter type to
15731 inferior pointer.
15732 * inferior.c (number_of_live_inferiors): Use
15733 inferior::has_execution instead of target_has_execution_1.
15734 * inferior.h (inferior::has_execution): New.
15735 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15736 inferior::has_execution instead of target_has_execution_1.
15737 * process-stratum-target.c
15738 (process_stratum_target::has_execution): Change parameter type to
15739 inferior pointer. Check the inferior's PID instead of
15740 inferior_ptid.
15741 * process-stratum-target.h
15742 (process_stratum_target::has_execution): Change parameter type to
15743 inferior pointer.
15744 * record-full.c (record_full_core_target::has_execution): Change
15745 parameter type to inferior pointer.
15746 * target.c (target_has_execution_1): Change parameter type to
15747 inferior pointer.
15748 (target_has_execution_current): Adjust.
15749 * target.h (target_ops::has_execution): Change parameter type to
15750 inferior pointer.
15751 (target_has_execution_1): Change parameter type to inferior
15752 pointer. Change return type to bool.
15753 * tracefile.h (tracefile_target::has_execution): Change parameter
15754 type to inferior pointer.
15755
15756 2020-01-10 Pedro Alves <palves@redhat.com>
15757
15758 * exceptions.c (print_flush): Remove current_top_target() check.
15759
15760 2020-01-10 Pedro Alves <palves@redhat.com>
15761
15762 * remote.c (show_remote_exec_file): Show the current inferior's
15763 exec-file instead of the command variable's value.
15764
15765 2020-01-10 Pedro Alves <palves@redhat.com>
15766
15767 * record-full.c (record_full_resume_ptid): New global.
15768 (record_full_target::resume): Set it.
15769 (record_full_wait_1): Use record_full_resume_ptid instead of
15770 inferior_ptid.
15771
15772 2020-01-10 Pedro Alves <palves@redhat.com>
15773
15774 * gdbthread.h (scoped_restore_current_thread)
15775 <dont_restore, restore, m_dont_restore>: Declare.
15776 * thread.c (thread_alive): Add assertion. Return bool.
15777 (switch_to_thread_if_alive): New.
15778 (prune_threads): Switch inferior/thread.
15779 (print_thread_info_1): Switch thread before calling target methods.
15780 (scoped_restore_current_thread::restore): New, factored out from
15781 ...
15782 (scoped_restore_current_thread::~scoped_restore_current_thread):
15783 ... this.
15784 (scoped_restore_current_thread::scoped_restore_current_thread):
15785 Add assertion.
15786 (thread_apply_all_command, thread_select): Use
15787 switch_to_thread_if_alive.
15788
15789 2020-01-10 George Barrett <bob@bob131.so>
15790
15791 * stap-probe.c (stap_modify_semaphore): Don't check for null
15792 semaphores.
15793 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15794 for null semaphores.
15795
15796 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15797
15798 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15799 all source windows, and maintain horizontal scroll status while
15800 doing so.
15801
15802 2020-01-09 Tom Tromey <tom@tromey.com>
15803
15804 PR tui/18932:
15805 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15806 update_source_window, not print_source_lines.
15807
15808 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15809
15810 * tui/tui.c (tui_enable): Register tui hooks after calling
15811 tui_display_main.
15812
15813 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15814
15815 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15816
15817 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15818
15819 * thread.c (print_thread_info_1): Fix indentation.
15820
15821 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15822
15823 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15824 unique_xmalloc_ptr outside the if to always free the demangled name.
15825
15826 2020-01-08 Tom Tromey <tromey@adacore.com>
15827
15828 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15829 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15830 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15831 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15832 Remove.
15833 (section_offsets): New typedef.
15834 * symtab.c (fixup_section, get_msymbol_address): Update.
15835 * symmisc.c (dump_msymbols): Update.
15836 * symfile.h (relative_addr_info_to_section_offsets)
15837 (symfile_map_offsets_to_segments): Update.
15838 * symfile.c (build_section_addr_info_from_objfile)
15839 (init_objfile_sect_indices): Update.
15840 (struct place_section_arg): Change type of "offsets".
15841 (place_section): Update.
15842 (relative_addr_info_to_section_offsets): Change type of
15843 "section_offsets". Remove "num_sections" parameter.
15844 (default_symfile_offsets, syms_from_objfile_1)
15845 (set_objfile_default_section_offset): Update.
15846 (reread_symbols): No need to preserve section offsets by hand.
15847 (symfile_map_offsets_to_segments): Change type of "offsets".
15848 * stap-probe.c (relocate_address): Update.
15849 * stabsread.h (process_one_symbol): Update.
15850 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15851 (solib_target_relocate_section_addresses): Update.
15852 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15853 Update.
15854 * solib-frv.c (frv_relocate_main_executable): Update.
15855 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15856 * solib-aix.c (solib_aix_get_section_offsets): Change return
15857 type.
15858 (solib_aix_solib_create_inferior_hook): Update.
15859 * remote.c (remote_target::get_offsets): Update.
15860 * psymtab.c (find_pc_sect_psymtab): Update.
15861 * psympriv.h (struct partial_symbol) <address, text_low,
15862 text_high>: Update.
15863 * objfiles.h (obj_section_offset): Update.
15864 (struct objfile) <section_offsets>: Change type.
15865 <num_sections>: Remove.
15866 (objfile_relocate): Update.
15867 * objfiles.c (entry_point_address_query): Update
15868 (relocate_one_symbol): Change type of "section_offsets".
15869 (objfile_relocate1, objfile_relocate1): Change type of
15870 "new_offsets".
15871 (objfile_rebase1): Update.
15872 * mipsread.c (mipscoff_symfile_read): Update.
15873 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15874 parameter.
15875 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15876 (parse_external, psymtab_to_symtab_1): Update.
15877 * machoread.c (macho_symfile_offsets): Update.
15878 * ia64-tdep.c (ia64_find_unwind_table): Update.
15879 * hppa-tdep.c (read_unwind_info): Update.
15880 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15881 * dwarf2read.c (create_addrmap_from_index)
15882 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15883 (process_psymtab_comp_unit_reader, add_partial_symbol)
15884 (add_partial_subprogram, process_full_comp_unit)
15885 (read_file_scope, read_func_scope, read_lexical_block_scope)
15886 (read_call_site_scope, dwarf2_rnglists_process)
15887 (dwarf2_ranges_process, dwarf2_ranges_read)
15888 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15889 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15890 Update.
15891 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15892 Update.
15893 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15894 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15895 (process_one_symbol): Change type of "section_offsets".
15896 * ctfread.c (get_objfile_text_range): Update.
15897 * coffread.c (coff_symtab_read, enter_linenos)
15898 (process_coff_symbol): Update.
15899 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15900 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15901
15902 2020-01-08 Tom Tromey <tromey@adacore.com>
15903
15904 * dwarf2read.c (parse_macro_definition): Use std::string.
15905 (parse_macro_definition): Likewise.
15906
15907 2020-01-08 Tom Tromey <tromey@adacore.com>
15908
15909 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15910 (ATTR_ALLOC_CHUNK): Remove.
15911
15912 2020-01-08 Tom Tromey <tromey@adacore.com>
15913
15914 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15915
15916 2020-01-08 Tom Tromey <tromey@adacore.com>
15917
15918 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15919 (dwarf2_compute_name, open_dwo_file): Likewise.
15920 (process_enumeration_scope): Use std::vector.
15921 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15922 (partial_die_info::fixup, dwarf2_start_subfile)
15923 (guess_full_die_structure_name, dwarf2_name): Likewise.
15924 (determine_prefix): Update.
15925 (guess_full_die_structure_name): Make return type const.
15926 (partial_die_full_name): Return unique_xmalloc_ptr.
15927 (DW_FIELD_ALLOC_CHUNK): Remove.
15928
15929 2020-01-07 Tom Tromey <tromey@adacore.com>
15930
15931 PR build/24937:
15932 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15933
15934 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15935
15936 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15937
15938 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15939
15940 * stack.c (print_frame_info): Move disassemble_next_line code
15941 inside source_print block.
15942
15943 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15944
15945 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15946 gdb/signals.h, as we are now using native signal symbols.
15947
15948 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15949
15950 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15951 overflow by an early check of content vs threshold.
15952 * tui/tui-source.c (tui_source_window::line_is_displayed):
15953 Likewise.
15954
15955 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15956
15957 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15958
15959 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15960
15961 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15962 export table if no section contains it's RVA.
15963
15964 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15965
15966 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15967
15968 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15969
15970 * source.c (print_source_lines_base): Set last_line_listed.
15971
15972 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15973
15974 * tui/tui-disasm.c: Remove trailing spaces.
15975
15976 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15977 Pedro Alves <palves@redhat.com>
15978
15979 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15980 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15981 (windows_gdb_signal_to_target): New function, uses the above
15982 enumeration to convert GDB internal signal codes to equivalent
15983 Windows codes.
15984 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15985 * windows-nat.c: Include "gdb_wait.h".
15986 (get_windows_debug_event): Extract the fatal exception from the
15987 exit status and convert to the equivalent Posix signal number.
15988 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15989 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15990 * gdbsupport/gdb_wait.c: New file, implements
15991 windows_status_to_termsig.
15992 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15993 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15994
15995 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15996
15997 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15998 show_layout.
15999
16000 2020-01-05 Luis Machado <luis.machado@linaro.org>
16001
16002 * aarch64-linux-nat.c
16003 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16004 and bfd_mach_aarch64.
16005
16006 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16007
16008 * ui-file.c (stdio_file::can_emit_style_escape)
16009 (tee_file::can_emit_style_escape): Ensure style is used also on
16010 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16011 to gdb_stdout.
16012 * main.c (set_gdb_data_directory): Use file style to output the
16013 warning that the given pathname is not a directory.
16014 * top.c (show_history_filename, gdb_safe_append_history)
16015 (show_gdb_datadir): Use file style.
16016
16017 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16018
16019 * solib-target.c (struct lm_info_target):
16020 Change offsets to be a unique_xmalloc_ptr.
16021 (solib_target_relocate_section_addresses): Update.
16022
16023 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16024
16025 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16026
16027 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16028
16029 * MAINTAINERS (Write After Approval): Add myself.
16030
16031 2020-01-02 Luis Machado <luis.machado@linaro.org>
16032
16033 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16034 Cell BE architecture.
16035 * target.h (struct target_ops) <thread_architecture>: Likewise.
16036
16037 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16038
16039 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16040
16041 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16042
16043 * MAINTAINERS (Write After Approval): Add myself.
16044
16045 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16046
16047 * gdbarch.sh: Update copyright year range of generated files.
16048
16049 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16050
16051 Update copyright year range in all GDB files.
16052
16053 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16054
16055 * copyright.py: Convert to Python 3.
16056
16057 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16058
16059 * copyright.py: Adapt after move of gnulib directory from gdb
16060 directory to toplevel directory.
16061
16062 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16063
16064 * copyright.py (main): Exit if run from the wrong directory.
16065
16066 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16067
16068 * top.c (print_gdb_version): Change copyright year to 2020.
16069
16070 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16071
16072 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16073
16074 For older changes see ChangeLog-2019.
16075 \f
16076 Local Variables:
16077 mode: change-log
16078 left-margin: 8
16079 fill-column: 74
16080 version-control: never
16081 coding: utf-8
16082 End:
This page took 0.360303 seconds and 4 git commands to generate.