gdbsupport: re-indent ptrace.m4
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b6fb30ed
SM
12020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * configure: Re-generate.
4
294f2697
SM
52020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * acinclude.m4: Modernize.
8 * configure: Re-generate.
9
5593a99a
SM
102020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * configure.ac: Modernize.
13 * configure: Re-generate.
14
e41fda1d
SM
152020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
18 * configure: Re-generate.
19 * configure.ac: Remove AM_PROG_CC_STDC.
20
91e1a0ed
SM
212020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
24 AC_CANONICAL_SYSTEM.
25 * configure: Re-generate.
26
136821d9
SM
272020-10-30 Simon Marchi <simon.marchi@efficios.com>
28
29 * infrun.h (displaced_debug_printf): New macro. Replace
30 displaced debug prints throughout to use it.
31 (displaced_debug_printf_1): New declaration.
32 (displaced_step_dump_bytes): Return string, remove ui_file
33 parameter, update all callers.
34 * infrun.c (displaced_debug_printf_1): New function.
35 (displaced_step_dump_bytes): Return string, remove ui_file
36 parameter
37
aa2045e7
SM
382020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
41
b1ec2735
TT
422020-10-30 Tom Tromey <tromey@adacore.com>
43
44 * Makefile.in (stamp-init): Depend on config.status.
45
b78b3a29
TBA
462020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
47
48 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
49
d70bdd3c
PA
502020-10-30 Pedro Alves <pedro@palves.net>
51
52 * thread.c (lookup_selected_frame): Move ...
53 * frame.c (lookup_selected_frame): ... here.
54
79952e69
PA
552020-10-30 Pedro Alves <pedro@palves.net>
56
57 * blockframe.c (block_innermost_frame): Use get_selected_frame.
58 * frame.c
59 (scoped_restore_selected_frame::scoped_restore_selected_frame):
60 Use save_selected_frame. Save language as well.
61 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
62 Use restore_selected_frame, and restore language as well.
63 (selected_frame_id, selected_frame_level): New.
64 (selected_frame): Update comments.
65 (save_selected_frame, restore_selected_frame): New.
66 (get_selected_frame): Use lookup_selected_frame.
67 (get_selected_frame_if_set): Delete.
68 (select_frame): Record selected_frame_level and selected_frame_id.
69 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
70 fields.
71 (get_selected_frame): Make 'message' parameter optional.
72 (get_selected_frame_if_set): Delete declaration.
73 (select_frame): Update comments.
74 (save_selected_frame, restore_selected_frame)
75 (lookup_selected_frame): Declare.
76 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
77 * infrun.c (struct infcall_control_state) <selected_frame_level>:
78 New field.
79 (save_infcall_control_state): Use save_selected_frame.
80 (restore_selected_frame): Delete.
81 (restore_infcall_control_state): Use restore_selected_frame.
82 * stack.c (select_frame_command_core, frame_command_core): Use
83 get_selected_frame.
84 * thread.c (restore_selected_frame): Rename to ...
85 (lookup_selected_frame): ... this and make extern. Select the
86 current frame if the frame level is -1.
87 (scoped_restore_current_thread::restore): Also restore the
88 language.
89 (scoped_restore_current_thread::~scoped_restore_current_thread):
90 Don't try/catch.
91 (scoped_restore_current_thread::scoped_restore_current_thread):
92 Save the language as well. Use save_selected_frame.
93
58103c33
SM
942020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
97 documentation.
98 * gdbarch.h: Re-generate.
99
40a53766
SM
1002020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
103 parameter.
104 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
105 Likewise.
106 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
107 Likewise.
108 * arch-utils.c (default_displaced_step_hw_singlestep):
109 Likewise.
110 * arch-utils.h (default_displaced_step_hw_singlestep):
111 Likewise.
112 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
113 Likewise.
114 * s390-tdep.c (s390_displaced_step_hw_singlestep):
115 Likewise.
116 * gdbarch.c: Re-generate.
117 * gdbarch.h: Re-generate.
118 * infrun.c (resume_1): Adjust.
119
8407f91b
TT
1202020-10-29 Tom Tromey <tom@tromey.com>
121
122 * progspace.c (program_space::~program_space): Don't call
123 exec_close.
124
5008b3b2
TT
1252020-10-29 Tom Tromey <tom@tromey.com>
126
127 * exec.c (exec_target::close): Don't change current program
128 space.
129
d9eebde0
TT
1302020-10-29 Tom Tromey <tom@tromey.com>
131
132 * symfile.c (add_symbol_file_command): Update.
133 * exec.c (program_space::add_target_sections): Rename.
134 * symfile-mem.c (symbol_file_add_from_memory): Update.
135 * progspace.h (struct program_space) <add_target_sections>:
136 Declare new overload.
137 * exec.h (add_target_sections_of_objfile): Don't declare.
138
3769e227
TT
1392020-10-29 Tom Tromey <tom@tromey.com>
140
141 * solib.c (solib_map_sections): Update.
142 * exec.c (program_space::add_target_sections): Now a method.
143 (exec_file_attach): Update.
144 * exec.h (add_target_sections): Don't declare.
145 * progspace.h (struct program_space) <add_target_sections>:
146 Declare.
147
2a3f84af
TT
1482020-10-29 Tom Tromey <tom@tromey.com>
149
150 * progspace.h (struct program_space) <remove_target_sections>:
151 Declare.
152 * exec.c (program_space::remove_target_sections): Now a method.
153 * exec.h (remove_target_sections): Don't declare.
154
004eecfd
TT
1552020-10-29 Tom Tromey <tom@tromey.com>
156
157 * inferior.c (delete_inferior): Update.
158 * progspace.c (program_space::empty): Rename from
159 program_space_empty_p. Return bool.
160 * progspace.h (struct program_space) <empty>: New method.
161 (program_space_empty_p): Don't declare.
162
e39fb971
TT
1632020-10-29 Tom Tromey <tom@tromey.com>
164
165 * progspace.c (program_space::~program_space): Don't call
166 clear_program_space_solib_cache.
167 (program_space::clear_solib_cache): Rename from
168 clear_solib_cache.
169 * solib.c (handle_solib_event): Update.
170 * progspace.h (struct program_space) <clear_solib_cache>: New
171 method.
172 (clear_program_space_solib_cache): Don't declare.
173
a42d7dd8
TT
1742020-10-29 Tom Tromey <tom@tromey.com>
175
176 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
177 * target.c (info_target_command): Update.
178 * symfile.c (syms_from_objfile_1, finish_new_objfile)
179 (symbol_file_clear, reread_symbols): Update.
180 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
181 * stabsread.c (scan_file_globals): Update.
182 * solib.c (update_solib_list): Update.
183 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
184 (svr4_fetch_objfile_link_map, enable_break)
185 (svr4_relocate_main_executable)
186 (svr4_iterate_over_objfiles_in_search_order): Update.
187 * solib-frv.c (lm_base, enable_break)
188 (frv_relocate_main_executable): Update.
189 (main_got, frv_fdpic_find_canonical_descriptor): Update.
190 (frv_fetch_objfile_link_map): Update.
191 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
192 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
193 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
194 * remote.c (remote_target::get_offsets): Update.
195 (remote_target::start_remote)
196 (extended_remote_target::post_attach): Update.
197 * objfiles.c (entry_point_address_query): Update.
198 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
199 * minsyms.c (get_symbol_leading_char): Update.
200 * frame.c (inside_main_func): Update.
201 * progspace.h (symfile_objfile): Remove macro.
202
19f6550e
TT
2032020-10-29 Tom Tromey <tom@tromey.com>
204
205 * exec.c (exec_file_attach): Update.
206 * progspace.c (program_space::exec_close): Update.
207 * progspace.h (struct program_space) <ebfd>: Now a
208 gdb_bfd_ref_ptr.
209 <set_exec_bfd>: Change argument type.
210 <exec_bfd>: Update.
211
7e10abd1
TT
2122020-10-29 Tom Tromey <tom@tromey.com>
213
214 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
215 * symfile.c (reread_symbols): Update.
216 * symfile-mem.c (add_symbol_file_from_memory_command)
217 (add_vsyscall_page): Update.
218 * source-cache.c (source_cache::get_plain_source_lines): Update.
219 * solib-svr4.c (find_program_interpreter, elf_locate_base)
220 (svr4_current_sos_direct, svr4_exec_displacement)
221 (svr4_relocate_main_executable): Update.
222 (svr4_iterate_over_objfiles_in_search_order): Update.
223 * solib-frv.c (enable_break2, enable_break): Update.
224 * solib-dsbt.c (lm_base, enable_break): Update.
225 * solib-darwin.c (find_program_interpreter)
226 (darwin_solib_create_inferior_hook): Update.
227 * sol-thread.c (rw_common, ps_pdmodel): Update.
228 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
229 * remote.c (compare_sections_command)
230 (remote_target::trace_set_readonly_regions): Update.
231 * remote-sim.c (get_sim_inferior_data)
232 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
233 (gdbsim_target_open, gdbsim_target::files_info): Update.
234 * exec.h (exec_bfd): Remove macro.
235 * progspace.c (initialize_progspace): Update.
236 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
237 Update.
238 * nto-procfs.c (nto_procfs_target::post_attach)
239 (nto_procfs_target::create_inferior): Update.
240 * maint.c (maintenance_info_sections): Update.
241 * linux-thread-db.c (thread_db_target::get_thread_local_address):
242 Update.
243 * infcmd.c (post_create_inferior): Update.
244 * gcore.c (default_gcore_arch, default_gcore_target): Update.
245 (objfile_find_memory_regions): Update.
246 * exec.c (validate_exec_file, exec_file_attach)
247 (exec_read_partial_read_only, print_section_info): Update.
248 * corelow.c (core_target_open): Update.
249 * corefile.c (reopen_exec_file, validate_files): Update.
250 * arm-tdep.c (gdb_print_insn_arm): Update.
251 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
252 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
253 methods.
254
b55221ab
TT
2552020-10-29 Tom Tromey <tom@tromey.com>
256
257 * progspace.h (current_target_sections): Remove macro.
258 * solib-svr4.c (scan_dyntag): Update.
259 * solib-dsbt.c (scan_dyntag): Update.
260 * exec.c (exec_target::close): Update.
261 (add_target_sections, add_target_sections_of_objfile)
262 (remove_target_sections, exec_target::get_section_table)
263 (exec_target::files_info, set_section_command)
264 (exec_set_section_address, exec_target::has_memory)
265 (exec_target::has_memory): Update.
266
5a36e715
TT
2672020-10-29 Tom Tromey <tom@tromey.com>
268
269 * source-cache.c (source_cache::get_plain_source_lines): Use
270 current_program_space.
271 * corefile.c (reopen_exec_file): Use current_program_space.
272 * exec.c (exec_file_attach): Use current_program_space.
273 * exec.h (exec_bfd_mtime): Remove.
274
784c8592
TT
2752020-10-29 Tom Tromey <tom@tromey.com>
276
277 * gcore.c (default_gcore_mach): Remove.
278 (create_gcore_bfd): Update.
279
8a4f1402
TT
2802020-10-29 Tom Tromey <tom@tromey.com>
281
282 * progspace.c (program_space::exec_close): New method, from
283 exec_close in exec.c.
284 * exec.c (exec_close): Move to progspace.c.
285 (exec_target::close, exec_file_attach): Update.
286 * progspace.h (struct program_space) <exec_close>: Declare
287 method.
288
c20cb686
TT
2892020-10-29 Tom Tromey <tom@tromey.com>
290
291 * progspace.h (struct program_space) <exec_filename>: Rename from
292 pspace_exec_filename. Now a unique_xmalloc_ptr.
293 * inferior.c (print_selected_inferior): Update.
294 (print_inferior): Update.
295 * mi/mi-main.c (print_one_inferior): Update.
296 * exec.h (exec_filename): Remove macro.
297 * corefile.c (get_exec_file): Update.
298 * exec.c (exec_close): Update.
299 (exec_file_attach): Update.
300 * progspace.c (clone_program_space): Update.
301 (print_program_space): Update.
302
6be2a9ab
TT
3032020-10-29 Tom Tromey <tom@tromey.com>
304
305 * target-section.h (struct target_section): Add constructor.
306 * exec.c (build_section_table, add_target_sections_of_objfile):
307 Update.
308 * corelow.c (core_target::build_file_mappings): Update.
309
cfaa8f76
TBA
3102020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
311
312 PR gdb/19318
313 * inferior.c (detach_inferior_command): Restore the current thread.
314 (kill_inferior_command): Ditto.
315
1b00ef06
TV
3162020-10-28 Tom de Vries <tdevries@suse.de>
317
318 PR symtab/26772
319 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
320 map, check it in the "best match" loop.
321
7f40ce1a
SM
3222020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * m32c-tdep.c: Remove unused includes.
325
5eb9e3f5
SM
3262020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
327
328 * xtensa-tdep.c: Remove includes.
329
b1d4d8d1
TBA
3302020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
331
332 * breakpoint.c (struct condition_command_opts): New struct.
333 (condition_command_option_defs): New static global.
334 (make_condition_command_options_def_group): New function.
335 (condition_completer): Update to consider the '-force' flag.
336 (condition_command): Use gdb::option for the '-force' flag.
337
bd24c5d6
TV
3382020-10-27 Tom de Vries <tdevries@suse.de>
339
340 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
341 symbols in section check.
342
61eb46a4
TV
3432020-10-27 Tom de Vries <tdevries@suse.de>
344
345 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
346
733d554a
TBA
3472020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
348
349 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
350 * breakpoint.c: Update the help text of the 'condition' and 'break'
351 commands.
352 (set_breakpoint_condition): Take a new bool parameter
353 to control whether condition definition should be forced even when
354 the condition expression is invalid in all of the current locations.
355 (condition_command): Update the call to 'set_breakpoint_condition'.
356 (find_condition_and_thread): Take the "-force-condition" flag into
357 account.
358 * linespec.c (linespec_keywords): Add "-force-condition" as an
359 element.
360 (FORCE_KEYWORD_INDEX): New #define.
361 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
362 as a keyword.
363 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
364 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
365 * python/py-breakpoint.c (bppy_set_condition): Ditto.
366 * NEWS: Mention the changes to the 'break' and 'condition' commands.
367
b5fa468f
TBA
3682020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
369
370 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
371 * breakpoint.c (set_breakpoint_location_condition): New function.
372 (set_breakpoint_condition): Disable a breakpoint location if parsing
373 the condition string gives an error.
374 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
375 (build_target_condition_list): Ditto.
376 (build_target_command_list): Ditto.
377 (build_bpstat_chain): Ditto.
378 (print_one_breakpoint_location): Ditto.
379 (print_one_breakpoint): Ditto.
380 (breakpoint_1): Ditto.
381 (bp_location::bp_location): Ditto.
382 (locations_are_equal): Ditto.
383 (update_breakpoint_locations): Ditto.
384 (enable_disable_bp_num_loc): Ditto.
385 (init_breakpoint_sal): Use set_breakpoint_location_condition.
386 (find_condition_and_thread_for_sals): New static function.
387 (create_breakpoint): Call find_condition_and_thread_for_sals.
388 (location_to_sals): Call find_condition_and_thread_for_sals instead
389 of find_condition_and_thread.
390
1c47ec3e
TV
3912020-10-26 Tom de Vries <tdevries@suse.de>
392
393 * dwarf2/read.c (process_full_comp_unit): Call
394 dwarf2_find_base_address.
395
6390859c
TT
3962020-10-26 Tom Tromey <tromey@adacore.com>
397
398 * gdbtypes.c (create_range_type): Revert previous patch. Add
399 comment.
400
d744f0f9
PA
4012020-10-26 Pedro Alves <pedro@palves.net>
402
403 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
404 (my_waitpid): Use gdb::handle_eintr.
405
006811bc
SM
4062020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * acinclude.m4: Update ptrace.m4 path.
409 * ptrace.m4: Moved to gdbsupport.
410
c75e31a1
SM
4112020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
412
413 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
414 instead of target_gdbarch.
415
32495661
SM
4162020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
417
418 * jit.c (jit_reader_load_command): Pass current inferior.
419 (jit_inferior_init): Change parameter type to inferior, use it.
420 (jit_inferior_created): Remove.
421 (jit_inferior_created_hook): Pass inferior parameter down.
422 (_initialize_jit): Use jit_inferior_created_hook instead of
423 jit_inferior_created.
424 * jit.h (jit_inferior_created_hook): Add inferior parameter.
425 * infrun.c (follow_exec): Pass inferior to
426 jit_inferior_created_hook.
427
3f66685e
SM
4282020-10-24 Simon Marchi <simon.marchi@efficios.com>
429
430 * linux-thread-db.c (check_pid_namespace_match): Add inferior
431 parameter and use it.
432 (thread_db_inferior_created): Pass inferior argument.
433
a0ff652f
SM
4342020-10-24 Simon Marchi <simon.marchi@efficios.com>
435
436 * aix-thread.c (aix_thread_inferior_created): Add inferior
437 parameter.
438 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
439 * dummy-frame.c (cleanup_dummy_frames): Likewise.
440 * jit.c (jit_inferior_created): Likewise.
441 * linux-thread-db.c (thread_db_inferior_created): Likewise.
442 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
443 * observable.h (inferior_created): Likewise.
444 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
445 * symfile-mem.c (add_vsyscall_page): Likewise.
446 * infcmd.c (post_create_inferior): Pass inferior argument.
447
3c67532c
JB
4482020-10-24 Joel Brobecker <brobecker@adacore.com>
449
450 GDB 10.1 released.
451
8747316e
JB
4522020-10-23 Joel Brobecker <brobecker@adacore.com>
453
454 * ada-typeprint.c (ada_print_type): Remove superfluous second call
455 to ada_check_typedef.
456
1a0ea399
AB
4572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
458
459 * f-exp.y (f_parse): Rename to...
460 (f_language::parser): ...this.
461 * f-lang.c (f_get_encoding): Rename to...
462 (f_language::get_encoding): ...this.
463 (f_op_print_tab): Rename to...
464 (f_language::op_print_tab): ...this.
465 (exp_descriptor_f): Rename to...
466 (f_language::exp_descriptor_tab): ...this.
467 (class f_language): Moved to f-lang.h.
468 (f_language::language_arch_info): New function, moved out of class
469 declaration.
470 (f_language::search_name_hash): Likewise.
471 (f_language::lookup_symbol_nonlocal): Likewise.
472 (f_language::get_symbol_name_matcher_inner): Likewise.
473 * f-lang.h: Add 'valprint.h' include.
474 (class f_language): Moved here from f-lang.c.
475 * f-typeprint.c (f_type_print_args): Delete commented out
476 declaration.
477 (f_print_typedef): Rename to...
478 (f_language::print_typedef): ...this.
479 (f_print_type): Rename to...
480 (f_language::print_type): ...this.
481 (f_type_print_varspec_prefix): Delete declaration and rename to...
482 (f_language::f_type_print_varspec_prefix): ...this.
483 (f_type_print_varspec_suffix): Delete declaration and rename to...
484 (f_language::f_type_print_varspec_suffix): ...this.
485 (f_type_print_base): Delete declaration and rename to...
486 (f_language::f_type_print_base): ...this.
487 * f-valprint.c (f_value_print_inner): Rename to...
488 (f_language::value_print_inner): ...this.
489 * parse.c: Delete 'f-lang.h' include.
490
88cefd9b
AB
4912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
492
493 * language.h (language_defn::print_type): Add variable names in
494 declaration, and update header comment.
495
5399db93
AB
4962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * ada-lang.c (ada_language::demangle): Rename to...
499 (ada_language::demangle_symbol): ...this.
500 * c-lang.c (cplus_language::demangle): Rename to...
501 (cplus_language::demangle_symbol): ...this.
502 * d-lang.c (d_language::demangle): Rename to...
503 (d_language::demangle_symbol): ...this.
504 * f-lang.c (f_language::demangle): Rename to...
505 (f_language::demangle_symbol): ...this.
506 * go-lang.c (go_language::demangle): Rename to...
507 (go_language::demangle_symbol): ...this.
508 * language.c (language_demangle): Update call to demangle_symbol.
509 (auto_or_unknown_language::demangle): Rename to...
510 (auto_or_unknown_language::demangle_symbol): ...this.
511 * language.h (language_defn::demangle): Rename to...
512 (language_defn::demangle_symbol): ...this.
513 * objc-lang.c (objc_language::demangle): Rename to...
514 (objc_language::demangle_symbol): ...this.
515 * rust-lang.c (rust_language::demangle): Rename to...
516 (rust_language::demangle_symbol): ...this.
517
4b2f86ef
AB
5182020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
519
520 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
521 (iterate_over_file_blocks): Replace use of macro with the macros
522 definition.
523
e74b39de
AB
5242020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
525
526 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
527 * valprint.c (maybe_print_array_index): Replace use of macro with
528 the macros definition.
529
00c696a6
AB
5302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * ada-lang.c (ada_language::print_array_index): Call value_print
533 directly.
534 * language.c (language_defn::print_array_index): Likewise.
535 * language.h (LA_VALUE_PRINT): Delete.
536 * valprint.c (value_print): Call value_print on the
537 current_language directly.
538
d3b67c56
AB
5392020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
540
541 * language.h (LA_PRINT_TYPEDEF): Delete.
542 * typeprint.c (typedef_print): Call print_typedef directly on the
543 current_language object.
544
790e2a12
AB
5452020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
546
547 * m2-exp.y (m2_parse): Rename to...
548 (m2_language::parser): ...this. Update function signature.
549 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
550 (m2_op_print): Rename to...
551 (m2_language::op_print_tab): ...this, and make const.
552 (exp_descriptor_modula2): Rename to...
553 (m2_language::exp_descriptor_modula2): ...this.
554 (class m2_language): Move to m2-lang.h.
555 (m2_language::language_arch_info): New function, moved out of
556 class declaration.
557 (m2_language::printchar): New function, body from m2_printchar.
558 (m2_language::printstr): New function, moved out of class
559 declaration.
560 (m2_language::emitchar): Likewise.
561 * m2-lang.h (m2_parse): Delete declaration.
562 (m2_print_typedef): Delete declaration.
563 (m2_value_print_inner): Delete declaration.
564 (class m2_language): Class declaration moved from m2-lang.c,
565 larger functions are left in m2-lang.c.
566 * m2-typeprint.c (m2_print_typedef): Rename to...
567 (m2_language::print_typedef): ...this, and update function
568 signature.
569 * m2-valprint.c (m2_value_print_inner): Rename to...
570 (m2_language::value_print_inner): ...this, replace use of
571 LA_PRINT_STRING with a direct call to printstr member function,
572 and update recursive call.
573
b01175fc
AB
5742020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
575
576 * language.c (default_is_string_type_p): Delete, implementation
577 moved into auto_or_unknown_language::is_string_type_p.
578 (unk_op_print_tab): Moved into
579 auto_or_unknown_language::opcode_print_table.
580 (unknown_language_arch_info): Delete, implementation moved into
581 auto_or_unknown_language::language_arch_info.
582 (class auto_or_unknown_language): New class, member functions
583 copied from unknown_language class, with some updates.
584 (class unknown_language): Most member functions moved into
585 auto_or_unknown_language class. Inherit from
586 auto_or_unknown_language class.
587 (class auto_language): Inherit from auto_or_unknown_language.
588 Delete most member functions.
589
1a97fe8c
HD
5902020-10-22 Hannes Domani <ssbssa@yahoo.de>
591
592 * stabsread.c (read_member_functions): Remove gdb_assert.
593
6b9d0dfd
HD
5942020-10-22 Hannes Domani <ssbssa@yahoo.de>
595
596 * gdbtypes.c (init_complex_type): Check target type name.
597
4b4bb603
SM
5982020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * target-debug.h (target_debug_print_struct_target_ops_p):
601 Remove.
602 (target_debug_print_async_callback_ftype_p): Remove.
603 (target_debug_print_struct_trace_state_variable_p): Remove.
604 (target_debug_print_struct_traceframe_info_p): Remove.
605 (target_debug_print_VEC__btrace_block_s__pp): Remove.
606 (target_debug_print_enum_btrace_format): Remove.
607 (target_debug_print_enum_info_proc_what): Remove.
608 (target_debug_print_thread_info_pp): Remove.
609
24f5300a
SM
6102020-10-22 Simon Marchi <simon.marchi@efficios.com>
611
612 * target.h (struct target_ops) <make_corefile_notes>:
613 Change return type to unique pointer.
614 * target.c (dummy_make_corefile_notes): Likewise.
615 * exec.c (struct exec_target) <make_corefile_notes>:
616 Likewise.
617 (exec_target::make_corefile_notes): Likewise.
618 * procfs.c (class procfs_target) <make_corefile_notes>:
619 Likewise.
620 (procfs_do_thread_registers): Adjust to unique pointer.
621 (struct procfs_corefile_thread_data): Add constructor.
622 <note_data>: Change type to unique pointer.
623 (procfs_corefile_thread_callback): Adjust to unique pointer.
624 (procfs_target::make_corefile_notes): Change return type to
625 unique pointer.
626 * target-delegates.c: Re-generate.
627 * gcore.c (write_gcore_file_1): Adjust.
628 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
629 New.
630
5fb4027f
TV
6312020-10-22 Tom de Vries <tdevries@suse.de>
632
633 * block.c (find_block_in_blockvector): Make sure the returned block
634 contains pc.
635
4a636814
SM
6362020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
637
638 PR gdb/26693
639 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
640 parameter.
641 (load_cu): Pass existing CU.
642 (process_imported_unit_die): Likewise.
643 (follow_die_offset): Likewise.
644
1bd57575
LM
6452020-10-22 Luis Machado <luis.machado@linaro.org>
646
647 * corelow.c (core_target::xfer_partial): Also check for an empty
648 m_core_unavailable_mappings vector.
649
6b4c676c
AB
6502020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
653 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
654 * f-exp.y (arglist): Allow for a series of subranges.
655 (subrange): Add cases for subranges with strides.
656 * f-lang.c (value_f90_subarray): Catch use of array strides and
657 throw an error.
658 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
659
f2d8e4c5
AB
6602020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
661
662 * expprint.c (print_subexp_standard): Change enum range_type to
663 range_flag and rename variables to match.
664 (dump_subexp_body_standard): Likewise.
665 * expression.h (enum range_type): Rename to...
666 (enum range_flag): ...this.
667 (range_types): Rename to...
668 (range_flags): ...this.
669 * f-lang.c (value_f90_subarray): Change enum range_type to
670 range_flag and rename variables to match.
671 * parse.c (operator_length_standard): Likewise.
672 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
673 range_type to range_flag.
674 * rust-lang.c (rust_evaluate_funcall): Likewise.
675 (rust_range): Likewise.
676 (rust_compute_range): Likewise.
677 (rust_subscript): Likewise.
678
2f1b18db
AB
6792020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 * expprint.c (print_subexp_standard): Update to reflect changes to
682 enum range_type.
683 (dump_subexp_body_standard): Likewise.
684 * expression.h (enum range_type): Convert to a bit field enum, and
685 make the enum unsigned.
686 * f-exp.y (subrange): Update to reflect changes to enum
687 range_type.
688 * f-lang.c (value_f90_subarray): Likewise.
689 * parse.c (operator_length_standard): Likewise.
690 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
691 * rust-lang.c (rust_range): Likewise.
692 (rust_compute_range): Likewise.
693 (rust_subscript): Likewise.
694
a46d1843
SM
6952020-10-21 Simon Marchi <simon.marchi@efficios.com>
696
697 * infrun.c (displaced_step_in_progress_thread): Fix comment.
698 (displaced_step_in_progress): Fix comment.
699
c21f37a8
SM
7002020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
701
702 * gdbarch.sh (make_corefile_notes): Return unique pointer.
703 * gdbarch.c: Re-generate.
704 * gdbarch.h: Re-generate.
705 * gcore.c (write_gcore_file_1): Adjust.
706 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
707 constructor.
708 <note_data>: Change type to unique pointer.
709 <abort_iteration>: Change type to bool.
710 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
711 (fbsd_collect_thread_registers): Return void, adjust.
712 (struct fbsd_corefile_thread_data): Add construtor.
713 <note_data>: Change type to unique pointer.
714 (fbsd_corefile_thread): Adjust.
715 (fbsd_make_corefile_notes): Return unique pointer, adjust.
716 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
717 to unique pointer, adjust.
718 (struct linux_collect_regset_section_cb_data): Add constructor.
719 <note_data>: Change type to unique pointer.
720 <abort_iteration>: Change type to bool.
721 (linux_collect_thread_registers): Return void, adjust.
722 (struct linux_corefile_thread_data): Add constructor.
723 <note_data>: Change type to unique pointer.
724 (linux_corefile_thread): Adjust.
725 (linux_make_corefile_notes): Return unique pointer, adjust.
726
07fbbd01
SM
7272020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
730 * gdbarch.c: Re-generate.
731 * gdbarch.h: Re-generate.
732 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
733 bool.
734 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
735 Likewise.
736 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
737 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
738 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
739 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
740
39535193
SM
7412020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
742
743 * gdbarch.sh: Make generated predicates return bool.
744 * gdbarch.c: Re-generate.
745 * gdbarch.h: Re-generate.
746
ad523d01
TT
7472020-10-20 Tom Tromey <tom@tromey.com>
748
749 * varobj-iter.h (struct varobj_item): Remove typedef.
750
c4464ade
SM
7512020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * infrun.c (currently_stepping): Change int to bool
754 (maybe_software_singlestep): Likewise.
755 (show_stop_on_solib_events): Likewise.
756 (stepping_past_nonsteppable_watchpoint): Likewise.
757 (displaced_step_in_progress_any_inferior): Likewise.
758 (displaced_step_in_progress_thread): Likewise.
759 (keep_going_stepped_thread): Likewise.
760 (thread_still_needs_step_over): Likewise.
761 (start_step_over): Likewise.
762 (do_target_resume): Likewise.
763 (resume_1): Likewise.
764 (clear_proceed_status): Likewise.
765 (thread_still_needs_step_over_bp): Likewise.
766 (proceed): Likewise.
767 (switch_back_to_stepped_thread): Likewise.
768 (adjust_pc_after_break): Likewise.
769 (stepped_in_from): Likewise.
770 (handle_stop_requested): Likewise.
771 (handle_syscall_event): Likewise.
772 (handle_no_resumed): Likewise.
773 (handle_inferior_event): Likewise.
774 (finish_step_over): Likewise.
775 (handle_signal_stop): Likewise.
776 (process_event_stop_test): Likewise.
777
2eb20436
SM
7782020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * infrun.c (get_displaced_stepping_state): Fix comment.
781
e0c45ded
AS
7822020-10-20 Andreas Schwab <schwab@linux-m68k.org>
783
784 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
785
22cc388e
TT
7862020-10-19 Tom Tromey <tromey@adacore.com>
787
788 PR tui/26719
789 * tui/tui-winsource.h (struct tui_source_window_base)
790 <refresh_window>: Rename from refresh_pad.
791 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
792 Rename from refresh_pad.
793 (tui_source_window_base::show_source_content)
794 (tui_source_window_base::do_scroll_horizontal): Update.
795
3c6eb4d4
TBA
7962020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
797
798 * thread.c (_initialize_thread): Fine-tune the help text of
799 'info threads'.
800
26703721
TBA
8012020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
802
803 * frame.c: Remove the unused 'uinteger_option_def' type alias.
804
61c26be8
MS
8052020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
806
807 * breakpoint.c (handle_jit_event): Add an argument, change how
808 `jit_event_handler` is called.
809
932539d7
TT
8102020-10-17 Tom Tromey <tom@tromey.com>
811
812 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
813 (scan_xcoff_symtab): Update.
814 * psymtab.h (class psymtab_storage) <global_psymbols,
815 static_psymbols, current_global_psymbols,
816 current_static_psymbols>: Remove.
817 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
818 (match_partial_symbol, lookup_partial_symbol): Update.
819 (print_partial_symbols): Change parameters.
820 (dump_psymtab, recursively_search_psymtabs)
821 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
822 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
823 (concat): Remove.
824 (end_psymtab_common): Simplify.
825 (append_psymbol_to_list): Change parameters.
826 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
827 (init_psymbol_list): Simplify.
828 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
829 * psympriv.h (struct partial_symtab) <empty>: New method.
830 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
831 Remove.
832 <global_psymbols, static_psymbols>: New members.
833 <add_psymbol>: New methods.
834 (add_psymbol_to_list): Don't declare.
835 (psymbol_placement): Move earlier.
836 * mdebugread.c (parse_partial_symbols): Update.
837 (handle_psymbol_enumerators): Change parameters.
838 (mdebug_expand_psymtab): Update.
839 * dwarf2/read.c (process_psymtab_comp_unit_reader)
840 (add_partial_symbol): Update.
841 * dwarf2/index-write.c (write_psymbols): Change parameters.
842 (write_one_signatured_type): Update.
843 (recursively_count_psymbols): Update.
844 (recursively_write_psymbols): Update.
845 (class debug_names) <recursively_write_psymbols>: Update.
846 <write_psymbols>: Change parameters.
847 <write_one_signatured_type>: Update.
848 * dbxread.c (read_dbx_symtab): Update.
849 (dbx_end_psymtab): Use partial_symtab::empty.
850 * ctfread.c (struct ctf_context) <pst>: New member.
851 (create_partial_symtab): Set it.
852 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
853 (scan_partial_symbols): Use the psymtab's context. Update.
854
cfabbd35
TT
8552020-10-17 Tom Tromey <tom@tromey.com>
856
857 * valprint.c (generic_value_print): Remove comment.
858 * m2-valprint.c (m2_value_print_inner): Remove comment.
859 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
860 type.
861
520596f2
TV
8622020-10-17 Tom de Vries <tdevries@suse.de>
863
864 PR symtab/26317
865 * source.c (select_source_symtab): Handling sal.symtab == NULL for
866 symbol main.
867
76547ab3
TV
8682020-10-14 Tom de Vries <tdevries@suse.de>
869
870 PR gdb/26733
871 * solib.c (solib_contains_address_p): Handle
872 'solib->sections == nullptr'.
873
d3a07122
SM
8742020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
875
876 PR gdb/26642
877 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
878 target can't do async.
879 * target.c (target_wait): Assert that we don't pass
880 TARGET_WNOHANG to a target that can't async.
881
1b71cfcf
KR
8822020-10-13 Kamil Rytarowski <n54@gmx.com>
883
884 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
885 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
886 * alpha-bsd-nat.c: Adjust include.
887 * alpha-bsd-tdep.h: Adjust comment.
888 * alpha-nbsd-tdep.c: Rename to ...
889 * alpha-netbsd-tdep.c: ... this, adjust include.
890 * amd64-nbsd-nat.c: Rename to ...
891 * amd64-netbsd-nat.c: ... this, adjust include.
892 * amd64-nbsd-tdep.c: Rename to ...
893 * amd64-netbsd-tdep.c: ... this, adjust include.
894 * amd64-tdep.h: Adjust include.
895 * arm-nbsd-nat.c: Rename to ...
896 * arm-netbsd-nat.c: ... this, adjust include.
897 * arm-nbsd-tdep.c: Rename to ...
898 * arm-netbsd-tdep.c: ... this, adjust include.
899 * arm-nbsd-tdep.h: Rename to ...
900 * arm-netbsd-tdep.h: ... this, adjust include.
901 * configure.nat: Adjust file lists.
902 * configure.tgt: Likewise.
903 * hppa-nbsd-nat.c: Rename to ...
904 * hppa-netbsd-nat.c: ... this, adjust include.
905 * hppa-nbsd-tdep.c: Rename to ...
906 * hppa-netbsd-tdep.c: ... this, adjust include.
907 * i386-nbsd-nat.c: Rename to ...
908 * i386-netbsd-nat.c: ... this, adjust include.
909 * i386-nbsd-tdep.c: Rename to ...
910 * i386-netbsd-tdep.c: ... this, adjust include.
911 * m68k-bsd-nat.c: Adjust include.
912 * mips-nbsd-nat.c: Rename to ...
913 * mips-netbsd-nat.c: ... this, adjust include.
914 * mips-nbsd-tdep.c: Rename to ...
915 * mips-netbsd-tdep.c: ... this, adjust include.
916 * mips-nbsd-tdep.h: Rename to ...
917 * mips-netbsd-tdep.h: ... this.
918 * nbsd-nat.c: Rename to ...
919 * netbsd-nat.c: ... this, adjust include.
920 * nbsd-nat.h: Rename to ...
921 * netbsd-nat.h: ... this, adjust include.
922 * nbsd-tdep.c: Rename to ...
923 * netbsd-tdep.c: ... this, adjust include.
924 * nbsd-tdep.h: Rename to ...
925 * netbsd-tdep.h: ... this.
926 * ppc-nbsd-nat.c: Rename to ...
927 * ppc-netbsd-nat.c: ... this, adjust include.
928 * ppc-nbsd-tdep.c: Rename to ...
929 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
930 * ppc-nbsd-tdep.h: Rename to ...
931 * ppc-netbsd-tdep.h: ... this.
932 * sh-nbsd-nat.c: Rename to ...
933 * sh-netbsd-nat.c: ... this, adjust include.
934 * sh-nbsd-tdep.c: Rename to ...
935 * sh-netbsd-tdep.c: ... this, adjust include.
936 * sparc-nbsd-nat.c: Rename to ...
937 * sparc-netbsd-nat.c: ... this.
938 * sparc-nbsd-tdep.c: Rename to ...
939 * sparc-netbsd-tdep.c: ... this, adjust include.
940 * sparc64-nbsd-nat.c: Rename to ...
941 * sparc64-netbsd-nat.c: ... this.
942 * sparc64-nbsd-tdep.c: Rename to ...
943 * sparc64-netbsd-tdep.c: ... this, adjust include.
944 * sparc64-tdep.h: Adjust comment.
945 * vax-bsd-nat.c: Adjust include.
946 * vax-nbsd-tdep.c: Rename to ...
947 * vax-netbsd-tdep.c: ... this, adjust include.
948
d7a78e5c
TT
9492020-10-12 Tom Tromey <tom@tromey.com>
950
951 * target.h (struct target_ops) <get_section_table>: Update.
952 (target_get_section_table): Update.
953 * target.c (target_get_section_table, target_section_by_addr)
954 (memory_xfer_partial_1): Update.
955 * target-section.h (target_section_table): Now an alias.
956 * target-delegates.c: Rebuild.
957 * target-debug.h (target_debug_print_target_section_table_p):
958 Rename from target_debug_print_struct_target_section_table_p.
959 * symfile.c (build_section_addr_info_from_section_table): Update.
960 * solib.c (solib_map_sections, solib_contains_address_p): Update.
961 * solib-svr4.c (scan_dyntag): Update.
962 * solib-dsbt.c (scan_dyntag): Update.
963 * remote.c (remote_target::remote_xfer_live_readonly_partial):
964 Update.
965 * record-full.c (record_full_core_target::xfer_partial): Update.
966 * progspace.h (struct program_space) <target_sections>: Update.
967 * exec.h (print_section_info): Update.
968 * exec.c (exec_target::close, build_section_table)
969 (add_target_sections, add_target_sections_of_objfile)
970 (remove_target_sections, exec_on_vfork)
971 (section_table_available_memory)
972 (section_table_xfer_memory_partial)
973 (exec_target::get_section_table, exec_target::xfer_partial)
974 (print_section_info, set_section_command)
975 (exec_set_section_address, exec_target::has_memory): Update.
976 * corelow.c (core_target::build_file_mappings)
977 (core_target::xfer_partial, core_target::info_proc_mappings)
978 (core_target::info_proc_mappings): Update.
979 * bfd-target.c (class target_bfd): Update
980
eda214ce
TT
9812020-10-12 Tom Tromey <tom@tromey.com>
982
983 * progspace.c (program_space::~program_space): Don't call
984 clear_section_table.
985 * exec.h (clear_section_table): Don't declare.
986 * exec.c (exec_target::close): Update.
987 (clear_section_table): Remove.
988
91840ee3
TT
9892020-10-12 Tom Tromey <tom@tromey.com>
990
991 * exec.c (add_target_sections_of_objfile): Simplify.
992
2d128614
TT
9932020-10-12 Tom Tromey <tom@tromey.com>
994
995 * solib.c (solib_map_sections): Update.
996 * record-full.c (record_full_core_open_1): Update.
997 * exec.h (build_section_table): Return a target_section_table.
998 * exec.c (exec_file_attach): Update.
999 (build_section_table): Return a target_section_table.
1000 * corelow.c (core_target::core_target): Update.
1001 * bfd-target.c (target_bfd::target_bfd): Update.
1002
bb2a6777
TT
10032020-10-12 Tom Tromey <tom@tromey.com>
1004
1005 * target.c (target_section_by_addr, memory_xfer_partial_1):
1006 Update.
1007 * target-section.h (struct target_section_table): Use
1008 std::vector.
1009 * symfile.h (build_section_addr_info_from_section_table): Take a
1010 target_section_table.
1011 * symfile.c (build_section_addr_info_from_section_table): Take a
1012 target_section_table.
1013 * solist.h (struct so_list) <sections>: Change type.
1014 <sections_end>: Remove.
1015 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1016 (solib_contains_address_p): Update.
1017 * solib-svr4.c (scan_dyntag): Update.
1018 * solib-dsbt.c (scan_dyntag): Update.
1019 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1020 Update.
1021 * record-full.c (record_full_core_start, record_full_core_end):
1022 Remove.
1023 (record_full_core_sections): New global.
1024 (record_full_core_open_1, record_full_core_target::xfer_partial):
1025 Update.
1026 * exec.h (build_section_table, section_table_xfer_memory_partial)
1027 (add_target_sections): Take a target_section_table.
1028 * exec.c (exec_file_attach, clear_section_table): Update.
1029 (resize_section_table): Remove.
1030 (build_section_table, add_target_sections): Take a
1031 target_section_table.
1032 (add_target_sections_of_objfile, remove_target_sections)
1033 (exec_on_vfork): Update.
1034 (section_table_available_memory): Take a target_section_table.
1035 (section_table_read_available_memory): Update.
1036 (section_table_xfer_memory_partial): Take a target_section_table.
1037 (print_section_info, set_section_command)
1038 (exec_set_section_address, exec_target::has_memory): Update.
1039 * corelow.c (class core_target) <m_core_section_table,
1040 m_core_file_mappings>: Remove braces.
1041 <~core_target>: Remove.
1042 (core_target::core_target): Update.
1043 (core_target::~core_target): Remove.
1044 (core_target::build_file_mappings)
1045 (core_target::xfer_memory_via_mappings)
1046 (core_target::xfer_partial, core_target::info_proc_mappings):
1047 Update.
1048 * bfd-target.c (target_bfd::xfer_partial): Update.
1049 (target_bfd::target_bfd): Update.
1050 (target_bfd::~target_bfd): Remove.
1051
7b466b10
TT
10522020-10-12 Tom Tromey <tom@tromey.com>
1053
1054 * target.h (struct target_section, struct target_section_table):
1055 Move to target-section.h.
1056 * target-section.h: New file.
1057
87a37e5e
PA
10582020-10-12 Pedro Alves <pedro@palves.net>
1059
1060 PR exp/26602
1061 * valops.c (struct struct_field_searcher): New.
1062 (update_search_result): Rename to ...
1063 (struct_field_searcher::update_result): ... this. Simplify
1064 prototype. Record all found fields.
1065 (do_search_struct_field): Rename to ...
1066 (struct_field_searcher::search): ... this. Simplify prototype.
1067 Maintain stack of visited baseclass path. Call update_result for
1068 fields too. Keep searching fields in baseclasses instead of
1069 stopping at the first found field.
1070 (search_struct_field): Use struct_field_searcher. When looking
1071 for fields, report ambiguous access attempts.
1072
9370fd51
AB
10732020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1074
1075 * frame.c (inside_main_func): Check full symbols as well as
1076 minimal symbols.
1077
59c8a30b
JB
10782020-10-09 Joel Brobecker <brobecker@adacore.com>
1079
1080 * ada-lang.c (advance_wild_match): Rewrite the function's
1081 description. Change the type of target0, t0 and t1 to char.
1082
7c184d33
TT
10832020-10-09 Tom Tromey <tromey@adacore.com>
1084
1085 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1086
5c4258f4
TT
10872020-10-09 Tom Tromey <tromey@adacore.com>
1088
1089 * ada-lang.h (ada_encode): Return std::string.
1090 * ada-lang.c (ada_encode_1): Return std::string.
1091 (ada_encode): Likewise.
1092 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1093 Update.
1094 * ada-exp.y (block_lookup, write_var_or_type): Update.
1095
3d87245c
HD
10962020-10-09 Hannes Domani <ssbssa@yahoo.de>
1097
1098 PR exp/26714
1099 * printcmd.c (print_formatted): Handle void results as
1100 unformatted prints.
1101
bbb826f5
AB
11022020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * arch/aarch32.c (aarch32_create_target_description): Release the
1105 target_desc_up as late as possible.
1106 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1107 * arch/amd64.c (amd64_create_target_description): Likewise.
1108 * arch/arc.c (arc_create_target_description): Return a
1109 target_desc_up, don't release it.
1110 * arch/arc.h (arc_create_target_description): Update declaration.
1111 (arc_lookup_target_description): Move target_desc_up into the
1112 cache, and return a borrowed pointer.
1113 * arch/arm.c (arm_create_target_description): Release the
1114 target_desc_up as late as possible.
1115 * arch/i386.c (i386_create_target_description): Likewise.
1116 * arch/riscv.h (riscv_create_target_description): Update
1117 declaration to match definition.
1118 * arch/tic6x.c (tic6x_create_target_description): Release the
1119 target_desc_up as late as possible.
1120
361cb219
AB
11212020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1124 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1125
f5c4b229
JV
11262020-10-09 Jan Vrany <jan.vrany@labware.com>
1127
1128 * source.c (directory_command): Notify observers that "directories"
1129 parameter has changed.
1130
b2701685
TT
11312020-10-08 Tom Tromey <tom@tromey.com>
1132
1133 * cli/cli-cmds.c (print_disassembly): Style function name and
1134 addresses. Add _() wrappers.
1135
ada508b6
SV
11362020-10-08 Shahab Vahedi <shahab@synopsys.com>
1137
1138 * NEWS: Mention ARC support in GDBserver.
1139
51a948fd
AB
11402020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * arch/aarch32.c (aarch32_create_target_description): Release
1143 unique_ptr returned from allocate_target_description.
1144 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1145 * arch/amd64.c (amd64_create_target_description): Likewise.
1146 * arch/arc.c (arc_create_target_description): Likewise.
1147 * arch/arm.c (arm_create_target_description): Likewise.
1148 * arch/i386.c (i386_create_target_description): Likewise.
1149 * arch/riscv.c (riscv_create_target_description): Update return
1150 type. Handle allocate_target_description returning a unique_ptr.
1151 (riscv_lookup_target_description): Update to handle unique_ptr.
1152 * arch/tic6x.c (tic6x_create_target_description): Release
1153 unique_ptr returned from allocate_target_description.
1154 * features/microblaze-with-stack-protect.c: Regenerate.
1155 * features/microblaze.c: Regenerate.
1156 * features/mips-dsp-linux.c: Regenerate.
1157 * features/mips-linux.c: Regenerate.
1158 * features/mips64-dsp-linux.c: Regenerate.
1159 * features/mips64-linux.c: Regenerate.
1160 * features/nds32.c: Regenerate.
1161 * features/nios2.c: Regenerate.
1162 * features/or1k.c: Regenerate.
1163 * features/rs6000/powerpc-32.c: Regenerate.
1164 * features/rs6000/powerpc-32l.c: Regenerate.
1165 * features/rs6000/powerpc-403.c: Regenerate.
1166 * features/rs6000/powerpc-403gc.c: Regenerate.
1167 * features/rs6000/powerpc-405.c: Regenerate.
1168 * features/rs6000/powerpc-505.c: Regenerate.
1169 * features/rs6000/powerpc-601.c: Regenerate.
1170 * features/rs6000/powerpc-602.c: Regenerate.
1171 * features/rs6000/powerpc-603.c: Regenerate.
1172 * features/rs6000/powerpc-604.c: Regenerate.
1173 * features/rs6000/powerpc-64.c: Regenerate.
1174 * features/rs6000/powerpc-64l.c: Regenerate.
1175 * features/rs6000/powerpc-7400.c: Regenerate.
1176 * features/rs6000/powerpc-750.c: Regenerate.
1177 * features/rs6000/powerpc-860.c: Regenerate.
1178 * features/rs6000/powerpc-altivec32.c: Regenerate.
1179 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1180 * features/rs6000/powerpc-altivec64.c: Regenerate.
1181 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1182 * features/rs6000/powerpc-e500.c: Regenerate.
1183 * features/rs6000/powerpc-e500l.c: Regenerate.
1184 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1185 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1186 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1187 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1188 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1189 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1190 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1191 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1192 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1193 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1194 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1195 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1196 * features/rs6000/powerpc-vsx32.c: Regenerate.
1197 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1198 * features/rs6000/powerpc-vsx64.c: Regenerate.
1199 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1200 * features/rs6000/rs6000.c: Regenerate.
1201 * features/rx.c: Regenerate.
1202 * features/s390-gs-linux64.c: Regenerate.
1203 * features/s390-linux32.c: Regenerate.
1204 * features/s390-linux32v1.c: Regenerate.
1205 * features/s390-linux32v2.c: Regenerate.
1206 * features/s390-linux64.c: Regenerate.
1207 * features/s390-linux64v1.c: Regenerate.
1208 * features/s390-linux64v2.c: Regenerate.
1209 * features/s390-te-linux64.c: Regenerate.
1210 * features/s390-tevx-linux64.c: Regenerate.
1211 * features/s390-vx-linux64.c: Regenerate.
1212 * features/s390x-gs-linux64.c: Regenerate.
1213 * features/s390x-linux64.c: Regenerate.
1214 * features/s390x-linux64v1.c: Regenerate.
1215 * features/s390x-linux64v2.c: Regenerate.
1216 * features/s390x-te-linux64.c: Regenerate.
1217 * features/s390x-tevx-linux64.c: Regenerate.
1218 * features/s390x-vx-linux64.c: Regenerate.
1219 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1220 from allocate_target_description.
1221 * target-descriptions.c (allocate_target_description): Update
1222 return type.
1223 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1224 allocate_target_description.
1225
485c47e5
TT
12262020-10-07 Tom Tromey <tromey@adacore.com>
1227
1228 * unittests/search-memory-selftests.c: New file.
1229 * Makefile.in (SELFTESTS_SRCS): Add
1230 unittests/search-memory-selftests.c.
1231
3a135a91
TT
12322020-10-07 Tom Tromey <tromey@adacore.com>
1233
1234 PR gdb/16930:
1235 * findcmd.c (_initialize_mem_search): Mention that the range is
1236 inclusive.
1237
4a72de73
TT
12382020-10-07 Tom Tromey <tromey@adacore.com>
1239
1240 * target.h (simple_search_memory): Don't declare.
1241 * target.c (simple_search_memory): Move to gdbsupport.
1242 (default_search_memory): Update.
1243 * remote.c (remote_target::search_memory): Update.
1244
a038ffd8
SM
12452020-10-07 Simon Marchi <simon.marchi@efficios.com>
1246
1247 * Makefile.in (COMPILE): Add CXXFLAGS.
1248 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1249 (check-headers): Add CXXFLAGS.
1250
cc463201
AK
12512020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1252
1253 * arc-linux-tdep.h: New file.
1254 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1255 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1256 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1257 arc_linux_gregset, arc_linux_v2_regset,
1258 arc_linux_iterate_over_regset_sections,
1259 arc_linux_core_read_description): Implement.
1260 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1261 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1262 (arc_gdbarch_features_create): Add.
1263 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1264
e4bd363f
SV
12652020-10-07 Shahab Vahedi <shahab@synopsys.com>
1266
1267 * arch/arc.h: Rename "arc_gdbarch_features" to
1268 "arc_arch_features".
1269 * arc-tdep.h: Likewise.
1270 * arc-tdep.c: Likewise.
1271
b68bef99
TBA
12722020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1273
1274 * infcmd.c (attach_command): Remove the redundant call to
1275 `clear_proceed_status`.
1276
4641551a
KR
12772020-10-07 Kamil Rytarowski <n54@gmx.com>
1278
1279 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1280
91e5e8db
KR
12812020-10-07 Kamil Rytarowski <n54@gmx.com>
1282
1283 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1284 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1285 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1286
64c03bdb
SM
12872020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1288
1289 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1290 (_initialize_break_catch_sig): Don't allocate array.
1291
31a8f60f
AB
12922020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * symtab.c (find_pc_line): Return unmapped addresses when the
1295 requested address is also unmapped.
1296
9e6dbd8b
SM
12972020-10-05 Simon Marchi <simon.marchi@efficios.com>
1298
1299 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1300 tui/tui-out.h.
1301
a1d217e8
SM
13022020-10-05 Simon Marchi <simon.marchi@efficios.com>
1303
1304 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1305 type::is_vector instead of TYPE_VECTOR.
1306
7d144117
SM
13072020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1308
1309 * auto-load.c (auto_load_objfile_script_1): Don't use
1310 debugfile_holder as temporary variable when stripping drive
1311 letter.
1312
cd096ec8
HD
13132020-10-05 Hannes Domani <ssbssa@yahoo.de>
1314
1315 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1316 Add TYPE_CODE_COMPLEX.
1317 (amd64_windows_return_value): Fix types returned via XMM0.
1318
b58e7f72
AH
13192020-10-05 Alan Hayward <alan.hayward@arm.com>
1320
1321 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1322 AArch64/ARM maintainers.
1323
8d378f27
SM
13242020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1325
1326 * NEWS: Mention set/show debug event-loop.
1327
d5519913
TT
13282020-10-02 Tom Tromey <tromey@adacore.com>
1329
1330 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1331 REG_EXTENDED.
1332
18b67edc
SM
13332020-10-02 Simon Marchi <simon.marchi@efficios.com>
1334
1335 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1336 * procfs.c (procfs_inferior_created): Remove.
1337 (_initialize_procfs): Don't register procfs_inferior_created.
1338
6b01403b
SM
13392020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * async-event.c (invoke_async_signal_handlers): Add debug
1342 print.
1343 (check_async_event_handlers): Likewise.
1344 * event-top.c (show_debug_event_loop): New function.
1345 (_initialize_event_top): Register "set debug event-loop"
1346 setting.
1347
ba988419
SM
13482020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1349
1350 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1351 * debug.h: Remove.
1352 * infrun.c: Include gdbsupport/common-debug.h.
1353 * linux-nat.c: Likewise.
1354
db20ebdf
SM
13552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1356
1357 * async-event.h (create_async_signal_handler): Add name
1358 parameter.
1359 (create_async_event_handler): Likewise.
1360 * async-event.c (struct async_signal_handler) <name>: New field.
1361 (struct async_event_handler) <name>: New field.
1362 (create_async_signal_handler): Assign name.
1363 (create_async_event_handler): Assign name.
1364 * event-top.c (async_init_signals): Pass name when creating
1365 handler.
1366 * infrun.c (_initialize_infrun): Likewise.
1367 * record-btrace.c (record_btrace_push_target): Likewise.
1368 * record-full.c (record_full_open): Likewise.
1369 * remote-notif.c (remote_notif_state_allocate): Likewise.
1370 * remote.c (remote_target::open_1): Likewise.
1371 * tui/tui-win.c (tui_initialize_win): Likewise.
1372
2554f6f5
SM
13732020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1374
1375 * async-event.c (initialize_async_signal_handlers): Pass name to
1376 add_file_handler
1377 * event-top.c (ui_register_input_event_handler): Likewise.
1378 * linux-nat.c (linux_nat_target::async): Likewise.
1379 * run-on-main-thread.c (_initialize_run_on_main_thread):
1380 Likewise
1381 * ser-base.c (reschedule): Likewise.
1382 (ser_base_async): Likewise.
1383 * tui/tui-io.c: Likewise.
1384 * top.h (struct ui) <num>: New field.
1385 * top.c (highest_ui_num): New variable.
1386 (ui::ui): Initialize num.
1387
a7aba266
SM
13882020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1389
1390 * observable.h <inferior_created>: Remove parameters. Update all
1391 listeners.
1392 * inferior.h (post_create_inferior): Remove target parameter.
1393 Update all callers.
1394
048fde1e 13952020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1396
1397 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1398 and DW_MACRO_undef_strx.
1399 (dwarf_decode_macros): Likewise
1400 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1401 which is the value of DW_AT_str_offsets_base.
1402 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1403 str_offsets_base.
1404
064280be
KR
14052020-10-01 Kamil Rytarowski <n54@gmx.com>
1406
1407 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1408
6ff33035
KR
14092020-10-01 Kamil Rytarowski <n54@gmx.com>
1410
1411 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1412 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1413
1eb6eb79
KR
14142020-10-01 Kamil Rytarowski <n54@gmx.com>
1415
1416 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1417
95eb9e54
TV
14182020-09-30 Tom de Vries <tdevries@suse.de>
1419
1420 PR symtab/26683
1421 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1422
cae21f8e
TT
14232020-09-30 Tom Tromey <tromey@adacore.com>
1424
1425 * dwarf2/read.c (handle_variant): Use constant_value.
1426
529908cb
TT
14272020-09-29 Tom Tromey <tom@tromey.com>
1428
1429 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1430 (read_file_scope, dwarf2_get_pc_bounds)
1431 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1432 (read_structure_type, handle_struct_member_die)
1433 (read_enumeration_type, read_array_type, read_set_type)
1434 (read_tag_pointer_type, read_tag_reference_type)
1435 (read_subroutine_type, read_base_type, read_subrange_type)
1436 (read_full_die_1, partial_die_info::read)
1437 (partial_die_info::read, by, new_symbol)
1438 (dwarf2_const_value_data, dwarf2_const_value_attr)
1439 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1440 (prepare_one_comp_unit): Update.
1441 * dwarf2/attribute.h (DW_UNSND): Remove.
1442
c45bc3f8
TT
14432020-09-29 Tom Tromey <tom@tromey.com>
1444
1445 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1446 (read_subroutine_type, partial_die_info::read)
1447 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1448 (dwarf2_add_member_fn): Update.
1449 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1450 * dwarf2/attribute.c (attribute::as_boolean): New method.
1451
23dca5c3
TT
14522020-09-29 Tom Tromey <tom@tromey.com>
1453
1454 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1455 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1456 method.
1457 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1458
52c14d11
TT
14592020-09-29 Tom Tromey <tom@tromey.com>
1460
1461 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1462 the attribute's form.
1463
e8e5c158
TT
14642020-09-29 Tom Tromey <tom@tromey.com>
1465
1466 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1467 (dwarf2_add_member_fn): Update.
1468 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1469 * dwarf2/attribute.c (attribute::defaulted): New method, from
1470 is_valid_DW_AT_defaulted.
1471
d4df075e
TT
14722020-09-29 Tom Tromey <tom@tromey.com>
1473
1474 * dwarf2/read.c (dw2_get_file_names_reader)
1475 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1476 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1477 (dwarf2_symbol_mark_computed): Use as_unsigned.
1478 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1479 method.
1480 <form_is_section_offset>: Update comment.
1481
bf23a268
TT
14822020-09-29 Tom Tromey <tom@tromey.com>
1483
1484 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1485 dwarf2_default_access_attribute. Look up attribute.
1486 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1487 Update.
1488
7a5f294d
TT
14892020-09-29 Tom Tromey <tom@tromey.com>
1490
1491 * dwarf2/read.c (skip_one_die): Update.
1492 (read_full_die_1): Change how reprocessing is done.
1493 (partial_die_info::read): Update.
1494 (read_attribute_value): Remove need_reprocess parameter.
1495 (read_attribute): Likewise.
1496 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1497 New method.
1498
36d378cf
TT
14992020-09-29 Tom Tromey <tom@tromey.com>
1500
1501 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1502 (dwarf2_const_value_attr, dump_die_shallow)
1503 (dwarf2_fetch_constant_bytes): Update.
1504 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1505 comment.
1506 <set_address>: New method.
1507 (DW_ADDR): Remove.
1508 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1509 (attribute::as_string, attribute::as_address): Add assert.
1510
fe56917a
TT
15112020-09-29 Tom Tromey <tom@tromey.com>
1512
1513 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1514 (read_attribute_reprocess, read_attribute_value): Update.
1515 (read_attribute): Clear requires_reprocessing.
1516 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1517 form_requires_reprocessing>: New methods.
1518 <string_init>: Clear requires_reprocessing.
1519 <set_unsigned_reprocess>: New method.
1520 <name>: Shrink by one bit.
1521 <requires_reprocessing>: New member.
1522 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1523 method.
1524
414ad644
TT
15252020-09-29 Tom Tromey <tom@tromey.com>
1526
1527 * dwarf2/read.c (read_attribute_value): Update.
1528 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1529 set_unsigned>: New methods.
1530 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1531
1bc397c5
TT
15322020-09-29 Tom Tromey <tom@tromey.com>
1533
1534 * dwarf2/read.c (get_alignment, read_array_order)
1535 (read_attribute_value, dwarf2_const_value_attr)
1536 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1537 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1538 New methods.
1539 (DW_SND): Remove.
1540
630ed6b9
TT
15412020-09-29 Tom Tromey <tom@tromey.com>
1542
1543 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1544 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1545 Update.
1546 * dwarf2/attribute.h (struct attribute) <as_signature,
1547 set_signature>: New methods.
1548 (DW_SIGNATURE): Remove.
1549
9d2246fc
TT
15502020-09-29 Tom Tromey <tom@tromey.com>
1551
1552 * dwarf2/read.c (read_call_site_scope)
1553 (handle_data_member_location, dwarf2_add_member_fn)
1554 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1555 (partial_die_info::read, read_attribute_value)
1556 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1557 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1558 (dwarf2_symbol_mark_computed): Update.
1559 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1560 methods.
1561 (DW_BLOCK): Remove.
1562 * dwarf2/attribute.c (attribute::form_is_block): Add
1563 DW_FORM_data16.
1564
c6481205
TT
15652020-09-29 Tom Tromey <tom@tromey.com>
1566
1567 * dwarf2/read.c (read_cutu_die_from_dwo)
1568 (read_attribute_reprocess, read_attribute_value, read_attribute)
1569 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1570 (dwarf2_fetch_constant_bytes): Update.
1571 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1572 <set_string_noncanonical, set_string_canonical>: New methods.
1573 <string_is_canonical>: Update comment.
1574 <canonical_string_p>: Add assert.
1575 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1576 * dwarf2/attribute.c (attribute::form_is_string): New method.
1577 (attribute::string): Use it.
1578
3b64bf15
TT
15792020-09-29 Tom Tromey <tom@tromey.com>
1580
1581 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1582 (dump_die_shallow): Use canonical_string_p.
1583 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1584 method.
1585
2c830f54
TT
15862020-09-29 Tom Tromey <tom@tromey.com>
1587
1588 * dwarf2/read.c (partial_die_info::read)
1589 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1590 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1591 attribute::as_string.
1592
6c412691
TT
15932020-09-29 Tom Tromey <tom@tromey.com>
1594
1595 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1596 DW_ADDR.
1597 (attribute::string): Don't use DW_STRING.
1598 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1599 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1600
95f982e5
TT
16012020-09-29 Tom Tromey <tom@tromey.com>
1602
1603 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1604 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1605 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1606 * dwarf2/attribute.h (struct attribute): Rename methods.
1607 * dwarf2/attribute.c (attribute::as_address): Rename from
1608 value_as_address.
1609 (attribute::as_string): Rename from value_as_string.
1610
f800b00e
TT
16112020-09-29 Tom Tromey <tom@tromey.com>
1612
1613 * dwarf2/read.c (partial_die_info::read) <case
1614 DW_AT_linkage_name>: Use value_as_string.
1615 (dwarf2_string_attr): Use value_as_string.
1616 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1617 method.
1618 * dwarf2/attribute.c (attribute::value_as_string): New method.
1619
de38d64a
PA
16202020-09-29 Pedro Alves <pedro@palves.net>
1621
1622 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1623 defined before using '#pragma GCC diagnostic' instead of checking
1624 __clang__.
1625
9aed480c
TT
16262020-09-28 Tom Tromey <tom@tromey.com>
1627
1628 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1629 (handle_signal_stop): Update.
1630 * procfs.c (procfs_target::insert_watchpoint): Update.
1631 * target.h (target_have_steppable_watchpoint): Now a function.
1632
8a3ecb79
TT
16332020-09-28 Tom Tromey <tom@tromey.com>
1634
1635 * infrun.c (set_schedlock_func): Update.
1636 * target.h (target_can_lock_scheduler): Now a function.
1637
55f6301a
TT
16382020-09-28 Tom Tromey <tom@tromey.com>
1639
1640 * inferior.h (class inferior) <has_execution>: Update.
1641 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1642 * valops.c (find_function_in_inferior)
1643 (value_allocate_space_in_inferior): Update.
1644 * top.c (kill_or_detach): Update.
1645 * target.c (target_preopen, set_target_permissions): Update.
1646 (target_has_execution_current): Remove.
1647 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1648 Update.
1649 * solib.c (update_solib_list, reload_shared_libraries): Update.
1650 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1651 * solib-dsbt.c (enable_break): Update.
1652 * score-tdep.c (score7_fetch_inst): Update.
1653 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1654 Update.
1655 * remote.c (remote_target::start_remote)
1656 (remote_target::remote_check_symbols, remote_target::open_1)
1657 (remote_target::remote_detach_1, remote_target::verify_memory)
1658 (remote_target::xfer_partial, remote_target::read_description)
1659 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1660 * record-full.c (record_full_open_1): Update.
1661 * record-btrace.c (record_btrace_target_open): Update.
1662 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1663 (value_nsstring): Update.
1664 * linux-thread-db.c (add_thread_db_info)
1665 (thread_db_find_new_threads_silently, check_thread_db_callback)
1666 (try_thread_db_load_1, record_thread): Update.
1667 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1668 Update.
1669 * linux-fork.c (checkpoint_command): Update.
1670 * infrun.c (set_non_stop, set_observer_mode)
1671 (check_multi_target_resumption, for_each_just_stopped_thread)
1672 (maybe_remove_breakpoints, normal_stop)
1673 (class infcall_suspend_state): Update.
1674 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1675 (info_program_command, attach_command): Update.
1676 * infcall.c (call_function_by_hand_dummy): Update.
1677 * inf-loop.c (inferior_event_handler): Update.
1678 * gcore.c (gcore_command, derive_heap_segment): Update.
1679 * exec.c (exec_file_command): Update.
1680 * eval.c (evaluate_subexp): Update.
1681 * compile/compile.c (compile_to_object): Update.
1682 * cli/cli-dump.c (restore_command): Update.
1683 * breakpoint.c (update_watchpoint)
1684 (update_inserted_breakpoint_locations)
1685 (insert_breakpoint_locations, get_bpstat_thread): Update.
1686 * target.h (target_has_execution): Remove macro.
1687 (target_has_execution_current): Don't declare.
1688 (target_has_execution): Rename from target_has_execution_1. Add
1689 argument default.
1690
05374cfd
TT
16912020-09-28 Tom Tromey <tom@tromey.com>
1692
1693 * mi/mi-main.c (exec_reverse_continue)
1694 (mi_cmd_list_target_features): Update.
1695 * infrun.c (set_exec_direction_func): Update.
1696 * target.c (default_execution_direction): Update.
1697 * reverse.c (exec_reverse_once): Update.
1698 * target.h (target_can_execute_reverse): Now a function.
1699
9dccd06e
TT
17002020-09-28 Tom Tromey <tom@tromey.com>
1701
1702 * tui/tui-regs.c (tui_get_register)
1703 (tui_data_window::show_registers): Update.
1704 * thread.c (scoped_restore_current_thread::restore)
1705 (scoped_restore_current_thread::scoped_restore_current_thread):
1706 Update.
1707 * regcache-dump.c (regcache_print): Update.
1708 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1709 Update.
1710 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1711 * mep-tdep.c (current_me_module, current_options): Update.
1712 * linux-thread-db.c (thread_db_load): Update.
1713 * infcmd.c (registers_info, info_vector_command)
1714 (info_float_command): Update.
1715 * ia64-tdep.c (ia64_frame_prev_register)
1716 (ia64_sigtramp_frame_prev_register): Update.
1717 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1718 * gcore.c (derive_stack_segment): Update.
1719 * frame.c (get_current_frame, has_stack_frames): Update.
1720 * findvar.c (language_defn::read_var_value): Update.
1721 * arm-tdep.c (arm_pc_is_thumb): Update.
1722 * target.c (target_has_registers): Rename from
1723 target_has_registers_1.
1724 * target.h (target_has_registers): Remove macro.
1725 (target_has_registers): Rename from target_has_registers_1.
1726
841de120
TT
17272020-09-28 Tom Tromey <tom@tromey.com>
1728
1729 * windows-tdep.c (tlb_make_value): Update.
1730 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1731 * thread.c (scoped_restore_current_thread::restore)
1732 (scoped_restore_current_thread::scoped_restore_current_thread)
1733 (thread_command): Update.
1734 * stack.c (backtrace_command_1, frame_apply_level_command)
1735 (frame_apply_all_command, frame_apply_command): Update.
1736 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1737 Update.
1738 * gcore.c (derive_stack_segment): Update.
1739 * frame.c (get_current_frame, has_stack_frames): Update.
1740 * auxv.c (info_auxv_command): Update.
1741 * ada-tasks.c (ada_build_task_list): Update.
1742 * target.c (target_has_stack): Rename from target_has_stack_1.
1743 * target.h (target_has_stack): Remove macro.
1744 (target_has_stack): Rename from target_has_stack_1.
1745
a739972c
TT
17462020-09-28 Tom Tromey <tom@tromey.com>
1747
1748 * target.c (target_has_memory): Rename from target_has_memory_1.
1749 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1750 * thread.c (scoped_restore_current_thread::restore)
1751 (scoped_restore_current_thread::scoped_restore_current_thread):
1752 Update.
1753 * frame.c (get_current_frame, has_stack_frames): Update.
1754 * target.h (target_has_memory): Remove macro.
1755 (target_has_memory): Rename from target_has_memory_1.
1756
5b8a4776
TT
17572020-09-28 Tom Tromey <tom@tromey.com>
1758
1759 * target.c (target_has_all_memory_1): Remove.
1760 * target.h (target_has_all_memory): Remove define.
1761 (target_has_all_memory_1): Don't declare.
1762
bd356ec6
SM
17632020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1764
1765 * ser-base.c: Adjust comments formatting.
1766
2c72d5e5
TT
17672020-09-27 Tom Tromey <tom@tromey.com>
1768
1769 PR tui/25342:
1770 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1771
35a98237
TT
17722020-09-27 Tom Tromey <tom@tromey.com>
1773
1774 PR tui/25342:
1775 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1776
9e820dec
TT
17772020-09-27 Tom Tromey <tom@tromey.com>
1778
1779 * unittests/tui-selftests.c: Update.
1780 * tui/tui-winsource.h (struct tui_source_window_base)
1781 <extra_margin, show_line_number, refresh_pad>: New methods.
1782 <m_max_length, m_pad>: New members.
1783 (tui_copy_source_line): Update.
1784 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1785 first_col, line_width, ndigits parameters. Add length.
1786 (tui_source_window_base::show_source_line): Write to pad. Line
1787 number now 0-based.
1788 (tui_source_window_base::refresh_pad): New method.
1789 (tui_source_window_base::show_source_content): Write to pad. Call
1790 refresh_pad.
1791 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1792 not refill.
1793 (tui_source_window_base::update_exec_info): Call
1794 show_line_number.
1795 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1796 method.
1797 <m_digits>: New member.
1798 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1799 and m_max_length.
1800 (tui_source_window::show_line_number): New method.
1801 * tui/tui-io.h (tui_puts): Fix comment.
1802 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1803 m_max_length.
1804
c15c15c8
TT
18052020-09-27 Tom Tromey <tom@tromey.com>
1806
1807 * tui/tui-winsource.c
1808 (tui_source_window_base::set_is_exec_point_at): Don't call
1809 show_source_line.
1810
149830c1
TT
18112020-09-27 Tom Tromey <tom@tromey.com>
1812
1813 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1814 method.
1815 <erase>: Update.
1816 <cursor_x, cursor_y>: Remove.
1817 <m_inner_window>: New member.
1818 (tui_py_window::rerender): Create inner window.
1819 (tui_py_window::output): Write to inner window.
1820
8f9929bb
GR
18212020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1822
1823 PR python/26586
1824 * cli/cli-script.c (execute_control_commands): don't set
1825 instream to nullptr here as this breaks the from_tty argument
1826 to gdb.execute in Python.
1827 (execute_user_command): set instream to nullptr here instead.
1828
956bdb59
SM
18292020-09-25 Simon Marchi <simon.marchi@efficios.com>
1830
1831 * infrun.h (infrun_debug_printf): Fix formatting.
1832 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1833
3b93626b
SJ
18342020-09-25 Saagar Jha <saagar@saagarjha.com>
1835
1836 * compile/compile-object-load.h (struct munmap_list): Add
1837 explicitly-defined move constructor.
1838
b551a89f
TT
18392020-09-24 Tom Tromey <tromey@adacore.com>
1840
1841 PR tui/26638:
1842 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1843 method.
1844 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1845 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1846 (tui_prev_win): Rewrite.
1847
99bb393f
HD
18482020-09-23 Hannes Domani <ssbssa@yahoo.de>
1849
1850 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1851 in WOW64 processes as SIGINT.
1852 * nat/windows-nat.h: Make wow64_process a shared variable.
1853 * windows-nat.c: Remove static wow64_process variable.
1854
20a5fcbd
TT
18552020-09-23 Tom Tromey <tom@tromey.com>
1856
1857 PR symtab/25470:
1858 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1859 offset and bit size.
1860 * printcmd.c (print_scalar_formatted): Handle zero-length
1861 integer.
1862 (print_scalar_formatted): Use bit_size_differs_p.
1863 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1864 constant.
1865 (union type_specific): <int_stuff>: New member.
1866 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1867 methods.
1868 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1869 TYPE_SPECIFIC_FIELD.
1870 (recursive_dump_type, copy_type_recursive): Update.
1871 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1872 DW_AT_data_bit_offset.
1873
bac51ab7
TT
18742020-09-23 Tom Tromey <tom@tromey.com>
1875
1876 * utils.h (class gdb_argv): Add move operators.
1877 <append>: New methods.
1878 * compile/compile.c (build_argc_argv): Remove.
1879 (compile_args_argc): Remove.
1880 (compile_args_argv): Change type.
1881 (set_compile_args): Simplify.
1882 (append_args): Remove.
1883 (filter_args): Remove argcp parameter.
1884 (get_args): Return gdb_argv. Simplify.
1885 (compile_to_object): Update.
1886
92677124
TT
18872020-09-23 Tom Tromey <tom@tromey.com>
1888
1889 * compile/compile-object-run.c (do_module_cleanup)
1890 <~do_module_cleanup> :Remove.
1891 (do_module_cleanup): Update.
1892 * compile/compile-object-load.h (struct munmap_list): Add move
1893 assignment operator.
1894 <source_file>: Now a std::string.
1895 <munmap_list>: Rename. No longer a pointer.
1896 * compile/compile-object-load.c (struct setup_sections_data): Add
1897 constructor.
1898 <setup_one_section>: Declare.
1899 <munmap_list>: Move earlier.
1900 <m_bfd>: New member.
1901 <m_last_size, m_last_section_first, m_last_prot,
1902 m_last_max_alignment>: Rename, add initializers where needed.
1903 (setup_sections_data::setup_one_section): Rename from
1904 setup_sections. Update.
1905 (compile_object_load): Update. Don't use bfd_map_over_sections.
1906
e616f60a
TT
19072020-09-23 Tom Tromey <tom@tromey.com>
1908
1909 * compile/compile-object-run.c (struct do_module_cleanup): Add
1910 parameters to constructor. Update destructor.
1911 <source_file, scope, scope_data, out_value_type, out_value_addr,
1912 munmap_list_head, objfile_name_string>: Remove.
1913 <module>: New member.
1914 (do_module_cleanup): Update.
1915 (compile_object_run): Update.
1916
e947a848
TT
19172020-09-23 Tom Tromey <tom@tromey.com>
1918
1919 * compile/compile.c (eval_compile_command): Update.
1920 * compile/compile-object-run.h (compile_object_run): Take a
1921 compile_module_up.
1922 * compile/compile-object-run.c (compile_object_run): Take a
1923 compile_module_up.
1924 * compile/compile-object-load.h (struct compile_module): Add
1925 constructor, destructor.
1926 (compile_module_up): New typedef.
1927 (compile_object_load): Return compile_object_up.
1928 * compile/compile-object-load.c (compile_object_load): Return
1929 compile_module_up.
1930
0dbf6ee6
TT
19312020-09-23 Tom Tromey <tom@tromey.com>
1932
1933 * compile/compile-object-run.c (struct do_module_cleanup): Add
1934 constructor, destructor.
1935 <objfile_name_string>: Don't use struct hack.
1936 (do_module_cleanup): Use delete.
1937 (compile_object_run): Use new.
1938
ebe824f5
TT
19392020-09-23 Tom Tromey <tom@tromey.com>
1940
1941 * compile/compile-cplus-types.c
1942 (compile_cplus_convert_struct_or_union): Use std::vector.
1943 (compile_cplus_convert_func): Likewise.
1944 * compile/compile-c-types.c (convert_func): Use std::vector.
1945
5dd918d9
TT
19462020-09-21 Tom Tromey <tromey@adacore.com>
1947
1948 * sparc-tdep.c (sparc32_skip_prologue): Use
1949 skip_prologue_using_sal.
1950
5486c517
TT
19512020-09-19 Tom Tromey <tom@tromey.com>
1952
1953 * symfile.c (add_section_size_callback): Remove.
1954 (load_one_section): Rename from load_section_callback. Change
1955 parameters.
1956 (generic_load): Use foreach.
1957
8a6bb1d1
TT
19582020-09-19 Tom Tromey <tom@tromey.com>
1959
1960 * exec.c (add_to_section_table): Remove.
1961 (build_section_table): Use foreach.
1962
08f93a1a
TT
19632020-09-19 Tom Tromey <tom@tromey.com>
1964
1965 * elfread.c (elf_locate_sections): Change parameters.
1966 (elf_symfile_read): Use foreach.
1967
03cd72b8
TT
19682020-09-19 Tom Tromey <tom@tromey.com>
1969
1970 * cli/cli-dump.c (struct callback_data): Remove.
1971 (restore_one_section): Rename from restore_section_callback.
1972 Change parameters.
1973 (restore_binary_file): Change parameters.
1974 (restore_command): Use foreach.
1975
f4f2b85f
TT
19762020-09-19 Tom Tromey <tom@tromey.com>
1977
1978 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1979 (gcore_copy_callback): Likewise.
1980 (gcore_memory_sections): Use foreach.
1981
b35c1d1c
TT
19822020-09-19 Tom Tromey <tom@tromey.com>
1983
1984 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1985 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1986 parameters.
1987 (generic_elf_osabi_sniffer): Use foreach.
1988 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1989 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1990
5bb6e9dd
TT
19912020-09-19 Tom Tromey <tom@tromey.com>
1992
1993 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1994 (dwarf2_get_dwz_file): Use foreach.
1995 (dwarf2_locate_dwo_sections): Change parameters.
1996 (open_and_init_dwo_file): Use foreach.
1997 (dwarf2_locate_common_dwp_sections): Change parameters.
1998 (open_and_init_dwp_file): Use foreach.
1999
ad7277da
TT
20002020-09-19 Tom Tromey <tom@tromey.com>
2001
2002 * symfile.h: (find_lowest_section): Don't declare.
2003 * symfile.c (find_lowest_section): Now static. Change
2004 parameters.
2005 (struct place_section_arg): Remove.
2006 (place_section): Change parameters.
2007 (addr_info_make_relative): Use foreach.
2008 (symfile_dummy_outputs): Remove.
2009 (default_symfile_relocate): Use foreach.
2010
cb814f2e
TT
20112020-09-19 Tom Tromey <tom@tromey.com>
2012
2013 * objfiles.c (add_to_objfile_sections): Rename from
2014 add_to_objfile_sections_full.
2015 (add_to_objfile_sections): Remove.
2016 (build_objfile_section_table): Use foreach.
2017
3cabfd26
TT
20182020-09-19 Tom Tromey <tom@tromey.com>
2019
2020 * stap-probe.c (get_stap_base_address_1): Remove.
2021 (get_stap_base_address): Use foreach.
2022
1ce51eb5
TT
20232020-09-19 Tom Tromey <tom@tromey.com>
2024
2025 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2026 parameters.
2027 (gdb_bfd_close_or_warn): Use foreach.
2028
a190fabb
TT
20292020-09-19 Tom Tromey <tom@tromey.com>
2030
2031 * corelow.c (add_to_thread_list): Change parameters.
2032 (core_target_open): Use foreach.
2033
cafb0d81
TT
20342020-09-19 Tom Tromey <tom@tromey.com>
2035
2036 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2037 existing function.
2038
c8d5abea
AB
20392020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2040
2041 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2042 for arrays.
2043
6d816919
AB
20442020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * eval.c: Remove 'f-lang.h' include.
2047 (value_f90_subarray): Moved to f-lang.c.
2048 (eval_call): Renamed to...
2049 (evaluate_subexp_do_call): ...this, is no longer static, header
2050 comment moved into header file.
2051 (evaluate_funcall): Update call to eval_call.
2052 (skip_undetermined_arglist): Moved to f-lang.c.
2053 (fortran_value_subarray): Likewise.
2054 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2055 moved to evaluate_subexp_f.
2056 (calc_f77_array_dims): Moved to f-lang.c
2057 * expprint.c (print_subexp_funcall): New function.
2058 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2059 moved to print_subexp_f, OP_FUNCALL uses new function.
2060 (dump_subexp_body_funcall): New function.
2061 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2062 moved to dump_subexp_f, OP_FUNCALL uses new function.
2063 * expression.h (evaluate_subexp_do_call): Declare.
2064 * f-lang.c (value_f90_subarray): Moved from eval.c.
2065 (skip_undetermined_arglist): Likewise.
2066 (calc_f77_array_dims): Likewise.
2067 (fortran_value_subarray): Likewise.
2068 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2069 (operator_length_f): Likewise.
2070 (print_subexp_f): Likewise.
2071 (dump_subexp_body_f): Likewise.
2072 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2073 declaration of this operation to here.
2074 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2075 support moved to operator_length_f.
2076 * parser-defs.h (dump_subexp_body_funcall): Declare.
2077 (print_subexp_funcall): Declare.
2078 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2079 fortran-operator.def.
2080
8c37706a
AB
20812020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * eval.c (fortran_value_subarray): New function, content is taken
2084 from...
2085 (evaluate_subexp_standard): ...here, in two places. Now arrays
2086 and strings both call the new function.
2087 (calc_f77_array_dims): Add header comment, handle strings.
2088
14f9473c
VC
20892020-09-18 Victor Collod <vcollod@nvidia.com>
2090
2091 PR gdb/26635
2092 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2093 (i386_analyze_prologue): Call i386_skip_endbr.
2094
b60cea74
TT
20952020-09-18 Tom Tromey <tromey@adacore.com>
2096
2097 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2098 (windows_nat_target::wait): Update.
2099 * target/wait.h (enum target_wait_flag): New. Use
2100 DEF_ENUM_FLAGS_TYPE.
2101 * target/target.h (target_wait): Change type of options.
2102 * target.h (target_options_to_string, default_target_wait):
2103 Update.
2104 (struct target_ops) <wait>: Change type of options.
2105 * target.c (target_wait, default_target_wait, do_option): Change
2106 type of "options".
2107 (target_options_to_string): Likewise.
2108 * target-delegates.c: Rebuild.
2109 * target-debug.h (target_debug_print_target_wait_flags): Rename
2110 from target_debug_print_options.
2111 * sol-thread.c (class sol_thread_target) <wait>: Update.
2112 (sol_thread_target::wait): Update.
2113 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2114 (rs6000_nat_target::wait): Update.
2115 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2116 Update.
2117 (remote_target::wait_ns, remote_target::wait_as): Change type of
2118 "options".
2119 (remote_target::wait): Update.
2120 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2121 (gdbsim_target::wait): Update.
2122 * record-full.c (class record_full_base_target) <wait>: Update.
2123 (record_full_wait_1): Change type of "options".
2124 (record_full_base_target::wait): Update.
2125 * record-btrace.c (class record_btrace_target) <wait>: Update.
2126 (record_btrace_target::wait): Update.
2127 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2128 Update.
2129 (ravenscar_thread_target::wait): Update.
2130 * procfs.c (class procfs_target) <wait>: Update.
2131 (procfs_target::wait): Update.
2132 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2133 * obsd-nat.c (obsd_nat_target::wait): Update.
2134 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2135 (nto_procfs_target::wait): Update.
2136 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2137 * nbsd-nat.c (nbsd_wait): Change type of "options".
2138 (nbsd_nat_target::wait): Update.
2139 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2140 (thread_db_target::wait): Update.
2141 * linux-nat.h (class linux_nat_target) <wait>: Update.
2142 * linux-nat.c (linux_nat_target::wait): Update.
2143 (linux_nat_wait_1): Update.
2144 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2145 "options".
2146 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2147 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2148 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2149 (go32_nat_target::wait): Update.
2150 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2151 * gnu-nat.c (gnu_nat_target::wait): Update.
2152 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2153 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2154 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2155 * darwin-nat.c (darwin_nat_target::wait): Update.
2156 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2157 (bsd_uthread_target::wait): Update.
2158 * aix-thread.c (class aix_thread_target) <wait>: Update.
2159 (aix_thread_target::wait): Update.
2160
0295dde6
AB
21612020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2162
2163 * compile/compile-object-run.c (create_copied_type_recursive): New
2164 function.
2165 (compile_object_run): Use new function.
2166
d3483b43
JT
21672020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2168
2169 * NEWS: Mention x86_64 Cygwin core file support.
2170
e7d612ad
JT
21712020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2172
2173 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2174 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2175
aff9d387
JT
21762020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2177
62a5151b
JT
2178 * windows-tdep.h: Add prototypes.
2179 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2180 (i386_windows_core_pid_to_str): Move and rename ...
2181 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2182 (windows_core_pid_to_str): ... and here.
2183 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2184
21852020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2186 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2187 (amd64_windows_init_abi_common): ... and register.
2188
7d155da3
JT
21892020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2190
2191 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2192 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2193
e8ef12b9
PA
21942020-09-18 Pedro Alves <pedro@palves.net>
2195
2196 PR gdb/26631
2197 * thread.c (thread_find_command): Switch inferior before calling
2198 target methods.
2199
c1e1314d
TT
22002020-09-17 Tom Tromey <tromey@adacore.com>
2201
2202 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2203 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2204 (tdesc_arch_data_up): New typedef.
2205 (tdesc_use_registers, tdesc_data_alloc): Update.
2206 (tdesc_data_cleanup): Don't declare.
2207 * target-descriptions.c (tdesc_data_alloc): Return a
2208 tdesc_arch_data_up.
2209 (tdesc_arch_data_deleter::operator()): Rename from
2210 tdesc_data_cleanup. Change argument type.
2211 (tdesc_use_registers): Change early_data to an rvalue reference.
2212 (tdesc_use_registers): Don't use delete.
2213 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2214 * s390-tdep.c (s390_gdbarch_init): Update.
2215 * rx-tdep.c (rx_gdbarch_init): Update.
2216 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2217 * riscv-tdep.c (riscv_gdbarch_init): Update.
2218 * or1k-tdep.c (or1k_gdbarch_init): Update.
2219 * nios2-tdep.c (nios2_gdbarch_init): Update.
2220 * nds32-tdep.c (nds32_gdbarch_init): Update.
2221 * mips-tdep.c (mips_gdbarch_init): Update.
2222 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2223 * m68k-tdep.c (m68k_gdbarch_init): Update.
2224 * i386-tdep.c (i386_gdbarch_init): Update.
2225 * arm-tdep.c (arm_gdbarch_init): Update.
2226 * arc-tdep.c (arc_tdesc_init): Update.
2227 (arc_gdbarch_init): Update.
2228 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2229
0363df3d
HD
22302020-09-17 Hannes Domani <ssbssa@yahoo.de>
2231
2232 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2233 for WOW64 processes.
2234
280a9412
TT
22352020-09-17 Tom Tromey <tom@tromey.com>
2236
2237 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2238
6108fd18
TT
22392020-09-17 Tom Tromey <tom@tromey.com>
2240
2241 * value.c (preserve_values): Update.
2242 * python/py-type.c (save_objfile_types): Update.
2243 * guile/scm-type.c (save_objfile_types): Update.
2244 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2245 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2246 * compile/compile-object-run.c (compile_object_run): Update.
2247
fa9b1164
TT
22482020-09-17 Tom Tromey <tom@tromey.com>
2249
2250 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2251 Remove.
2252 <m_table>: Now htab_up.
2253 * typeprint.c (typedef_hash_table::recursively_update)
2254 (typedef_hash_table::add_template_parameters)
2255 (typedef_hash_table::typedef_hash_table): Update.
2256 (typedef_hash_table::~typedef_hash_table): Remove.
2257 (typedef_hash_table::typedef_hash_table)
2258 (typedef_hash_table::find_global_typedef)
2259 (typedef_hash_table::find_typedef): Update.
2260
eb53f105
TT
22612020-09-17 Tom Tromey <tom@tromey.com>
2262
2263 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2264
7a8a5d47
TT
22652020-09-17 Tom Tromey <tom@tromey.com>
2266
2267 * linespec.c (class decode_compound_collector)
2268 <~decode_compound_collector>: Remove.
2269 <m_unique_syms>: Now htab_up.
2270 (decode_compound_collector::operator ()): Update.
2271 (class symtab_collector) <~symtab_collector>: Remove.
2272 <m_symtab_table>: Now htab_up.
2273 (symtab_collector::operator ()): Update.
2274
99032cfc
TT
22752020-09-17 Tom Tromey <tom@tromey.com>
2276
2277 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2278 (filename_seen_cache::clear): Update.
2279 (~filename_seen_cache): Remove.
2280 (filename_seen_cache::seen): Update.
2281 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2282 htab_up.
2283 <~filename_seen_cache>: Remove.
2284 <traverse>: Update.
2285
32580f6d
TT
22862020-09-17 Tom Tromey <tom@tromey.com>
2287
2288 * completer.c (completion_tracker::discard_completions)
2289 (completion_tracker::~completion_tracker)
2290 (completion_tracker::maybe_add_completion)
2291 (completion_tracker::remove_completion)
2292 (completion_tracker::recompute_lowest_common_denominator)
2293 (completion_tracker::build_completion_result): Update.
2294 * completer.h (class completion_tracker) <have_completions>:
2295 Update.
2296 <m_entries_hash>: Now htab_up.
2297
c1fb9836
TT
22982020-09-17 Tom Tromey <tom@tromey.com>
2299
2300 * breakpoint.c (ambiguous_names_p): Use htab_up.
2301
88f07206
TT
23022020-09-17 Tom Tromey <tom@tromey.com>
2303
2304 * auto-load.c (struct auto_load_pspace_info)
2305 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2306 <loaded_script_files, loaded_script_texts>: Change type to
2307 htab_up.
2308 (~auto_load_pspace_info) Remove.
2309 (init_loaded_scripts_info, maybe_add_script_file)
2310 (maybe_add_script_text, auto_load_info_scripts): Update.
2311
9519b2ee
TT
23122020-09-17 Tom Tromey <tromey@adacore.com>
2313
2314 * c-exp.y (name_obstack): Now static.
2315
d2cd4113
CC
23162020-09-17 Chungyi Chi <demonic@csie.io>
2317
2318 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2319
b650a282
SM
23202020-09-16 Simon Marchi <simon.marchi@efficios.com>
2321
2322 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2323 (add_solib_catchpoint): Likewise.
2324 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2325 to bool.
2326 (add_solib_catchpoint): Change int parameter/variable to bool.
2327 (catch_load_or_unload): Likewise.
2328 (init_catchpoint): Likewise.
2329 (create_fork_vfork_event_catchpoint): Likewise.
2330 (catch_fork_command_1): Likewise.
2331 (catch_exec_command_1): Likewise.
2332
4d0bcfcf
SM
23332020-09-16 Simon Marchi <simon.marchi@efficios.com>
2334
2335 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2336 Change instance_flags to m_instance_flags.
2337
fe830662
TT
23382020-09-16 Tom Tromey <tromey@adacore.com>
2339
2340 PR gdb/26598:
2341 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2342
fe5ddfc3
JB
23432020-09-16 John Baldwin <jhb@FreeBSD.org>
2344
2345 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2346 PL_FLAG_EXEC.
2347 (fbsd_nat_target::insert_exec_catchpoint)
2348 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2349 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2350 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2351
e911c666
JB
23522020-09-16 John Baldwin <jhb@FreeBSD.org>
2353
2354 * configure.ac: Remove check for kinfo_getvmmap().
2355 * configure, config.in: Regenerate.
2356 * fbsd-nat.c (fbsd_read_mapping): Remove
2357 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2358 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2359 kinfo_get_vmmap() are always present.
2360
1f17d372
JB
23612020-09-16 John Baldwin <jhb@FreeBSD.org>
2362
2363 * fbsd-nat.c: Always include support for
2364 TARGET_OBJECT_SIGNAL_INFO.
2365
bcb1da7f
JB
23662020-09-16 John Baldwin <jhb@FreeBSD.org>
2367
2368 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2369 sysctl and remove procfs fallback.
2370
5515f729
JB
23712020-09-16 John Baldwin <jhb@FreeBSD.org>
2372
2373 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2374 * fbsd-nat.h: Likewise.
2375
da1df1db
TBA
23762020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2377
2378 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2379 argument.
2380
0e25e767
AB
23812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2382
2383 * ada-lang.c (ada_language_data): Delete.
2384 (ada_language): Remove references to ada_language_data.
2385 * c-lang.c (c_language_data): Delete.
2386 (c_language): Remove references to c_language_data.
2387 (cplus_language_data): Delete.
2388 (cplus_language): Remove references to cplus_language_data.
2389 (asm_language_data): Delete.
2390 (asm_language): Remove references to asm_language_data.
2391 (minimal_language_data): Delete.
2392 (minimal_language): Remove references to minimal_language_data.
2393 * d-lang.c (d_language_data): Delete.
2394 (d_language): Remove references to d_language_data.
2395 * f-lang.c (f_language_data): Delete.
2396 (f_language): Remove references to f_language_data.
2397 * go-lang.c (go_language_data): Delete.
2398 (go_language): Remove references to go_language_data.
2399 * language.c (unknown_language_data): Delete.
2400 (unknown_language): Remove references to unknown_language_data.
2401 (auto_language_data): Delete.
2402 (auto_language): Remove references to auto_language_data.
2403 * language.h (language_data): Delete struct.
2404 (language_defn): No longer inherit from language_data.
2405 * m2-lang.c (m2_language_data): Delete.
2406 (m2_language): Remove references to m2_language_data.
2407 * objc-lang.c (objc_language_data): Delete.
2408 (objc_language): Remove references to objc_language_data.
2409 * opencl-lang.c (opencl_language_data): Delete.
2410 (opencl_language): Remove references to opencl_language_data.
2411 * p-lang.c (pascal_language_data): Delete.
2412 (pascal_language): Remove references to pascal_language_data.
2413 * rust-lang.c (rust_language_data): Delete.
2414 (rust_language): Remove references to rust_language_data.
2415
b7c6e27d
AB
24162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2417
2418 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2419 initializer.
2420 (ada_language::opcode_print_table): New member function.
2421 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2422 (c_language::opcode_print_table): New member function.
2423 (cplus_language_data): Remove la_op_print_tab initializer.
2424 (cplus_language::opcode_print_table): New member function.
2425 (asm_language_data): Remove la_op_print_tab initializer.
2426 (asm_language::opcode_print_table): New member function.
2427 (minimal_language_data): Remove la_op_print_tab initializer.
2428 (minimal_language::opcode_print_table): New member function.
2429 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2430 (d_language::opcode_print_table): New member function.
2431 * expprint.c (print_subexp_standard): Update call to
2432 opcode_print_table.
2433 (op_string): Likewise.
2434 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2435 (f_language::opcode_print_table): New member function.
2436 * go-lang.c (go_language_data): Remove la_op_print_tab
2437 initializer.
2438 (go_language::opcode_print_table): New member function.
2439 * language.c (unknown_language_data): Remove la_op_print_tab
2440 initializer.
2441 (unknown_language::opcode_print_table): New member function.
2442 (auto_language_data): Remove la_op_print_tab initializer.
2443 (auto_language::opcode_print_table): New member function.
2444 * language.h (language_data): Remove la_op_print_tab field.
2445 (language_defn::opcode_print_table): Declare new member function.
2446 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2447 initializer.
2448 (m2_language::opcode_print_table): New member function.
2449 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2450 initializer.
2451 (objc_language::opcode_print_table): New member function.
2452 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2453 initializer.
2454 (opencl_language::opcode_print_table): New member function.
2455 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2456 initializer.
2457 (pascal_language::opcode_print_table): New member function.
2458 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2459 initializer.
2460 (rust_language::opcode_print_table): New member function.
2461
5aba6ebe
AB
24622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2463
2464 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2465 (ada_language::expression_ops): New member function.
2466 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2467 (c_language::expression_ops): New member function.
2468 (cplus_language_data): Remove la_exp_desc initializer.
2469 (cplus_language::expression_ops): New member function.
2470 (asm_language_data): Remove la_exp_desc initializer.
2471 (asm_language::expression_ops): New member function.
2472 (minimal_language_data): Remove la_exp_desc initializer.
2473 (minimal_language::expression_ops): New member function.
2474 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2475 (d_language::expression_ops): New member function.
2476 * eval.c (evaluate_subexp): Update call to expression_ops.
2477 * expprint.c (print_subexp): Likewise.
2478 (op_name): Likewise.
2479 (dump_subexp_body): Likewise.
2480 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2481 (f_language::expression_ops): New member function.
2482 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2483 (go_language::expression_ops): New member function.
2484 * language.c (language_defn::expression_ops): New function.
2485 (unknown_language_data): Remove la_exp_desc initializer.
2486 (auto_language_data): Likewise.
2487 * language.h (language_data): Remove la_exp_desc field.
2488 (language_defn::expression_ops): Declare new member function.
2489 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2490 (m2_language::expression_ops): New member function.
2491 * objc-lang.c (objc_language_data): Remove la_exp_desc
2492 initializer.
2493 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2494 initializer.
2495 (opencl_language::expression_ops): New member function.
2496 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2497 * parse.c (operator_length): Update call to expression_ops.
2498 (exp_iterate): Likewise.
2499 * rust-lang.c (rust_language_data): Remove la_exp_desc
2500 initializer.
2501 (ruse_language::expression_ops): New member function.
2502
b63a3f3f
AB
25032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2506 initializer.
2507 (ada_language::varobj_ops): New member function.
2508 * c-lang.c (c_language_data): Remove la_varobj_ops
2509 initializer.
2510 (cplus_language_data): Likewise.
2511 (cplus_language::varobj_ops): New member function.
2512 (asm_language_data): Remove la_varobj_ops initializer.
2513 (minimal_language_data): Likewise.
2514 * d-lang.c (d_language_data): Likewise.
2515 * f-lang.c (f_language_data): Likewise.
2516 * go-lang.c (go_language_data): Likewise.
2517 * language.c (language_defn::varobj_ops): New function.
2518 (unknown_language_data): Remove la_varobj_ops
2519 initializer.
2520 (auto_language_data): Likewise.
2521 * language.h (language_data): Remove la_varobj_ops field.
2522 (language_defn::varobj_ops): Declare new member function.
2523 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2524 * objc-lang.c (objc_language_data): Likewise.
2525 * opencl-lang.c (opencl_language_data): Likewise.
2526 * p-lang.c (pascal_language_data): Likewise.
2527 * rust-lang.c (rust_language_data): Likewise.
2528 * varobj.c (varobj_create): Update call to varobj_ops.
2529 * varobj.h (default_varobj_ops): Delete define.
2530
1ac14a04
AB
25312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2532
2533 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2534 initializer.
2535 * c-lang.c (c_language_data): Likewise.
2536 (c_language::macro_expansion): New member function.
2537 (cplus_language_data): Likewise.
2538 (cplus_language::macro_expansion): New member function.
2539 (asm_language_data): Likewise.
2540 (asm_language::macro_expansion): New member function.
2541 (minimal_language_data): Likewise.
2542 (minimal_language::macro_expansion): New member function.
2543 * d-lang.c (d_language_data): Remove la_macro_expansion
2544 initializer.
2545 * f-lang.c (f_language_data): Likewise.
2546 * go-lang.c (go_language_data): Likewise.
2547 * language.c (unknown_language_data): Likewise.
2548 (auto_language_data): Likewise.
2549 * language.h (language_data): Remove la_macro_expansion field.
2550 (language_defn::macro_expansion): New member function.
2551 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2552 initializer.
2553 * objc-lang.c (objc_language_data): Likewise.
2554 (objc_language::macro_expansion): New member function.
2555 * opencl-lang.c (opencl_language_data): Likewise.
2556 (opencl_language::macro_expansion): New member function.
2557 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2558 initializer.
2559 * rust-lang.c (rust_language_data): Likewise.
2560 * symtab.c (default_collect_symbol_completion_matches_break_on):
2561 Update call to macro_expansion.
2562
3a3440fb
AB
25632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 * ada-lang.c (ada_language_data): Remove la_array_ordering
2566 initializer.
2567 * c-lang.c (c_language_data): Likewise.
2568 (cplus_language_data): Likewise.
2569 (asm_language_data): Likewise.
2570 (minimal_language_data): Likewise.
2571 * d-lang.c (d_language_data): Likewise.
2572 * dwarf2/read.c (read_array_order): Update for call to
2573 array_ordering.
2574 * f-lang.c (f_language_data): Remove la_array_ordering
2575 initializer.
2576 (f_language::array_ordering): New member function.
2577 * go-lang.c (go_language_data): Remove la_array_ordering
2578 initializer.
2579 * language.c (unknown_language_data): Likewise.
2580 (auto_language_data): Likewise.
2581 * language.h (language_data): Delete la_array_ordering field.
2582 (language_defn::array_ordering): New member function.
2583 * m2-lang.c (m2_language_data): Remove la_array_ordering
2584 initializer.
2585 * objc-lang.c (objc_language_data): Likewise.
2586 * opencl-lang.c (opencl_language_data): Likewise.
2587 * p-lang.c (pascal_language_data): Likewise.
2588 * rust-lang.c (rust_language_data): Likewise.
2589
0d201fa4
AB
25902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2591
2592 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2593 initializer.
2594 * c-lang.c (c_language_data): Likewise.
2595 (cplus_language_data): Likewise.
2596 (asm_language_data): Likewise.
2597 (minimal_language_data): Likewise.
2598 * d-lang.c (d_language_data): Likewise.
2599 * f-lang.c (f_language_data): Likewise.
2600 (f_language::case_sensitivity): New member function.
2601 * go-lang.c (go_language_data): Remove la_case_sensitivity
2602 initializer.
2603 * language.c (enum case_mode): Moved here from language.h.
2604 (case_mode): Make static.
2605 (show_case_command): Update for case_sensitivity being a method.
2606 (set_case_command): Likewise.
2607 (set_range_case): Likewise.
2608 (unknown_language_data): Remove la_case_sensitivity initializer.
2609 (auto_language_data): Likewise.
2610 * language.h (case_mode): Delete, move enum declaration to
2611 language.c.
2612 (language_data): Delete la_case_sensitivity field.
2613 (language_defn::case_sensitivity): New member function.
2614 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2615 initializer.
2616 * objc-lang.c (objc_language_data): Likewise.
2617 * opencl-lang.c (opencl_language_data): Likewise.
2618 * p-lang.c (pascal_language_data): Likewise.
2619 * rust-lang.c (rust_language_data): Likewise.
2620
efdf6a73
AB
26212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2622
2623 * ada-lang.c (ada_language_data): Remove la_range_check
2624 initializer.
2625 * c-lang.c (c_language_data): Likewise.
2626 (cplus_language_data): Likewise.
2627 (asm_language_data): Likewise.
2628 (minimal_language_data): Likewise.
2629 * d-lang.c (d_language_data): Likewise.
2630 * f-lang.c (f_language_data): Likewise.
2631 (f_language::range_checking_on_by_default): New member function.
2632 * go-lang.c (go_language_data): Remove la_range_check initializer.
2633 * language.c (enum range_mode): Moved here from language.h.
2634 (range_mode): Made static.
2635 (show_range_command): Update to use
2636 range_checking_on_by_default.
2637 (set_range_command): Likewise.
2638 (set_range_case): Likewise.
2639 (unknown_language_data): Remove la_range_check initializer.
2640 (auto_language_data): Likewise.
2641 * language.h (range_mode): Delete. Enum definition moved to
2642 language.c.
2643 (language_data): Remove la_range_check field.
2644 (language_defn::range_checking_on_by_default): New member
2645 function.
2646 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2647 (m2_language::range_checking_on_by_default): New member function.
2648 * objc-lang.c (objc_language_data): Remove la_range_check
2649 initializer.
2650 * opencl-lang.c (opencl_language_data): Likewise.
2651 * p-lang.c (pascal_language_data): Likewise.
2652 (pascal_language::range_checking_on_by_default): New member
2653 function.
2654 * rust-lang.c (rust_language_data): Remove la_range_check
2655 initializer.
2656 (rust_language::range_checking_on_by_default): New member
2657 function.
2658
bf92aec5
AB
26592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 * dwarf2/read.c (dwarf2_physname): Remove special case for
2662 language_go.
2663 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2664 member function.
2665
d3355e4d
AB
26662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * ada-lang.c (ada_language_data): Remove
2669 la_store_sym_names_in_linkage_form_p initializer.
2670 (ada_language::store_sym_names_in_linkage_form_p): New member
2671 function.
2672 * c-lang.c (c_language_data): Remove
2673 la_store_sym_names_in_linkage_form_p initializer.
2674 (c_language::store_sym_names_in_linkage_form_p): New member
2675 function.
2676 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2677 initializer.
2678 (asm_language_data): Likewise.
2679 (asm_language::store_sym_names_in_linkage_form_p): New member
2680 function.
2681 (minimal_language_data): Remove
2682 la_store_sym_names_in_linkage_form_p initializer.
2683 (minimal_language::store_sym_names_in_linkage_form_p): New member
2684 function.
2685 * d-lang.c (d_language_data): Remove
2686 la_store_sym_names_in_linkage_form_p initializer.
2687 * dwarf2/read.c (dwarf2_physname): Update call to
2688 store_sym_names_in_linkage_form_p.
2689 * f-lang.c (f_language_data): Remove
2690 la_store_sym_names_in_linkage_form_p initializer.
2691 * go-lang.c (go_language_data): Remove
2692 la_store_sym_names_in_linkage_form_p initializer.
2693 * language.c (unknown_language_data): Remove
2694 la_store_sym_names_in_linkage_form_p initializer.
2695 (unknown_language::store_sym_names_in_linkage_form_p): New member
2696 function.
2697 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2698 initializer.
2699 (auto_language::store_sym_names_in_linkage_form_p): New member
2700 function.
2701 * language.h (language_data): Remove
2702 la_store_sym_names_in_linkage_form_p member variable.
2703 (language_defn::store_sym_names_in_linkage_form_p): New member
2704 function.
2705 * m2-lang.c (m2_language_data): Remove
2706 la_store_sym_names_in_linkage_form_p initializer.
2707 * objc-lang.c (objc_language_data): Likewise.
2708 * opencl-lang.c (opencl_language_data): Likewise.
2709 * p-lang.c (pascal_language_data): Likewise.
2710 * rust-lang.c (rust_language_data): Likewise.
2711
22c12a6c
AB
27122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2713
2714 * ada-lang.c (ada_language_data): Remove string_lower_bound
2715 initializer.
2716 * c-lang.c (c_language_data): Likewise.
2717 (cplus_language_data): Likewise.
2718 (asm_language_data): Likewise.
2719 (minimal_language_data): Likewise.
2720 * d-lang.c (d_language_data): Likewise.
2721 * f-lang.c (f_language_data): Likewise.
2722 * go-lang.c (go_language_data): Likewise.
2723 * language.c (unknown_language_data): Likewise.
2724 (auto_language_data): Likewise.
2725 * language.h (language_data): Remove string_lower_bound field.
2726 (language_defn::string_lower_bound): New member function.
2727 * m2-lang.c (m2_language_data): Remove string_lower_bound
2728 initializer.
2729 (m2_language::string_lower_bound): New member function.
2730 * objc-lang.c (objc_language_data): Remove string_lower_bound
2731 initializer.
2732 * opencl-lang.c (opencl_language_data): Likewise.
2733 * p-lang.c (pascal_language_data): Likewise.
2734 * rust-lang.c (rust_language_data): Likewise.
2735 * valops.c (value_cstring): Update call to string_lower_bound.
2736 (value_string): Likewise.
2737 * value.c (allocate_repeated_value): Likewise.
2738
1c236ddd
AB
27392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * valops.c (value_repeat): Fix incorrect argument name in comment.
2742
67bd3fd5
AB
27432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2744
2745 * ada-lang.c (ada_language_data): Remove c_style_arrays
2746 initializer.
2747 (ada_language::c_style_arrays_p): New member fuction.
2748 * c-lang.c (c_language_data): Remove c_style_arrays
2749 initializer.
2750 (cplus_language_data): Likewise.
2751 (asm_language_data): Likewise.
2752 (minimal_language_data): Likewise.
2753 * d-lang.c (d_language_data): Likewise.
2754 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2755 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2756 (f_language::c_style_arrays_p): New member function.
2757 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2758 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2759 * language.c (unknown_language_data): Remove c_style_arrays
2760 initializer.
2761 (auto_language_data): Likewise.
2762 * language.h (language_data): Remove c_style_arrays field.
2763 (language_defn::c_style_arrays_p): New member function.
2764 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2765 (m2_language::c_style_arrays_p): New member function.
2766 * objc-lang.c (objc_language_data): Remove c_style_arrays
2767 initializer.
2768 * opencl-lang.c (opencl_language_data): Likewise.
2769 * p-lang.c (pascal_language_data): Likewise.
2770 * rust-lang.c (rust_language_data): Likewise.
2771 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2772 and update local variable to a bool.
2773 * valops.c (value_cast): Update call to c_style_arrays_p.
2774 (value_array): Likewise.
2775 * value.c (coerce_array): Likewise.
2776
85967615
AB
27772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * ada-lang.c (ada_language_data): Remove la_language initializer.
2780 * c-lang.c (c_language_data): Likewise.
2781 (cplus_language_data): Likewise.
2782 (asm_language_data): Likewise.
2783 (minimal_language_data): Likewise.
2784 * d-lang.c (d_language_data): Likewise.
2785 * f-lang.c (f_language_data): Likewise.
2786 * go-lang.c (go_language_data): Likewise.
2787 * language.c (unknown_language_data): Likewise.
2788 (auto_language_data): Likewise.
2789 * language.h (language_data): Remove la_language field.
2790 (language_defn::language_defn): Initialise la_language field.
2791 (language_defn::la_language): New member variable.
2792 * m2-lang.c (m2_language_data): Remove la_language field.
2793 * objc-lang.c (objc_language_data): Likewise.
2794 * opencl-lang.c (opencl_language_data): Likewise.
2795 * p-lang.c (pascal_language_data): Likewise.
2796 * rust-lang.c (rust_language_data): Likewise.
2797
e171d6f1
AB
27982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2799
2800 * ada-lang.c (ada_extensions): Delete, moved into
2801 ada_language::filename_extensions.
2802 (ada_language_data): Remove la_filename_extensions initializer.
2803 (ada_language::filename_extensions): New member function.
2804 * c-lang.c (c_extensions): Delete, moved into
2805 c_language::filename_extensions.
2806 (c_language_data): Remove la_filename_extensions initializer.
2807 (c_language::filename_extensions): New member function.
2808 (cplus_extensions): Delete, moved into
2809 cplus_language::filename_extensions.
2810 (cplus_language_data): Remove la_filename_extensions initializer.
2811 (cplus_language::filename_extensions): New member function.
2812 (asm_extensions): Delete, moved into
2813 asm_language::filename_extensions.
2814 (asm_language_data): Remove la_filename_extensions initializer.
2815 (asm_language::filename_extensions): New member function.
2816 (minimal_language_data): Remove la_filename_extensions
2817 initializer.
2818 * d-lang.c (d_extensions): Delete, moved into
2819 d_language::filename_extensions.
2820 (d_language_data): Remove la_filename_extensions initializer.
2821 (d_language::filename_extensions): New member function.
2822 * f-lang.c (f_extensions): Delete, moved into
2823 f_language::filename_extensions.
2824 (f_language_data): Remove la_filename_extensions initializer.
2825 (f_language::filename_extensions): New member function.
2826 * go-lang.c (go_language_data): Remove la_filename_extensions
2827 initializer.
2828 * language.c (add_set_language_command): Update now that
2829 filename_extensions returns a vector.
2830 (unknown_language_data): Remove la_filename_extensions
2831 initializer.
2832 (auto_language_data): Likewise.
2833 * language.h (language_data): Remove la_filename_extensions field.
2834 (language_defn::filename_extensions): New member function.
2835 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2836 initializer.
2837 * objc-lang.c (objc_extensions): Delete, moved into
2838 objc_language::filename_extensions.
2839 (objc_language_data): Remove la_filename_extensions initializer.
2840 (objc_language::filename_extensions): New member function.
2841 * opencl-lang.c (opencl_language_data): Remove
2842 la_filename_extensions initializer.
2843 * p-lang.c (pascal_extensions): Delete, moved into
2844 pascal_language::filename_extensions.
2845 (pascal_language_data): Remove la_filename_extensions initializer.
2846 (pascal_language::filename_extensions): New member function.
2847 * rust-lang.c (rust_extensions): Delete, moved into
2848 rust_language::filename_extensions.
2849 (rust_language_data): Remove la_filename_extensions initializer.
2850 (rust_language::filename_extensions): New member function.
2851 * symfile.c (add_filename_language): Add new assert.
2852
6f7664a9
AB
28532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2854
2855 * ada-lang.c (ada_language_data): Remove la_name and
2856 la_natural_name initializers.
2857 (ada_language::name): New member function.
2858 (ada_language::natural_name): New member function.
2859 * c-lang.c (c_language_data): Remove la_name and
2860 la_natural_name initializers.
2861 (c_language::name): New member function.
2862 (c_language::natural_name): New member function.
2863 (cplus_language_data): Remove la_name and
2864 la_natural_name initializers.
2865 (cplus_language::name): New member function.
2866 (cplus_language::natural_name): New member function.
2867 (asm_language_data): Remove la_name and
2868 la_natural_name initializers.
2869 (asm_language::name): New member function.
2870 (asm_language::natural_name): New member function.
2871 (minimal_language_data): Remove la_name and
2872 la_natural_name initializers.
2873 (minimal_language::name): New member function.
2874 (minimal_language::natural_name): New member function.
2875 * compile/compile.c (compile_to_object): Update call to
2876 lanugage_defn::name.
2877 * d-lang.c (d_language_data): Remove la_name and
2878 la_natural_name initializers.
2879 (d_language::name): New member function.
2880 (d_language::natural_name): New member function.
2881 * expprint.c (print_subexp_standard): Update call to
2882 language_defn::name.
2883 (dump_raw_expression): Likewise
2884 (dump_prefix_expression): Likewise.
2885 * f-lang.c (f_language_data): Remove la_name and
2886 la_natural_name initializers.
2887 (f_language::name): New member function.
2888 (f_language::natural_name): New member function.
2889 * go-lang.c (go_language_data): Remove la_name and
2890 la_natural_name initializers.
2891 (go_language::name): New member function.
2892 (go_language::natural_name): New member function.
2893 * language.c (show_language_command): Update call to
2894 language_defn::name.
2895 (set_language_command): Likewise.
2896 (language_enum): Likewise.
2897 (language_str): Likewise.
2898 (add_set_language_command): Likewise, use
2899 language_defn::natural_name in the doc string.
2900 (unknown_language_data): Remove la_name and
2901 la_natural_name initializers.
2902 (unknown_language::name): New member function.
2903 (unknown_language::natural_name): New member function.
2904 (auto_language_data): Remove la_name and
2905 la_natural_name initializers.
2906 (auto_language::name): New member function.
2907 (auto_language::natural_name): New member function.
2908 (language_lookup_primitive_type_as_symbol): Update call to
2909 language_defn::name.
2910 * language.h (language_data): Remove la_name and la_natural_name
2911 member variables.
2912 (language_defn::name): New member function.
2913 (language_defn::natural_name): New member function.
2914 * m2-lang.c (m2_language_data): Remove la_name and
2915 la_natural_name initializers.
2916 (m2_language::name): New member function.
2917 (m2_language::natural_name): New member function.
2918 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2919 language_defn::natural_name.
2920 * objc-lang.c (objc_language_data): Remove la_name and
2921 la_natural_name initializers.
2922 (objc_language::name): New member function.
2923 (objc_language::natural_name): New member function.
2924 * opencl-lang.c (opencl_language_data): Remove la_name and
2925 la_natural_name initializers.
2926 (opencl_language::name): New member function.
2927 (opencl_language::natural_name): New member function.
2928 * p-lang.c (pascal_language_data): Remove la_name and
2929 la_natural_name initializers.
2930 (pascal_language::name): New member function.
2931 (pascal_language::natural_name): New member function.
2932 * rust-lang.c (rust_language_data): Remove la_name and
2933 la_natural_name initializers.
2934 (rust_language::name): New member function.
2935 (rust_language::natural_name): New member function.
2936 * symtab.c (lookup_language_this): Update call to
2937 language_defn::name.
2938
5bae7c4e
AB
29392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2940
2941 * ada-lang.c (ada_language_data): Remove la_name_of_this
2942 initializer.
2943 * ax-gdb.c (gen_expr): Update call to name_of_this.
2944 * c-exp.y (classify_name): Likewise.
2945 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2946 (cplus_language_data): Likewise.
2947 (cplus_language::name_of_this): New member function.
2948 (asm_language_data): Remove la_name_of_this initializer.
2949 (minimal_language_data): Likewise.
2950 * d-lang.c (d_language_data): Likewise.
2951 (d_language::name_of_this): New member function.
2952 * expprint.c (print_subexp_standard): Update call to name_of_this.
2953 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2954 * go-lang.c (go_language_data): Likewise.
2955 * language.c (unknown_language_data): Likewise.
2956 (unknown_language::name_of_this): New member function.
2957 (auto_language_data): Remove la_name_of_this initializer.
2958 (auto_language::name_of_this): New member function.
2959 * language.h (language_data): Delete la_name_of_this member
2960 variable.
2961 (language_defn::name_of_this): New member function.
2962 * m2-lang.c (m2_language_data): Remove la_name_of_this
2963 initializer.
2964 * objc-lang.c (objc_language_data): Likewise.
2965 (objc_language::name_of_this): New member function.
2966 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2967 initializer.
2968 * p-lang.c (pascal_language_data): Likewise.
2969 (pascal_language::name_of_this): New member function.
2970 * rust-lang.c (rust_language_data): Remove la_name_of_this
2971 initializer.
2972 * symtab.c (lookup_language_this): Update call to name_of_this.
2973 (lookup_symbol_aux): Likewise.
2974 * valops.c (value_of_this): Likewise.
2975
22e3f3ed
AB
29762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2977
2978 * ada-lang.c (ada_language_data): Remove
2979 la_struct_too_deep_ellipsis initializer.
2980 (ada_language::struct_too_deep_ellipsis): New member function.
2981 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2982 initializer.
2983 (cplus_language_data): Likewise.
2984 (asm_language_data): Likewise.
2985 (minimal_language_data): Likewise.
2986 * cp-valprint.c (cp_print_value): Update call to
2987 struct_too_deep_ellipsis.
2988 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2989 initializer.
2990 * f-lang.c (f_language_data): Likewise.
2991 (f_language::struct_too_deep_ellipsis): New member function.
2992 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2993 initializer.
2994 * language.c (unknown_language_data): Likewise.
2995 (auto_language_data): Likewise.
2996 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2997 member variable.
2998 (language_defn::struct_too_deep_ellipsis): New member function.
2999 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3000 initializer.Q
3001 * objc-lang.c (objc_language_data): Likewise.
3002 * opencl-lang.c (opencl_language_data): Likewise.
3003 * p-lang.c (pascal_language_data): Likewise.
3004 * rust-lang.c (rust_language_data): Likewise.
3005 * valprint.c (val_print_check_max_depth): Update call to
3006 struct_too_deep_ellipsis.
3007
ed29e1c7
FW
30082020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3009
3010 * MAINTAINERS (Write After Approval): Add myself.
3011
12d8f940
TT
30122020-09-15 Tom Tromey <tom@tromey.com>
3013
3014 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3015 Remove.
3016
6b5a7bc7
TT
30172020-09-15 Tom Tromey <tom@tromey.com>
3018
3019 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3020 and TYPE_CODE_METHODPTR cases.
3021 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3022 (c_value_print_inner): Update.
3023 * valprint.c (generic_value_print_memberptr): New function, from
3024 c_value_print_memberptr.
3025 (generic_value_print): Use it. Call cplus_print_method_ptr.
3026
47f0e2ff
TT
30272020-09-15 Tom Tromey <tromey@adacore.com>
3028
3029 * python/python-internal.h (PyInt_FromLong): Remove define.
3030 * python/py-value.c (convert_value_from_python): Use
3031 gdb_py_object_from_longest.
3032 * python/py-type.c (typy_get_code): Use
3033 gdb_py_object_from_longest.
3034 * python/py-symtab.c (salpy_get_line): Use
3035 gdb_py_object_from_longest.
3036 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3037 gdb_py_object_from_longest.
3038 * python/py-record.c (recpy_gap_reason_code): Use
3039 gdb_py_object_from_longest.
3040 * python/py-record-btrace.c (recpy_bt_insn_size)
3041 (recpy_bt_func_level, btpy_list_count): Use
3042 gdb_py_object_from_longest.
3043 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3044 gdb_py_object_from_longest. Fix error handling.
3045 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3046 gdb_py_object_from_longest.
3047 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3048 gdb_py_object_from_longest.
3049 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3050 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3051 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3052
512116ce
TT
30532020-09-15 Tom Tromey <tromey@adacore.com>
3054
3055 * python/python.c (gdbpy_parameter_value): Use
3056 gdb_py_object_from_ulongest.
3057
4ab1029c
TT
30582020-09-15 Tom Tromey <tromey@adacore.com>
3059
3060 * python/py-infevents.c (create_register_changed_event_object):
3061 Use gdb_py_object_from_longest.
3062 * python/py-exitedevent.c (create_exited_event_object): Use
3063 gdb_py_object_from_longest.
3064
062534d4
TT
30652020-09-15 Tom Tromey <tromey@adacore.com>
3066
3067 * python/python.c (gdbpy_parameter_value): Use
3068 gdb_py_object_from_longest.
3069 * python/py-type.c (convert_field, typy_range): Use
3070 gdb_py_object_from_longest.
3071 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3072 gdb_py_object_from_longest.
3073 * python/py-lazy-string.c (stpy_get_length): Use
3074 gdb_py_object_from_longest.
3075 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3076 gdb_py_object_from_longest.
3077 * python/py-infevents.c (create_memory_changed_event_object): Use
3078 gdb_py_object_from_longest.
3079 * python/py-inferior.c (infpy_get_num): Use
3080 gdb_py_object_from_longest.
3081 (infpy_get_pid): Likewise.
3082
d1cab987
TT
30832020-09-15 Tom Tromey <tromey@adacore.com>
3084
3085 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3086 defines.
3087 * python/py-value.c (valpy_long): Use
3088 gdb_py_object_from_ulongest.
3089 * python/py-symtab.c (salpy_get_pc): Use
3090 gdb_py_object_from_ulongest.
3091 (salpy_get_last): Likewise.
3092 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3093 gdb_py_object_from_ulongest.
3094 * python/py-lazy-string.c (stpy_get_address): Use
3095 gdb_py_object_from_ulongest.
3096 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3097 * python/py-arch.c (archpy_disassemble): Use
3098 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3099 error handling.
3100
4bde49dc
TT
31012020-09-15 Tom Tromey <tromey@adacore.com>
3102
3103 * python/python-internal.h (gdb_py_long_from_longest): Remove
3104 defines.
3105 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3106 * python/py-type.c (convert_field, typy_get_sizeof): Use
3107 gdb_py_object_from_longest.
3108 * python/py-record-btrace.c (btpy_list_index): Use
3109 gdb_py_object_from_longest.
3110
37431074
TT
31112020-09-15 Tom Tromey <tromey@adacore.com>
3112
3113 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3114 * python/py-record.c (recpy_element_number): Use
3115 gdb_py_object_from_longest.
3116 (recpy_gap_number): Likewise.
3117
cbe25684
TT
31182020-09-15 Tom Tromey <tromey@adacore.com>
3119
3120 * top.c (ui::ui): Update.
3121 (highest_ui_num): Remove.
3122 * top.h (struct ui) <num>: Remove.
3123
db92ac45
TT
31242020-09-15 Tom Tromey <tromey@adacore.com>
3125
3126 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3127 * ui-style.c (ansi_regex_text): Now array.
3128 * rust-exp.y (number_regex_text): Now array.
3129 * linespec.c (linespec_quote_characters): Now array.
3130 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3131 Now arrays.
3132
d2b31b67
SM
31332020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3134
3135 * debuginfod-support.c (debuginfod_client_deleter): New.
3136 (debuginfod_client_up): New.
3137 (debuginfod_init): Return debuginfod_client_up.
3138 (debuginfod_source_query): Adjust.
3139 (debuginfod_debuginfo_query): Adjust.
3140
3246bd8e
SM
31412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3142
3143 * debuginfod-support.c (debuginfod_source_query): Use
3144 make_unique_xstrdup.
3145
10242f36
SM
31462020-09-14 Simon Marchi <simon.marchi@efficios.com>
3147
3148 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3149 with `type::instance_flags`.
3150
e1044e6a
MM
31512020-09-14 Michael Mullin <masmullin@gmail.com>
3152
3153 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3154 Remove baton parameter.
3155
04902b09
PA
31562020-09-14 Pedro Alves <pedro@palves.net>
3157
3158 * Makefile.in (SELFTESTS_SRCS): Add
3159 unittests/enum-flags-selftests.c.
3160 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3161 btrace_function_flags instead of enum btrace_function_flag.
3162 * compile/compile-c-types.c (convert_qualified): Use
3163 enum_flags::raw.
3164 * compile/compile-cplus-symbols.c (convert_one_symbol)
3165 (convert_symbol_bmsym):
3166 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3167 (compile_cplus_convert_struct_or_union_methods)
3168 (compile_cplus_instance::convert_qualified_base):
3169 * go-exp.y (parse_string_or_char): Add cast to int.
3170 * unittests/enum-flags-selftests.c: New file.
3171 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3172 type to btrace_thread_flags from btrace_thread_flag.
3173 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3174 local's type to btrace_thread_flags from btrace_thread_flag. Add
3175 cast in DEBUG call.
3176
69896a2c
PA
31772020-09-14 Pedro Alves <pedro@palves.net>
3178
3179 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3180 * gdbtypes.c (address_space_name_to_int): Rename to ...
3181 (address_space_name_to_type_instance_flags): ... this.
3182 (address_space_int_to_name): Rename to ...
3183 (address_space_type_instance_flags_to_name): ... this.
3184 * gdbtypes.h (address_space_name_to_int): Rename to ...
3185 (address_space_name_to_type_instance_flags): ... this.
3186 (address_space_int_to_name): Rename to ...
3187 (address_space_type_instance_flags_to_name): ... this.
3188 * type-stack.c (type_stack::insert): Adjust to rename.
3189 * type-stack.h (type_stack::insert): Likewise.
3190
314ad88d
PA
31912020-09-14 Pedro Alves <pedro@palves.net>
3192 Andrew Burgess <andrew.burgess@embecosm.com>
3193
3194 * avr-tdep.c (avr_address_class_type_flags): Return
3195 type_instance_flags.
3196 (avr_address_class_type_flags_to_name): Take a
3197 type_instance_flags.
3198 (avr_address_class_name_to_type_flags): Return bool and take a
3199 type_instance_flags.
3200 * d-lang.c (build_d_types): Use type::set_instance_flags.
3201 * ft32-tdep.c (ft32_address_class_type_flags): Return
3202 type_instance_flags.
3203 (ft32_address_class_type_flags_to_name): Take a
3204 type_instance_flags.
3205 (ft32_address_class_name_to_type_flags): Return bool and take a
3206 type_instance_flags.
3207 (ft32_gdbarch_init): Use type::set_instance_flags.
3208 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3209 * gdbarch.h, gdbarch.c: Regenerate.
3210 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3211 (address_class_name_to_type_flags): Use type_instance_flags and
3212 bool.
3213 * gdbtypes.c (address_space_name_to_int)
3214 (address_space_int_to_name, make_qualified_type): Use
3215 type_instance_flags.
3216 (make_qualified_type): Use type_instance_flags and
3217 type::set_instance_flags.
3218 (make_type_with_address_space, make_cv_type, make_vector_type)
3219 (check_typedef): Use type_instance_flags.
3220 (recursive_dump_type): Cast type_instance_flags to unsigned for
3221 printing.
3222 (copy_type_recursive): Use type::set_instance_flags.
3223 (gdbtypes_post_init): Use type::set_instance_flags.
3224 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3225 <m_instance_flags>: ... this.
3226 <instance_flags, set_instance_flags>: New methods.
3227 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3228 (SET_TYPE_INSTANCE_FLAGS): New.
3229 (address_space_name_to_int, address_space_int_to_name)
3230 (make_type_with_address_space): Pass flags using
3231 type_instance_flags instead of int.
3232 * stabsread.c (cleanup_undefined_types_noname): Use
3233 type::set_instance_flags.
3234 * s390-tdep.c (s390_address_class_type_flags): Return
3235 type_instance_flags.
3236 (s390_address_class_type_flags_to_name): Take a
3237 type_instance_flags.
3238 (s390_address_class_name_to_type_flags): Return bool and take a
3239 type_instance_flags.
3240 * type-stack.c (type_stack::follow_types): Use
3241 type_instance_flags.
3242 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3243
27087b7f
TT
32442020-09-14 Tom Tromey <tromey@adacore.com>
3245
3246 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3247 * x86-tdep.c (x86_is_thunk_register_name)
3248 (x86_in_indirect_branch_thunk): Update.
3249 * sparc64-tdep.c (sparc64_fpu_register_names)
3250 (sparc64_cp0_register_names, sparc64_register_names)
3251 (sparc64_pseudo_register_names): Now const.
3252 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3253 cp0_registers_num>: Now const.
3254 * sparc-tdep.c (sparc_core_register_names)
3255 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3256 (sparc32_pseudo_register_names): Now const.
3257 (validate_tdesc_registers): Update.
3258 * rust-lang.c (rust_extensions): Now const.
3259 * p-lang.c (p_extensions): Now const.
3260 * objc-lang.c (objc_extensions): Now const.
3261 * nto-tdep.c (nto_thread_state_str): Now const.
3262 * moxie-tdep.c (moxie_register_names): Now const.
3263 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3264 Now const.
3265 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3266 (mips_linux_reg_names): Now const.
3267 (mips_gdbarch_init): Update.
3268 * microblaze-tdep.c (microblaze_register_names): Now const.
3269 * m68k-tdep.c (m68k_register_names): Now const.
3270 * m32r-tdep.c (m32r_register_names): Now const.
3271 * ia64-tdep.c (ia64_register_names): Now const.
3272 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3273 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3274 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3275 ymm_avx512_register_names, pkeys_register_names>: Now const.
3276 * i386-tdep.c (i386_register_names, i386_zmm_names)
3277 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3278 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3279 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3280 * f-lang.c (f_extensions): Now const.
3281 * d-lang.c (d_extensions): Now const.
3282 * csky-tdep.c (csky_register_names): Now const.
3283 * charset.c (default_charset_names, charset_enum): Now const.
3284 (_initialize_charset): Update.
3285 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3286 const.
3287 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3288 (bsd_uthread_solib_loaded): Update.
3289 (bsd_uthread_state): Now const.
3290 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3291 (amd64_ymm_avx512_names, amd64_ymmh_names)
3292 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3293 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3294 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3295 (amd64_dword_names): Now const.
3296 * agent.c (can_use_agent_enum): Now const.
3297 * ada-tasks.c (task_states, long_task_states): Now const.
3298 * ada-lang.c (known_runtime_file_name_patterns)
3299 (known_auxiliary_function_name_patterns, attribute_names)
3300 (standard_exc, ada_extensions): Now const.
3301
89806626
SM
33022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3303
3304 * bcache.h (struct bcache) <bcache>: Remove constructor.
3305 <m_hash_function, m_compare_function>: Remove.
3306 <~bcache>: Make virtual.
3307 <compare>: Remove static method, introduce virtual method.
3308 <default_hash>: Remove.
3309 <hash>: New virtual method.
3310 * bcache.c (bcache::expand_hash_table): Update.
3311 (bcache::insert): Update.
3312 (bcache::hash): New.
3313 (bcache::compare): Update comment and parameter names.
3314 * gdbtypes.c (types_deeply_equal): Update.
3315 * psymtab.h (struct psymbol_bcache): New struct.
3316 (class psymtab_storage) <psymtab_storage>: Make default.
3317 <psymbol_cache>: Change type to psymbol_bcache.
3318 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3319 (psymbol_hash): Change to...
3320 (psymbol_bcache::hash): ... this.
3321 (psymbol_compare): Change to...
3322 (psymbol_bcache::compare): ... this.
3323
677c92fe
SM
33242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3325
3326 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3327 checking for initial lwp.
3328
3eba3a01
TT
33292020-09-14 Tom Tromey <tromey@adacore.com>
3330
3331 * m68k-tdep.c (m68k_extract_return_value): Use
3332 pointer_result_regnum.
3333 (m68k_store_return_value): Likewise.
3334 (m68k_reg_struct_return_p): Handle vectors and arrays.
3335 (m68k_return_value): Handle arrays.
3336 (m68k_svr4_return_value): Fix single-element aggregate handling.
3337 Handle long double. Adjust for embedded ABI.
3338 (m68k_svr4_init_abi): Set pointer_result_regnum.
3339 (m68k_embedded_init_abi): New function.
3340 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3341 (m68k_osabi_sniffer): New function.
3342 (_initialize_m68k_tdep): Register osabi sniffer.
3343 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3344 member.
3345
33f4dd48
SM
33462020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3347
3348 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3349 with gdb::unique_xmalloc_ptr<char>.
3350
8400a90d
SM
33512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3352
3353 * xml-support.h (xml_fetch_another): Change type to be a
3354 function_view.
3355 (xml_process_xincludes): Remove baton parameter.
3356 (xml_fetch_content_from_file): Change baton parameter to
3357 dirname.
3358 * xml-support.c (struct xinclude_parsing_data)
3359 <xinclude_parsing_data>: Remove baton parameter.
3360 <fetcher_baton>: Remove.
3361 (xinclude_start_include): Adjust.
3362 (xml_process_xincludes): Adjust.
3363 (xml_fetch_content_from_file): Replace baton parameter with
3364 dirname.
3365 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3366 (xml_init_syscalls_info): Use a lambda.
3367 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3368 (file_read_description_xml): Use a lambda.
3369 (fetch_available_features_from_target): Change baton parameter
3370 to target_ops.
3371 (target_read_description_xml): Use a lambda.
3372 (target_fetch_description_xml): Use a lambda.
3373 (string_read_description_xml): Update.
3374
04f5bab2
SM
33752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3376
3377 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3378 uses with type::endianity_is_not_default.
3379
db558e34
SM
33802020-09-14 Simon Marchi <simon.marchi@efficios.com>
3381
3382 * gdbtypes.h (struct type) <endianity_is_not_default,
3383 set_endianity_is_not_default>: New methods.
3384 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3385 type::endianity_is_not_default, change all write call sites to
3386 use type::set_endianity_is_not_default.
3387
22c4c60c
SM
33882020-09-14 Simon Marchi <simon.marchi@efficios.com>
3389
3390 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3391 uses with type::is_fixed_instance.
3392
9cdd0d12
SM
33932020-09-14 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * gdbtypes.h (struct type) <is_fixed_instance,
3396 set_is_fixed_instance>: New methods.
3397 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3398 write call sites to use type::set_is_fixed_instance.
3399
0becda7a
SM
34002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3401
3402 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3403 uses with type::is_gnu_ifunc.
3404
03cc7249
SM
34052020-09-14 Simon Marchi <simon.marchi@efficios.com>
3406
3407 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3408 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3409 use type::set_is_gnu_ifunc.
3410
3f46044c
SM
34112020-09-14 Simon Marchi <simon.marchi@efficios.com>
3412
3413 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3414 uses with type::stub_is_supported.
3415
9baccff6
SM
34162020-09-14 Simon Marchi <simon.marchi@efficios.com>
3417
3418 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3419 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3420 use type::set_stub_is_supported.
3421
bd63c870
SM
34222020-09-14 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3425 uses with type::is_vector.
3426
2062087b
SM
34272020-09-14 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3430 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3431 use type::set_is_vector.
3432
a409645d
SM
34332020-09-14 Simon Marchi <simon.marchi@efficios.com>
3434
3435 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3436 uses with type::has_varargs.
3437
1d6286ed
SM
34382020-09-14 Simon Marchi <simon.marchi@efficios.com>
3439
3440 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3441 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3442 use type::set_has_varargs.
3443
7f9f399b
SM
34442020-09-14 Simon Marchi <simon.marchi@efficios.com>
3445
3446 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3447 uses with type::is_prototyped.
3448
27e69b7a
SM
34492020-09-14 Simon Marchi <simon.marchi@efficios.com>
3450
3451 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3452 New methods.
3453 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3454 call sites to use type::set_is_prototyped.
3455
d2183968
SM
34562020-09-14 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3459 uses with type::target_is_stub.
3460
8f53807e
SM
34612020-09-14 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3464 New methods.
3465 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3466 sites to use type::set_target_is_stub.
3467
e46d3488
SM
34682020-09-14 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * gdbtypes.h (TYPE_STUB): Remove, replace all
3471 uses with type::is_stub.
3472
b4b73759
SM
34732020-09-14 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3476 (TYPE_STUB): Use type::is_stub, change all write call sites to
3477 use type::set_is_stub.
3478
20ce4123
SM
34792020-09-14 Simon Marchi <simon.marchi@efficios.com>
3480
3481 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3482 type::has_no_signedness.
3483
15152a54
SM
34842020-09-14 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * gdbtypes.h (struct type) <has_no_signedness,
3487 set_has_no_signedness>: New methods.
3488 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3489 call sites to use type::set_has_no_signedness.
3490
c6d940a9
SM
34912020-09-14 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3494 type::is_unsigned.
3495
653223d3
SM
34962020-09-14 Simon Marchi <simon.marchi@efficios.com>
3497
3498 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3499 methods.
3500 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3501 sites to use type::set_is_unsigned.
3502
55ea94da 35032020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3504 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3505
e851246a
SM
3506 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3507 pointer and stack frame offset when unwinding.
55ea94da 3508
6791b117
PA
35092020-09-13 Pedro Alves <pedro@palves.net>
3510
3511 * NEWS: Document "-break-insert --qualified".
3512 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3513
77f2120b
PA
35142020-09-13 Pedro Alves <pedro@palves.net>
3515
3516 * linespec.c (classify_mtype, compare_msyms): Delete.
3517 (search_minsyms_for_name): Remove classification logic. Instead
3518 filter out trampoline symbols if we also found an external
3519 function of the same name.
3520
ed6a896c
JB
35212020-09-13 Joel Brobecker <brobecker@adacore.com>
3522
3523 * NEWS: Create a new section for the next release branch.
3524 Rename the section of the current branch, now that it has
3525 been cut.
3526
32aea73e
JB
35272020-09-13 Joel Brobecker <brobecker@adacore.com>
3528
3529 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3530 * version.in: Bump version to 11.0.50.DATE-git.
3531
8087c3fa
JB
35322020-09-12 Joel Brobecker <brobecker@adacore.com>
3533
3534 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3535
2a67f09d
FW
35362020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3537 Felix Willgerodt <Felix.Willgerodt@intel.com>
3538
3539 * gdbarch.sh: Added bfloat16 type.
3540 * gdbarch.c: Regenerated.
3541 * gdbarch.h: Regenerated.
3542 * gdbtypes.c (floatformats_bfloat16): New struct.
3543 (gdbtypes_post_init): Add builtin_bfloat16.
3544 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3545 (floatformats_bfloat16): New struct.
3546 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3547 (i386_ymm_type): Add field "v16_bfloat16"
3548 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3549 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3550 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3551 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3552 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3553 * features/i386/64bit-avx512.c: Regenerated.
3554 * features/i386/64bit-sse.xml: Add bfloat16 type.
3555 * features/i386/64bit-sse.c: Regenerated.
3556
1347d111
FW
35572020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3558
3559 * i386-tdep.c (i386_zmm_type): Fix field names.
3560 (i386_ymm_type): Fix field names.
3561
7a4e8e7d
TBA
35622020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3563
3564 * breakpoint.c: Fix typo in the help message of the
3565 "set breakpoint condition-evaluation" command.
3566
cf4ac4be
KR
35672020-09-10 Kamil Rytarowski <n54@gmx.com>
3568
3569 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3570 * (nbsd_nat_target::pid_to_exec_file)
3571 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3572 (nbsd_nat_target::post_startup_inferior)
3573 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3574 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3575 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3576 * (nbsd_thread_lister): Remove.
3577
f404573e
KR
35782020-09-10 Kamil Rytarowski <n54@gmx.com>
3579
3580 * fork-inferior.c (startup_inferior): Avoid double free.
3581
1ccb2c17
KR
35822020-09-10 Kamil Rytarowski <n54@gmx.com>
3583
3584 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3585 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3586
feedfcc7
KR
35872020-09-10 Kamil Rytarowski <n54@gmx.com>
3588
3589 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3590 * netbsd-nat.c: Include <sys/ptrace.h>.
3591 * (netbsd_nat::enable_proc_events): Add.
3592
c489f8c6
KR
35932020-09-10 Kamil Rytarowski <n54@gmx.com>
3594
3595 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3596 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3597 (netbsd_nat::for_each_thread): Add.
3598 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3599 "gdbsupport/common-debug.h".
3600 * (netbsd_nat::netbsd_thread_lister)
3601 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3602 (netbsd_nat::for_each_thread): Add.
3603
330662f6
KR
36042020-09-10 Kamil Rytarowski <n54@gmx.com>
3605
3606 * netbsd-nat.h: Include <unistd.h>.
3607 * (netbsd_nat::pid_to_exec_file): Add.
3608 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3609 * (netbsd_nat::pid_to_exec_file) Add.
3610
70b67307
KR
36112020-09-10 Kamil Rytarowski <n54@gmx.com>
3612
3613 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3614
99cf6da6
KR
36152020-09-10 Kamil Rytarowski <n54@gmx.com>
3616
3617 * netbsd-nat.h: New file.
3618 * netbsd-nat.c: Likewise.
3619
1b788fb6
TT
36202020-09-09 Tom Tromey <tromey@adacore.com>
3621
3622 * ada-lang.c (remove_extra_symbols): Do not increment when
3623 removing an element
3624
03b0a45f
TT
36252020-09-08 Tom Tromey <tromey@adacore.com>
3626
3627 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3628
3cae4447
TT
36292020-09-08 Tom Tromey <tromey@adacore.com>
3630
3631 PR win32/25302:
3632 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3633 (gdb_bfd_init_data): New function.
3634 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3635
7f08fd51
TBA
36362020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3637
3638 * infrun.c (fetch_inferior_event): Use
3639 `switch_to_target_no_thread` to switch the target.
3640
3e6ff933
TT
36412020-09-06 Tom Tromey <tom@tromey.com>
3642
3643 * symfile.h (dwarf2_free_objfile): Don't declare.
3644
e56798df
AKS
36452020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3646
3647 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3648 to match 16 byte real/complex type generated by Flang compiler.
3649
8f5c6526
TV
36502020-09-03 Tom de Vries <tdevries@suse.de>
3651
3652 PR breakpoint/26546
3653 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3654 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3655
c5065df0
SM
36562020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3657
3658 * maint.c (index_digits): New function.
3659 (struct maint_print_section_data): Remove.
3660 (print_bfd_section_info): Remove print_data parameter, add arg
3661 and index_digits.
3662 (print_objfile_section_info): Likewise.
3663 (print_bfd_section_info_maybe_relocated): Likewise (plus
3664 objfile).
3665 (maintenance_info_sections): Adjust calls.
3666
02c6f3f1
TT
36672020-09-02 Tom Tromey <tromey@adacore.com>
3668
3669 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3670 for null pointers.
3671 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3672
ef5e5b0b
SM
36732020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3674
3675 * bcache.h (struct bcache) <insert>: Change type of `added` to
3676 pointer to bool.
3677 * bcache.c (bcache::insert): Likewise.
3678 * gdbtypes.c (check_types_worklist): Adjust.
3679 * psymtab.c (add_psymbol_to_bcache): Adjust.
3680
973695d6
KB
36812020-08-31 Kevin Buettner <kevinb@redhat.com>
3682
3683 * corelow.c (unordered_set): Include.
3684 (class core_target): Add field 'm_core_unavailable_mappings'.
3685 (core_target::build_file_mappings): Print only one warning
3686 per inaccessible file. Add unavailable/broken mappings
3687 to m_core_unavailable_mappings.
3688 (core_target::xfer_partial): Call...
3689 (core_target::xfer_memory_via_mappings): New method.
3690
264fc0e2
SM
36912020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3692
3693 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3694 type to bool.
3695
2de01bdb
SM
36962020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3697
3698 * dwarf2/read.c (struct field_info): Fix indentation.
3699
f3bd50f1
SM
37002020-08-31 Simon Marchi <simon.marchi@efficios.com>
3701
3702 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3703 ordering in comment.
3704 * frame.c (frame_id_eq): Fix indentation.
3705
22b9b4b0
SL
37062020-08-31 Scott Linder <scott@scottlinder.com>
3707 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3710 inline frame ids in outer frame.
3711
84154d16
SM
37122020-08-31 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3715 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3716 (outer_frame_id): Use FID_STACK_OUTER instead of
3717 FID_STACK_INVALID.
3718 (frame_id_p): Don't check for outer_frame_id.
3719
8efaf6b3
SM
37202020-08-31 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3723 regnum/frame in value. Call allocate_value_lazy.
3724 * frame.c (frame_unwind_register_value): Use
3725 val_print_not_saved.
3726
fe1fe7ea
SM
37272020-08-31 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3730
f7c7700d
PA
37312020-08-29 Pedro Alves <pedro@palves.net>
3732
3733 * progspace.c (print_program_space): Use all_inferiors. Switch to
3734 the inferior before calling target_pid_to_str.
3735
e0814aae
TT
37362020-08-28 Tom Tromey <tom@tromey.com>
3737
3738 * xcoffread.c (xcoff_end_psymtab): Update comment.
3739 * dbxread.c (dbx_end_psymtab): Update comment.
3740
626d2320
TV
37412020-08-28 Tom de Vries <tdevries@suse.de>
3742
3743 PR breakpoint/26544
3744 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3745 event_location.
3746 (create_breakpoint): Same.
3747 (base_breakpoint_decode_location): Same.
3748 (bkpt_create_sals_from_location): Same.
3749 (bkpt_decode_location): Same.
3750 (bkpt_probe_create_sals_from_location): Same.
3751 (bkpt_probe_decode_location): Same.
3752 (tracepoint_create_sals_from_location): Same.
3753 (tracepoint_decode_location): Same.
3754 (tracepoint_probe_decode_location): Same.
3755 (strace_marker_create_sals_from_location): Same.
3756 (strace_marker_decode_location): Same.
3757 (create_sals_from_location_default): Same.
3758 (decode_location_default): Same.
3759 * breakpoint.h (struct breakpoint_ops): Same.
3760 (create_breakpoint): Same.
3761 * linespec.h (decode_line_full): Same.
3762 * linespec.c (decode_line_full): Same. Throw error if
3763 result.size () == 0.
3764
df631783
PA
37652020-08-27 Pedro Alves <pedro@palves.net>
3766
3767 PR gdb/26524
3768 * breakpoint.c (until_break_fsm) <location_breakpoint,
3769 caller_breakpoint>: Delete fields.
3770 <breakpoints>: New field.
3771 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3772 two individual breakpoints.
3773 (until_break_fsm::should_stop): Loop over breakpoints in the
3774 breakpoint vector.
3775 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3776 vector.
3777 (until_break_command): Handle location expanding into multiple
3778 sals.
3779
b2b38aa4
PA
37802020-08-27 Pedro Alves <pedro@palves.net>
3781
3782 PR gdb/26523
3783 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3784 bp_until breakpoints user-specified locations. Update intro
3785 comment.
3786
b886559f
SM
37872020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3788
3789 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3790 gdb_bfd_sections): New.
3791 * maint.c (print_bfd_section_info): Change param type to
3792 maint_print_section_data.
3793 (print_objfile_section_info): Likewise.
3794 (print_bfd_section_info_maybe_relocated): Likewise.
3795 (maintenance_info_sections): Use gdb_bfd_sections.
3796
4c6e63bf
SV
37972020-08-25 Shahab Vahedi <shahab@synopsys.com>
3798
3799 * MAINTAINERS: Add ARC target and maintainer.
3800
8d7f0635
AK
38012020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3802
3803 * configure.tgt: ARC support for GNU/Linux.
3804 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3805 * arc-linux-tdep.c: New file.
3806 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3807 * arc-tdep.c (arc_write_pc): Use it.
3808
fdd8731b
SV
38092020-08-25 Shahab Vahedi <shahab@synopsys.com>
3810
3811 * arc-tdep.c (arc_check_for_hardware_loop): New.
3812 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3813
22459524
SV
38142020-08-25 Shahab Vahedi <shahab@synopsys.com>
3815
3816 * arc-tdep.h: Include "gdbarch.h".
3817
995d3a19
SV
38182020-08-25 Shahab Vahedi <shahab@synopsys.com>
3819
3820 * arch/arc.h
3821 (arc_gdbarch_features): New class to stir the selection of target XML.
3822 (arc_create_target_description): Use FEATURES to choose XML target.
3823 (arc_lookup_target_description): Use arc_create_target_description
3824 to create _new_ target descriptions or return the already created
3825 ones if the FEATURES is the same.
3826 * arch/arc.c: Implementation of prototypes described above.
3827 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3828 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3829 * arc-tdep.c (*_feature_name): Make feature names consistent.
3830 (arc_register_feature): A new struct to hold information about
3831 registers of a particular target/feature.
3832 (arc_check_tdesc_feature): Check if XML provides registers in
3833 compliance with ARC_REGISTER_FEATURE structs.
3834 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3835 (determine_*_reg_feature_set): Which feature name to look for.
3836 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3837 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3838 to expected ISA enums to be used in arc_gdbarch_features structs.
3839 * features/Makefile (FEATURE_XMLFILES): Add new files.
3840 * gdb/features/arc/v1-aux.c: New file.
3841 * gdb/features/arc/v1-aux.xml: Likewise.
3842 * gdb/features/arc/v1-core.c: Likewise.
3843 * gdb/features/arc/v1-core.xml: Likewise.
3844 * gdb/features/arc/v2-aux.c: Likewise.
3845 * gdb/features/arc/v2-aux.xml: Likewise.
3846 * gdb/features/arc/v2-core.c: Likewise.
3847 * gdb/features/arc/v2-core.xml: Likewise.
3848 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3849
3945d2d7
GM
38502020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3851 Andrew Burgess <andrew.burgess@embecosm.com>
3852
3853 PR m2/26372
fc5d6901 3854 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3855 an assert. Remove single element array indexing pattern as the
3856 MULTI_SUBSCRIPT support will handle this case too.
3857
2677f2d3
SM
38582020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3859
3860 * value.h (valprint_check_validity): Move declaration from
3861 here...
3862 * valprint.h (valprint_check_validity): ... to here.
3863
c426fddb
SM
38642020-08-24 Simon Marchi <simon.marchi@efficios.com>
3865
3866 * debug.h: New file.
3867 * debug.c (debug_prefixed_vprintf): New function.
3868 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3869 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3870
1eb8556f
SM
38712020-08-24 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * infrun.h (infrun_debug_printf_1): New function declaration.
3874 (infrun_debug_printf): New macro.
3875 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3876 throughout.
3877 (infrun_debug_printf): New function.
3878 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3879 (handle_jit_event): Likewise.
3880
b8fff44e
MW
38812020-08-21 Mark Wielaard <mark@klomp.org>
3882
3883 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3884
d19c3068
SM
38852020-08-22 Simon Marchi <simon.marchi@efficios.com>
3886
3887 * frame.c (enum class frame_id_status): New.
3888 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3889 (fprintf_frame): Update.
3890 (compute_frame_id): Set frame id status to "computing" on entry.
3891 Set it back to "not_computed" on failure and to "computed" on
3892 success.
3893 (get_frame_id): Assert the frame id is not being computed.
3894 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3895 (create_new_frame): Likewise.
3896 (frame_cleanup_after_sniffer): Update assert.
3897
b70e516e
SM
38982020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3899
3900 * regcache.c (pid_ptid_regcache_map): New type.
3901 (target_ptid_regcache_map): Remove.
3902 (target_pid_ptid_regcache_map): New type.
3903 (regcaches): Change type to target_pid_ptid_regcache_map.
3904 (get_thread_arch_aspace_regcache): Update.
3905 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3906 case.
3907 (regcaches_size): Update.
3908 (regcache_count): Update.
3909 (registers_changed_ptid_target_pid_test): New.
3910 (_initialize_regcache): Register new test.
3911
cdd9148a
SM
39122020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3913
3914 * regcache.c (regcache_count): New.
3915 (struct regcache_test_data): New.
3916 (regcache_test_data_up): New.
3917 (populate_regcaches_for_test): New.
3918 (regcaches_test): Remove.
3919 (get_thread_arch_aspace_regcache_test): New.
3920 (registers_changed_ptid_all_test): New.
3921 (registers_changed_ptid_target_test): New.
3922 (registers_changed_ptid_target_ptid_test): New.
3923 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3924 (_initialize_regcache): Register new tests.
3925
dd125343
SM
39262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3927
3928 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3929 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3930 gdbarch and aspace parameter. Use current inferior's aspace.
3931 Validate regcache's arch value.
3932 (regcaches_test): Update.
3933
3ee93972
SM
39342020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3935
3936 * regcache.c (regcaches_test): Call registers_changed.
3937
33bf4c5c
TBA
39382020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3939
3940 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3941
c2fd7fae
AKS
39422020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3943
3944 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3945 to find the end of prologue for flang compiled binaries.
3946 * arm-tdep.c (arm_skip_prologue): Likewise.
3947 * i386-tdep.c (i386_skip_prologue): Likewise.
3948 * producer.c (producer_is_llvm): New function.
3949 (producer_parsing_tests): Added new tests for clang/flang.
3950 * producer.h (producer_is_llvm): New declaration.
3951
9327494e
SM
39522020-08-18 Simon Marchi <simon.marchi@efficios.com>
3953
3954 * linux-nat.c (linux_nat_debug_printf): New function.
3955 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3956
d138725a
AM
39572020-08-18 Aaron Merey <amerey@redhat.com>
3958
3959 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3960 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3961 (CLIBS): Add DEBUGINFOD_LIBS.
3962
f9b11e6b
ST
39632020-08-17 Sergei Trofimovich <siarheit@google.com>
3964
3965 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3966 'gdbarch_num_regs'.
3967
3ae7ab99
TT
39682020-08-17 Tom Tromey <tromey@adacore.com>
3969
3970 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3971 ada_get_decoded_value returns NULL.
3972
b017825f
TT
39732020-08-17 Tom Tromey <tromey@adacore.com>
3974
3975 * python/py-inferior.c (infpy_search_memory): Use
3976 gdb_py_object_from_ulongest.
3977 * python/py-infevents.c (create_inferior_call_event_object)
3978 (create_memory_changed_event_object): Use
3979 gdb_py_object_from_ulongest.
3980 * python/py-linetable.c (ltpy_entry_get_pc): Use
3981 gdb_py_object_from_ulongest.
3982
7635cf79
SM
39832020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3984
3985 * loc.c (class symbol_needs_eval_context): Fix indentation.
3986
f54be24b
SM
39872020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3988
3989 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3990 bool.
3991
53d5a2a5
TV
39922020-08-17 Tom de Vries <tdevries@suse.de>
3993
3994 PR gdb/26393
3995 * gdbtypes.c (dump_dynamic_prop): New function.
3996 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3997
547ce8f0
TV
39982020-08-15 Tom de Vries <tdevries@suse.de>
3999
4000 PR backtrace/26390
4001 * stack.c (print_frame_args): Temporarily set the selected
4002 frame to FRAME while printing the frame's arguments.
4003
6ea815e7
PFC
40042020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4005
4006 PR breakpoints/26385
4007 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4008 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4009
6e562fa3
PFC
40102020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4011
4012 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4013 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4014 and >= to check return value instead of == -1 and != -1.
4015
d369b608
SM
40162020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4017
4018 * utils.h (class gdb_argv) <as_array_view>: New method.
4019 * utils.c (gdb_argv_as_array_view_test): New.
4020 (_initialize_utils): Register selftest.
4021 * maint.c (maintenance_selftest): Use the new method.
4022
b31488a3
KR
40232020-08-13 Kamil Rytarowski <n54@gmx.com>
4024
4025 * target.h (supports_dumpcore, dumpcore): New
4026 function declarations.
4027 * target.c (supports_dumpcore, dumpcore): New
4028 functions.
4029 * target-delegates.c: Rebuild.
4030 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4031 and target_dumpcore ().
4032
002a3166
AM
40332020-08-13 Aaron Merey <amerey@redhat.com>
4034
4035 * debuginfod-support.c: Replace global variables with user_data.
4036
ece5bc8a
SM
40372020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4038
4039 * maint.c (maintenance_selftest): Split args and pass array_view
4040 to run_tests.
4041
6d8a0a5e
LM
40422020-08-12 Luis Machado <luis.machado@linaro.org>
4043
4044 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4045 type's length.
4046 Use %s and pulongest to print the length.
4047
7cf663a9
PA
40482020-08-12 Pedro Alves <palves@redhat.com>
4049
4050 * NEWS: Move "Multi-target debugging support" item to the
4051 "Changes since GDB 9" section.
4052
27c7b875
PA
40532020-08-12 Pedro Alves <palves@redhat.com>
4054
4055 PR gdb/26336
4056 * progspace.c (program_space::remove_objfile): Invalidate the
4057 frame cache.
4058
1796a2a1
TV
40592020-08-11 Tom de Vries <tdevries@suse.de>
4060
4061 * MAINTAINERS: Mark ms1 as deleted.
4062
f8e3fe0d
LM
40632020-08-10 Luis Machado <luis.machado@linaro.org>
4064
4065 PR gdb/26310
4066
4067 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4068 act accordingly.
4069 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4070 movz/str/stur/stp skipping behavior.
4071
cc308722
LM
40722020-08-10 Luis Machado <luis.machado@linaro.org>
4073
4074 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4075 struct user_sve_header instead of struct sve_context.
4076
041d9819
SM
40772020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4078
4079 * read.h (dwarf2_fetch_die_loc_sect_off,
4080 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4081 `void *` parameter with function_view.
4082 * read.c (dwarf2_fetch_die_loc_sect_off,
4083 dwarf2_fetch_die_loc_cu_off): Likewise.
4084 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4085 (per_cu_dwarf_call): Adjust.
4086 (get_frame_address_in_block_wrapper): Remove.
4087 (indirect_synthetic_pointer): Adjust.
4088 (get_ax_pc): Remove.
4089 (dwarf2_compile_expr_to_ax): Adjust.
4090
38f8aa06
TV
40912020-08-08 Tom de Vries <tdevries@suse.de>
4092
4093 PR build/26344
4094 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4095 constructor.
4096 * regcache.c (get_thread_arch_aspace_regcache): Same.
4097
a52b3ae2
TT
40982020-08-07 Tom Tromey <tromey@adacore.com>
4099
4100 * ravenscar-thread.c
4101 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4102 New method.
4103 (ravenscar_thread_target::wait): Check
4104 runtime_initialized.
4105 (ravenscar_thread_target::prepare_to_store)
4106 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4107 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4108 (ravenscar_thread_target::stopped_by_watchpoint)
4109 (ravenscar_thread_target::stopped_data_address)
4110 (ravenscar_thread_target::core_of_thread): Use
4111 scoped_restore_current_thread and
4112 set_base_thread_from_ravenscar_task.
4113
0e29517d
TT
41142020-08-07 Tom Tromey <tromey@adacore.com>
4115
4116 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4117
592f9bd7
TT
41182020-08-07 Tom Tromey <tromey@adacore.com>
4119
4120 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4121 update_inferior_ptid before update_thread_list.
4122 (temporarily_change_regcache_ptid): New class.
4123 (ravenscar_thread_target::fetch_registers)
4124 (ravenscar_thread_target::store_registers)
4125 (ravenscar_thread_target::prepare_to_store): Use base thread when
4126 forwarding operation.
4127
39e2018a
TT
41282020-08-07 Tom Tromey <tromey@adacore.com>
4129
4130 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4131 "is_pid" case.
4132
2080266b
TT
41332020-08-07 Tom Tromey <tromey@adacore.com>
4134
4135 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4136 New methods.
4137 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4138 first.
4139 (ravenscar_thread_target::add_thread): Rename from
4140 ravenscar_add_thread.
4141 (ravenscar_thread_target::update_thread_list): Use a lambda.
4142 (ravenscar_thread_target::xfer_partial): New method.
4143
78c02f21
TT
41442020-08-07 Tom Tromey <tromey@adacore.com>
4145
4146 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4147 gdb::function_view.
4148 (iterate_over_live_ada_tasks): Change type of argument.
4149 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4150 of argument.
4151
d5d833af
TT
41522020-08-07 Tom Tromey <tromey@adacore.com>
4153
4154 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4155 Remove.
4156 (ravenscar_thread_target::extra_thread_info): Remove.
4157 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4158 defer to target beneath for non-Ravenscar threads.
4159
a8ac85bb
TT
41602020-08-07 Tom Tromey <tromey@adacore.com>
4161
4162 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4163 get_base_thread_from_ravenscar_task>: Now methods.
4164 <m_cpu_map>: New member.
4165 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4166 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4167 (ravenscar_thread_target::task_is_currently_active): Update.
4168 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4169 Now a method.
4170 (ravenscar_thread_target::add_active_thread): Put initial thread
4171 into the m_cpu_map.
4172
550ab58d
TT
41732020-08-07 Tom Tromey <tromey@adacore.com>
4174
4175 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4176 event_ptid.
4177
e9546579
TT
41782020-08-07 Tom Tromey <tromey@adacore.com>
4179
4180 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4181 runtime_initialized.
4182
3d4470e5
TT
41832020-08-07 Tom Tromey <tromey@adacore.com>
4184
4185 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4186 add_active_thread.
4187 (ravenscar_thread_target::add_active_thread): Now public.
4188 (ravenscar_inferior_created): Call add_active_thread after pushing
4189 the target.
4190
888bdb2b
SM
41912020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4192
4193 * regcache.c (ptid_regcache_map): New type.
4194 (target_ptid_regcache_map): New type.
4195 (regcaches): Change type to target_ptid_regcache_map.
4196 (get_thread_arch_aspace_regcache): Update to regcaches' new
4197 type.
4198 (regcache_thread_ptid_changed): Likewise.
4199 (registers_changed_ptid): Likewise.
4200 (regcaches_size): Likewise.
4201 (regcaches_test): Update.
4202 (regcache_thread_ptid_changed): Update.
4203 * regcache.h (regcache_up): New type.
4204 * gdbsupport/ptid.h (hash_ptid): New struct.
4205
b161a60d
SM
42062020-08-07 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * observable.h (thread_ptid_changed): Add parameter
4209 `process_stratum_target *`.
4210 * infrun.c (infrun_thread_ptid_changed): Add parameter
4211 `process_stratum_target *` and use it.
4212 (selftests): New namespace.
4213 (infrun_thread_ptid_changed): New function.
4214 (_initialize_infrun): Register selftest.
4215 * regcache.c (regcache_thread_ptid_changed): Add parameter
4216 `process_stratum_target *` and use it.
4217 (regcache_thread_ptid_changed): New function.
4218 (_initialize_regcache): Register selftest.
4219 * thread.c (thread_change_ptid): Pass target to
4220 thread_ptid_changed observable.
4221
d2854d8d
CT
42222020-08-06 Caroline Tice <cmtice@google.com>
4223
fe4c3d43
SM
4224 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4225 (struct dwp_sections): Update field comments. Add loclists and
4226 rnglists fields.
4227 (struct virtual_v2_dwo_sections): Rename struct to
4228 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4229 size & offset fields for loclists and rnglists.
4230 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4231 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4232 skipping dummy type units.
4233 (create_dwp_hash_table): Update the large comment above the function to
4234 discuss Version 5 DWP files as well, with references. Update all the
4235 version checks in the function to check for version 5 as well. Add new
4236 section at the end to create dwp hash table for version 5.
4237 (create_dwp_v2_section): Rename function to
4238 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4239 Add V5 to error message text.
4240 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4241 into calls to create_dwp_v2_or_v5_section.
4242 (create_dwo_unit_in_dwp_v5): New function.
4243 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4244 check for version2; add else clause to handle version 5.
4245 (open_and_init_dwo_file): Add code to check dwarf version & only call
4246 create_debug_types_hash_table (with sections.types) if version is not 5;
4247 else call create_debug_type_hash_table, with sections.info.
4248 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4249 version 5.
4250 (dwarf2_locate_v5_dwp_sections): New function.
4251 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4252 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4253
159ed7d9
SM
42542020-08-06 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * regcache.h (class regcache): Remove friend
4257 registers_changed_ptid.
4258 <regcache_thread_ptid_changed>: Remove.
4259 <regcaches>: Remove.
4260 * regcache.c (regcache::regcaches): Rename to...
4261 (regcaches): ... this. Make static.
4262 (get_thread_arch_aspace_regcache): Update.
4263 (regcache::regcache_thread_ptid_changed): Rename to...
4264 (regcache_thread_ptid_changed): ... this. Update.
4265 (class regcache_access): Remove.
4266 (regcaches_test): Update.
4267 (_initialize_regcache): Update.
4268 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4269 <forward_list>.
4270
174981ae
SM
42712020-08-06 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * regcache.h (class regcache) <current_regcache>: Rename to...
4274 <regcaches>: ... this. Move doc here.
4275 * regcache.c (regcache::current_regcache) Rename to...
4276 (regcache::regcaches): ... this. Move doc to header.
4277 (get_thread_arch_aspace_regcache): Update.
4278 (regcache::regcache_thread_ptid_changed): Update.
4279 (registers_changed_ptid): Update.
4280 (class regcache_access) <current_regcache_size>: Rename to...
4281 <regcaches_size>: ... this.
4282 (current_regcache_test): Rename to...
4283 (regcaches_test): ... this.
4284 (_initialize_regcache): Update.
4285
ed908db6
VC
42862020-08-06 Victor Collod <vcollod@nvidia.com>
4287
4288 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4289
b5582ab7
KB
42902020-08-05 Kevin Buettner <kevinb@redhat.com>
4291
4292 * corelow.c (core_target::build_file_mappings): Don't output
4293 null pathname in warning.
4294
ea946b86
SM
42952020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4296
4297 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4298 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4299 gdb.dwarf2/dw2-single-line-discriminators.exp,
4300 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4301
57d02173
TT
43022020-08-05 Tom Tromey <tromey@adacore.com>
4303
4304 PR rust/26197:
4305 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4306 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4307 Fix off-by-one and type size errors in ordinary case.
4308
5555c86d
TV
43092020-08-05 Tom de Vries <tdevries@suse.de>
4310
4311 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4312 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4313
97916bfe
SM
43142020-08-04 Simon Marchi <simon.marchi@efficios.com>
4315
4316 * frame.h (frame_id_p): Return bool.
4317 (frame_id_artificial_p): Return bool.
4318 (frame_id_eq): Return bool.
4319 (has_stack_frames): Return bool.
4320 (get_selected_frame): Fix typo in comment.
4321 (get_frame_pc_if_available): Return bool.
4322 (get_frame_address_in_block_if_available): Return bool.
4323 (get_frame_func_if_available): Return bool.
4324 (read_frame_register_unsigned): Return bool.
4325 (get_frame_register_bytes): Return bool.
4326 (safe_frame_unwind_memory): Return bool.
4327 (deprecated_frame_register_read): Return bool.
4328 (frame_unwinder_is): Return bool.
4329 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4330 bool.
4331 <this_id::p>: Likewise.
4332 <prev_p>: Likewise.
4333 (frame_stash_add): Return bool.
4334 (get_frame_id): Use bool.
4335 (frame_id_build_special) Use bool.
4336 (frame_id_build_unavailable_stack): Use bool.
4337 (frame_id_build): Use bool.
4338 (frame_id_p): Return bool, use true/false instead of 1/0.
4339 (frame_id_artificial_p): Likewise.
4340 (frame_id_eq): Likewise.
4341 (frame_id_inner): Likewise.
4342 (get_frame_func_if_available): Likewise.
4343 (read_frame_register_unsigned): Likewise.
4344 (deprecated_frame_register_read): Likewise.
4345 (get_frame_register_bytes): Likewise.
4346 (has_stack_frames): Likewise.
4347 (inside_main_func): Likewise.
4348 (inside_entry_func): Likewise.
4349 (get_frame_pc_if_available): Likewise.
4350 (get_frame_address_in_block_if_available): Likewise.
4351 (frame_unwinder_is): Likewise.
4352 (safe_frame_unwind_memory): Likewise.
4353 (frame_unwind_arch): Likewise.
4354
fedfee88
SM
43552020-08-04 Simon Marchi <simon.marchi@efficios.com>
4356
4357 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4358 type to cached_copy_status.
4359 (fprintf_frame): Adjust.
4360 (get_frame_func_if_available): Adjust.
4361 (frame_cleanup_after_sniffer): Adjust.
4362
6cfa9b59
MW
43632020-08-04 Mark Wielaard <mark@klomp.org>
4364
4365 * MAINTAINERS (Write After Approval): Update email address.
4366
66d6346b
SM
43672020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4368
4369 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4370 dynamic_prop::const_val.
4371
8a6d5e35
SM
43722020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4373
4374 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4375 dynamic_prop::kind.
4376
51d6067d
SM
43772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4378
4379 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4380
b26e2ae7
JM
43812020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4382
4383 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4384
39791af2
JM
43852020-08-04 Weimin Pan <weimin.pan@oracle.com>
4386 Jose E. Marchesi <jose.marchesi@oracle.com>
4387
4388 * configure.tgt: Add entry for bpf-*-*.
4389 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4390 (ALLDEPFILES): Add bpf-tdep.c.
4391 * bpf-tdep.c: New file.
4392 * MAINTAINERS: Add bpf target and maintainer.
4393 * NEWS: Mention the support for the new target.
4394
521894aa
TV
43952020-08-04 Tom de Vries <tdevries@suse.de>
4396
4397 PR symtab/23270
4398 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4399 Error.
4400
5d6356e9
JB
44012020-08-03 John Baldwin <jhb@FreeBSD.org>
4402
4403 * syscalls/freebsd.xml: Regenerate.
4404
0cf82b81
JB
44052020-08-03 John Baldwin <jhb@FreeBSD.org>
4406
4407 * syscalls/update-freebsd.sh: Fix usage and year range.
4408
8f34b746
TV
44092020-08-03 Tom de Vries <tdevries@suse.de>
4410
4411 PR symtab/26333
4412 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4413 DW_LNE_lo_user/DW_LNE_hi_user range.
4414
5e500d33
SM
44152020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 PR ada/26318
4418 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4419 kind.
4420
78319c15
TBA
44212020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4422
4423 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4424
4c55e970
TBA
44252020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4426
4427 * breakpoint.c (set_breakpoint_condition): Update the condition
4428 expressions after checking that the input condition string parses
4429 successfully and does not contain junk at the end.
4430
1e620590
TBA
44312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4432
4433 * breakpoint.c (set_breakpoint_condition): Update the
4434 condition string after parsing the new condition successfully.
4435
c8693053
RO
44362020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4437
4438 * proc-api.c (_STRUCTURED_PROC): Don't define.
4439 * proc-events.c: Likewise.
4440 * proc-flags.c: Likewise.
4441 * proc-why.c: Likewise.
4442 * procfs.c: Likewise.
4443
4444 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4445 * configure, config.in: Regenerate.
4446
5a99adb8
TV
44472020-07-30 Tom de Vries <tdevries@suse.de>
4448
4449 PR build/26320
4450 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4451 m_red/m_green/m_blue in a union.
4452
8ba83e91
TV
44532020-07-29 Tom de Vries <tdevries@suse.de>
4454
4455 PR tdep/26280
4456 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4457
f75a0693
AB
44582020-07-28 Tom Tromey <tromey@adacore.com>
4459
4460 PR symtab/26270:
4461 * symtab.h (find_pc_partial_function_sym): Declare.
4462 * cli/cli-cmds.c (disassemble_command): Use
4463 find_pc_partial_function_sym. Check asm_demangle.
4464 * blockframe.c (cache_pc_function_sym): New global.
4465 (cache_pc_function_name): Remove.
4466 (clear_pc_function_cache): Update.
4467 (find_pc_partial_function_sym): New function, from
4468 find_pc_partial_function.
4469 (find_pc_partial_function): Rewrite using
4470 find_pc_partial_function_sym.
4471
16f3242c
TT
44722020-07-28 Tom Tromey <tromey@adacore.com>
4473
4474 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4475 help. Add usage.
4476
4888741a
TT
44772020-07-28 Tom Tromey <tromey@adacore.com>
4478
4479 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4480 <DW_OP_GNU_variable_value>: Cast to address type.
4481
4d46f402
KR
44822020-07-28 Kamil Rytarowski <n54@gmx.com>
4483
4484 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4485 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4486 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4487 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4488 (nbsd_get_siginfo_type): New.
4489 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4490 (_initialize_nbsd_tdep): New.
4491
d70f978b
L
44922020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4493
4494 PR binutils/26301
4495 * configure: Regenerated.
4496
377170fa
L
44972020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4498
4499 PR binutils/26301
4500 * configure: Regenerated.
4501
43d5901d
AB
45022020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4503
4504 * python/py-frame.c: Remove 'user-regs.h' include.
4505 (frapy_read_register): Rewrite to make use of
4506 gdbpy_parse_register_id.
4507 * python/py-registers.c (gdbpy_parse_register_id): New function,
4508 moved here from python/py-unwind.c. Updated the return type, and
4509 also accepts register descriptor objects.
4510 * python/py-unwind.c: Remove 'user-regs.h' include.
4511 (pyuw_parse_register_id): Moved to python/py-registers.c.
4512 (unwind_infopy_add_saved_register): Update to use
4513 gdbpy_parse_register_id.
4514 (pending_framepy_read_register): Likewise.
4515 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4516
14fa8fb3
AB
45172020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4518
4519 * python/py-registers.c: Add 'user-regs.h' include.
4520 (register_descriptor_iter_find): New function.
4521 (register_descriptor_iterator_object_methods): New static global
4522 methods array.
4523 (register_descriptor_iterator_object_type): Add pointer to methods
4524 array.
4525
ddce1758
JB
45262020-07-27 John Baldwin <jhb@FreeBSD.org>
4527
4528 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4529 for all architectures on FreeBSD 11.3 and later.
4530
a4089f52
TT
45312020-07-27 Tom Tromey <tromey@adacore.com>
4532
4533 * gcore.h (load_corefile): Don't declare.
4534
95420d30
TV
45352020-07-27 Tom de Vries <tdevries@suse.de>
4536
4537 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4538 * config.in: Regenerate.
4539 * configure: Regenerate.
4540
05a6b8c2
EZ
45412020-07-26 Eli Zaretskii <eliz@gnu.org>
4542
4543 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4544 ws2tcpip.h. When checking whether socklen_t type is defined, use
4545 ws2tcpip.h if it is available and sys/socket.h isn't.
4546 * configure: Regenerate.
4547 * config.in: Regenerate.
4548
e79eb02f
AB
45492020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4550
4551 PR fortran/23051
4552 PR fortran/26139
4553 * valops.c (value_ind): Pass address to
4554 readjust_indirect_value_type.
4555 * value.c (readjust_indirect_value_type): Make parameter
4556 non-const, and add extra address parameter. Resolve original type
4557 before using it.
4558 * value.h (readjust_indirect_value_type): Update function
4559 signature and comment.
4560
876518dd
TV
45612020-07-25 Tom de Vries <tdevries@suse.de>
4562
4563 PR symtab/26243
4564 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4565 entries.
4566
f6720b1c
AM
45672020-07-24 Aaron Merey <amerey@redhat.com>
4568
4569 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4570 * configure: Rebuild.
4571
513487e1
KB
45722020-07-23 Kevin Buettner <kevinb@redhat.com>
4573
4574 PR corefiles/26294
4575 * corelow.c (_initialize_corelow): Add period to help text
4576 for "maintenance print core-file-backed-mappings".
4577
e7bc9db8
PA
45782020-07-23 Pedro Alves <pedro@palves.net>
4579
4580 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4581 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4582 meanwhile.
4583 * frame.c (frame_cache_generation, get_frame_cache_generation):
4584 New.
4585 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4586 (get_prev_frame_if_no_cycle): On exception, don't touch
4587 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4588 * frame.h (get_frame_cache_generation): Declare.
4589
90fcc466
TV
45902020-07-23 Tom de Vries <tdevries@suse.de>
4591
4592 PR tui/26282
4593 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4594 New default constructor.
4595
78344df7
AB
45962020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4597
4598 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4599 exclude non-statement entries.
4600
b089853a
KB
46012020-07-22 Kevin Buettner <kevinb@redhat.com>
4602
4603 * NEWS (New commands): Mention new command
4604 "maintenance print core-file-backed-mappings".
4605
09c2f5d4
KB
46062020-07-22 Kevin Buettner <kevinb@redhat.com>
4607
4608 * corelow.c (gdbcmd.h): Include.
4609 (core_target::info_proc_mappings): New method.
4610 (get_current_core_target): New function.
4611 (maintenance_print_core_file_backed_mappings): New function.
4612 (_initialize_corelow): Add core-file-backed-mappings to
4613 "maint print" commands.
4614
9c5ec5c2 46152020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4616
9c5ec5c2
KB
4617 * linux-tdep.c (dump_note_entry_p): New function.
4618 (linux_dump_mapping_p_ftype): New typedef.
4619 (linux_find_memory_regions_full): Add new parameter,
4620 should_dump_mapping_p.
4621 (linux_find_memory_regions): Adjust call to
4622 linux_find_memory_regions_full.
4623 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4624 call to linux_find_memory_regions_full.
4625
db082f59
KB
46262020-07-22 Kevin Buettner <kevinb@redhat.com>
4627
4628 * corelow.c (solist.h, unordered_map): Include.
4629 (class core_target): Add field m_core_file_mappings and
4630 method build_file_mappings.
4631 (core_target::core_target): Call build_file_mappings.
4632 (core_target::~core_target): Free memory associated with
4633 m_core_file_mappings.
4634 (core_target::build_file_mappings): New method.
4635 (core_target::xfer_partial): Use m_core_file_mappings
4636 for memory transfers.
4637 * linux-tdep.c (linux_read_core_file_mappings): New
4638 function.
4639 (linux_core_info_proc_mappings): Rewrite to use
4640 linux_read_core_file_mappings.
4641 (linux_init_abi): Register linux_read_core_file_mappings.
4642
7e183d27
KB
46432020-07-22 Kevin Buettner <kevinb@redhat.com>
4644
4645 * arch-utils.c (default_read_core_file_mappings): New function.
4646 * arch-utils.c (default_read_core_file_mappings): Declare.
4647 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4648 * gdbarch.h, gdbarch.c: Regenerate.
4649
2735d421
KB
46502020-07-22 Kevin Buettner <kevinb@redhat.com>
4651
4652 PR corefiles/25631
4653 * corelow.c (core_target:xfer_partial): Revise
4654 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4655 case after first checking the stratum beneath the core
4656 target.
4657 (has_all_memory): Return true.
4658 * target.c (raw_memory_xfer_partial): Revise comment
4659 regarding use of has_all_memory.
4660
e56cb451
KB
46612020-07-22 Kevin Buettner <kevinb@redhat.com>
4662
4663 * exec.h (section_table_xfer_memory): Revise declaration,
4664 replacing section name parameter with an optional callback
4665 predicate.
4666 * exec.c (section_table_xfer_memory): Likewise.
4667 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4668 of section_table_xfer_memory.
4669
32fa152e
TT
46702020-07-22 Tom Tromey <tromey@adacore.com>
4671
4672 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4673 lookup_symbol_search_name.
4674
a67a1c41
AB
46752020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4676
4677 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4678 redundant local variable.
4679 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4680 reference, not pointer, update code accordingly.
4681
a7b4ff4f
SM
46822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4683 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4684
4685 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4686 * jit.c (jit_breakpoint_re_set_internal): Use the
4687 `skip_jit_symbol_lookup` field.
4688
2340e834
SM
46892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4690 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4691
4692 * jit.c (jit_read_descriptor): Define the descriptor address once,
4693 use twice.
4694 (jit_breakpoint_deleted): Move the declaration of the loop variable
4695 `iter` into the loop header.
4696 (jit_breakpoint_re_set_internal): Move the declaration of the local
4697 variable `objf_data` to the first point of definition.
4698 (jit_event_handler): Move the declaration of local variables
4699 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4700 Rename `objf` to `jited`.
4701
c1072906
SM
47022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4703
4704 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4705 Remove.
4706 * jit.c (get_jiter_objfile_data): Update.
4707
c8474dc3
TBA
47082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4709 Simon Marchi <simon.marchi@polymtl.ca>
4710
4711 * jit.c (struct jit_program_space_data): Remove.
4712 (jit_program_space_key): Remove.
4713 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4714 stuff.
4715 (get_jit_program_space_data): Remove.
4716 (jit_breakpoint_deleted): Iterate on all of the program space's
4717 objfiles.
4718 (jit_inferior_init): Likewise.
4719 (jit_breakpoint_re_set_internal): Likewise. Also change return
4720 type to void.
4721 (jit_breakpoint_re_set): Pass current_program_space to
4722 jit_breakpoint_re_set_internal.
4723
77208eb7
SM
47242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4725
4726 * jit.h (struct jiter_objfile_data) <cached_code_address,
4727 jit_breakpoint>: Move to here from ...
4728 * jit.c (jit_program_space_data): ... here.
4729 (jiter_objfile_data::~jiter_objfile_data): Update.
4730 (jit_breakpoint_deleted): Update.
4731 (jit_breakpoint_re_set_internal): Update.
4732
8c1c720f
SM
47332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4734
4735 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4736 checks.
4737 (jit_read_descriptor): Remove NULL check.
4738 (jit_event_handler): Add an assertion.
4739
0e74a041
SM
47402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4741
4742 * jit.h (struct jit_objfile_data): Split into...
4743 (struct jiter_objfile_data): ... this ...
4744 (struct jited_objfile_data): ... and this.
4745 * objfiles.h (struct objfile) <jit_data>: Remove.
4746 <jiter_data, jited_data>: New fields.
4747 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4748 (jiter_objfile_data::~jiter_objfile_data): ... this.
4749 (get_jit_objfile_data): Rename to ...
4750 (get_jiter_objfile_data): ... this.
4751 (add_objfile_entry): Update.
4752 (jit_read_descriptor): Use get_jiter_objfile_data.
4753 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4754 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4755 (jit_inferior_exit_hook): Use objfile's jited_data field.
4756
238b5c9f
SM
47572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4758
4759 * jit.h: Forward-declare `struct minimal_symbol`.
4760 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4761 constructor, destructor, and an objfile* field.
4762 * jit.c (jit_objfile_data): Remove.
4763 (struct jit_objfile_data): Migrate from here to jit.h.
4764 (jit_objfile_data::~jit_objfile_data): New destructor
4765 implementation with code moved from free_objfile_data.
4766 (free_objfile_data): Delete.
4767 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4768 (jit_find_objf_with_entry_addr): Ditto.
4769 (jit_inferior_exit_hook): Ditto.
4770 (_initialize_jit): Remove the call to
4771 register_objfile_data_with_cleanup.
4772 * objfiles.h (struct objfile) <jit_data>: New field.
4773
fe053b9e
TBA
47742020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4775
4776 * jit.h: Forward-declare `struct objfile`.
4777 (jit_event_handler): Add a second parameter, the JITer objfile.
4778 * jit.c (jit_read_descriptor): Change the signature to take the
4779 JITer objfile as an argument instead of the jit_program_space_data.
4780 (jit_inferior_init): Update the call to jit_read_descriptor.
4781 (jit_event_handler): Use the new JITer objfile argument when calling
4782 jit_read_descriptor.
4783 * breakpoint.c (handle_jit_event): Update the call to
4784 jit_event_handler to pass the JITer objfile.
4785
4cec0c66
JB
47862020-07-21 John Baldwin <jhb@FreeBSD.org>
4787
4788 * gdbarch.c: Regenerate.
4789 * gdbarch.h: Regenerate.
4790 * gdbarch.sh (handle_segmentation_fault): Remove method.
4791 * infrun.c (handle_segmentation_fault): Remove.
4792 (print_signal_received_reason): Remove call to
4793 handle_segmentation_fault.
4794
0e42f66a
JB
47952020-07-21 John Baldwin <jhb@FreeBSD.org>
4796
4797 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4798 Rename to sparc64_linux_report_signal_info and add siggnal
4799 argument.
4800 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4801 instead of sparc64_linux_handle_segmentation_fault.
4802
77bdfeb2
JB
48032020-07-21 John Baldwin <jhb@FreeBSD.org>
4804
4805 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4806 i386_linux_report_signal_info instead of
4807 i386_linux_handle_segmentation_fault.
4808 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4809 to i386_linux_report_signal_info and add siggnal argument.
4810 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4811 of i386_linux_handle_segmentation_fault.
4812 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4813 to i386_linux_report_signal_info and add siggnal argument.
4814
ad97bfc5
JB
48152020-07-21 John Baldwin <jhb@FreeBSD.org>
4816
4817 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4818 hook if present.
4819
272bb05c
JB
48202020-07-21 John Baldwin <jhb@FreeBSD.org>
4821
4822 * gdbarch.c: Regenerate.
4823 * gdbarch.h: Regenerate.
4824 * gdbarch.sh (report_signal_info): New method.
4825 * infrun.c (print_signal_received_reason): Invoke gdbarch
4826 report_signal_info hook if present.
4827
baf8791e
AB
48282020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4829
4830 * python/py-registers.c : Add 'unordered_map' include.
4831 (gdbpy_new_reggroup): Renamed to...
4832 (gdbpy_get_reggroup): ...this. Update to only create register
4833 group descriptors when needed.
4834 (gdbpy_reggroup_iter_next): Update.
4835
f7306dac
AB
48362020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4837
4838 * python/py-registers.c (gdbpy_register_object_data): New static
4839 global.
4840 (gdbpy_register_object_data_init): New function.
4841 (gdbpy_new_register_descriptor): Renamed to...
4842 (gdbpy_get_register_descriptor): ...this, and update to reuse
4843 existing register descriptors where possible.
4844 (gdbpy_register_descriptor_iter_next): Update.
4845 (gdbpy_initialize_registers): Register new gdbarch data.
4846
05c309a8
SM
48472020-07-21 Simon Marchi <simon.marchi@efficios.com>
4848
4849 * linux-nat.c (stopped_pids): Make static.
4850
d1fd641e
SM
48512020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4852
4853 PR ada/26235
4854 * gdbtypes.c (ada_discrete_type_low_bound,
4855 ada_discrete_type_high_bound): Handle undefined bounds.
4856
1de14d77
KR
48572020-07-21 Kamil Rytarowski <n54@gmx.com>
4858
4859 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4860 declaration.
4861 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4862 function.
4863
ed810cc7
JB
48642020-07-20 John Baldwin <jhb@FreeBSD.org>
4865
4866 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4867 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4868 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4869 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4870 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4871 method.
4872
ae5369e7
LC
48732020-07-20 Ludovic Courtès <ludo@gnu.org>
4874
4875 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4876 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4877 which are deprecated in Guile 3.0.
4878 * configure.ac (try_guile_versions): Add "guile-3.0".
4879 * configure (try_guile_versions): Regenerate.
4880 * NEWS: Update entry.
4881
68cf161c
LC
48822020-07-20 Ludovic Courtès <ludo@gnu.org>
4883 Doug Evans <dje@google.com>
4884
4885 PR gdb/21104
4886 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4887 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4888 USING_GUILE_BEFORE_2_2.
4889 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4890 Change type to 'scm_t_port_type *'.
4891 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4892 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4893 parameter and honor it. Update callers.
4894 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4895 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4896 functions.
4897 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4898 USING_GUILE_BEFORE_2_2.
4899 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4900 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4901 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4902 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4903 and 'SCM_PORT_TYPE'.
4904 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4905 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4906 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4907 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4908 [!USING_GUILE_BEFORE_2_2]: New functions.
4909 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4910 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4911 'gdbscm_memory_port_read'.
4912 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4913 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4914 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4915 function.
4916 (ioscm_init_memory_port): Remove.
4917 (ioscm_init_memory_port_stream): New function
4918 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4919 function.
4920 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4921 Return scm_from_uint (0).
4922 (gdbscm_set_memory_port_read_buffer_size_x)
4923 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4924 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4925 Return scm_from_uint (0).
4926 (gdbscm_set_memory_port_write_buffer_size_x)
4927 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4928 * configure.ac (try_guile_versions): Add "guile-2.2".
4929 * configure: Regenerate.
4930 * NEWS: Add entry.
4931
aee91db3
TT
49322020-07-18 Tom Tromey <tom@tromey.com>
4933
4934 * linux-nat.c (linux_multi_process): Remove.
4935 (linux_nat_target::supports_multi_process): Return true.
4936
0e267416
AB
49372020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4940 (riscv_lookup_target_description): Return pointer out of
4941 unique_ptr.
4942 * target-descriptions.c (allocate_target_description): Add
4943 comment.
4944 (target_desc_deleter::operator()): Likewise.
4945 * target-descriptions.h (struct target_desc_deleter): Moved to
4946 gdbsupport/tdesc.h.
4947 (target_desc_up): Likewise.
4948
f80c8ec4
TT
49492020-07-17 Tom Tromey <tromey@adacore.com>
4950
4951 * linux-nat.c (linux_nat_target::supports_non_stop)
4952 (linux_nat_target::always_non_stop_p): Use "true".
4953 (linux_nat_target::supports_disable_randomization): Use "true" and
4954 "false".
4955
d0ce17d8
CT
49562020-07-16 Caroline Tice <cmtice@google.com>
4957
4958 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4959 (RNGLIST_HEADER_SIZE64): New constant definition.
4960 (struct dwop_section_names): Add rnglists_dwo.
4961 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4962 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4963 (struct dwo_sections): Add rnglists field.
4964 (read_attribut_reprocess): Add tag parameter.
4965 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4966 (cu_debug_rnglists_section): New function (decl & definition).
4967 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4968 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4969 die whose range is being checked; get rnglist section from
4970 cu_debug_rnglists_section, to get from either objfile or dwo file as
4971 appropriate. Add cases for DW_RLE_base_addressx,
4972 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4973 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4974 test inside if-condition and updating complaint message.
4975 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4976 dwarf2_rnglists_process.
4977 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4978 dwarf2_ranges_process.
4979 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4980 need_ranges_base and update comment appropriately. Also pass die tag
4981 to dwarf2_ranges_read.
4982 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4983 need_ranges_base and update comment appropriately. Also pass die tag
4984 to dwarf2_ranges_process.
4985 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4986 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4987 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4988 need_ranges_base and update comment appropriately. Also pass die tag
4989 to read_attribute_reprocess and dwarf2_ranges_read.
4990 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4991 and update function comment appropriately.
4992 (read_loclist_index): Call read_loclists_rnglists_header instead of
4993 read_loclist_header.
4994 (read_rnglist_index): New function.
4995 (read_attribute_reprocess): Add tag parameter. Add code for
4996 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4997 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4998
3dcc261c
AB
49992020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5000
5001 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5002 being resolved.
5003
ccb9eba6
AB
50042020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5005
5006 * arch-utils.c (show_architecture): Update formatting of messages.
5007
cf88be68
SM
50082020-07-12 Simon Marchi <simon.marchi@efficios.com>
5009
5010 * gdbtypes.h (struct type) <bounds>: Handle array and string
5011 types.
5012 * ada-lang.c (assign_aggregate): Use type::bounds on
5013 array/string type.
5014 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5015 * c-varobj.c (c_number_of_children): Likewise.
5016 (c_describe_child): Likewise.
5017 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5018 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5019 (f_type_print_base): Likewise.
5020 * f-valprint.c (f77_array_offset_tbl): Likewise.
5021 (f77_get_upperbound): Likewise.
5022 (f77_print_array_1): Likewise.
5023 * guile/scm-type.c (gdbscm_type_range): Likewise.
5024 * m2-typeprint.c (m2_array): Likewise.
5025 (m2_is_long_set_of_type): Likewise.
5026 * m2-valprint.c (get_long_set_bounds): Likewise.
5027 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5028 * python/py-type.c (typy_range): Likewise.
5029 * rust-lang.c (rust_internal_print_type): Likewise.
5030 * type-stack.c (type_stack::follow_types): Likewise.
5031 * valarith.c (value_subscripted_rvalue): Likewise.
5032 * valops.c (value_cast): Likewise.
5033
509971ae
SM
50342020-07-12 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5037 callers to use the equivalent accessor methods.
5038
107406b7
SM
50392020-07-12 Simon Marchi <simon.marchi@efficios.com>
5040
5041 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5042 (struct type) <bit_stride>: New method.
5043 (TYPE_BIT_STRIDE): Remove.
5044 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5045
bb789949
SM
50462020-07-12 Simon Marchi <simon.marchi@efficios.com>
5047
5048 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5049 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5050 callers to use the equivalent accessor methods instead.
5051
39498edb
SM
50522020-07-12 Simon Marchi <simon.marchi@efficios.com>
5053
5054 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5055 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5056 callers to use the equivalent accessor methods instead.
5057
3b606f38
SM
50582020-07-12 Simon Marchi <simon.marchi@efficios.com>
5059
5060 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5061 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5062 to use dynamic_prop::kind.
5063
064d9cb9
SM
50642020-07-12 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5067 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5068 to get the bound property's kind and check against
5069 PROP_UNDEFINED.
5070
5537ddd0
SM
50712020-07-12 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5074 all callers to use type::range_bounds followed by
5075 dynamic_prop::{low,high}.
5076
8c2e4e06
SM
50772020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5078
5079 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5080 const_val, set_const_val, baton, set_locexpr, set_loclist,
5081 set_addr_offset, variant_parts, set_variant_parts,
5082 original_type, set_original_type>: New methods.
5083 <kind>: Rename to...
5084 <m_kind>: ... this. Update all users to use the new methods
5085 instead.
5086 <data>: Rename to...
5087 <m_data>: ... this. Update all users to use the new methods
5088 instead.
5089
7c6f2712
SM
50902020-07-12 Simon Marchi <simon.marchi@efficios.com>
5091
5092 * gdbtypes.c (get_discrete_bounds): Return failure if
5093 the range type's bounds are not both defined and constant
5094 values.
5095 (get_array_bounds): Update comment. Remove undefined bound check.
5096
599088e3
SM
50972020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5098
5099 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5100 the type::bounds method directly.
5101
c4dfcb36
SM
51022020-07-12 Simon Marchi <simon.marchi@efficios.com>
5103
5104 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5105 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5106 are used to set the range type's bounds to use set_bounds.
5107
0a278aa7
PW
51082020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5109
5110 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5111
cce20f10
PA
51122020-07-10 Pedro Alves <pedro@palves.net>
5113
5114 * gdbthread.h (inferior_ref): Define.
5115 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5116 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5117 * thread.c
5118 (scoped_restore_current_thread::restore):
5119 Adjust to gdb::ref_ptr.
5120 (scoped_restore_current_thread::~scoped_restore_current_thread):
5121 Remove manual decref handling.
5122 (scoped_restore_current_thread::scoped_restore_current_thread):
5123 Adjust to use
5124 inferior_ref::new_reference/thread_info_ref::new_reference.
5125 Incref the thread before calling get_frame_id instead of after.
5126 Let TARGET_CLOSE_ERROR propagate.
5127
6d7aa592
PA
51282020-07-10 Pedro Alves <pedro@palves.net>
5129
5130 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5131 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5132 NOT_AVAILABLE_ERROR.
5133 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5134 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5135
b3e3a4c1
SM
51362020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5137 Pedro Alves <pedro@palves.net>
5138
5139 PR gdb/26199
5140 * infrun.c (threads_are_resumed_pending_p): Delete.
5141 (do_target_wait): Remove threads_are_executing and
5142 threads_are_resumed_pending_p checks from the inferior_matches
5143 lambda. Update comments.
5144
d6cc5d98
PA
51452020-07-10 Pedro Alves <pedro@palves.net>
5146
5147 PR gdb/26199
5148 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5149 executing threads.
5150
7d3badc6
PA
51512020-07-10 Pedro Alves <pedro@palves.net>
5152
5153 PR gdb/26199
5154 * infrun.c (handle_no_resumed): Handle multiple targets.
5155
42bd97a6
PA
51562020-07-10 Pedro Alves <pedro@palves.net>
5157
5158 PR gdb/26199
5159 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5160 target_is_async_p.
5161
43667cc6
PA
51622020-07-10 Pedro Alves <pedro@palves.net>
5163
5164 PR gdb/26199
5165 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5166 threads, not all threads.
5167
96118d11
PA
51682020-07-10 Pedro Alves <pedro@palves.net>
5169
5170 PR gdb/26199
5171 * remote.c (remote_target::open_1): Pass remote target pointer as
5172 data to create_async_event_handler.
5173 (remote_async_inferior_event_handler): Mark async event handler
5174 before returning if the remote target still has either pending
5175 events or unacknowledged notifications.
5176
54904d81
JB
51772020-07-10 John Baldwin <jhb@FreeBSD.org>
5178
5179 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5180 declaration.
5181 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5182 function.
5183
f37e5866
JB
51842020-07-09 John Baldwin <jhb@FreeBSD.org>
5185
5186 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5187 inferior_ptid.
5188
fc238d4a
JB
51892020-07-09 John Baldwin <jhb@FreeBSD.org>
5190
5191 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5192 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5193 AT_FREEBSD_PS_STRINGS.
5194
6e2469ff
HD
51952020-07-08 Hannes Domani <ssbssa@yahoo.de>
5196
5197 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5198 of debugfile path on Windows.
5199
d1076c41
JB
52002020-07-08 John Baldwin <jhb@FreeBSD.org>
5201
5202 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5203 argument to 'data'.
5204
15f3b077
TT
52052020-07-08 Tom Tromey <tromey@adacore.com>
5206
5207 * ada-lang.c (ada_exception_message_1): Use read_memory.
5208
9fc501fd
AB
52092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5210
5211 PR python/22748
5212 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5213 special handling for inline frames.
5214 * findvar.c (value_of_register_lazy): Skip inline frames when
5215 creating lazy register values.
5216 * frame.c (frame_id_computed_p): Delete definition.
5217 * frame.h (frame_id_computed_p): Delete declaration.
5218
64cb3757
AB
52192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5220
5221 * NEWS: Mention additions to Python API.
5222 * python/py-arch.c (archpy_register_groups): New function.
5223 (arch_object_methods): Add 'register_groups' method.
5224 * python/py-registers.c (reggroup_iterator_object): New struct.
5225 (reggroup_object): New struct.
5226 (gdbpy_new_reggroup): New function.
5227 (gdbpy_reggroup_to_string): New function.
5228 (gdbpy_reggroup_name): New function.
5229 (gdbpy_reggroup_iter): New function.
5230 (gdbpy_reggroup_iter_next): New function.
5231 (gdbpy_new_reggroup_iterator): New function
5232 (gdbpy_initialize_registers): Register new types.
5233 (reggroup_iterator_object_type): Define new Python type.
5234 (gdbpy_reggroup_getset): New static global.
5235 (reggroup_object_type): Define new Python type.
5236 * python/python-internal.h
5237
0f767f94
AB
52382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5239
5240 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5241 * python/py-arch.c (archpy_registers): New function.
5242 (arch_object_methods): Add 'registers' method.
5243 * python/py-registers.c: New file.
5244 * python/python-internal.h
5245 (gdbpy_new_register_descriptor_iterator): Declare.
5246 (gdbpy_initialize_registers): Declare.
5247 * python/python.c (do_start_initialization): Call
5248 gdbpy_initialize_registers.
5249 * NEWS: Mention additions to the Python API.
5250
87dbc774
AB
52512020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * NEWS: Mention new Python API method.
5254 * python/py-unwind.c (pending_framepy_architecture): New function.
5255 (pending_frame_object_methods): Add architecture method.
5256
3bc98c0c
AB
52572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5258
5259 * gdbarch.c: Regenerate.
5260 * gdbarch.h: Regenerate.
5261 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5262 (gdbarch_data): Use internal_error for the case where
5263 deprecated_set_gdbarch_data was originally needed.
5264 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5265 and use passed in obstack.
5266 (libunwind_frame_set_descr): Should no longer get back NULL from
5267 gdbarch_data.
5268 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5269 type.
5270 * user-regs.c (user_regs_init): Update parameters, and use passed
5271 in obstack.
5272 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5273 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5274
d8cc8af6
TV
52752020-07-06 Tom de Vries <tdevries@suse.de>
5276
5277 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5278 End-Of-Sequence in lte_is_less_than.
5279 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5280 "gdb: Don't reorder line table entries too much when sorting".
5281
947f7597
TV
52822020-07-06 Tom de Vries <tdevries@suse.de>
5283
5284 PR tui/26205
5285 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5286
1e7c1b22
TV
52872020-07-05 Tom de Vries <tdevries@suse.de>
5288
5289 PR build/26187
5290 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5291 std::uncaught_exceptions instead of deprecated
5292 std::uncaught_exception.
5293
a36158ec
SM
52942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5295
5296 * macroexp.h (macro_stringify): Return
5297 gdb::unique_xmalloc_ptr<char>.
5298 * macroexp.c (macro_stringify): Likewise.
5299 * macrotab.c (fixup_definition): Update.
5300
14d960c8
SM
53012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5302
5303 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5304 (lex_one_token): Update.
5305 * macroexp.c (struct macro_buffer) <release>: Return
5306 gdb::unique_xmalloc_ptr<char>.
5307 (macro_stringify): Update.
5308 (macro_expand): Update.
5309 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5310 * macroexp.h (macro_expand_next): Likewise.
5311
211d5b1c
SM
53122020-07-02 Simon Marchi <simon.marchi@efficios.com>
5313
5314 * macroexp.h (macro_lookup_ftype): Remove.
5315 (macro_expand, macro_expand_once, macro_expand_next): Remove
5316 lookup function parameters, add scope parameter.
5317 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5318 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5319 * macroscope.h (standard_macro_lookup): Change parameter type
5320 to macro_scope.
5321 * macroscope.c (standard_macro_lookup): Likewise.
5322 * c-exp.y (lex_one_token): Update.
5323 * macrocmd.c (macro_expand_command): Likewise.
5324 (macro_expand_once_command): Likewise.
5325
b1a35af2
SM
53262020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5327
5328 * inf-loop.c (inferior_event_handler): Remove client_data param.
5329 * inf-loop.h (inferior_event_handler): Likewise.
5330 * infcmd.c (step_1): Adjust.
5331 * infrun.c (proceed): Adjust.
5332 (fetch_inferior_event): Remove client_data param.
5333 (infrun_async_inferior_event_handler): Adjust.
5334 * infrun.h (fetch_inferior_event): Remove `void *` param.
5335 * linux-nat.c (handle_target_event): Adjust.
5336 * record-btrace.c (record_btrace_handle_async_inferior_event):
5337 Adjust.
5338 * record-full.c (record_full_async_inferior_event_handler):
5339 Adjust.
5340 * remote.c (remote_async_inferior_event_handler): Adjust.
5341
1cdf9e33
TT
53422020-07-01 Tom Tromey <tom@tromey.com>
5343
5344 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5345 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5346
32c1e210
TT
53472020-07-01 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5350 tui_gen_win_info.
5351 (tui_win_info::make_window): Merge with
5352 tui_gen_win_info::make_window.
5353 (tui_win_info::make_visible): Move from tui_gen_win_info.
5354 * tui/tui-win.c (tui_win_info::max_width): Move from
5355 tui_gen_win_info.
5356 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5357 type.
5358 <window_factory>: Likewise.
5359 * tui/tui-layout.c (tui_win_info::resize): Move from
5360 tui_gen_win_info.
5361 (make_standard_window): Change return type.
5362 (get_locator_window, tui_get_window_by_name): Likewise.
5363 (tui_layout_window::apply): Remove a cast.
5364 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5365 (struct tui_win_info): Merge with tui_gen_win_info.
5366 (struct tui_gen_win_info): Remove.
5367
a30cb6da
TT
53682020-07-01 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-stack.h (struct tui_locator_window): Derive from
5371 tui_win_info.
5372 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5373 <can_box>: New method.
5374
1eb2161f
TT
53752020-07-01 Tom Tromey <tom@tromey.com>
5376
5377 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5378
7134f2eb
TT
53792020-07-01 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-regs.c (tui_data_window::display_registers_from)
5382 (tui_data_window::display_registers_from)
5383 (tui_data_window::first_data_item_displayed)
5384 (tui_data_window::delete_data_content_windows): Update.
5385 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5386 Remove.
5387 (tui_data_window::check_register_values): Update.
5388 (tui_data_item_window::rerender): Add parameters. Update.
5389 (tui_data_item_window::refresh_window): Remove.
5390 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5391 virtual.
5392 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5393 tui_gen_win_info.
5394 <refresh_window, max_height, min_height>: Remove.
5395 <rerender>: Add parameters.
5396 <x, y, visible>: New members.
5397 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5398 <m_item_width>: New member.
5399
22b7b041
TT
54002020-07-01 Tom Tromey <tom@tromey.com>
5401
5402 * tui/tui-regs.c (tui_data_window::show_register_group)
5403 (tui_data_window::check_register_values): Update.
5404 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5405 from item_no.
5406
c9753adb
TT
54072020-07-01 Tom Tromey <tom@tromey.com>
5408
5409 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5410 useless "if".
5411
9ab26b4a
TT
54122020-07-01 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5415 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5416
e555083f
TT
54172020-07-01 Tom Tromey <tom@tromey.com>
5418
5419 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5420 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5421 (struct tui_line_or_address): Move from tui-data.h.
5422 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5423 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5424 (tui_cmd_window, tui_source_window_base, tui_source_window)
5425 (tui_disasm_window): Don't declare.
5426 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5427 to tui-winsource.h.
5428 (SINGLE_KEY): Move to tui-stack.c.
5429
7a02bab7
TT
54302020-07-01 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5433 std::string.
5434 * tui/tui-regs.c (class tab_expansion_file): New.
5435 (tab_expansion_file::write): New method.
5436 (tui_register_format): Change return type. Use
5437 tab_expansion_file.
5438 (tui_get_register, tui_data_window::display_registers_from)
5439 (tui_data_item_window::rerender): Update.
5440 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5441 * tui/tui-io.c (tui_expand_tabs): Remove.
5442
ea68593b
TT
54432020-07-01 Tom Tromey <tom@tromey.com>
5444
5445 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5446
a8caed5d
FS
54472020-07-01 Fangrui Song <maskray@google.com>
5448
5449 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5450
9cdf9820
AKS
54512020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5452
5453 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5454 forms for DW_AT_associated and DW_AT_allocated attributes,
5455 which is already checked in function attr_to_dynamic_prop.
5456
a1520ad8
TT
54572020-06-30 Tom Tromey <tromey@adacore.com>
5458
5459 * dwarf2/read.c (quirk_rust_enum): Correctly call
5460 alloc_rust_variant for default-less enum.
5461
5ac58899
TT
54622020-06-30 Tom Tromey <tromey@adacore.com>
5463
5464 PR build/26183:
5465 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5466 gdb::to_string.
5467
19b187a9
SM
54682020-06-29 Simon Marchi <simon.marchi@efficios.com>
5469
5470 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5471 * gdbarch.h: Re-generate.
5472
cd4c4c07
TT
54732020-06-28 Tom Tromey <tom@tromey.com>
5474
5475 * command.h (cmd_types): Remove.
5476 (cmd_type): Don't declare.
5477 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5478 typedef.
5479 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5480 * cli/cli-decode.c (cmd_type): Remove.
5481
05779d57
PA
54822020-06-27 Pedro Alves <palves@redhat.com>
5483
5484 * fork-child.c (prefork_hook): Adjust.
5485 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5486 Delete.
5487 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5488 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5489 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5490 Remove declarations.
5491 (struct inferior) <set_tty, tty>: New methods.
5492 (struct inferior) <terminal>: Rename to ...
5493 (struct inferior) <m_terminal>: ... this and make private.
5494 * main.c (captured_main_1): Adjust.
5495 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5496 (mi_cmd_inferior_tty_show): Adjust.
5497 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5498 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5499
1776e3e5
NA
55002020-06-26 Nick Alcock <nick.alcock@oracle.com>
5501
5502 * configure.ac: Add --enable-libctf: handle --disable-static
5503 properly.
5504 * acinclude.m4: sinclude ../config/enable.m4.
5505 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5506 (LIBCTF): Substitute in.
5507 (CTF_DEPS): New, likewise.
5508 (CLIBS): libctf needs symbols from libbfd: move earlier.
5509 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5510 flags.
5511 * ctfread.c: Surround in ENABLE_LIBCTF.
5512 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5513 * configure: Regenerate.
5514 * config.in: Likewise.
5515
58373b80
SM
55162020-06-25 Simon Marchi <simon.marchi@efficios.com>
5517
5518 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5519
277474ee
SM
55202020-06-25 Simon Marchi <simon.marchi@efficios.com>
5521
5522 * inferior.h (struct inferior) <terminal>: Change type to
5523 gdb::unique_xmalloc_ptr<char>.
5524 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5525 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5526 field, adjust to unique pointer.
5527 (get_inferior_io_terminal): Adjust to unique pointer.
5528
6d74da72
AB
55292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5532 registers, not just the known core set of registers.
5533
2e52d038
AB
55342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5535
5536 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5537 fflags, frm, and fcsr registers.
5538 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5539 restore groups.
5540 (riscv_tdesc_unknown_reg): New function.
5541 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5542 tdesc_use_registers.
5543 * riscv-tdep.h (struct gdbarch_tdep): Add
5544 unknown_csrs_first_regnum, unknown_csrs_count,
5545 duplicate_fflags_regnum, duplicate_frm_regnum, and
5546 duplicate_fcsr_regnum fields.
5547
be64fd07
AB
55482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5551 callback, use the callback (when not null) to help number unknown
5552 registers.
5553 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5554 (tdesc_use_registers): Add extra parameter to declaration.
5555
3b9fce96
AB
55562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5557
5558 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5559 in the file.
5560 (class riscv_pending_register_alias): Likewise.
5561 (riscv_register_feature::register_info): Change 'required_p' field
5562 to 'required', and change its type. Add 'check' member function.
5563 (riscv_register_feature::register_info::check): Define new member
5564 function.
5565 (riscv_xreg_feature): Change initialisation of 'required' field.
5566 (riscv_freg_feature): Likewise.
5567 (riscv_virtual_feature): Likewise.
5568 (riscv_csr_feature): Likewise.
5569 (riscv_check_tdesc_feature): Take extra parameter, the csr
5570 tdesc_feature, rewrite the function to use the new
5571 riscv_register_feature::register_info::check function.
5572 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5573
865bad26
AB
55742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5575
5576 * features/Makefile: Remove all references to the deleted files
5577 below.
5578 * features/riscv/32bit-csr.c: Deleted.
5579 * features/riscv/32bit-csr.xml: Deleted.
5580 * features/riscv/64bit-csr.c: Deleted.
5581 * features/riscv/64bit-csr.xml: Deleted.
5582 * features/riscv/rebuild-csr-xml.sh: Deleted.
5583
ed69cbc8
AB
55842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5585
5586 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5587 whitespace error for declaration of names member variable.
5588 (struct riscv_register_feature): Add new prefer_first_name member
5589 variable, and fix whitespace error in declaration of registers.
5590 (riscv_xreg_feature): Initialize prefer_first_name field.
5591 (riscv_freg_feature): Likewise.
5592 (riscv_virtual_feature): Likewise.
5593 (riscv_csr_feature): Likewise.
5594 (riscv_register_name): Expand on comments. Remove register name
5595 modifications for CSR and virtual registers.
5596
4445e8f5
AB
55972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5598
5599 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5600 errors.
5601
767a879e
AB
56022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5605 riscv-opc.h.
5606 (class riscv_pending_register_alias): New class.
5607 (riscv_check_tdesc_feature): Take vector of pending aliases and
5608 populate it as appropriate.
5609 (riscv_setup_register_aliases): Delete.
5610 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5611 to riscv_check_tdesc_feature in all cases. Use the vector to
5612 create the register aliases.
5613
bb6e55f3
RO
56142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5615
5616 * sol2-tdep.c (sol2_static_transform_name): Remove.
5617 (sol2_init_abi): Don't register it.
5618 * gdbarch.sh (static_transform_name): Remove.
5619 * gdbarch.c, gdbarch.h: Regenerate.
5620
5621 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5622 gdbarch_static_transform_name.
5623 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5624 * stabsread.c (define_symbol) <'X'>: Remove.
5625 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5626 handling.
5627 <'V'>: Likewise.
5628 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5629 <'S'>: Remove call to gdbarch_static_transform_name.
5630
c6d36836
RO
56312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5632
5633 * procfs.c (procfs_pre_trace): New function.
5634 (procfs_target::create_inferior): Pass it to fork_inferior.
5635
a7e6196b
RO
56362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5637
5638 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5639 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5640 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5641 sol2-tdep.o, sparc-sol2-tdep.o.
5642 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5643 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5644 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5645 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5646
d412e696
RO
56472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5648
5649 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5650 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5651 Call sol2_init_abi.
5652 Remove calls to set_gdbarch_skip_solib_resolver,
5653 set_gdbarch_core_pid_to_str.
5654 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5655 (i386_sol2_static_transform_name): Remove.
5656 (i386_sol2_init_abi): Call sol2_init_abi.
5657 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5658 set_gdbarch_static_transform_name,
5659 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5660 Use sol2_sigtramp_p.
5661 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5662 (sol2_sigtramp_p): New function.
5663 (sol2_static_transform_name): New function.
5664 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5665 (sol2_init_abi): New function.
5666 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5667 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5668 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5669 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5670 (sparc_sol2_static_transform_name): Remove.
5671 (sparc32_sol2_init_abi): Call sol2_init_abi.
5672 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5673 set_gdbarch_static_transform_name,
5674 set_gdbarch_skip_solib_resolver,
5675 set_gdbarch_core_pid_to_str.
5676 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5677 (sparc_sol2_static_transform_name): Remove
5678 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5679 call sol2_sigtramp_p.
5680 (sparc64_sol2_init_abi): Call sol2_init_abi.
5681 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5682 set_gdbarch_static_transform_name,
5683 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5684
a8654e7d
PW
56852020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5686
5687 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5688 * exec.c (validate_exec_file): If from_tty, set both
5689 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5690 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5691 and from_tty, unconditionally ask a confirmation.
5692
caa7fd04
AB
56932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5694
5695 * target-descriptions.c (tdesc_architecture_name): Protect against
5696 NULL pointer dereference.
5697 (maint_print_xml_tdesc_cmd): New function.
5698 (_initialize_target_descriptions): Register new 'maint print
5699 xml-tdesc' command and give it the filename completer.
5700 * NEWS: Mention new 'maint print xml-tdesc' command.
5701
fbf42f4e
AB
57022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5703
5704 * target-descriptions.c (class tdesc_compatible_info): New class.
5705 (struct target_desc): Change type of compatible vector.
5706 (tdesc_compatible_p): Update for change in type of
5707 target_desc::compatible.
5708 (tdesc_compatible_info_list): New function.
5709 (tdesc_compatible_info_arch_name): New function.
5710 (tdesc_add_compatible): Update for change in type of
5711 target_desc::compatible.
5712 (print_c_tdesc::visit_pre): Likewise.
5713
20821f4e
AB
57142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5715
5716 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5717 whitespace to underscore.
5718 (maint_print_c_tdesc_cmd): Use fake filename for target
5719 descriptions that came from the target.
5720 (_initialize_target_descriptions): Add filename command completion
5721 for 'maint print c-tdesc'.
5722
1fb5ee62
SM
57232020-06-23 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5726 lines.
5727
fc3ecb3e
SM
57282020-06-23 Simon Marchi <simon.marchi@efficios.com>
5729
5730 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5731 lines.
5732 (dwarf2_find_location_expression): Likewise.
5733 (call_site_parameter_matches): Likewise.
5734 (dwarf2_compile_expr_to_ax): Likewise.
5735 (disassemble_dwarf_expression): Likewise.
5736 (loclist_describe_location): Likewise.
5737
236ef034
PA
57382020-06-23 Pedro Alves <palves@redhat.com>
5739
5740 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5741 progspace-and-thread.h. Include scoped-mock-context.h instead.
5742 (register_to_value_test): Use scoped_mock_context.
5743 * regcache.c: Include "scoped-mock-context.h".
5744 (cooked_read_test): Don't error out if a target is already pushed.
5745 Use scoped_mock_context. Adjust.
5746 * scoped-mock-context.h: New file.
5747
39e7ecca
AB
57482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5749
5750 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5751 initializer.
5752 (ada_language::is_string_type_p): New member function.
5753 * c-lang.c (c_language_data): Delete la_is_string_type_p
5754 initializer.
5755 (cplus_language_data): Likewise.
5756 (asm_language_data): Likewise.
5757 (minimal_language_data): Likewise.
5758 * d-lang.c (d_language_data): Likewise.
5759 * f-lang.c (f_is_string_type_p): Delete function, implementation
5760 moved to f_language::is_string_type_p.
5761 (f_language_data): Delete la_is_string_type_p initializer.
5762 (f_language::is_string_type_p): New member function,
5763 implementation from f_is_string_type_p.
5764 * go-lang.c (go_is_string_type_p): Delete function, implementation
5765 moved to go_language::is_string_type_p.
5766 (go_language_data): Delete la_is_string_type_p initializer.
5767 (go_language::is_string_type_p): New member function,
5768 implementation from go_is_string_type_p.
5769 * language.c (language_defn::is_string_type_p): Define new member
5770 function.
5771 (default_is_string_type_p): Make static, add comment copied from
5772 header file.
5773 (unknown_language_data): Delete la_is_string_type_p initializer.
5774 (unknown_language::is_string_type_p): New member function.
5775 (auto_language_data): Delete la_is_string_type_p initializer.
5776 (auto_language::is_string_type_p): New member function.
5777 * language.h (language_data): Delete la_is_string_type_p field.
5778 (language_defn::is_string_type_p): Declare new function.
5779 (default_is_string_type_p): Delete desclaration, move comment to
5780 definition.
5781 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5782 moved to m2_language::is_string_type_p.
5783 (m2_language_data): Delete la_is_string_type_p initializer.
5784 (m2_language::is_string_type_p): New member function,
5785 implementation from m2_is_string_type_p.
5786 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5787 initializer.
5788 * opencl-lang.c (opencl_language_data): Likewise.
5789 * p-lang.c (pascal_is_string_type_p): Delete function,
5790 implementation moved to pascal_language::is_string_type_p.
5791 (pascal_language_data): Delete la_is_string_type_p initializer.
5792 (pascal_language::is_string_type_p): New member function,
5793 implementation from pascal_is_string_type_p.
5794 * rust-lang.c (rust_is_string_type_p): Delete function,
5795 implementation moved to rust_language::is_string_type_p.
5796 (rust_language_data): Delete la_is_string_type_p initializer.
5797 (rust_language::is_string_type_p): New member function,
5798 implementation from rust_is_string_type_p.
5799 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5800 is_string_type_p.
5801
4ffc13fb
AB
58022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5803
5804 * ada-lang.c (ada_language_data): Delete la_print_typedef
5805 initializer.
5806 (ada_language::print_typedef): New member function.
5807 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5808 (cplus_language_data): Likewise.
5809 (asm_language_data): Likewise.
5810 (minimal_language_data): Likewise.
5811 * d-lang.c (d_language_data): Likewise.
5812 * f-lang.c (f_language_data): Likewise.
5813 (f_language::print_typedef): New member function.
5814 * go-lang.c (go_language_data): Delete la_print_typedef
5815 initializer.
5816 * language.c (language_defn::print_typedef): Define member
5817 function.
5818 (unknown_language_data): Delete la_print_typedef initializer.
5819 (unknown_language::print_typedef): New member function.
5820 (auto_language_data): Delete la_print_typedef initializer.
5821 (auto_language::print_typedef): New member function.
5822 * language.h (language_data): Delete la_print_typedef field.
5823 (language_defn::print_typedef): Declare new member function.
5824 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5825 (default_print_typedef): Delete declaration.
5826 * m2-lang.c (m2_language_data): Delete la_print_typedef
5827 initializer.
5828 (m2_language::print_typedef): New member function.
5829 * objc-lang.c (objc_language_data): Delete la_print_typedef
5830 initializer.
5831 * opencl-lang.c (opencl_language_data): Likewise.
5832 * p-lang.c (pascal_language_data): Likewise.
5833 (pascal_language::print_typedef): New member function.
5834 * rust-lang.c (rust_print_typedef): Delete function,
5835 implementation moved to rust_language::print_typedef.
5836 (rust_language): Delete la_print_typedef initializer.
5837 (rust_language::print_typedef): New member function,
5838 implementation from rust_print_typedef.
5839 * typeprint.c (default_print_typedef): Delete.
5840
d711ee67
AB
58412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5842
5843 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5844 (ada_language::printstr): New member function.
5845 * c-lang.c (c_language_data): Delete la_printstr initializer.
5846 (cplus_language_data): Likewise.
5847 (asm_language_data): Likewise.
5848 (minimal_language_data): Likewise.
5849 * d-lang.c (d_language_data): Likewise.
5850 * f-lang.c (f_printstr): Rename to f_language::printstr.
5851 (f_language_data): Delete la_printstr initializer.
5852 (f_language::printstr): New member function, implementation from
5853 f_printstr.
5854 * go-lang.c (go_language_data): Delete la_printstr initializer.
5855 * language.c (language_defn::printstr): Define new member
5856 function.
5857 (unk_lang_printstr): Delete.
5858 (unknown_language_data): Delete la_printstr initializer.
5859 (unknown_language::printstr): New member function.
5860 (auto_language_data): Delete la_printstr initializer.
5861 (auto_language::printstr): New member function.
5862 * language.h (language_data): Delete la_printstr field.
5863 (language_defn::printstr): Declare new member function.
5864 (LA_PRINT_STRING): Update call to printstr.
5865 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5866 (m2_language_data): Delete la_printstr initializer.
5867 (m2_language::printstr): New member function, implementation from
5868 m2_printstr.
5869 * objc-lang.c (objc_language_data): Delete la_printstr
5870 initializer.
5871 * opencl-lang.c (opencl_language_data): Likewise.
5872 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5873 (pascal_language_data): Delete la_printstr initializer.
5874 (pascal_language::printstr): New member function, implementation
5875 from pascal_printstr.
5876 * p-lang.h (pascal_printstr): Delete declaration.
5877 * rust-lang.c (rust_printstr): Update header comment.
5878 (rust_language_data): Delete la_printstr initializer.
5879 (rust_language::printstr): New member function.
5880
52b50f2c
AB
58812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5882
5883 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5884 (ada_language::printchar): New member function.
5885 * c-lang.c (c_language_data): Delete la_printchar initializer.
5886 (cplus_language_data): Likewise.
5887 (asm_language_data): Likewise.
5888 (minimal_language_data): Likewise.
5889 * d-lang.c (d_language_data): Likewise.
5890 * f-lang.c (f_printchar): Rename to f_language::printchar.
5891 (f_language_data): Delete la_printchar initializer.
5892 (f_language::printchar): New member function, implementation from
5893 f_printchar.
5894 * go-lang.c (go_language_data): Delete la_printchar initializer.
5895 * language.c (unk_lang_printchar): Delete.
5896 (language_defn::printchar): Define new member function.
5897 (unknown_language_data): Delete la_printchar initializer.
5898 (unknown_language::printchar): New member function.
5899 (auto_language_data): Delete la_printchar initializer.
5900 (auto_language::printchar): New member function.
5901 * language.h (language_data): Delete la_printchar field.
5902 (language_defn::printchar): Declare new member function.
5903 (LA_PRINT_CHAR): Update call to printchar.
5904 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5905 (m2_language::printchar): New member function.
5906 * objc-lang.c (objc_language_data): Delete la_printchar
5907 initializer.
5908 * opencl-lang.c (opencl_language_data): Likewise.
5909 * p-lang.c (pascal_language_data): Delete la_printchar
5910 initializer.
5911 (pascal_language::printchar): New member function.
5912 * rust-lang.c (rust_printchar): Rename to
5913 rust_language::printchar.
5914 (rust_language_data): Delete la_printchar initializer.
5915 (rust_language::printchar): New member function, implementation
5916 from rust_printchar.
5917
ec8cec5b
AB
59182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5919
5920 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5921 (ada_language_data): Delete la_emitchar initializer.
5922 (ada_language::emitchar): New member function, implementation from
5923 emit_char.
5924 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5925 (cplus_language_data): Likewise.
5926 (asm_language_data): Likewise.
5927 (minimal_language_data): Likewise.
5928 * d-lang.c (d_language_data): Likewise.
5929 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5930 (f_language_data): Delete la_emitchar initializer.
5931 (f_language::emitchar): New member function, implementation from
5932 f_emit_char.
5933 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5934 * language.c (unk_lang_emit_char): Delete.
5935 (language_defn::emitchar): New member function definition.
5936 (unknown_language_data): Delete la_emitchar initializer.
5937 (unknown_language::emitchar): New member function.
5938 (auto_language_data): Delete la_emitchar initializer.
5939 (auto_language::emitchar): New member function.
5940 * language.h (language_data): Delete la_emitchar field.
5941 (language_defn::emitchar): New member field declaration.
5942 (LA_EMIT_CHAR): Update call to emitchar.
5943 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5944 (m2_language_data): Delete la_emitchar initializer.
5945 (m2_language::emitchar): New member function, implementation from
5946 m2_emit_char.
5947 * objc-lang.c (objc_language_data): Delete la_emitchar
5948 initializer.
5949 * opencl-lang.c (opencl_language_data): Likewise.
5950 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5951 (pascal_language_data): Delete la_emitchar initializer.
5952 (pascal_language::emitchar): New member function, implementation
5953 from pascal_emit_char.
5954 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5955 (rust_language_data): Delete la_emitchar initializer.
5956 (rust_language::emitchar): New member function, implementation
5957 from rust_emitchar.
5958
1bf9c363
AB
59592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5960
5961 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5962 (ada_language_data): Delete la_post_parser initializer.
5963 (ada_language::post_parser): New member function.
5964 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5965 (cplus_language_data): Likewise.
5966 (asm_language_data): Likewise.
5967 (minimal_language_data): Likewise.
5968 * d-lang.c (d_language_data): Likewise.
5969 * f-lang.c (f_language_data): Likewise.
5970 * go-lang.c (go_language_data): Likewise.
5971 * language.c (unknown_language_data): Likewise.
5972 (auto_language_data): Likewise.
5973 * language.h (language_data): Delete la_post_parser field.
5974 (language_defn::post_parser): New member function.
5975 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5976 * objc-lang.c (objc_language_data): Likewise.
5977 * opencl-lang.c (opencl_language_data): Likewise.
5978 * p-lang.c (pascal_language_data): Likewise.
5979 * parse.c (parse_exp_in_context): Update call to post_parser.
5980 (null_post_parser): Delete definition.
5981 * parser-defs.h (null_post_parser): Delete declaration.
5982 * rust-lang.c (rust_language_data): Delete la_post_parser
5983 initializer.
5984
87afa652
AB
59852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5986
5987 * ada-lang.c (parse): Rename to ada_language::parser.
5988 (ada_language_data): Delete la_parser initializer.
5989 (ada_language::parser): New member function, implementation from
5990 parse.
5991 * c-lang.c (c_language_data): Delete la_parser initializer.
5992 (cplus_language_data): Likewise.
5993 (asm_language_data): Likewise.
5994 (minimal_language_data): Likewise.
5995 * d-lang.c (d_language_data): Likewise.
5996 (d_language::parser): New member function.
5997 * f-lang.c (f_language_data): Delete la_parser initializer.
5998 (f_language::parser): New member function.
5999 * go-lang.c (go_language_data): Delete la_parser initializer.
6000 (go_language::parser): New member function.
6001 * language.c (unk_lang_parser): Delete.
6002 (language_defn::parser): Define new member function.
6003 (unknown_language_data): Delete la_parser initializer.
6004 (unknown_language::parser): New member function.
6005 (auto_language_data): Delete la_parser initializer.
6006 (auto_language::parser): New member function.
6007 * language.h (language_data): Delete la_parser field.
6008 (language_defn::parser): Declare new member function.
6009 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6010 (m2_language::parser): New member function.
6011 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6012 * opencl-lang.c (opencl_language_data): Likewise.
6013 * p-lang.c (pascal_language_data): Likewise.
6014 (pascal_language::parser): New member function.
6015 * parse.c (parse_exp_in_context): Update call to parser.
6016 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6017 (rust_language::parser): New member function.
6018
37825800
AB
60192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6020
6021 * top.c (print_gdb_configuration): Print --with-python-libdir
6022 configuration value.
6023
5b860c93
PW
60242020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6025
6026 * NEWS: Mention change to the alias command.
6027
cf00cd6f
PW
60282020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6029
6030 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6031 (alias_command_completer)
6032 (make_alias_options_def_group): New functions.
6033 (alias_opts, alias_option_defs): New struct and array.
6034 (alias_usage_error): Update usage.
6035 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6036 Use option framework.
6037 (_initialize_cli_cmds): Update alias command help.
6038 Update aliases command help.
6039 (show_user):
6040 Add NULL for new default_args lookup_cmd argument.
6041 (valid_command_p): Rename to validate_aliased_command.
6042 Add NULL for new default_args lookup_cmd argument. Verify that the
6043 aliased_command has no default args.
6044 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6045 (lookup_cmd_1, lookup_cmd): New argument default_args.
6046 (add_alias_cmd):
6047 Add NULL for new default_args lookup_cmd argument.
6048 (print_help_for_command): Show default args under the layout
6049 alias some_alias = some_aliased_cmd some_alias_default_arg.
6050 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6051 xfree default_args in destructor.
6052 * cli/cli-script.c (process_next_line, do_define_command):
6053 Add NULL for new default_args lookup_cmd argument.
6054 * command.h: Declare new default_args argument in lookup_cmd
6055 and lookup_cmd_1.
6056 * completer.c (complete_line_internal_1):
6057 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6058 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6059 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6060 Likewise.
6061 * infcmd.c (_initialize_infcmd): Likewise.
6062 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6063 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6064 * python/py-param.c (add_setshow_generic): Likewise.
6065 * remote.c (_initialize_remote): Likewise.
6066 * top.c (execute_command): Prepend default_args if command has some.
6067 (set_verbose):
6068 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6069 * tracepoint.c (validate_actionline, encode_actions_1):
6070 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6071
bd920864
TBA
60722020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6073
6074 * jit.c (jit_read_descriptor): Use bool as the return type.
6075 (jit_breakpoint_re_set_internal): Use bool as the return type.
6076 Invert the return value logic; return true if the jit breakpoint
6077 has been successfully initialized.
6078 (jit_inferior_init): Update the call to
6079 jit_breakpoint_re_set_internal.
6080
f8098322
PA
60812020-06-22 Pedro Alves <palves@redhat.com>
6082
6083 PR gdb/25939
6084 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6085 Use the current inferior instead. Don't return
6086 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6087 wait again.
6088 * sol-thread.c (sol_thread_target::wait): Don't reference
6089 inferior_ptid.
6090 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6091 (sol_update_thread_list_callback): Use the current inferior's pid
6092 instead of inferior_ptid.
6093
196535a6
RO
60942020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6095
6096 * procfs.c: Cleanup many comments.
6097
6098 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6099 (AFTER_WATCHFLAG): Replace by value.
6100
6101 (MAIN_PROC_NAME_FORMAT): Inline ...
6102 (create_procinfo): ... here.
6103
6104 (procfs_debug_inferior): Remove SYS_exec handling.
6105 (syscall_is_exec): Likewise.
6106 (procfs_set_exec_trap): Likewise.
6107
6108 (syscall_is_lwp_exit): Inline in callers.
6109 (syscall_is_exit): Likewise.
6110 (syscall_is_exec): Likewise.
6111 (syscall_is_lwp_create): Likewise.
6112
6113 (invalidate_cache): Remove #if 0 code.
6114
6115 (make_signal_thread_runnable): Remove.
6116 (procfs_target::resume): Remove #if 0 code.
6117
cf6f3e86
RO
61182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6119
6120 PR gdb/25939
6121 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6122 call ...
6123 (procfs_target::create_inferior): ... here.
6124
48e9cc84
PW
61252020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6126
6127 * exec.c (validate_exec_file): Ensure the build-id is up to
6128 date by calling reopen_exec_file (that checks file timestamp
6129 to decide to re-read the file).
6130
3922b302
PA
61312020-06-18 Pedro Alves <palves@redhat.com>
6132
6133 PR gdb/25412
6134 * gdbthread.h (delete_thread, delete_thread_silent)
6135 (find_thread_ptid): Update comments.
6136 * thread.c (current_thread_): New global.
6137 (is_current_thread): Move higher, and reimplement.
6138 (inferior_thread): Reimplement.
6139 (set_thread_exited): Use bool. Add assertions.
6140 (add_thread_silent): Simplify thread-reuse handling by always
6141 calling delete_thread.
6142 (delete_thread): Remove intro comment.
6143 (find_thread_ptid): Skip exited threads.
6144 (switch_to_thread_no_regs): Write to current_thread_.
6145 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6146 INFERIOR_PTID. Clear current_thread_.
6147
6dbdab44
PA
61482020-06-18 Pedro Alves <palves@redhat.com>
6149
6150 * aix-thread.c (pd_update): Use switch_to_thread.
6151
2da4b788
PA
61522020-06-18 Pedro Alves <palves@redhat.com>
6153
6154 * ravenscar-thread.c (ravenscar_thread_target): Update.
6155 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6156 (ravenscar_thread_target::add_active_thread): ... this. Don't
6157 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6158 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6159
50838d1b
PA
61602020-06-18 Pedro Alves <palves@redhat.com>
6161
6162 * nat/windows-nat.c (current_windows_thread): Remove.
6163 * nat/windows-nat.h (current_windows_thread): Remove.
6164 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6165 Adjust.
6166 (display_selectors): Adjust to fetch the current
6167 windows_thread_info based on inferior_ptid.
6168 (fake_create_process): No longer write to current_windows_thread.
6169 (windows_nat_target::get_windows_debug_event):
6170 Don't set inferior_ptid or current_windows_thread.
6171 (windows_nat_target::wait): Adjust to not rely on
6172 current_windows_thread.
6173 (do_initial_windows_stuff): Now a method of windows_nat_target.
6174 Switch to the last_ptid thread.
6175 (windows_nat_target::attach): Adjust.
6176 (windows_nat_target::detach): Use switch_to_no_thread instead of
6177 writing to inferior_ptid directly.
6178 (windows_nat_target::create_inferior): Adjust.
6179
31ce04e9
PA
61802020-06-18 Pedro Alves <palves@redhat.com>
6181
6182 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6183
1ee1a363
PA
61842020-06-18 Pedro Alves <palves@redhat.com>
6185
6186 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6187 after creating it, instead of writing to inferior_ptid. Don't
6188 write to inferior_ptid.
6189
6d350754
PA
61902020-06-18 Pedro Alves <palves@redhat.com>
6191
6192 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6193
5d971d48
PA
61942020-06-18 Pedro Alves <palves@redhat.com>
6195
6196 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6197 it, instead of writing to inferior_ptid.
6198
86e57d1b
PA
61992020-06-18 Pedro Alves <palves@redhat.com>
6200
6201 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6202 to inferior_ptid.
6203
f2e1c129
PA
62042020-06-18 Pedro Alves <palves@redhat.com>
6205
6206 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6207 instead of writing to inferior_ptid directly.
6208
60db1b85
PA
62092020-06-18 Pedro Alves <palves@redhat.com>
6210
6211 * corelow.c (core_target::close): Use switch_to_no_thread instead
6212 of writing to inferior_ptid directly.
6213 (add_to_thread_list, core_target_open): Use switch_to_thread
6214 instead of writing to inferior_ptid directly.
6215
fe7d6a8d
PA
62162020-06-18 Pedro Alves <palves@redhat.com>
6217
6218 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6219 inferior_ptid.
6220 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6221 inferior_ptid.
6222 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6223 inferior_ptid directly.
6224 (darwin_nat_target::init_thread_list): Switch to thread, instead
6225 of writing to inferior_ptid.
6226 (darwin_nat_target::attach): Don't write to inferior_ptid.
6227 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6228
975f8708
PA
62292020-06-18 Pedro Alves <palves@redhat.com>
6230
6231 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6232 thread.
6233 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6234 Instead use switch_to_thread.
6235 (gnu_nat_target::detach): Use switch_to_no_thread
6236 instead of writing to inferior_ptid directly. Used passed-in
6237 inferior instead of looking up the inferior by pid.
6238
1a204730
PA
62392020-06-18 Pedro Alves <palves@redhat.com>
6240
6241 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6242 inferior_ptid.
6243
ebe84f23
PA
62442020-06-18 Pedro Alves <palves@redhat.com>
6245
6246 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6247 inferior_ptid.
6248 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6249 thread.
6250 (nto_procfs_target::detach): Avoid referencing
6251 inferior_ptid. Use switch_to_no_thread instead of writing to
6252 inferior_ptid directly.
6253 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6254 instead of writing to inferior_ptid directly.
6255 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6256 to thread.
6257
191f02e5
PA
62582020-06-18 Pedro Alves <palves@redhat.com>
6259
6260 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6261 after creating it, instead of writing to inferior_ptid.
6262 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6263 to inferior_ptid directly.
6264 (gdbsim_target::wait): Don't write to inferior_ptid.
6265
0ac55310
PA
62662020-06-18 Pedro Alves <palves@redhat.com>
6267
6268 * remote.c (remote_target::remote_notice_new_inferior): Use
6269 switch_to_thread instead of writing to inferior_ptid directly.
6270 (remote_target::add_current_inferior_and_thread): Use
6271 switch_to_no_thread instead of writing to inferior_ptid directly.
6272 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6273 and switch_to_thread instead of using set_current_inferior or
6274 writing to inferior_ptid directly.
6275
5233f39b
PA
62762020-06-18 Pedro Alves <palves@redhat.com>
6277
6278 * tracectf.c (ctf_target_open): Switch to added thread instead of
6279 writing to inferior_ptid directly.
6280 (ctf_target::close): Use switch_to_no_thread instead of writing to
6281 inferior_ptid directly.
6282
087e161b
PA
62832020-06-18 Pedro Alves <palves@redhat.com>
6284
6285 * tracefile-tfile.c (tfile_target_open): Don't write to
6286 inferior_ptid directly, instead switch to added thread.
6287 (tfile_target::close): Use switch_to_no_thread instead of writing
6288 to inferior_ptid directly.
6289
7fb43e53
PA
62902020-06-18 Pedro Alves <palves@redhat.com>
6291
6292 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6293 (procfs_target::detach): Use switch_to_no_thread
6294 instead of writing to inferior_ptid directly.
6295 (do_attach): Change return type to void. Switch to the added
6296 thread.
6297 (procfs_target::create_inferior): Switch to the added thread.
6298 (procfs_do_thread_registers): Don't write to inferior_ptid.
6299
18493a00
PA
63002020-06-18 Pedro Alves <palves@redhat.com>
6301
6302 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6303 of writing to inferior_ptid.
6304 (scoped_restore_exited_inferior): Delete.
6305 (handle_vfork_child_exec_or_exit): Simplify using
6306 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6307 instead of writing to inferior_ptid.
6308 (THREAD_STOPPED_BY): Delete.
6309 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6310 (thread_stopped_by_hw_breakpoint): Delete.
6311 (save_waitstatus): Use
6312 scoped_restore_current_thread+switch_to_thread, and call
6313 target_stopped_by_watchpoint instead of
6314 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6315 instead of thread_stopped_by_sw_breakpoint, and
6316 target_stopped_by_hw_breakpoint instead of
6317 thread_stopped_by_hw_breakpoint.
6318 (handle_inferior_event)
6319 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6320 inferior_ptid directly, nor
6321 set_current_inferior/set_current_program_space. Use
6322 switch_to_thread / switch_to_inferior_no_thread instead.
6323
a0776b13
PA
63242020-06-18 Pedro Alves <palves@redhat.com>
6325
6326 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6327 instead of writing to inferior_ptid.
6328
6155c136
PA
63292020-06-18 Pedro Alves <palves@redhat.com>
6330
6331 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6332 added thread.
6333 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6334 to the added thread.
6335 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6336 instead of writing to inferior_ptid.
6337
c5316fc6
PA
63382020-06-18 Pedro Alves <palves@redhat.com>
6339
6340 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6341 (register_to_value_test): Mock a program_space too. Heap-allocate
6342 the address space. Don't write to inferior_ptid. Use
6343 switch_to_thread instead.
6344
8df01799
PA
63452020-06-18 Pedro Alves <palves@redhat.com>
6346
6347 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6348 Delete.
6349 (find_signalled_thread()): New, factored out from
6350 linux_make_corefile_notes and adjusted to handle exited threads.
6351 (linux_make_corefile_notes): Adjust to use the new
6352 find_signalled_thread.
6353
41792d68
PA
63542020-06-18 Pedro Alves <palves@redhat.com>
6355
6356 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6357 of saving/restoring inferior_ptid.
6358
612f258a
TT
63592020-06-17 Tom Tromey <tom@tromey.com>
6360
6361 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6362 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6363 declare.
6364 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6365
efb763a5
SM
63662020-06-15 Simon Marchi <simon.marchi@efficios.com>
6367
6368 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6369 of partial symtabs.
6370
2951f6c0
SM
63712020-06-17 Simon Marchi <simon.marchi@efficios.com>
6372
6373 * regformats/reg-arm.dat: Remove.
6374 * regformats/reg-bfin.dat: Remove.
6375 * regformats/reg-cris.dat: Remove.
6376 * regformats/reg-crisv32.dat: Remove.
6377 * regformats/reg-m32r.dat: Remove.
6378 * regformats/reg-tilegx.dat: Remove.
6379 * regformats/reg-tilegx32.dat: Remove.
6380
7d458ea5
SM
63812020-06-17 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * features/Makefile (WHICH): Remove arm files.
6384 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6385 * regformats/arm/arm-with-neon.dat: Remove.
6386 * regformats/arm/arm-with-vfpv2.dat: Remove.
6387 * regformats/arm/arm-with-vfpv3.dat: Remove.
6388
3af96c0d
SM
63892020-06-17 Simon Marchi <simon.marchi@efficios.com>
6390
6391 * features/Makefile (XMLTOC): Remove rx.xml.
6392
b25e22fd
PA
63932020-06-17 Pedro Alves <palves@redhat.com>
6394
6395 * gdbthread.h (thread_control_state) <trap_expected> Update
6396 comments.
6397
a78a19b1
AB
63982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6399
6400 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6401 ada_language::lookup_symbol_nonlocal.
6402 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6403 (ada_language::lookup_symbol_nonlocal): New member function,
6404 implementation from ada_lookup_symbol_nonlocal.
6405 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6406 initializer.
6407 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6408 initializer.
6409 (cplus_language::lookup_symbol_nonlocal): New member function.
6410 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6411 (minimal_language_data) Likewise.
6412 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6413 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6414 initializer.
6415 (d_language::lookup_symbol_nonlocal): New member function.
6416 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6417 initializer.
6418 (f_language::lookup_symbol_nonlocal): New member function.
6419 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6420 initializer.
6421 * language.c (unknown_language_data): Likewise.
6422 (auto_language_data): Likewise.
6423 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6424 field.
6425 (language_defn::lookup_symbol_nonlocal): New member function.
6426 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6427 initializer.
6428 * objc-lang.c (objc_language_data): Likewise.
6429 * opencl-lang.c (opencl_language_data): Likewise.
6430 * p-lang.c (pascal_language_data): Likewise.
6431 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6432 rust_language::lookup_symbol_nonlocal.
6433 (rust_language_data): Delete la_lookup_symbol_nonlocal
6434 initializer.
6435 (rust_language::lookup_symbol_nonlocal): New member function,
6436 implementation from rust_lookup_symbol_nonlocal.
6437 * symtab.c (lookup_symbol_aux): Update call to
6438 lookup_symbol_nonlocal.
6439 (basic_lookup_symbol_nonlocal): Rename to...
6440 (language_defn::lookup_symbol_nonlocal): ...this, and update
6441 header comment. Remove language_defn parameter, and replace with
6442 uses of `this'.
6443 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6444
ebe2334e
AB
64452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6446
6447 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6448 initializer.
6449 (ada_language::value_print_inner): New member function.
6450 * c-lang.c (c_language_data): Delete la_value_print_inner
6451 initializer.
6452 (cplus_language_data): Likewise.
6453 (asm_language_data): Likewise.
6454 (minimal_language_data): Likewise.
6455 * d-lang.c (d_language_data): Likewise.
6456 (d_language::value_print_inner): New member function.
6457 * f-lang.c (f_language_data): Delete la_value_print_inner
6458 initializer.
6459 (f_language::value_print_inner): New member function.
6460 * f-lang.h (f_value_print_innner): Rename to...
6461 (f_value_print_inner): ...this (note spelling of 'inner').
6462 * f-valprint.c (f_value_print_innner): Rename to...
6463 (f_value_print_inner): ...this (note spelling of 'inner').
6464 * go-lang.c (go_language_data): Delete la_value_print_inner
6465 initializer.
6466 (go_language::value_print_inner): New member function.
6467 * language.c (language_defn::value_print_inner): Define new member
6468 function.
6469 (unk_lang_value_print_inner): Delete.
6470 (unknown_language_data): Delete la_value_print_inner initializer.
6471 (unknown_language::value_print_inner): New member function.
6472 (auto_language_data): Delete la_value_print_inner initializer.
6473 (auto_language::value_print_inner): New member function.
6474 * language.h (language_data): Delete la_value_print_inner field.
6475 (language_defn::value_print_inner): Delcare new member function.
6476 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6477 initializer.
6478 (m2_language::value_print_inner): New member function.
6479 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6480 initializer.
6481 * opencl-lang.c (opencl_language_data): Likewise.
6482 * p-lang.c (pascal_language_data): Likewise.
6483 (pascal_language::value_print_inner): New member function.
6484 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6485 initializer.
6486 (rust_language::value_print_inner): New member function.
6487 * valprint.c (do_val_print): Update call to value_print_inner.
6488
a1d1fa3e
AB
64892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6490
6491 * ada-lang.c (ada_language_data): Delete la_value_print
6492 initializer.
6493 (ada_language::value_print): New member function.
6494 * c-lang.c (c_language_data): Delete la_value_print initializer.
6495 (cplus_language_data): Likewise.
6496 (asm_language_data): Likewise.
6497 (minimal_language_data): Likewise.
6498 * d-lang.c (d_language_data): Likewise.
6499 * f-lang.c (f_language_data): Likewise.
6500 * go-lang.c (go_language_data): Likewise.
6501 * language.c (unk_lang_value_print): Delete.
6502 (language_defn::value_print): Define new member function.
6503 (unknown_language_data): Delete la_value_print initializer.
6504 (unknown_language::value_print): New member function.
6505 (auto_language_data): Delete la_value_print initializer.
6506 (auto_language::value_print): New member function.
6507 * language.h (language_data): Delete la_value_print field.
6508 (language_defn::value_print): Declare new member function.
6509 (LA_VALUE_PRINT): Update call to value_print.
6510 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6511 * objc-lang.c (objc_language_data): Likewise.
6512 * opencl-lang.c (opencl_language_data): Likewise.
6513 * p-lang.c (pascal_language_data): Likewise.
6514 (pascal_language::value_print): New member function.
6515 * rust-lang.c (rust_language_data): Delete la_value_print
6516 initializer.
6517
f16a9f57
AB
65182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6519
6520 * ada-lang.c (ada_watch_location_expression): Rename to
6521 ada_language::watch_location_expression.
6522 (ada_language_data): Delete la_watch_location_expression
6523 initializer.
6524 (ada_language::watch_location_expression): New member function,
6525 implementation from ada_watch_location_expression.
6526 * breakpoint.c (watch_command_1): Update call to
6527 watch_location_expression.
6528 * c-lang.c (c_watch_location_expression): Rename to
6529 language_defn::watch_location_expression.
6530 (c_language_data): Delete la_watch_location_expression
6531 initializer.
6532 (cplus_language_data): Likewise.
6533 (asm_language_data): Likewise.
6534 (minimal_language_data): Likewise.
6535 * c-lang.h (c_watch_location_expression): Delete declaration.
6536 * d-lang.c (d_language_data): Delete la_watch_location_expression
6537 initializer.
6538 * f-lang.c (f_language_data): Likewise.
6539 * go-lang.c (go_language_data): Likewise.
6540 * language.c (language_defn::watch_location_expression): Member
6541 function implementation from c_watch_location_expression.
6542 (unknown_language_data): Delete la_watch_location_expression
6543 initializer.
6544 (auto_language_data): Likewise.
6545 * language.h (language_data): Delete la_watch_location_expression
6546 field.
6547 (language_defn::watch_location_expression): Declare new member
6548 function.
6549 * m2-lang.c (m2_language_data): Delete
6550 la_watch_location_expression initializer.
6551 * objc-lang.c (objc_language_data): Likewise.
6552 * opencl-lang.c (opencl_language_data): Likewise.
6553 * p-lang.c (pascal_language_data): Likewise.
6554 * rust-lang.c (rust_watch_location_expression): Rename to
6555 rust_language::watch_location_expression.
6556 (rust_language_data): Delete la_watch_location_expression
6557 initializer.
6558 (rust_language::watch_location_expression): New member function,
6559 implementation from rust_watch_location_expression.
6560
7e56227d
AB
65612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6562
6563 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6564 ada_language::collect_symbol_completion_matches.
6565 (ada_language_data): Delete la_collect_symbol_completion_matches
6566 initializer.
6567 (ada_language::collect_symbol_completion_matches): New member
6568 function, implementation from
6569 ada_collect_symbol_completion_matches.
6570 * c-lang.c (c_language_data): Delete
6571 la_collect_symbol_completion_matches initializer.
6572 (cplus_language_data): Likewise.
6573 (asm_language_data): Likewise.
6574 (minimal_language_data): Likewise.
6575 * d-lang.c (d_language_data): Likewise.
6576 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6577 f_language::collect_symbol_completion_matches.
6578 (f_language_data): Delete la_collect_symbol_completion_matches
6579 initializer.
6580 (f_language::collect_symbol_completion_matches) New member
6581 function, implementation from f_collect_symbol_completion_matches.
6582 * go-lang.c (go_language_data): Delete
6583 la_collect_symbol_completion_matches initializer.
6584 * language.c (unknown_language_data): Likewise.
6585 (auto_language_data): Likewise.
6586 * language.h (language_data): Delete
6587 la_collect_symbol_completion_matches field.
6588 (language_defn::collect_symbol_completion_matches): New member
6589 function.
6590 * m2-lang.c (m2_language_data): Delete
6591 la_collect_symbol_completion_matches initializer.
6592 * objc-lang.c (objc_language_data): Likewise.
6593 * opencl-lang.c (opencl_language_data): Likewise.
6594 * p-lang.c (pascal_language_data): Likewise.
6595 * rust-lang.c (rust_language_data): Likewise.
6596 * symtab.c (default_collect_symbol_completion_matches): Delete.
6597 (collect_symbol_completion_matches): Update call to
6598 collect_symbol_completion_matches.
6599 (collect_symbol_completion_matches_type): Likewise.
6600 * symtab.h (default_collect_symbol_completion_matches): Delete
6601 declaration.
6602
53fc67f8
AB
66032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6604
6605 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6606 (ada_language_data): Delete la_word_break_characters initializer.
6607 (ada_language::word_break_characters): New member function.
6608 * c-lang.c (c_language_data): Delete la_word_break_characters
6609 initializer.
6610 (cplus_language_data): Likewise.
6611 (asm_language_data): Likewise.
6612 (minimal_language_data): Likewise.
6613 * completer.c: Update global comment.
6614 (advance_to_expression_complete_word_point): Update call to
6615 word_break_characters.
6616 (complete_files_symbols): Likewise.
6617 (complete_line_internal_1): Likewise.
6618 (default_completer_handle_brkchars): Likewise.
6619 (skip_quoted_chars): Likewise.
6620 * d-lang.c (d_language_data): Delete la_word_break_characters
6621 initializer.
6622 * f-lang.c (f_word_break_characters): Delete.
6623 (f_language_data): Delete la_word_break_characters initializer.
6624 (f_language::word_break_characters): New member function.
6625 * go-lang.c (go_language_data): Delete la_word_break_characters
6626 initializer.
6627 * language.c (unknown_language_data): Likewise.
6628 (auto_language_data): Likewise.
6629 * language.h (default_word_break_characters): Move declaration to
6630 earlier in the file.
6631 (language_data): Delete la_word_break_characters field.
6632 (language_defn::word_break_characters): New member function.
6633 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6634 initializer.
6635 * objc-lang.c (objc_language_data): Likewise.
6636 * opencl-lang.c (opencl_language_data): Likewise.
6637 * p-lang.c (pascal_language_data): Likewise.
6638 * rust-lang.c (rust_language_data): Likewise.
6639
c9debfb9
AB
66402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6643 (ada_language_data): Delete la_get_symbol_name_matcher
6644 initializer.
6645 (language_defn::get_symbol_name_matcher_inner): New member
6646 function.
6647 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6648 initializer.
6649 (cplus_language_data): Likewise.
6650 (cplus_language::get_symbol_name_matcher_inner): New member
6651 function.
6652 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6653 (minimal_language_data): Likewise.
6654 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6655 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6656 initializer.
6657 * dictionary.c (iter_match_first_hashed): Update call to
6658 get_symbol_name_matcher.
6659 (iter_match_next_hashed): Likewise.
6660 (iter_match_next_linear): Likewise.
6661 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6662 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6663 initializer.
6664 (f_language::get_symbol_name_matcher_inner): New member function.
6665 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6666 initializer.
6667 * language.c (default_symbol_name_matcher): Update header comment,
6668 make static.
6669 (language_defn::get_symbol_name_matcher): New definition.
6670 (language_defn::get_symbol_name_matcher_inner): Likewise.
6671 (get_symbol_name_matcher): Delete.
6672 (unknown_language_data): Delete la_get_symbol_name_matcher
6673 initializer.
6674 (auto_language_data): Likewise.
6675 * language.h (language_data): Delete la_get_symbol_name_matcher
6676 field.
6677 (language_defn::get_symbol_name_matcher): New member function.
6678 (language_defn::get_symbol_name_matcher_inner): Likewise.
6679 (default_symbol_name_matcher): Delete declaration.
6680 * linespec.c (find_methods): Update call to
6681 get_symbol_name_matcher.
6682 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6683 initializer.
6684 * minsyms.c (lookup_minimal_symbol): Update call to
6685 get_symbol_name_matcher.
6686 (iterate_over_minimal_symbols): Likewise.
6687 * objc-lang.c (objc_language_data): Delete
6688 la_get_symbol_name_matcher initializer.
6689 * opencl-lang.c (opencl_language_data): Likewise.
6690 * p-lang.c (pascal_language_data): Likewise.
6691 * psymtab.c (psymbol_name_matches): Update call to
6692 get_symbol_name_matcher.
6693 * rust-lang.c (rust_language_data): Delete
6694 la_get_symbol_name_matcher initializer.
6695 * symtab.c (symbol_matches_search_name): Update call to
6696 get_symbol_name_matcher.
6697 (compare_symbol_name): Likewise.
6698
9a49ad8c
AB
66992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6700
6701 * ada-lang.c (ada_language_data): Delete la_compute_program
6702 initializer.
6703 * c-lang.c (c_language_data): Likewise.
6704 (c_language::compute_program): New member function.
6705 (cplus_language_data): Delete la_compute_program initializer.
6706 (cplus_language::compute_program): New member function.
6707 (asm_language_data): Delete la_compute_program initializer.
6708 (minimal_language_data): Likewise.
6709 * c-lang.h (c_compute_program): Update comment.
6710 (cplus_compute_program): Likewise.
6711 * compile/compile-c-support.c (c_compute_program): Likewise.
6712 (cplus_compute_program): Likewise.
6713 * compile/compile.c (compile_to_object): Update call to
6714 la_compute_program.
6715 * d-lang.c (d_language_data): Delete la_compute_program
6716 initializer.
6717 * f-lang.c (f_language_data): Likewise.
6718 * go-lang.c (go_language_data): Likewise.
6719 * language.c (unknown_language_data): Likewise.
6720 (auto_language_data): Likewise.
6721 * language.h (language_data): Delete la_compute_program field.
6722 (language_defn::compute_program): New member function.
6723 * m2-lang.c (m2_language_data): Delete la_compute_program
6724 initializer.
6725 * objc-lang.c (objc_language_data): Likewise.
6726 * opencl-lang.c (opencl_language_data): Likewise.
6727 * p-lang.c (pascal_language_data): Likewise.
6728 * rust-lang.c (rust_language_data): Likewise.
6729
eff93b4d
AB
67302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6731
6732 * ada-lang.c (ada_language_data) Delete
6733 la_class_name_from_physname initializer.
6734 * c-lang.c (c_language_data): Likewise.
6735 (cplus_language_data): Likewise.
6736 (cplus_language::class_name_from_physname): New member function.
6737 (asm_language_data): Delete la_class_name_from_physname
6738 initializer.
6739 (minimal_language_data): Likewise.
6740 * d-lang.c (d_language_data): Likewise.
6741 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6742 method on language_defn class.
6743 (guess_full_die_structure_name): Likewise.
6744 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6745 initializer.
6746 * go-lang.c (go_language_data): Likewise.
6747 * language.c (language_class_name_from_physname): Delete.
6748 (unk_lang_class_name): Delete.
6749 (unknown_language_data): Delete la_class_name_from_physname
6750 initializer.
6751 (auto_language_data): Likewise.
6752 * language.h (language_data): Delete la_class_name_from_physname
6753 field.
6754 (language_defn::class_name_from_physname): New function.
6755 (language_class_name_from_physname): Delete declaration.
6756 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6757 initializer.
6758 * objc-lang.c (objc_language_data): Likewise.
6759 * opencl-lang.c (opencl_language_data): Likewise.
6760 * p-lang.c (pascal_language_data): Likewise.
6761 * rust-lang.c (rust_language_data): Likewise.
6762
de543742
TT
67632020-06-16 Tom Tromey <tom@tromey.com>
6764
6765 * tui/tui-data.h (STATUS_NAME): New macro.
6766 * tui/tui-layout.c (tui_remove_some_windows)
6767 (initialize_known_windows, tui_register_window)
6768 (tui_layout_split::remove_windows, initialize_layouts)
6769 (tui_new_layout_command): Don't use hard-coded window names.
6770
a350efd4
TT
67712020-06-16 Tom Tromey <tom@tromey.com>
6772
6773 PR tui/25348:
6774 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6775 tui_initialize_readline. Only run once. Call rl_initialize.
6776 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6777 tui_initialize_readline.
6778 * tui/tui-io.c (tui_setup_io): Call
6779 tui_ensure_readline_initialized.
6780 * tui/tui-interp.c (tui_interp::init): Update.
6781
39ec0490
TT
67822020-06-16 Tom Tromey <tom@tromey.com>
6783
6784 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6785 Also preserve the status window.
6786
d2d1ea20
TT
67872020-06-16 Tom Tromey <tom@tromey.com>
6788
6789 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6790 where m_window==nullptr.
6791
66920317
TT
67922020-06-15 Tom Tromey <tromey@adacore.com>
6793
6794 * windows-nat.c (windows_nat::handle_output_debug_string):
6795 Update.
6796 (windows_nat::handle_ms_vc_exception): Update.
6797 * target.h (target_read_string): Change API.
6798 * target.c (target_read_string): Change API.
6799 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6800 Update.
6801 * solib-frv.c (frv_current_sos): Update.
6802 * solib-dsbt.c (dsbt_current_sos): Update.
6803 * solib-darwin.c (darwin_current_sos): Update.
6804 * linux-thread-db.c (inferior_has_bug): Update.
6805 * expprint.c (print_subexp_standard): Update.
6806 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6807 (ada_exception_message_1): Update.
6808
a5d871dd
TT
68092020-06-15 Tom Tromey <tromey@adacore.com>
6810
6811 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6812
670e35fa
TT
68132020-06-15 Tom Tromey <tromey@adacore.com>
6814
6815 * valprint.c (read_string): Update comment.
6816 * target.c (MIN): Remove.
6817 (target_read_string): Rewrite.
6818
f5272a3b
TT
68192020-06-15 Tom Tromey <tromey@adacore.com>
6820
6821 * corefile.c (read_memory_string): Remove.
6822 * ada-valprint.c (ada_value_print_ptr): Update.
6823 * ada-lang.h (ada_tag_name): Change return type.
6824 * ada-lang.c (type_from_tag): Update.
6825 (ada_tag_name_from_tsd): Change return type. Use
6826 target_read_string.
6827 (ada_tag_name): Likewise.
6828 * gdbcore.h (read_memory_string): Don't declare.
6829
2c074f49
HD
68302020-06-14 Hannes Domani <ssbssa@yahoo.de>
6831
6832 * symtab.c (rbreak_command): Ignore Windows drive colon.
6833
6a17d503
SM
68342020-06-12 Simon Marchi <simon.marchi@efficios.com>
6835
6836 * NEWS: Mention removed GDBserver host support.
6837
453c733f
NC
68382020-06-12 Nelson Chu <nelson.chu@sifive.com>
6839
6840 * features/riscv/rebuild-csr-xml.sh: Updated.
6841
2b4e6a3f
TT
68422020-06-11 Tom Tromey <tom@tromey.com>
6843
6844 PR gdb/18318:
6845 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6846
4412332f
JG
68472020-06-09 Jonny Grant <jg@jguk.org>
68482020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6849
6850 * main.c (captured_main_1): Don't print new line after help.
6851 (print_gdb_help): add mailing list and IRC channel information
6852 to --help. Add new lines between items in the footer. Remove
6853 quotes around bug url.
6854
2f33032a
KS
68552020-06-11 Keith Seitz <keiths@redhat.com>
6856
6857 PR gdb/21356
6858 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6859 Resolve typedefs for type length calculations.
6860
7ab96794
TV
68612020-06-10 Tom de Vries <tdevries@suse.de>
6862
6863 PR ada/24713
6864 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6865 (write_psymbols): Enable .gdb_index for ada.
6866 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6867 ada.
6868
e5f3ece2
TV
68692020-06-10 Tom de Vries <tdevries@suse.de>
6870
6871 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6872 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6873 namei" instead of "const char *name" argument.
6874 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6875 dw2_symtab_iter_init.
6876
940da03e
SM
68772020-06-08 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6880 to use type::field and field::type instead.
6881
b6cdac4b
SM
68822020-06-08 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6885 to use field::type instead.
6886
5d14b6e5
SM
68872020-06-08 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * gdbtypes.h (struct field) <type, set_type>: New methods.
6890 Rename `type` field to...
6891 <m_type>: ... this. Change references throughout to use type or
6892 set_type methods.
6893 (FIELD_TYPE): Use field::type. Change call sites that modify
6894 the field's type to use field::set_type instead.
6895
3d967001
SM
68962020-06-08 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6899 to use type::index_type instead.
6900
262abc0d
SM
69012020-06-08 Simon Marchi <simon.marchi@efficios.com>
6902
6903 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6904 methods.
6905 (TYPE_INDEX_TYPE): Use type::index_type.
6906 * gdbtypes.c (create_array_type_with_stride): Likewise.
6907
82836c92
TT
69082020-06-07 Tom Tromey <tom@tromey.com>
6909
6910 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6911 parameter.
6912 (generic_value_print): Update.
6913
940dace9
AB
69142020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 Revert commit 982a38f60b0.
6917 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6918
982a38f6
AB
69192020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6920
6921 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6922 avoid use after free.
6923
82f06518
TV
69242020-06-05 Tom de Vries <tdevries@suse.de>
6925
6926 * NEWS: Fix typos.
6927
f8c41851
SM
69282020-06-04 Simon Marchi <simon.marchi@efficios.com>
6929
6930 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6931 the per_bfd object.
6932 (dwarf2_read_debug_names): Likewise.
6933 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6934 object when re-using a per_bfd object with an index.
6935
f9b5d5ea
TV
69362020-06-03 Tom de Vries <tdevries@suse.de>
6937
6938 PR symtab/26046
6939 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6940 children for C++.
6941 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6942 DW_TAG_subprogram.
6943
f6eee2d0
AB
69442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6945
6946 * ada-lang.c (ada_language_data): Delete skip_trampoline
6947 initializer.
6948 * c-lang.c (c_language_data): Likewise.
6949 (cplus_language_data): Likewise.
6950 (cplus_language::skip_trampoline): New member function.
6951 (asm_language_data): Delete skip_trampoline initializer.
6952 (minimal_language_data): Likewise.
6953 * d-lang.c (d_language_data): Likewise.
6954 * f-lang.c (f_language_data): Likewise.
6955 * go-lang.c (go_language_data): Likewise.
6956 * language.c (unk_lang_trampoline): Delete function.
6957 (skip_language_trampoline): Update.
6958 (unknown_language_data): Delete skip_trampoline initializer.
6959 (auto_language_data): Likewise.
6960 * language.h (language_data): Delete skip_trampoline field.
6961 (language_defn::skip_trampoline): New function.
6962 * m2-lang.c (m2_language_data): Delete skip_trampoline
6963 initializer.
6964 * objc-lang.c (objc_skip_trampoline): Delete function, move
6965 implementation to objc_language::skip_trampoline.
6966 (objc_language_data): Delete skip_trampoline initializer.
6967 (objc_language::skip_trampoline): New member function with
6968 implementation from objc_skip_trampoline.
6969 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6970 initializer.
6971 * p-lang.c (pascal_language_data): Likewise.
6972 * rust-lang.c (rust_language_data): Likewise.
6973
0a50df5d
AB
69742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6975
6976 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6977 (ada_language::demangle): New member function.
6978 * c-lang.c (c_language_data): Delete la_demangle initializer.
6979 (cplus_language_data): Delete la_demangle initializer.
6980 (cplus_language::demangle): New member function.
6981 (asm_language_data): Delete la_demangle initializer.
6982 (minimal_language_data): Delete la_demangle initializer.
6983 * d-lang.c (d_language_data): Delete la_demangle initializer.
6984 (d_language::demangle): New member function.
6985 * f-lang.c (f_language_data): Delete la_demangle initializer.
6986 (f_language::demangle): New member function.
6987 * go-lang.c (go_language_data): Delete la_demangle initializer.
6988 (go_language::demangle): New member function.
6989 * language.c (language_demangle): Update.
6990 (unk_lang_demangle): Delete.
6991 (unknown_language_data): Delete la_demangle initializer.
6992 (unknown_language::demangle): New member function.
6993 (auto_language_data): Delete la_demangle initializer.
6994 (auto_language::demangle): New member function.
6995 * language.h (language_data): Delete la_demangle field.
6996 (language_defn::demangle): New function.
6997 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6998 * objc-lang.c (objc_language_data): Delete la_demangle
6999 initializer.
7000 (objc_language::demangle): New member function.
7001 * opencl-lang.c (opencl_language_data): Delete la_demangle
7002 initializer.
7003 * p-lang.c (pascal_language_data): Likewise.
7004 * rust-lang.c (rust_language_data): Likewise.
7005 (rust_language::demangle): New member function.
7006
fbfb0a46
AB
70072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7008
7009 * ada-lang.c (ada_language_data): Delete la_print_type
7010 initializer.
7011 (ada_language::print_type): New member function.
7012 * c-lang.c (c_language_data): Delete la_print_type initializer.
7013 (c_language::print_type): New member function.
7014 (cplus_language_data): Delete la_print_type initializer.
7015 (cplus_language::print_type): New member function.
7016 (asm_language_data): Delete la_print_type initializer.
7017 (asm_language::print_type): New member function.
7018 (minimal_language_data): Delete la_print_type initializer.
7019 (minimal_language::print_type): New member function.
7020 * d-lang.c (d_language_data): Delete la_print_type initializer.
7021 (d_language::print_type): New member function.
7022 * f-lang.c (f_language_data): Delete la_print_type initializer.
7023 (f_language::print_type): New member function.
7024 * go-lang.c (go_language_data): Delete la_print_type initializer.
7025 (go_language::print_type): New member function.
7026 * language.c (unk_lang_print_type): Delete.
7027 (unknown_language_data): Delete la_print_type initializer.
7028 (unknown_language::print_type): New member function.
7029 (auto_language_data): Delete la_print_type initializer.
7030 (auto_language::print_type): New member function.
7031 * language.h (language_data): Delete la_print_type field.
7032 (language_defn::print_type): New function.
7033 (LA_PRINT_TYPE): Update.
7034 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7035 (m2_language::print_type): New member function.
7036 * objc-lang.c (objc_language_data): Delete la_print_type
7037 initializer.
7038 (objc_language::print_type): New member function.
7039 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7040 to opencl_language::print_type.
7041 (opencl_language_data): Delete la_print_type initializer.
7042 (opencl_language::print_type): New member function, implementation
7043 from opencl_print_type.
7044 * p-lang.c (pascal_language_data): Delete la_print_type
7045 initializer.
7046 (pascal_language::print_type): New member function.
7047 * rust-lang.c (rust_print_type): Delete, implementation moved to
7048 rust_language::print_type.
7049 (rust_language_data): Delete la_print_type initializer.
7050 (rust_language::print_type): New member function, implementation
7051 from rust_print_type.
7052
6f827019
AB
70532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7054
7055 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7056 implementation moves to...
7057 (ada_language::sniff_from_mangled_name): ...here. Update return
7058 type.
7059 (ada_language_data): Delete la_sniff_from_mangled_name
7060 initializer.
7061 * c-lang.c (c_language_data): Likewise.
7062 (cplus_language_data): Likewise.
7063 (cplus_language::sniff_from_mangled_name): New member function,
7064 implementation taken from gdb_sniff_from_mangled_name.
7065 (asm_language_data): Delete la_sniff_from_mangled_name
7066 initializer.
7067 (minimal_language_data): Likewise.
7068 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7069 implementation moves to cplus_language::sniff_from_mangled_name.
7070 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7071 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7072 moves to...
7073 (d_language::sniff_from_mangled_name): ...here.
7074 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7075 * f-lang.c (f_language_data): Likewise.
7076 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7077 moves to...
7078 (go_language::sniff_from_mangled_name): ...here.
7079 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7080 * language.c (language_sniff_from_mangled_name): Delete.
7081 (unknown_language_data): Delete la_sniff_from_mangled_name
7082 initializer.
7083 (auto_language_data): Likewise.
7084 * language.h (language_data): Delete la_sniff_from_mangled_name
7085 field.
7086 (language_defn::sniff_from_mangled_name): New function.
7087 (language_sniff_from_mangled_name): Delete declaration.
7088 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7089 field.
7090 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7091 implementation moves to...
7092 (objc_language::sniff_from_mangled_name): ...here.
7093 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7094 * opencl-lang.c (opencl_language_data): Likewise.
7095 * p-lang.c (pascal_language_data): Likewise.
7096 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7097 implementation moves to...
7098 (rust_language::sniff_from_mangled_name): ...here.
7099 (rust_language_data): Delete la_sniff_from_mangled_name
7100 initializer.
7101 * symtab.c (symbol_find_demangled_name): Call
7102 sniff_from_mangled_name member function.
7103
fb8006fd
AB
71042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7105
7106 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7107 initializer.
7108 * c-lang.c (c_language_data): Likewise.
7109 (cplus_language_data): Likewise.
7110 (cplus_language::search_name_hash): New member function.
7111 (asm_language_data): Delete la_search_name_hash initializer.
7112 (minimal_language_data): Likewise.
7113 * d-lang.c (d_language_data): Likewise.
7114 * dictionary.c (default_search_name_hash): Rename to...
7115 (language_defn::search_name_hash): ...this.
7116 * f-lang.c (f_language_data): Likewise.
7117 (f_language::search_name_hash): New member function.
7118 * go-lang.c (go_language_data): Delete la_search_name_hash
7119 initializer.
7120 * language.c (unknown_language_data): Likewise.
7121 (auto_language_data): Likewise.
7122 * language.h (struct language_data): Delete la_search_name_hash
7123 field.
7124 (language_defn::search_name_hash): Declare new member function.
7125 (default_search_name_hash): Delete declaration.
7126 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7127 initializer.
7128 * objc-lang.c (objc_language_data): Likewise.
7129 * opencl-lang.c (opencl_language_data): Likewise.
7130 * p-lang.c (pascal_language_data): Likewise.
7131 * rust-lang.c (rust_language_data): Likewise.
7132 * symtab.c (search_name_hash): Update call.
7133
8e25bafe
AB
71342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7135
7136 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7137 initializer.
7138 * c-lang.c (class compile_instance): Declare.
7139 (c_language_data): Delete la_get_compile_instance initializer.
7140 (c_language::get_compile_instance): New member function.
7141 (cplus_language_data): Delete la_get_compile_instance initializer.
7142 (cplus_language::get_compile_instance): New member function.
7143 (asm_language_data): Delete la_get_compile_instance initializer.
7144 (minimal_language_data): Likewise.
7145 * c-lang.h (c_get_compile_context): Update comment.
7146 (cplus_get_compile_context): Update comment.
7147 * compile/compile.c (compile_to_object): Update calls, don't rely
7148 on function pointer being NULL.
7149 * d-lang.c (d_language_data): Delete la_get_compile_instance
7150 initializer.
7151 * f-lang.c (f_language_data): Likewise.
7152 * go-lang.c (go_language_data): Likewise.
7153 * language.c (unknown_language_data): Likewise.
7154 (auto_language_data): Likewise.
7155 * language.h (language_data): Delete la_get_compile_instance field.
7156 (language_defn::get_compile_instance): New member function.
7157 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7158 initializer.
7159 * objc-lang.c (objc_language_data): Likewise.
7160 * opencl-lang.c (opencl_language_data): Likewise.
7161 * p-lang.c (pascal_language_data): Likewise.
7162 * rust-lang.c (rust_language_data): Likewise.
7163
4009ee92
AB
71642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7165
7166 * ada-lang.c (ada_add_all_symbols): Update comment.
7167 (ada_iterate_over_symbols): Delete, move implementation to...
7168 (ada_language::iterate_over_symbols): ...here, a new member
7169 function, rewrite to use range based for loop.
7170 (ada_language_data): Delete la_iterate_over_symbols initializer.
7171 * c-lang.c (c_language_data): Likewise.
7172 (cplus_language_data): Likewise.
7173 (asm_language_data): Likewise.
7174 (minimal_language_data): Likewise.
7175 * d-lang.c (d_language_data): Likewise.
7176 * f-lang.c (f_language_data): Likewise.
7177 * go-lang.c (go_language_data): Likewise.
7178 * language.c (unknown_language_data): Likewise.
7179 (auto_language_data): Likewise.
7180 * language.h (language_data): Delete la_iterate_over_symbols field.
7181 (language_defn::iterate_over_symbols): New member function.
7182 (LA_ITERATE_OVER_SYMBOLS): Update.
7183 * linespec.c (iterate_over_all_matching_symtabs): Update.
7184 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7185 initializer.
7186 * objc-lang.c (objc_language_data): Likewise.
7187 * opencl-lang.c (opencl_language_data): Likewise.
7188 * p-lang.c (pascal_language_data): Likewise.
7189 * rust-lang.c (rust_language_data): Likewise.
7190
54f4ca46
AB
71912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7192
7193 * ada-lang.c (ada_language_data): Delete
7194 la_lookup_transparent_type initializer.
7195 * c-lang.c (c_language_data): Likewise.
7196 (cplus_language_data): Likewise.
7197 (cplus_language::lookup_transparent_type): New member function.
7198 (asm_language_data): Delete la_lookup_transparent_type
7199 initializer.
7200 (minimal_language_data): Likewise.
7201 * d-lang.c (d_language_data): Likewise.
7202 * f-lang.c (f_language_data): Likewise.
7203 * go-lang.c (go_language_data): Likewise.
7204 * language.c (unknown_language_data): Likewise.
7205 (auto_language_data): Likewise.
7206 * language.h (struct language_data): Delete
7207 la_lookup_transparent_type field.
7208 (language_defn::lookup_transparent_type): New member function.
7209 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7210 initializer.
7211 * objc-lang.c (objc_language_data): Likewise.
7212 * opencl-lang.c (opencl_language_data): Likewise.
7213 * p-lang.c (pascal_language_data): Likewise.
7214 * rust-lang.c (rust_language_data): Likewise.
7215 * symtab.c (symbol_matches_domain): Update call.
7216
1fb314aa
AB
72172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7218
7219 * ada-lang.c (ada_language_arch_info): Delete function, move
7220 implementation to...
7221 (ada_language::language_arch_info): ...here, a new member
7222 function.
7223 (ada_language_data): Delete la_language_arch_info.
7224 * c-lang.c (c_language_data): Likewise.
7225 (c_language::language_arch_info): New member function.
7226 (cplus_language_arch_info): Delete function, move
7227 implementation to...
7228 (cplus_language::language_arch_info): ...here, a new member
7229 function.
7230 (cplus_language_data): Delete la_language_arch_info.
7231 (asm_language_data): Likewise.
7232 (asm_language::language_arch_info): New member function.
7233 (minimal_language_data): Delete la_language_arch_info.
7234 (minimal_language::language_arch_info): New member function.
7235 * d-lang.c (d_language_arch_info): Delete function, move
7236 implementation to...
7237 (d_language::language_arch_info): ...here, a new member
7238 function.
7239 (d_language_data): Delete la_language_arch_info.
7240 * f-lang.c (f_language_arch_info): Delete function, move
7241 implementation to...
7242 (f_language::language_arch_info): ...here, a new member
7243 function.
7244 (f_language_data): Delete la_language_arch_info.
7245 * go-lang.c (go_language_arch_info): Delete function, move
7246 implementation to...
7247 (go_language::language_arch_info): ...here, a new member
7248 function.
7249 (go_language_data): Delete la_language_arch_info.
7250 * language.c (unknown_language_data): Likewise.
7251 (unknown_language::language_arch_info): New member function.
7252 (auto_language_data): Delete la_language_arch_info.
7253 (auto_language::language_arch_info): New member function.
7254 (language_gdbarch_post_init): Update call to
7255 la_language_arch_info.
7256 * language.h (language_data): Delete la_language_arch_info
7257 function pointer.
7258 (language_defn::language_arch_info): New function.
7259 * m2-lang.c (m2_language_arch_info): Delete function, move
7260 implementation to...
7261 (m2_language::language_arch_info): ...here, a new member
7262 function.
7263 (m2_language_data): Delete la_language_arch_info.
7264 * objc-lang.c (objc_language_arch_info): Delete function, move
7265 implementation to...
7266 (objc_language::language_arch_info): ...here, a new member
7267 function.
7268 (objc_language_data): Delete la_language_arch_info.
7269 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7270 implementation to...
7271 (opencl_language::language_arch_info): ...here, a new member
7272 function.
7273 (opencl_language_data): Delete la_language_arch_info.
7274 * p-lang.c (pascal_language_arch_info): Delete function, move
7275 implementation to...
7276 (pascal_language::language_arch_info): ...here, a new member
7277 function.
7278 (pascal_language_data): Delete la_language_arch_info.
7279 * rust-lang.c (rust_language_arch_info): Delete function, move
7280 implementation to...
7281 (rust_language::language_arch_info): ...here, a new member
7282 function.
7283 (rust_language_data): Delete la_language_arch_info.
7284
48448202
AB
72852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7286
7287 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7288 initializer.
7289 * c-lang.c (c_language_data): Likewise.
7290 (cplus_language_data): Likewise.
7291 (cplus_language::pass_by_reference_info): New method.
7292 (asm_language_data): Delete la_pass_by_reference initializer.
7293 (minimal_language_data): Likewise.
7294 * cp-abi.c (cp_pass_by_reference): Remove use of
7295 default_pass_by_reference.
7296 * d-lang.c (d_language_data): Likewise.
7297 * f-lang.c (f_language_data): Likewise.
7298 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7299 default_pass_by_reference.
7300 * go-lang.c (go_language_data): Likewise.
7301 * language.c (language_pass_by_reference): Update.
7302 (default_pass_by_reference): Delete.
7303 (unknown_language_data): Delete la_pass_by_reference
7304 initializer.
7305 (auto_language_data): Likewise.
7306 * language.h (struct language_data): Delete la_pass_by_reference
7307 field.
7308 (language_defn::pass_by_reference_info): New member function.
7309 (default_pass_by_reference): Delete declaration.
7310 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7311 initializer.
7312 * objc-lang.c (objc_language_data): Likewise.
7313 * opencl-lang.c (opencl_language_data): Likewise.
7314 * p-lang.c (pascal_language_data): Likewise.
7315 * rust-lang.c (rust_language_data): Likewise.
7316
15e5fd35
AB
73172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 * ada-lang.c (ada_read_var_value): Delete function, move
7320 implementation to...
7321 (ada_language::read_var_value): ...here.
7322 (ada_language_data): Delete la_read_var_value initializer.
7323 * c-lang.c (c_language_data): Likewise.
7324 (cplus_language_data): Likewise.
7325 (minimal_language_data): Likewise.
7326 * d-lang.c (d_language_data): Likewise.
7327 * f-lang.c (f_language_data): Likewise.
7328 * findvar.c (default_read_var_value): Rename to...
7329 (language_defn::read_var_value): ...this.
7330 * findvar.c (read_var_value): Update header comment, and change to
7331 call member function instead of function pointer.
7332 * go-lang.c (go_language_data): Likewise.
7333 * language.c (unknown_language_data): Delete la_read_var_value
7334 initializer.
7335 (auto_language_data): Likewise.
7336 * language.h (struct language_data): Delete la_read_var_value
7337 field.
7338 (language_defn::read_var_value): New member function.
7339 (default_read_var_value): Delete declaration.
7340 * m2-lang.c (m2_language_data): Delete la_read_var_value
7341 initializer.
7342 * objc-lang.c (objc_language_data): Likewise.
7343 * opencl-lang.c (opencl_language_data): Likewise.
7344 * p-lang.c (pascal_language_data): Likewise.
7345 * rust-lang.c (rust_language_data): Likewise.
7346 * value.h (default_read_var_value): Delete declaration.
7347
5bd40f2a
AB
73482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7349
7350 * ada-lang.c (ada_print_array_index): Delete function, move
7351 implementation to...
7352 (ada_language::print_array_index): ...here.
7353 (ada_language_data): Delete la_print_array_index initializer.
7354 * c-lang.c (c_language_data): Likewise.
7355 (cplus_language_data): Likewise.
7356 (minimal_language_data): Likewise.
7357 * d-lang.c (d_language_data): Likewise.
7358 * f-lang.c (f_language_data): Likewise.
7359 * go-lang.c (go_language_data): Likewise.
7360 * language.c (default_print_array_index): Delete function, move
7361 implementation to...
7362 (language_defn::print_array_index): ...here.
7363 (unknown_language_data): Delete la_print_array_index initializer.
7364 (auto_language_data): Likewise.
7365 * language.h (struct language_data): Delete la_print_array_index
7366 field.
7367 (language_defn::print_array_index): New member function.
7368 (LA_PRINT_ARRAY_INDEX): Update.
7369 (default_print_array_index): Delete declaration.
7370 * m2-lang.c (m2_language_data): Delete la_print_array_index
7371 initializer.
7372 * objc-lang.c (objc_language_data): Likewise.
7373 * opencl-lang.c (opencl_language_data): Likewise.
7374 * p-lang.c (pascal_language_data): Likewise.
7375 * rust-lang.c (rust_language_data): Likewise.
7376
0874fd07
AB
73772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7378
7379 * gdb/ada-lang.c (ada_language_defn): Convert to...
7380 (ada_language_data): ...this.
7381 (class ada_language): New class.
7382 (ada_language_defn): New static global.
7383 * gdb/c-lang.c (c_language_defn): Convert to...
7384 (c_language_data): ...this.
7385 (class c_language): New class.
7386 (c_language_defn): New static global.
7387 (cplus_language_defn): Convert to...
7388 (cplus_language_data): ...this.
7389 (class cplus_language): New class.
7390 (cplus_language_defn): New static global.
7391 (asm_language_defn): Convert to...
7392 (asm_language_data): ...this.
7393 (class asm_language): New class.
7394 (asm_language_defn): New static global.
7395 (minimal_language_defn): Convert to...
7396 (minimal_language_data): ...this.
7397 (class minimal_language): New class.
7398 (minimal_language_defn): New static global.
7399 * gdb/d-lang.c (d_language_defn): Convert to...
7400 (d_language_data): ...this.
7401 (class d_language): New class.
7402 (d_language_defn): New static global.
7403 * gdb/f-lang.c (f_language_defn): Convert to...
7404 (f_language_data): ...this.
7405 (class f_language): New class.
7406 (f_language_defn): New static global.
7407 * gdb/go-lang.c (go_language_defn): Convert to...
7408 (go_language_data): ...this.
7409 (class go_language): New class.
7410 (go_language_defn): New static global.
7411 * gdb/language.c (unknown_language_defn): Remove declaration.
7412 (current_language): Initialize to nullptr, real initialization is
7413 moved to _initialize_language.
7414 (languages): Delete global.
7415 (language_defn::languages): Define.
7416 (set_language_command): Use language_defn::languages.
7417 (set_language): Likewise.
7418 (range_error): Likewise.
7419 (language_enum): Likewise.
7420 (language_def): Likewise.
7421 (add_set_language_command): Use language_def::languages for the
7422 language list, and language_def to lookup language pointers.
7423 (skip_language_trampoline): Use language_defn::languages.
7424 (unknown_language_defn): Convert to...
7425 (unknown_language_data): ...this.
7426 (class unknown_language): New class.
7427 (unknown_language_defn): New static global.
7428 (auto_language_defn): Convert to...
7429 (auto_language_data): ...this.
7430 (class auto_language): New class.
7431 (auto_language_defn): New static global.
7432 (language_gdbarch_post_init): Use language_defn::languages.
7433 (_initialize_language): Initialize current_language.
7434 * gdb/language.h (struct language_defn): Rename to...
7435 (struct language_data): ...this.
7436 (struct language_defn): New.
7437 (auto_language_defn): Delete.
7438 (unknown_language_defn): Delete.
7439 (minimal_language_defn): Delete.
7440 (ada_language_defn): Delete.
7441 (asm_language_defn): Delete.
7442 (c_language_defn): Delete.
7443 (cplus_language_defn): Delete.
7444 (d_language_defn): Delete.
7445 (f_language_defn): Delete.
7446 (go_language_defn): Delete.
7447 (m2_language_defn): Delete.
7448 (objc_language_defn): Delete.
7449 (opencl_language_defn): Delete.
7450 (pascal_language_defn): Delete.
7451 (rust_language_defn): Delete.
7452 * gdb/m2-lang.c (m2_language_defn): Convert to...
7453 (m2_language_data): ...this.
7454 (class m2_language): New class.
7455 (m2_language_defn): New static global.
7456 * gdb/objc-lang.c (objc_language_defn): Convert to...
7457 (objc_language_data): ...this.
7458 (class objc_language): New class.
7459 (objc_language_defn): New static global.
7460 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7461 (opencl_language_data): ...this.
7462 (class opencl_language): New class.
7463 (opencl_language_defn): New static global.
7464 * gdb/p-lang.c (pascal_language_defn): Convert to...
7465 (pascal_language_data): ...this.
7466 (class pascal_language): New class.
7467 (pascal_language_defn): New static global.
7468 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7469 language pointer, update comment format.
7470 * gdb/rust-lang.c (rust_language_defn): Convert to...
7471 (rust_language_data): ...this.
7472 (class rust_language): New class.
7473 (rust_language_defn): New static global.
7474
1313c56e
AB
74752020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7476
7477 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7478 member variable.
7479 <m_stmt_at_address>: New member variable.
7480 (lnp_state_machine::record_line): Don't record some lines, update
7481 tracking of is_stmt at the same address.
7482 (lnp_state_machine::lnp_state_machine): Initialise new member
7483 variables.
7484
b7ed9f3d
ST
74852020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7486
7487 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7488 "-include gnu-nat-mig.h".
7489 * gnu-nat-mig.h: New file.
7490 * gnu-nat.c: Include "gnu-nat-mig.h".
7491 (exc_server, msg_reply_server, notify_server,
7492 process_reply_server): Remove declarations.
7493
14a8ad62
ST
74942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7495
7496 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7497 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7498 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7499 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7500 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7501 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7502 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7503 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7504 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7505 to gnu_nat_target class.
7506 * gnu-nat.c: Likewise.
7507 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7508 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7509 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7510 object.
7511 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7512 instead of `gnu_target'.
7513
0af5e106
ST
75142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7515
7516 * i386-gnu-tdep.c: Include "gdbcore.h"
7517 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7518 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7519 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7520 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7521 i386_gnu_sigcontext_addr): New functions
7522 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7523 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7524 tdep.
7525
078f2fc9
ST
75262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7527
7528 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7529 before fork_inferior call. Avoid calling it if target_is_pushed returns
7530 true.
7531
53dff92c
ST
75322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7533
7534 * gnu-nat.h (gnu_target): New variable declaration.
7535 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7536 gnu_target.
7537 * gnu-nat.c (gnu_target): New variable.
7538 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7539 add_thread_silent, and add_thread calls.
7540 (gnu_nat_target::create_inferior): Pass gnu_target to
7541 add_thread_silent, thread_change_ptid call.
7542 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7543 call.
7544
5a8b8627
ST
75452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7546
7547 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7548 (gnu_nat_target::find_memory_regions): Remove unused
7549 `old_address' variable.
7550
366f550a
ST
75512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7552
7553 * gnu-nat.c: Include "gdbarch.h".
7554
f14871bf
ST
75552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7556
7557 * reply_mig_hack.awk (Error return): Cast function through
7558 void *, to bypass compiler function call check.
7559
c6887cfb
ST
75602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7561
7562 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7563 $(srcdir)/reply_mig_hack.awk.
7564
6930bffe
ST
75652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7566
7567 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7568
112c22ed
JG
75692020-05-30 Jonny Grant <jg@jguk.org>
7570
7571 * configure.ac (ACX_BUGURL): change bug URL to https.
7572
f68f85b5
PA
75732020-05-30 Pedro Alves <palves@redhat.com>
7574
7575 * cp-support.c (replace_typedefs_template): New.
7576 (replace_typedefs_qualified_name): Handle
7577 DEMANGLE_COMPONENT_TEMPLATE.
7578
976ca316
SM
75792020-05-29 Simon Marchi <simon.marchi@efficios.com>
7580
7581 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7582 dwarf2/index-cache.h, dwarf2/index-write.c,
7583 dwarf2/index-write.h, dwarf2/line-header.c,
7584 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7585 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7586 variables and fields from `dwarf2_per_objfile` to just
7587 `per_objfile` throughout.
7588
989ade05
SM
75892020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7590
7591 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7592 <push_dwarf_reg_entry_value>: Add comment.
7593
c47bae85
KB
75942020-05-28 Kevin Buettner <kevinb@redhat.com>
7595 Keith Seitz <keiths@redhat.com>
7596
7597 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7598 instead of PyEval_ReleaseLock.
7599 (class gdbpy_gil): Move to earlier in file.
7600 (finalize_python): Set gdb_python_initialized.
7601 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7602 when not initialized.
7603
44486dcf
SM
76042020-05-28 Simon Marchi <simon.marchi@efficios.com>
7605
7606 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7607 <push_dwarf_reg_entry_value>: Remove assert. Override
7608 per_objfile with caller_per_objfile.
7609
f030440d
TV
76102020-05-28 Tom de Vries <tdevries@suse.de>
7611
7612 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7613 PR gold/15646 workaround to symbol kind "type".
7614
f0fbb768
TT
76152020-05-27 Tom Tromey <tromey@adacore.com>
7616
7617 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7618
af0b2a3e
TT
76192020-05-27 Tom Tromey <tromey@adacore.com>
7620
7621 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7622 Use htab_find_with_hash.
7623 <add_abbrev>: Remove "abbrev_number" parameter.
7624 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7625 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7626 (hash_abbrev): Add comment.
7627 (abbrev_table::lookup_abbrev): Move to header file.
7628 (abbrev_table::read): Update.
7629
7d00ffec
TT
76302020-05-27 Tom Tromey <tromey@adacore.com>
7631
7632 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7633 method.
7634 <canonical_name>: New member.
7635 <raw_name>: Rename from "name".
7636 (partial_die_info): Initialize canonical_name.
7637 (scan_partial_symbols): Check raw_name.
7638 (partial_die_parent_scope, partial_die_full_name)
7639 (add_partial_symbol, add_partial_subprogram)
7640 (add_partial_enumeration, load_partial_dies): Use "name" method.
7641 (partial_die_info::name): New method.
7642 (partial_die_info::read, guess_partial_die_structure_name)
7643 (partial_die_info::fixup): Update.
7644
697bba18
TT
76452020-05-27 Tom Tromey <tromey@adacore.com>
7646
7647 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7648 <get_ref_die_offset>: Inline.
7649 <get_ref_die_offset_complaint>: New method.
7650 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7651 (attribute::get_ref_die_offset_complaint): Rename from
7652 get_ref_die_offset. Just issue complaint.
7653
c17ace43
HD
76542020-05-27 Hannes Domani <ssbssa@yahoo.de>
7655
7656 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7657
96445f0b
HD
76582020-05-27 Hannes Domani <ssbssa@yahoo.de>
7659
7660 * exec.c (exec_file_attach): Use errno value of first openp failure.
7661
ac637ec3
HD
76622020-05-27 Hannes Domani <ssbssa@yahoo.de>
7663
7664 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7665 Don't close thread handle.
7666
17ee85fc
TT
76672020-05-27 Tom Tromey <tom@tromey.com>
7668 Simon Marchi <simon.marchi@efficios.com>
7669
7670 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7671 shared_ptr.
7672 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7673 member.
7674 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7675 dwarf2_per_bfd_objfile_data_key>: New globals.
7676 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7677 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7678 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7679 shared.
7680 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7681 short-circuit when sharing.
7682 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7683 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7684
39b16f87
SM
76852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7688 to...
7689 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7690 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7691
fcf23d5b
SM
76922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7693
7694 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7695 build_name_components, find_name_components_bounds>:
7696 Add per_objfile parameter.
7697 (struct mapped_index) <symbol_name_at>: Likewise.
7698 (struct mapped_debug_names): Remove constructor.
7699 <dwarf2_per_objfile>: Remove field.
7700 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7701 (mapped_index_base::find_name_components_bounds,
7702 mapped_index_base::build_name_components,
7703 dw2_expand_symtabs_matching_symbol): Likewise.
7704 (class mock_mapped_index) <symbol_name_at>: Likewise.
7705 (check_match): Likewise.
7706 (check_find_bounds_finds): Likewise.
7707 (test_mapped_index_find_name_component_bounds): Update.
7708 (CHECK_MATCH): Update.
7709 (dw2_expand_symtabs_matching): Update.
7710 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7711 per_objfile parameter.
7712 <find_vec_in_debug_names>: Likewise.
7713 <m_per_objfile>: New field.
7714 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7715 parameter.
7716 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7717 (dw2_debug_names_iterator::next): Update.
7718 (dw2_debug_names_lookup_symbol): Update.
7719 (dw2_debug_names_expand_symtabs_for_function): Update.
7720 (dw2_debug_names_map_matching_symbols): Update.
7721 (dw2_debug_names_expand_symtabs_matching): Update.
7722 (dwarf2_read_debug_names): Update.
7723
7188ed02
SM
77242020-05-27 Simon Marchi <simon.marchi@efficios.com>
7725
7726 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7727 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7728 move to dwarf2_per_objfile.
7729 <read_in_chain>: Remove.
7730 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7731 remove_all_cus, age_comp_units>: New methods.
7732 <m_dwarf2_cus>: New member.
7733 (struct dwarf2_per_cu_data) <cu>: Remove.
7734 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7735 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7736 moved to methods of dwarf2_per_objfile.
7737 (dwarf2_clear_marks): Remove.
7738 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7739 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7740 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7741 (dwarf2_per_objfile::remove_all_cus): New.
7742 (class free_cached_comp_units) <~free_cached_comp_units>:
7743 Update.
7744 (load_cu): Update.
7745 (dw2_do_instantiate_symtab): Adjust.
7746 (fill_in_sig_entry_from_dwo_entry): Adjust.
7747 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7748 (cutu_reader::cutu_reader): Likewise.
7749 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7750 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7751 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7752 and dwarf2_per_objfile::age_comp_units.
7753 (load_partial_comp_unit): Update.
7754 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7755 (process_queue): Likewise.
7756 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7757 backlink.
7758 (dwarf2_read_addr_index): Likewise.
7759 (follow_die_offset): Likewise.
7760 (dwarf2_fetch_die_loc_sect_off): Likewise.
7761 (dwarf2_fetch_constant_bytes): Likewise.
7762 (dwarf2_fetch_die_type_sect_off): Likewise.
7763 (follow_die_sig_1): Likewise.
7764 (load_full_type_unit): Likewise.
7765 (read_signatured_type): Likewise.
7766 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7767 (dwarf2_cu::~dwarf2_cu): Remove.
7768 (dwarf2_per_objfile::get_cu): New.
7769 (dwarf2_per_objfile::set_cu): New.
7770 (age_cached_comp_units): Rename to...
7771 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7772 to std::unordered_map.
7773 (free_one_cached_comp_unit): Rename to...
7774 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7775 to std::unordered_map.
7776 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7777 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7778 a dwarf2_per_objfile in data.
7779 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7780 (dwarf2_clear_marks): Remove.
7781
2e671100
SM
77822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7783
7784 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7785 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7786 (init_tu_and_read_dwo_dies): Likewise.
7787 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7788 (cutu_reader::cutu_reader): Likewise.
7789 (load_partial_comp_unit): Likewise.
7790 (process_psymtab_comp_unit): Update.
7791 (build_type_psymtabs_1): Update.
7792 (process_skeletonless_type_unit): Update.
7793 (load_full_comp_unit): Update.
7794 (find_partial_die): Update.
7795 (dwarf2_read_addr_index): Update.
7796 (read_signatured_type): Update.
7797
2e6a9f79
SM
77982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7799
7800 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7801 m_header_read_in>: New fields.
7802 <get_header>: New method.
7803 * dwarf2/read.c (per_cu_header_read_in): Remove.
7804 (dwarf2_per_cu_data::get_header): New.
7805 (dwarf2_per_cu_data::addr_size): Update.
7806 (dwarf2_per_cu_data::offset_size): Update.
7807 (dwarf2_per_cu_data::ref_addr_size): Update.
7808
1b555f17
SM
78092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7810
7811 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7812 (dw2_do_instantiate_symtab): Update.
7813 (queue_and_load_all_dwo_tus): Change parameter from
7814 dwarf2_per_cu_data to dwarf2_cu.
7815 (dwarf2_fetch_die_loc_sect_off): Update.
7816 (dwarf2_fetch_constant_bytes): Update.
7817 (dwarf2_fetch_die_type_sect_off): Update.
7818
8fc0b21d
SM
78192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7820
7821 * dwarf2/read.c (process_full_comp_unit,
7822 process_full_type_unit): Remove per_cu, per_objfile paramters.
7823 Add dwarf2_cu parameter.
7824 (process_queue): Update.
7825
168c9250
SM
78262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7827
7828 * dwarf2/read.c (create_cu_from_index_list): Replace
7829 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7830 (create_cus_from_index_list): Likewise.
7831 (create_cus_from_index): Likewise.
7832 (create_signatured_type_table_from_index): Likewise.
7833 (create_cus_from_debug_names_list): Likewise.
7834 (create_cus_from_debug_names): Likewise.
7835 (dwarf2_read_gdb_index): Update.
7836 (dwarf2_read_debug_names): Update.
7837
e286671b
TT
78382020-05-27 Tom Tromey <tom@tromey.com>
7839 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * dwarf2/read.h (struct dwarf2_per_objfile)
7842 <get_type_for_signatured_type, set_type_for_signatured_type>:
7843 New methods.
7844 <m_type_map>: New member.
7845 (struct signatured_type) <type>: Remove.
7846 * dwarf2/read.c
7847 (dwarf2_per_objfile::get_type_for_signatured_type,
7848 dwarf2_per_objfile::set_type_for_signatured_type): New.
7849 (get_signatured_type): Use new methods.
7850
8adb8487
TT
78512020-05-27 Tom Tromey <tom@tromey.com>
7852 Simon Marchi <simon.marchi@efficios.com>
7853
7854 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7855 (struct dwarf2_per_objfile) <type_units>: New member.
7856 <get_type_unit_group_unshareable>: New method.
7857 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7858 num_symtabs, symtabs>: Remove; move to
7859 type_unit_group_unshareable.
7860 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7861 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7862 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7863
127bbf4b
SM
78642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * dwarf2/read.h (struct dwarf2_per_cu_data):
7867 <dwarf2_per_objfile>: Remove.
7868 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7869 dwarf2_per_objfile.
7870 (create_signatured_type_table_from_index): Likewise.
7871 (create_signatured_type_table_from_debug_names): Likewise.
7872 (create_debug_type_hash_table): Likewise.
7873 (fill_in_sig_entry_from_dwo_entry): Likewise.
7874 (create_type_unit_group): Likewise.
7875 (read_comp_units_from_section): Likewise.
7876 (create_cus_hash_table): Likewise.
7877
f6e649dd
SM
78782020-05-27 Simon Marchi <simon.marchi@efficios.com>
7879
7880 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7881 dwarf2_per_cu_data::dwarf2_per_objfile.
7882 (compute_compunit_symtab_includes): Likewise.
7883 (dwarf2_cu::start_symtab): Likewise.
7884
aa66c379
SM
78852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7886
7887 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7888 parameter.
7889 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7890 (read_namespace_alias): Update.
7891 (lookup_die_type): Update.
7892 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7893 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7894 Update.
7895 (disassemble_dwarf_expression): Update.
7896
120ce1b5
SM
78972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7898
7899 * dwarf2/read.h (struct dwarf2_queue_item): Add
7900 dwarf2_per_objfile parameter, assign new parameter.
7901 <per_objfile>: New field.
7902 * dwarf2/read.c (free_one_cached_comp_unit): Add
7903 dwarf2_per_objfile parameter.
7904 (queue_comp_unit): Likewise.
7905 (dw2_do_instantiate_symtab): Update.
7906 (process_psymtab_comp_unit): Update.
7907 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7908 (process_imported_unit_die): Update.
7909 (queue_and_load_dwo_tu): Update.
7910 (follow_die_offset): Update.
7911 (follow_die_sig_1): Update.
7912
9f47c707
SM
79132020-05-27 Simon Marchi <simon.marchi@efficios.com>
7914
7915 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7916 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7917 (read_call_site_scope): Assign per_objfile.
7918 (dwarf2_per_cu_data::objfile): Remove.
7919 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7920 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7921 dwarf2_per_objfile parameter.
7922 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7923 dwarf2_per_objfile parameter.
7924 (dwarf_expr_reg_to_entry_parameter): Add output
7925 dwarf2_per_objfile parameter.
7926 (locexpr_get_frame_base): Update.
7927 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7928 <push_dwarf_reg_entry_value>: Update.
7929 <call_site_to_target_addr>: Update.
7930 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7931 parameter.
7932 (value_of_dwarf_reg_entry): Update.
7933 (rw_pieced_value): Update.
7934 (indirect_synthetic_pointer): Update.
7935 (dwarf2_evaluate_property): Update.
7936 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7937 parameter.
7938 (locexpr_read_variable): Update.
7939 (locexpr_get_symbol_read_needs): Update.
7940 (loclist_read_variable): Update.
7941
14095eb3
SM
79422020-05-27 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7945 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7946 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7947 parameter.
7948 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7949 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7950 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7951 parameter.
7952 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7953 sect_variable_value): Add dwarf2_per_objfile parameter.
7954 (class dwarf_evaluate_loc_desc) <dwarf_call,
7955 dwarf_variable_value>: Update.
7956 (fetch_const_value_from_synthetic_pointer): Add
7957 dwarf2_per_objfile parameter.
7958 (fetch_const_value_from_synthetic_pointer): Update.
7959 (coerced_pieced_ref): Update.
7960 (class symbol_needs_eval_context) <dwarf_call,
7961 dwarf_variable_value>: Update.
7962 (dwarf2_compile_expr_to_ax): Update.
7963
3c3cd3d4
SM
79642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7967 parameter.
7968 (dwarf2_evaluate_loc_desc_full): Update.
7969
82ca3f51
SM
79702020-05-27 Simon Marchi <simon.marchi@efficios.com>
7971
7972 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7973 parameter.
7974 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7975 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7976 dwarf2_per_objfile parameter.
7977 (decode_debug_loc_dwo_addresses): Likewise.
7978 (dwarf2_find_location_expression): Update.
7979 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7980 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7981 parameter.
7982 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7983 parameter.
7984 (locexpr_describe_location_1): Likewise.
7985 (locexpr_describe_location): Update.
7986
4b167ea1
SM
79872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7988
7989 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7990 Remove.
7991 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7992 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7993 (dwarf2_compile_property_to_c): Update.
7994 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7995 use text offset from objfile.
7996 (locexpr_tracepoint_var_ref): Update.
7997 (locexpr_generate_c_location): Update.
7998 (loclist_describe_location): Update.
7999 (loclist_tracepoint_var_ref): Update.
8000 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8001 dwarf2_per_objfile parameter.
8002 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8003 use text offset from objfile.
8004 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8005
89b07335
SM
80062020-05-27 Simon Marchi <simon.marchi@efficios.com>
8007
8008 * dwarf2/expr.h (struct dwarf_expr_context)
8009 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8010 <offset>: Remove.
8011 <per_objfile>: New member.
8012 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8013 dwarf2_per_objfile parameter. Don't set offset, set
8014 per_objfile.
8015 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8016 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8017 a dwarf2_per_objfile object instead of an offset.
8018 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8019 constructor.
8020 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8021 to dwarf2_expr_executor constructor. Don't set offset.
8022 (dwarf2_fetch_cfa_info): Update.
8023 (struct dwarf2_frame_cache) <text_offset>: Remove.
8024 <per_objfile>: New field.
8025 (dwarf2_frame_cache): Update.
8026 (dwarf2_frame_prev_register): Update.
8027 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8028 <dwarf_evaluate_loc_desc>: Add constructor.
8029 (dwarf2_evaluate_loc_desc_full): Update.
8030 (dwarf2_locexpr_baton_eval): Update.
8031 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8032 Add constructor.
8033 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8034
293e7e51
SM
80352020-05-27 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8038 addr_sized_int_type>: Move to dwarf2_cu.
8039 <int_type>: Move to dwarf2_per_objfile.
8040 (struct dwarf2_per_objfile) <int_type>: Move here.
8041 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8042 addr_sized_int_type>: Move here.
8043 (read_func_scope): Update.
8044 (read_array_type): Update.
8045 (read_tag_string_type): Update.
8046 (attr_to_dynamic_prop): Update.
8047 (dwarf2_per_cu_data::int_type): Rename to...
8048 (dwarf2_per_objfile::int_type): ... this.
8049 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8050 (dwarf2_cu::addr_sized_int_type): ... this.
8051 (read_subrange_type): Update.
8052 (dwarf2_per_cu_data::addr_type): Rename to...
8053 (dwarf2_cu::addr_type): ... this.
8054 (set_die_type): Update.
8055
64874a40
SM
80562020-05-27 Simon Marchi <simon.marchi@efficios.com>
8057
8058 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8059 data through per_cu->cu.
8060
4ab09049
SM
80612020-05-27 Simon Marchi <simon.marchi@efficios.com>
8062
8063 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8064 dwarf2_per_cu_data parameter fo dwarf2_cu.
8065 (lookup_dwo_type_unit): Likewise.
8066 (read_cutu_die_from_dwo): Likewise.
8067 (lookup_dwo_unit): Likewise.
8068 (open_and_init_dwo_file): Likewise.
8069 (lookup_dwo_cutu): Likewise.
8070 (lookup_dwo_comp_unit): Likewise.
8071 (lookup_dwo_type_unit): Likewise.
8072 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8073 (cutu_reader::cutu_reader): Update.
8074
47b14e86
SM
80752020-05-27 Simon Marchi <simon.marchi@efficios.com>
8076
8077 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8078 parameter.
8079 (process_full_type_unit): Likewise.
8080 (process_queue): Update.
8081
43182c09
SM
80822020-05-27 Simon Marchi <simon.marchi@efficios.com>
8083
8084 * dwarf2/read.c (recursively_compute_inclusions): Add
8085 dwarf2_per_objfile parameter.
8086 (compute_compunit_symtab_includes): Likewise.
8087 (process_cu_includes): Update.
8088
7aa104c4
SM
80892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8090
8091 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8092 parameter.
8093 (create_type_unit_group): Update.
8094 (process_psymtab_comp_unit_reader): Update.
8095 (build_type_psymtabs_reader): Update.
8096
e3beb21d
SM
80972020-05-27 Simon Marchi <simon.marchi@efficios.com>
8098
8099 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8100 object through m_this_cu->cu.
8101
d460f660
SM
81022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8103
8104 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8105 the info parameter.
8106 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8107
ab432490
SM
81082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8109
8110 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8111 per_objfile parameter.
8112 (load_full_type_unit): Add per_objfile parameter.
8113 (read_signatured_type): Likewise.
8114 (load_full_comp_unit): Likewise.
8115 (load_cu): Likewise.
8116 (dw2_do_instantiate_symtab): Likewise.
8117 (dw2_get_file_names): Likewise.
8118 (dw2_map_symtabs_matching_filename): Update.
8119 (dw_expand_symtabs_matching_file_matcher): Update.
8120 (dw2_map_symbol_filenames): Update.
8121 (process_psymtab_comp_unit): Add per_objfile parameter.
8122 (build_type_psymtabs_1): Update.
8123 (process_skeletonless_type_unit): Update.
8124 (dwarf2_build_psymtabs_hard): Update.
8125 (load_partial_comp_unit): Add per_objfile parameter.
8126 (scan_partial_symbols): Update.
8127 (load_full_comp_unit): Add per_objfile parameter.
8128 (process_imported_unit_die): Update.
8129 (create_cus_hash_table): Update.
8130 (find_partial_die): Update.
8131 (dwarf2_read_addr_index): Update.
8132 (follow_die_offset): Update.
8133 (dwarf2_fetch_die_loc_sect_off): Update.
8134 (dwarf2_fetch_constant_bytes): Update.
8135 (dwarf2_fetch_die_type_sect_off): Update.
8136 (follow_die_sig_1): Update.
8137 (load_full_type_unit): Add per_objfile parameter.
8138 (read_signatured_type): Likewise.
8139
313bad1b
SM
81402020-05-27 Simon Marchi <simon.marchi@efficios.com>
8141
8142 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8143 of objfile_name.
8144
c3699833
SM
81452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8146
8147 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8148 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8149 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8150 field.
8151 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8152 (create_cus_from_index): Update.
8153 (dwarf2_read_gdb_index): Update.
8154 (create_cus_from_debug_names): Update.
8155 (dwarf2_read_debug_names): Update.
8156 (get_abbrev_section_for_cu): Update.
8157 (create_all_comp_units): Update.
8158 (read_attribute_value): Update.
8159 (get_debug_line_section): Update.
8160 * dwarf2/index-cache.c (index_cache::store): Update.
8161 * dwarf2/index-write.c (save_gdb_index_command): Update.
8162 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8163
1859c670
SM
81642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8165
8166 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8167 member.
8168 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8169 dwarf2_per_cu_data::per_bfd.
8170 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8171 (create_type_unit_group): Likewise.
8172 (queue_comp_unit): Remove reference to
8173 per_cu->dwarf2_per_objfile.
8174 (maybe_queue_comp_unit): Likewise.
8175 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8176 (create_cus_hash_table): Assign new field.
8177
5e22e966
SM
81782020-05-27 Simon Marchi <simon.marchi@efficios.com>
8179
8180 * dwarf2/read.c: Replace
8181 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8182 dwarf2_cu->per_objfile throughout.
8183
97a1449a
SM
81842020-05-27 Simon Marchi <simon.marchi@efficios.com>
8185
8186 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8187 parameter, don't use per_cu->dwarf2_per_objfile.
8188 (dw2_instantiate_symtab): Likewise.
8189 (dw2_find_last_source_symtab): Update.
8190 (dw2_map_expand_apply): Update.
8191 (dw2_lookup_symbol): Update.
8192 (dw2_expand_symtabs_for_function): Update.
8193 (dw2_expand_all_symtabs): Update.
8194 (dw2_expand_symtabs_with_fullname): Update.
8195 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8196 don't use per_cu->dwarf2_per_objfile.
8197 (dw2_expand_marked_cus): Update.
8198 (dw2_find_pc_sect_compunit_symtab): Update.
8199 (dw2_debug_names_lookup_symbol): Update.
8200 (dw2_debug_names_expand_symtabs_for_function): Update.
8201 (dw2_debug_names_map_matching_symbols): Update.
8202 (dwarf2_psymtab::expand_psymtab): Update.
8203
9e021579
SM
82042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8205
8206 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8207 <per_objfile>: New member.
8208 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8209 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8210 call to dwarf2_cu.
8211 (cutu_reader::cutu_reader): Update.
8212 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8213
ae090bdb
SM
82142020-05-27 Simon Marchi <simon.marchi@efficios.com>
8215
8216 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8217 struct dwarf2_per_objfile.
8218 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8219 dwarf2_per_bfd.
8220 * dwarf2/read.c (set_die_type): Update.
8221 (get_die_type_at_offset): Update.
8222
af758d11
SM
82232020-05-27 Tom Tromey <tom@tromey.com>
8224 Simon Marchi <simon.marchi@efficios.com>
8225
8226 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8227 method.
8228 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8229 get_symtab, set_symtab>: New methods.
8230 <m_symtabs>: New field.
8231 (struct dwarf2_psymtab): Derive from partial_symtab.
8232 <readin_p, get_compunit_symtab>: Declare methods.
8233 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8234 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8235 New methods.
8236 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8237 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8238 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8239 (dw2_symtab_iter_next, dw2_print_stats)
8240 (dw2_expand_symtabs_with_fullname)
8241 (dw2_expand_symtabs_matching_one)
8242 (dw_expand_symtabs_matching_file_matcher)
8243 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8244 (dw2_debug_names_iterator::next)
8245 (dw2_debug_names_map_matching_symbols)
8246 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8247 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8248 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8249 New methods.
8250 (get_compunit_symtab, process_full_comp_unit)
8251 (process_full_type_unit): Update.
8252 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8253
5989a64e
SM
82542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8255
8256 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8257 then introduce a new dwarf2_per_objfile type.
8258 <read_line_string>: Move to the new dwarf2_per_objfile type.
8259 <objfile>: Likewise.
8260 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8261 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8262 dwarf2_per_objfile->per_bfd.
8263 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8264 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8265 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8266 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8267 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8268 (dwarf2_per_objfile::locate_sections): Rename to...
8269 (dwarf2_per_bfd::locate_sections): ... this.
8270 (dwarf2_per_objfile::get_cutu): Rename to...
8271 (dwarf2_per_bfd::get_cutu): ... this.
8272 (dwarf2_per_objfile::get_cu): Rename to...
8273 (dwarf2_per_bfd::get_cu): ... this.
8274 (dwarf2_per_objfile::get_tu): Rename to...
8275 (dwarf2_per_bfd::get_tu): ... this.
8276 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8277 (dwarf2_per_bfd::allocate_per_cu): ... this.
8278 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8279 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8280 (get_gdb_index_contents_ftype): Change parameter from
8281 dwarf2_per_objfile to dwarf2_per_bfd.
8282 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8283 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8284
a50264ba
TT
82852020-05-27 Tom Tromey <tom@tromey.com>
8286 Simon Marchi <simon.marchi@efficios.com>
8287
8288 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8289 (allocate_piece_closure): Set "per_objfile" member.
8290 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8291 (locexpr_describe_location, loclist_describe_location): Use new
8292 member.
8293 * dwarf2/read.c (read_call_site_scope)
8294 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8295 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8296 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8297 handle_data_member_location): Set per_objfile member.
8298 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8299 member.
8300 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8301
d3473f0c
TT
83022020-05-27 Tom Tromey <tom@tromey.com>
8303
8304 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8305 allocate_signatured_type>: Declare new methods.
8306 <m_num_psymtabs>: New member.
8307 (struct dwarf2_per_cu_data) <index>: New member.
8308 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8309 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8310 (create_cu_from_index_list): Use allocate_per_cu.
8311 (create_signatured_type_table_from_index)
8312 (create_signatured_type_table_from_debug_names)
8313 (create_debug_type_hash_table, add_type_unit)
8314 (read_comp_units_from_section): Use allocate_signatured_type.
8315
5717c425
TT
83162020-05-27 Tom Tromey <tom@tromey.com>
8317
8318 * psymtab.c (partial_map_expand_apply)
8319 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8320 (psym_lookup_global_symbol_language)
8321 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8322 (psym_print_stats, psym_expand_symtabs_for_function)
8323 (psym_map_symbol_filenames, psym_map_matching_symbols)
8324 (psym_expand_symtabs_matching)
8325 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8326 (maintenance_check_psymtabs): Update.
8327 * psympriv.h (struct partial_symtab) <readin_p,
8328 get_compunit_symtab>: Add objfile parameter.
8329 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8330 Likewise.
8331 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8332 get_compunit_symtab>: Likewise.
8333 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8334
45940949
TT
83352020-05-27 Tom Tromey <tom@tromey.com>
8336
8337 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8338 member.
8339 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8340 (create_cu_from_index_list)
8341 (create_signatured_type_table_from_index)
8342 (create_signatured_type_table_from_debug_names)
8343 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8344 (dwarf2_create_include_psymtab)
8345 (create_debug_type_hash_table, add_type_unit)
8346 (create_type_unit_group, read_comp_units_from_section)
8347 (dwarf2_compute_name, create_cus_hash_table)
8348 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8349 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8350 obstack.
8351 (dw2_get_real_path): Likewise. Change argument to
8352 dwarf2_per_objfile.
8353
f8c6d152
LM
83542020-05-27 Luis Machado <luis.machado@linaro.org>
8355
8356 PR tdep/26000
8357 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8358 for ldrd (immediate).
8359
e98d2e6d
PW
83602020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8361
8362 * command.h: Add comment giving the name of class_tui.
8363 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8364 create the fake command for the help for class_tui.
8365
53a47a3e
TT
83662020-05-26 Tom Tromey <tromey@adacore.com>
8367
8368 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8369 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8370 (val_atr): New function.
8371 (value_val_atr): Use it.
8372 * ada-valprint.c (print_optional_low_bound): Change low bound
8373 handling for enums.
8374 (val_print_packed_array_elements): Don't call discrete_position.
8375 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8376 discrete_position for enum types.
8377 * language.c (default_print_array_index): Change type.
8378 * language.h (struct language_defn) <la_print_array_index>: Add
8379 index_type parameter, change type of index_value.
8380 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8381 (default_print_array_index): Update.
8382 * valprint.c (maybe_print_array_index): Don't call
8383 value_from_longest. Update.
8384 (value_print_array_elements): Don't call discrete_position.
8385
0bc2354b
TT
83862020-05-26 Tom Tromey <tromey@adacore.com>
8387
8388 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8389 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8390
1218a4bf
CDA
83912020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8392
8393 PR gdb/13519
8394 * avr-tdep.c (avr_integer_to_address): Return data or code
8395 address accordingly to the second 'type' argument of the
8396 function.
8397
92651b1d
MW
83982020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8399
8400 * infcmd.c, inferior.h: (construct_inferior_arguments):
8401 Moved function from here to gdbsupport/common-inferior.{h,cc}
8402
0a4f5f8c
TT
84032020-05-23 Tom Tromey <tom@tromey.com>
8404
8405 Revert commit eca1f90c:
8406 * NEWS: Remove entry for completion styling.
8407 * completer.c (_rl_completion_prefix_display_length): Move
8408 declaration later.
8409 (gdb_fnprint): Revert.
8410 (gdb_display_match_list_1): Likewise.
8411 * cli/cli-style.c (completion_prefix_style)
8412 (completion_difference_style, completion_suffix_style): Remove.
8413 (_initialize_cli_style): Revert.
8414 * cli/cli-style.h (completion_prefix_style)
8415 (completion_difference_style, completion_suffix_style): Don't
8416 declare.
8417
e08bd6c5
PA
84182020-05-24 Pedro Alves <palves@redhat.com>
8419
8420 * symtab.c (completion_list_add_name): Return boolean indication
8421 of whether the symbol matched.
8422 (completion_list_add_symbol): Don't try to remove C++ aliases if
8423 the symbol didn't match in the first place.
8424 * symtab.h (completion_list_add_name): Return bool.
8425
ceacbf6e
SM
84262020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8427
8428 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8429 type::field.
8430
26f16254
JB
84312020-05-23 Joel Brobecker <brobecker@adacore.com>
8432
8433 GDB 9.2 released.
8434
eca1f90c
TT
84352020-05-23 Tom Tromey <tom@tromey.com>
8436
8437 * NEWS: Add entry for completion styling.
8438 * completer.c (_rl_completion_prefix_display_length): Move
8439 declaration earlier.
8440 (gdb_fnprint): Use completion_style.
8441 (gdb_display_match_list_1): Likewise.
8442 * cli/cli-style.c (completion_prefix_style)
8443 (completion_difference_style, completion_suffix_style): New
8444 globals.
8445 (_initialize_cli_style): Register new globals.
8446 * cli/cli-style.h (completion_prefix_style)
8447 (completion_difference_style, completion_suffix_style): Declare.
8448
51e2cfa2
PA
84492020-05-23 Pedro Alves <palves@redhat.com>
8450
8451 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8452 (parse_escape): Use ISDIGIT instead of isdigit.
8453 (puts_debug): Use gdb_isprint instead of isprint.
8454 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8455 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8456 ISSPACE instead of isspace.
8457 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8458 instead of isspace.
8459 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8460 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8461 instead of isxdigit and ISDIGIT instead of isdigit.
8462
80fc5e77
SM
84632020-05-22 Simon Marchi <simon.marchi@efficios.com>
8464
8465 * gdbtypes.h (struct type) <field>: New method.
8466 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8467 or type::field.
8468
3cabb6b0
SM
84692020-05-22 Simon Marchi <simon.marchi@efficios.com>
8470
8471 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8472 (TYPE_FIELDS): Use type::fields. Change all call sites that
8473 modify the propery to use type::set_fields instead.
8474
1f704f76
SM
84752020-05-22 Simon Marchi <simon.marchi@efficios.com>
8476
8477 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8478 type::num_fields instead.
8479
5e33d5f4
SM
84802020-05-22 Simon Marchi <simon.marchi@efficios.com>
8481
8482 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8483 methods.
8484 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8485 that modify the number of fields to use type::set_num_fields
8486 instead.
8487
9392ebb3
TT
84882020-05-22 Tom Tromey <tromey@adacore.com>
8489
8490 * compile/compile-object-load.h (munmap_list_free): Don't
8491 declare.
8492
7c13f4e8
AB
84932020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8494
8495 * annotate.c (annotate_source_line): Update return type, add call
8496 to update current symtab and line.
8497 * annotate.h (annotate_source_line): Update return type, and
8498 extend header comment.
8499 * source.c (info_line_command): Check annotation_level before
8500 calling annotate_source_line.
8501 * stack.c (print_frame_info): If calling annotate_source_line
8502 returns true, then don't print any other source line information.
8503
aa370940
SM
85042020-05-21 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8507
84d53fa9
SM
85082020-05-21 Simon Marchi <simon.marchi@efficios.com>
8509
8510 * coffread.c (patch_type): Remove NULL check before xfree.
8511 * corefile.c (set_gnutarget): Likewise.
8512 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8513 * exec.c (build_section_table): Likewise.
8514 * remote.c (remote_target::pass_signals): Likewise.
8515 * utils.c (n_spaces): Likewise.
8516 * cli/cli-script.c (document_command): Likewise.
8517 * i386-windows-tdep.c (core_process_module_section): Likewise.
8518 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8519
9d428aae
SM
85202020-05-20 Simon Marchi <simon.marchi@efficios.com>
8521
8522 * symfile.c (reread_symbols): Clear objfile's section_offsets
8523 vector and section indices, re-compute them by calling
8524 sym_offsets.
8525
250106a7
TT
85262020-05-20 Tom Tromey <tromey@adacore.com>
8527
8528 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8529 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8530
9a0bacfb
TV
85312020-05-20 Tom de Vries <tdevries@suse.de>
8532
8533 PR symtab/25833
8534 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8535
7b958a48
AM
85362020-05-20 Alan Modra <amodra@gmail.com>
8537
8538 PR 25993
8539 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8540 bfd_set_filename.
8541 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8542 passed to bfd_set_filename.
8543 * symfile-mem.c (add_vsyscall_page): Likewise for string
8544 passed to symbol_file_add_from_memory.
8545 (symbol_file_add_from_memory): Make name param a const char* and
8546 don't strdup.
8547
c7e97679
AM
85482020-05-20 Alan Modra <amodra@gmail.com>
8549
8550 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8551 rather than accessing bfd->filename directly.
8552 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8553 and use bfd_section_name.
8554 * dwarf2/frame.c (decode_frame_entry): Likewise.
8555 * exec.c (exec_set_section_address): Likewise.
8556 * solib-aix.c (solib_aix_bfd_open): Likewise.
8557 * stap-probe.c (get_stap_base_address): Likewise.
8558 * symfile.c (reread_symbols): Likewise.
8559
563c591b
TT
85602020-05-19 Tom Tromey <tromey@adacore.com>
8561
8562 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8563
f408d82c
SM
85642020-05-19 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8567
98c59b52
PA
85682020-05-19 Pedro Alves <palves@redhat.com>
8569
8570 * NEWS (set exec-file-mismatch): Adjust entry.
8571 * exec.c: Include "build-id.h".
8572 (validate_exec_file): Try to match build IDs instead of filenames.
8573 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8574 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8575 and pass down 'warn_if_slow'.
8576 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8577 gdb_bfd_open_closure to pass it down.
8578 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8579
4111f652
PA
85802020-05-19 Pedro Alves <palves@redhat.com>
8581
8582 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8583 * target.c (target_fileio_open_1): Rename to target_fileio_open
8584 and make extern. Use bool.
8585 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8586 (target_fileio_read_alloc_1): Adjust.
8587 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8588 (target_fileio_open_warn_if_slow): Delete declaration.
8589
ad80db5b
PA
85902020-05-19 Pedro Alves <palves@redhat.com>
8591
8592 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8593 Adjust all callers.
8594
1d6ce4d3
YS
85952020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8596
8597 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8598 whether disp is negative.
8599
9005fbbb
SM
86002020-05-19 Simon Marchi <simon.marchi@efficios.com>
8601
8602 * symfile.h (struct symfile_segment_data)
8603 <~symfile_segment_data>: Remove.
8604 <segment_info>: Change to std::vector.
8605 * symfile.c (default_symfile_segments): Update.
8606 * elfread.c (elf_symfile_segments): Update.
8607
68b888ff
SM
86082020-05-19 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8611 <segments>: New.
8612 <segment_bases, segment_sizes>: Remove.
8613 * symfile.c (default_symfile_segments): Update.
8614 * elfread.c (elf_symfile_segments): Update.
8615 * remote.c (remote_target::get_offsets): Update.
8616 * solib-target.c (solib_target_relocate_section_addresses):
8617 Update.
8618
62982abd
SM
86192020-05-19 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * symfile.h (struct symfile_segment_data): Initialize fields.
8622 <~symfile_segment_data>: Add.
8623 (symfile_segment_data_up): New.
8624 (struct sym_fns) <sym_segments>: Return a
8625 symfile_segment_data_up.
8626 (default_symfile_segments): Return a symfile_segment_data_up.
8627 (free_symfile_segment_data): Remove.
8628 (get_symfile_segment_data): Return a symfile_segment_data_up.
8629 * symfile.c (default_symfile_segments): Likewise.
8630 (get_symfile_segment_data): Likewise.
8631 (free_symfile_segment_data): Remove.
8632 (symfile_find_segment_sections): Update.
8633 * elfread.c (elf_symfile_segments): Return a
8634 symfile_segment_data_up.
8635 * remote.c (remote_target::get_offsets): Update.
8636 * solib-target.c (solib_target_relocate_section_addresses):
8637 Update.
8638 * symfile-debug.c (debug_sym_segments): Return a
8639 symfile_segment_data_up.
8640
7f204339
RO
86412020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8642
e52a0f1b
RO
8643 PR build/25981
8644 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8645 Hardcode register numbers.
8646
7f204339
RO
8647 PR build/25981
8648 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8649 procfs_find_LDT_entry): Remove.
8650 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8651 procfs_find_LDT_entry): Remove.
8652 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8653 Remove.
8654
7f32a4d5
PA
86552020-05-17 Pedro Alves <palves@redhat.com>
8656 Andrew Burgess <andrew.burgess@embecosm.com>
8657 Keno Fischer <keno@juliacomputing.com>
8658
8659 PR gdb/25741
8660 * breakpoint.c (build_target_condition_list): Update comments.
8661 (build_target_command_list): Update comments and skip matching
8662 locations.
8663 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8664 a separate function. Simplify "set breakpoint auto-hw off"
8665 handling.
8666 (insert_breakpoints): Update comment.
8667 (tracepoint_locations_match): New parameter. For breakpoints,
8668 compare location types too, if the caller wants to.
8669 (handle_automatic_hardware_breakpoints): New functions.
8670 (bp_location_is_less_than): Also sort by location type and
8671 hardware breakpoint length.
8672 (update_global_location_list): Handle "set breakpoint auto-hw on"
8673 here.
8674 (update_breakpoint_locations): Ask breakpoint_locations_match to
8675 ignore location types.
8676
7d93a1e0
SM
86772020-05-16 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8680 type::name instead.
8681
d0e39ea2
SM
86822020-05-16 Simon Marchi <simon.marchi@efficios.com>
8683
8684 * gdbtypes.h (struct type) <name, set_name>: New methods.
8685 (TYPE_CODE): Use type::name. Change all call sites used to set
8686 the name to use type::set_name instead.
8687
2dab0c7b
TT
86882020-05-16 Tom Tromey <tom@tromey.com>
8689
8690 * top.c (quit_force): Update.
8691 * infrun.c (handle_no_resumed): Update.
8692 * top.h (all_uis): New function.
8693 (ALL_UIS): Remove.
8694
59f7bd8d
SM
86952020-05-16 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8698
9bf058f0
PA
86992020-05-16 Pedro Alves <palves@redhat.com>
8700
8701 * ia64-linux-nat.c
8702 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8703 Declare method.
8704 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8705
8f86ae1a
SM
87062020-05-15 Simon Marchi <simon.marchi@efficios.com>
8707
8708 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8709 (sparc64_adi_info): Likewise.
8710
d6bc0792
TT
87112020-05-15 Tom Tromey <tom@tromey.com>
8712
8713 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8714 block_objfile.
8715 (lookup_objfile_from_block): Remove.
8716 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8717 (lookup_global_symbol): Use block_objfile.
8718 * symtab.h (lookup_objfile_from_block): Don't declare.
8719 * printcmd.c (clear_dangling_display_expressions): Use
8720 block_objfile.
8721 * parse.c (operator_check_standard): Use block_objfile.
8722
8c14c3a3
TT
87232020-05-15 Tom Tromey <tom@tromey.com>
8724
8725 * language.c (language_alloc_type_symbol): Set
8726 SYMBOL_SECTION.
8727 * symtab.c (initialize_objfile_symbol): Remove.
8728 (allocate_symbol): Remove.
8729 (allocate_template_symbol): Remove.
8730 * dwarf2/read.c (fixup_go_packaging): Use "new".
8731 (new_symbol): Use "new".
8732 (read_variable): Don't call initialize_objfile_symbol. Use
8733 "new".
8734 (read_func_scope): Use "new".
8735 * xcoffread.c (process_xcoff_symbol): Don't call
8736 initialize_objfile_symbol.
8737 (SYMBOL_DUP): Remove.
8738 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8739 "new".
8740 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8741 (allocate_template_symbol): Don't declare.
8742 (struct symbol): Add copy constructor. Change defaults.
8743 * jit.c (finalize_symtab): Use "new".
8744 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8745 Use "new".
8746 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8747 (common_block_end): Use "new".
8748 * mdebugread.c (parse_symbol): Use "new".
8749 (new_symbol): Likewise.
8750
5b4a1a8d
PW
87512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8752
8753 * NEWS: Mention changes to help and apropos.
8754
57b4f16e
PW
87552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8756
8757 * command.h (enum command_class): Improve comments, document
8758 that class_alias is for user-defined aliases, give the class
8759 name for each class, remove unused class_xdb.
8760 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8761 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8762 by a precise class.
8763 * infcmd.c (_initialize_infcmd): Likewise.
8764 * reverse.c (_initialize_reverse): Likewise.
8765 * stack.c (_initialize_stack): Likewise.
8766 * symfile.c (_initialize_symfile): Likewise.
8767 * tracepoint.c (_initialize_tracepoint): Likewise.
8768
7c05caf7
PW
87692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8770
8771 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8772 when their aliased command is traversed.
8773 (help_cmd): Add fput_command_names_styled call to
8774 output command name and aliases when command has an alias.
8775
3b3aaacb
PW
87762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8777
8778 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8779 * cli/cli-decode.c (help_cmd_list): Declare as static,
8780 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8781 a command together with the command.
8782 (fput_command_name_styled, fput_command_names_styled): New functions.
8783 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8784 fput_command_name_styled.
8785 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8786 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8787
7aa1b46f
PW
87882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8789
8790 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8791 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8792 * command.h (cmd_show_list): Likewise.
8793 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8794 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8795
89bcba74
PW
87962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8797
8798 * unittests/command-def-selftests.c (traverse_command_structure):
8799 Verify all commands of a list have the same prefix command and
8800 that only the top cmdlist commands have a null prefix.
8801
3f4d92eb
PW
88022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8803
8804 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8805 as prefix, not one of its aliases.
8806 (set_cmd_prefix): Remove.
8807 (do_add_cmd): Centralize the setting of the prefix of a command, when
8808 command is defined after its full chain of prefix commands.
8809 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8810 (add_setshow_cmd_full): Likewise.
8811 (update_prefix_field_of_prefixed_commands): New function.
8812 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8813 update_prefix_field_of_prefixed_commands.
8814 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8815 addresses of remote_set_cmdlist and remote_show_cmdlist given
8816 as argument, not the address of an argument.
8817 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8818 * gdb/remote.c (_initialize_remote): Likewise.
8819
0605465f
PW
88202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8821
8822 * cli/cli-cmds.c (alias_command): Check for an existing alias
8823 using lookup_cmd_composition, as valid_command_p is too strict
8824 and forbids aliases that are the prefix of an existing alias
8825 or command.
8826 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8827 command is properly recognised as a valid command.
8828
58e6ac70
PW
88292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8830
8831 * unittests/help-doc-selftests.c: Rename to
8832 unittests/command-def-selftests.c
8833 * unittests/command-def-selftests.c (help_doc_tests): Update some
8834 comments.
8835 (command_structure_tests, traverse_command_structure): New namespace
8836 and function.
8837 (command_structure_invariants_tests): New function.
8838 (_initialize_command_def_selftests) Renamed from
8839 _initialize_help_doc_selftests, register command_structure_invariants
8840 selftest.
8841
a7b9ceb8
PW
88422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8843
8844 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8845 an alias of 'show'.
8846
b2188a06
JB
88472020-05-15 Joel Brobecker <brobecker@adacore.com>
8848
8849 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8850 ada_is_fixed_point_type. Update all callers.
8851 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8852 all callers.
8853 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8854 Update all callers.
8855 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8856 print_fixed_point_type. Update all callers.
8857 * ada-valprint.c (ada_value_print_num): Replace call to
8858 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8859
a51951c2
KB
88602020-05-14 Kevin Buettner <kevinb@redhat.com>
8861
8862 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8863 processors.
8864 (cpu_supports_bts): Add CV_AMD case.
8865
29d6859f
LM
88662020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8867 Simon Marchi <simon.marchi@efficios.com>
8868
8869 * infrun.c (stop_all_threads): Collect multiple wait events at
8870 each pass.
8871
78134374
SM
88722020-05-14 Simon Marchi <simon.marchi@efficios.com>
8873
8874 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8875 type::code instead.
8876
67607e24
SM
88772020-05-14 Simon Marchi <simon.marchi@efficios.com>
8878
8879 * gdbtypes.h (struct type) <code, set_code>: New methods.
8880 (TYPE_CODE): Use type::code. Change all call sites used to set
8881 the code to use type::set_code instead.
8882
a05575d3
TBA
88832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8884 Tom de Vries <tdevries@suse.de>
8885 Pedro Alves <palves@redhat.com>
8886
8887 PR threads/25478
8888 * infrun.c (stop_all_threads): Do NOT ignore
8889 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8890 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8891 received.
8892 (handle_no_resumed): Remove code handling a live inferior with no
8893 threads.
8894 * remote.c (has_single_non_exited_thread): New.
8895 (remote_target::update_thread_list): Do not delete a thread if is
8896 the last thread of the process.
8897 * thread.c (thread_select): Call delete_exited_threads instead of
8898 prune_threads.
8899
6ad82919
TBA
89002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8901
8902 * infrun.c (stop_all_threads): Enable/disable thread events of all
8903 targets. Move a debug message denoting the end of the function
8904 into the SCOPED_EXIT block.
8905
d890404b
TBA
89062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8907
8908 * process-stratum-target.h: Include <set>.
8909 (all_non_exited_process_targets, switch_to_target_no_thread): New
8910 function declarations.
8911 * process-stratum-target.c (all_non_exited_process_targets)
8912 (switch_to_target_no_thread): New function implementations.
8913
293b3ebc
TBA
89142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8915
8916 * infrun.c (handle_inferior_event): Extract out a piece of code
8917 into...
8918 (mark_non_executing_threads): ...this new function.
8919
7ca9b62a
TBA
89202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8921
8922 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8923 use.
8924
fc75c28b
TBA
89252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8926
8927 * regcache.c (regcache_read_pc_protected): New function
8928 implementation that returns 0 if the PC cannot read via
8929 'regcache_read_pc'.
8930 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8931 instead of 'regcache_read_pc'.
8932 (keep_going_pass_signal): Ditto.
8933
a89febbd
TT
89342020-05-13 Tom Tromey <tromey@adacore.com>
8935
8936 * ada-lang.c (align_value): Remove.
8937 (ada_template_to_fixed_record_type_1): Use align_up.
8938
f7e23710
TBA
89392020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8940
8941 * async-event.c: Update the copyright year.
8942 * async-event.h: Update the copyright year.
8943
02ff80c2
SM
89442020-05-12 Simon Marchi <simon.marchi@efficios.com>
8945
8946 * objfiles.h (is_addr_in_objfile,
8947 shared_objfile_contains_address_p): Return bool.
8948 * objfile.c (is_addr_in_objfile,
8949 shared_objfile_contains_address_p): Return bool.
8950
4fd6c7e8
TT
89512020-05-11 Tom Tromey <tromey@adacore.com>
8952
8953 * cli/cli-cmds.c (info_command): Restore.
8954 (_initialize_cli_cmds): Use add_prefix_command for "info".
8955 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8956
5eb68a39
TT
89572020-05-11 Tom Tromey <tromey@adacore.com>
8958
8959 * ada-lang.c (ada_value_primitive_field): Now public.
8960 * ada-lang.h (ada_value_primitive_field): Declare.
8961 * ada-valprint.c (print_field_values): Use
8962 ada_value_primitive_field for wrapper fields.
8963
7666722f
TV
89642020-05-11 Tom de Vries <tdevries@suse.de>
8965
8966 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8967 MODULE_DOMAIN.
8968
3ee6bb11
TV
89692020-05-11 Tom de Vries <tdevries@suse.de>
8970
8971 PR symtab/25941
8972 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8973 with length 0, if not gdb-produced.
8974 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8975
43434996
TV
89762020-05-09 Tom de Vries <tdevries@suse.de>
8977
8978 PR gdb/25955
8979 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8980 calculation.
8981
2f78cffc
TT
89822020-05-09 Tom Tromey <tom@tromey.com>
8983
8984 * top.c (server_command): Now bool.
8985 * top.h (server_command): Now bool.
8986
4f7bc5ed
TT
89872020-05-08 Tom Tromey <tromey@adacore.com>
8988
8989 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8990 already being processed.
8991
8be4b118
TT
89922020-05-08 Tom Tromey <tom@tromey.com>
8993
8994 * printcmd.c (struct display) <next>: Remove.
8995 <display>: New constructor.
8996 <exp_string>: Now a std::string.
8997 <enabled_p>: Now a bool.
8998 (display_number): Move definition earlier.
8999 (displays): Rename from display_chain. Now a std::vector.
9000 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9001 (display_command): Update.
9002 (do_one_display, disable_display)
9003 (enable_disable_display_command, do_enable_disable_display):
9004 Update.
9005 (free_display): Remove.
9006 (clear_displays): Rewrite.
9007 (delete_display): Update.
9008 (map_display_numbers): Use function_view. Remove "data"
9009 parameter. Update.
9010 (do_delete_display): Remove.
9011 (undisplay_command): Update.
9012 (do_one_display, do_displays, disable_display)
9013 (info_display_command): Update.
9014 (do_enable_disable_display): Remove.
9015 (enable_disable_display_command)
9016 (clear_dangling_display_expressions): Update.
9017
94c93c35
TT
90182020-05-08 Tom Tromey <tom@tromey.com>
9019
9020 * symtab.c (set_symbol_cache_size)
9021 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9022 (maintenance_print_symbol_cache_statistics): Update.
9023 * symmisc.c (print_symbol_bcache_statistics)
9024 (print_objfile_statistics, maintenance_print_objfiles)
9025 (maintenance_info_symtabs, maintenance_check_symtabs)
9026 (maintenance_expand_symtabs, maintenance_info_line_tables):
9027 Update.
9028 * symfile-debug.c (set_debug_symfile): Update.
9029 * source.c (forget_cached_source_info): Update.
9030 * python/python.c (gdbpy_progspaces): Update.
9031 * psymtab.c (maintenance_info_psymtabs): Update.
9032 * probe.c (parse_probes): Update.
9033 * linespec.c (iterate_over_all_matching_symtabs)
9034 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9035 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9036 * exec.c (exec_target::close): Update.
9037 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9038 * breakpoint.c (print_one_breakpoint_location)
9039 (create_longjmp_master_breakpoint)
9040 (create_std_terminate_master_breakpoint): Update.
9041 * progspace.c (program_spaces): Now a std::vector.
9042 (maybe_new_address_space): Update.
9043 (add_program_space): Remove.
9044 (program_space::program_space): Update.
9045 (remove_program_space): Update.
9046 (number_of_program_spaces): Remove.
9047 (print_program_space, update_address_spaces): Update.
9048 * progspace.h (program_spaces): Change type.
9049 (ALL_PSPACES): Remove.
9050 (number_of_program_spaces): Don't declare.
9051 (struct program_space) <next>: Remove.
9052
a1fd1ac9
TT
90532020-05-08 Tom Tromey <tom@tromey.com>
9054
9055 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9056 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9057 (enable_break): Update.
9058 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9059 (frv_fdpic_find_canonical_descriptor): Update.
9060 (frv_fetch_objfile_link_map): Update.
9061 * progspace.c (program_space::free_all_objfiles): Update.
9062 (program_space::solibs): New method.
9063 * progspace.h (struct program_space) <solibs>: New method.
9064 * solist.h (master_so_list): Don't declare.
9065 (ALL_SO_LIBS): Remove.
9066 * solib.h (so_list_head): Remove.
9067 (update_solib_list): Update comment.
9068 * solib.c (master_so_list): Remove.
9069 (solib_used, update_solib_list, solib_add)
9070 (info_sharedlibrary_command, clear_solib)
9071 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9072
38eae084
TT
90732020-05-08 Tom Tromey <tom@tromey.com>
9074
9075 * extension.c (extension_languages): Now a std::array.
9076 (ALL_EXTENSION_LANGUAGES): Remove.
9077 (get_ext_lang_defn, get_ext_lang_of_file)
9078 (eval_ext_lang_from_control_command): Update.
9079 (finish_ext_lang_initialization)
9080 (auto_load_ext_lang_scripts_for_objfile)
9081 (ext_lang_type_printers::ext_lang_type_printers)
9082 (apply_ext_lang_type_printers)
9083 (ext_lang_type_printers::~ext_lang_type_printers)
9084 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9085 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9086 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9087 (get_matching_xmethod_workers, ext_lang_colorize)
9088 (ext_lang_before_prompt): Update.
9089 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9090
596dc4ad
TT
90912020-05-08 Tom Tromey <tom@tromey.com>
9092
9093 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9094 overload.
9095 <swap_string, m_string>: Remove.
9096 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9097 Update.
9098 * stabsread.c (define_symbol, read_type): Update.
9099 * linespec.c (find_linespec_symbols): Update.
9100 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9101 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9102 * dbxread.c (read_dbx_symtab): Update.
9103 * cp-support.h (cp_canonicalize_string_full)
9104 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9105 Return unique_xmalloc_ptr.
9106 * cp-support.c (inspect_type): Update.
9107 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9108 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9109 Likewise.
9110 * c-typeprint.c (print_name_maybe_canonical): Update.
9111 * break-catch-throw.c (check_status_exception_catchpoint):
9112 Update.
9113
bf4cb9be
TV
91142020-05-08 Tom de Vries <tdevries@suse.de>
9115
9116 * infrun.c (follow_fork): Copy current_line and current_symtab to
9117 child thread.
9118
a1b68f28
SM
91192020-05-07 Simon Marchi <simon.marchi@efficios.com>
9120
9121 * async-event.c (struct async_signal_handler, struct
9122 async_event_handler): Reformat, remove typedef.
9123
98d48915
SM
91242020-05-07 Simon Marchi <simon.marchi@efficios.com>
9125
9126 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9127 access thistype->main_type->dyn_prop_list directly.
9128
7aa91313
SM
91292020-05-07 Simon Marchi <simon.marchi@efficios.com>
9130
9131 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9132 (remove_dyn_prop): Remove. Update all users to use
9133 type::remove_dyn_prop.
9134 * gdbtypes.c (remove_dyn_prop): Rename to...
9135 (type::remove_dyn_prop): ... this.
9136
5c54719c
SM
91372020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9138
9139 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9140 (add_dyn_prop): Remove. Update all users to use
9141 type::add_dyn_prop.
9142 * gdbtypes.c (add_dyn_prop): Rename to...
9143 (type::add_dyn_prop): ... this.
9144
24e99c6c
SM
91452020-05-07 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9148 (get_dyn_prop): Remove. Update all users to use
9149 type::dyn_prop.
9150 * gdbtypes.c (get_dyn_prop): Rename to...
9151 (type::dyn_prop): ... this.
9152
0d4bf016
SM
91532020-05-06 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9156
ac4a4f1c
SM
91572020-05-06 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9160 instruction, skip it if it's there.
9161
a3bbacc1
SM
91622020-05-05 Simon Marchi <simon.marchi@efficios.com>
9163
9164 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9165
c3236f84
SM
91662020-05-04 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9169 * gdbtypes.c (recursive_dump_type): Remove use of
9170 TYPE_INCOMPLETE.
9171
3b6acaee
TT
91722020-05-03 Tom Tromey <tom@tromey.com>
9173
9174 * breakpoint.c (catch_command, tcatch_command): Remove.
9175 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9176 add_show_prefix_cmd.
9177 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9178 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9179 Remove.
9180 (add_internal_problem_command): Use add_basic_prefix_cmd,
9181 add_show_prefix_cmd.
9182 * mips-tdep.c (set_mipsfpu_command): Remove.
9183 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9184 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9185 (_initialize_index_cache): Use add_basic_prefix_cmd.
9186 * memattr.c (dummy_cmd): Remove.
9187 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9188 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9189 (_initialize_tui_win): Use add_basic_prefix_cmd,
9190 add_show_prefix_cmd.
9191 * cli/cli-logging.c (set_logging_command): Remove.
9192 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9193 add_show_prefix_cmd.
9194 (show_logging_command): Remove.
9195 * target.c (target_command): Remove.
9196 (add_target): Use add_basic_prefix_cmd.
9197
a51119cd
HD
91982020-05-02 Hannes Domani <ssbssa@yahoo.de>
9199
9200 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9201
652fc23a 92022020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9203
652fc23a
PW
9204 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9205 info_command.
9206
117539e6
KR
92072020-04-30 Kamil Rytarowski <n54@gmx.com>
9208
9209 * nbsd-nat.c (nbsd_enable_proc_events)
9210 (nbsd_nat_target::post_startup_inferior): Add.
9211 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9212 (nbsd_nat_target::update_thread_list): Rewrite.
9213 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9214 "PTRACE_LWP_CREATE".
9215 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9216
102e38eb 92172020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9218
102e38eb
PW
9219 * stack.c (_initialize_stack): Remove duplicated creation
9220 of "frame" command and "f" alias.
9221
ee9d1e5f
HD
92222020-04-30 Hannes Domani <ssbssa@yahoo.de>
9223
9224 PR gdb/18706
9225 * gdbtypes.c (check_typedef): Calculate size of array of
9226 stubbed type.
9227
627c7fb8
HD
92282020-04-30 Hannes Domani <ssbssa@yahoo.de>
9229
9230 PR gdb/15559
9231 * i386-tdep.c (i386_push_dummy_call): Call
9232 i386_thiscall_push_dummy_call.
9233 (i386_thiscall_push_dummy_call): New function.
9234 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9235 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9236 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9237
ffc2844e
SM
92382020-04-29 Simon Marchi <simon.marchi@efficios.com>
9239
9240 * gdbarch.sh (do_read): Add shellcheck disable directive for
9241 warning SC2162.
9242
1207375d
SM
92432020-04-29 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9246 "referenced but not assigned" warning.
9247
9fdb2916
SM
92482020-04-29 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * gdbarch.sh: Remove code that sets fallbackdefault.
9251
759cea5e
SM
92522020-04-29 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * gdbarch.sh: Use shell operators && and || instead of
9255 -a and -o.
9256
cb02ab24
SM
92572020-04-29 Simon Marchi <simon.marchi@efficios.com>
9258
9259 * gdbarch.sh: Use $(...) instead of `...`.
9260
a6fc5ffc
SM
92612020-04-29 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * gdbarch.sh: Use double quotes around variables.
9264
8d113d13
SM
92652020-04-29 Simon Marchi <simon.marchi@efficios.com>
9266
9267 * gdbarch.sh: Use %s with printf, instead of variables in the
9268 format string.
9269
ed6acedd
TT
92702020-04-29 Tom Tromey <tromey@adacore.com>
9271
9272 PR ada/25875:
9273 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9274 type fields here.
9275 (read_enumeration_type): Call
9276 update_enumeration_type_from_children later. Update comments.
9277 (process_enumeration_scope): Don't create type fields.
9278
b68b1b58
KR
92792020-04-29 Kamil Rytarowski <n54@gmx.com>
9280
9281 * nbsd-tdep.c: Include "xml-syscall.h".
9282 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9283
f94b2e03
KR
92842020-04-29 Kamil Rytarowski <n54@gmx.com>
9285
9286 * nbsd-nat.c: Include "sys/wait.h".
9287 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9288 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9289 (nbsd_nat_target::remove_exec_catchpoint)
9290 (nbsd_nat_target::set_syscall_catchpoint): Add.
9291 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9292 (nbsd_nat_target::insert_exec_catchpoint)
9293 (nbsd_nat_target::remove_exec_catchpoint)
9294 (nbsd_nat_target::set_syscall_catchpoint): Add.
9295 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9296 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9297 `nbsd_get_syscall_number'.
9298
fc49bc72
TT
92992020-04-29 Tom Tromey <tom@tromey.com>
9300
9301 * stack.c (print_block_frame_labels): Remove.
9302
d642b692
HD
93032020-04-29 Hannes Domani <ssbssa@yahoo.de>
9304
9305 PR gdb/17320
9306 * ada-valprint.c (val_print_packed_array_elements): Move array
9307 end bracket to new line.
9308 (ada_val_print_string): Remove extra spaces before first array
9309 element.
9310 * c-valprint.c (c_value_print_array): Likewise.
9311 * m2-valprint.c (m2_print_array_contents): Likewise.
9312 (m2_value_print_inner): Likewise.
9313 * p-valprint.c (pascal_value_print_inner): Likewise.
9314 * valprint.c (generic_val_print_array): Likewise.
9315 (value_print_array_elements): Move first array element and array
9316 end bracket to new line.
9317
ea90f227
TV
93182020-04-29 Tom de Vries <tdevries@suse.de>
9319
9320 PR symtab/25889
9321 * linespec.c (find_method): Fix ix calculation.
9322
4498ef4f
KR
93232020-04-28 Kamil Rytarowski <n54@gmx.com>
9324
9325 * syscalls/update-netbsd.sh: New file.
9326 * syscalls/netbsd.xml: Regenerate.
9327 * data-directory/Makefile.in: Register `netbsd.xml' in
9328 `SYSCALLS_FILES'.
9329
a55e30b5
SM
93302020-04-28 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * syscalls/update-freebsd.sh: Add double quotes.
9333
2b2fbab8
TT
93342020-04-28 Tom Tromey <tom@tromey.com>
9335
9336 * NEWS: Update.
9337 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9338 (cmdpy_init): Allow class_tui.
9339
a65189c9
TV
93402020-04-28 Mark Williams <mark@myosotissp.com>
9341
9342 PR gdb/24480
9343 * dwarf2read.c: Add missing assingments to list_in_scope when
9344 start_symtab was already called.
9345
1b95cdb7
SM
93462020-04-28 Simon Marchi <simon.marchi@efficios.com>
9347
9348 PR gdb/25881
9349 * dwarf2/read.c (offset_map_type): Use
9350 gdb:hash_enum<sect_offset> as hash function.
9351
15cd93d0
TV
93522020-04-28 Tom de Vries <tdevries@suse.de>
9353
9354 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9355 with DW_AT_signature.
9356
1eb39914
SM
93572020-04-27 Simon Marchi <simon.marchi@efficios.com>
9358
9359 * configure.ac: Remove check for fs_base/gs_base in
9360 user_regs_struct.
9361 * configure: Re-generate.
9362 * config.in: Re-generate.
9363 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9364 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9365 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9366
991a3e2e
LM
93672020-04-27 Luis Machado <luis.machado@linaro.org>
9368
9369 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9370 problematic inline frame unwinding situation.
9371 * frame.c (frame_id_computed_p): New function.
9372 * frame.h (frame_id_computed_p): New prototype.
9373
361ba0e8
TT
93742020-04-26 Tom Tromey <tom@tromey.com>
9375
9376 * command.h (enum command_class) <class_pseudo>: Remove.
9377
bc3609fd
PW
93782020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9379
9380 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9381 and whitespace.
9382
b9771db7
KR
93832020-04-25 Kamil Rytarowski <n54@gmx.com>
9384
ec16513e
SM
9385 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9386 `PT_GET_PROCESS_STATE' block.
b9771db7 9387
7151c1af
TT
93882020-04-24 Tom Tromey <tom@tromey.com>
9389
9390 * symtab.h (symbol_get_demangled_name): Don't declare.
9391 * symtab.c (symbol_get_demangled_name): Remove.
9392 (general_symbol_info::natural_name)
9393 (general_symbol_info::demangled_name): Update.
9394
906bb4c5
TT
93952020-04-24 Tom Tromey <tom@tromey.com>
9396
9397 PR rust/25025:
9398 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9399
bcfe6157
TT
94002020-04-24 Tom Tromey <tom@tromey.com>
9401
9402 PR symtab/12707:
9403 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9404 exists.
9405 (new_symbol): Likewise.
9406 * compile/compile-object-load.c (get_out_value_type): Use
9407 symbol_matches_search_name.
9408
f049a313
TT
94092020-04-24 Tom Tromey <tom@tromey.com>
9410
9411 * dwarf2/read.c (add_partial_symbol): Do not call
9412 compute_and_set_names.
9413
76e288d1
TT
94142020-04-24 Tom Tromey <tom@tromey.com>
9415
9416 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9417 overload.
9418
2467f4f6
TT
94192020-04-24 Tom Tromey <tom@tromey.com>
9420
9421 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9422 (add_psymbol_to_list): New overload. Make old overload call new
9423 one.
9424 * psympriv.h (add_psymbol_to_list): New overload.
9425
e61108c9
TT
94262020-04-24 Tom Tromey <tom@tromey.com>
9427
9428 * dwarf2/read.c (partial_die_info::read) <case
9429 DW_AT_linkage_name>: Use value_as_string.
9430 (dwarf2_string_attr): Use value_as_string.
9431 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9432 method.
9433 * dwarf2/attribute.c (attribute::value_as_string): New method.
9434
8c87a452
TT
94352020-04-24 Tom Tromey <tom@tromey.com>
9436
9437 * symtab.c (general_symbol_info::natural_name)
9438 (general_symbol_info::demangled_name): Check for language_rust.
9439
787de330
TT
94402020-04-24 Tom Tromey <tom@tromey.com>
9441
9442 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9443 (dwarf2_physname): ... from here.
9444 (partial_die_info::read): Add Rust "{" hack.
9445
ff985671
TT
94462020-04-24 Tom Tromey <tom@tromey.com>
9447
9448 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9449 method.
9450 (symbol_set_demangled_name): Don't declare.
9451 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9452 symbol_set_demangled_name.
9453 (general_symbol_info::set_language)
9454 (general_symbol_info::compute_and_set_names): Update.
9455 * minsyms.c (minimal_symbol_reader::install): Update.
9456 * dwarf2/read.c (new_symbol): Update.
9457
1acda803
TT
94582020-04-24 Tom Tromey <tromey@adacore.com>
9459
9460 PR python/23662:
9461 * python/py-type.c (convert_field): Handle
9462 FIELD_LOC_KIND_DWARF_BLOCK.
9463 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9464 (typy_get_dynamic): Nw function.
9465 (type_object_getset): Add "dynamic".
9466 * NEWS: Add entry.
9467
d656f129
TT
94682020-04-24 Tom Tromey <tromey@adacore.com>
9469
9470 * ada-typeprint.c (print_choices, print_variant_part)
9471 (print_record_field_types_dynamic): New functions.
9472 (print_record_field_types): Use print_record_field_types_dynamic.
9473
7d79de9a
TT
94742020-04-24 Tom Tromey <tromey@adacore.com>
9475
9476 * dwarf2/read.c (handle_data_member_location): New overload.
9477 (dwarf2_add_field): Use it.
9478 (decode_locdesc): Add "computed" parameter. Update comment.
9479 * gdbtypes.c (is_dynamic_type_internal): Also look for
9480 FIELD_LOC_KIND_DWARF_BLOCK.
9481 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9482 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9483 virtual base classes.
9484 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9485 FIELD_LOC_KIND_DWARF_BLOCK.
9486
f8e89861
TT
94872020-04-24 Tom Tromey <tromey@adacore.com>
9488
9489 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9490 * gdbtypes.c (is_dynamic_type_internal): Check
9491 TYPE_HAS_DYNAMIC_LENGTH.
9492 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9493 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9494 New macros.
9495 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9496 constant.
9497
9c6a1327
TT
94982020-04-24 Tom Tromey <tromey@adacore.com>
9499
9500 * dwarf2/read.c (struct variant_field): Rewrite.
9501 (struct variant_part_builder): New.
9502 (struct nextfield): Remove "variant" field. Add "offset".
9503 (struct field_info): Add "current_variant_part" and
9504 "variant_parts".
9505 (alloc_discriminant_info): Remove.
9506 (alloc_rust_variant): New function.
9507 (quirk_rust_enum): Update.
9508 (dwarf2_add_field): Set "offset" member. Don't handle
9509 DW_TAG_variant_part.
9510 (offset_map_type): New typedef.
9511 (convert_variant_range, create_one_variant)
9512 (create_one_variant_part, create_variant_parts)
9513 (add_variant_property): New functions.
9514 (dwarf2_attach_fields_to_type): Call add_variant_property.
9515 (read_structure_type): Don't handle DW_TAG_variant_part.
9516 (handle_variant_part, handle_variant): New functions.
9517 (handle_struct_member_die): Use them.
9518 (process_structure_scope): Don't handle variant parts.
9519 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9520 (struct discriminant_info): Remove.
9521 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9522 (struct main_type) <flag_discriminated_union>: Remove.
9523 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9524 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9525 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9526 Update.
9527 * valops.c (value_union_variant): Remove.
9528 * value.h (value_union_variant): Don't declare.
9529
b249d2c2
TT
95302020-04-24 Tom Tromey <tromey@adacore.com>
9531
9532 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9533 (ada_value_primitive_packed_val): Update.
9534 * ada-valprint.c (ada_value_print_1): Update.
9535 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9536 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9537 just an address. Use evaluate_for_locexpr_baton.
9538 (dwarf2_evaluate_property): Update.
9539 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9540 array_view.
9541 * findvar.c (default_read_var_value): Update.
9542 * gdbtypes.c (compute_variant_fields_inner)
9543 (resolve_dynamic_type_internal): Update.
9544 (resolve_dynamic_type): Change type of valaddr parameter.
9545 * gdbtypes.h (resolve_dynamic_type): Update.
9546 * valarith.c (value_subscripted_rvalue): Update.
9547 * value.c (value_from_contents_and_address): Update.
9548
61122aa9
TT
95492020-04-24 Tom Tromey <tromey@adacore.com>
9550
9551 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9552 "push_initial_value" parameter.
9553 (dwarf2_evaluate_property): Likewise.
9554 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9555
ef83a141
TT
95562020-04-24 Tom Tromey <tromey@adacore.com>
9557
9558 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9559 (variant::matches, compute_variant_fields_recurse)
9560 (compute_variant_fields_inner, compute_variant_fields): New
9561 functions.
9562 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9563 Use resolved_type after type is made.
9564 (operator==): Add new cases.
9565 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9566 (struct discriminant_range, struct variant, struct variant_part):
9567 New.
9568 (union dynamic_prop_data) <variant_parts, original_type>: New
9569 members.
9570 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9571 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9572 constants.
9573 * value.c (unpack_bits_as_long): Now public.
9574 * value.h (unpack_bits_as_long): Declare.
9575
675127ec
TT
95762020-04-24 Tom Tromey <tromey@adacore.com>
9577
9578 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9579 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9580
9852ceef
HD
95812020-04-24 Hannes Domani <ssbssa@yahoo.de>
9582
9583 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9584
7632c6ce
KR
95852020-04-24 Kamil Rytarowski <n54@gmx.com>
9586
9587 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9588 (remove_fork_catchpoint, post_startup_inferior)
9589 (post_attach): Move...
9590 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9591 (remove_fork_catchpoint, post_startup_inferior)
9592 (post_attach): ...here.
9593 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9594 (remove_fork_catchpoint, post_startup_inferior)
9595 (post_attach): Move...
9596 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9597 (remove_fork_catchpoint, post_startup_inferior)
9598 (post_attach): ...here.
9599
7be2bb4f
TT
96002020-04-24 Tom Tromey <tromey@adacore.com>
9601
9602 * nat/windows-nat.h (struct windows_thread_info)
9603 <pc_adjusted>: New member.
9604 * windows-nat.c (windows_fetch_one_register): Check
9605 pc_adjusted.
9606 (windows_nat_target::get_windows_debug_event)
9607 (windows_nat_target::wait): Set pc_adjusted.
9608
f80cb3b4
TV
96092020-04-24 Tom de Vries <tdevries@suse.de>
9610
9611 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9612 Run gdb-add-index inside temp dir.
9613
29514b87
TT
96142020-04-23 Tom Tromey <tromey@adacore.com>
9615
9616 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9617 in loop.
9618
5939967b
LM
96192020-04-23 Luis Machado <luis.machado@linaro.org>
9620
9621 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9622 get_frame_register instead of gdbarch_unwind_pc.
9623
70bc38f5
TV
96242020-04-23 Tom de Vries <tdevries@suse.de>
9625
9626 * symtab.c (lookup_global_symbol): Prefer def over decl.
9627
de82891c
TV
96282020-04-23 Tom de Vries <tdevries@suse.de>
9629
9630 PR symtab/25807
9631 * block.c (best_symbol, better_symbol): Promote to external.
9632 * block.h (best_symbol, better_symbol): Declare.
9633 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9634 decl.
9635
ecc6c606
TT
96362020-04-23 Tom Tromey <tromey@adacore.com>
9637
9638 PR ada/25837:
9639 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9640 "const char *", not a "const std::string &".
9641 <name_and_matcher::operator==>: Update.
9642 * unittests/lookup_name_info-selftests.c: Change type of
9643 "result".
9644
740480b8
TT
96452020-04-23 Tom Tromey <tom@tromey.com>
9646
9647 * inferior.h (iterate_over_inferiors): Don't declare.
9648 * inferior.c (iterate_over_inferiors): Remove.
9649 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9650 Remove.
9651 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9652 use iterate_over_inferiors.
9653 (darwin_resume_inferior_it)
9654 (struct resume_inferior_threads_param)
9655 (darwin_resume_inferior_threads_it): Remove.
9656 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9657
ae3ab1f0
TV
96582020-04-23 Tom de Vries <tdevries@suse.de>
9659
9660 * blockframe.c (find_pc_partial_function): Use
9661 find_pc_sect_compunit_symtab rather than
9662 objfile->sf->qf->find_pc_sect_compunit_symtab.
9663
317d2668
TV
96642020-04-22 Tom de Vries <tdevries@suse.de>
9665
9666 PR symtab/25764
9667 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9668 in psymtabs.
9669
eea9e357
TV
96702020-04-22 Tom de Vries <tdevries@suse.de>
9671
9672 PR symtab/25801
9673 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9674 symtabs.
9675
3d5afab3
TV
96762020-04-22 Tom de Vries <tdevries@suse.de>
9677
9678 PR symtab/25700
9679 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9680 CU if already created.
9681
d43b7a2d
TBA
96822020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9683
9684 * infrun.c (displaced_step_fixup): Switch to the event_thread
9685 before calling displaced_step_restore, not after.
9686
d89edf9b
MM
96872020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9688
9689 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9690 its inferior is not recorded by us.
9691 (record_btrace_target_open): Replace call to
9692 all_non_exited_threads () with call to current_inferior
9693 ()->non_exited_threads ().
9694 (record_btrace_target::stop_recording): Likewise.
9695 (record_btrace_target::close): Likewise.
9696 (record_btrace_target::wait): Likewise.
9697 (record_btrace_target::record_stop_replaying): Likewise.
9698
5897fd49
MM
96992020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9700
9701 * btrace.c (btrace_enable): Throw an error on double enables and
9702 when enabling recording fails.
9703 (btrace_disable): Throw an error if the thread is not recorded.
9704
1a476b6d
MM
97052020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9706
9707 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9708 request if we do not have a thread_info.
9709
4778a5f8
TV
97102020-04-21 Tom de Vries <tdevries@suse.de>
9711
9712 PR gdb/25471
9713 * thread.c
9714 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9715 exception in get_frame_id.
9716
0fa7617d
TT
97172020-04-20 Tom Tromey <tromey@adacore.com>
9718
9719 * python/python.c (struct gdbpy_event): Mark move constructor as
9720 noexcept.
9721 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9722 constructor as noexcept.
9723 * completer.h (struct completion_result): Mark move constructor as
9724 noexcept.
9725 * completer.c (completion_result::completion_result): Use
9726 initialization style. Don't call reset_match_list.
9727
ad23bda0
MS
97282020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9729
9730 * MAINTAINERS (Write After Approval): Add myself.
9731
45e1f031
TT
97322020-04-18 Tom Tromey <tom@tromey.com>
9733
9734 * windows-tdep.c (init_w32_command_list)
9735 (w32_prefix_command_valid): Restore.
9736 (_initialize_windows_tdep): Call init_w32_command_list.
9737
08feed99
TT
97382020-04-18 Tom Tromey <tom@tromey.com>
9739
9740 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9741 * value.c (value_fn_field): Update.
9742 * valops.c (find_function_in_inferior)
9743 (value_allocate_space_in_inferior): Update.
9744 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9745 Update.
9746 * tui/tui-source.c (tui_source_window::set_contents): Update.
9747 * symtab.c (lookup_global_or_static_symbol)
9748 (find_function_start_sal_1, skip_prologue_sal)
9749 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9750 * symmisc.c (dump_msymbols, dump_symtab_1)
9751 (maintenance_print_one_line_table): Update.
9752 * symfile.c (init_entry_point_info, section_is_mapped)
9753 (list_overlays_command, simple_read_overlay_table)
9754 (simple_overlay_update_1): Update.
9755 * stap-probe.c (handle_stap_probe): Update.
9756 * stabsread.c (dbx_init_float_type, define_symbol)
9757 (read_one_struct_field, read_enum_type, read_range_type): Update.
9758 * source.c (info_line_command): Update.
9759 * python/python.c (gdbpy_source_objfile_script)
9760 (gdbpy_execute_objfile_script): Update.
9761 * python/py-type.c (save_objfile_types): Update.
9762 * python/py-objfile.c (py_free_objfile): Update.
9763 * python/py-inferior.c (python_new_objfile): Update.
9764 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9765 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9766 (maintenance_check_psymtabs): Update.
9767 * printcmd.c (info_address_command): Update.
9768 * objfiles.h (struct objfile) <arch>: New method, from
9769 get_objfile_arch.
9770 (get_objfile_arch): Don't declare.
9771 * objfiles.c (get_objfile_arch): Remove.
9772 (filter_overlapping_sections): Update.
9773 * minsyms.c (msymbol_is_function): Update.
9774 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9775 (output_nondebug_symbol): Update.
9776 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9777 (mdebug_expand_psymtab): Update.
9778 * machoread.c (macho_add_oso_symfile): Update.
9779 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9780 Update.
9781 * linux-fork.c (checkpoint_command): Update.
9782 * linespec.c (convert_linespec_to_sals): Update.
9783 * jit.c (finalize_symtab): Update.
9784 * infrun.c (insert_exception_resume_from_probe): Update.
9785 * ia64-tdep.c (ia64_find_unwind_table): Update.
9786 * hppa-tdep.c (internalize_unwinds): Update.
9787 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9788 Update.
9789 * gcore.c (call_target_sbrk): Update.
9790 * elfread.c (record_minimal_symbol, elf_symtab_read)
9791 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9792 (elf_gnu_ifunc_resolve_by_got): Update.
9793 * dwarf2/read.c (create_addrmap_from_index)
9794 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9795 (read_debug_names_from_section)
9796 (process_psymtab_comp_unit_reader, add_partial_symbol)
9797 (add_partial_subprogram, process_full_comp_unit)
9798 (read_file_scope, read_func_scope, read_lexical_block_scope)
9799 (read_call_site_scope, dwarf2_ranges_read)
9800 (dwarf2_record_block_ranges, dwarf2_add_field)
9801 (mark_common_block_symbol_computed, read_tag_pointer_type)
9802 (read_tag_string_type, dwarf2_init_float_type)
9803 (dwarf2_init_complex_target_type, read_base_type)
9804 (partial_die_info::read, partial_die_info::read)
9805 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9806 (dwarf2_fetch_die_loc_sect_off): Update.
9807 * dwarf2/loc.c (dwarf2_find_location_expression)
9808 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9809 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9810 (dwarf2_loc_desc_get_symbol_read_needs)
9811 (locexpr_describe_location_piece, locexpr_describe_location_1)
9812 (loclist_describe_location): Update.
9813 * dwarf2/index-write.c (write_debug_names): Update.
9814 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9815 * dtrace-probe.c (dtrace_process_dof): Update.
9816 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9817 (process_one_symbol): Update.
9818 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9819 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9820 (coff_read_enum_type): Update.
9821 * cli/cli-cmds.c (edit_command, list_command): Update.
9822 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9823 * breakpoint.c (create_overlay_event_breakpoint)
9824 (create_longjmp_master_breakpoint)
9825 (create_std_terminate_master_breakpoint)
9826 (create_exception_master_breakpoint, get_sal_arch): Update.
9827 * block.c (block_gdbarch): Update.
9828 * annotate.c (annotate_source_line): Update.
9829
0743fc83
TT
98302020-04-17 Tom Tromey <tromey@adacore.com>
9831
9832 * auto-load.c (show_auto_load_cmd): Remove.
9833 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9834 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9835 (maintenance_print_arc_command): Remove.
9836 * tui/tui-win.c (tui_command): Remove.
9837 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9838 * tui/tui-layout.c (tui_layout_command): Remove.
9839 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9840 * python/python.c (user_set_python, user_show_python): Remove.
9841 (_initialize_python): Use add_basic_prefix_cmd,
9842 add_show_prefix_cmd.
9843 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9844 (install_gdb_commands): Use add_basic_prefix_cmd,
9845 add_show_prefix_cmd.
9846 (info_guile_command): Remove.
9847 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9848 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9849 add_show_prefix_cmd.
9850 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9851 Remove do_set and do_show parameters.
9852 * cli/cli-style.c (set_style, show_style): Remove.
9853 (_initialize_cli_style): Use add_basic_prefix_cmd,
9854 add_show_prefix_cmd.
9855 (cli_style_option::add_setshow_commands): Remove do_set and
9856 do_show parameters.
9857 (cli_style_option::add_setshow_commands): Use
9858 add_basic_prefix_cmd, add_show_prefix_cmd.
9859 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9860 (set_style_name): Remove.
9861 * cli/cli-dump.c (dump_command, append_command): Remove.
9862 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9863 (tekhex_dump_command, binary_dump_command)
9864 (binary_append_command): Remove.
9865 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9866 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9867 (init_w32_command_list): Remove; move into ...
9868 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9869 * valprint.c (set_print, show_print, set_print_raw)
9870 (show_print_raw): Remove.
9871 (_initialize_valprint): Use add_basic_prefix_cmd,
9872 add_show_prefix_cmd.
9873 * typeprint.c (set_print_type, show_print_type): Remove.
9874 (_initialize_typeprint): Use add_basic_prefix_cmd,
9875 add_show_prefix_cmd.
9876 * record.c (set_record_command, show_record_command): Remove.
9877 (_initialize_record): Use add_basic_prefix_cmd,
9878 add_show_prefix_cmd.
9879 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9880 add_show_prefix_cmd.
9881 (info_command, show_command, set_debug, show_debug): Remove.
9882 * top.h (set_history, show_history): Don't declare.
9883 * top.c (set_history, show_history): Remove.
9884 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9885 (unset_tdesc_cmd): Remove.
9886 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9887 add_show_prefix_cmd.
9888 * symtab.c (info_module_command): Remove.
9889 (_initialize_symtab): Use add_basic_prefix_cmd.
9890 * symfile.c (overlay_command): Remove.
9891 (_initialize_symfile): Use add_basic_prefix_cmd.
9892 * sparc64-tdep.c (info_adi_command): Remove.
9893 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9894 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9895 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9896 add_show_prefix_cmd.
9897 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9898 (_initialize_serial): Use add_basic_prefix_cmd,
9899 add_show_prefix_cmd.
9900 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9901 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9902 add_show_prefix_cmd.
9903 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9904 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9905 add_show_prefix_cmd.
9906 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9907 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9908 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9909 add_show_prefix_cmd.
9910 * remote.c (remote_command, set_remote_cmd): Remove.
9911 (_initialize_remote): Use add_basic_prefix_cmd.
9912 * record-full.c (set_record_full_command)
9913 (show_record_full_command): Remove.
9914 (_initialize_record_full): Use add_basic_prefix_cmd,
9915 add_show_prefix_cmd.
9916 * record-btrace.c (cmd_set_record_btrace)
9917 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9918 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9919 (cmd_show_record_btrace_pt): Remove.
9920 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9921 add_show_prefix_cmd.
9922 * ravenscar-thread.c (set_ravenscar_command)
9923 (show_ravenscar_command): Remove.
9924 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9925 add_show_prefix_cmd.
9926 * mips-tdep.c (show_mips_command, set_mips_command)
9927 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9928 add_show_prefix_cmd.
9929 * maint.c (maintenance_command, maintenance_info_command)
9930 (maintenance_check_command, maintenance_print_command)
9931 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9932 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9933 add_show_prefix_cmd.
9934 (show_per_command_cmd): Remove.
9935 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9936 Remove.
9937 (maintenance_show_test_settings_cmd): Remove.
9938 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9939 add_show_prefix_cmd.
9940 * maint-test-options.c (maintenance_test_options_command):
9941 Remove.
9942 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9943 * macrocmd.c (macro_command): Remove
9944 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9945 * language.c (set_check, show_check): Remove.
9946 (_initialize_language): Use add_basic_prefix_cmd,
9947 add_show_prefix_cmd.
9948 * infcmd.c (unset_command): Remove.
9949 (_initialize_infcmd): Use add_basic_prefix_cmd.
9950 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9951 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9952 add_show_prefix_cmd.
9953 * go32-nat.c (go32_info_dos_command): Remove.
9954 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9955 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9956 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9957 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9958 (_initialize_frame): Use add_basic_prefix_cmd,
9959 add_show_prefix_cmd.
9960 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9961 (_initialize_dcache): Use add_basic_prefix_cmd,
9962 add_show_prefix_cmd.
9963 * cp-support.c (maint_cplus_command): Remove.
9964 (_initialize_cp_support): Use add_basic_prefix_cmd.
9965 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9966 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9967 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9968 add_basic_prefix_cmd, add_show_prefix_cmd.
9969 * breakpoint.c (save_command): Remove.
9970 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9971 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9972 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9973 add_show_prefix_cmd.
9974 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9975 (set_ada_command, show_ada_command): Remove.
9976 (_initialize_ada_language): Use add_basic_prefix_cmd,
9977 add_show_prefix_cmd.
9978 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9979
3557f442
KR
99802020-04-16 Kamil Rytarowski <n54@gmx.com>
9981
9982 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9983 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9984
16197208
SM
99852020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9986
9987 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9988 warning messages.
9989
00ac85d3
SM
99902020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9991
9992 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9993 import table is not at beginning of .idata section.
9994
381ce63f
PA
99952020-04-16 Pedro Alves <palves@redhat.com>
9996
9997 * inferior.c (delete_inferior): Use delete operator directly
9998 instead of delete_program_space.
9999 * progspace.c (add_program_space): New, factored out from
10000 program_space::program_space.
10001 (remove_program_space): New, factored out from
10002 delete_program_space.
10003 (program_space::program_space): Remove intro comment. Rewrite.
10004 (program_space::~program_space): Remove intro comment. Call
10005 remove_program_space.
10006 (delete_program_space): Delete.
10007 * progspace.h (program_space::program_space): Make explicit. Move
10008 intro comment here, adjusted.
10009 (program_space::~program_space): Move intro comment here,
10010 adjusted.
10011 (delete_program_space): Remove.
10012
a010605f
TT
100132020-04-16 Tom Tromey <tromey@adacore.com>
10014
10015 * windows-nat.c (windows_nat::handle_access_violation): New
10016 function.
10017 * nat/windows-nat.h (handle_access_violation): Declare.
10018 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10019 windows-nat.c. Call handle_access_violation.
10020
efba5c23
TV
100212020-04-16 Tom de Vries <tdevries@suse.de>
10022
10023 PR symtab/25791
10024 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10025 CUs without psymtab.
10026
97ed802d
KB
100272020-04-16 Kevin Buettner <kevinb@redhat.com>
10028
10029 * python/python.c (do_start_initialization): Don't call
10030 PyEval_InitThreads for Python 3.9 and beyond.
10031
c7d64809
KR
100322020-04-15 Kamil Rytarowski <n54@gmx.com>
10033
10034 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10035 thread functions.
10036 (obsd_nat_target::wait): Likewise.
10037
ce127a96
TT
100382020-04-15 Tom Tromey <tromey@adacore.com>
10039
10040 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10041 (DEBUG_EXCEPT): Use debug_printf.
10042
99f1bc6a
AB
100432020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10044
10045 * completer.c (class completion_tracker::completion_hash_entry)
10046 <hash_name>: New member function.
10047 (completion_tracker::discard_completions): New callback to hash a
10048 completion_hash_entry, pass this to htab_create_alloc.
10049
a0e9b532
JT
100502016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10051
10052 * windows-nat.c (windows_make_so): Warn rather than stopping with
10053 an error if realpath() fails.
10054
06ca5dd4
KR
100552020-04-14 Kamil Rytarowski <n54@gmx.com>
10056
10057 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10058 (nbsd_nat_target::info_proc): Add do_status.
10059
194d088f
TV
100602020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10061 Tom de Vries <tdevries@suse.de>
10062
10063 PR symtab/25718
10064 * psympriv.h (struct partial_symtab::read_symtab)
10065 (struct partial_symtab::expand_psymtab)
10066 (struct partial_symtab::read_dependencies): Update comments.
10067 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10068 read_symtab for includer.
10069 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10070 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10071 (struct dwarf2_include_psymtab::m_readin): Remove.
10072 (struct dwarf2_include_psymtab::includer): New member function.
10073 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10074
c1a66c06
TV
100752020-04-14 Tom de Vries <tdevries@suse.de>
10076
10077 PR symtab/25720
10078 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10079 with NULL symbol_matcher and lookup_name.
10080 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10081 and lookup_name.
10082 * dwarf2/read.c (dw2_expand_symtabs_matching)
10083 (dw2_debug_names_expand_symtabs_matching): Same.
10084 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10085 Make lookup_name a pointer. Update comment.
10086 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10087 lookup_name being a pointer.
10088 * symfile.c (expand_symtabs_matching): Same.
10089 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10090 * linespec.c (iterate_over_all_matching_symtabs): Same.
10091
400b5eca
TT
100922020-04-13 Tom Tromey <tom@tromey.com>
10093
10094 * run-on-main-thread.c: Update include.
10095 * unittests/main-thread-selftests.c: Update include.
10096 * tui/tui-win.c: Update include.
10097 * tui/tui-io.c: Update include.
10098 * tui/tui-interp.c: Update include.
10099 * tui/tui-hooks.c: Update include.
10100 * top.h: Update include.
10101 * top.c: Update include.
10102 * ser-base.c: Update include.
10103 * remote.c: Update include.
10104 * remote-notif.c: Update include.
10105 * remote-fileio.c: Update include.
10106 * record-full.c: Update include.
10107 * record-btrace.c: Update include.
10108 * python/python.c: Update include.
10109 * posix-hdep.c: Update include.
10110 * mingw-hdep.c: Update include.
10111 * mi/mi-main.c: Update include.
10112 * mi/mi-interp.c: Update include.
10113 * main.c: Update include.
10114 * linux-nat.c: Update include.
10115 * interps.c: Update include.
10116 * infrun.c: Update include.
10117 * inf-loop.c: Update include.
10118 * event-top.c: Update include.
10119 * event-loop.c: Move to ../gdbsupport/.
10120 * event-loop.h: Move to ../gdbsupport/.
10121 * async-event.h: Update include.
10122 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10123
93b54c8e
TT
101242020-04-13 Tom Tromey <tom@tromey.com>
10125
10126 * tui/tui-win.c: Include async-event.h.
10127 * remote.c: Include async-event.h.
10128 * remote-notif.c: Include async-event.h.
10129 * record-full.c: Include async-event.h.
10130 * record-btrace.c: Include async-event.h.
10131 * infrun.c: Include async-event.h.
10132 * event-top.c: Include async-event.h.
10133 * event-loop.h: Move some declarations to async-event.h.
10134 * event-loop.c: Don't include ser-event.h or top.h. Move some
10135 code to async-event.c.
10136 * async-event.h: New file.
10137 * async-event.c: New file.
10138 * Makefile.in (COMMON_SFILES): Add async-event.c.
10139 (HFILES_NO_SRCDIR): Add async-event.h.
10140
c1cd3163
TT
101412020-04-13 Tom Tromey <tom@tromey.com>
10142
10143 * utils.c (flush_streams): New function.
10144 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10145
29f2bf4f
TT
101462020-04-13 Tom Tromey <tom@tromey.com>
10147
10148 * event-loop.c (handle_file_event): Use warning, not
10149 printf_unfiltered.
10150
98029d02
TT
101512020-04-13 Tom Tromey <tom@tromey.com>
10152
10153 * event-loop.c: Include <chrono>.
10154
06cc9596
TT
101552020-04-13 Tom Tromey <tom@tromey.com>
10156
10157 * gdb_select.h: Move to ../gdbsupport/.
10158 * event-loop.c: Update include path.
10159 * top.c: Update include path.
10160 * ser-base.c: Update include path.
10161 * ui-file.c: Update include path.
10162 * ser-tcp.c: Update include path.
10163 * guile/scm-ports.c: Update include path.
10164 * posix-hdep.c: Update include path.
10165 * ser-unix.c: Update include path.
10166 * gdb_usleep.c: Update include path.
10167 * mingw-hdep.c: Update include path.
10168 * inflow.c: Update include path.
10169 * infrun.c: Update include path.
10170 * event-top.c: Update include path.
10171
8ae8e197
TT
101722020-04-13 Tom Tromey <tom@tromey.com>
10173
10174 * configure: Rebuild.
10175 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10176
58cf28e8
TT
101772020-04-13 Tom Tromey <tom@tromey.com>
10178
10179 * event-loop.h (start_event_loop): Don't declare.
10180 * event-loop.c (start_event_loop): Move...
10181 * main.c (start_event_loop): ...here. Now static.
10182
b7f999ae
SDJ
101832020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10184
10185 * MAINTAINERS: Update my email address.
10186
1085dfd4
KR
101872020-04-12 Kamil Rytarowski <n54@gmx.com>
10188
10189 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10190 IP_ALL.
10191
49d1d1f5
KR
101922020-04-12 Kamil Rytarowski <n54@gmx.com>
10193
10194 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10195 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10196
b4848d2a
KR
101972020-04-12 Kamil Rytarowski <n54@gmx.com>
10198
10199 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10200 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10201
51c133d5
KR
102022020-04-12 Kamil Rytarowski <n54@gmx.com>
10203
10204 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10205
54b8cbd0
KR
102062020-04-11 Kamil Rytarowski <n54@gmx.com>
10207
10208 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10209 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10210 (nbsd_nat_target::info_proc): New functions.
10211 * nbsd-nat.c (kinfo_get_vmmap): New function.
10212 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10213 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10214 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10215 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10216 functions.
10217 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10218 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10219 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10220 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10221 (KINFO_VME_FLAG_GROWS_DOWN): New.
10222
cf83625d
AS
102232020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10224
10225 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10226 bit shift.
10227
0c4311ab
TT
102282020-04-10 Tom Tromey <tromey@adacore.com>
10229
10230 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10231
3e65b3e9
TT
102322020-04-10 Tom Tromey <tromey@adacore.com>
10233
10234 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10235 separate debug files.
10236
13302e95
HD
102372020-04-10 Hannes Domani <ssbssa@yahoo.de>
10238
10239 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10240 Move to...
10241 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10242 ... here.
10243 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10244 Check for STATUS_WX86_BREAKPOINT.
10245 (windows_nat_target::wait): Same.
10246
bdfc1e8a
TV
102472020-04-10 Tom de Vries <tdevries@suse.de>
10248
10249 PR cli/25808
10250 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10251
f4460aec
SM
102522020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10253
10254 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10255 (Write After Approval): Remove Tom de Vries.
10256
a25198bb
BE
102572020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10258
10259 revert partially:
10260 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10261
aac66a4c
SM
10262 * buildsym.c (record_line): Fix undefined behavior and preserve
10263 lines at eof.
a25198bb 10264
206c98a6
KR
102652020-04-09 Kamil Rytarowski <n54@gmx.com>
10266
10267 * auxv.h (svr4_auxv_parse): New.
10268 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10269 and generic_auxv_parse.
10270 (svr4_auxv_parse): Add.
10271 * obsd-tdep.c: Include "auxv.h".
10272 (obsd_auxv_parse): Remove.
10273 (obsd_init_abi): Remove comment.
10274 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10275 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10276 * nbsd-tdep.c: Include "auxv.h".
10277 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10278
71fbdbaf
TT
102792020-04-08 Tom Tromey <tromey@adacore.com>
10280
10281 * nat/windows-nat.h (last_wait_event): Don't declare.
10282 (wait_for_debug_event): Update comment.
10283 * nat/windows-nat.c (last_wait_event): Now static.
10284
2c1d95e8
TT
102852020-04-08 Tom Tromey <tromey@adacore.com>
10286
10287 * windows-nat.c (wait_for_debug_event): Move to
10288 nat/windows-nat.c.
10289 * nat/windows-nat.h (wait_for_debug_event): Declare.
10290 * nat/windows-nat.c (wait_for_debug_event): Move from
10291 windows-nat.c. No longer static.
10292
d2977bc4
TT
102932020-04-08 Tom Tromey <tromey@adacore.com>
10294
10295 * windows-nat.c (get_windows_debug_event): Use
10296 fetch_pending_stop.
10297 * nat/windows-nat.h (fetch_pending_stop): Declare.
10298 * nat/windows-nat.c (fetch_pending_stop): New function.
10299
e758e19c
TT
103002020-04-08 Tom Tromey <tromey@adacore.com>
10301
10302 * windows-nat.c (windows_continue): Use matching_pending_stop and
10303 continue_last_debug_event.
10304 * nat/windows-nat.h (matching_pending_stop)
10305 (continue_last_debug_event): Declare.
10306 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10307 (matching_pending_stop, continue_last_debug_event): New
10308 functions.
10309
8d30e395
TT
103102020-04-08 Tom Tromey <tromey@adacore.com>
10311
10312 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10313 (handle_exception_result): Move to nat/windows-nat.h.
10314 (DEBUG_EXCEPTION_SIMPLE): Remove.
10315 (windows_nat::handle_ms_vc_exception): New function.
10316 (handle_exception): Move to nat/windows-nat.c.
10317 (get_windows_debug_event): Update.
10318 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10319 nat/windows-nat.c.
10320 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10321 (handle_exception_result): Move from windows-nat.c.
10322 (handle_exception): Declare.
10323 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10324 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10325 windows-nat.c.
10326
29de418d
TT
103272020-04-08 Tom Tromey <tromey@adacore.com>
10328
10329 * windows-nat.c (exception_count, event_count): Remove.
10330 (handle_exception, get_windows_debug_event)
10331 (do_initial_windows_stuff): Update.
10332
a816ba18
TT
103332020-04-08 Tom Tromey <tromey@adacore.com>
10334
10335 * windows-nat.c (windows_nat::handle_load_dll)
10336 (windows_nat::handle_unload_dll): Rename. No longer static.
10337 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10338 Declare.
10339
a00caa12
TT
103402020-04-08 Tom Tromey <tromey@adacore.com>
10341
10342 * complaints.h (stop_whining): Declare at top-level.
10343 (complaint): Don't declare stop_whining.
10344
d41b524f
TT
103452020-04-08 Tom Tromey <tromey@adacore.com>
10346
10347 * windows-nat.c (windows_nat::handle_output_debug_string):
10348 Rename. No longer static.
10349 * nat/windows-nat.h (handle_output_debug_string): Declare.
10350
3c76026d
TT
103512020-04-08 Tom Tromey <tromey@adacore.com>
10352
10353 * windows-nat.c (current_process_handle, current_process_id)
10354 (main_thread_id, last_sig, current_event, last_wait_event)
10355 (current_windows_thread, desired_stop_thread_id, pending_stops)
10356 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10357 (display_selectors, fake_create_process)
10358 (get_windows_debug_event): Update.
10359 * nat/windows-nat.h (current_process_handle, current_process_id)
10360 (main_thread_id, last_sig, current_event, last_wait_event)
10361 (current_windows_thread, desired_stop_thread_id, pending_stops)
10362 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10363 * nat/windows-nat.c (current_process_handle, current_process_id)
10364 (main_thread_id, last_sig, current_event, last_wait_event)
10365 (current_windows_thread, desired_stop_thread_id, pending_stops)
10366 (siginfo_er): New globals. Move from windows-nat.c.
10367
9d8679cc
TT
103682020-04-08 Tom Tromey <tromey@adacore.com>
10369
10370 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10371 (handle_load_dll): Update.
10372 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10373
28688adf
TT
103742020-04-08 Tom Tromey <tromey@adacore.com>
10375
10376 * windows-nat.c (enum thread_disposition_type): Move to
10377 nat/windows-nat.h.
10378 (windows_nat::thread_rec): Rename from thread_rec. No longer
10379 static.
10380 (windows_add_thread, windows_nat_target::fetch_registers)
10381 (windows_nat_target::store_registers, handle_exception)
10382 (windows_nat_target::resume, get_windows_debug_event)
10383 (windows_nat_target::get_tib_address)
10384 (windows_nat_target::thread_name)
10385 (windows_nat_target::thread_alive): Update.
10386 * nat/windows-nat.h (enum thread_disposition_type): Move from
10387 windows-nat.c.
10388 (thread_rec): Declare.
10389
4834dad0
TT
103902020-04-08 Tom Tromey <tromey@adacore.com>
10391
10392 * windows-nat.c: Add "using namespace".
10393 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10394 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10395
65bafd5b
TT
103962020-04-08 Tom Tromey <tromey@adacore.com>
10397
10398 * nat/windows-nat.h (struct windows_thread_info): Declare
10399 destructor.
10400 * nat/windows-nat.c (~windows_thread_info): New.
10401
0a4afda3
TT
104022020-04-08 Tom Tromey <tromey@adacore.com>
10403
10404 PR gdb/22992
10405 * windows-nat.c (current_event): Update comment.
10406 (last_wait_event, desired_stop_thread_id): New globals.
10407 (struct pending_stop): New.
10408 (pending_stops): New global.
10409 (windows_nat_target) <stopped_by_sw_breakpoint>
10410 <supports_stopped_by_sw_breakpoint>: New methods.
10411 (windows_fetch_one_register): Add assertions. Adjust PC.
10412 (windows_continue): Handle pending stops. Suspend other threads
10413 when stepping. Use last_wait_event
10414 (wait_for_debug_event): New function.
10415 (get_windows_debug_event): Use wait_for_debug_event. Handle
10416 pending stops. Queue spurious stops.
10417 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10418 (windows_nat_target::kill): Use wait_for_debug_event.
10419 * nat/windows-nat.h (struct windows_thread_info)
10420 <stopped_at_software_breakpoint>: New field.
10421 * nat/windows-nat.c (windows_thread_info::resume): Clear
10422 stopped_at_software_breakpoint.
10423
8e61ebec
TT
104242020-04-08 Tom Tromey <tromey@adacore.com>
10425
10426 * windows-nat.c (enum thread_disposition_type): New.
10427 (thread_rec): Replace "get_context" parameter with "disposition";
10428 change type.
10429 (windows_add_thread, windows_nat_target::fetch_registers)
10430 (windows_nat_target::store_registers, handle_exception)
10431 (windows_nat_target::resume, get_windows_debug_event)
10432 (windows_nat_target::get_tib_address)
10433 (windows_nat_target::thread_name)
10434 (windows_nat_target::thread_alive): Update.
10435
98a03287
TT
104362020-04-08 Tom Tromey <tromey@adacore.com>
10437
10438 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10439 (windows_continue): Use windows_continue::resume.
10440 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10441 resume>: Declare new methods.
10442 * nat/windows-nat.c: New file.
10443 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10444
7c7411bc
TT
104452020-04-08 Tom Tromey <tromey@adacore.com>
10446
10447 * windows-nat.c (windows_add_thread, windows_delete_thread)
10448 (windows_nat_target::fetch_registers)
10449 (windows_nat_target::store_registers, fake_create_process)
10450 (windows_nat_target::resume, windows_nat_target::resume)
10451 (get_windows_debug_event, windows_nat_target::wait)
10452 (windows_nat_target::pid_to_str)
10453 (windows_nat_target::get_tib_address)
10454 (windows_nat_target::get_ada_task_ptid)
10455 (windows_nat_target::thread_name)
10456 (windows_nat_target::thread_alive): Use lwp, not tid.
10457
2950fdf7
TT
104582020-04-08 Tom Tromey <tromey@adacore.com>
10459
10460 * windows-nat.c (handle_exception)
10461 (windows_nat_target::thread_name): Update.
10462 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10463 <name>: Now unique_xmalloc_ptr.
10464
62fe396b
TT
104652020-04-08 Tom Tromey <tromey@adacore.com>
10466
10467 * windows-nat.c (thread_rec)
10468 (windows_nat_target::fetch_registers): Update.
10469 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10470 Update comment.
10471 <debug_registers_changed, reload_context>: Now bool.
10472
e9534bd2
TT
104732020-04-08 Tom Tromey <tromey@adacore.com>
10474
10475 * windows-nat.c (windows_add_thread): Use new.
10476 (windows_init_thread_list, windows_delete_thread): Use delete.
10477 (get_windows_debug_event): Update.
10478 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10479 destructor, and initializers.
10480
ae1f8880
TT
104812020-04-08 Tom Tromey <tromey@adacore.com>
10482
10483 * windows-nat.c (struct windows_thread_info): Remove.
10484 * nat/windows-nat.h: New file.
10485
55a1e039
TT
104862020-04-08 Tom Tromey <tromey@adacore.com>
10487
10488 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10489 (thread_rec, windows_add_thread, windows_delete_thread)
10490 (windows_continue): Update.
10491
93366324
TT
104922020-04-08 Tom Tromey <tromey@adacore.com>
10493
10494 * windows-nat.c (struct windows_thread_info): Remove typedef.
10495 (thread_head): Remove.
10496 (thread_list): New global.
10497 (thread_rec, windows_add_thread, windows_init_thread_list)
10498 (windows_delete_thread, windows_continue): Update.
10499
0f2265e2
SM
105002020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10501
10502 * windows-tdep.h (windows_init_abi): Add comment.
10503 (cygwin_init_abi): New declaration.
10504 * windows-tdep.c: Split signal enumeration in two, one for
10505 Windows and one for Cygwin.
10506 (windows_gdb_signal_to_target): Only deal with signal of the
10507 Windows OS ABI.
10508 (cygwin_gdb_signal_to_target): New function.
10509 (windows_init_abi): Rename to windows_init_abi_common, don't set
10510 gdb_signal_to_target gdbarch method. Add new new function with
10511 this name.
10512 (cygwin_init_abi): New function.
10513 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10514 comment. Don't call windows_init_abi.
10515 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10516 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10517 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10518 i386_windows_init_abi_common, don't call windows_init_abi. Add
10519 a new function of this name.
10520 (i386_cygwin_init_abi): New function.
10521 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10522 OS ABI Cygwin.
10523
3810f182
SM
105242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10525
10526 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10527 parameter.c.
10528 (dwarf2_read_gdb_index): Update.
10529
063f8e80
KR
105302020-04-07 Kamil Rytarowski <n54@gmx.com>
10531
10532 * nbsd-tdep.c: Include "objfiles.h".
10533 (nbsd_skip_solib_resolver): New.
10534 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10535
85a9510c 105362020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10537
10538 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10539 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10540 with DW_LLE_base_addressx are being emitted in DWARFv5.
10541 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10542 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10543 unsigned integer.
10544
9fc3eaae 105452020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10546
10547 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10548 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10549 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10550 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10551 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10552 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10553 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10554
10555
41144253 105562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10557
10558 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10559 (read_loclist_index): New function definition.
10560 (lookup_loclist_base): New function definition.
10561 (read_loclist_header): New function definition.
10562 (dwarf2_cu): Add loclist_base and loclist_header field.
10563 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10564 (read_full_die_1): Read the value of DW_AT_loclists_base.
10565 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10566 (read_attribute_value): Handle DW_FORM_loclistx.
10567 (skip_one_die): Handle DW_FORM_loclistx.
10568 (loclist_header): New structure declaration.
10569 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10570
9f4e76a4
SM
105712020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10572
10573 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10574 constructor. Remove `addr` parameter from other constructor and
10575 add `per_cu` parameter.
10576 * dwarf2/read.c (create_partial_symtab): Update.
10577
25c11aca
TV
105782020-04-07 Tom de Vries <tdevries@suse.de>
10579
10580 PR symtab/25796
10581 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10582 (partial_die_info::fixup): Inherit has_const_value.
10583
5707e24b
TV
105842020-04-07 Tom de Vries <tdevries@suse.de>
10585
10586 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10587 symbols without address.
10588
05f00e22
KR
105892020-04-06 Kamil Rytarowski <n54@gmx.com>
10590
10591 * nbsd-nat.h (struct thread_info): Add forward declaration.
10592 (nbsd_nat_target::thread_alive): Add.
10593 (nbsd_nat_target::thread_name): Likewise.
10594 (nbsd_nat_target::update_thread_list): Likewise.
10595 (update_thread_list::post_attach): Likewise.
10596 (post_attach::pid_to_str): Likewise.
10597 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10598 (nbsd_thread_lister): Add.
10599 (nbsd_nat_target::thread_alive): Likewise.
10600 (nbsd_nat_target::thread_name): Likewise.
10601 (nbsd_add_threads): Likewise.
10602 (update_thread_list::post_attach): Likewise.
10603 (nbsd_nat_target::update_thread_list): Likewise.
10604 (post_attach::pid_to_str): Likewise.
10605
6ee448cc
TT
106062020-04-06 Tom Tromey <tromey@adacore.com>
10607
10608 * ada-valprint.c (print_variant_part): Extract the variant field.
10609 (print_field_values): Use the field as the outer value when
10610 recursing.
10611
dea34e8c
TT
106122020-04-06 Tom Tromey <tromey@adacore.com>
10613
10614 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10615 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10616 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10617 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10618 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10619
93689ce9
TT
106202020-04-06 Tom Tromey <tromey@adacore.com>
10621
10622 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10623 TYPE_CODE_ERROR.
10624
79743962
KR
106252020-04-06 Kamil Rytarowski <n54@gmx.com>
10626
10627 * nbsd-tdep.c: Include "gdbarch.h".
10628 Define enum with NetBSD signal numbers.
10629 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10630 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10631 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10632 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10633 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10634 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10635 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10636 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10637 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10638 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10639 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10640 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10641
9e7c9a03
HD
106422020-04-03 Hannes Domani <ssbssa@yahoo.de>
10643
10644 PR gdb/25325
10645 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10646
d9e49b61
TT
106472020-04-03 Tom Tromey <tromey@adacore.com>
10648
10649 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10650 Read constant block.
10651
e0fc5c3f
SM
106522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10653
10654 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10655 (gdb_bfd_get_full_section_contents): New declaration.
10656 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10657 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10658 gdb_bfd_get_full_section_contents.
10659
e2ff18a0
SM
106602020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10661
10662 * exec.c (build_section_table): Replace internal_error with
10663 gdb_assert.
10664 (section_table_xfer_memory_partial): Likewise.
10665 * mdebugread.c (parse_partial_symbols): Likewise.
10666 * psymtab.c (lookup_partial_symbol): Likewise.
10667 * utils.c (wrap_here): Likewise.
10668
0830d301
TT
106692020-04-02 Tom Tromey <tromey@adacore.com>
10670
10671 * f-lang.c (build_fortran_types): Use arch_type to initialize
10672 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10673
e7da7f8f
TT
106742020-04-02 Tom Tromey <tromey@adacore.com>
10675
10676 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10677 of attributes.
10678
c90d28ac
AB
106792020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10680 Bernd Edlinger <bernd.edlinger@hotmail.de>
10681 Tom Tromey <tromey@adacore.com>
10682
10683 * buildsym.c (buildsym_compunit::record_line): Remove
10684 deduplication code.
10685
1aa98955
TV
106862020-04-02 Tom de Vries <tdevries@suse.de>
10687
10688 PR ada/24671
10689 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10690
d3214198
TV
106912020-04-02 Tom de Vries <tdevries@suse.de>
10692
10693 * dwarf2/read.c (dwarf2_gdb_index_functions,
10694 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10695 NULL.
10696 * psymtab.c (psym_lookup_global_symbol_language): New function.
10697 (psym_functions): Init psym_lookup_global_symbol_language with
10698 psym_lookup_global_symbol_language.
10699 * symfile-debug.c (debug_sym_quick_functions): Init
10700 lookup_global_symbol_language with NULL.
10701 * symfile.c (set_initial_language): Remove fixme comment.
10702 * symfile.h (struct quick_symbol_functions): Add
10703 lookup_global_symbol_language.
10704 * symtab.c (find_quick_global_symbol_language): New function.
10705 (find_main_name): Use find_quick_global_symbol_language.
10706
2836752f
SM
107072020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10708
10709 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10710
64dc2d4b
BE
107112020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10712
10713 * buildsym.c (record_line): Fix undefined behavior and preserve
10714 lines at eof.
10715
bbe3dc41
BE
107162020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10717
10718 * buildsym.c (record_line): Fix the resizing condition.
10719
6b4a335b
TT
107202020-04-01 Tom Tromey <tom@tromey.com>
10721
10722 * value.h (value_literal_complex): Add comment.
10723 * valops.c (value_literal_complex): Refer to value.h.
10724
3638a098
TT
107252020-04-01 Tom Tromey <tom@tromey.com>
10726
10727 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10728 (scalar_type): New rule, from typebase.
10729 (typebase): Use scalar_type. Recognize complex types.
10730 (field_name): Handle FLOAT_KEYWORD.
10731 (ident_tokens): Add _Complex and __complex__.
10732
c34e8714
TT
107332020-04-01 Tom Tromey <tom@tromey.com>
10734
10735 PR exp/25299:
10736 * valarith.c (promotion_type, complex_binop): New functions.
10737 (scalar_binop): Handle complex numbers. Use promotion_type.
10738 (value_pos, value_neg, value_complement): Handle complex numbers.
10739
fa649bb7
TT
107402020-04-01 Tom Tromey <tom@tromey.com>
10741
10742 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10743 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10744 (parse_number): Handle complex numbers.
10745
981c08ce
TT
107462020-04-01 Tom Tromey <tom@tromey.com>
10747
10748 * c-valprint.c (c_decorations): Change complex suffix to "i".
10749
4c99290d
TT
107502020-04-01 Tom Tromey <tom@tromey.com>
10751
10752 * valprint.c (generic_value_print_complex): Use accessors.
10753 * value.h (value_real_part, value_imaginary_part): Declare.
10754 * valops.c (value_real_part, value_imaginary_part): New
10755 functions.
10756 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10757
5b930b45
TT
107582020-04-01 Tom Tromey <tom@tromey.com>
10759
10760 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10761 (read_range_type): Update.
10762 * mdebugread.c (basic_type): Update.
10763 * go-lang.c (build_go_types): Use init_complex_type.
10764 * gdbtypes.h (struct main_type) <complex_type>: New member.
10765 (init_complex_type): Update.
10766 (arch_complex_type): Don't declare.
10767 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10768 Make name if none given. Use alloc_type_copy. Look for cached
10769 complex type.
10770 (arch_complex_type): Remove.
10771 (gdbtypes_post_init): Use init_complex_type.
10772 * f-lang.c (build_fortran_types): Use init_complex_type.
10773 * dwarf2/read.c (read_base_type): Update.
10774 * d-lang.c (build_d_types): Use init_complex_type.
10775 * ctfread.c (read_base_type): Update.
10776
53cccef1
TBA
107772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10778
10779 * infrun.c (stop_all_threads): Update assertion, plus when
10780 stopping threads, take into account that we might be trying
10781 to stop an all-stop target.
10782 (stop_waiting): Call 'stop_all_threads' if there exists a
10783 non-stop target.
10784
a0714d30
TBA
107852020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10786
10787 * target.h (exists_non_stop_target): New function declaration.
10788 * target.c (exists_non_stop_target): New function.
10789
60e22c1e
HD
107902020-04-01 Hannes Domani <ssbssa@yahoo.de>
10791
10792 PR gdb/24789
10793 * eval.c (is_integral_or_integral_reference): New function.
10794 (evaluate_subexp_standard): Allow integer references in
10795 pointer arithmetic.
10796
e139a727
TBA
107972020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10798
10799 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10800 check for no ptid in the stop reply when the target is non-stop.
10801
e0802d59
TT
108022020-04-01 Tom Tromey <tromey@adacore.com>
10803
10804 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10805 "name" parameter to rvalue reference. Initialize m_name_holder.
10806 <lookup_name_info>: New overloads.
10807 <name>: Return gdb::string_view.
10808 <c_str>: New method.
10809 <make_ignore_params>: Update.
10810 <search_name_hash>: Update.
10811 <language_lookup_name>: Return const char *.
10812 <m_name>: Change type.
10813 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10814 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10815 (lookup_name_info::match_any): Update.
10816 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10817 Update.
10818 * minsyms.c (linkage_name_str): Update.
10819 * language.c (default_symbol_name_matcher): Update.
10820 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10821 Update.
10822 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10823 (ada_lookup_name_info::ada_lookup_name_info): Update.
10824 (literal_symbol_name_matcher): Update.
10825
8c072cb6
TT
108262020-04-01 Tom Tromey <tromey@adacore.com>
10827
10828 * psymtab.c (psymtab_search_name): Remove function.
10829 (psym_lookup_symbol): Create search name and lookup name here.
10830 (lookup_partial_symbol): Remove "name" parameter; add
10831 lookup_name.
10832 (psym_expand_symtabs_for_function): Update.
10833
6f29a534
TT
108342020-03-31 Joel Jones <joelkevinjones@gmail.com>
10835
10836 PR tui/25597:
10837 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10838
af62665e
TT
108392020-03-31 Tom Tromey <tromey@adacore.com>
10840
10841 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10842 memcpy.
10843
d1a89da5
NC
108442020-03-30 Nelson Chu <nelson.chu@sifive.com>
10845
10846 * features/riscv/32bit-csr.xml: Regenerated.
10847 * features/riscv/64bit-csr.xml: Regenerated.
10848
d8af9068
TT
108492020-03-30 Tom Tromey <tromey@adacore.com>
10850
10851 * ada-valprint.c (print_variant_part): Update.
10852 * ada-lang.h (ada_which_variant_applies): Update.
10853 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10854 outer_valaddr parameters; replace with "outer" value parameter.
10855 (to_fixed_variant_branch_type): Update.
10856
227c0bf4
PFC
108572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10858
10859 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10860 <list>. Remove inclusion of observable.h.
10861 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10862 (struct arch_lwp_info): New struct.
10863 (class ppc_linux_dreg_interface): New class.
10864 (struct ppc_linux_process_info): New struct.
10865 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10866 <low_new_clone, low_forget_process, low_prepare_to_resume>
10867 <copy_thread_dreg_state, mark_thread_stale>
10868 <mark_debug_registers_changed, register_hw_breakpoint>
10869 <clear_hw_breakpoint, register_wp, clear_wp>
10870 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10871 <num_memory_accesses, get_trigger_type>
10872 <create_watchpoint_request, hwdebug_point_cmp>
10873 <init_arch_lwp_info, get_arch_lwp_info>
10874 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10875 methods.
10876 <struct ptid_hash>: New inner struct.
10877 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10878 members.
10879 (saved_dabr_value, hwdebug_info, max_slots_number)
10880 (struct hw_break_tuple, struct thread_points, ppc_threads)
10881 (have_ptrace_hwdebug_interface)
10882 (hwdebug_find_thread_points_by_tid)
10883 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10884 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10885 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10886 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10887 use m_dreg_interface.
10888 (hwdebug_point_cmp): Change to...
10889 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10890 reference arguments instead of pointers.
10891 (ppc_linux_nat_target::ranged_break_num_registers): Use
10892 m_dreg_interface.
10893 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10894 m_dreg_interface. Call register_hw_breakpoint.
10895 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10896 m_dreg_interface. Call clear_hw_breakpoint.
10897 (get_trigger_type): Change to...
10898 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10899 comment.
10900 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10901 use m_dreg_interface. Call register_hw_breakpoint.
10902 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10903 use m_dreg_interface. Call clear_hw_breakpoint.
10904 (can_use_watchpoint_cond_accel): Change to...
10905 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10906 method. Update comment, use m_dreg_interface and
10907 m_process_info.
10908 (calculate_dvc): Change to...
10909 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10910 m_dreg_interface.
10911 (num_memory_accesses): Change to...
10912 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10913 (check_condition): Change to...
10914 (ppc_linux_nat_target::check_condition): ...this method.
10915 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10916 comment, use m_dreg_interface.
10917 (create_watchpoint_request): Change to...
10918 (ppc_linux_nat_target::create_watchpoint_request): ...this
10919 method. Use m_dreg_interface.
10920 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10921 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10922 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10923 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10924 (ppc_linux_nat_target::low_forget_process)
10925 (ppc_linux_nat_target::low_new_fork)
10926 (ppc_linux_nat_target::low_new_clone)
10927 (ppc_linux_nat_target::low_delete_thread)
10928 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10929 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10930 only call mark_thread_stale.
10931 (ppc_linux_thread_exit): Remove.
10932 (ppc_linux_nat_target::stopped_data_address): Change to...
10933 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10934 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10935 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10936 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10937 comment. Call low_stopped_data_address.
10938 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10939 m_dreg_interface.
10940 (ppc_linux_nat_target::masked_watch_num_registers): Use
10941 m_dreg_interface.
10942 (ppc_linux_nat_target::copy_thread_dreg_state)
10943 (ppc_linux_nat_target::mark_thread_stale)
10944 (ppc_linux_nat_target::mark_debug_registers_changed)
10945 (ppc_linux_nat_target::register_hw_breakpoint)
10946 (ppc_linux_nat_target::clear_hw_breakpoint)
10947 (ppc_linux_nat_target::register_wp)
10948 (ppc_linux_nat_target::clear_wp)
10949 (ppc_linux_nat_target::init_arch_lwp_info)
10950 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10951 (_initialize_ppc_linux_nat): Remove observer callback.
10952
4db10d8f
PFC
109532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10954
10955 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10956 (ppc_linux_nat_target::auxv_parse)
10957 (ppc_linux_nat_target::read_description)
10958 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10959 Move up.
10960
1310c1b0
PFC
109612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10962
10963 * linux-nat.h (low_new_clone): New method.
10964 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10965
69b037c3
SM
109662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10967
10968 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10969 (dbx_expand_psymtab): ... this.
10970 (start_psymtab): Update.
10971 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10972 (mdebug_expand_psymtab): ... this.
10973 (parse_partial_symbols): Update.
10974 (new_psymtab): Update.
10975 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10976 (xcoff_expand_psymtab): ... this.
10977 (xcoff_start_psymtab): Update.
10978
48993951
SM
109792020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10980
10981 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10982 <expand_dependencies>: ... this.
10983 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10984 (partial_symtab::expand_dependencies): ... this.
10985 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10986 Update.
10987 (dwarf2_psymtab::expand_psymtab): Update.
10988 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10989 * mdebugread.c (psymtab_to_symtab_1): Update.
10990 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10991
3ad83046
SM
109922020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10993
10994 * psympriv.h (discard_psymtab): Remove.
10995 * dbxread.c (dbx_end_psymtab): Update.
10996 * xcoffread.c (xcoff_end_psymtab): Update.
10997
4d1b9ab6
TT
109982020-03-28 Tom Tromey <tom@tromey.com>
10999
11000 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11001 comment.
11002
f1749218
TT
110032020-03-28 Tom Tromey <tom@tromey.com>
11004
11005 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11006
ebea7626
HD
110072020-03-27 Hannes Domani <ssbssa@yahoo.de>
11008
11009 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11010
a879b4d5
JB
110112020-03-26 John Baldwin <jhb@FreeBSD.org>
11012
11013 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11014
0826b30a
TT
110152020-03-26 Tom Tromey <tom@tromey.com>
11016
11017 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11018 (mark_common_block_symbol_computed, read_tag_string_type)
11019 (attr_to_dynamic_prop, read_subrange_type): Update.
11020 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11021 to be methods on struct attribute.
11022 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11023 (read_call_site_scope, partial_die_info::read)
11024 (partial_die_info::read, lookup_die_type, follow_die_ref):
11025 Update.
11026 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11027 from dwarf2_get_ref_die_offset.
11028 (attribute::constant_value): New method, from
11029 dwarf2_get_attr_constant_value.
11030 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11031 Declare method.
11032 <constant_value>: New method.
11033
2b2558bf
TT
110342020-03-26 Tom Tromey <tom@tromey.com>
11035
11036 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11037 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11038 (dwarf_type_encoding_name): Move to stringify.c.
11039 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11040 * dwarf2/stringify.c: New file.
11041 * dwarf2/stringify.h: New file.
11042
eeb64781
TT
110432020-03-26 Tom Tromey <tom@tromey.com>
11044
11045 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11046 Rewrite.
11047
a39fdb41
TT
110482020-03-26 Tom Tromey <tom@tromey.com>
11049
11050 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11051 methods.
11052 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11053 (lookup_ranges_base): Likewise.
11054 (read_cutu_die_from_dwo, read_full_die_1): Update.
11055
436c571c
TT
110562020-03-26 Tom Tromey <tom@tromey.com>
11057
11058 * dwarf2/read.c (read_import_statement, read_file_scope)
11059 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11060 (read_lexical_block_scope, read_call_site_scope)
11061 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11062 (handle_struct_member_die, process_structure_scope)
11063 (update_enumeration_type_from_children)
11064 (process_enumeration_scope, read_array_type, read_common_block)
11065 (read_namespace, read_module, read_subroutine_type): Update.
11066 (sibling_die): Remove.
11067
052c8bb8
TT
110682020-03-26 Tom Tromey <tom@tromey.com>
11069
11070 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11071 (build_type_psymtabs_reader, read_structure_type)
11072 (read_enumeration_type, read_full_die_1): Update.
11073 (dwarf2_attr_no_follow): Move to die.h.
11074 * dwarf2/die.h (struct die_info) <attr>: New method.
11075
2b24b6e4
TT
110762020-03-26 Tom Tromey <tom@tromey.com>
11077
11078 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11079 <base_address>: Now an optional.
11080 (dwarf2_find_base_address, dwarf2_rnglists_process)
11081 (dwarf2_ranges_process, fill_in_loclist_baton)
11082 (dwarf2_symbol_mark_computed): Update.
11083
c2d50fd0
TT
110842020-03-26 Tom Tromey <tom@tromey.com>
11085
11086 * dwarf2/read.c (struct die_info): Move to die.h.
11087 * dwarf2/die.h: New file.
11088
0df7ad3a
TT
110892020-03-26 Tom Tromey <tom@tromey.com>
11090
11091 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11092 * dwarf2/read.c
11093 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11094 Move to line-header.c.
11095 (read_checked_initial_length_and_offset, read_formatted_entries):
11096 Likewise.
11097 (dwarf_decode_line_header): Split into two.
11098 * dwarf2/line-header.c
11099 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11100 Move from read.c.
11101 (read_checked_initial_length_and_offset, read_formatted_entries):
11102 Likewise.
11103 (dwarf_decode_line_header): New function, split from read.c.
11104
86c0bb4c
TT
111052020-03-26 Tom Tromey <tom@tromey.com>
11106
11107 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11108 Declare method.
11109 * dwarf2/read.c (read_attribute_value): Update.
11110 (dwarf2_per_objfile::read_line_string): Rename from
11111 read_indirect_line_string.
11112 (read_formatted_entries): Update.
11113
2ef46c2f
TT
111142020-03-26 Tom Tromey <tom@tromey.com>
11115
11116 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11117 variable.
11118
4f9c1eda
TT
111192020-03-26 Tom Tromey <tom@tromey.com>
11120
11121 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11122 const.
11123 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11124 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11125 parameter const.
11126
5a0e026f
TT
111272020-03-26 Tom Tromey <tom@tromey.com>
11128
11129 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11130 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11131 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11132 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11133
8844c11b
TT
111342020-03-26 Tom Tromey <tom@tromey.com>
11135
11136 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11137 file_names_size, file_full_name, file_file_name>: Use const.
11138 <file_name_at, file_names>: Add const overload.
11139 * dwarf2/line-header.c (line_header::file_file_name)
11140 (line_header::file_full_name): Update.
11141
c90ec28a
TT
111422020-03-26 Tom Tromey <tom@tromey.com>
11143
11144 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11145 (macro_start_file, consume_improper_spaces)
11146 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11147 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11148 (dwarf_decode_macros): Move to macro.c.
11149 * dwarf2/macro.c: New file.
11150 * dwarf2/macro.h: New file.
11151 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11152
4f44ae6c
TT
111532020-03-26 Tom Tromey <tom@tromey.com>
11154
11155 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11156 method.
11157 * dwarf2/section.c: New method. From
11158 read_indirect_string_at_offset_from.
11159 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11160 (read_indirect_string_at_offset_from): Move to section.c.
11161 (read_indirect_string_at_offset): Rewrite.
11162 (read_indirect_line_string_at_offset): Remove.
11163 (read_indirect_string, read_indirect_line_string)
11164 (dwarf_decode_macro_bytes): Update.
11165
a0194fa8
TT
111662020-03-26 Tom Tromey <tom@tromey.com>
11167
11168 * dwarf2/section.h (struct dwarf2_section_info)
11169 <overload_complaint>: Declare.
11170 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11171 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11172 Rename from dwarf2_section_buffer_overflow_complaint.
11173 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11174 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11175
3d27bbdb
TT
111762020-03-26 Tom Tromey <tom@tromey.com>
11177
11178 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11179 Declare.
11180 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11181 Move from read.c.
11182 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11183 to section.c.
11184
9eac9650
TT
111852020-03-26 Tom Tromey <tom@tromey.com>
11186
11187 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11188
bf80d710
TT
111892020-03-26 Tom Tromey <tom@tromey.com>
11190
11191 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11192 "builder".
11193 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11194 parameter.
11195 (dwarf_decode_macros): Update.
11196
0314b390
TT
111972020-03-26 Tom Tromey <tom@tromey.com>
11198
11199 * dwarf2/read.c (read_attribute_value): Update.
11200 (read_indirect_string_from_dwz): Move to dwz.c; change into
11201 method.
11202 (dwarf_decode_macro_bytes): Update.
11203 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11204 * dwarf2/dwz.c: New file.
11205 * Makefile.in (COMMON_SFILES): Add dwz.c.
11206
9fda78b6
TT
112072020-03-26 Tom Tromey <tom@tromey.com>
11208
11209 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11210 * dwarf2/read.c: Add include.
11211 * dwarf2/index-write.c: Add include.
11212 * dwarf2/index-cache.c: Add include.
11213 * dwarf2/dwz.h: New file.
11214
33aa3c10
TT
112152020-03-25 Tom Tromey <tom@tromey.com>
11216
11217 * compile/compile-object-load.c (get_out_value_type): Mention
11218 correct symbol name in error message.
11219
d503b685
HD
112202020-03-25 Hannes Domani <ssbssa@yahoo.de>
11221
11222 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11223
7b1eff95
TV
112242020-03-25 Tom de Vries <tdevries@suse.de>
11225
11226 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11227 * symmisc.c (dump_symtab_1): Print user and includes fields.
11228 (maintenance_info_symtabs): Same.
11229
dd895392
AB
112302020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11231
11232 PR gdb/25534
11233 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11234 (riscv_regcache_cooked_write): New function.
11235 (riscv_push_dummy_call): Use new function.
11236 (riscv_return_value): Likewise.
11237
5ab2fbf1
SM
112382020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11239
11240 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11241 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11242 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11243 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11244 * infrun.c (follow_fork): Likewise.
11245 (follow_fork_inferior): Likewise.
11246 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11247 * linux-nat.h (class linux_nat_target): Likewise.
11248 * remote.c (class remote_target) <follow_fork>: Likewise.
11249 (remote_target::follow_fork): Likewise.
11250 * target-delegates.c: Re-generate.
11251 * target.c (default_follow_fork): Likewise.
11252 (target_follow_fork): Likewise.
11253 * target.h (struct target_ops) <follow_fork>: Likewise.
11254 (target_follow_fork): Likewise.
11255
a64fafb5
TV
112562020-03-24 Tom de Vries <tdevries@suse.de>
11257
11258 * psymtab.c (maintenance_info_psymtabs): Print user field.
11259
fe26d3a3
TT
112602020-03-20 Tom Tromey <tromey@adacore.com>
11261
11262 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11263 const.
11264 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11265 const.
11266
c884cc46
SM
112672020-03-20 Simon Marchi <simon.marchi@efficios.com>
11268
11269 * ptrace.m4: Don't check for ptrace declaration.
11270 * config.in: Re-generate.
11271 * configure: Re-generate.
11272 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11273 not defined.
11274
1ff700c2
KR
112752020-03-20 Kamil Rytarowski <n54@gmx.com>
11276
11277 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11278 `PTRACE_TYPE_RET'.
11279 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11280 * sparc-nat.c (gdb_ptrace): Likewise.
11281 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11282
f7d4f0b1
TT
112832020-03-20 Tom Tromey <tromey@adacore.com>
11284
11285 * c-exp.y (lex_one_token): Fix assert.
11286
f67210ff
TT
112872020-03-20 Tom Tromey <tromey@adacore.com>
11288
11289 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11290 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11291 strncpy call.
11292
1773be9e
TT
112932020-03-20 Tom Tromey <tromey@adacore.com>
11294
11295 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11296
70304be9
TT
112972020-03-20 Tom Tromey <tromey@adacore.com>
11298
11299 * ada-valprint.c (print_variant_part): Remove parameters; switch
11300 to value-based API.
11301 (print_field_values): Likewise.
11302 (ada_val_print_struct_union): Likewise.
11303 (ada_value_print_1): Update.
11304
9faa006d
KR
113052020-03-20 Kamil Rytarowski <n54@gmx.com>
11306
11307 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11308 nbsd_nat_target instead of inf_ptrace_target.
11309 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11310 nbsd_nat_target.
11311
4a90f062
KR
113122020-03-20 Kamil Rytarowski <n54@gmx.com>
11313
11314 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11315 it to the ptrace call.
11316 * (store_registers): Likewise.
11317
113182020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11319
11320 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11321 it to the ptrace call.
11322 * (store_registers): Likewise.
11323
2d07da27
LM
113242020-03-19 Luis Machado <luis.machado@linaro.org>
11325
11326 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11327 valid, fetch vg value from ptrace.
11328
f09db380
KR
113292020-03-19 Kamil Rytarowski <n54@gmx.com>
11330 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11331 * inf-ptrace.c: Likewise.
11332 * (gdb_ptrace): Add.
11333 * (inf_ptrace_target::resume): Update.
11334 * (inf_ptrace_target::xfer_partial): Likewise.
11335 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11336 * (inf_ptrace_peek_poke): Update.
11337
fcc7376e
KR
113382020-03-19 Kamil Rytarowski <n54@gmx.com>
11339
11340 * x86-bsd-nat.c (gdb_ptrace): New.
11341 * (x86bsd_dr_set): Add new argument `ptid'.
11342 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11343 x86bsd_dr_set_addr): Update.
11344
cada5fc9
AB
113452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11346
11347 * remote.c (remote_target::process_stop_reply): Handle events for
11348 all threads differently.
11349
19a2740f
AB
113502020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11351
11352 * completer.c (completion_tracker::remove_completion): Define new
11353 function.
11354 * completer.h (completion_tracker::remove_completion): Declare new
11355 function.
11356 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11357 when adding a C++ function symbol.
11358
724fd9ba
AB
113592020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11360
11361 * completer.c (completion_tracker::completion_hash_entry): Define
11362 new class.
11363 (advance_to_filename_complete_word_point): Call
11364 recompute_lowest_common_denominator.
11365 (completion_tracker::completion_tracker): Call discard_completions
11366 to setup the hash table.
11367 (completion_tracker::discard_completions): Allow for being called
11368 from the constructor, pass new equal function, and element deleter
11369 when constructing the hash table. Initialise new class member
11370 variables.
11371 (completion_tracker::maybe_add_completion): Remove use of
11372 m_entries_vec, and store more information into m_entries_hash.
11373 (completion_tracker::recompute_lcd_visitor): New function, most
11374 content taken from...
11375 (completion_tracker::recompute_lowest_common_denominator):
11376 ...here, this now just visits each item in the hash calling the
11377 above visitor.
11378 (completion_tracker::build_completion_result): Remove use of
11379 m_entries_vec, call recompute_lowest_common_denominator.
11380 * completer.h (completion_tracker::have_completions): Remove use
11381 of m_entries_vec.
11382 (completion_tracker::completion_hash_entry): Declare new class.
11383 (completion_tracker::recompute_lowest_common_denominator): Change
11384 function signature.
11385 (completion_tracker::recompute_lcd_visitor): Declare new function.
11386 (completion_tracker::m_entries_vec): Delete.
11387 (completion_tracker::m_entries_hash): Initialize to NULL.
11388 (completion_tracker::m_lowest_common_denominator_valid): New
11389 member variable.
11390 (completion_tracker::m_lowest_common_denominator_max_length): New
11391 member variable.
11392
5a82b8a1
KR
113932020-03-17 Kamil Rytarowski <n54@gmx.com>
11394
11395 * regformats/regdef.h: Put reg in gdb namespace.
11396
fb516a69
KR
113972020-03-17 Kamil Rytarowski <n54@gmx.com>
11398
11399 * i386-bsd-nat.c (gdb_ptrace): New.
11400 * (i386bsd_fetch_inferior_registers,
11401 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11402 * (i386bsd_fetch_inferior_registers,
11403 i386bsd_store_inferior_registers) Use gdb_ptrace.
11404
1c0aa1fb
KR
114052020-03-17 Kamil Rytarowski <n54@gmx.com>
11406
11407 * amd64-bsd-nat.c (gdb_ptrace): New.
11408 * (amd64bsd_fetch_inferior_registers,
11409 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11410 * (amd64bsd_fetch_inferior_registers,
11411 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11412
5ccd2fb7
KR
114132020-03-17 Kamil Rytarowski <n54@gmx.com>
11414
11415 * user-regs.c (user_reg::read): Rename to...
11416 (user_reg::xread): ...this.
11417 * (append_user_reg): Rename argument `read' to `xread'.
11418 * (user_reg_add_builtin): Likewise.
11419 * (user_reg_add): Likewise.
11420 * (value_of_user_reg): Likewise.
11421
2108a63a
KR
114222020-03-17 Kamil Rytarowski <n54@gmx.com>
11423
11424 * sparc-nat.c (gdb_ptrace): New.
11425 * sparc-nat.c (sparc_fetch_inferior_registers)
11426 (sparc_store_inferior_registers) Remove obsolete comment.
11427 * sparc-nat.c (sparc_fetch_inferior_registers)
11428 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11429 * sparc-nat.c (sparc_fetch_inferior_registers)
11430 (sparc_store_inferior_registers) Use gdb_ptrace.
11431
a225c9a8
KR
114322020-03-17 Kamil Rytarowski <n54@gmx.com>
11433
11434 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11435 it to the ptrace call.
11436 * sh-nbsd-nat.c (store_registers): Likewise.
11437
98097623
KR
114382020-03-17 Kamil Rytarowski <n54@gmx.com>
11439
11440 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11441 nbsd_nat_target instead of inf_ptrace_target.
11442 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11443 nbsd_nat_target.
11444
9e38d619
KR
114452020-03-17 Kamil Rytarowski <n54@gmx.com>
11446
11447 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11448
a2ecbe9f
KR
114492020-03-17 Kamil Rytarowski <n54@gmx.com>
11450
11451 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11452 <sys/sysctl.h>.
11453 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11454
58990295
TV
114552020-03-17 Tom de Vries <tdevries@suse.de>
11456
11457 PR gdb/23710
11458 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11459 fields.
11460 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11461 fields.
11462 (process_imported_unit_die): Skip import of c++ CUs.
11463
771dd3a8
TT
114642020-03-16 Tom Tromey <tom@tromey.com>
11465
11466 * p-valprint.c (pascal_object_print_value): Initialize
11467 base_value.
11468
817a7585
AK
114692020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11470 Shahab Vahedi <shahab@synopsys.com>
11471
11472 * Makefile.in: Add arch/arc.o
11473 * configure.tgt: Likewise.
11474 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11475 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11476 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11477 * arc-tdep.h (arc_read_description): Add proto type.
11478 * arch/arc.c: New file.
11479 * arch/arc.h: Likewise.
11480 * features/Makefile: Replace old target descriptions with new.
11481 * features/arc-arcompact.c: Remove.
11482 * features/arc-arcompact.xml: Likewise.
11483 * features/arc-v2.c: Likewise
11484 * features/arc-v2.xml: Likewise
11485 * features/arc/aux-arcompact.xml: New file.
11486 * features/arc/aux-v2.xml: Likewise.
11487 * features/arc/core-arcompact.xml: Likewise.
11488 * features/arc/core-v2.xml: Likewise.
11489 * features/arc/aux-arcompact.c: Generate.
11490 * features/arc/aux-v2.c: Likewise.
11491 * features/arc/core-arcompact.c: Likewise.
11492 * features/arc/core-v2.c: Likewise.
11493 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11494
67430cd0
TT
114952020-03-16 Tom Tromey <tromey@adacore.com>
11496
11497 PR gdb/25663:
11498 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11499 putting value into bcache.
11500
30efb6c7
SM
115012020-03-16 Simon Marchi <simon.marchi@efficios.com>
11502
11503 PR gdb/21500
11504 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11505 to...
11506 (amd64_windows_init_abi_common): ... this. Don't set size of
11507 long type.
11508 (amd64_windows_init_abi): New function.
11509 (amd64_cygwin_init_abi): New function.
11510 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11511 the Cygwin OS ABI.
11512 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11513 comment.
11514
8db52437
SM
115152020-03-16 Simon Marchi <simon.marchi@efficios.com>
11516
11517 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11518 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11519 (pe_import_directory_entry): New struct type.
11520 (is_linked_with_cygwin_dll): New function.
11521 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11522 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11523 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11524
5982a56a
SM
115252020-03-16 Simon Marchi <simon.marchi@efficios.com>
11526
11527 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11528 i386_cygwin_core_osabi_sniffer.
11529
7a1998df
SM
115302020-03-16 Simon Marchi <simon.marchi@efficios.com>
11531
11532 * i386-cygwin-tdep.c: Rename to...
11533 * i386-windows-tdep.c: ... this.
11534 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11535 i386-windows-tdep.c.
11536 * configure.tgt: Likewise.
11537
053205cc
SM
115382020-03-16 Simon Marchi <simon.marchi@efficios.com>
11539
11540 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11541 * osabi.c (gdb_osabi_names): Add "Windows".
11542 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11543 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11544 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11545 i386_cygwin_osabi_sniffer.
11546 (_initialize_i386_cygwin_tdep): Register OS ABI
11547 GDB_OSABI_WINDOWS for i386.
11548 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11549 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11550 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11551 for x86-64.
11552 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11553 when the target matches '*-*-mingw*'.
11554
fe4b2ee6
SM
115552020-03-16 Simon Marchi <simon.marchi@efficios.com>
11556
11557 * defs.h (enum gdb_osabi): Move to...
11558 * osabi.h (enum gdb_osabi): ... here.
11559 * gdbarch.sh: Include osabi.h in gdbarch.h.
11560 * gdbarch.h: Re-generate.
11561
cb9b645d
SM
115622020-03-16 Simon Marchi <simon.marchi@efficios.com>
11563
11564 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11565 function.
11566 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11567
3293bbaf
TT
115682020-03-14 Tom Tromey <tom@tromey.com>
11569
11570 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11571 for C++.
11572 (c_type_print_modifier): Likewise. Add "language" parameter.
11573 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11574 (c_type_print_base_1): Update.
11575 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11576 constants.
11577 * type-stack.c (type_stack::insert): Handle tp_atomic and
11578 tp_restrict.
11579 (type_stack::follow_type_instance_flags): Likewise.
11580 (type_stack::follow_types): Likewise. Merge type-following code.
11581 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11582 (space_identifier, cv_with_space_id)
11583 (const_or_volatile_or_space_identifier_noopt)
11584 (const_or_volatile_or_space_identifier): Remove.
11585 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11586 rules.
11587 (ptr_operator, typebase): Update.
11588 (enum token_flag) <FLAG_C>: New constant.
11589 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11590 "_Atomic".
11591 (lex_one_token): Handle FLAG_C.
11592
154151a6
KR
115932020-03-14 Kamil Rytarowski <n54@gmx.com>
11594
11595 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11596 it to the ptrace call.
11597 * m68k-bsd-nat.c (store_registers): Likewise.
11598
bc107784
KR
115992020-03-14 Kamil Rytarowski <n54@gmx.com>
11600
11601 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11602 gdb_byte *.
11603 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11604 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11605 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11606
01a80117
KR
116072020-03-14 Kamil Rytarowski <n54@gmx.com>
11608
11609 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11610 nbsd_nat_target instead of inf_ptrace_target.
11611 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11612 nbsd_nat_target.
11613
f90280ca
KR
116142020-03-14 Kamil Rytarowski <n54@gmx.com>
11615
11616 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11617 register_t.
11618
6def66f1
KR
116192020-03-14 Kamil Rytarowski <n54@gmx.com>
11620
11621 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11622 it to the ptrace call.
11623 * alpha-bsd-nat.c (store_registers): Likewise.
11624
66eaca97
KR
116252020-03-14 Kamil Rytarowski <n54@gmx.com>
11626
11627 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11628 includes.
11629 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11630 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11631 fill_fpregset): Likewise.
11632
4fed520b
KR
116332020-03-14 Kamil Rytarowski <n54@gmx.com>
11634
11635 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11636 nbsd_nat_target instead of inf_ptrace_target.
11637 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11638 nbsd_nat_target.
11639
2190cf06
KR
116402020-03-14 Kamil Rytarowski <n54@gmx.com>
11641
11642 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11643 register_t.
11644
75c56d3d
KR
116452020-03-14 Kamil Rytarowski <n54@gmx.com>
11646
11647 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11648 it to the ptrace call.
11649 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11650 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11651 * arm-nbsd-nat.c (store_register): Likewise.
11652 * arm-nbsd-nat.c (store_regs): Likewise.
11653 * arm-nbsd-nat.c (store_fp_register): Likewise.
11654 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11655
6018d381
KR
116562020-03-14 Kamil Rytarowski <n54@gmx.com>
11657
11658 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11659 nbsd_nat_target instead of inf_ptrace_target.
11660 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11661 nbsd_nat_target.
11662
013f99f0
KR
116632020-03-14 Kamil Rytarowski <n54@gmx.com>
11664
11665 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11666 it to the ptrace call.
11667 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11668
12753073
KR
116692020-03-14 Kamil Rytarowski <n54@gmx.com>
11670
6227b330
KR
11671 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11672 it to the ptrace call.
11673 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11674
116752020-03-14 Kamil Rytarowski <n54@gmx.com>
11676
11677 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11678 gdb_byte *.
12753073
KR
11679 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11680
d5be5fa4
KR
116812020-03-14 Kamil Rytarowski <n54@gmx.com>
11682
11683 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11684 instead of inf_ptrace_target.
11685 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11686 nbsd_nat_target.
11687
8110f842
KR
116882020-03-14 Kamil Rytarowski <n54@gmx.com>
11689
11690 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11691 register_t.
11692
52feded7
KR
116932020-03-14 Kamil Rytarowski <n54@gmx.com>
11694
11695 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11696 register_t.
11697
25567eee
KR
116982020-03-14 Kamil Rytarowski <n54@gmx.com>
11699
11700 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11701 register_t.
11702
426a9c18
TT
117032020-03-13 Tom Tromey <tom@tromey.com>
11704
11705 * value.h (val_print): Don't declare.
11706 * valprint.h (val_print_array_elements)
11707 (val_print_scalar_formatted, generic_val_print): Don't declare.
11708 * valprint.c (generic_val_print_array): Take a struct value.
11709 (generic_val_print_ptr, generic_val_print_memberptr)
11710 (generic_val_print_bool, generic_val_print_int)
11711 (generic_val_print_char, generic_val_print_complex)
11712 (generic_val_print): Remove.
11713 (generic_value_print): Update.
11714 (do_val_print): Remove unused parameters. Don't call
11715 la_val_print.
11716 (val_print): Remove.
11717 (common_val_print): Update. Don't call value_check_printable.
11718 (val_print_scalar_formatted, val_print_array_elements): Remove.
11719 * rust-lang.c (rust_val_print): Remove.
11720 (rust_language_defn): Update.
11721 * p-valprint.c (pascal_val_print): Remove.
11722 (pascal_value_print_inner): Update.
11723 (pascal_object_print_val_fields, pascal_object_print_val):
11724 Remove.
11725 (pascal_object_print_static_field): Update.
11726 * p-lang.h (pascal_val_print): Don't declare.
11727 * p-lang.c (pascal_language_defn): Update.
11728 * opencl-lang.c (opencl_language_defn): Update.
11729 * objc-lang.c (objc_language_defn): Update.
11730 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11731 * m2-lang.h (m2_val_print): Don't declare.
11732 * m2-lang.c (m2_language_defn): Update.
11733 * language.h (struct language_defn) <la_val_print>: Remove.
11734 * language.c (unk_lang_value_print_inner): Rename. Change
11735 argument types.
11736 (unknown_language_defn, auto_language_defn): Update.
11737 * go-valprint.c (go_val_print): Remove.
11738 * go-lang.h (go_val_print): Don't declare.
11739 * go-lang.c (go_language_defn): Update.
11740 * f-valprint.c (f_val_print): Remove.
11741 * f-lang.h (f_value_print): Don't declare.
11742 * f-lang.c (f_language_defn): Update.
11743 * d-valprint.c (d_val_print): Remove.
11744 * d-lang.h (d_value_print): Don't declare.
11745 * d-lang.c (d_language_defn): Update.
11746 * cp-valprint.c (cp_print_value_fields)
11747 (cp_print_value_fields_rtti, cp_print_value): Remove.
11748 (cp_print_static_field): Update.
11749 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11750 (c_val_print_struct, c_val_print_union, c_val_print_int)
11751 (c_val_print_memberptr, c_val_print): Remove.
11752 * c-lang.h (c_val_print_array, cp_print_value_fields)
11753 (cp_print_value_fields_rtti): Don't declare.
11754 * c-lang.c (c_language_defn, cplus_language_defn)
11755 (asm_language_defn, minimal_language_defn): Update.
11756 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11757 (ada_val_print_enum): Take a struct value.
11758 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11759 (ada_val_print): Remove.
11760 (ada_value_print_1): Update.
11761 (printable_val_type): Remove.
11762 * ada-lang.h (ada_val_print): Don't declare.
11763 * ada-lang.c (ada_language_defn): Update.
11764
42331a1e
TT
117652020-03-13 Tom Tromey <tom@tromey.com>
11766
11767 * valprint.c (do_val_print): Update.
11768 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11769 a struct value.
11770 (value_to_value_object_no_release): Declare.
11771 * python/py-value.c (value_to_value_object_no_release): New
11772 function.
11773 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11774 struct value.
11775 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11776 function.
11777 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11778 a struct value.
11779 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11780 Declare.
11781 (gdbscm_apply_val_pretty_printer): Take a struct value.
11782 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11783 value.
11784 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11785 value.
11786 * extension-priv.h (struct extension_language_ops)
11787 <apply_val_pretty_printer>: Take a struct value.
11788 * cp-valprint.c (cp_print_value): Create a struct value.
11789 (cp_print_value): Update.
11790
3a916a97
TT
117912020-03-13 Tom Tromey <tom@tromey.com>
11792
11793 * ada-valprint.c (print_field_values): Call common_val_print.
11794
b59eac37
TT
117952020-03-13 Tom Tromey <tom@tromey.com>
11796
11797 * ada-valprint.c (val_print_packed_array_elements): Remove
11798 bitoffset and val parameters. Call common_val_print.
11799 (ada_val_print_string): Remove offset, address, and original_value
11800 parameters.
11801 (ada_val_print_array): Update.
11802 (ada_value_print_array): New function.
11803 (ada_value_print_1): Call it.
11804
03371129
TT
118052020-03-13 Tom Tromey <tom@tromey.com>
11806
11807 * ada-valprint.c (ada_value_print): Use common_val_print.
11808
2e088f8b
TT
118092020-03-13 Tom Tromey <tom@tromey.com>
11810
11811 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11812
39ef85a8
TT
118132020-03-13 Tom Tromey <tom@tromey.com>
11814
11815 * ada-valprint.c (ada_value_print_num): New function.
11816 (ada_value_print_1): Use it.
11817
b9fa6e07
TT
118182020-03-13 Tom Tromey <tom@tromey.com>
11819
11820 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11821
416595d6
TT
118222020-03-13 Tom Tromey <tom@tromey.com>
11823
11824 * ada-valprint.c (ada_value_print_ptr): New function.
11825 (ada_value_print_1): Use it.
11826
5b5e15ec
TT
118272020-03-13 Tom Tromey <tom@tromey.com>
11828
11829 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11830 call common_val_print.
11831 (ada_val_print_1): Update.
11832 (ada_value_print_1): New function.
11833 (ada_value_print_inner): Rewrite.
11834
fbf54e75
TT
118352020-03-13 Tom Tromey <tom@tromey.com>
11836
11837 * cp-valprint.c (cp_print_value_fields): Update.
11838 (cp_print_value): New function.
11839
64b653ca
TT
118402020-03-13 Tom Tromey <tom@tromey.com>
11841
11842 * m2-valprint.c (m2_value_print_inner): Use
11843 cp_print_value_fields.
11844 * cp-valprint.c (cp_print_value_fields): New function.
11845 * c-valprint.c (c_value_print_struct): New function.
11846 (c_value_print_inner): Use c_value_print_struct.
11847 * c-lang.h (cp_print_value_fields): Declare.
11848
6999f067
TT
118492020-03-13 Tom Tromey <tom@tromey.com>
11850
11851 * c-valprint.c (c_value_print_array): New function.
11852 (c_value_print_inner): Use it.
11853
ce80b8bd
TT
118542020-03-13 Tom Tromey <tom@tromey.com>
11855
11856 * c-valprint.c (c_value_print_memberptr): New function.
11857 (c_value_print_inner): Use it.
11858
2faac269
TT
118592020-03-13 Tom Tromey <tom@tromey.com>
11860
11861 * c-valprint.c (c_value_print_int): New function.
11862 (c_value_print_inner): Use it.
11863
da3e2c29
TT
118642020-03-13 Tom Tromey <tom@tromey.com>
11865
11866 * c-valprint.c (c_value_print_ptr): New function.
11867 (c_value_print_inner): Use it.
11868
50836231
TT
118692020-03-13 Tom Tromey <tom@tromey.com>
11870
11871 * c-valprint.c (c_value_print_inner): Rewrite.
11872
4f412b6e
TT
118732020-03-13 Tom Tromey <tom@tromey.com>
11874
11875 * valprint.c (generic_value_print_complex): New function.
11876 (generic_value_print): Use it.
11877
f5354008
TT
118782020-03-13 Tom Tromey <tom@tromey.com>
11879
11880 * valprint.c (generic_val_print_float): Don't call
11881 val_print_scalar_formatted.
11882 (generic_val_print, generic_value_print): Update.
11883
3eec3b05
TT
118842020-03-13 Tom Tromey <tom@tromey.com>
11885
11886 * valprint.c (generic_value_print_char): New function
11887 (generic_value_print): Use it.
11888
fdddfccb
TT
118892020-03-13 Tom Tromey <tom@tromey.com>
11890
11891 * valprint.c (generic_value_print_int): New function.
11892 (generic_value_print): Use it.
11893
6dde7521
TT
118942020-03-13 Tom Tromey <tom@tromey.com>
11895
11896 * valprint.c (generic_value_print_bool): New function.
11897 (generic_value_print): Use it.
11898
4112d2e6
TT
118992020-03-13 Tom Tromey <tom@tromey.com>
11900
11901 * valprint.c (generic_val_print_func): Simplify.
11902 (generic_val_print, generic_value_print): Update.
11903
65786af6
TT
119042020-03-13 Tom Tromey <tom@tromey.com>
11905
11906 * valprint.c (generic_val_print_flags): Remove.
11907 (generic_val_print, generic_value_print): Update.
11908 (val_print_type_code_flags): Add original_value parameter.
11909
40f3ce18
TT
119102020-03-13 Tom Tromey <tom@tromey.com>
11911
11912 * valprint.c (generic_val_print): Update.
11913 (generic_value_print): Update.
11914 * valprint.c (generic_val_print_enum): Don't call
11915 val_print_scalar_formatted.
11916
2a5b130b
TT
119172020-03-13 Tom Tromey <tom@tromey.com>
11918
11919 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11920 * valprint.c (generic_value_print_ptr): New function.
11921
abc66ce9
TT
119222020-03-13 Tom Tromey <tom@tromey.com>
11923
11924 * valprint.c (generic_value_print): Rewrite.
11925
07a32858
TT
119262020-03-13 Tom Tromey <tom@tromey.com>
11927
11928 * p-valprint.c (pascal_object_print_value_fields)
11929 (pascal_object_print_value): New functions.
11930
64d64d3a
TT
119312020-03-13 Tom Tromey <tom@tromey.com>
11932
11933 * p-valprint.c (pascal_value_print_inner): Rewrite.
11934
6a95a1f5
TT
119352020-03-13 Tom Tromey <tom@tromey.com>
11936
11937 * f-valprint.c (f_value_print_innner): Rewrite.
11938
59fcdac6
TT
119392020-03-13 Tom Tromey <tom@tromey.com>
11940
11941 * m2-valprint.c (m2_print_unbounded_array): New overload.
11942 (m2_print_unbounded_array): Update.
11943 (m2_print_array_contents): Take a struct value.
11944 (m2_value_print_inner): Rewrite.
11945
d133c3e1
TT
119462020-03-13 Tom Tromey <tom@tromey.com>
11947
11948 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11949 (d_value_print_inner): New function.
11950 * d-lang.h (d_value_print_inner): Declare.
11951 * d-lang.c (d_language_defn): Use d_value_print_inner.
11952
23b0f06b
TT
119532020-03-13 Tom Tromey <tom@tromey.com>
11954
11955 * go-valprint.c (go_value_print_inner): New function.
11956 * go-lang.h (go_value_print_inner): Declare.
11957 * go-lang.c (go_language_defn): Use go_value_print_inner.
11958
5f56f7cb
TT
119592020-03-13 Tom Tromey <tom@tromey.com>
11960
11961 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11962 API.
11963 (rust_val_print): Rewrite.
11964 (rust_value_print_inner): New function, from rust_val_print.
11965 (rust_language_defn): Use rust_value_print_inner.
11966
26792ee0
TT
119672020-03-13 Tom Tromey <tom@tromey.com>
11968
11969 * ada-valprint.c (ada_value_print_inner): New function.
11970 * ada-lang.h (ada_value_print_inner): Declare.
11971 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11972
24051bbe
TT
119732020-03-13 Tom Tromey <tom@tromey.com>
11974
11975 * f-valprint.c (f_value_print_innner): New function.
11976 * f-lang.h (f_value_print_innner): Declare.
11977 * f-lang.c (f_language_defn): Use f_value_print_innner.
11978
c0941be6
TT
119792020-03-13 Tom Tromey <tom@tromey.com>
11980
11981 * p-valprint.c (pascal_value_print_inner): New function.
11982 * p-lang.h (pascal_value_print_inner): Declare.
11983 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11984
62c4663d
TT
119852020-03-13 Tom Tromey <tom@tromey.com>
11986
11987 * m2-valprint.c (m2_value_print_inner): New function.
11988 * m2-lang.h (m2_value_print_inner): Declare.
11989 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11990
62182190
TT
119912020-03-13 Tom Tromey <tom@tromey.com>
11992
11993 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11994 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11995 * c-valprint.c (c_value_print_inner): New function.
11996 * c-lang.h (c_value_print_inner): Declare.
11997 * c-lang.c (c_language_defn, cplus_language_defn)
11998 (asm_language_defn, minimal_language_defn): Use
11999 c_value_print_inner.
12000
1e592a8a
TT
120012020-03-13 Tom Tromey <tom@tromey.com>
12002
12003 * p-valprint.c (pascal_object_print_value_fields): Now static.
12004 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12005
7fe471e9
TT
120062020-03-13 Tom Tromey <tom@tromey.com>
12007
12008 * c-valprint.c (c_val_print_array): Simplify.
12009
d121c6ce
TT
120102020-03-13 Tom Tromey <tom@tromey.com>
12011
12012 * valprint.c (value_print_array_elements): New function.
12013 * valprint.h (value_print_array_elements): Declare.
12014
4dba70ee
TT
120152020-03-13 Tom Tromey <tom@tromey.com>
12016
12017 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12018 * mips-tdep.c (mips_print_register): Use
12019 value_print_scalar_formatted.
12020
4f9ae810
TT
120212020-03-13 Tom Tromey <tom@tromey.com>
12022
12023 * valprint.h (value_print_scalar_formatted): Declare.
12024 * valprint.c (value_print_scalar_formatted): New function.
12025
156bfec9
TT
120262020-03-13 Tom Tromey <tom@tromey.com>
12027
12028 * valprint.h (generic_value_print): Declare.
12029 * valprint.c (generic_value_print): New function.
12030
2b4e573d
TT
120312020-03-13 Tom Tromey <tom@tromey.com>
12032
12033 * valprint.c (do_val_print): Call la_value_print_inner, if
12034 available.
12035 * rust-lang.c (rust_language_defn): Update.
12036 * p-lang.c (pascal_language_defn): Update.
12037 * opencl-lang.c (opencl_language_defn): Update.
12038 * objc-lang.c (objc_language_defn): Update.
12039 * m2-lang.c (m2_language_defn): Update.
12040 * language.h (struct language_defn) <la_value_print_inner>: New
12041 member.
12042 * language.c (unknown_language_defn, auto_language_defn): Update.
12043 * go-lang.c (go_language_defn): Update.
12044 * f-lang.c (f_language_defn): Update.
12045 * d-lang.c (d_language_defn): Update.
12046 * c-lang.c (c_language_defn, cplus_language_defn)
12047 (asm_language_defn, minimal_language_defn): Update.
12048 * ada-lang.c (ada_language_defn): Update.
12049
a1f6a07c
TT
120502020-03-13 Tom Tromey <tom@tromey.com>
12051
12052 * c-valprint.c (c_value_print): Use common_val_print.
12053
410cf315
TT
120542020-03-13 Tom Tromey <tom@tromey.com>
12055
12056 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12057
72a45c93
TT
120582020-03-13 Tom Tromey <tom@tromey.com>
12059
12060 * f-valprint.c (f77_print_array_1, f_val_print): Use
12061 common_val_print.
12062
040f66bd
TT
120632020-03-13 Tom Tromey <tom@tromey.com>
12064
12065 * riscv-tdep.c (riscv_print_one_register_info): Use
12066 common_val_print.
12067
a6e05a6c
TT
120682020-03-13 Tom Tromey <tom@tromey.com>
12069
12070 * mi/mi-main.c (output_register): Use common_val_print.
12071
3444c526
TT
120722020-03-13 Tom Tromey <tom@tromey.com>
12073
12074 * infcmd.c (default_print_one_register_info): Use
12075 common_val_print.
12076
c2a44efe
TT
120772020-03-13 Tom Tromey <tom@tromey.com>
12078
12079 * valprint.h (common_val_print_checked): Declare.
12080 * valprint.c (common_val_print_checked): New function.
12081 * stack.c (print_frame_arg): Use common_val_print_checked.
12082
b0c26e99
TT
120832020-03-13 Tom Tromey <tom@tromey.com>
12084
12085 * valprint.c (do_val_print): New function, from val_print.
12086 (val_print): Use do_val_print.
12087 (common_val_print): Use do_val_print.
12088
ce3acbe9
TT
120892020-03-13 Tom Tromey <tom@tromey.com>
12090
12091 * valprint.c (value_print): Use scoped_value_mark.
12092
96c7f873
TV
120932020-03-13 Tom de Vries <tdevries@suse.de>
12094
12095 PR symtab/25646
12096 * psymtab.c (partial_symtab::partial_symtab): Don't set
12097 globals_offset and statics_offset. Push element onto
12098 current_global_psymbols and current_static_psymbols stacks.
12099 (concat): New function.
12100 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12101 element from current_global_psymbols and current_static_psymbols
12102 stacks. Concat popped elements to global_psymbols and
12103 static_symbols.
12104 (add_psymbol_to_list): Use current_global_psymbols and
12105 current_static_psymbols stacks.
12106 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12107 current_static_psymbols fields.
12108
6ba0a321
CB
121092020-03-12 Christian Biesinger <cbiesinger@google.com>
12110
12111 * corelow.c (sniff_core_bfd): Remove.
12112 (class core_target) <m_core_vec>: Remove.
12113 (core_target::core_target): Update.
12114 (core_file_fns): Remove.
12115 (deprecated_add_core_fns): Remove.
12116 (default_core_sniffer): Remove.
12117 (sniff_core_bfd): Remove.
12118 (default_check_format): Remove.
12119 (gdb_check_format): Remove.
12120 (core_target_open): Update.
12121 (core_target::get_core_register_section): Update.
12122 (get_core_registers_cb): Update.
12123 (core_target::fetch_registers): Update.
12124 * gdbcore.h (struct core_fns): Remove.
12125 (deprecated_add_core_fns): Remove.
12126 (default_core_sniffer): Remove.
12127 (default_check_format): Remove.
12128
227031b2
TT
121292020-03-12 Tom Tromey <tom@tromey.com>
12130
12131 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12132 CORE_ADDR.
12133 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12134
53807e9f
TT
121352020-03-12 Tom Tromey <tom@tromey.com>
12136
12137 * remote.c (remote_target::download_tracepoint)
12138 (remote_target::enable_tracepoint)
12139 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12140 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12141 sprintf_vma.
12142
64f25102
TT
121432020-03-12 Tom Tromey <tom@tromey.com>
12144
12145 * symfile-mem.c: Update CORE_ADDR size assert.
12146
272cd5a3
SM
121472020-03-12 Simon Marchi <simon.marchi@efficios.com>
12148
12149 * selftest.m4: Move to gdbsupport/.
12150 * acinclude.m4: Update path to selftest.m4.
12151
74cd3f9d
SM
121522020-03-12 Simon Marchi <simon.marchi@efficios.com>
12153
12154 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12155 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12156 gdbarch-selfselftests.c and selftest-arch.c.
12157 (SUBDIR_UNITTESTS_OBS): Rename to...
12158 (SELFTESTS_OBS): ... this.
12159 (COMMON_SFILES): Remove disasm-selftests.c and
12160 gdbarch-selftests.c.
12161 * configure.ac: Don't add selftest-arch.{c,o} to
12162 CONFIG_{SRCS,OBS}.
12163 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12164 preprocessor conditions.
12165
db6878ac
SM
121662020-03-12 Simon Marchi <simon.marchi@efficios.com>
12167
12168 * configure.ac: Don't source bfd/development.sh.
12169 * selftest.m4: Modify comment.
12170 * configure: Re-generate.
12171
4d696a5c
SM
121722020-03-12 Simon Marchi <simon.marchi@efficios.com>
12173
12174 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12175 not "true" or "false".
12176 * configure: Re-generate.
12177
8dd8e1c7
CB
121782020-03-12 Christian Biesinger <cbiesinger@google.com>
12179
12180 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12181 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12182 renamed to arm_nbsd_supply_gregset.
12183 (fetch_register): Update to call arm_nbsd_supply_gregset.
12184 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12185 (arm_netbsd_nat_target::fetch_registers): Update.
12186 (fetch_elfcore_registers): Removed.
12187 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12188 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12189 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12190 not require NetBSD system headers.
12191 (arm_nbsd_regset): New struct.
12192 (arm_nbsd_iterate_over_regset_sections): New function.
12193 (arm_netbsd_init_abi_common): Updated to call
12194 set_gdbarch_iterate_over_regset_sections.
12195 * arm-nbsd-tdep.h: New file.
12196
dd69bf7a
KB
121972020-03-11 Kevin Buettner <kevinb@redhat.com>
12198
12199 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12200 recursion.
12201
a0761e34
SM
122022020-03-11 Simon Marchi <simon.marchi@efficios.com>
12203
12204 * configure: Re-generate.
12205
e7a82140
TT
122062020-03-11 Tom Tromey <tromey@adacore.com>
12207
12208 * ada-typeprint.c (print_choices): Fix comment.
12209
dcc050c8
AB
122102020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12211
12212 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12213 previous item in the list, when the list has no items.
12214
1c33af77
TV
122152020-03-11 Tom de Vries <tdevries@suse.de>
12216
12217 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12218 PROP_LOCLIST handling code.
12219
8c95582d
AB
122202020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12221
12222 * buildsym-legacy.c (record_line): Pass extra parameter to
12223 record_line.
12224 * buildsym.c (buildsym_compunit::record_line): Take an extra
12225 parameter, reduce duplication in the line table, and record the
12226 is_stmt flag in the line table.
12227 * buildsym.h (buildsym_compunit::record_line): Add extra
12228 parameter.
12229 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12230 non-statement lines.
12231 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12232 this to the symtab builder.
12233 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12234 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12235 through to dwarf_record_line_1.
12236 * infrun.c (process_event_stop_test): When stepping, don't stop at
12237 a non-statement instruction, and only refresh the step info when
12238 we land in the middle of a line's range. Also add an extra
12239 comment.
12240 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12241 field.
12242 * record-btrace.c (btrace_find_line_range): Only record lines
12243 marked as is-statement.
12244 * stack.c (frame_show_address): Show the frame address if we are
12245 in a non-statement sal.
12246 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12247 (maintenance_print_one_line_table): Print a header for the is_stmt
12248 column, and include is_stmt information in the output.
12249 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12250 preference to non-statements.
12251 (find_pcs_for_symtab_line): Prefer is-statement entries.
12252 (find_line_common): Likewise.
12253 * symtab.h (struct linetable_entry): Add is_stmt field.
12254 (struct symtab_and_line): Likewise.
12255 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12256 arranging the line table.
12257
e4003a34
TV
122582020-03-07 Tom de Vries <tdevries@suse.de>
12259
12260 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12261 DIE.
12262
e8932576
TT
122632020-03-07 Tom Tromey <tom@tromey.com>
12264
12265 * valops.c (value_literal_complex): Remove obsolete comment.
12266 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12267 comment.
12268
29734269
SM
122692020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12270
12271 * infrun.h: Forward-declare thread_info.
12272 (set_step_info): Add thread_info parameter, add doc.
12273 * infrun.c (set_step_info): Add thread_info parameter, move doc
12274 to header.
12275 * infrun.c (process_event_stop_test): Pass thread to
12276 set_step_info call.
12277 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12278 set_step_info.
12279 (prepare_one_step): Add thread_info parameter, pass it to
12280 set_step_frame and prepare_one_step (recursive) call.
12281 (step_1): Pass thread to prepare_one_step call.
12282 (step_command_fsm::should_stop): Pass thread to
12283 prepare_one_step.
12284 (until_next_fsm): Pass thread to set_step_frame call.
12285 (finish_command): Pass thread to set_step_info call.
12286
b7d64b29
HD
122872020-03-06 Hannes Domani <ssbssa@yahoo.de>
12288
12289 * windows-tdep.c (windows_solib_create_inferior_hook):
12290 Check if inferior is running.
12291
09f2921c
TV
122922020-03-06 Tom de Vries <tdevries@suse.de>
12293
12294 * NEWS: Fix "the the".
12295 * ctfread.c: Same.
12296
fd760e79
TV
122972020-03-06 Tom de Vries <tdevries@suse.de>
12298
12299 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12300
20ea4a60
AB
123012020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12302
12303 * .dir-locals.el: Add a comment referencing the other copies of
12304 this file.
12305
0afbabf0
JB
123062020-03-05 John Baldwin <jhb@FreeBSD.org>
12307
12308 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12309 psargs.
12310
842806cb
TBA
123112020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12312
12313 * .gitattributes: New file.
12314
be1e3d3e
TT
123152020-03-04 Tom Tromey <tom@tromey.com>
12316
12317 * symmisc.c (print_symbol_bcache_statistics)
12318 (print_objfile_statistics): Update.
12319 * symfile.c (allocate_symtab): Use intern.
12320 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12321 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12322 macro_cache>: Remove.
12323 <string_cache>: New member.
12324 (struct objfile) <intern>: New methods.
12325 * elfread.c (elf_symtab_read): Use intern.
12326 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12327 (dwarf2_compute_name, dwarf2_physname)
12328 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12329 names.
12330 (guess_partial_die_structure_name): Update.
12331 (partial_die_info::fixup): Intern name.
12332 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12333 name.
12334 (dwarf2_name): Intern name. Update.
12335 * buildsym.c (buildsym_compunit::get_macro_table): Use
12336 string_cache.
12337
4e7625fd
TT
123382020-03-04 Tom Tromey <tom@tromey.com>
12339
12340 * jit.c (bfd_open_from_target_memory): Make "target" const.
12341 * corefile.c (gnutarget): Now const.
12342 * gdbcore.h (gnutarget): Now const.
12343
46f9f931
HD
123442020-03-04 Hannes Domani <ssbssa@yahoo.de>
12345
12346 * NEWS: Mention support for WOW64 processes.
12347 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12348 (amd64_windows_segment_register_p): Remove static.
12349 (_initialize_amd64_windows_nat): Update.
12350 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12351 * i386-windows-nat.c (context_offset): Update.
12352 (i386_mappings): Rename and remove static.
12353 (i386_windows_segment_register_p): Remove static.
12354 (_initialize_i386_windows_nat): Update.
12355 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12356 (STATUS_WX86_SINGLE_STEP): New macro.
12357 (EnumProcessModulesEx): New macro.
12358 (Wow64SuspendThread): New macro.
12359 (Wow64GetThreadContext): New macro.
12360 (Wow64SetThreadContext): New macro.
12361 (Wow64GetThreadSelectorEntry): New macro.
12362 (windows_set_context_register_offsets): Add static.
12363 (windows_set_segment_register_p): Likewise.
12364 (windows_add_thread): Adapt for WOW64 processes.
12365 (windows_fetch_one_register): Likewise.
12366 (windows_nat_target::fetch_registers): Likewise.
12367 (windows_store_one_register): Likewise.
12368 (display_selector): Likewise.
12369 (display_selectors): Likewise.
12370 (handle_exception): Likewise.
12371 (windows_continue): Likewise.
12372 (windows_nat_target::resume): Likewise.
12373 (windows_add_all_dlls): Likewise.
12374 (do_initial_windows_stuff): Likewise.
12375 (windows_nat_target::attach): Likewise.
12376 (windows_get_exec_module_filename): Likewise.
12377 (windows_nat_target::create_inferior): Likewise.
12378 (windows_xfer_siginfo): Likewise.
12379 (_initialize_loadable): Initialize Wow64SuspendThread,
12380 Wow64GetThreadContext, Wow64SetThreadContext,
12381 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12382 * windows-nat.h (windows_set_context_register_offsets):
12383 Remove declaration.
12384 (windows_set_segment_register_p): Likewise.
12385 (i386_windows_segment_register_p): Add declaration.
12386 (amd64_windows_segment_register_p): Likewise.
12387
440cf44e
LM
123882020-03-04 Luis Machado <luis.machado@linaro.org>
12389
12390 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12391 in "info registers" for AArch64/ARM.
12392
12393 The change caused "info registers" to not print GPR's.
12394
12395 gdb/ChangeLog:
12396
12397 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12398
12399 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12400 when reg->group is empty and reggroup is not.
12401
1009d92f
TT
124022020-03-03 Tom Tromey <tromey@adacore.com>
12403
12404 * dwarf2/frame.c (struct dwarf2_frame_cache)
12405 <checked_tailcall_bottom, entry_cfa_sp_offset,
12406 entry_cfa_sp_offset_p>: Remove members.
12407 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12408 (dwarf2_frame_prev_register): Don't call
12409 dwarf2_tailcall_sniffer_first.
12410 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12411 * frame-unwind.c (add_unwinder): New fuction.
12412 (frame_unwind_init): Use it. Add tailcall unwinder.
12413
5e5d66b6
AB
124142020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12415 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12416
12417 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12418 value should be printed as true.
12419
584cf46d
HD
124202020-03-03 Hannes Domani <ssbssa@yahoo.de>
12421
12422 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12423 (windows_init_abi): Set and use windows_so_ops.
12424
7b973adc
SDJ
124252020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12426
12427 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12428 when verifying if dealing with a convenience variable.
12429
bb7b70ab
LM
124302020-03-03 Luis Machado <luis.machado@linaro.org>
12431
12432 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12433
9822cb57
SM
124342020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12435
12436 * infrun.c (gdbarch_supports_displaced_stepping): New.
12437 (use_displaced_stepping): Break up conditions in smaller pieces.
12438 Use gdbarch_supports_displaced_stepping.
12439 (displaced_step_prepare_throw): Use
12440 gdbarch_supports_displaced_stepping.
12441
63e163f2
AB
124422020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12443
12444 * NEWS: Mention new behaviour of the history filename.
12445 * top.c (write_history_p): Add comment.
12446 (show_write_history_p): Add header comment, give a different
12447 message when history writing is on, but the history filename is
12448 empty.
12449 (history_filename): Add comment.
12450 (history_filename_empty): New function.
12451 (show_history_filename): Add header comment, give a different
12452 message when the filename is empty.
12453 (init_history): Compare history_filename against nullptr, and only
12454 read history if the filename is not empty.
12455 (set_history_filename): Add header comment, and only make
12456 non-empty filenames absolute.
12457 (init_main): Make the filename argument to 'set history filename'
12458 optional.
12459
81b86b97
CB
124602020-03-02 Christian Biesinger <cbiesinger@google.com>
12461
12462 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12463 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12464 (fetch_fp_register): Update.
12465 (fetch_fp_regs): Update.
12466 (store_fp_register): Update.
12467 (store_fp_regs): Update.
12468 (arm_netbsd_nat_target::read_description): New function.
12469 (fetch_elfcore_registers): Update.
12470
24ed6739
AB
124712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12472
12473 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12474 general_thread if the stop reply is missing a thread-id.
12475 (remote_target::process_stop_reply): Use the first non-exited
12476 thread if the target didn't pass a thread-id.
12477 * infrun.c (do_target_wait): Move call to
12478 switch_to_inferior_no_thread to ....
12479 (do_target_wait_1): ... here.
12480
a84bb2a0
JT
124812020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12482
12483 * debuginfod-support.c: Include defs.h first.
12484
658dadf0
TV
124852020-02-28 Tom de Vries <tdevries@suse.de>
12486
12487 * symfile.c (set_initial_language): Use default language for lookup.
12488
4ebe4877
SM
124892020-02-28 Simon Marchi <simon.marchi@efficios.com>
12490
12491 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12492 reader variable, pass `this` to read_cutu_die_from_dwo.
12493
e5da1139
AM
124942020-02-27 Aaron Merey <amerey@redhat.com>
12495
12496 * source.c (open_source_file): Check for nullptr when computing
12497 srcpath.
12498
317f7127
TT
124992020-02-27 Tom Tromey <tromey@adacore.com>
12500
12501 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12502 member.
12503 (dwarf2_add_field): Don't update nfields.
12504 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12505
3104d9ee
AB
125062020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12507
12508 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12509 abs.
12510
b83470bf
TT
125112020-02-26 Tom Tromey <tom@tromey.com>
12512
12513 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12514 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12515 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12516 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12517 per_cu_data.
12518
edfe0a0c
TT
125192020-02-26 Tom Tromey <tom@tromey.com>
12520
12521 * dwarf2/index-write.c (psym_index_map): Change type.
12522 (add_address_entry_worker, write_one_signatured_type)
12523 (recursively_count_psymbols, recursively_write_psymbols)
12524 (class debug_names, psyms_seen_size, write_gdbindex)
12525 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12526
0d79cdc4
AM
125272020-02-26 Aaron Merey <amerey@redhat.com>
12528
12529 * Makefile.in: Handle optional debuginfod support.
12530 * NEWS: Update.
12531 * README: Add --with-debuginfod summary.
12532 * config.in: Regenerate.
12533 * configure: Regenerate.
12534 * configure.ac: Handle optional debuginfod support.
12535 * debuginfod-support.c: debuginfod helper functions.
12536 * debuginfod-support.h: Ditto.
12537 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12538 summary.
12539 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12540 when a dwz file cannot be found.
12541 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12542 debuginfo file cannot be found.
12543 * source.c (open_source_file): Query debuginfod servers when a
12544 source file cannot be found.
12545 * top.c (print_gdb_configuration): Include
12546 --{with,without}-debuginfod in the output.
12547
b65ce565
JG
125482020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12549
12550 * thread.c (thr_try_catch_cmd): Print thread name.
12551
d4c9a4f8
SM
125522020-02-26 Simon Marchi <simon.marchi@efficios.com>
12553
12554 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12555 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12556 dwarf2_fetch_die_type_sect_off): Move to...
12557 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12558 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12559 dwarf2_fetch_die_type_sect_off): ... here.
12560 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12561 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12562 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12563
0dce4280
TV
125642020-02-26 Tom de Vries <tdevries@suse.de>
12565
12566 PR gdb/25603
12567 * symfile.c (set_initial_language): Exit-early if
12568 language_mode == language_mode_manual.
12569
450a1bfc
SM
125702020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12571
12572 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12573 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12574 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12575
9e80cfa1
AB
125762020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12577
12578 * gdbtypes.c (create_array_type_with_stride): Handle negative
12579 array strides.
12580 * valarith.c (value_subscripted_rvalue): Likewise.
12581
09624f1f
LM
125822020-02-25 Luis Machado <luis.machado@linaro.org>
12583
12584 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12585
8cb5117c
SM
125862020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12587
12588 * loc.h (dwarf2_get_die_type): Move to...
12589 * read.h (dwarf2_get_die_type): ... here.
12590 * read.c (dwarf2_get_die_type): Move doc to header.
12591
c325c44e
JB
125922020-02-25 Joel Brobecker <brobecker@adacore.com>
12593
12594 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12595 'gnulib/Makefile.in' to the list.
12596
4ac93832
TT
125972020-02-24 Tom Tromey <tom@tromey.com>
12598
12599 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12600 Remove.
12601 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12602 XOBNEWVEC.
12603
197400e8
TT
126042020-02-24 Tom Tromey <tom@tromey.com>
12605
12606 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12607 New method.
12608 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12609 (dw2_do_instantiate_symtab, dw2_get_file_names)
12610 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12611
76935768
TT
126122020-02-24 Tom Tromey <tom@tromey.com>
12613
12614 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12615 make_scoped_restore.
12616 (dwarf2_psymtab::read_symtab): Don't clear
12617 reading_partial_symbols.
12618
a88ef40d
TV
126192020-02-24 Tom de Vries <tdevries@suse.de>
12620
12621 PR gdb/25592
12622 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12623
c9af6521
TV
126242020-02-24 Tom de Vries <tdevries@suse.de>
12625
12626 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12627 commands layout next/prev/regs.
12628
5707a07a
TT
126292020-02-22 Tom Tromey <tom@tromey.com>
12630
12631 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12632 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12633
3b0fb49e
TT
126342020-02-22 Tom Tromey <tom@tromey.com>
12635
12636 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12637
283be8bf
TT
126382020-02-22 Tom Tromey <tom@tromey.com>
12639
12640 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12641 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12642 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12643 * tui/tui.c (_initialize_tui): Add usage text.
12644
ca793b96
TT
126452020-02-22 Tom Tromey <tom@tromey.com>
12646
12647 * tui/tui-win.c (tui_set_focus_command)
12648 (tui_set_win_height_command): Use error_no_arg.
12649 (_initialize_tui_win): Update help text.
12650 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12651
432b5c40
TT
126522020-02-22 Tom Tromey <tom@tromey.com>
12653
12654 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12655 * tui/tui-disasm.h (struct tui_disasm_window)
12656 <display_start_addr>: Declare.
12657 * tui/tui-source.h (struct tui_source_window)
12658 <display_start_addr>: Declare.
12659 * tui/tui-winsource.h (struct tui_source_window_base)
12660 <show_source_line, display_start_addr>: New methods.
12661 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12662 Rename and move to protected section.
12663 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12664 (tui_source_window_base::do_erase_source_content): Update.
12665 (tui_source_window_base::show_source_line): Now a method.
12666 (tui_source_window_base::show_source_content)
12667 (tui_source_window_base::tui_source_window_base)
12668 (tui_source_window_base::rerender)
12669 (tui_source_window_base::refill)
12670 (tui_source_window_base::do_scroll_horizontal)
12671 (tui_source_window_base::set_is_exec_point_at)
12672 (tui_source_window_base::update_breakpoint_info)
12673 (tui_source_window_base::update_exec_info): Update.
12674 * tui/tui-source.c (tui_source_window::set_contents)
12675 (tui_source_window::showing_source_p)
12676 (tui_source_window::do_scroll_vertical)
12677 (tui_source_window::location_matches_p)
12678 (tui_source_window::line_is_displayed): Update.
12679 (tui_source_window::display_start_addr): New method.
12680 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12681 (tui_disasm_window::do_scroll_vertical)
12682 (tui_disasm_window::location_matches_p): Update.
12683 (tui_disasm_window::display_start_addr): New method.
12684
01b1af32
TT
126852020-02-22 Tom Tromey <tom@tromey.com>
12686
12687 * NEWS: Add entry for gdb.register_window_type.
12688 * tui/tui-layout.h (window_factory): New typedef.
12689 (tui_register_window): Declare.
12690 * tui/tui-layout.c (saved_tui_windows): New global.
12691 (tui_apply_current_layout): Use it.
12692 (tui_register_window): New function.
12693 * python/python.c (do_start_initialization): Call
12694 gdbpy_initialize_tui.
12695 (python_GdbMethods): Add "register_window_type" function.
12696 * python/python-internal.h (gdbpy_register_tui_window)
12697 (gdbpy_initialize_tui): Declare.
12698 * python/py-tui.c: New file.
12699 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12700
fc96d20b
TT
127012020-02-22 Tom Tromey <tom@tromey.com>
12702
12703 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12704
935c78c0
TT
127052020-02-22 Tom Tromey <tom@tromey.com>
12706
12707 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12708 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12709 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12710 (tui_set_win_focus_to): Move from tui-win.c.
12711
0240c8f1
TT
127122020-02-22 Tom Tromey <tom@tromey.com>
12713
12714 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12715 functions.
12716 (known_window_types): New global.
12717 (tui_get_window_by_name): Reimplement.
12718 (initialize_known_windows): New function.
12719 (validate_window_name): Rewrite.
12720 (_initialize_tui_layout): Call initialize_known_windows.
12721
fdb01f0c
TT
127222020-02-22 Tom Tromey <tom@tromey.com>
12723
12724 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12725 Remove constants.
12726 * tui/tui-winsource.h (struct tui_source_window_base)
12727 <tui_source_window_base>: Remove parameter.
12728 * tui/tui-winsource.c
12729 (tui_source_window_base::tui_source_window_base): Remove
12730 parameter.
12731 (tui_source_window_base::refill): Update.
12732 * tui/tui-stack.h (struct tui_locator_window)
12733 <tui_locator_window>: Update.
12734 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12735 Default the constructor.
12736 * tui/tui-regs.h (struct tui_data_item_window)
12737 <tui_data_item_window>: Default the constructor.
12738 (struct tui_data_window) <tui_data_window>: Likewise.
12739 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12740 Default the constructor.
12741 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12742 Default the constructor.
12743 <type>: Remove.
12744 (struct tui_win_info) <tui_win_info>: Default the constructor.
12745 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12746 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12747 Default the constructor.
12748
865a5aec
TT
127492020-02-22 Tom Tromey <tom@tromey.com>
12750
12751 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12752 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12753 * tui/tui-win.c (tui_resize_all): Don't call
12754 tui_delete_invisible_windows.
12755 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12756 done.
12757 (tui_set_layout): Update.
12758 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12759 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12760 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12761
e098d18c
TT
127622020-02-22 Tom Tromey <tom@tromey.com>
12763
12764 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12765 correctly.
12766
eb9c8874
TT
127672020-02-22 Tom Tromey <tom@tromey.com>
12768
12769 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12770
7eed1a8e
TT
127712020-02-22 Tom Tromey <tom@tromey.com>
12772
12773 * tui/tui-winsource.h (struct tui_source_window_iterator)
12774 <inner_iterator>: New etytypedef.
12775 <tui_source_window_iterator>: Take "end" parameter.
12776 <tui_source_window_iterator>: Take iterator.
12777 <operator*, advance>: Update.
12778 <m_iter>: Change type.
12779 <m_end>: New field.
12780 (struct tui_source_windows) <begin, end>: Update.
12781 * tui/tui-layout.c (tui_windows): New global.
12782 (tui_apply_current_layout): Clear tui_windows.
12783 (tui_layout_window::apply): Update tui_windows.
12784 * tui/tui-data.h (tui_windows): Declare.
12785 (all_tui_windows): Now inline function.
12786 (class tui_window_iterator, struct all_tui_windows): Remove.
12787
7c043ba6
TT
127882020-02-22 Tom Tromey <tom@tromey.com>
12789
12790 PR tui/17850:
12791 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12792 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12793 "height" argument.
12794 (class tui_layout_window) <get_sizes>: Likewise.
12795 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12796 argument.
12797 <get_sizes>: Add "height" argument.
12798 <m_vertical>: New field.
12799 * tui/tui-layout.c (tui_layout_split::clone): Update.
12800 (tui_layout_split::get_sizes): Add "height" argument.
12801 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12802 (tui_new_layout_command): Parse "-horizontal".
12803 (_initialize_tui_layout): Update help string.
12804 (tui_layout_split::specification): Add "-horizontal" when needed.
12805 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12806 argument.
12807 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12808 New methods.
12809
6bc56648
TT
128102020-02-22 Tom Tromey <tom@tromey.com>
12811
12812 * tui/tui-layout.h (enum tui_adjust_result): New.
12813 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12814 (class tui_layout_window) <adjust_size>: Return
12815 tui_adjust_result. Rewrite.
12816 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12817 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12818
c22fef7e
TT
128192020-02-22 Tom Tromey <tom@tromey.com>
12820
12821 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12822 parameter and return types.
12823 (class tui_layout_base) <specification>: Add "depth".
12824 (class tui_layout_window) <specification>: Add "depth".
12825 (class tui_layout_split) <specification>: Add "depth".
12826 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12827 and return types.
12828 (tui_new_layout_command): Parse sub-layouts.
12829 (_initialize_tui_layout): Update help string.
12830 (tui_layout_window::specification): Add "depth".
12831 (add_layout_command): Update.
12832
ee325b61
TT
128332020-02-22 Tom Tromey <tom@tromey.com>
12834
12835 * NEWS: Add "tui new-layout" item.
12836 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12837 Add new-layout command to help text.
12838 (validate_window_name): New function.
12839 (tui_new_layout_command): New function.
12840 (_initialize_tui_layout): Register "new-layout".
12841 (tui_layout_window::specification): New method.
12842 (tui_layout_window::specification): New method.
12843 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12844 method.
12845 (class tui_layout_window) <specification>: New method.
12846 (class tui_layout_split) <specification>: New method.
12847
416eb92d
TT
128482020-02-22 Tom Tromey <tom@tromey.com>
12849
12850 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12851 * tui/tui-win.c (window_name_completer): Update comment.
12852 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12853 Declare method.
12854 (class tui_layout_window) <replace_window>: Likewise.
12855 (class tui_layout_split) <replace_window>: Likewise.
12856 (tui_set_layout): Don't declare.
12857 (tui_set_initial_layout): Declare function.
12858 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12859 (asm_regs_layout): New globals.
12860 (tui_current_layout, show_layout): Remove.
12861 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12862 (find_layout, tui_apply_layout): New function.
12863 (layout_completer): Remove.
12864 (tui_next_layout): Reimplement.
12865 (tui_next_layout_command): New function.
12866 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12867 (tui_regs_layout): Reimplement.
12868 (tui_regs_layout_command): New function.
12869 (extract_display_start_addr): Rewrite.
12870 (next_layout, prev_layout): Remove.
12871 (tui_layout_window::replace_window): New method.
12872 (tui_layout_split::replace_window): New method.
12873 (destroy_layout): New function.
12874 (layout_list): New global.
12875 (add_layout_command): New function.
12876 (initialize_layouts): Update.
12877 (tui_layout_command): New function.
12878 (_initialize_tui_layout): Install "layout" commands.
12879 * tui/tui-data.h (enum tui_layout_type): Remove.
12880 (tui_current_layout): Don't declare.
12881
0dbc2fc7
TT
128822020-02-22 Tom Tromey <tom@tromey.com>
12883
12884 * tui/tui-regs.c (tui_reg_layout): Remove.
12885 (tui_reg_command): Use tui_regs_layout.
12886 * tui/tui-layout.h (tui_reg_command): Declare.
12887 * tui/tui-layout.c (tui_reg_command): New function.
12888
5afe342e
TT
128892020-02-22 Tom Tromey <tom@tromey.com>
12890
12891 * tui/tui.c (tui_rl_delete_other_windows): Call
12892 tui_remove_some_windows.
12893 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12894 Declare method.
12895 (class tui_layout_window) <remove_windows>: New method.
12896 (class tui_layout_split) <remove_windows>: Declare.
12897 (tui_remove_some_windows): Declare.
12898 * tui/tui-layout.c (tui_remove_some_windows): New function.
12899 (tui_layout_split::remove_windows): New method.
12900
427326a8
TT
129012020-02-22 Tom Tromey <tom@tromey.com>
12902
12903 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12904 * tui/tui-layout.h (tui_next_layout): Declare.
12905 * tui/tui-layout.c (tui_next_layout): New function.
12906
3fe12b6d
TT
129072020-02-22 Tom Tromey <tom@tromey.com>
12908
12909 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12910 correct coordinates.
12911
59b8b5d2
TT
129122020-02-22 Tom Tromey <tom@tromey.com>
12913
12914 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12915 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12916 DATA_WIN case.
12917
2a3d458b
TT
129182020-02-22 Tom Tromey <tom@tromey.com>
12919
12920 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12921 TUI_DISASM_WIN, not tui_win_list.
12922
3f0cbb04
TT
129232020-02-22 Tom Tromey <tom@tromey.com>
12924
12925 * valprint.c (generic_val_print_enum_1)
12926 (val_print_type_code_flags): Style member names.
12927 * rust-lang.c (val_print_struct, rust_print_enum)
12928 (rust_print_struct_def, rust_internal_print_type): Style member
12929 names.
12930 * p-valprint.c (pascal_object_print_value_fields): Style member
12931 names. Only call fprintf_symbol_filtered for static members.
12932 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12933 * f-valprint.c (f_val_print): Style member names.
12934 * f-typeprint.c (f_type_print_base): Style member names.
12935 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12936 call fprintf_symbol_filtered for static members.
12937 (cp_print_class_member): Style member names.
12938 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12939 member names.
12940 * ada-valprint.c (ada_print_scalar): Style enum names.
12941 (ada_val_print_enum): Likewise.
12942 * ada-typeprint.c (print_enum_type): Style enum names.
12943
d4d947ae
TT
129442020-02-21 Tom Tromey <tom@tromey.com>
12945
12946 * psympriv.h (struct partial_symtab): Update comment.
12947
e94e944b
TT
129482020-02-21 Tom Tromey <tromey@adacore.com>
12949
12950 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12951 type is CORE_ADDR.
12952
1eb73179
TV
129532020-02-21 Tom de Vries <tdevries@suse.de>
12954
12955 PR gdb/25534
12956 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12957 if dependencies[i]->user != NULL.
12958
4f180d53
AT
129592020-02-21 Ali Tamur <tamur@google.com>
12960
12961 * dwarf2/read.c (dwarf2_name): Add null check.
12962
22b6cd70
TT
129632020-02-20 Tom Tromey <tom@tromey.com>
12964
12965 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12966 ">=", in binary search.
12967 (dwarf2_find_containing_comp_unit): New overload.
12968 (run_test): New self-test.
12969 (_initialize_dwarf2_read): Register new test.
12970
bd0cf5a6
NC
129712020-02-20 Nelson Chu <nelson.chu@sifive.com>
12972
12973 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12974 * riscv-tdep.h: Likewise.
12975 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12976 rv32-only CSR.
12977 * features/riscv/64bit-csr.xml: Regenerated.
12978
3f702acd
SDJ
129792020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12980 Tom Tromey <tom@tromey.com>
12981
12982 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12983 of 'fputc_unfiltered'.
12984 (putchar_unfiltered): Call 'fputc_unfiltered'.
12985 (fputc_unfiltered): Call 'fputs_unfiltered'.
12986
d13c7322
AB
129872020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12988
12989 * config.in: Regenerate.
12990 * configure: Regenerate.
12991 * configure.ac: Add --with-python-libdir option.
12992 * main.c: Use WITH_PYTHON_LIBDIR.
12993
869d8950
TT
129942020-02-19 Tom Tromey <tom@tromey.com>
12995
12996 * symtab.c (general_symbol_info::compute_and_set_names): Use
12997 obstack_strndup. Simplify call to symbol_set_demangled_name.
12998
298e9637
SM
129992020-02-19 Simon Marchi <simon.marchi@efficios.com>
13000
13001 * dwarf2/read.c (allocate_signatured_type_table,
13002 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13003 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13004 Remove objfile parameter, update all callers.
13005
08410482
DE
130062020-02-19 Doug Evans <dje@google.com>
13007
13008 PR rust/25535
13009 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13010 rust_enum_variant calculation.
13011
dfdeeca1
TT
130122020-02-19 Tom Tromey <tromey@adacore.com>
13013
13014 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13015
2ef5453b
TT
130162020-02-19 Tom Tromey <tromey@adacore.com>
13017
13018 * ada-lang.c (cache_symbol): Use obstack_strdup.
13019
9f1528a1
AB
130202020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13021
13022 * configure: Regenerate.
13023
d3c22fa8
TT
130242020-02-19 Tom Tromey <tromey@adacore.com>
13025
13026 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13027 NULL check.
13028
bf84f706
MR
130292020-02-19 Maciej W. Rozycki <macro@wdc.com>
13030
13031 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13032
d1c9b20f
AB
130332020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13034
13035 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13036 if GDBSERVER is not defined.
13037 (riscv_tdesc_cache): Likewise, also store const target_desc.
13038 (STATIC_IN_GDB): Define.
13039 (riscv_create_target_description): Update declaration with
13040 STATIC_IN_GDB.
13041 (riscv_lookup_target_description): New function, only define if
13042 GDBSERVER is not defined.
13043 * arch/riscv.h (riscv_create_target_description): Declare only
13044 when GDBSERVER is defined.
13045 (riscv_lookup_target_description): New declaration when GDBSERVER
13046 is not defined.
13047 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13048 (riscv_linux_read_features): ...this, and return
13049 riscv_gdbarch_features instead of target_desc.
13050 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13051 (riscv_linux_read_description): Rename to...
13052 (riscv_linux_read_features): ...this.
13053 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13054 Update to use riscv_gdbarch_features and
13055 riscv_lookup_target_description.
13056 * riscv-tdep.c (riscv_find_default_target_description): Use
13057 riscv_lookup_target_description instead of
13058 riscv_create_target_description.
13059
373d7ac0
SM
130602020-02-18 Simon Marchi <simon.marchi@efficios.com>
13061
13062 * valprint.c (generic_val_print_enum_1): When printing a flag
13063 enum with value 0 and there is no enumerator with value 0, print
13064 just "0" instead of "(unknown: 0x0)".
13065
b29a2df0
SM
130662020-02-18 Simon Marchi <simon.marchi@efficios.com>
13067
13068 * valprint.c (generic_val_print_enum_1): Print unknown part of
13069 flag enum in hex.
13070
6740f0cc
SM
130712020-02-18 Simon Marchi <simon.marchi@efficios.com>
13072
13073 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13074 flag enums to contain duplicate enumerators.
13075 * valprint.c (generic_val_print_enum_1): Update comment.
13076
edd45eb0
SM
130772020-02-18 Simon Marchi <simon.marchi@efficios.com>
13078
13079 * dwarf2/read.c: Include "count-one-bits.h".
13080 (update_enumeration_type_from_children): If an enumerator has
13081 multiple bits set, don't treat the enumeration as a "flag enum".
13082 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13083 of flag enums have 0 or 1 bit set.
13084
6d0cf446
BE
130852020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13086
13087 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13088 conversion.
13089 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13090 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13091 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13092 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13093 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13094
7001c1b7
SM
130952020-02-18 Simon Marchi <simon.marchi@efficios.com>
13096
13097 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13098
fdb61c6c
SM
130992020-02-14 Simon Marchi <simon.marchi@efficios.com>
13100
13101 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13102 displaced_step_closure_up.
13103 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13104 (struct displaced_step_closure_up):
13105 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13106 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13107 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13108 Likewise.
13109 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13110 * gdbarch.c, gdbarch.h: Re-generate.
13111 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13112 displaced_step_closure_up.
13113 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13114 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13115 * infrun.h (displaced_step_closure_up): New type alias.
13116 (struct displaced_step_inferior_state) <step_closure>: Change
13117 type to displaced_step_closure_up.
13118 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13119 displaced_step_closure_up.
13120 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13121
a4a38eb4
TT
131222020-02-14 Tom Tromey <tom@tromey.com>
13123
13124 * minidebug.c (gnu_debug_key): New global.
13125 (find_separate_debug_file_in_section): Use it.
13126
e8217e61
SM
131272020-02-14 Simon Marchi <simon.marchi@efficios.com>
13128
13129 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13130 std::unique_ptr.
13131 * gdbarch.c: Re-generate.
13132 * gdbarch.h: Re-generate.
13133 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13134 change.
13135 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13136 type to std::unique_ptr.
13137 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13138 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13139 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13140 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13141 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13142 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13143 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13144 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13145 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13146
d8d83535
SM
131472020-02-14 Simon Marchi <simon.marchi@efficios.com>
13148
13149 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13150 std::unique_ptr.
13151 (displaced_step_clear): Rename to...
13152 (displaced_step_reset): ... this. Just call displaced->reset ().
13153 (displaced_step_clear_cleanup): Rename to...
13154 (displaced_step_reset_cleanup): ... this.
13155 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13156 (displaced_step_fixup): Likewise.
13157 (resume_1): Likewise.
13158 (handle_inferior_event): Restore child's memory before calling
13159 displaced_step_fixup on the parent.
13160 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13161 to std::unique_ptr.
13162 <step_closure>: Change type to std::unique_ptr.
13163
5f661e03
SM
131642020-02-14 Simon Marchi <simon.marchi@efficios.com>
13165
13166 * arm-tdep.c: Include count-one-bits.h.
13167 (cleanup_block_store_pc): Use count_one_bits.
13168 (cleanup_block_load_pc): Use count_one_bits.
13169 (arm_copy_block_xfer): Use count_one_bits.
13170 (thumb2_copy_block_xfer): Use count_one_bits.
13171 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13172 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13173 (thumb_get_next_pcs_raw): Use count_one_bits.
13174 (arm_get_next_pcs_raw): Use count_one_bits_l.
13175 * arch/arm.c (bitcount): Remove.
13176 * arch/arm.h (bitcount): Remove.
13177
8084e579
TT
131782020-02-14 Tom Tromey <tromey@adacore.com>
13179
13180 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13181 Update.
13182 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13183 * dwarf2/loc.c (call_site_find_chain_1): Return
13184 unique_xmalloc_ptr.
13185 (call_site_find_chain): Likewise.
13186
258bf0ee
RB
131872020-02-14 Richard Biener <rguenther@suse.de>
13188
13189 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13190 on expression with division operators.
13191
f98a8458
AKS
131922020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13193
13194 * MAINTAINERS (Write After Approval): Adding myself.
13195
d1437c0e
TT
131962020-02-12 Tom Tromey <tom@tromey.com>
13197
13198 * event-loop.c (event_data, gdb_event, event_handler_func):
13199 Remove.
13200
3d4560f7
TT
132012020-02-12 Tom Tromey <tom@tromey.com>
13202
13203 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13204 (dwarf2_frame_objfile_data): Add comment.
13205 (find_comp_unit, set_comp_unit): New functions.
13206 (dwarf2_frame_find_fde): Use find_comp_unit.
13207 (dwarf2_build_frame_info): Use set_comp_unit.
13208
21982304
TT
132092020-02-12 Tom Tromey <tom@tromey.com>
13210
13211 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13212 (comp_unit): Don't initialize objfile.
13213 (execute_cfa_program): Add text_offset parameter.
13214 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13215 (dwarf2_frame_cache): Update.
13216 (dwarf2_build_frame_info): Don't set "objfile" member.
13217
4debb237
TT
132182020-02-12 Tom Tromey <tom@tromey.com>
13219
13220 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13221 (decode_frame_entry): Likewise.
13222 (dwarf2_build_frame_info): Update.
13223
0d404d44
TT
132242020-02-12 Tom Tromey <tom@tromey.com>
13225
13226 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13227 (decode_frame_entry_1): Use the comp_unit obstack.
13228
a7a3ae5c
TT
132292020-02-12 Tom Tromey <tom@tromey.com>
13230
13231 * dwarf2/frame.c (struct comp_unit): Add initializers and
13232 constructor.
13233 (dwarf2_frame_objfile_data): Store a comp_unit.
13234 (dwarf2_frame_find_fde): Update.
13235 (dwarf2_build_frame_info): Use "new".
13236
a9d65418
TT
132372020-02-12 Tom Tromey <tom@tromey.com>
13238
13239 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13240 (dwarf2_fde_table): Typedef for std::vector.
13241 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13242 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13243 (decode_frame_entry): Update.
13244 (dwarf2_build_frame_info): Use "new".
13245
7559c217
CB
132462020-02-12 Christian Biesinger <cbiesinger@google.com>
13247
13248 * arm-tdep.c (arm_gdbarch_init): Update.
13249 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13250 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13251 have_neon, is_m>: Change to bool.
13252
aeefc73c
CB
132532020-02-12 Christian Biesinger <cbiesinger@google.com>
13254
13255 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13256
d27b8e5f
TT
132572020-02-12 Tom Tromey <tom@tromey.com>
13258
13259 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13260
cd5900f3
HD
132612020-02-12 Hannes Domani <ssbssa@yahoo.de>
13262
13263 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13264 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13265
f056b22b
TT
132662020-02-11 Tom Tromey <tom@tromey.com>
13267
13268 * psymtab.h: Update comment.
13269
f92ff6b5
TT
132702020-02-11 Tom Tromey <tom@tromey.com>
13271
13272 * gdb_obstack.h (struct auto_obstack): Use
13273 DISABLE_COPY_AND_ASSIGN.
13274
3fd6912b
TT
132752020-02-11 Tom Tromey <tom@tromey.com>
13276
13277 * dwarf2/frame.h (struct objfile): Don't forward declare.
13278
69ed9b74
CB
132792020-02-11 Christian Biesinger <cbiesinger@google.com>
13280
13281 * cris-tdep.c (cris_supply_gregset): Change signature to match
13282 what struct regset expects.
13283 (cris_regset): New struct.
13284 (fetch_core_registers): Remove.
13285 (cris_iterate_over_regset_sections): New function.
13286 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13287 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13288
bda874f6
CB
132892020-02-11 Christian Biesinger <cbiesinger@google.com>
13290
13291 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13292 registers.
13293
754e1564
CB
132942020-02-11 Christian Biesinger <cbiesinger@google.com>
13295
13296 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13297
8ddd8e0e
SM
132982020-02-11 Simon Marchi <simon.marchi@efficios.com>
13299
13300 * configure: Re-generate.
13301
898e7f60
SM
133022020-02-11 Simon Marchi <simon.marchi@efficios.com>
13303
13304 * configure: Re-generate.
13305
58df732b
SM
133062020-02-11 Simon Marchi <simon.marchi@efficios.com>
13307
13308 * acinclude: Update warning.m4 path.
13309 * warning.m4: Move to gdbsupport.
13310
da5bd37e
TT
133112020-02-11 Tom Tromey <tromey@adacore.com>
13312
13313 * remote.c (remote_console_output): Update.
13314 * printcmd.c (printf_command): Update.
13315 * event-loop.c (gdb_wait_for_event): Update.
13316 * linux-nat.c (sigchld_handler): Update.
13317 * remote-sim.c (gdb_os_write_stdout): Update.
13318 (gdb_os_flush_stdout): Update.
13319 (gdb_os_flush_stderr): Update.
13320 (gdb_os_write_stderr): Update.
13321 * exceptions.c (print_exception): Update.
13322 * remote-fileio.c (remote_fileio_func_read): Update.
13323 (remote_fileio_func_write): Update.
13324 * tui/tui.c (tui_enable): Update.
13325 * tui/tui-interp.c (tui_interp::init): Update.
13326 * utils.c (init_page_info): Update.
13327 (putchar_unfiltered, fputc_unfiltered): Update.
13328 (gdb_flush): Update.
13329 (emit_style_escape): Update.
13330 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13331 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13332 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13333 (stderr_file::write): Update.
13334 (stderr_file::puts): Update.
13335 * ui-file.h (ui_file_isatty, ui_file_write)
13336 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13337 (ui_file_puts): Don't declare.
13338
85f0dd3c
TV
133392020-02-10 Tom de Vries <tdevries@suse.de>
13340
13341 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13342 sentinel to char *.
13343
2e927613
TV
133442020-02-09 Tom de Vries <tdevries@suse.de>
13345
13346 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13347 filename if it matches "<artificial>".
13348
6bafc845
HD
133492020-02-09 Hannes Domani <ssbssa@yahoo.de>
13350
13351 * windows-tdep.c (struct enum_value_name): New struct.
13352 (create_enum): New function.
13353 (windows_get_siginfo_type): Create and use enum types.
13354
7928d571
HD
133552020-02-09 Hannes Domani <ssbssa@yahoo.de>
13356
13357 * NEWS: Mention $_siginfo support for Windows.
13358 * windows-nat.c (handle_exception): Set siginfo_er.
13359 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13360 (windows_xfer_siginfo): New function.
13361 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13362 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13363 (init_windows_gdbarch_data): New function.
13364 (get_windows_gdbarch_data): New function.
13365 (windows_get_siginfo_type): New function.
13366 (windows_init_abi): Register windows_get_siginfo_type.
13367 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13368
6751ebae
TT
133692020-02-08 Tom Tromey <tom@tromey.com>
13370
13371 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13372 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13373 <keep>: Declare method.
13374 <m_keep>: Remove member.
13375 <~cutu_reader>: Remove.
13376 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13377 (cutu_reader::cutu_reader): Update.
13378 (cutu_reader::keep): Rename from ~cutu_reader.
13379 (process_psymtab_comp_unit, build_type_psymtabs_1)
13380 (process_skeletonless_type_unit, load_partial_comp_unit)
13381 (load_full_comp_unit, dwarf2_read_addr_index)
13382 (read_signatured_type): Update.
13383
135f5437
TT
133842020-02-08 Tom Tromey <tom@tromey.com>
13385
13386 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13387 "want_partial_unit" parameter.
13388 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13389 Inline check for DW_TAG_partial_unit.
13390 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13391
9f66ff1c
TT
133922020-02-08 Tom Tromey <tom@tromey.com>
13393
13394 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13395 read.c.
13396 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13397 read.c.
13398
c8a7a66f
TT
133992020-02-08 Tom Tromey <tom@tromey.com>
13400
13401 * dwarf2/read.c (read_address): Move to comp-unit.c.
13402 (dwarf2_rnglists_process, dwarf2_ranges_process)
13403 (read_attribute_value, dwarf_decode_lines_1)
13404 (var_decode_location, decode_locdesc): Update.
13405 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13406 read.c. Remove "cu" parameter.
13407 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13408 method.
13409
8266302d
TT
134102020-02-08 Tom Tromey <tom@tromey.com>
13411
13412 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13413 (read_indirect_line_string): Update.
13414 * dwarf2/comp-unit.c (read_offset): Remove.
13415 (read_comp_unit_head): Update.
13416 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13417 method.
13418 (read_offset): Don't declare.
13419
4057dfde
TT
134202020-02-08 Tom Tromey <tom@tromey.com>
13421
13422 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13423 * dwarf2/read.c (struct comp_unit_head): Move to
13424 dwarf2/comp-unit.h.
13425 (enum class rcuh_kind): Move to comp-unit.h.
13426 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13427 (read_comp_unit_head, error_check_comp_unit_head)
13428 (read_and_check_comp_unit_head): Move to comp-unit.c.
13429 (read_offset, dwarf_unit_type_name): Likewise.
13430 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13431 (cutu_reader::cutu_reader, read_call_site_scope)
13432 (find_partial_die, follow_die_offset): Update.
13433 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13434
24aa364d
TT
134352020-02-08 Tom Tromey <tom@tromey.com>
13436
13437 * dwarf2/read.c (read_offset_1): Move to leb.c.
13438 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13439 (dwarf_decode_macro_bytes): Update.
13440 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13441 * dwarf2/leb.h (read_offset): Declare.
13442
2c7d5afc
TT
134432020-02-08 Tom Tromey <tom@tromey.com>
13444
13445 * dwarf2/read.c (dwarf2_section_size): Remove.
13446 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13447 Update.
13448 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13449
4075cb26
TT
134502020-02-08 Tom Tromey <tom@tromey.com>
13451
13452 * dwarf2/read.c (read_initial_length): Move to leb.c.
13453 * dwarf2/leb.h (read_initial_length): Declare.
13454 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13455 handle_nonstd parameter.
13456 * dwarf2/frame.c (read_initial_length): Remove.
13457 (decode_frame_entry_1): Update.
13458
09ba997f
TT
134592020-02-08 Tom Tromey <tom@tromey.com>
13460
13461 * dwarf2/loc.c (dwarf2_find_location_expression)
13462 (dwarf_evaluate_loc_desc::get_tls_address)
13463 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13464 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13465 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13466 (dwarf2_compile_property_to_c)
13467 (dwarf2_loc_desc_get_symbol_read_needs)
13468 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13469 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13470 (loclist_describe_location, loclist_tracepoint_var_ref)
13471 (loclist_generate_c_location): Update.
13472 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13473 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13474 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13475 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13476 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13477 (dwarf2_per_cu_data::addr_size)
13478 (dwarf2_per_cu_data::ref_addr_size)
13479 (dwarf2_per_cu_data::text_offset)
13480 (dwarf2_per_cu_data::addr_type): Now methods.
13481 (per_cu_header_read_in): Make per_cu "const".
13482 (dwarf2_version): Remove.
13483 (dwarf2_per_cu_data::int_type): Now a method.
13484 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13485 (set_die_type, read_array_type, read_subrange_index_type)
13486 (read_tag_string_type, read_subrange_type): Update.
13487 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13488 offset_size, ref_addr_size, text_offset, addr_type, version,
13489 objfile, int_type, addr_sized_int_type>: Declare methods.
13490
96c738c0
TT
134912020-02-08 Tom Tromey <tom@tromey.com>
13492
13493 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13494 Move earlier.
13495
8fdd972c
TT
134962020-02-08 Tom Tromey <tom@tromey.com>
13497
13498 * dwarf2/read.h (dwarf_line_debug): Declare.
13499 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13500 * dwarf2/read.c: Move line_header code to new files.
13501 (dwarf_line_debug): No longer static.
13502 * dwarf2/line-header.c: New file.
13503 * dwarf2/line-header.h: New file.
13504
03075812
TT
135052020-02-08 Tom Tromey <tom@tromey.com>
13506
13507 * dwarf2/read.c (struct line_header) <file_full_name,
13508 file_file_name>: Return unique_xmalloc_ptr.
13509 (line_header::file_file_name): Update.
13510 (line_header::file_full_name): Update.
13511 (dw2_get_file_names_reader): Update.
13512 (macro_start_file): Update.
13513
bb822404
TT
135142020-02-08 Tom Tromey <tom@tromey.com>
13515
13516 * dwarf2/read.c (struct line_header) <file_full_name,
13517 file_file_name>: Declare methods.
13518 (dw2_get_file_names_reader): Update.
13519 (file_file_name): Now a method.
13520 (file_full_name): Likewise.
13521 (macro_start_file): Update.
13522
009b64fc
TT
135232020-02-08 Tom Tromey <tom@tromey.com>
13524
13525 * dwarf2/read.c (dwarf_always_disassemble)
13526 (show_dwarf_always_disassemble): Move to loc.c.
13527 (_initialize_dwarf2_read): Move "always-disassemble" registration
13528 to loc.c.
13529 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13530 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13531 static.
13532 (show_dwarf_always_disassemble): Move from read.c.
13533 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13534
5895093f
TT
135352020-02-08 Tom Tromey <tom@tromey.com>
13536
13537 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13538 (create_quick_file_names_table): Return htab_up.
13539 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13540 Update.
13541 * dwarf2/read.h (struct dwarf2_per_objfile)
13542 <quick_file_names_table>: Now htab_up.
13543
b3b32279
TT
135442020-02-08 Tom Tromey <tom@tromey.com>
13545
13546 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13547
1d33d811
TT
135482020-02-08 Tom Tromey <tom@tromey.com>
13549
13550 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13551 Rewrite.
13552 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13553 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13554 (abbrev_table::abbrev_table): No longer inline.
13555 (ABBREV_HASH_SIZE): Remove.
13556 (abbrev_table::m_abbrevs): Now an htab_up.
13557
86de1d91
TT
135582020-02-08 Tom Tromey <tom@tromey.com>
13559
13560 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13561 (cutu_reader): Update.
13562 (build_type_psymtabs_1): Update.
13563 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13564 (abbrev_table::alloc_abbrev): Update.
13565 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13566 (abbrev_table::read): New static method, renamed from
13567 abbrev_table_read_table.
13568 (abbrev_table::alloc_abbrev)
13569 (abbrev_table::add_abbrev): Now private.
13570 (abbrev_table::abbrev_table): Now private.
13571 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13572
0335378b
TT
135732020-02-08 Tom Tromey <tom@tromey.com>
13574
13575 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13576 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13577 htab_up.
13578
48b490f2
TT
135792020-02-08 Tom Tromey <tom@tromey.com>
13580
13581 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13582 htab_up.
13583 (lookup_dwo_unit_in_dwp): Update.
13584 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13585 on obstack.
13586
bc68fb19
TT
135872020-02-08 Tom Tromey <tom@tromey.com>
13588
13589 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13590 obstack.
13591
d15acc42
TT
135922020-02-08 Tom Tromey <tom@tromey.com>
13593
13594 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13595 line_header_hash.
13596 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13597 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13598 Change type to htab_up.
13599
eaa5fa8b
TT
136002020-02-08 Tom Tromey <tom@tromey.com>
13601
13602 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13603 htab_up. Don't allocate on obstack.
13604 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13605 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13606 Change type to htab_up.
13607
b0b6a987
TT
136082020-02-08 Tom Tromey <tom@tromey.com>
13609
13610 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13611 Change type to htab_up.
13612 * dwarf2/read.c (create_signatured_type_table_from_index)
13613 (create_signatured_type_table_from_debug_names)
13614 (create_all_type_units, add_type_unit)
13615 (lookup_dwo_signatured_type, lookup_signatured_type)
13616 (process_skeletonless_type_unit): Update.
13617 (create_debug_type_hash_table, create_debug_types_hash_table):
13618 Change type of types_htab.
13619 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13620 htab_up. Don't allocate on obstack.
13621 (create_cus_hash_table): Change type of cus_htab parameter.
13622 (struct dwo_file) <cus, tus>: Now htab_up.
13623 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13624 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13625 (queue_and_load_all_dwo_tus): Update.
13626 * dwarf2/index-write.c (write_gdbindex): Update.
13627 (write_debug_names): Update.
13628
39856def
TT
136292020-02-08 Tom Tromey <tom@tromey.com>
13630
13631 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13632 dwarf2/read.c. Remove "next" member. Add constructor ntad
13633 destructor.
13634 (struct dwarf2_per_objfile) <queue>: New member.
13635 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13636 dwarf2/read.h.
13637 (dwarf2_queue, dwarf2_queue_tail): Remove.
13638 (class dwarf2_queue_guard): Add parameter to constructor. Use
13639 DISABLE_COPY_AND_ASSIGN.
13640 <m_per_objfile>: New member.
13641 <~dwarf2_queue_guard>: Rewrite.
13642 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13643 Update.
13644 (~dwarf2_queue_item): New.
13645
3e225074
TT
136462020-02-08 Tom Tromey <tom@tromey.com>
13647
13648 * dwarf2/read.c (struct die_info) <has_children>: New member.
13649 (dw2_get_file_names_reader): Remove has_children.
13650 (dw2_get_file_names): Update.
13651 (read_cutu_die_from_dwo): Remove has_children.
13652 (cutu_reader::init_tu_and_read_dwo_dies)
13653 (cutu_reader::cutu_reader): Update.
13654 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13655 Remove has_children.
13656 (build_type_psymtabs_1, process_skeletonless_type_unit)
13657 (load_partial_comp_unit, load_full_comp_unit): Update.
13658 (create_dwo_cu_reader): Remove has_children.
13659 (create_cus_hash_table, read_die_and_children): Update.
13660 (read_full_die_1,read_full_die): Remove has_children.
13661 (read_signatured_type): Update.
13662 (class cutu_reader) <has_children>: Remove.
13663
82ca8957
TT
136642020-02-08 Tom Tromey <tom@tromey.com>
13665
13666 * dwarf2/expr.c: Rename from dwarf2expr.c.
13667 * dwarf2/expr.h: Rename from dwarf2expr.h.
13668 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13669 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13670 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13671 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13672 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13673 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13674 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13675 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13676 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13677 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13678 * dwarf2/loc.c: Rename from dwarf2loc.c.
13679 * dwarf2/loc.h: Rename from dwarf2loc.h.
13680 * dwarf2/read.c: Rename from dwarf2read.c.
13681 * dwarf2/read.h: Rename from dwarf2read.h.
13682 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13683 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13684 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13685 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13686 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13687 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13688 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13689 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13690 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13691 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13692 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13693 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13694 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13695 Update.
13696 * Makefile.in (COMMON_SFILES): Update.
13697 (HFILES_NO_SRCDIR): Update.
13698
9e35d499
TT
136992020-02-08 Tom Tromey <tom@tromey.com>
13700
13701 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13702 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13703
1eba2311
TT
137042020-02-08 Tom Tromey <tom@tromey.com>
13705
13706 * dwarf2read.h (struct die_info): Don't declare.
13707
e41c2da2
TT
137082020-02-08 Tom Tromey <tom@tromey.com>
13709
13710 * dwarf2read.h (die_info_ptr): Remove typedef.
13711
4fc6c0d5
TT
137122020-02-08 Tom Tromey <tom@tromey.com>
13713
13714 * dwarf2read.c (read_call_site_scope)
13715 (handle_data_member_location, dwarf2_add_member_fn)
13716 (mark_common_block_symbol_computed, read_common_block)
13717 (attr_to_dynamic_prop, partial_die_info::read)
13718 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13719 (dwarf2_symbol_mark_computed, set_die_type): Update.
13720 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13721 method.
13722 (attr_form_is_block): Don't declare.
13723 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13724
cd6c91b4
TT
137252020-02-08 Tom Tromey <tom@tromey.com>
13726
13727 * dwarf2read.c (dwarf2_find_base_address, )
13728 (read_call_site_scope, rust_containing_type)
13729 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13730 (handle_data_member_location, dwarf2_add_member_fn)
13731 (get_alignment, read_structure_type, process_structure_scope)
13732 (mark_common_block_symbol_computed, read_common_block)
13733 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13734 (partial_die_info::read, read_attribute_value, new_symbol)
13735 (lookup_die_type, dwarf2_get_ref_die_offset)
13736 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13737 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13738 (dwarf2_symbol_mark_computed): Update.
13739 * dwarf2/attribute.h (struct attribute) <value_as_address,
13740 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13741 methods.
13742 (value_as_address, attr_form_is_section_offset)
13743 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13744 * dwarf2/attribute.c (attribute::value_as_address)
13745 (attribute::form_is_section_offset, attribute::form_is_constant)
13746 (attribute::form_is_ref): Now methods.
13747
162dce55
TT
137482020-02-08 Tom Tromey <tom@tromey.com>
13749
13750 * dwarf2read.c (struct attribute, DW_STRING)
13751 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13752 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13753 (attr_form_is_block, attr_form_is_section_offset)
13754 (attr_form_is_constant, attr_form_is_ref): Move.
13755 * dwarf2/attribute.h: New file.
13756 * dwarf2/attribute.c: New file, from dwarf2read.c.
13757 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13758
3054dd54
TT
137592020-02-08 Tom Tromey <tom@tromey.com>
13760
13761 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13762 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13763 Move.
13764 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13765 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13766 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13767 abbrev.c.
13768 * dwarf2/abbrev.h: New file.
13769 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13770 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13771
96b79293
TT
137722020-02-08 Tom Tromey <tom@tromey.com>
13773
13774 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13775 (dwarf2_section_size, dwarf2_get_section_info)
13776 (create_signatured_type_table_from_debug_names)
13777 (create_addrmap_from_aranges, read_debug_names_from_section)
13778 (get_gdb_index_contents_from_section, read_comp_unit_head)
13779 (error_check_comp_unit_head, read_abbrev_offset)
13780 (create_debug_type_hash_table, init_cu_die_reader)
13781 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13782 (read_comp_units_from_section, create_cus_hash_table)
13783 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13784 (create_dwp_v2_section, dwarf2_rnglists_process)
13785 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13786 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13787 (read_indirect_string_from_dwz, read_addr_index_1)
13788 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13789 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13790 (fill_in_loclist_baton): Update.
13791 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13792 get_containing_section, get_bfd_owner, get_bfd_section,
13793 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13794 (dwarf2_read_section, get_section_name, get_section_file_name)
13795 (get_containing_section, get_section_bfd_owner)
13796 (get_section_bfd_section, get_section_name, get_section_file_name)
13797 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13798 declare.
13799 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13800 (dwarf2_section_info::get_bfd_owner)
13801 (dwarf2_section_info::get_bfd_section)
13802 (dwarf2_section_info::get_name)
13803 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13804 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13805 (dwarf2_section_info::read): Now methods.
13806 * dwarf-index-write.c (class debug_names): Update.
13807
2c86cff9
TT
138082020-02-08 Tom Tromey <tom@tromey.com>
13809
13810 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13811 Move to dwarf2/section.h.
13812 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13813 (get_section_bfd_section, get_section_name)
13814 (get_section_file_name, get_section_id, get_section_flags)
13815 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13816 dwarf2/section.c.
13817 * dwarf2/section.h: New file.
13818 * dwarf2/section.c: New file, from dwarf2read.c.
13819 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13820
f4382c45
TT
138212020-02-08 Tom Tromey <tom@tromey.com>
13822
13823 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13824 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13825 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13826 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13827 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13828 * dwarf2/leb.h: New file, from dwarf2read.c.
13829 * dwarf2/leb.c: New file, from dwarf2read.c.
13830 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13831 Remove.
13832 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13833 (COMMON_SFILES): Add dwarf2/leb.c.
13834
01840b7a
JB
138352020-02-08 Joel Brobecker <brobecker@adacore.com>
13836
13837 GDB 9.1 released.
13838
dfcb27e4
IB
138392020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13840
13841 PR gdb/25190:
aac66a4c
SM
13842 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13843 * gdb/remote.c (remote_console_output): Update.
13844 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13845 (ui_file_puts): ...this.
13846 * gdb/ui-file.h (ui_file_puts): Add declaration.
13847 * gdb/utils.c (emit_style_escape): Update.
13848 (flush_wrap_buffer): Update.
13849 (fputs_maybe_filtered): Update.
13850 (fputs_unfiltered): Add function.
dfcb27e4 13851
faa17681
IB
138522020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13853
aac66a4c
SM
13854 * gdb/event-loop.c (gdb_wait_for_event): Update.
13855 * gdb/printcmd.c (printf_command): Update.
13856 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13857 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13858 (gdb_os_flush_stderr): Update.
13859 * gdb/remote.c (remote_console_output): Update.
13860 * gdb/ui-file.c (gdb_flush): Rename to...
13861 (ui_file_flush): ...this.
13862 (stderr_file::write): Update.
13863 (stderr_file::puts): Update.
13864 * gdb/ui-file.h (gdb_flush): Rename to...
13865 (ui_file_flush): ...this.
13866 * gdb/utils.c (gdb_flush): Add function.
13867 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13868
5abbbe1d
TT
138692020-02-07 Tom Tromey <tromey@adacore.com>
13870
13871 PR breakpoints/24915:
13872 * source.c (find_and_open_source): Do not check basenames_may_differ.
13873
919adfe8
TT
138742020-02-07 Tom Tromey <tom@tromey.com>
13875
13876 * README: Update gdbserver documentation.
13877 * gdbserver: Move to top level.
13878 * configure.tgt (build_gdbserver): Remove.
13879 * configure.ac: Remove --enable-gdbserver.
13880 * configure: Rebuild.
13881 * Makefile.in (distclean): Don't mention gdbserver.
13882
1d5d29e7
SV
138832020-02-06 Shahab Vahedi <shahab@synopsys.com>
13884
13885 * source-cache.c (source_cache::ensure): Surround
13886 get_plain_source_lines with a try/catch.
13887 (source_cache::get_line_charpos): Get rid of try/catch
13888 and only check for the return value of "ensure".
13889 * tui/tui-source.c (tui_source_window::set_contents):
13890 Simplify "nlines" calculation.
13891
6eb1129c
SV
138922020-02-06 Shahab Vahedi <shahab@synopsys.com>
13893
13894 * MAINTAINERS (Write After Approval): Add myself.
13895
c6a42d11
CB
138962020-02-05 Christian Biesinger <cbiesinger@google.com>
13897
13898 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13899 function call.
13900
c8ecdda6
CB
139012020-02-05 Christian Biesinger <cbiesinger@google.com>
13902
13903 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13904
f6480e70
MR
139052020-02-05 Maciej W. Rozycki <macro@wdc.com>
13906
13907 * nat/riscv-linux-tdesc.h: New file.
13908 * nat/riscv-linux-tdesc.c: New file, taking code from...
13909 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13910 ... here.
13911 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13912 NATDEPFILES.
13913
dcc9fbc6
AB
139142020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13915
13916 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13917 we don't set the fake simulator ptid to the null_ptid.
13918
719546c4
SM
139192020-02-03 Simon Marchi <simon.marchi@efficios.com>
13920
13921 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13922 * gdbthread.h (class thread_info) <resumed>: Likewise.
13923 * infrun.c (resume_1): Likewise.
13924 (proceed): Likewise.
13925 (infrun_thread_stop_requested): Likewise.
13926 (stop_all_threads): Likewise.
13927 (handle_inferior_event): Likewise.
13928 (restart_threads): Likewise.
13929 (finish_step_over): Likewise.
13930 (keep_going_stepped_thread): Likewise.
13931 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13932 (linux_handle_extended_wait): Likewise.
13933 * record-btrace.c (get_thread_current_frame_id): Likewise.
13934 * record-full.c (record_full_wait_1): Likewise.
13935 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13936 * target.c (target_resume): Likewise.
13937 * thread.c (set_running_thread): Likewise.
13938
e409c542
AKS
139392020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13940
13941 * f-valprint.c (f77_print_array_1): Changed datatype of index
13942 variable to LONGEST from int to enable it to contain bound
13943 values correctly.
13944
ee98c0da
MR
139452020-02-03 Maciej W. Rozycki <macro@wdc.com>
13946
13947 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13948 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13949 offsets according to FLEN determined.
13950 (riscv_linux_nat_target::read_description): Determine FLEN
13951 dynamically.
13952 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13953 according to FLEN determined.
13954 (riscv_linux_nat_target::store_registers): Likewise.
13955
aa66aac4
SV
139562020-02-01 Shahab Vahedi <shahab@synopsys.com>
13957
13958 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13959 when reg->group is empty and reggroup is not.
13960
fd9faca8
TT
139612020-01-31 Tom Tromey <tromey@adacore.com>
13962
13963 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13964 Call beneath target's mourn_inferior after unpushing.
13965
42330a68
AB
139662020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13967
13968 PR tui/9765
13969 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13970 have enough lines to fill the screen, still return the lowest
13971 address we found.
13972
7a27a45b
AB
139732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13974
13975 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13976 '-', '<', and '>' commands.
13977
c47f70e2
PA
139782020-01-29 Pedro Alves <palves@redhat.com>
13979 Sergio Durigan Junior <sergiodj@redhat.com>
13980
13981 * infcmd.c (construct_inferior_arguments): Assert that
13982 'argc' is greater than 0.
13983
5133a315
LM
139842020-01-29 Luis Machado <luis.machado@linaro.org>
13985
13986 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13987 (BRK_INSN_MASK): Define to 0xd4200000.
13988 (aarch64_program_breakpoint_here_p): New function.
13989 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13990 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13991 breakpoint.c.
13992 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13993 breakpoint.h
13994 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13995 call gdbarch_program_breakpoint_here_p.
13996 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13997 default_program_breakpoint_here_p, changed return type to bool and
13998 simplified.
13999 * breakpoint.h (program_breakpoint_here): Moved prototype to
14000 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14001 return type to bool.
14002 * gdbarch.c: Regenerate.
14003 * gdbarch.h: Regenerate.
14004 * gdbarch.sh (program_breakpoint_here_p): New method.
14005 * infrun.c (handle_signal_stop): Call
14006 gdbarch_program_breakpoint_here_p.
14007
168f8c6b
TT
140082020-01-26 Tom Tromey <tom@tromey.com>
14009
14010 * ctfread.c (struct ctf_fp_info): Reindent.
14011 (_initialize_ctfread): Remove.
14012
128a391f
TT
140132020-01-26 Tom Tromey <tom@tromey.com>
14014
14015 * psymtab.c (partial_map_expand_apply)
14016 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14017 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14018 (psym_print_stats, psym_expand_symtabs_for_function)
14019 (psym_map_symbol_filenames, psym_map_matching_symbols)
14020 (psym_expand_symtabs_matching)
14021 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14022 (maintenance_check_psymtabs): Use new methods.
14023 * psympriv.h (struct partial_symtab) <readin_p,
14024 get_compunit_symtab>: New methods.
14025 <readin, compunit_symtab>: Remove members.
14026 (struct standard_psymtab): New.
14027 (struct legacy_psymtab): Derive from standard_psymtab.
14028 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14029 standard_psymtab.
14030 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14031
0494dbec
TT
140322020-01-26 Tom Tromey <tom@tromey.com>
14033
14034 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14035 read_dependencies. Add assert.
14036 * psymtab.c (partial_symtab::read_dependencies): New method.
14037 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14038 method.
14039 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14040 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14041 read_dependencies.
14042 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14043 Add assert.
14044
8566b89b
TT
140452020-01-26 Tom Tromey <tom@tromey.com>
14046
14047 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14048 Call expand_psymtab.
14049 (xcoff_read_symtab): Call expand_psymtab.
14050 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14051 legacy_expand_psymtab.
14052 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14053 method.
14054 (struct legacy_psymtab) <expand_psymtab>: Implement.
14055 <legacy_expand_psymtab>: New member.
14056 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14057 (parse_partial_symbols): Set legacy_expand_psymtab.
14058 (psymtab_to_symtab_1): Change argument order. Call
14059 expand_psymtab.
14060 (new_psymtab): Set legacy_expand_psymtab.
14061 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14062 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14063 expand_psymtab.
14064 (dwarf2_psymtab::expand_psymtab): Rename from
14065 psymtab_to_symtab_1. Call expand_psymtab.
14066 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14067 (dbx_end_psymtab): Likewise.
14068 (dbx_psymtab_to_symtab_1): Change argument order. Call
14069 expand_psymtab.
14070 (dbx_read_symtab): Call expand_psymtab.
14071 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14072 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14073 (ctf_psymtab::read_symtab): Call expand_psymtab.
14074
077cbab2
TT
140752020-01-26 Tom Tromey <tom@tromey.com>
14076
14077 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14078 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14079 messages.
14080 * mdebugread.c (mdebug_read_symtab): Remove prints.
14081 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14082 assert.
14083 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14084
891813be
TT
140852020-01-26 Tom Tromey <tom@tromey.com>
14086
14087 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14088 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14089 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14090 legacy_symtab.
14091 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14092 * psymtab.c (psymtab_to_symtab): Call method.
14093 (dump_psymtab): Update.
14094 * psympriv.h (struct partial_symtab): Add virtual destructor.
14095 <read_symtab>: New method.
14096 (struct legacy_symtab): New.
14097 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14098 (struct pst_map) <pst>: Now a legacy_psymtab.
14099 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14100 (new_psymtab): Use legacy_psymtab.
14101 * dwarf2read.h (struct dwarf2_psymtab): New.
14102 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14103 * dwarf2read.c (dwarf2_create_include_psymtab)
14104 (dwarf2_build_include_psymtabs, create_type_unit_group)
14105 (create_partial_symtab, process_psymtab_comp_unit_reader)
14106 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14107 (set_partial_user): Use dwarf2_psymtab.
14108 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14109 (psymtab_to_symtab_1, process_full_comp_unit)
14110 (process_full_type_unit, dwarf2_ranges_read)
14111 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14112 (dwarf_decode_lines): Use dwarf2_psymtab.
14113 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14114 (add_address_entry_worker, write_one_signatured_type)
14115 (recursively_count_psymbols, recursively_write_psymbols)
14116 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14117 (write_debug_names): Likewise.
14118 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14119 <pst>: Now a legacy_psymtab.
14120 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14121 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14122 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14123 * ctfread.c (struct ctf_psymtab): New.
14124 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14125 ctf_psymtab.
14126 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14127 (create_partial_symtab): Return a ctf_psymtab.
14128 (scan_partial_symbols): Update.
14129
c3693a1d
TT
141302020-01-26 Tom Tromey <tom@tromey.com>
14131
14132 * xcoffread.c (xcoff_start_psymtab): Use new.
14133 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14134 renamed from start_psymtab_common.
14135 * psympriv.h (struct partial_symtab): Add new constructor.
14136 (start_psymtab_common): Don't declare.
14137 * mdebugread.c (parse_partial_symbols): Use new.
14138 * dwarf2read.c (create_partial_symtab): Use new.
14139 * dbxread.c (start_psymtab): Use new.
14140 * ctfread.c (create_partial_symtab): Use new.
14141
32caafd0
TT
141422020-01-26 Tom Tromey <tom@tromey.com>
14143
14144 * xcoffread.c (xcoff_end_psymtab): Use new.
14145 * psymtab.c (start_psymtab_common): Use new.
14146 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14147 Update.
14148 * psympriv.h (struct partial_symtab): Add parameters to
14149 constructor. Don't inline.
14150 (allocate_psymtab): Don't declare.
14151 * mdebugread.c (new_psymtab): Use new.
14152 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14153 * dbxread.c (dbx_end_psymtab): Use new.
14154
abaa2f23
TT
141552020-01-26 Tom Tromey <tom@tromey.com>
14156
14157 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14158 allocate_psymtab. Update documentation.
14159 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14160 allocate_psymtab. Do not use new.
14161 (allocate_psymtab): Use new. Update.
14162
6d94535f
TT
141632020-01-26 Tom Tromey <tom@tromey.com>
14164
14165 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14166 * psymtab.c (psym_print_stats): Update.
14167 * psympriv.h (struct partial_symtab) <readin,
14168 psymtabs_addrmap_supported, anonymous>: Now bool.
14169 * mdebugread.c (psymtab_to_symtab_1): Update.
14170 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14171 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14172 (process_full_comp_unit, process_full_type_unit): Update.
14173 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14174 * ctfread.c (psymtab_to_symtab): Update.
14175
6f17252b
TT
141762020-01-26 Tom Tromey <tom@tromey.com>
14177
14178 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14179 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14180 * psymtab.c (psymtab_storage): Delete psymtabs.
14181 (psymtab_storage::allocate_psymtab): Use new.
14182 (psymtab_storage::discard_psymtab): Use delete.
14183 * psympriv.h (struct partial_symtab): Add constructor and
14184 initializers.
14185
f6f1cebc
TT
141862020-01-26 Tom Tromey <tom@tromey.com>
14187
14188 * machoread.c: Do not include psympriv.h.
14189
e47e48f6
PW
141902020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14191
14192 * NEWS: Mention the new option and the set/show commands.
14193
a2fedca9
PW
141942020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14195
14196 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14197 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14198 (validate_exec_file): New variables, enums, functions.
14199 (exec_file_locate_attach, print_section_info): Style the filenames.
14200 (_initialize_exec): Install show_exec_file_mismatch_command and
14201 set_exec_file_mismatch_command.
14202 * gdbcore.h (validate_exec_file): Declare.
14203 * infcmd.c (attach_command): Call validate_exec_file.
14204 * remote.c ( remote_target::remote_add_inferior): Likewise.
14205
7ffa82e1
AB
142062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14207
14208 * frame.c (find_frame_sal): Move call to get_next_frame into more
14209 inner scope.
14210 * inline-frame.c (inilne_state) <inline_state>: Update argument
14211 types.
14212 (inilne_state) <skipped_symbol>: Rename to...
14213 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14214 (skip_inline_frames): Build vector of skipped symbols and use this
14215 to reate the inline_state.
14216 (inline_skipped_symbol): Add a comment and some assertions, fetch
14217 skipped symbol from the list.
14218
3d92a3e3
AB
142192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14220
14221 * buildsym.c (lte_is_less_than): Delete.
14222 (buildsym_compunit::end_symtab_with_blockvector): Create local
14223 lambda function to sort line table entries, and use
14224 std::stable_sort instead of std::sort.
14225 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14226 markers when looking for a previous line.
14227
94a72be7
AB
142282020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14229
14230 * dwarf2read.c (lnp_state_machine::record_line): Include
14231 end_sequence parameter in debug print out. Record the line if we
14232 are at an end_sequence marker even if it's not the start of a
14233 statement.
14234 * symmisc.c (maintenance_print_one_line_table): Print end of
14235 sequence markers with 'END' not '0'.
14236
53af73bf
PA
142372020-01-24 Pedro Alves <palves@redhat.com>
14238
14239 PR gdb/25410
14240 * thread.c (scoped_restore_current_thread::restore): Use
14241 switch_to_inferior_no_thread.
14242 * exec.c: Include "progspace-and-thread.h".
14243 (add_target_sections, remove_target_sections):
14244 scoped_restore_current_pspace_and_thread instead of
14245 scoped_restore_current_thread.
14246 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14247 and aspace to the inferior before calling clone_program_space.
14248 Remove stale comment.
14249
3050c6f4
CB
142502020-01-24 Christian Biesinger <cbiesinger@google.com>
14251
14252 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14253 (arm_netbsd_nat_target::fetch_registers): ...this.
14254 (arm_nbsd_nat_target::store_registers): Rename to...
14255 (arm_netbsd_nat_target::store_registers): ...this.
14256
73685c7e
CB
142572020-01-24 Christian Biesinger <cbiesinger@google.com>
14258
14259 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14260 register_t.
14261
89203d40
CB
142622020-01-24 Christian Biesinger <cbiesinger@google.com>
14263
14264 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14265 Update comment.
14266 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14267 Likewise.
14268 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14269 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14270 the correct replacement (iterate_over_regset_sections).
14271 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14272 Update comment.
14273
1ba1ac88
AB
142742020-01-24 Graham Markall <graham.markall@embecosm.com>
14275
14276 PR gdb/23718
14277 * gdb/python/python.c (execute_gdb_command): Call
14278 async_enable_stdin in catch block.
14279
f3364a6d
AB
142802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14281
14282 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14283 SWITCH_THRU_ALL_UIS.
14284
733d0a67
AB
142852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14286
14287 PR tui/9765
14288 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14289 comment, add extra parameter, and update to store previous symbol
14290 when appropriate.
14291 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14292 add extra parameter.
14293 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14294 remove unneeded parameter, add try/catch around gdb_print_insn,
14295 rewrite to add items to asm_lines vector.
14296 (tui_find_backward_disassembly_start_address): New function.
14297 (tui_find_disassembly_address): Updated throughout.
14298 (tui_disasm_window::set_contents): Update for changes to
14299 tui_disassemble.
14300 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14301 number of lines to scroll.
14302
b3b3bada
SM
143032020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14304
14305 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14306 (SECT_OFF_DATA): Likewise.
14307 (SECT_OFF_RODATA): Likewise.
14308 (SECT_OFF_TEXT): Likewise.
14309 (SECT_OFF_BSS): Likewise.
14310 (struct objfile) <text_section_offset, data_section_offset>: New
14311 methods.
14312 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14313 objfile::text_section_offset.
14314 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14315 * coffread.c (coff_symtab_read): Likewise.
14316 (enter_linenos): Likewise.
14317 (process_coff_symbol): Likewise.
14318 * ctfread.c (get_objfile_text_range): Likewise.
14319 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14320 Use objfile::data_section_offset.
14321 * dwarf2-frame.c (execute_cfa_program): Use
14322 objfile::text_section_offset.
14323 (dwarf2_frame_find_fde): Likewise.
14324 * dwarf2read.c (create_addrmap_from_index): Likewise.
14325 (create_addrmap_from_aranges): Likewise.
14326 (dw2_find_pc_sect_compunit_symtab): Likewise.
14327 (process_psymtab_comp_unit_reader): Likewise.
14328 (add_partial_symbol): Likewise.
14329 (add_partial_subprogram): Likewise.
14330 (process_full_comp_unit): Likewise.
14331 (read_file_scope): Likewise.
14332 (read_func_scope): Likewise.
14333 (read_lexical_block_scope): Likewise.
14334 (read_call_site_scope): Likewise.
14335 (dwarf2_rnglists_process): Likewise.
14336 (dwarf2_ranges_process): Likewise.
14337 (dwarf2_ranges_read): Likewise.
14338 (dwarf_decode_lines_1): Likewise.
14339 (new_symbol): Likewise.
14340 (dwarf2_fetch_die_loc_sect_off): Likewise.
14341 (dwarf2_per_cu_text_offset): Likewise.
14342 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14343 * hppa-tdep.c (read_unwind_info): Likewise.
14344 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14345 * psympriv.h (struct partial_symtab): Likewise.
14346 * psymtab.c (find_pc_sect_psymtab): Likewise.
14347 * solib-svr4.c (enable_break): Likewise.
14348 * stap-probe.c (relocate_address): Use
14349 objfile::data_section_offset.
14350 * xcoffread.c (enter_line_range): Use
14351 objfile::text_section_offset.
14352 (read_xcoff_symtab): Likewise.
14353
ab53f382
SM
143542020-01-23 Simon Marchi <simon.marchi@efficios.com>
14355
14356 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14357 declaration to narrower scopes.
14358
e7eee665
SM
143592020-01-23 Simon Marchi <simon.marchi@efficios.com>
14360
14361 * darwin-nat.h (struct darwin_exception_msg, enum
14362 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14363 Move up.
14364 (class darwin_nat_target) <wait_1, check_new_threads,
14365 decode_exception_message, decode_message, stop_inferior,
14366 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14367 * darwin-nat.c (darwin_check_new_threads): Rename to...
14368 (darwin_nat_target::check_new_threads): ... this.
14369 (darwin_suspend_inferior_it): Remove.
14370 (darwin_decode_exception_message): Rename to...
14371 (darwin_nat_target::decode_exception_message): ... this.
14372 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14373 (darwin_decode_message): Rename to...
14374 (darwin_nat_target::decode_message): ... this.
14375 (cancel_breakpoint): Rename to...
14376 (darwin_nat_target::cancel_breakpoint): ... this.
14377 (darwin_wait): Rename to...
14378 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14379 instead of iterate_over_inferiors.
14380 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14381 (darwin_stop_inferior): Rename to...
14382 (darwin_nat_target::stop_inferior): ... this.
14383 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14384 (darwin_init_thread_list): Rename to...
14385 (darwin_nat_target::init_thread_list): ... this.
14386 (darwin_ptrace_him): Rename to...
14387 (darwin_nat_target::ptrace_him): ... this.
14388 (darwin_nat_target::create_inferior): Pass lambda function to
14389 fork_inferior.
14390 (darwin_nat_target::detach): Call stop_inferior instead of
14391 darwin_stop_inferior.
14392 * fork-inferior.h (fork_inferior): Change init_trace_fun
14393 parameter to gdb::function_view.
14394 * fork-inferior.c (fork_inferior): Likewise.
14395
c162ed3e
HD
143962020-01-23 Hannes Domani <ssbssa@yahoo.de>
14397
14398 * i386-cygwin-tdep.c (core_process_module_section): Update.
14399 * windows-nat.c (struct lm_info_windows): Add text_offset.
14400 (windows_xfer_shared_libraries): Update.
14401 * windows-tdep.c (windows_xfer_shared_library):
14402 Add text_offset_cached argument.
14403 * windows-tdep.h (windows_xfer_shared_library): Update.
14404
a1237872
SM
144052020-01-21 Simon Marchi <simon.marchi@efficios.com>
14406
14407 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14408
b3ee6dd9
SM
144092020-01-21 Simon Marchi <simon.marchi@efficios.com>
14410
14411 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14412 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14413 replace with range-based for.
14414 (gdbsim_interrupt_inferior): Remove.
14415 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14416 with a range-based for. Inline code from
14417 gdbsim_interrupt_inferior.
14418
f9fac3c8
SM
144192020-01-21 Simon Marchi <simon.marchi@efficios.com>
14420
14421 * infrun.c (proceed): Fix indentation.
14422
f6474de9
TT
144232020-01-21 Tom Tromey <tromey@adacore.com>
14424
14425 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14426 * python/python.c (python_extension_ops): Update.
14427 (gdbpy_colorize): New function.
14428 * python/lib/gdb/__init__.py (colorize): New function.
14429 * extension.h (ext_lang_colorize): Declare.
14430 * extension.c (ext_lang_colorize): New function.
14431 * extension-priv.h (struct extension_language_ops) <colorize>: New
14432 member.
14433 * cli/cli-style.c (_initialize_cli_style): Update help text.
14434
f0c702d4
LM
144352020-01-21 Luis Machado <luis.machado@linaro.org>
14436
14437 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14438 <cond>: Change type to bool.
14439 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14440 (aarch64_displaced_step_cb): Likewise.
14441 (aarch64_displaced_step_tb): Likewise.
14442
1ab139e5
LM
144432020-01-21 Luis Machado <luis.machado@linaro.org>
14444
14445 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14446 output.
14447
0c271889
LM
144482020-01-21 Luis Machado <luis.machado@linaro.org>
14449
14450 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14451 <pc_adjust>: Adjust the documentation.
14452 (aarch64_displaced_step_fixup): Check if PC really moved before
14453 adjusting it.
14454
4d89c1c7
TT
144552020-01-19 Tom Tromey <tom@tromey.com>
14456
14457 * disasm.c (~gdb_disassembler): New destructor.
14458 (gdb_buffered_insn_length): Call disassemble_free_target.
14459 * disasm.h (class gdb_disassembler): Declare destructor. Use
14460 DISABLE_COPY_AND_ASSIGN.
14461
c0ab21c2
TT
144622020-01-19 Tom Tromey <tom@tromey.com>
14463
14464 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14465 (die_reader_func_ftype): Remove.
14466 (cutu_reader): New class.
14467 (dw2_get_file_names_reader): Remove "data" parameter.
14468 (dw2_get_file_names): Use cutu_reader.
14469 (create_debug_type_hash_table): Update.
14470 (read_cutu_die_from_dwo): Update comment.
14471 (lookup_dwo_unit): Add dwo_name parameter.
14472 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14473 die_reader_func_ftype and data parameters.
14474 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14475 Remove die_reader_func_ftype and data parameters.
14476 (~cutu_reader): New; from init_cutu_and_read_dies.
14477 (cutu_reader::cutu_reader): Rename from
14478 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14479 and data parameters.
14480 (init_cutu_and_read_dies_simple): Remove.
14481 (struct process_psymtab_comp_unit_data): Remove.
14482 (process_psymtab_comp_unit_reader): Remove data parameter; add
14483 want_partial_unit and pretend_language parameters.
14484 (process_psymtab_comp_unit): Use cutu_reader.
14485 (build_type_psymtabs_reader): Remove data parameter.
14486 (build_type_psymtabs_1): Use cutu_reader.
14487 (process_skeletonless_type_unit): Likewise.
14488 (load_partial_comp_unit_reader): Remove.
14489 (load_partial_comp_unit): Use cutu_reader.
14490 (load_full_comp_unit_reader): Remove.
14491 (load_full_comp_unit): Use cutu_reader.
14492 (struct create_dwo_cu_data): Remove.
14493 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14494 dwo_unit parameters.
14495 (create_cus_hash_table): Use cutu_reader.
14496 (struct dwarf2_read_addr_index_data): Remove.
14497 (dwarf2_read_addr_index_reader): Remove.
14498 (dwarf2_read_addr_index): Use cutu_reader.
14499 (read_signatured_type_reader): Remove.
14500 (read_signatured_type): Use cutu_reader.
14501
45bbae5c
TT
145022020-01-19 Tom Tromey <tom@tromey.com>
14503
14504 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14505 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14506 (tui_wrefresh): Declare.
14507 * tui/tui-wingeneral.c (suppress_output): New global.
14508 (tui_suppress_output, ~tui_suppress_output): New constructor and
14509 destructor.
14510 (tui_wrefresh): New function.
14511 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14512 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14513 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14514 method.
14515 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14516 tui_wrefresh.
14517 (tui_data_window::no_refresh): New method.
14518 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14519 (tui_reg_command): Use tui_suppress_output
14520 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14521 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14522 method.
14523 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14524
4f13c1c0
TT
145252020-01-19 Tom Tromey <tom@tromey.com>
14526
14527 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14528 Handle case where symtab is null.
14529
fa47e446
SM
145302020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14531
14532 * linux-fork.c (one_fork_p): Simplify.
14533
26f42329
SM
145342020-01-17 Simon Marchi <simon.marchi@efficios.com>
14535
14536 * top.c (struct qt_args): Remove.
14537 (kill_or_detach): Change return type to void, replace `void *`
14538 parameter with a proper one.
14539 (print_inferior_quit_action): Likewise.
14540 (quit_confirm): Use range-based for loop to iterate over inferiors.
14541 (quit_force): Likewise.
14542
a9ac81b1
SM
145432020-01-17 Simon Marchi <simon.marchi@efficios.com>
14544
14545 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14546 `void *` parameter with proper parameters.
14547 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14548 (print_one_inferior): Change return type to void, replace `void *`
14549 parameter with proper parameters.
14550 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14551 inferiors.
14552 (get_other_inferior): Remove.
14553 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14554 inferiors.
14555
788eca49
SM
145562020-01-17 Simon Marchi <simon.marchi@efficios.com>
14557
14558 * mi/mi-interp.c (report_initial_inferior): Remove.
14559 (mi_interp::init): Use range-based for to iterate over inferiors.
14560
d9bc85b6
SM
145612020-01-17 Simon Marchi <simon.marchi@efficios.com>
14562
14563 * python/py-inferior.c (build_inferior_list): Remove.
14564 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14565
40c94099
CB
145662020-01-16 Christian Biesinger <cbiesinger@google.com>
14567
14568 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14569 (btrace_stitch_trace): Likewise.
14570 * charset.c (intermediate_encoding): Likewise (vaild).
14571 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14572 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14573 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14574
e0cdfe3c
HD
145752020-01-16 Hannes Domani <ssbssa@yahoo.de>
14576
14577 * windows-tdep.c (windows_get_tlb_type):
14578 Add rtl_user_process_parameters type.
14579
790f1718 145802020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14581 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14582
14583 PR build/24805
14584 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14585 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14586 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14587 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14588 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14589 (ps_plog): Redeclare exported functions with default visibility.
14590
3112ed97
NA
145912020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14592
14593 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14594 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14595
8dc3273e
SM
145962020-01-15 Simon Marchi <simon.marchi@efficios.com>
14597
14598 * infcmd.c (post_create_inferior): Use get_thread_regcache
14599 instead of get_current_regcache.
14600
ff47f4f0
TT
146012020-01-14 Tom Tromey <tom@tromey.com>
14602
14603 PR symtab/12535:
14604 * python/python.c (gdbpy_decode_line): Treat empty string the same
14605 as no argument.
14606
975f45b7
TT
146072020-01-14 Tom Tromey <tom@tromey.com>
14608
14609 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14610
25e57356
TT
146112020-01-14 Tom Tromey <tom@tromey.com>
14612
14613 * nat/linux-btrace.c: Don't include <config.h>.
14614 * nat/linux-ptrace.c: Don't include <config.h>.
14615 * nat/x86-linux-dregs.c: Don't include <config.h>.
14616
05ea2a05
TT
146172020-01-14 Tom Tromey <tom@tromey.com>
14618
14619 * configure: Rebuild.
14620 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14621
01027315
TT
146222020-01-14 Tom Tromey <tom@tromey.com>
14623
14624 * nat/x86-linux-dregs.c: Include configh.h.
14625 * nat/linux-ptrace.c: Include configh.h.
14626 * nat/linux-btrace.c: Include configh.h.
14627 * defs.h: Include config.h, bfd.h.
14628 * configure.ac: Don't source common.host.
14629 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14630 * configure: Rebuild.
14631 * acinclude.m4: Update path.
14632 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14633 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14634 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14635 (CLIBS): Add LIBSUPPORT.
14636 (CDEPS): Likewise.
14637 (COMMON_SFILES): Remove gdbsupport files.
14638 (HFILES_NO_SRCDIR): Likewise.
14639 (stamp-version): Update path to create-version.sh.
14640 (ALLDEPFILES): Remove gdbsupport files.
14641
b2ceabe8
TT
146422020-01-14 Tom Tromey <tom@tromey.com>
14643
14644 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14645 USE_WIN32API when needed.
14646 * configure.ac (USE_WIN32API): Don't define.
14647 (WIN32LIBS): Use WIN32APILIBS.
14648 * configure: Rebuild.
14649
25c51f71
TT
146502020-01-14 Tom Tromey <tom@tromey.com>
14651
14652 * configure: Rebuild.
14653 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14654
717c684d
BE
146552020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14656
14657 * skip.c (skip_function_command): Make skip w/o arguments use the
14658 name of the inlined function if pc is inside any inlined function.
14659
7da6a5b9
LM
146602020-01-14 Luis Machado <luis.machado@linaro.org>
14661
14662 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14663 * infrun.c (resume_1): Likewise.
14664 (handle_inferior_event): Remove stale comment.
14665 * linux-nat.c (linux_nat_target::resume): Update comments.
14666 (save_stop_reason): Likewise.
14667 (linux_nat_filter_event): Likewise.
14668 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14669
44e4c775
AB
146702020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14671
14672 * elfread.c (record_minimal_symbol): Set section index to 0 for
14673 non-allocatable sections.
14674
18a8505e
AT
14675
146762020-01-13 Ali Tamur <tamur@google.com>
14677
14678 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14679 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14680 to gdb::optional. Update comments.
14681 (dwo_file): Update comments.
14682 (read_attribute): Update API to take an additional out parameter,
14683 need_reprocess. This is used to mark attributes that need other
14684 attributes (e.g. str_offsets_base) for correct computation which may not
14685 have been read yet.
14686 (read_attribute_reprocess): New function declaration.
14687 (read_addr_index): Likewise.
14688 (read_dwo_str_index): Likewise.
14689 (read_stub_str_index): Likewise.
14690 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14691 (lookup_addr_base): New function definition.
14692 (lookup_ranges_base): Likewise.
14693 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14694 lookup_ranges_base.
14695 (init_cutu_and_read_dies): Update comments.
14696 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14697 unit. This is used to inherit parent's str_offsets_base and addr_base.
14698 Update comments.
14699 (init_cutu_and_read_dies_simple): Reflect API changes.
14700 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14701 (create_cus_hash_table): Change API to take parent compile unit.
14702 Reflect API changes.
14703 (open_and_init_dwo_file): Reflect API changes.
14704 (dwarf2_get_pc_bounds): Update comments.
14705 (dwarf2_record_block_ranges): Likewise.
14706 (read_full_die_1): Change implementation to reprocess attributes that
14707 need str_offsets_base and addr_base.
14708 (partial_die_info::read): Likewise.
14709 (read_attribute_reprocess): New function definition.
14710 (read_attribute_value): Change API to take an additional out parameter,
14711 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14712 when a non-dwo compile unit has index based attributes.
14713 (read_attribute): Reflect API changes.
14714 (read_addr_index_1): Reflect API changes. Update comments.
14715 (dwarf2_read_addr_index_data): Reflect API changes.
14716 (dwarf2_read_addr_index): Likewise.
14717 (read_str_index): Change API and implementation. This becomes a helper
14718 to be used by the new string index related methods. Update error
14719 message and comments.
14720 (read_dwo_str_index): New function definition.
14721 (read_stub_str_index): Likewise.
14722 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14723 * symfile.h (dwarf2_debug_sections): Likewise.
14724 * xcoffread.c (dwarf2_debug_sections): Likewise.
14725
0cac9354
SM
147262020-01-13 Simon Marchi <simon.marchi@efficios.com>
14727
14728 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14729 core_reg_sect type to gdb_byte *.
14730 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14731 * cris-tdep.c (fetch_core_registers): Likewise.
14732 * corelow.c (core_target::get_core_register_section): Change
14733 type of `contents` to gdb::byte_vector.
14734
9a6d629c
AB
147352020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14736
14737 * tui/tui-wingeneral.c (box_win): Position the title in the center
14738 of the border.
14739
d8b2f9e3
SM
147402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14741
14742 * corelow.c (core_target::get_core_register_section): Use
14743 std::vector instead of alloca.
14744
bb564c58
SM
147452020-01-13 Simon Marchi <simon.marchi@efficios.com>
14746
14747 * warning.m4: Add -Wmissing-declarations to build_warnings.
14748 * configure: Re-generate.
14749
6b366111
SM
147502020-01-13 Simon Marchi <simon.marchi@efficios.com>
14751
14752 * python/python.c (init__gdb_module): Add declaration.
14753
6c265988
SM
147542020-01-13 Simon Marchi <simon.marchi@efficios.com>
14755
14756 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14757 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14758 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14759 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14760 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14761 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14762 * ada-exp.y (_initialize_ada_exp): Add declaration.
14763 * ada-lang.c (_initialize_ada_language): Add declaration.
14764 * ada-tasks.c (_initialize_tasks): Add declaration.
14765 * agent.c (_initialize_agent): Add declaration.
14766 * aix-thread.c (_initialize_aix_thread): Add declaration.
14767 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14768 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14769 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14770 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14771 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14772 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14773 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14774 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14775 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14776 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14777 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14778 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14779 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14780 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14781 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14782 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14783 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14784 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14785 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14786 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14787 * annotate.c (_initialize_annotate): Add declaration.
14788 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14789 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14790 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14791 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14792 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14793 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14794 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14795 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14796 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14797 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14798 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14799 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14800 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14801 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14802 * auto-load.c (_initialize_auto_load): Add declaration.
14803 * auxv.c (_initialize_auxv): Add declaration.
14804 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14805 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14806 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14807 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14808 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14809 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14810 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14811 * breakpoint.c (_initialize_breakpoint): Add declaration.
14812 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14813 * btrace.c (_initialize_btrace): Add declaration.
14814 * charset.c (_initialize_charset): Add declaration.
14815 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14816 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14817 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14818 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14819 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14820 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14821 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14822 * coffread.c (_initialize_coffread): Add declaration.
14823 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14824 * compile/compile.c (_initialize_compile): Add declaration.
14825 * complaints.c (_initialize_complaints): Add declaration.
14826 * completer.c (_initialize_completer): Add declaration.
14827 * copying.c (_initialize_copying): Add declaration.
14828 * corefile.c (_initialize_core): Add declaration.
14829 * corelow.c (_initialize_corelow): Add declaration.
14830 * cp-abi.c (_initialize_cp_abi): Add declaration.
14831 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14832 * cp-support.c (_initialize_cp_support): Add declaration.
14833 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14834 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14835 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14836 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14837 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14838 * ctfread.c (_initialize_ctfread): Add declaration.
14839 * d-lang.c (_initialize_d_language): Add declaration.
14840 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14841 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14842 * dbxread.c (_initialize_dbxread): Add declaration.
14843 * dcache.c (_initialize_dcache): Add declaration.
14844 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14845 * disasm.c (_initialize_disasm): Add declaration.
14846 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14847 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14848 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14849 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14850 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14851 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14852 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14853 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14854 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14855 * elfread.c (_initialize_elfread): Add declaration.
14856 * exec.c (_initialize_exec): Add declaration.
14857 * extension.c (_initialize_extension): Add declaration.
14858 * f-lang.c (_initialize_f_language): Add declaration.
14859 * f-valprint.c (_initialize_f_valprint): Add declaration.
14860 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14861 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14862 * filesystem.c (_initialize_filesystem): Add declaration.
14863 * findcmd.c (_initialize_mem_search): Add declaration.
14864 * findvar.c (_initialize_findvar): Add declaration.
14865 * fork-child.c (_initialize_fork_child): Add declaration.
14866 * frame-base.c (_initialize_frame_base): Add declaration.
14867 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14868 * frame.c (_initialize_frame): Add declaration.
14869 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14870 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14871 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14872 * gcore.c (_initialize_gcore): Add declaration.
14873 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14874 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14875 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14876 * gdbarch.c (_initialize_gdbarch): Add declaration.
14877 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14878 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14879 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14880 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14881 * go-lang.c (_initialize_go_language): Add declaration.
14882 * go32-nat.c (_initialize_go32_nat): Add declaration.
14883 * guile/guile.c (_initialize_guile): Add declaration.
14884 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14885 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14886 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14887 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14888 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14889 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14890 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14891 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14892 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14893 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14894 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14895 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14896 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14897 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14898 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14899 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14900 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14901 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14902 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14903 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14904 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14905 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14906 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14907 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14908 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14909 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14910 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14911 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14912 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14913 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14914 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14915 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14916 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14917 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14918 * infcall.c (_initialize_infcall): Add declaration.
14919 * infcmd.c (_initialize_infcmd): Add declaration.
14920 * inflow.c (_initialize_inflow): Add declaration.
14921 * infrun.c (_initialize_infrun): Add declaration.
14922 * interps.c (_initialize_interpreter): Add declaration.
14923 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14924 * jit.c (_initialize_jit): Add declaration.
14925 * language.c (_initialize_language): Add declaration.
14926 * linux-fork.c (_initialize_linux_fork): Add declaration.
14927 * linux-nat.c (_initialize_linux_nat): Add declaration.
14928 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14929 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14930 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14931 * m2-lang.c (_initialize_m2_language): Add declaration.
14932 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14933 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14934 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14935 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14936 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14937 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14938 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14939 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14940 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14941 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14942 * machoread.c (_initialize_machoread): Add declaration.
14943 * macrocmd.c (_initialize_macrocmd): Add declaration.
14944 * macroscope.c (_initialize_macroscope): Add declaration.
14945 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14946 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14947 * maint.c (_initialize_maint_cmds): Add declaration.
14948 * mdebugread.c (_initialize_mdebugread): Add declaration.
14949 * memattr.c (_initialize_mem): Add declaration.
14950 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14951 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14952 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14953 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14954 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14955 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14956 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14957 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14958 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14959 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14960 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14961 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14962 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14963 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14964 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14965 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14966 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14967 * mipsread.c (_initialize_mipsread): Add declaration.
14968 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14969 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14970 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14971 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14972 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14973 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14974 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14975 * nto-procfs.c (_initialize_procfs): Add declaration.
14976 * objc-lang.c (_initialize_objc_language): Add declaration.
14977 * observable.c (_initialize_observer): Add declaration.
14978 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14979 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14980 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14981 * osabi.c (_initialize_gdb_osabi): Add declaration.
14982 * osdata.c (_initialize_osdata): Add declaration.
14983 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14984 * parse.c (_initialize_parse): Add declaration.
14985 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14986 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14987 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14988 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14989 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14990 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14991 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14992 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14993 * printcmd.c (_initialize_printcmd): Add declaration.
14994 * probe.c (_initialize_probe): Add declaration.
14995 * proc-api.c (_initialize_proc_api): Add declaration.
14996 * proc-events.c (_initialize_proc_events): Add declaration.
14997 * proc-service.c (_initialize_proc_service): Add declaration.
14998 * procfs.c (_initialize_procfs): Add declaration.
14999 * producer.c (_initialize_producer): Add declaration.
15000 * psymtab.c (_initialize_psymtab): Add declaration.
15001 * python/python.c (_initialize_python): Add declaration.
15002 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15003 * record-btrace.c (_initialize_record_btrace): Add declaration.
15004 * record-full.c (_initialize_record_full): Add declaration.
15005 * record.c (_initialize_record): Add declaration.
15006 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15007 * regcache.c (_initialize_regcache): Add declaration.
15008 * reggroups.c (_initialize_reggroup): Add declaration.
15009 * remote-notif.c (_initialize_notif): Add declaration.
15010 * remote-sim.c (_initialize_remote_sim): Add declaration.
15011 * remote.c (_initialize_remote): Add declaration.
15012 * reverse.c (_initialize_reverse): Add declaration.
15013 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15014 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15015 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15016 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15017 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15018 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15019 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15020 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15021 Add declaration.
15022 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15023 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15024 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15025 * rust-exp.y (_initialize_rust_exp): Add declaration.
15026 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15027 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15028 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15029 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15030 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15031 * score-tdep.c (_initialize_score_tdep): Add declaration.
15032 * ser-go32.c (_initialize_ser_dos): Add declaration.
15033 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15034 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15035 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15036 * ser-uds.c (_initialize_ser_socket): Add declaration.
15037 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15038 * serial.c (_initialize_serial): Add declaration.
15039 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15040 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15041 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15042 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15043 * skip.c (_initialize_step_skip): Add declaration.
15044 * sol-thread.c (_initialize_sol_thread): Add declaration.
15045 * solib-aix.c (_initialize_solib_aix): Add declaration.
15046 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15047 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15048 * solib-frv.c (_initialize_frv_solib): Add declaration.
15049 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15050 * solib-target.c (_initialize_solib_target): Add declaration.
15051 * solib.c (_initialize_solib): Add declaration.
15052 * source-cache.c (_initialize_source_cache): Add declaration.
15053 * source.c (_initialize_source): Add declaration.
15054 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15055 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15056 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15057 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15058 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15059 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15060 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15061 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15062 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15063 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15064 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15065 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15066 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15067 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15068 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15069 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15070 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15071 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15072 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15073 * stabsread.c (_initialize_stabsread): Add declaration.
15074 * stack.c (_initialize_stack): Add declaration.
15075 * stap-probe.c (_initialize_stap_probe): Add declaration.
15076 * std-regs.c (_initialize_frame_reg): Add declaration.
15077 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15078 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15079 * symfile.c (_initialize_symfile): Add declaration.
15080 * symmisc.c (_initialize_symmisc): Add declaration.
15081 * symtab.c (_initialize_symtab): Add declaration.
15082 * target.c (_initialize_target): Add declaration.
15083 * target-connection.c (_initialize_target_connection): Add
15084 declaration.
15085 * target-dcache.c (_initialize_target_dcache): Add declaration.
15086 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15087 * thread.c (_initialize_thread): Add declaration.
15088 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15089 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15090 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15091 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15092 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15093 * tracectf.c (_initialize_ctf): Add declaration.
15094 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15095 * tracefile.c (_initialize_tracefile): Add declaration.
15096 * tracepoint.c (_initialize_tracepoint): Add declaration.
15097 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15098 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15099 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15100 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15101 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15102 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15103 * tui/tui.c (_initialize_tui): Add declaration.
15104 * typeprint.c (_initialize_typeprint): Add declaration.
15105 * ui-style.c (_initialize_ui_style): Add declaration.
15106 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15107 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15108 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15109 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15110 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15111 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15112 * unittests/filtered_iterator-selftests.c
15113 (_initialize_filtered_iterator_selftests): Add declaration.
15114 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15115 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15116 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15117 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15118 * unittests/main-thread-selftests.c
15119 (_initialize_main_thread_selftests): Add declaration.
15120 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15121 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15122 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15123 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15124 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15125 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15126 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15127 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15128 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15129 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15130 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15131 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15132 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15133 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15134 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15135 declaration.
15136 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15137 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15138 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15139 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15140 * user-regs.c (_initialize_user_regs): Add declaration.
15141 * utils.c (_initialize_utils): Add declaration.
15142 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15143 * valops.c (_initialize_valops): Add declaration.
15144 * valprint.c (_initialize_valprint): Add declaration.
15145 * value.c (_initialize_values): Add declaration.
15146 * varobj.c (_initialize_varobj): Add declaration.
15147 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15148 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15149 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15150 * windows-nat.c (_initialize_windows_nat): Add declaration.
15151 (_initialize_check_for_gdb_ini): Add declaration.
15152 (_initialize_loadable): Add declaration.
15153 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15154 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15155 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15156 * xcoffread.c (_initialize_xcoffread): Add declaration.
15157 * xml-support.c (_initialize_xml_support): Add declaration.
15158 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15159 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15160 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15161 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15162
e2de1eec
SM
151632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15164
15165 * regformats/regdat.sh: Generate declaration for init function.
15166
e0037b4c
SM
151672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15168
15169 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15170 up.
15171 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15172 close_one_inferior>: New methods.
15173 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15174 pass down target to find_inferior_pid.
15175 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15176 Pass down target to find_inferior_ptid.
15177 (gdbsim_target::create_inferior): Pass down target to
15178 add_thread_silent.
15179 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15180 target down to find_inferior_ptid and switch_to_thread.
15181 (gdbsim_target::close): Update to call close_one_inferior.
15182 (struct resume_data): Remove.
15183 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15184 directly, rather than through a void pointer.
15185 (gdbsim_target::resume): Update to call resume_one_inferior.
15186
58920b5b
SM
151872020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15188
15189 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15190
4ec89149
PA
151912020-01-12 Pedro Alves <palves@redhat.com>
15192
15193 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15194 directly for the current inferior instead of
15195 discard_all_inferiors.
15196 (discard_all_inferiors): Delete.
15197
7c392d1d
TT
151982020-01-11 Tom Tromey <tom@tromey.com>
15199
15200 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15201 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15202 deprecated_safe_get_selected_frame.
15203
d9ebdab7
TBA
152042020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15205
15206 * inferior.c (print_inferior): Switch inferior before printing it.
15207
f3c469b9
PA
152082020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15209 Pedro Alves <palves@redhat.com>
15210
15211 * progspace-and-thread.c (switch_to_program_space_and_thread):
15212 Assert there's an inferior for PSPACE. Use
15213 switch_to_inferior_no_thread to switch the inferior too.
15214 * progspace.c (program_space::~program_space): Call
15215 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15216 (program_space::free_all_objfiles): Don't call clear_symtab_users
15217 here.
15218 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15219
65c574f6
PA
152202020-01-10 Pedro Alves <palves@redhat.com>
15221
15222 * NEWS: Mention multi-target debugging, "info connections", and
15223 "add-inferior -no-connection".
15224
2f4fcf00
PA
152252020-01-10 Pedro Alves <palves@redhat.com>
15226
15227 * infrun.c: Include "target-connection.h".
15228 (check_multi_target_resumption): New.
15229 (proceed): Call it.
15230 * target-connection.c (make_target_connection_string): Make
15231 extern.
15232 * target-connection.h (make_target_connection_string): Declare.
15233
121b3efd
PA
152342020-01-10 Pedro Alves <palves@redhat.com>
15235
15236 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15237 * inferior.c (uiout_field_connection): New function.
15238 (print_inferior): Add new "connection-id" column.
15239 (add_inferior_command): Show connection number/string of added
15240 inferior.
15241 * process-stratum-target.h
15242 (process_stratum_target::connection_string): New virtual method.
15243 (process_stratum_target::connection_number): New field.
15244 * remote.c (remote_target::connection_string): New override.
15245 * target-connection.c: New file.
15246 * target-connection.h: New file.
15247 * target.c (decref_target): Remove process_stratum targets from
15248 the connection list.
15249 (target_stack::push): Add process_stratum targets to the
15250 connection list.
15251
4f837581
PA
152522020-01-10 Pedro Alves <palves@redhat.com>
15253
15254 Revert:
15255 2016-04-12 Pedro Alves <palves@redhat.com>
15256 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15257 Remove references to name.
15258 * serial.h (struct serial) <name>: Delete.
15259
f4ec508e
PA
152602020-01-10 Pedro Alves <palves@redhat.com>
15261
15262 * gdbarch-selftests.c (register_to_value_test): Remove "target
15263 already pushed" check.
15264
5b6d1e4f
PA
152652020-01-10 Pedro Alves <palves@redhat.com>
15266 John Baldwin <jhb@FreeBSD.org>
15267
15268 * aarch64-linux-nat.c
15269 (aarch64_linux_nat_target::thread_architecture): Adjust.
15270 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15271 (task_command_1): Likewise.
15272 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15273 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15274 (aix_thread_target::store_registers)
15275 (aix_thread_target::thread_alive): Adjust.
15276 * amd64-fbsd-tdep.c: Include "inferior.h".
15277 (amd64fbsd_get_thread_local_address): Pass down target.
15278 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15279 thread's gdbarch instead of target_gdbarch.
15280 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15281 get_last_target_status.
15282 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15283 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15284 inferiors.
15285 (update_inserted_breakpoint_locations): Skip if inferiors with no
15286 execution.
15287 (update_global_location_list): When handling moribund locations,
15288 find representative inferior for location's pspace, and use thread
15289 count of its process_stratum target.
15290 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15291 * bsd-uthread.c (bsd_uthread_target::wait): Use
15292 as_process_stratum_target and adjust thread_change_ptid and
15293 add_thread calls.
15294 (bsd_uthread_target::update_thread_list): Use
15295 as_process_stratum_target and adjust find_thread_ptid,
15296 thread_change_ptid and add_thread calls.
15297 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15298 find_thread_ptid call.
15299 * corelow.c (add_to_thread_list): Adjust add_thread call.
15300 (core_target_open): Adjust add_thread_silent and thread_count
15301 calls.
15302 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15303 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15304 * event-top.c (async_disconnect): Pop targets from all inferiors.
15305 * exec.c (add_target_sections): Push exec target on all inferiors
15306 sharing the program space.
15307 (remove_target_sections): Remove the exec target from all
15308 inferiors sharing the program space.
15309 (exec_on_vfork): New.
15310 * exec.h (exec_on_vfork): Declare.
15311 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15312 Pass it down.
15313 (fbsd_nat_target::update_thread_list): Adjust.
15314 (fbsd_nat_target::resume): Adjust.
15315 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15316 down.
15317 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15318 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15319 get_thread_arch_regcache call.
15320 * fork-child.c (gdb_startup_inferior): Pass target down to
15321 startup_inferior and set_executing.
15322 * gdbthread.h (struct process_stratum_target): Forward declare.
15323 (add_thread, add_thread_silent, add_thread_with_info)
15324 (in_thread_list): Add process_stratum_target parameter.
15325 (find_thread_ptid(inferior*, ptid_t)): New overload.
15326 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15327 parameter.
15328 (all_threads()): Delete overload.
15329 (all_threads, all_non_exited_threads): Add process_stratum_target
15330 parameter.
15331 (all_threads_safe): Use brace initialization.
15332 (thread_count): Add process_stratum_target parameter.
15333 (set_resumed, set_running, set_stop_requested, set_executing)
15334 (threads_are_executing, finish_thread_state): Add
15335 process_stratum_target parameter.
15336 (switch_to_thread): Use is_current_thread.
15337 * i386-fbsd-tdep.c: Include "inferior.h".
15338 (i386fbsd_get_thread_local_address): Pass down target.
15339 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15340 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15341 have_inferiors check.
15342 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15343 (inf_ptrace_target::attach): Adjust.
15344 * infcall.c (run_inferior_call): Adjust.
15345 * infcmd.c (run_command_1): Pass target to
15346 scoped_finish_thread_state.
15347 (proceed_thread_callback): Skip inferiors with no execution.
15348 (continue_command): Rename 'all_threads' local to avoid hiding
15349 'all_threads' function. Adjust get_last_target_status call.
15350 (prepare_one_step): Adjust set_running call.
15351 (signal_command): Use user_visible_resume_target. Compare thread
15352 pointers instead of inferior_ptid.
15353 (info_program_command): Adjust to pass down target.
15354 (attach_command): Mark target's 'thread_executing' flag.
15355 (stop_current_target_threads_ns): New, factored out from ...
15356 (interrupt_target_1): ... this. Switch inferior before making
15357 target calls.
15358 * inferior-iter.h
15359 (struct all_inferiors_iterator, struct all_inferiors_range)
15360 (struct all_inferiors_safe_range)
15361 (struct all_non_exited_inferiors_range): Filter on
15362 process_stratum_target too. Remove explicit.
15363 * inferior.c (inferior::inferior): Push dummy target on target
15364 stack.
15365 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15366 Add process_stratum_target parameter, and pass it down.
15367 (have_live_inferiors): Adjust.
15368 (switch_to_inferior_and_push_target): New.
15369 (add_inferior_command, clone_inferior_command): Handle
15370 "-no-connection" parameter. Use
15371 switch_to_inferior_and_push_target.
15372 (_initialize_inferior): Mention "-no-connection" option in
15373 the help of "add-inferior" and "clone-inferior" commands.
15374 * inferior.h: Include "process-stratum-target.h".
15375 (interrupt_target_1): Use bool.
15376 (struct inferior) <push_target, unpush_target, target_is_pushed,
15377 find_target_beneath, top_target, process_target, target_at,
15378 m_stack>: New.
15379 (discard_all_inferiors): Delete.
15380 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15381 (all_inferiors, all_non_exited_inferiors): Add
15382 process_stratum_target parameter.
15383 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15384 (target_last_proc_target): New global.
15385 (follow_fork_inferior): Push target on new inferior. Pass target
15386 to add_thread_silent. Call exec_on_vfork. Handle target's
15387 reference count.
15388 (follow_fork): Adjust get_last_target_status call. Also consider
15389 target.
15390 (follow_exec): Push target on new inferior.
15391 (struct execution_control_state) <target>: New field.
15392 (user_visible_resume_target): New.
15393 (do_target_resume): Call target_async.
15394 (resume_1): Set target's threads_executing flag. Consider resume
15395 target.
15396 (commit_resume_all_targets): New.
15397 (proceed): Also consider resume target. Skip threads of inferiors
15398 with no execution. Commit resumtion in all targets.
15399 (start_remote): Pass current inferior to wait_for_inferior.
15400 (infrun_thread_stop_requested): Consider target as well. Pass
15401 thread_info pointer to clear_inline_frame_state instead of ptid.
15402 (infrun_thread_thread_exit): Consider target as well.
15403 (random_pending_event_thread): New inferior parameter. Use it.
15404 (do_target_wait): Rename to ...
15405 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15406 down.
15407 (threads_are_resumed_pending_p, do_target_wait): New.
15408 (prepare_for_detach): Adjust calls.
15409 (wait_for_inferior): New inferior parameter. Handle it. Use
15410 do_target_wait_1 instead of do_target_wait.
15411 (fetch_inferior_event): Adjust. Switch to representative
15412 inferior. Pass target down.
15413 (set_last_target_status): Add process_stratum_target parameter.
15414 Save target in global.
15415 (get_last_target_status): Add process_stratum_target parameter and
15416 handle it.
15417 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15418 (context_switch): Check inferior_ptid == null_ptid before calling
15419 inferior_thread().
15420 (get_inferior_stop_soon): Pass down target.
15421 (wait_one): Rename to ...
15422 (poll_one_curr_target): ... this.
15423 (struct wait_one_event): New.
15424 (wait_one): New.
15425 (stop_all_threads): Adjust.
15426 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15427 event's target.
15428 (switch_back_to_stepped_thread): Also consider target.
15429 (print_stop_event): Update.
15430 (normal_stop): Update. Also consider the resume target.
15431 * infrun.h (wait_for_inferior): Remove declaration.
15432 (user_visible_resume_target): New declaration.
15433 (get_last_target_status, set_last_target_status): New
15434 process_stratum_target parameter.
15435 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15436 process_stratum_target parameter, and use it.
15437 (clear_inline_frame_state (thread_info*)): New.
15438 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15439 process_stratum_target parameter.
15440 (clear_inline_frame_state (thread_info*)): Declare.
15441 * linux-fork.c (delete_checkpoint_command): Pass target down to
15442 find_thread_ptid.
15443 (checkpoint_command): Adjust.
15444 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15445 instead of just tweaking inferior_ptid.
15446 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15447 (exit_lwp): Pass target down to find_thread_ptid.
15448 (attach_proc_task_lwp_callback): Pass target down to
15449 add_thread/set_running/set_executing.
15450 (linux_nat_target::attach): Pass target down to
15451 thread_change_ptid.
15452 (get_detach_signal): Pass target down to find_thread_ptid.
15453 Consider last target status's target.
15454 (linux_resume_one_lwp_throw, resume_lwp)
15455 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15456 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15457 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15458 (linux_nat_target::async_wait_fd): New.
15459 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15460 target down.
15461 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15462 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15463 * linux-thread-db.c (struct thread_db_info::process_target): New
15464 field.
15465 (add_thread_db_info): Save target.
15466 (get_thread_db_info): New process_stratum_target parameter. Also
15467 match target.
15468 (delete_thread_db_info): New process_stratum_target parameter.
15469 Also match target.
15470 (thread_from_lwp): Adjust to pass down target.
15471 (thread_db_notice_clone): Pass down target.
15472 (check_thread_db_callback): Pass down target.
15473 (try_thread_db_load_1): Always push the thread_db target.
15474 (try_thread_db_load, record_thread): Pass target down.
15475 (thread_db_target::detach): Pass target down. Always unpush the
15476 thread_db target.
15477 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15478 target down. Always unpush the thread_db target.
15479 (find_new_threads_callback, thread_db_find_new_threads_2)
15480 (thread_db_target::update_thread_list): Pass target down.
15481 (thread_db_target::pid_to_str): Pass current inferior down.
15482 (thread_db_target::get_thread_local_address): Pass target down.
15483 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15484 target down.
15485 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15486 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15487 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15488 (procfs_init_inferior): Rename to ...
15489 (procfs_target::procfs_init_inferior): ... this and adjust.
15490 (procfs_target::create_inferior, procfs_notice_thread)
15491 (procfs_do_thread_registers): Adjust.
15492 * ppc-fbsd-tdep.c: Include "inferior.h".
15493 (ppcfbsd_get_thread_local_address): Pass down target.
15494 * proc-service.c (ps_xfer_memory): Switch current inferior and
15495 program space as well.
15496 (get_ps_regcache): Pass target down.
15497 * process-stratum-target.c
15498 (process_stratum_target::thread_address_space)
15499 (process_stratum_target::thread_architecture): Pass target down.
15500 * process-stratum-target.h
15501 (process_stratum_target::threads_executing): New field.
15502 (as_process_stratum_target): New.
15503 * ravenscar-thread.c
15504 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15505 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15506 down.
15507 * record-btrace.c (record_btrace_target::info_record): Adjust.
15508 (record_btrace_target::record_method)
15509 (record_btrace_target::record_is_replaying)
15510 (record_btrace_target::fetch_registers)
15511 (get_thread_current_frame_id, record_btrace_target::resume)
15512 (record_btrace_target::wait, record_btrace_target::stop): Pass
15513 target down.
15514 * record-full.c (record_full_wait_1): Switch to event thread.
15515 Pass target down.
15516 * regcache.c (regcache::regcache)
15517 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15518 process_stratum_target parameter and handle it.
15519 (current_thread_target): New global.
15520 (get_thread_regcache): Add process_stratum_target parameter and
15521 handle it. Switch inferior before calling target method.
15522 (get_thread_regcache): Pass target down.
15523 (get_thread_regcache_for_ptid): Pass target down.
15524 (registers_changed_ptid): Add process_stratum_target parameter and
15525 handle it.
15526 (registers_changed_thread, registers_changed): Pass target down.
15527 (test_get_thread_arch_aspace_regcache): New.
15528 (current_regcache_test): Define a couple local test_target_ops
15529 instances and use them for testing.
15530 (readwrite_regcache): Pass process_stratum_target parameter.
15531 (cooked_read_test, cooked_write_test): Pass mock_target down.
15532 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15533 (get_thread_arch_aspace_regcache): Add process_stratum_target
15534 parameter.
15535 (regcache::target): New method.
15536 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15537 (regcache::registers_changed_ptid): Add process_stratum_target
15538 parameter.
15539 (regcache::m_target): New field.
15540 (registers_changed_ptid): Add process_stratum_target parameter.
15541 * remote.c (remote_state::supports_vCont_probed): New field.
15542 (remote_target::async_wait_fd): New method.
15543 (remote_unpush_and_throw): Add remote_target parameter.
15544 (get_current_remote_target): Adjust.
15545 (remote_target::remote_add_inferior): Push target.
15546 (remote_target::remote_add_thread)
15547 (remote_target::remote_notice_new_inferior)
15548 (get_remote_thread_info): Pass target down.
15549 (remote_target::update_thread_list): Skip threads of inferiors
15550 bound to other targets. (remote_target::close): Don't discard
15551 inferiors. (remote_target::add_current_inferior_and_thread)
15552 (remote_target::process_initial_stop_replies)
15553 (remote_target::start_remote)
15554 (remote_target::remote_serial_quit_handler): Pass down target.
15555 (remote_target::remote_unpush_target): New remote_target
15556 parameter. Unpush the target from all inferiors.
15557 (remote_target::remote_unpush_and_throw): New remote_target
15558 parameter. Pass it down.
15559 (remote_target::open_1): Check whether the current inferior has
15560 execution instead of checking whether any inferior is live. Pass
15561 target down.
15562 (remote_target::remote_detach_1): Pass down target. Use
15563 remote_unpush_target.
15564 (extended_remote_target::attach): Pass down target.
15565 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15566 (remote_target::append_resumption): Pass down target.
15567 (remote_target::append_pending_thread_resumptions)
15568 (remote_target::remote_resume_with_hc, remote_target::resume)
15569 (remote_target::commit_resume): Pass down target.
15570 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15571 (remote_target::interrupt_query)
15572 (remote_target::remove_new_fork_children)
15573 (remote_target::check_pending_events_prevent_wildcard_vcont)
15574 (remote_target::remote_parse_stop_reply)
15575 (remote_target::process_stop_reply): Pass down target.
15576 (first_remote_resumed_thread): New remote_target parameter. Pass
15577 it down.
15578 (remote_target::wait_as): Pass down target.
15579 (unpush_and_perror): New remote_target parameter. Pass it down.
15580 (remote_target::readchar, remote_target::remote_serial_write)
15581 (remote_target::getpkt_or_notif_sane_1)
15582 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15583 down target.
15584 (remote_target::mourn_inferior): Pass down target. Use
15585 remote_unpush_target.
15586 (remote_target::core_of_thread)
15587 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15588 (remote_target::pid_to_exec_file)
15589 (remote_target::thread_handle_to_thread_info): Pass down target.
15590 (remote_target::async_wait_fd): New.
15591 * riscv-fbsd-tdep.c: Include "inferior.h".
15592 (riscv_fbsd_get_thread_local_address): Pass down target.
15593 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15594 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15595 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15596 Adjust.
15597 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15598 * solib-svr4.c (enable_break): Pass down target.
15599 * spu-multiarch.c (parse_spufs_run): Pass down target.
15600 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15601 * target-delegates.c: Regenerate.
15602 * target.c (g_target_stack): Delete.
15603 (current_top_target): Return the current inferior's top target.
15604 (target_has_execution_1): Refer to the passed-in inferior's top
15605 target.
15606 (target_supports_terminal_ours): Check whether the initial
15607 inferior was already created.
15608 (decref_target): New.
15609 (target_stack::push): Incref/decref the target.
15610 (push_target, push_target, unpush_target): Adjust.
15611 (target_stack::unpush): Defref target.
15612 (target_is_pushed): Return bool. Adjust to refer to the current
15613 inferior's target stack.
15614 (dispose_inferior): Delete, and inline parts ...
15615 (target_preopen): ... here. Only dispose of the current inferior.
15616 (target_detach): Hold strong target reference while detaching.
15617 Pass target down.
15618 (target_thread_name): Add assertion.
15619 (target_resume): Pass down target.
15620 (target_ops::beneath, find_target_at): Adjust to refer to the
15621 current inferior's target stack.
15622 (get_dummy_target): New.
15623 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15624 has a thread running.
15625 (initialize_targets): Rename to ...
15626 (_initialize_target): ... this.
15627 * target.h: Include "gdbsupport/refcounted-object.h".
15628 (struct target_ops): Inherit refcounted_object.
15629 (target_ops::shortname, target_ops::longname): Make const.
15630 (target_ops::async_wait_fd): New method.
15631 (decref_target): Declare.
15632 (struct target_ops_ref_policy): New.
15633 (target_ops_ref): New typedef.
15634 (get_dummy_target): Declare function.
15635 (target_is_pushed): Return bool.
15636 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15637 (all_matching_threads_iterator::all_matching_threads_iterator):
15638 Handle filter target.
15639 * thread-iter.h (struct all_matching_threads_iterator, struct
15640 all_matching_threads_range, class all_non_exited_threads_range):
15641 Filter by target too. Remove explicit.
15642 * thread.c (threads_executing): Delete.
15643 (inferior_thread): Pass down current inferior.
15644 (clear_thread_inferior_resources): Pass down thread pointer
15645 instead of ptid_t.
15646 (add_thread_silent, add_thread_with_info, add_thread): Add
15647 process_stratum_target parameter. Use it for thread and inferior
15648 searches.
15649 (is_current_thread): New.
15650 (thread_info::deletable): Use it.
15651 (find_thread_ptid, thread_count, in_thread_list)
15652 (thread_change_ptid, set_resumed, set_running): New
15653 process_stratum_target parameter. Pass it down.
15654 (set_executing): New process_stratum_target parameter. Pass it
15655 down. Adjust reference to 'threads_executing'.
15656 (threads_are_executing): New process_stratum_target parameter.
15657 Adjust reference to 'threads_executing'.
15658 (set_stop_requested, finish_thread_state): New
15659 process_stratum_target parameter. Pass it down.
15660 (switch_to_thread): Also match inferior.
15661 (switch_to_thread): New process_stratum_target parameter. Pass it
15662 down.
15663 (update_threads_executing): Reimplement.
15664 * top.c (quit_force): Pop targets from all inferior.
15665 (gdb_init): Don't call initialize_targets.
15666 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15667 Declare.
15668 (windows_add_thread, windows_delete_thread): Adjust.
15669 (get_windows_debug_event): Rename to ...
15670 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15671 * tracefile-tfile.c (tfile_target_open): Pass down target.
15672 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15673 Forward declare.
15674 (switch_to_thread): Add process_stratum_target parameter.
15675 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15676 parameter. Use it.
15677 (mi_on_resume): Pass target down.
15678 * nat/fork-inferior.c (startup_inferior): Add
15679 process_stratum_target parameter. Pass it down.
15680 * nat/fork-inferior.h (startup_inferior): Add
15681 process_stratum_target parameter.
15682 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15683
75c6c844
PA
156842020-01-10 Pedro Alves <palves@redhat.com>
15685
15686 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15687 directly. Instead find the first thread in the thread list and
15688 use switch_to_thread.
15689
78f2c40a
PA
156902020-01-10 Pedro Alves <palves@redhat.com>
15691
15692 * remote.c (remote_target::remote_add_inferior): Don't bind a
15693 process to the current inferior if the current inferior is already
15694 bound to a process.
15695
e7af6c70
TBA
156962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15697 Pedro Alves <palves@redhat.com>
15698
15699 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15700 If no process is specified, return null_ptid instead of
15701 inferior_ptid.
15702 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15703 TARGET_WAITKIND_SIGNALLED with no pid.
15704
31ba933e
PA
157052020-01-10 Pedro Alves <palves@redhat.com>
15706
15707 * remote.c (first_remote_resumed_thread): New.
15708 (remote_target::wait_as): Use it as default event_ptid instead of
15709 inferior_ptid.
15710
735fc2ca
PA
157112020-01-10 Pedro Alves <palves@redhat.com>
15712
15713 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15714
c17e02e1
PA
157152020-01-10 Pedro Alves <palves@redhat.com>
15716
15717 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15718 not -1.
15719
ab1ddbcf
PA
157202020-01-10 Pedro Alves <palves@redhat.com>
15721
15722 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15723 ptid to get_last_target_status.
15724 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15725 ptid to get_last_target_status.
15726 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15727 get_last_target_status.
15728 (info_program_command): Don't pass a target_waitstatus to
15729 get_last_target_status.
15730 * infrun.c (init_wait_for_inferior): Use
15731 nullify_last_target_wait_ptid.
15732 (get_last_target_status): Handle nullptr arguments.
15733 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15734 (print_stop_event): Don't pass a ptid to get_last_target_status.
15735 (normal_stop): Don't pass a ptid to get_last_target_status.
15736 * infrun.h (get_last_target_status, set_last_target_status): Move
15737 comments here and update.
15738 (nullify_last_target_wait_ptid): Declare.
15739 * linux-fork.c (fork_load_infrun_state): Remove local extern
15740 declaration of nullify_last_target_wait_ptid.
15741 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15742 to get_last_target_status.
15743
f3f8ece4
PA
157442020-01-10 Pedro Alves <palves@redhat.com>
15745
15746 * gdbthread.h (scoped_restore_current_thread)
15747 <dont_restore, restore, m_dont_restore>: Declare.
15748 * thread.c (thread_alive): Add assertion. Return bool.
15749 (switch_to_thread_if_alive): New.
15750 (prune_threads): Switch inferior/thread.
15751 (print_thread_info_1): Switch thread before calling target methods.
15752 (scoped_restore_current_thread::restore): New, factored out from
15753 ...
15754 (scoped_restore_current_thread::~scoped_restore_current_thread):
15755 ... this.
15756 (scoped_restore_current_thread::scoped_restore_current_thread):
15757 Add assertion.
15758 (thread_apply_all_command, thread_select): Use
15759 switch_to_thread_if_alive.
15760 * infrun.c (proceed, restart_threads, handle_signal_stop)
15761 (switch_back_to_stepped_thread): Switch current thread before
15762 calling target methods.
15763
db2d40f7
PA
157642020-01-10 Pedro Alves <palves@redhat.com>
15765
15766 * inferior.c (switch_to_inferior_no_thread): New function,
15767 factored out from ...
15768 (inferior_command): ... here.
15769 * inferior.h (switch_to_inferior_no_thread): Declare.
15770 * mi/mi-main.c (run_one_inferior): Use
15771 switch_to_inferior_no_thread.
15772
bd420a2d
PA
157732020-01-10 Pedro Alves <palves@redhat.com>
15774
15775 * infcmd.c (kill_command): Remove dead code.
15776
ddf5db90
PA
157772020-01-10 Pedro Alves <palves@redhat.com>
15778
15779 * remote.c (remote_target::mourn_inferior): No longer check
15780 whether the target is running.
15781
5018ce90
PA
157822020-01-10 Pedro Alves <palves@redhat.com>
15783
15784 * corelow.c (core_target::has_execution): Change parameter type to
15785 inferior pointer.
15786 * inferior.c (number_of_live_inferiors): Use
15787 inferior::has_execution instead of target_has_execution_1.
15788 * inferior.h (inferior::has_execution): New.
15789 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15790 inferior::has_execution instead of target_has_execution_1.
15791 * process-stratum-target.c
15792 (process_stratum_target::has_execution): Change parameter type to
15793 inferior pointer. Check the inferior's PID instead of
15794 inferior_ptid.
15795 * process-stratum-target.h
15796 (process_stratum_target::has_execution): Change parameter type to
15797 inferior pointer.
15798 * record-full.c (record_full_core_target::has_execution): Change
15799 parameter type to inferior pointer.
15800 * target.c (target_has_execution_1): Change parameter type to
15801 inferior pointer.
15802 (target_has_execution_current): Adjust.
15803 * target.h (target_ops::has_execution): Change parameter type to
15804 inferior pointer.
15805 (target_has_execution_1): Change parameter type to inferior
15806 pointer. Change return type to bool.
15807 * tracefile.h (tracefile_target::has_execution): Change parameter
15808 type to inferior pointer.
15809
74375d18
PA
158102020-01-10 Pedro Alves <palves@redhat.com>
15811
15812 * exceptions.c (print_flush): Remove current_top_target() check.
15813
acdf84a6
PA
158142020-01-10 Pedro Alves <palves@redhat.com>
15815
15816 * remote.c (show_remote_exec_file): Show the current inferior's
15817 exec-file instead of the command variable's value.
15818
ec506636
PA
158192020-01-10 Pedro Alves <palves@redhat.com>
15820
15821 * record-full.c (record_full_resume_ptid): New global.
15822 (record_full_target::resume): Set it.
15823 (record_full_wait_1): Use record_full_resume_ptid instead of
15824 inferior_ptid.
15825
873657b9
PA
158262020-01-10 Pedro Alves <palves@redhat.com>
15827
15828 * gdbthread.h (scoped_restore_current_thread)
15829 <dont_restore, restore, m_dont_restore>: Declare.
15830 * thread.c (thread_alive): Add assertion. Return bool.
15831 (switch_to_thread_if_alive): New.
15832 (prune_threads): Switch inferior/thread.
15833 (print_thread_info_1): Switch thread before calling target methods.
15834 (scoped_restore_current_thread::restore): New, factored out from
15835 ...
15836 (scoped_restore_current_thread::~scoped_restore_current_thread):
15837 ... this.
15838 (scoped_restore_current_thread::scoped_restore_current_thread):
15839 Add assertion.
15840 (thread_apply_all_command, thread_select): Use
15841 switch_to_thread_if_alive.
15842
7f0ae84c
GB
158432020-01-10 George Barrett <bob@bob131.so>
15844
15845 * stap-probe.c (stap_modify_semaphore): Don't check for null
15846 semaphores.
15847 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15848 for null semaphores.
15849
f5a7c406
AB
158502020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15851
15852 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15853 all source windows, and maintain horizontal scroll status while
15854 doing so.
15855
9ae6bf64
TT
158562020-01-09 Tom Tromey <tom@tromey.com>
15857
15858 PR tui/18932:
15859 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15860 update_source_window, not print_source_lines.
15861
b2efe70c
AB
158622020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15863
15864 * tui/tui.c (tui_enable): Register tui hooks after calling
15865 tui_display_main.
15866
5f23a082
CB
158672020-01-09 Christian Biesinger <cbiesinger@google.com>
15868
15869 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15870
3061113b
SM
158712020-01-08 Simon Marchi <simon.marchi@efficios.com>
15872
15873 * thread.c (print_thread_info_1): Fix indentation.
15874
57d75002
CB
158752020-01-09 Christian Biesinger <cbiesinger@google.com>
15876
15877 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15878 unique_xmalloc_ptr outside the if to always free the demangled name.
15879
6a053cb1
TT
158802020-01-08 Tom Tromey <tromey@adacore.com>
15881
15882 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15883 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15884 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15885 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15886 Remove.
15887 (section_offsets): New typedef.
15888 * symtab.c (fixup_section, get_msymbol_address): Update.
15889 * symmisc.c (dump_msymbols): Update.
15890 * symfile.h (relative_addr_info_to_section_offsets)
15891 (symfile_map_offsets_to_segments): Update.
15892 * symfile.c (build_section_addr_info_from_objfile)
15893 (init_objfile_sect_indices): Update.
15894 (struct place_section_arg): Change type of "offsets".
15895 (place_section): Update.
15896 (relative_addr_info_to_section_offsets): Change type of
15897 "section_offsets". Remove "num_sections" parameter.
15898 (default_symfile_offsets, syms_from_objfile_1)
15899 (set_objfile_default_section_offset): Update.
15900 (reread_symbols): No need to preserve section offsets by hand.
15901 (symfile_map_offsets_to_segments): Change type of "offsets".
15902 * stap-probe.c (relocate_address): Update.
15903 * stabsread.h (process_one_symbol): Update.
15904 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15905 (solib_target_relocate_section_addresses): Update.
15906 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15907 Update.
15908 * solib-frv.c (frv_relocate_main_executable): Update.
15909 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15910 * solib-aix.c (solib_aix_get_section_offsets): Change return
15911 type.
15912 (solib_aix_solib_create_inferior_hook): Update.
15913 * remote.c (remote_target::get_offsets): Update.
15914 * psymtab.c (find_pc_sect_psymtab): Update.
15915 * psympriv.h (struct partial_symbol) <address, text_low,
15916 text_high>: Update.
15917 * objfiles.h (obj_section_offset): Update.
15918 (struct objfile) <section_offsets>: Change type.
15919 <num_sections>: Remove.
15920 (objfile_relocate): Update.
15921 * objfiles.c (entry_point_address_query): Update
15922 (relocate_one_symbol): Change type of "section_offsets".
15923 (objfile_relocate1, objfile_relocate1): Change type of
15924 "new_offsets".
15925 (objfile_rebase1): Update.
15926 * mipsread.c (mipscoff_symfile_read): Update.
15927 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15928 parameter.
15929 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15930 (parse_external, psymtab_to_symtab_1): Update.
15931 * machoread.c (macho_symfile_offsets): Update.
15932 * ia64-tdep.c (ia64_find_unwind_table): Update.
15933 * hppa-tdep.c (read_unwind_info): Update.
15934 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15935 * dwarf2read.c (create_addrmap_from_index)
15936 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15937 (process_psymtab_comp_unit_reader, add_partial_symbol)
15938 (add_partial_subprogram, process_full_comp_unit)
15939 (read_file_scope, read_func_scope, read_lexical_block_scope)
15940 (read_call_site_scope, dwarf2_rnglists_process)
15941 (dwarf2_ranges_process, dwarf2_ranges_read)
15942 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15943 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15944 Update.
15945 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15946 Update.
15947 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15948 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15949 (process_one_symbol): Change type of "section_offsets".
15950 * ctfread.c (get_objfile_text_range): Update.
15951 * coffread.c (coff_symtab_read, enter_linenos)
15952 (process_coff_symbol): Update.
15953 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15954 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15955
456e800a
TT
159562020-01-08 Tom Tromey <tromey@adacore.com>
15957
15958 * dwarf2read.c (parse_macro_definition): Use std::string.
15959 (parse_macro_definition): Likewise.
15960
6dfa2fc2
TT
159612020-01-08 Tom Tromey <tromey@adacore.com>
15962
15963 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15964 (ATTR_ALLOC_CHUNK): Remove.
15965
421d1616
TT
159662020-01-08 Tom Tromey <tromey@adacore.com>
15967
15968 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15969
43816ebc
TT
159702020-01-08 Tom Tromey <tromey@adacore.com>
15971
15972 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15973 (dwarf2_compute_name, open_dwo_file): Likewise.
15974 (process_enumeration_scope): Use std::vector.
15975 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15976 (partial_die_info::fixup, dwarf2_start_subfile)
15977 (guess_full_die_structure_name, dwarf2_name): Likewise.
15978 (determine_prefix): Update.
15979 (guess_full_die_structure_name): Make return type const.
15980 (partial_die_full_name): Return unique_xmalloc_ptr.
15981 (DW_FIELD_ALLOC_CHUNK): Remove.
15982
4212d509
TT
159832020-01-07 Tom Tromey <tromey@adacore.com>
15984
15985 PR build/24937:
15986 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15987
06a6207a
JT
159882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15989
15990 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15991
153d79c4
AB
159922020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15993
15994 * stack.c (print_frame_info): Move disassemble_next_line code
15995 inside source_print block.
15996
66182876
EZ
159972020-01-06 Eli Zaretskii <eliz@gnu.org>
15998
15999 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16000 gdb/signals.h, as we are now using native signal symbols.
16001
cbfa8581
SV
160022020-01-06 Shahab Vahedi <shahab@synopsys.com>
16003
16004 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16005 overflow by an early check of content vs threshold.
aac66a4c 16006 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16007 Likewise.
16008
3f602821
EZ
160092020-01-06 Eli Zaretskii <eliz@gnu.org>
16010
16011 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16012
a08c904d
JT
160132020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16014
16015 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16016 export table if no section contains it's RVA.
16017
89a65580
EZ
160182020-01-06 Eli Zaretskii <eliz@gnu.org>
16019
16020 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16021
8b7fcda2
HD
160222020-01-06 Hannes Domani <ssbssa@yahoo.de>
16023
16024 * source.c (print_source_lines_base): Set last_line_listed.
16025
a61b4f69
SV
160262020-01-06 Shahab Vahedi <shahab@synopsys.com>
16027
16028 * tui/tui-disasm.c: Remove trailing spaces.
16029
559e7e50
EZ
160302020-01-06 Eli Zaretskii <eliz@gnu.org>
16031 Pedro Alves <palves@redhat.com>
16032
16033 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16034 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16035 (windows_gdb_signal_to_target): New function, uses the above
16036 enumeration to convert GDB internal signal codes to equivalent
16037 Windows codes.
16038 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16039 * windows-nat.c: Include "gdb_wait.h".
16040 (get_windows_debug_event): Extract the fatal exception from the
16041 exit status and convert to the equivalent Posix signal number.
16042 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16043 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16044 * gdbsupport/gdb_wait.c: New file, implements
16045 windows_status_to_termsig.
16046 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16047 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16048
f2302a34
AB
160492020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16050
16051 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16052 show_layout.
16053
6a5206eb
LM
160542020-01-05 Luis Machado <luis.machado@linaro.org>
16055
16056 * aarch64-linux-nat.c
16057 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16058 and bfd_mach_aarch64.
16059
6ec1d75e
PW
160602020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16061
16062 * ui-file.c (stdio_file::can_emit_style_escape)
16063 (tee_file::can_emit_style_escape): Ensure style is used also on
16064 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16065 to gdb_stdout.
16066 * main.c (set_gdb_data_directory): Use file style to output the
16067 warning that the given pathname is not a directory.
16068 * top.c (show_history_filename, gdb_safe_append_history)
16069 (show_gdb_datadir): Use file style.
16070
44f81a76
HD
160712020-01-03 Hannes Domani <ssbssa@yahoo.de>
16072
16073 * solib-target.c (struct lm_info_target):
16074 Change offsets to be a unique_xmalloc_ptr.
16075 (solib_target_relocate_section_addresses): Update.
16076
25057eb0
HD
160772020-01-03 Hannes Domani <ssbssa@yahoo.de>
16078
16079 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16080
6e2118f5
BE
160812020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16082
16083 * MAINTAINERS (Write After Approval): Add myself.
16084
8133c7dc
LM
160852020-01-02 Luis Machado <luis.machado@linaro.org>
16086
16087 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16088 Cell BE architecture.
16089 * target.h (struct target_ops) <thread_architecture>: Likewise.
16090
48189bec
HD
160912020-01-01 Hannes Domani <ssbssa@yahoo.de>
16092
16093 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16094
ead1063b
HD
160952020-01-01 Hannes Domani <ssbssa@yahoo.de>
16096
16097 * MAINTAINERS (Write After Approval): Add myself.
16098
e5d78223
JB
160992020-01-01 Joel Brobecker <brobecker@adacore.com>
16100
16101 * gdbarch.sh: Update copyright year range of generated files.
16102
b811d2c2
JB
161032020-01-01 Joel Brobecker <brobecker@adacore.com>
16104
16105 Update copyright year range in all GDB files.
16106
5f4def5c
JB
161072020-01-01 Joel Brobecker <brobecker@adacore.com>
16108
16109 * copyright.py: Convert to Python 3.
16110
51fd4002
JB
161112020-01-01 Joel Brobecker <brobecker@adacore.com>
16112
16113 * copyright.py: Adapt after move of gnulib directory from gdb
16114 directory to toplevel directory.
16115
5fb651f2
JB
161162020-01-01 Joel Brobecker <brobecker@adacore.com>
16117
16118 * copyright.py (main): Exit if run from the wrong directory.
16119
5dd8bf88
JB
161202020-01-01 Joel Brobecker <brobecker@adacore.com>
16121
16122 * top.c (print_gdb_version): Change copyright year to 2020.
16123
9f71dacb 161242020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16125
9f71dacb 16126 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16127
9f71dacb 16128For older changes see ChangeLog-2019.
c906108c
SS
16129\f
16130Local Variables:
16131mode: change-log
16132left-margin: 8
16133fill-column: 74
16134version-control: never
57da7796 16135coding: utf-8
c906108c 16136End:
This page took 3.402844 seconds and 4 git commands to generate.