Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4f0469cd
AB
12020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
4 (debug_prefixed_printf): Add check of debug_displaced flag.
5 * linux-nat.c (linux_nat_debug_printf): Add check of
6 debug_linux_nat flag.
7
17417fb0
SM
82020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
9
10 * infrun.c (infrun_debug_printf_1): Remove.
11 (displaced_debug_printf_1): Remove.
12 (stop_all_threads): Use debug_prefixed_printf.
13 * infrun.h (infrun_debug_printf_1): Remove.
14 (infrun_debug_printf): Use debug_prefixed_printf.
15 (displaced_debug_printf_1): Remove.
16 (displaced_debug_printf): Use debug_prefixed_printf.
17 * linux-nat.c (linux_nat_debug_printf_1): Remove.
18 (linux_nat_debug_printf): Use debug_prefixed_printf.
19
ad6dba1c
SM
202020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * configure: Re-generate.
23 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
24 AC_LANG_PROGRAM.
25
b6fb30ed
SM
262020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * configure: Re-generate.
29
5164c117
SM
302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * configure: Re-generate.
33
864ca435
SM
342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * configure: Re-generate.
37
b9442ec1
SM
382020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * configure: Re-generate.
41
294f2697
SM
422020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * acinclude.m4: Modernize.
45 * configure: Re-generate.
46
5593a99a
SM
472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * configure.ac: Modernize.
50 * configure: Re-generate.
51
e41fda1d
SM
522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
55 * configure: Re-generate.
56 * configure.ac: Remove AM_PROG_CC_STDC.
57
91e1a0ed
SM
582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
61 AC_CANONICAL_SYSTEM.
62 * configure: Re-generate.
63
136821d9
SM
642020-10-30 Simon Marchi <simon.marchi@efficios.com>
65
66 * infrun.h (displaced_debug_printf): New macro. Replace
67 displaced debug prints throughout to use it.
68 (displaced_debug_printf_1): New declaration.
69 (displaced_step_dump_bytes): Return string, remove ui_file
70 parameter, update all callers.
71 * infrun.c (displaced_debug_printf_1): New function.
72 (displaced_step_dump_bytes): Return string, remove ui_file
73 parameter
74
aa2045e7
SM
752020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
78
b1ec2735
TT
792020-10-30 Tom Tromey <tromey@adacore.com>
80
81 * Makefile.in (stamp-init): Depend on config.status.
82
b78b3a29
TBA
832020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
84
85 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
86
d70bdd3c
PA
872020-10-30 Pedro Alves <pedro@palves.net>
88
89 * thread.c (lookup_selected_frame): Move ...
90 * frame.c (lookup_selected_frame): ... here.
91
79952e69
PA
922020-10-30 Pedro Alves <pedro@palves.net>
93
94 * blockframe.c (block_innermost_frame): Use get_selected_frame.
95 * frame.c
96 (scoped_restore_selected_frame::scoped_restore_selected_frame):
97 Use save_selected_frame. Save language as well.
98 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
99 Use restore_selected_frame, and restore language as well.
100 (selected_frame_id, selected_frame_level): New.
101 (selected_frame): Update comments.
102 (save_selected_frame, restore_selected_frame): New.
103 (get_selected_frame): Use lookup_selected_frame.
104 (get_selected_frame_if_set): Delete.
105 (select_frame): Record selected_frame_level and selected_frame_id.
106 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
107 fields.
108 (get_selected_frame): Make 'message' parameter optional.
109 (get_selected_frame_if_set): Delete declaration.
110 (select_frame): Update comments.
111 (save_selected_frame, restore_selected_frame)
112 (lookup_selected_frame): Declare.
113 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
114 * infrun.c (struct infcall_control_state) <selected_frame_level>:
115 New field.
116 (save_infcall_control_state): Use save_selected_frame.
117 (restore_selected_frame): Delete.
118 (restore_infcall_control_state): Use restore_selected_frame.
119 * stack.c (select_frame_command_core, frame_command_core): Use
120 get_selected_frame.
121 * thread.c (restore_selected_frame): Rename to ...
122 (lookup_selected_frame): ... this and make extern. Select the
123 current frame if the frame level is -1.
124 (scoped_restore_current_thread::restore): Also restore the
125 language.
126 (scoped_restore_current_thread::~scoped_restore_current_thread):
127 Don't try/catch.
128 (scoped_restore_current_thread::scoped_restore_current_thread):
129 Save the language as well. Use save_selected_frame.
130
58103c33
SM
1312020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
132
133 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
134 documentation.
135 * gdbarch.h: Re-generate.
136
40a53766
SM
1372020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
138
139 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
140 parameter.
141 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
142 Likewise.
143 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
144 Likewise.
145 * arch-utils.c (default_displaced_step_hw_singlestep):
146 Likewise.
147 * arch-utils.h (default_displaced_step_hw_singlestep):
148 Likewise.
149 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
150 Likewise.
151 * s390-tdep.c (s390_displaced_step_hw_singlestep):
152 Likewise.
153 * gdbarch.c: Re-generate.
154 * gdbarch.h: Re-generate.
155 * infrun.c (resume_1): Adjust.
156
8407f91b
TT
1572020-10-29 Tom Tromey <tom@tromey.com>
158
159 * progspace.c (program_space::~program_space): Don't call
160 exec_close.
161
5008b3b2
TT
1622020-10-29 Tom Tromey <tom@tromey.com>
163
164 * exec.c (exec_target::close): Don't change current program
165 space.
166
d9eebde0
TT
1672020-10-29 Tom Tromey <tom@tromey.com>
168
169 * symfile.c (add_symbol_file_command): Update.
170 * exec.c (program_space::add_target_sections): Rename.
171 * symfile-mem.c (symbol_file_add_from_memory): Update.
172 * progspace.h (struct program_space) <add_target_sections>:
173 Declare new overload.
174 * exec.h (add_target_sections_of_objfile): Don't declare.
175
3769e227
TT
1762020-10-29 Tom Tromey <tom@tromey.com>
177
178 * solib.c (solib_map_sections): Update.
179 * exec.c (program_space::add_target_sections): Now a method.
180 (exec_file_attach): Update.
181 * exec.h (add_target_sections): Don't declare.
182 * progspace.h (struct program_space) <add_target_sections>:
183 Declare.
184
2a3f84af
TT
1852020-10-29 Tom Tromey <tom@tromey.com>
186
187 * progspace.h (struct program_space) <remove_target_sections>:
188 Declare.
189 * exec.c (program_space::remove_target_sections): Now a method.
190 * exec.h (remove_target_sections): Don't declare.
191
004eecfd
TT
1922020-10-29 Tom Tromey <tom@tromey.com>
193
194 * inferior.c (delete_inferior): Update.
195 * progspace.c (program_space::empty): Rename from
196 program_space_empty_p. Return bool.
197 * progspace.h (struct program_space) <empty>: New method.
198 (program_space_empty_p): Don't declare.
199
e39fb971
TT
2002020-10-29 Tom Tromey <tom@tromey.com>
201
202 * progspace.c (program_space::~program_space): Don't call
203 clear_program_space_solib_cache.
204 (program_space::clear_solib_cache): Rename from
205 clear_solib_cache.
206 * solib.c (handle_solib_event): Update.
207 * progspace.h (struct program_space) <clear_solib_cache>: New
208 method.
209 (clear_program_space_solib_cache): Don't declare.
210
a42d7dd8
TT
2112020-10-29 Tom Tromey <tom@tromey.com>
212
213 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
214 * target.c (info_target_command): Update.
215 * symfile.c (syms_from_objfile_1, finish_new_objfile)
216 (symbol_file_clear, reread_symbols): Update.
217 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
218 * stabsread.c (scan_file_globals): Update.
219 * solib.c (update_solib_list): Update.
220 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
221 (svr4_fetch_objfile_link_map, enable_break)
222 (svr4_relocate_main_executable)
223 (svr4_iterate_over_objfiles_in_search_order): Update.
224 * solib-frv.c (lm_base, enable_break)
225 (frv_relocate_main_executable): Update.
226 (main_got, frv_fdpic_find_canonical_descriptor): Update.
227 (frv_fetch_objfile_link_map): Update.
228 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
229 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
230 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
231 * remote.c (remote_target::get_offsets): Update.
232 (remote_target::start_remote)
233 (extended_remote_target::post_attach): Update.
234 * objfiles.c (entry_point_address_query): Update.
235 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
236 * minsyms.c (get_symbol_leading_char): Update.
237 * frame.c (inside_main_func): Update.
238 * progspace.h (symfile_objfile): Remove macro.
239
19f6550e
TT
2402020-10-29 Tom Tromey <tom@tromey.com>
241
242 * exec.c (exec_file_attach): Update.
243 * progspace.c (program_space::exec_close): Update.
244 * progspace.h (struct program_space) <ebfd>: Now a
245 gdb_bfd_ref_ptr.
246 <set_exec_bfd>: Change argument type.
247 <exec_bfd>: Update.
248
7e10abd1
TT
2492020-10-29 Tom Tromey <tom@tromey.com>
250
251 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
252 * symfile.c (reread_symbols): Update.
253 * symfile-mem.c (add_symbol_file_from_memory_command)
254 (add_vsyscall_page): Update.
255 * source-cache.c (source_cache::get_plain_source_lines): Update.
256 * solib-svr4.c (find_program_interpreter, elf_locate_base)
257 (svr4_current_sos_direct, svr4_exec_displacement)
258 (svr4_relocate_main_executable): Update.
259 (svr4_iterate_over_objfiles_in_search_order): Update.
260 * solib-frv.c (enable_break2, enable_break): Update.
261 * solib-dsbt.c (lm_base, enable_break): Update.
262 * solib-darwin.c (find_program_interpreter)
263 (darwin_solib_create_inferior_hook): Update.
264 * sol-thread.c (rw_common, ps_pdmodel): Update.
265 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
266 * remote.c (compare_sections_command)
267 (remote_target::trace_set_readonly_regions): Update.
268 * remote-sim.c (get_sim_inferior_data)
269 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
270 (gdbsim_target_open, gdbsim_target::files_info): Update.
271 * exec.h (exec_bfd): Remove macro.
272 * progspace.c (initialize_progspace): Update.
273 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
274 Update.
275 * nto-procfs.c (nto_procfs_target::post_attach)
276 (nto_procfs_target::create_inferior): Update.
277 * maint.c (maintenance_info_sections): Update.
278 * linux-thread-db.c (thread_db_target::get_thread_local_address):
279 Update.
280 * infcmd.c (post_create_inferior): Update.
281 * gcore.c (default_gcore_arch, default_gcore_target): Update.
282 (objfile_find_memory_regions): Update.
283 * exec.c (validate_exec_file, exec_file_attach)
284 (exec_read_partial_read_only, print_section_info): Update.
285 * corelow.c (core_target_open): Update.
286 * corefile.c (reopen_exec_file, validate_files): Update.
287 * arm-tdep.c (gdb_print_insn_arm): Update.
288 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
289 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
290 methods.
291
b55221ab
TT
2922020-10-29 Tom Tromey <tom@tromey.com>
293
294 * progspace.h (current_target_sections): Remove macro.
295 * solib-svr4.c (scan_dyntag): Update.
296 * solib-dsbt.c (scan_dyntag): Update.
297 * exec.c (exec_target::close): Update.
298 (add_target_sections, add_target_sections_of_objfile)
299 (remove_target_sections, exec_target::get_section_table)
300 (exec_target::files_info, set_section_command)
301 (exec_set_section_address, exec_target::has_memory)
302 (exec_target::has_memory): Update.
303
5a36e715
TT
3042020-10-29 Tom Tromey <tom@tromey.com>
305
306 * source-cache.c (source_cache::get_plain_source_lines): Use
307 current_program_space.
308 * corefile.c (reopen_exec_file): Use current_program_space.
309 * exec.c (exec_file_attach): Use current_program_space.
310 * exec.h (exec_bfd_mtime): Remove.
311
784c8592
TT
3122020-10-29 Tom Tromey <tom@tromey.com>
313
314 * gcore.c (default_gcore_mach): Remove.
315 (create_gcore_bfd): Update.
316
8a4f1402
TT
3172020-10-29 Tom Tromey <tom@tromey.com>
318
319 * progspace.c (program_space::exec_close): New method, from
320 exec_close in exec.c.
321 * exec.c (exec_close): Move to progspace.c.
322 (exec_target::close, exec_file_attach): Update.
323 * progspace.h (struct program_space) <exec_close>: Declare
324 method.
325
c20cb686
TT
3262020-10-29 Tom Tromey <tom@tromey.com>
327
328 * progspace.h (struct program_space) <exec_filename>: Rename from
329 pspace_exec_filename. Now a unique_xmalloc_ptr.
330 * inferior.c (print_selected_inferior): Update.
331 (print_inferior): Update.
332 * mi/mi-main.c (print_one_inferior): Update.
333 * exec.h (exec_filename): Remove macro.
334 * corefile.c (get_exec_file): Update.
335 * exec.c (exec_close): Update.
336 (exec_file_attach): Update.
337 * progspace.c (clone_program_space): Update.
338 (print_program_space): Update.
339
6be2a9ab
TT
3402020-10-29 Tom Tromey <tom@tromey.com>
341
342 * target-section.h (struct target_section): Add constructor.
343 * exec.c (build_section_table, add_target_sections_of_objfile):
344 Update.
345 * corelow.c (core_target::build_file_mappings): Update.
346
cfaa8f76
TBA
3472020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
348
349 PR gdb/19318
350 * inferior.c (detach_inferior_command): Restore the current thread.
351 (kill_inferior_command): Ditto.
352
1b00ef06
TV
3532020-10-28 Tom de Vries <tdevries@suse.de>
354
355 PR symtab/26772
356 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
357 map, check it in the "best match" loop.
358
7f40ce1a
SM
3592020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * m32c-tdep.c: Remove unused includes.
362
5eb9e3f5
SM
3632020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * xtensa-tdep.c: Remove includes.
366
b1d4d8d1
TBA
3672020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
368
369 * breakpoint.c (struct condition_command_opts): New struct.
370 (condition_command_option_defs): New static global.
371 (make_condition_command_options_def_group): New function.
372 (condition_completer): Update to consider the '-force' flag.
373 (condition_command): Use gdb::option for the '-force' flag.
374
bd24c5d6
TV
3752020-10-27 Tom de Vries <tdevries@suse.de>
376
377 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
378 symbols in section check.
379
61eb46a4
TV
3802020-10-27 Tom de Vries <tdevries@suse.de>
381
382 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
383
733d554a
TBA
3842020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
385
386 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
387 * breakpoint.c: Update the help text of the 'condition' and 'break'
388 commands.
389 (set_breakpoint_condition): Take a new bool parameter
390 to control whether condition definition should be forced even when
391 the condition expression is invalid in all of the current locations.
392 (condition_command): Update the call to 'set_breakpoint_condition'.
393 (find_condition_and_thread): Take the "-force-condition" flag into
394 account.
395 * linespec.c (linespec_keywords): Add "-force-condition" as an
396 element.
397 (FORCE_KEYWORD_INDEX): New #define.
398 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
399 as a keyword.
400 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
401 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
402 * python/py-breakpoint.c (bppy_set_condition): Ditto.
403 * NEWS: Mention the changes to the 'break' and 'condition' commands.
404
b5fa468f
TBA
4052020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
406
407 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
408 * breakpoint.c (set_breakpoint_location_condition): New function.
409 (set_breakpoint_condition): Disable a breakpoint location if parsing
410 the condition string gives an error.
411 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
412 (build_target_condition_list): Ditto.
413 (build_target_command_list): Ditto.
414 (build_bpstat_chain): Ditto.
415 (print_one_breakpoint_location): Ditto.
416 (print_one_breakpoint): Ditto.
417 (breakpoint_1): Ditto.
418 (bp_location::bp_location): Ditto.
419 (locations_are_equal): Ditto.
420 (update_breakpoint_locations): Ditto.
421 (enable_disable_bp_num_loc): Ditto.
422 (init_breakpoint_sal): Use set_breakpoint_location_condition.
423 (find_condition_and_thread_for_sals): New static function.
424 (create_breakpoint): Call find_condition_and_thread_for_sals.
425 (location_to_sals): Call find_condition_and_thread_for_sals instead
426 of find_condition_and_thread.
427
1c47ec3e
TV
4282020-10-26 Tom de Vries <tdevries@suse.de>
429
430 * dwarf2/read.c (process_full_comp_unit): Call
431 dwarf2_find_base_address.
432
6390859c
TT
4332020-10-26 Tom Tromey <tromey@adacore.com>
434
435 * gdbtypes.c (create_range_type): Revert previous patch. Add
436 comment.
437
d744f0f9
PA
4382020-10-26 Pedro Alves <pedro@palves.net>
439
440 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
441 (my_waitpid): Use gdb::handle_eintr.
442
006811bc
SM
4432020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
444
445 * acinclude.m4: Update ptrace.m4 path.
446 * ptrace.m4: Moved to gdbsupport.
447
c75e31a1
SM
4482020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
451 instead of target_gdbarch.
452
32495661
SM
4532020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
454
455 * jit.c (jit_reader_load_command): Pass current inferior.
456 (jit_inferior_init): Change parameter type to inferior, use it.
457 (jit_inferior_created): Remove.
458 (jit_inferior_created_hook): Pass inferior parameter down.
459 (_initialize_jit): Use jit_inferior_created_hook instead of
460 jit_inferior_created.
461 * jit.h (jit_inferior_created_hook): Add inferior parameter.
462 * infrun.c (follow_exec): Pass inferior to
463 jit_inferior_created_hook.
464
3f66685e
SM
4652020-10-24 Simon Marchi <simon.marchi@efficios.com>
466
467 * linux-thread-db.c (check_pid_namespace_match): Add inferior
468 parameter and use it.
469 (thread_db_inferior_created): Pass inferior argument.
470
a0ff652f
SM
4712020-10-24 Simon Marchi <simon.marchi@efficios.com>
472
473 * aix-thread.c (aix_thread_inferior_created): Add inferior
474 parameter.
475 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
476 * dummy-frame.c (cleanup_dummy_frames): Likewise.
477 * jit.c (jit_inferior_created): Likewise.
478 * linux-thread-db.c (thread_db_inferior_created): Likewise.
479 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
480 * observable.h (inferior_created): Likewise.
481 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
482 * symfile-mem.c (add_vsyscall_page): Likewise.
483 * infcmd.c (post_create_inferior): Pass inferior argument.
484
3c67532c
JB
4852020-10-24 Joel Brobecker <brobecker@adacore.com>
486
487 GDB 10.1 released.
488
8747316e
JB
4892020-10-23 Joel Brobecker <brobecker@adacore.com>
490
491 * ada-typeprint.c (ada_print_type): Remove superfluous second call
492 to ada_check_typedef.
493
1a0ea399
AB
4942020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
495
496 * f-exp.y (f_parse): Rename to...
497 (f_language::parser): ...this.
498 * f-lang.c (f_get_encoding): Rename to...
499 (f_language::get_encoding): ...this.
500 (f_op_print_tab): Rename to...
501 (f_language::op_print_tab): ...this.
502 (exp_descriptor_f): Rename to...
503 (f_language::exp_descriptor_tab): ...this.
504 (class f_language): Moved to f-lang.h.
505 (f_language::language_arch_info): New function, moved out of class
506 declaration.
507 (f_language::search_name_hash): Likewise.
508 (f_language::lookup_symbol_nonlocal): Likewise.
509 (f_language::get_symbol_name_matcher_inner): Likewise.
510 * f-lang.h: Add 'valprint.h' include.
511 (class f_language): Moved here from f-lang.c.
512 * f-typeprint.c (f_type_print_args): Delete commented out
513 declaration.
514 (f_print_typedef): Rename to...
515 (f_language::print_typedef): ...this.
516 (f_print_type): Rename to...
517 (f_language::print_type): ...this.
518 (f_type_print_varspec_prefix): Delete declaration and rename to...
519 (f_language::f_type_print_varspec_prefix): ...this.
520 (f_type_print_varspec_suffix): Delete declaration and rename to...
521 (f_language::f_type_print_varspec_suffix): ...this.
522 (f_type_print_base): Delete declaration and rename to...
523 (f_language::f_type_print_base): ...this.
524 * f-valprint.c (f_value_print_inner): Rename to...
525 (f_language::value_print_inner): ...this.
526 * parse.c: Delete 'f-lang.h' include.
527
88cefd9b
AB
5282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * language.h (language_defn::print_type): Add variable names in
531 declaration, and update header comment.
532
5399db93
AB
5332020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
534
535 * ada-lang.c (ada_language::demangle): Rename to...
536 (ada_language::demangle_symbol): ...this.
537 * c-lang.c (cplus_language::demangle): Rename to...
538 (cplus_language::demangle_symbol): ...this.
539 * d-lang.c (d_language::demangle): Rename to...
540 (d_language::demangle_symbol): ...this.
541 * f-lang.c (f_language::demangle): Rename to...
542 (f_language::demangle_symbol): ...this.
543 * go-lang.c (go_language::demangle): Rename to...
544 (go_language::demangle_symbol): ...this.
545 * language.c (language_demangle): Update call to demangle_symbol.
546 (auto_or_unknown_language::demangle): Rename to...
547 (auto_or_unknown_language::demangle_symbol): ...this.
548 * language.h (language_defn::demangle): Rename to...
549 (language_defn::demangle_symbol): ...this.
550 * objc-lang.c (objc_language::demangle): Rename to...
551 (objc_language::demangle_symbol): ...this.
552 * rust-lang.c (rust_language::demangle): Rename to...
553 (rust_language::demangle_symbol): ...this.
554
4b2f86ef
AB
5552020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
556
557 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
558 (iterate_over_file_blocks): Replace use of macro with the macros
559 definition.
560
e74b39de
AB
5612020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
564 * valprint.c (maybe_print_array_index): Replace use of macro with
565 the macros definition.
566
00c696a6
AB
5672020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
568
569 * ada-lang.c (ada_language::print_array_index): Call value_print
570 directly.
571 * language.c (language_defn::print_array_index): Likewise.
572 * language.h (LA_VALUE_PRINT): Delete.
573 * valprint.c (value_print): Call value_print on the
574 current_language directly.
575
d3b67c56
AB
5762020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
577
578 * language.h (LA_PRINT_TYPEDEF): Delete.
579 * typeprint.c (typedef_print): Call print_typedef directly on the
580 current_language object.
581
790e2a12
AB
5822020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * m2-exp.y (m2_parse): Rename to...
585 (m2_language::parser): ...this. Update function signature.
586 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
587 (m2_op_print): Rename to...
588 (m2_language::op_print_tab): ...this, and make const.
589 (exp_descriptor_modula2): Rename to...
590 (m2_language::exp_descriptor_modula2): ...this.
591 (class m2_language): Move to m2-lang.h.
592 (m2_language::language_arch_info): New function, moved out of
593 class declaration.
594 (m2_language::printchar): New function, body from m2_printchar.
595 (m2_language::printstr): New function, moved out of class
596 declaration.
597 (m2_language::emitchar): Likewise.
598 * m2-lang.h (m2_parse): Delete declaration.
599 (m2_print_typedef): Delete declaration.
600 (m2_value_print_inner): Delete declaration.
601 (class m2_language): Class declaration moved from m2-lang.c,
602 larger functions are left in m2-lang.c.
603 * m2-typeprint.c (m2_print_typedef): Rename to...
604 (m2_language::print_typedef): ...this, and update function
605 signature.
606 * m2-valprint.c (m2_value_print_inner): Rename to...
607 (m2_language::value_print_inner): ...this, replace use of
608 LA_PRINT_STRING with a direct call to printstr member function,
609 and update recursive call.
610
b01175fc
AB
6112020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
612
613 * language.c (default_is_string_type_p): Delete, implementation
614 moved into auto_or_unknown_language::is_string_type_p.
615 (unk_op_print_tab): Moved into
616 auto_or_unknown_language::opcode_print_table.
617 (unknown_language_arch_info): Delete, implementation moved into
618 auto_or_unknown_language::language_arch_info.
619 (class auto_or_unknown_language): New class, member functions
620 copied from unknown_language class, with some updates.
621 (class unknown_language): Most member functions moved into
622 auto_or_unknown_language class. Inherit from
623 auto_or_unknown_language class.
624 (class auto_language): Inherit from auto_or_unknown_language.
625 Delete most member functions.
626
1a97fe8c
HD
6272020-10-22 Hannes Domani <ssbssa@yahoo.de>
628
629 * stabsread.c (read_member_functions): Remove gdb_assert.
630
6b9d0dfd
HD
6312020-10-22 Hannes Domani <ssbssa@yahoo.de>
632
633 * gdbtypes.c (init_complex_type): Check target type name.
634
4b4bb603
SM
6352020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * target-debug.h (target_debug_print_struct_target_ops_p):
638 Remove.
639 (target_debug_print_async_callback_ftype_p): Remove.
640 (target_debug_print_struct_trace_state_variable_p): Remove.
641 (target_debug_print_struct_traceframe_info_p): Remove.
642 (target_debug_print_VEC__btrace_block_s__pp): Remove.
643 (target_debug_print_enum_btrace_format): Remove.
644 (target_debug_print_enum_info_proc_what): Remove.
645 (target_debug_print_thread_info_pp): Remove.
646
24f5300a
SM
6472020-10-22 Simon Marchi <simon.marchi@efficios.com>
648
649 * target.h (struct target_ops) <make_corefile_notes>:
650 Change return type to unique pointer.
651 * target.c (dummy_make_corefile_notes): Likewise.
652 * exec.c (struct exec_target) <make_corefile_notes>:
653 Likewise.
654 (exec_target::make_corefile_notes): Likewise.
655 * procfs.c (class procfs_target) <make_corefile_notes>:
656 Likewise.
657 (procfs_do_thread_registers): Adjust to unique pointer.
658 (struct procfs_corefile_thread_data): Add constructor.
659 <note_data>: Change type to unique pointer.
660 (procfs_corefile_thread_callback): Adjust to unique pointer.
661 (procfs_target::make_corefile_notes): Change return type to
662 unique pointer.
663 * target-delegates.c: Re-generate.
664 * gcore.c (write_gcore_file_1): Adjust.
665 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
666 New.
667
5fb4027f
TV
6682020-10-22 Tom de Vries <tdevries@suse.de>
669
670 * block.c (find_block_in_blockvector): Make sure the returned block
671 contains pc.
672
4a636814
SM
6732020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
674
675 PR gdb/26693
676 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
677 parameter.
678 (load_cu): Pass existing CU.
679 (process_imported_unit_die): Likewise.
680 (follow_die_offset): Likewise.
681
1bd57575
LM
6822020-10-22 Luis Machado <luis.machado@linaro.org>
683
684 * corelow.c (core_target::xfer_partial): Also check for an empty
685 m_core_unavailable_mappings vector.
686
6b4c676c
AB
6872020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
688
689 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
690 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
691 * f-exp.y (arglist): Allow for a series of subranges.
692 (subrange): Add cases for subranges with strides.
693 * f-lang.c (value_f90_subarray): Catch use of array strides and
694 throw an error.
695 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
696
f2d8e4c5
AB
6972020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
698
699 * expprint.c (print_subexp_standard): Change enum range_type to
700 range_flag and rename variables to match.
701 (dump_subexp_body_standard): Likewise.
702 * expression.h (enum range_type): Rename to...
703 (enum range_flag): ...this.
704 (range_types): Rename to...
705 (range_flags): ...this.
706 * f-lang.c (value_f90_subarray): Change enum range_type to
707 range_flag and rename variables to match.
708 * parse.c (operator_length_standard): Likewise.
709 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
710 range_type to range_flag.
711 * rust-lang.c (rust_evaluate_funcall): Likewise.
712 (rust_range): Likewise.
713 (rust_compute_range): Likewise.
714 (rust_subscript): Likewise.
715
2f1b18db
AB
7162020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * expprint.c (print_subexp_standard): Update to reflect changes to
719 enum range_type.
720 (dump_subexp_body_standard): Likewise.
721 * expression.h (enum range_type): Convert to a bit field enum, and
722 make the enum unsigned.
723 * f-exp.y (subrange): Update to reflect changes to enum
724 range_type.
725 * f-lang.c (value_f90_subarray): Likewise.
726 * parse.c (operator_length_standard): Likewise.
727 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
728 * rust-lang.c (rust_range): Likewise.
729 (rust_compute_range): Likewise.
730 (rust_subscript): Likewise.
731
a46d1843
SM
7322020-10-21 Simon Marchi <simon.marchi@efficios.com>
733
734 * infrun.c (displaced_step_in_progress_thread): Fix comment.
735 (displaced_step_in_progress): Fix comment.
736
c21f37a8
SM
7372020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * gdbarch.sh (make_corefile_notes): Return unique pointer.
740 * gdbarch.c: Re-generate.
741 * gdbarch.h: Re-generate.
742 * gcore.c (write_gcore_file_1): Adjust.
743 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
744 constructor.
745 <note_data>: Change type to unique pointer.
746 <abort_iteration>: Change type to bool.
747 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
748 (fbsd_collect_thread_registers): Return void, adjust.
749 (struct fbsd_corefile_thread_data): Add construtor.
750 <note_data>: Change type to unique pointer.
751 (fbsd_corefile_thread): Adjust.
752 (fbsd_make_corefile_notes): Return unique pointer, adjust.
753 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
754 to unique pointer, adjust.
755 (struct linux_collect_regset_section_cb_data): Add constructor.
756 <note_data>: Change type to unique pointer.
757 <abort_iteration>: Change type to bool.
758 (linux_collect_thread_registers): Return void, adjust.
759 (struct linux_corefile_thread_data): Add constructor.
760 <note_data>: Change type to unique pointer.
761 (linux_corefile_thread): Adjust.
762 (linux_make_corefile_notes): Return unique pointer, adjust.
763
07fbbd01
SM
7642020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
765
766 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
767 * gdbarch.c: Re-generate.
768 * gdbarch.h: Re-generate.
769 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
770 bool.
771 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
772 Likewise.
773 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
774 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
775 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
776 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
777
39535193
SM
7782020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * gdbarch.sh: Make generated predicates return bool.
781 * gdbarch.c: Re-generate.
782 * gdbarch.h: Re-generate.
783
ad523d01
TT
7842020-10-20 Tom Tromey <tom@tromey.com>
785
786 * varobj-iter.h (struct varobj_item): Remove typedef.
787
c4464ade
SM
7882020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
789
790 * infrun.c (currently_stepping): Change int to bool
791 (maybe_software_singlestep): Likewise.
792 (show_stop_on_solib_events): Likewise.
793 (stepping_past_nonsteppable_watchpoint): Likewise.
794 (displaced_step_in_progress_any_inferior): Likewise.
795 (displaced_step_in_progress_thread): Likewise.
796 (keep_going_stepped_thread): Likewise.
797 (thread_still_needs_step_over): Likewise.
798 (start_step_over): Likewise.
799 (do_target_resume): Likewise.
800 (resume_1): Likewise.
801 (clear_proceed_status): Likewise.
802 (thread_still_needs_step_over_bp): Likewise.
803 (proceed): Likewise.
804 (switch_back_to_stepped_thread): Likewise.
805 (adjust_pc_after_break): Likewise.
806 (stepped_in_from): Likewise.
807 (handle_stop_requested): Likewise.
808 (handle_syscall_event): Likewise.
809 (handle_no_resumed): Likewise.
810 (handle_inferior_event): Likewise.
811 (finish_step_over): Likewise.
812 (handle_signal_stop): Likewise.
813 (process_event_stop_test): Likewise.
814
2eb20436
SM
8152020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
816
817 * infrun.c (get_displaced_stepping_state): Fix comment.
818
e0c45ded
AS
8192020-10-20 Andreas Schwab <schwab@linux-m68k.org>
820
821 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
822
22cc388e
TT
8232020-10-19 Tom Tromey <tromey@adacore.com>
824
825 PR tui/26719
826 * tui/tui-winsource.h (struct tui_source_window_base)
827 <refresh_window>: Rename from refresh_pad.
828 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
829 Rename from refresh_pad.
830 (tui_source_window_base::show_source_content)
831 (tui_source_window_base::do_scroll_horizontal): Update.
832
3c6eb4d4
TBA
8332020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
834
835 * thread.c (_initialize_thread): Fine-tune the help text of
836 'info threads'.
837
26703721
TBA
8382020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
839
840 * frame.c: Remove the unused 'uinteger_option_def' type alias.
841
61c26be8
MS
8422020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
843
844 * breakpoint.c (handle_jit_event): Add an argument, change how
845 `jit_event_handler` is called.
846
932539d7
TT
8472020-10-17 Tom Tromey <tom@tromey.com>
848
849 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
850 (scan_xcoff_symtab): Update.
851 * psymtab.h (class psymtab_storage) <global_psymbols,
852 static_psymbols, current_global_psymbols,
853 current_static_psymbols>: Remove.
854 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
855 (match_partial_symbol, lookup_partial_symbol): Update.
856 (print_partial_symbols): Change parameters.
857 (dump_psymtab, recursively_search_psymtabs)
858 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
859 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
860 (concat): Remove.
861 (end_psymtab_common): Simplify.
862 (append_psymbol_to_list): Change parameters.
863 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
864 (init_psymbol_list): Simplify.
865 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
866 * psympriv.h (struct partial_symtab) <empty>: New method.
867 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
868 Remove.
869 <global_psymbols, static_psymbols>: New members.
870 <add_psymbol>: New methods.
871 (add_psymbol_to_list): Don't declare.
872 (psymbol_placement): Move earlier.
873 * mdebugread.c (parse_partial_symbols): Update.
874 (handle_psymbol_enumerators): Change parameters.
875 (mdebug_expand_psymtab): Update.
876 * dwarf2/read.c (process_psymtab_comp_unit_reader)
877 (add_partial_symbol): Update.
878 * dwarf2/index-write.c (write_psymbols): Change parameters.
879 (write_one_signatured_type): Update.
880 (recursively_count_psymbols): Update.
881 (recursively_write_psymbols): Update.
882 (class debug_names) <recursively_write_psymbols>: Update.
883 <write_psymbols>: Change parameters.
884 <write_one_signatured_type>: Update.
885 * dbxread.c (read_dbx_symtab): Update.
886 (dbx_end_psymtab): Use partial_symtab::empty.
887 * ctfread.c (struct ctf_context) <pst>: New member.
888 (create_partial_symtab): Set it.
889 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
890 (scan_partial_symbols): Use the psymtab's context. Update.
891
cfabbd35
TT
8922020-10-17 Tom Tromey <tom@tromey.com>
893
894 * valprint.c (generic_value_print): Remove comment.
895 * m2-valprint.c (m2_value_print_inner): Remove comment.
896 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
897 type.
898
520596f2
TV
8992020-10-17 Tom de Vries <tdevries@suse.de>
900
901 PR symtab/26317
902 * source.c (select_source_symtab): Handling sal.symtab == NULL for
903 symbol main.
904
76547ab3
TV
9052020-10-14 Tom de Vries <tdevries@suse.de>
906
907 PR gdb/26733
908 * solib.c (solib_contains_address_p): Handle
909 'solib->sections == nullptr'.
910
d3a07122
SM
9112020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
912
913 PR gdb/26642
914 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
915 target can't do async.
916 * target.c (target_wait): Assert that we don't pass
917 TARGET_WNOHANG to a target that can't async.
918
1b71cfcf
KR
9192020-10-13 Kamil Rytarowski <n54@gmx.com>
920
921 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
922 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
923 * alpha-bsd-nat.c: Adjust include.
924 * alpha-bsd-tdep.h: Adjust comment.
925 * alpha-nbsd-tdep.c: Rename to ...
926 * alpha-netbsd-tdep.c: ... this, adjust include.
927 * amd64-nbsd-nat.c: Rename to ...
928 * amd64-netbsd-nat.c: ... this, adjust include.
929 * amd64-nbsd-tdep.c: Rename to ...
930 * amd64-netbsd-tdep.c: ... this, adjust include.
931 * amd64-tdep.h: Adjust include.
932 * arm-nbsd-nat.c: Rename to ...
933 * arm-netbsd-nat.c: ... this, adjust include.
934 * arm-nbsd-tdep.c: Rename to ...
935 * arm-netbsd-tdep.c: ... this, adjust include.
936 * arm-nbsd-tdep.h: Rename to ...
937 * arm-netbsd-tdep.h: ... this, adjust include.
938 * configure.nat: Adjust file lists.
939 * configure.tgt: Likewise.
940 * hppa-nbsd-nat.c: Rename to ...
941 * hppa-netbsd-nat.c: ... this, adjust include.
942 * hppa-nbsd-tdep.c: Rename to ...
943 * hppa-netbsd-tdep.c: ... this, adjust include.
944 * i386-nbsd-nat.c: Rename to ...
945 * i386-netbsd-nat.c: ... this, adjust include.
946 * i386-nbsd-tdep.c: Rename to ...
947 * i386-netbsd-tdep.c: ... this, adjust include.
948 * m68k-bsd-nat.c: Adjust include.
949 * mips-nbsd-nat.c: Rename to ...
950 * mips-netbsd-nat.c: ... this, adjust include.
951 * mips-nbsd-tdep.c: Rename to ...
952 * mips-netbsd-tdep.c: ... this, adjust include.
953 * mips-nbsd-tdep.h: Rename to ...
954 * mips-netbsd-tdep.h: ... this.
955 * nbsd-nat.c: Rename to ...
956 * netbsd-nat.c: ... this, adjust include.
957 * nbsd-nat.h: Rename to ...
958 * netbsd-nat.h: ... this, adjust include.
959 * nbsd-tdep.c: Rename to ...
960 * netbsd-tdep.c: ... this, adjust include.
961 * nbsd-tdep.h: Rename to ...
962 * netbsd-tdep.h: ... this.
963 * ppc-nbsd-nat.c: Rename to ...
964 * ppc-netbsd-nat.c: ... this, adjust include.
965 * ppc-nbsd-tdep.c: Rename to ...
966 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
967 * ppc-nbsd-tdep.h: Rename to ...
968 * ppc-netbsd-tdep.h: ... this.
969 * sh-nbsd-nat.c: Rename to ...
970 * sh-netbsd-nat.c: ... this, adjust include.
971 * sh-nbsd-tdep.c: Rename to ...
972 * sh-netbsd-tdep.c: ... this, adjust include.
973 * sparc-nbsd-nat.c: Rename to ...
974 * sparc-netbsd-nat.c: ... this.
975 * sparc-nbsd-tdep.c: Rename to ...
976 * sparc-netbsd-tdep.c: ... this, adjust include.
977 * sparc64-nbsd-nat.c: Rename to ...
978 * sparc64-netbsd-nat.c: ... this.
979 * sparc64-nbsd-tdep.c: Rename to ...
980 * sparc64-netbsd-tdep.c: ... this, adjust include.
981 * sparc64-tdep.h: Adjust comment.
982 * vax-bsd-nat.c: Adjust include.
983 * vax-nbsd-tdep.c: Rename to ...
984 * vax-netbsd-tdep.c: ... this, adjust include.
985
d7a78e5c
TT
9862020-10-12 Tom Tromey <tom@tromey.com>
987
988 * target.h (struct target_ops) <get_section_table>: Update.
989 (target_get_section_table): Update.
990 * target.c (target_get_section_table, target_section_by_addr)
991 (memory_xfer_partial_1): Update.
992 * target-section.h (target_section_table): Now an alias.
993 * target-delegates.c: Rebuild.
994 * target-debug.h (target_debug_print_target_section_table_p):
995 Rename from target_debug_print_struct_target_section_table_p.
996 * symfile.c (build_section_addr_info_from_section_table): Update.
997 * solib.c (solib_map_sections, solib_contains_address_p): Update.
998 * solib-svr4.c (scan_dyntag): Update.
999 * solib-dsbt.c (scan_dyntag): Update.
1000 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1001 Update.
1002 * record-full.c (record_full_core_target::xfer_partial): Update.
1003 * progspace.h (struct program_space) <target_sections>: Update.
1004 * exec.h (print_section_info): Update.
1005 * exec.c (exec_target::close, build_section_table)
1006 (add_target_sections, add_target_sections_of_objfile)
1007 (remove_target_sections, exec_on_vfork)
1008 (section_table_available_memory)
1009 (section_table_xfer_memory_partial)
1010 (exec_target::get_section_table, exec_target::xfer_partial)
1011 (print_section_info, set_section_command)
1012 (exec_set_section_address, exec_target::has_memory): Update.
1013 * corelow.c (core_target::build_file_mappings)
1014 (core_target::xfer_partial, core_target::info_proc_mappings)
1015 (core_target::info_proc_mappings): Update.
1016 * bfd-target.c (class target_bfd): Update
1017
eda214ce
TT
10182020-10-12 Tom Tromey <tom@tromey.com>
1019
1020 * progspace.c (program_space::~program_space): Don't call
1021 clear_section_table.
1022 * exec.h (clear_section_table): Don't declare.
1023 * exec.c (exec_target::close): Update.
1024 (clear_section_table): Remove.
1025
91840ee3
TT
10262020-10-12 Tom Tromey <tom@tromey.com>
1027
1028 * exec.c (add_target_sections_of_objfile): Simplify.
1029
2d128614
TT
10302020-10-12 Tom Tromey <tom@tromey.com>
1031
1032 * solib.c (solib_map_sections): Update.
1033 * record-full.c (record_full_core_open_1): Update.
1034 * exec.h (build_section_table): Return a target_section_table.
1035 * exec.c (exec_file_attach): Update.
1036 (build_section_table): Return a target_section_table.
1037 * corelow.c (core_target::core_target): Update.
1038 * bfd-target.c (target_bfd::target_bfd): Update.
1039
bb2a6777
TT
10402020-10-12 Tom Tromey <tom@tromey.com>
1041
1042 * target.c (target_section_by_addr, memory_xfer_partial_1):
1043 Update.
1044 * target-section.h (struct target_section_table): Use
1045 std::vector.
1046 * symfile.h (build_section_addr_info_from_section_table): Take a
1047 target_section_table.
1048 * symfile.c (build_section_addr_info_from_section_table): Take a
1049 target_section_table.
1050 * solist.h (struct so_list) <sections>: Change type.
1051 <sections_end>: Remove.
1052 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1053 (solib_contains_address_p): Update.
1054 * solib-svr4.c (scan_dyntag): Update.
1055 * solib-dsbt.c (scan_dyntag): Update.
1056 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1057 Update.
1058 * record-full.c (record_full_core_start, record_full_core_end):
1059 Remove.
1060 (record_full_core_sections): New global.
1061 (record_full_core_open_1, record_full_core_target::xfer_partial):
1062 Update.
1063 * exec.h (build_section_table, section_table_xfer_memory_partial)
1064 (add_target_sections): Take a target_section_table.
1065 * exec.c (exec_file_attach, clear_section_table): Update.
1066 (resize_section_table): Remove.
1067 (build_section_table, add_target_sections): Take a
1068 target_section_table.
1069 (add_target_sections_of_objfile, remove_target_sections)
1070 (exec_on_vfork): Update.
1071 (section_table_available_memory): Take a target_section_table.
1072 (section_table_read_available_memory): Update.
1073 (section_table_xfer_memory_partial): Take a target_section_table.
1074 (print_section_info, set_section_command)
1075 (exec_set_section_address, exec_target::has_memory): Update.
1076 * corelow.c (class core_target) <m_core_section_table,
1077 m_core_file_mappings>: Remove braces.
1078 <~core_target>: Remove.
1079 (core_target::core_target): Update.
1080 (core_target::~core_target): Remove.
1081 (core_target::build_file_mappings)
1082 (core_target::xfer_memory_via_mappings)
1083 (core_target::xfer_partial, core_target::info_proc_mappings):
1084 Update.
1085 * bfd-target.c (target_bfd::xfer_partial): Update.
1086 (target_bfd::target_bfd): Update.
1087 (target_bfd::~target_bfd): Remove.
1088
7b466b10
TT
10892020-10-12 Tom Tromey <tom@tromey.com>
1090
1091 * target.h (struct target_section, struct target_section_table):
1092 Move to target-section.h.
1093 * target-section.h: New file.
1094
87a37e5e
PA
10952020-10-12 Pedro Alves <pedro@palves.net>
1096
1097 PR exp/26602
1098 * valops.c (struct struct_field_searcher): New.
1099 (update_search_result): Rename to ...
1100 (struct_field_searcher::update_result): ... this. Simplify
1101 prototype. Record all found fields.
1102 (do_search_struct_field): Rename to ...
1103 (struct_field_searcher::search): ... this. Simplify prototype.
1104 Maintain stack of visited baseclass path. Call update_result for
1105 fields too. Keep searching fields in baseclasses instead of
1106 stopping at the first found field.
1107 (search_struct_field): Use struct_field_searcher. When looking
1108 for fields, report ambiguous access attempts.
1109
9370fd51
AB
11102020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * frame.c (inside_main_func): Check full symbols as well as
1113 minimal symbols.
1114
59c8a30b
JB
11152020-10-09 Joel Brobecker <brobecker@adacore.com>
1116
1117 * ada-lang.c (advance_wild_match): Rewrite the function's
1118 description. Change the type of target0, t0 and t1 to char.
1119
7c184d33
TT
11202020-10-09 Tom Tromey <tromey@adacore.com>
1121
1122 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1123
5c4258f4
TT
11242020-10-09 Tom Tromey <tromey@adacore.com>
1125
1126 * ada-lang.h (ada_encode): Return std::string.
1127 * ada-lang.c (ada_encode_1): Return std::string.
1128 (ada_encode): Likewise.
1129 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1130 Update.
1131 * ada-exp.y (block_lookup, write_var_or_type): Update.
1132
3d87245c
HD
11332020-10-09 Hannes Domani <ssbssa@yahoo.de>
1134
1135 PR exp/26714
1136 * printcmd.c (print_formatted): Handle void results as
1137 unformatted prints.
1138
bbb826f5
AB
11392020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 * arch/aarch32.c (aarch32_create_target_description): Release the
1142 target_desc_up as late as possible.
1143 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1144 * arch/amd64.c (amd64_create_target_description): Likewise.
1145 * arch/arc.c (arc_create_target_description): Return a
1146 target_desc_up, don't release it.
1147 * arch/arc.h (arc_create_target_description): Update declaration.
1148 (arc_lookup_target_description): Move target_desc_up into the
1149 cache, and return a borrowed pointer.
1150 * arch/arm.c (arm_create_target_description): Release the
1151 target_desc_up as late as possible.
1152 * arch/i386.c (i386_create_target_description): Likewise.
1153 * arch/riscv.h (riscv_create_target_description): Update
1154 declaration to match definition.
1155 * arch/tic6x.c (tic6x_create_target_description): Release the
1156 target_desc_up as late as possible.
1157
361cb219
AB
11582020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1161 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1162
f5c4b229
JV
11632020-10-09 Jan Vrany <jan.vrany@labware.com>
1164
1165 * source.c (directory_command): Notify observers that "directories"
1166 parameter has changed.
1167
b2701685
TT
11682020-10-08 Tom Tromey <tom@tromey.com>
1169
1170 * cli/cli-cmds.c (print_disassembly): Style function name and
1171 addresses. Add _() wrappers.
1172
ada508b6
SV
11732020-10-08 Shahab Vahedi <shahab@synopsys.com>
1174
1175 * NEWS: Mention ARC support in GDBserver.
1176
51a948fd
AB
11772020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * arch/aarch32.c (aarch32_create_target_description): Release
1180 unique_ptr returned from allocate_target_description.
1181 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1182 * arch/amd64.c (amd64_create_target_description): Likewise.
1183 * arch/arc.c (arc_create_target_description): Likewise.
1184 * arch/arm.c (arm_create_target_description): Likewise.
1185 * arch/i386.c (i386_create_target_description): Likewise.
1186 * arch/riscv.c (riscv_create_target_description): Update return
1187 type. Handle allocate_target_description returning a unique_ptr.
1188 (riscv_lookup_target_description): Update to handle unique_ptr.
1189 * arch/tic6x.c (tic6x_create_target_description): Release
1190 unique_ptr returned from allocate_target_description.
1191 * features/microblaze-with-stack-protect.c: Regenerate.
1192 * features/microblaze.c: Regenerate.
1193 * features/mips-dsp-linux.c: Regenerate.
1194 * features/mips-linux.c: Regenerate.
1195 * features/mips64-dsp-linux.c: Regenerate.
1196 * features/mips64-linux.c: Regenerate.
1197 * features/nds32.c: Regenerate.
1198 * features/nios2.c: Regenerate.
1199 * features/or1k.c: Regenerate.
1200 * features/rs6000/powerpc-32.c: Regenerate.
1201 * features/rs6000/powerpc-32l.c: Regenerate.
1202 * features/rs6000/powerpc-403.c: Regenerate.
1203 * features/rs6000/powerpc-403gc.c: Regenerate.
1204 * features/rs6000/powerpc-405.c: Regenerate.
1205 * features/rs6000/powerpc-505.c: Regenerate.
1206 * features/rs6000/powerpc-601.c: Regenerate.
1207 * features/rs6000/powerpc-602.c: Regenerate.
1208 * features/rs6000/powerpc-603.c: Regenerate.
1209 * features/rs6000/powerpc-604.c: Regenerate.
1210 * features/rs6000/powerpc-64.c: Regenerate.
1211 * features/rs6000/powerpc-64l.c: Regenerate.
1212 * features/rs6000/powerpc-7400.c: Regenerate.
1213 * features/rs6000/powerpc-750.c: Regenerate.
1214 * features/rs6000/powerpc-860.c: Regenerate.
1215 * features/rs6000/powerpc-altivec32.c: Regenerate.
1216 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1217 * features/rs6000/powerpc-altivec64.c: Regenerate.
1218 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1219 * features/rs6000/powerpc-e500.c: Regenerate.
1220 * features/rs6000/powerpc-e500l.c: Regenerate.
1221 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1222 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1223 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1224 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1225 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1226 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1227 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1228 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1229 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1230 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1231 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1232 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1233 * features/rs6000/powerpc-vsx32.c: Regenerate.
1234 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1235 * features/rs6000/powerpc-vsx64.c: Regenerate.
1236 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1237 * features/rs6000/rs6000.c: Regenerate.
1238 * features/rx.c: Regenerate.
1239 * features/s390-gs-linux64.c: Regenerate.
1240 * features/s390-linux32.c: Regenerate.
1241 * features/s390-linux32v1.c: Regenerate.
1242 * features/s390-linux32v2.c: Regenerate.
1243 * features/s390-linux64.c: Regenerate.
1244 * features/s390-linux64v1.c: Regenerate.
1245 * features/s390-linux64v2.c: Regenerate.
1246 * features/s390-te-linux64.c: Regenerate.
1247 * features/s390-tevx-linux64.c: Regenerate.
1248 * features/s390-vx-linux64.c: Regenerate.
1249 * features/s390x-gs-linux64.c: Regenerate.
1250 * features/s390x-linux64.c: Regenerate.
1251 * features/s390x-linux64v1.c: Regenerate.
1252 * features/s390x-linux64v2.c: Regenerate.
1253 * features/s390x-te-linux64.c: Regenerate.
1254 * features/s390x-tevx-linux64.c: Regenerate.
1255 * features/s390x-vx-linux64.c: Regenerate.
1256 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1257 from allocate_target_description.
1258 * target-descriptions.c (allocate_target_description): Update
1259 return type.
1260 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1261 allocate_target_description.
1262
485c47e5
TT
12632020-10-07 Tom Tromey <tromey@adacore.com>
1264
1265 * unittests/search-memory-selftests.c: New file.
1266 * Makefile.in (SELFTESTS_SRCS): Add
1267 unittests/search-memory-selftests.c.
1268
3a135a91
TT
12692020-10-07 Tom Tromey <tromey@adacore.com>
1270
1271 PR gdb/16930:
1272 * findcmd.c (_initialize_mem_search): Mention that the range is
1273 inclusive.
1274
4a72de73
TT
12752020-10-07 Tom Tromey <tromey@adacore.com>
1276
1277 * target.h (simple_search_memory): Don't declare.
1278 * target.c (simple_search_memory): Move to gdbsupport.
1279 (default_search_memory): Update.
1280 * remote.c (remote_target::search_memory): Update.
1281
a038ffd8
SM
12822020-10-07 Simon Marchi <simon.marchi@efficios.com>
1283
1284 * Makefile.in (COMPILE): Add CXXFLAGS.
1285 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1286 (check-headers): Add CXXFLAGS.
1287
cc463201
AK
12882020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1289
1290 * arc-linux-tdep.h: New file.
1291 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1292 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1293 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1294 arc_linux_gregset, arc_linux_v2_regset,
1295 arc_linux_iterate_over_regset_sections,
1296 arc_linux_core_read_description): Implement.
1297 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1298 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1299 (arc_gdbarch_features_create): Add.
1300 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1301
e4bd363f
SV
13022020-10-07 Shahab Vahedi <shahab@synopsys.com>
1303
1304 * arch/arc.h: Rename "arc_gdbarch_features" to
1305 "arc_arch_features".
1306 * arc-tdep.h: Likewise.
1307 * arc-tdep.c: Likewise.
1308
b68bef99
TBA
13092020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1310
1311 * infcmd.c (attach_command): Remove the redundant call to
1312 `clear_proceed_status`.
1313
4641551a
KR
13142020-10-07 Kamil Rytarowski <n54@gmx.com>
1315
1316 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1317
91e5e8db
KR
13182020-10-07 Kamil Rytarowski <n54@gmx.com>
1319
1320 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1321 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1322 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1323
64c03bdb
SM
13242020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1325
1326 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1327 (_initialize_break_catch_sig): Don't allocate array.
1328
31a8f60f
AB
13292020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * symtab.c (find_pc_line): Return unmapped addresses when the
1332 requested address is also unmapped.
1333
9e6dbd8b
SM
13342020-10-05 Simon Marchi <simon.marchi@efficios.com>
1335
1336 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1337 tui/tui-out.h.
1338
a1d217e8
SM
13392020-10-05 Simon Marchi <simon.marchi@efficios.com>
1340
1341 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1342 type::is_vector instead of TYPE_VECTOR.
1343
7d144117
SM
13442020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1345
1346 * auto-load.c (auto_load_objfile_script_1): Don't use
1347 debugfile_holder as temporary variable when stripping drive
1348 letter.
1349
cd096ec8
HD
13502020-10-05 Hannes Domani <ssbssa@yahoo.de>
1351
1352 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1353 Add TYPE_CODE_COMPLEX.
1354 (amd64_windows_return_value): Fix types returned via XMM0.
1355
b58e7f72
AH
13562020-10-05 Alan Hayward <alan.hayward@arm.com>
1357
1358 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1359 AArch64/ARM maintainers.
1360
8d378f27
SM
13612020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 * NEWS: Mention set/show debug event-loop.
1364
d5519913
TT
13652020-10-02 Tom Tromey <tromey@adacore.com>
1366
1367 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1368 REG_EXTENDED.
1369
18b67edc
SM
13702020-10-02 Simon Marchi <simon.marchi@efficios.com>
1371
1372 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1373 * procfs.c (procfs_inferior_created): Remove.
1374 (_initialize_procfs): Don't register procfs_inferior_created.
1375
6b01403b
SM
13762020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1377
1378 * async-event.c (invoke_async_signal_handlers): Add debug
1379 print.
1380 (check_async_event_handlers): Likewise.
1381 * event-top.c (show_debug_event_loop): New function.
1382 (_initialize_event_top): Register "set debug event-loop"
1383 setting.
1384
ba988419
SM
13852020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1388 * debug.h: Remove.
1389 * infrun.c: Include gdbsupport/common-debug.h.
1390 * linux-nat.c: Likewise.
1391
db20ebdf
SM
13922020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1393
1394 * async-event.h (create_async_signal_handler): Add name
1395 parameter.
1396 (create_async_event_handler): Likewise.
1397 * async-event.c (struct async_signal_handler) <name>: New field.
1398 (struct async_event_handler) <name>: New field.
1399 (create_async_signal_handler): Assign name.
1400 (create_async_event_handler): Assign name.
1401 * event-top.c (async_init_signals): Pass name when creating
1402 handler.
1403 * infrun.c (_initialize_infrun): Likewise.
1404 * record-btrace.c (record_btrace_push_target): Likewise.
1405 * record-full.c (record_full_open): Likewise.
1406 * remote-notif.c (remote_notif_state_allocate): Likewise.
1407 * remote.c (remote_target::open_1): Likewise.
1408 * tui/tui-win.c (tui_initialize_win): Likewise.
1409
2554f6f5
SM
14102020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1411
1412 * async-event.c (initialize_async_signal_handlers): Pass name to
1413 add_file_handler
1414 * event-top.c (ui_register_input_event_handler): Likewise.
1415 * linux-nat.c (linux_nat_target::async): Likewise.
1416 * run-on-main-thread.c (_initialize_run_on_main_thread):
1417 Likewise
1418 * ser-base.c (reschedule): Likewise.
1419 (ser_base_async): Likewise.
1420 * tui/tui-io.c: Likewise.
1421 * top.h (struct ui) <num>: New field.
1422 * top.c (highest_ui_num): New variable.
1423 (ui::ui): Initialize num.
1424
a7aba266
SM
14252020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1426
1427 * observable.h <inferior_created>: Remove parameters. Update all
1428 listeners.
1429 * inferior.h (post_create_inferior): Remove target parameter.
1430 Update all callers.
1431
048fde1e 14322020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1433
1434 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1435 and DW_MACRO_undef_strx.
1436 (dwarf_decode_macros): Likewise
1437 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1438 which is the value of DW_AT_str_offsets_base.
1439 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1440 str_offsets_base.
1441
064280be
KR
14422020-10-01 Kamil Rytarowski <n54@gmx.com>
1443
1444 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1445
6ff33035
KR
14462020-10-01 Kamil Rytarowski <n54@gmx.com>
1447
1448 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1449 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1450
1eb6eb79
KR
14512020-10-01 Kamil Rytarowski <n54@gmx.com>
1452
1453 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1454
95eb9e54
TV
14552020-09-30 Tom de Vries <tdevries@suse.de>
1456
1457 PR symtab/26683
1458 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1459
cae21f8e
TT
14602020-09-30 Tom Tromey <tromey@adacore.com>
1461
1462 * dwarf2/read.c (handle_variant): Use constant_value.
1463
529908cb
TT
14642020-09-29 Tom Tromey <tom@tromey.com>
1465
1466 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1467 (read_file_scope, dwarf2_get_pc_bounds)
1468 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1469 (read_structure_type, handle_struct_member_die)
1470 (read_enumeration_type, read_array_type, read_set_type)
1471 (read_tag_pointer_type, read_tag_reference_type)
1472 (read_subroutine_type, read_base_type, read_subrange_type)
1473 (read_full_die_1, partial_die_info::read)
1474 (partial_die_info::read, by, new_symbol)
1475 (dwarf2_const_value_data, dwarf2_const_value_attr)
1476 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1477 (prepare_one_comp_unit): Update.
1478 * dwarf2/attribute.h (DW_UNSND): Remove.
1479
c45bc3f8
TT
14802020-09-29 Tom Tromey <tom@tromey.com>
1481
1482 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1483 (read_subroutine_type, partial_die_info::read)
1484 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1485 (dwarf2_add_member_fn): Update.
1486 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1487 * dwarf2/attribute.c (attribute::as_boolean): New method.
1488
23dca5c3
TT
14892020-09-29 Tom Tromey <tom@tromey.com>
1490
1491 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1492 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1493 method.
1494 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1495
52c14d11
TT
14962020-09-29 Tom Tromey <tom@tromey.com>
1497
1498 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1499 the attribute's form.
1500
e8e5c158
TT
15012020-09-29 Tom Tromey <tom@tromey.com>
1502
1503 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1504 (dwarf2_add_member_fn): Update.
1505 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1506 * dwarf2/attribute.c (attribute::defaulted): New method, from
1507 is_valid_DW_AT_defaulted.
1508
d4df075e
TT
15092020-09-29 Tom Tromey <tom@tromey.com>
1510
1511 * dwarf2/read.c (dw2_get_file_names_reader)
1512 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1513 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1514 (dwarf2_symbol_mark_computed): Use as_unsigned.
1515 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1516 method.
1517 <form_is_section_offset>: Update comment.
1518
bf23a268
TT
15192020-09-29 Tom Tromey <tom@tromey.com>
1520
1521 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1522 dwarf2_default_access_attribute. Look up attribute.
1523 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1524 Update.
1525
7a5f294d
TT
15262020-09-29 Tom Tromey <tom@tromey.com>
1527
1528 * dwarf2/read.c (skip_one_die): Update.
1529 (read_full_die_1): Change how reprocessing is done.
1530 (partial_die_info::read): Update.
1531 (read_attribute_value): Remove need_reprocess parameter.
1532 (read_attribute): Likewise.
1533 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1534 New method.
1535
36d378cf
TT
15362020-09-29 Tom Tromey <tom@tromey.com>
1537
1538 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1539 (dwarf2_const_value_attr, dump_die_shallow)
1540 (dwarf2_fetch_constant_bytes): Update.
1541 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1542 comment.
1543 <set_address>: New method.
1544 (DW_ADDR): Remove.
1545 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1546 (attribute::as_string, attribute::as_address): Add assert.
1547
fe56917a
TT
15482020-09-29 Tom Tromey <tom@tromey.com>
1549
1550 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1551 (read_attribute_reprocess, read_attribute_value): Update.
1552 (read_attribute): Clear requires_reprocessing.
1553 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1554 form_requires_reprocessing>: New methods.
1555 <string_init>: Clear requires_reprocessing.
1556 <set_unsigned_reprocess>: New method.
1557 <name>: Shrink by one bit.
1558 <requires_reprocessing>: New member.
1559 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1560 method.
1561
414ad644
TT
15622020-09-29 Tom Tromey <tom@tromey.com>
1563
1564 * dwarf2/read.c (read_attribute_value): Update.
1565 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1566 set_unsigned>: New methods.
1567 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1568
1bc397c5
TT
15692020-09-29 Tom Tromey <tom@tromey.com>
1570
1571 * dwarf2/read.c (get_alignment, read_array_order)
1572 (read_attribute_value, dwarf2_const_value_attr)
1573 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1574 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1575 New methods.
1576 (DW_SND): Remove.
1577
630ed6b9
TT
15782020-09-29 Tom Tromey <tom@tromey.com>
1579
1580 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1581 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1582 Update.
1583 * dwarf2/attribute.h (struct attribute) <as_signature,
1584 set_signature>: New methods.
1585 (DW_SIGNATURE): Remove.
1586
9d2246fc
TT
15872020-09-29 Tom Tromey <tom@tromey.com>
1588
1589 * dwarf2/read.c (read_call_site_scope)
1590 (handle_data_member_location, dwarf2_add_member_fn)
1591 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1592 (partial_die_info::read, read_attribute_value)
1593 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1594 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1595 (dwarf2_symbol_mark_computed): Update.
1596 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1597 methods.
1598 (DW_BLOCK): Remove.
1599 * dwarf2/attribute.c (attribute::form_is_block): Add
1600 DW_FORM_data16.
1601
c6481205
TT
16022020-09-29 Tom Tromey <tom@tromey.com>
1603
1604 * dwarf2/read.c (read_cutu_die_from_dwo)
1605 (read_attribute_reprocess, read_attribute_value, read_attribute)
1606 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1607 (dwarf2_fetch_constant_bytes): Update.
1608 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1609 <set_string_noncanonical, set_string_canonical>: New methods.
1610 <string_is_canonical>: Update comment.
1611 <canonical_string_p>: Add assert.
1612 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1613 * dwarf2/attribute.c (attribute::form_is_string): New method.
1614 (attribute::string): Use it.
1615
3b64bf15
TT
16162020-09-29 Tom Tromey <tom@tromey.com>
1617
1618 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1619 (dump_die_shallow): Use canonical_string_p.
1620 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1621 method.
1622
2c830f54
TT
16232020-09-29 Tom Tromey <tom@tromey.com>
1624
1625 * dwarf2/read.c (partial_die_info::read)
1626 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1627 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1628 attribute::as_string.
1629
6c412691
TT
16302020-09-29 Tom Tromey <tom@tromey.com>
1631
1632 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1633 DW_ADDR.
1634 (attribute::string): Don't use DW_STRING.
1635 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1636 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1637
95f982e5
TT
16382020-09-29 Tom Tromey <tom@tromey.com>
1639
1640 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1641 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1642 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1643 * dwarf2/attribute.h (struct attribute): Rename methods.
1644 * dwarf2/attribute.c (attribute::as_address): Rename from
1645 value_as_address.
1646 (attribute::as_string): Rename from value_as_string.
1647
f800b00e
TT
16482020-09-29 Tom Tromey <tom@tromey.com>
1649
1650 * dwarf2/read.c (partial_die_info::read) <case
1651 DW_AT_linkage_name>: Use value_as_string.
1652 (dwarf2_string_attr): Use value_as_string.
1653 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1654 method.
1655 * dwarf2/attribute.c (attribute::value_as_string): New method.
1656
de38d64a
PA
16572020-09-29 Pedro Alves <pedro@palves.net>
1658
1659 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1660 defined before using '#pragma GCC diagnostic' instead of checking
1661 __clang__.
1662
9aed480c
TT
16632020-09-28 Tom Tromey <tom@tromey.com>
1664
1665 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1666 (handle_signal_stop): Update.
1667 * procfs.c (procfs_target::insert_watchpoint): Update.
1668 * target.h (target_have_steppable_watchpoint): Now a function.
1669
8a3ecb79
TT
16702020-09-28 Tom Tromey <tom@tromey.com>
1671
1672 * infrun.c (set_schedlock_func): Update.
1673 * target.h (target_can_lock_scheduler): Now a function.
1674
55f6301a
TT
16752020-09-28 Tom Tromey <tom@tromey.com>
1676
1677 * inferior.h (class inferior) <has_execution>: Update.
1678 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1679 * valops.c (find_function_in_inferior)
1680 (value_allocate_space_in_inferior): Update.
1681 * top.c (kill_or_detach): Update.
1682 * target.c (target_preopen, set_target_permissions): Update.
1683 (target_has_execution_current): Remove.
1684 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1685 Update.
1686 * solib.c (update_solib_list, reload_shared_libraries): Update.
1687 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1688 * solib-dsbt.c (enable_break): Update.
1689 * score-tdep.c (score7_fetch_inst): Update.
1690 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1691 Update.
1692 * remote.c (remote_target::start_remote)
1693 (remote_target::remote_check_symbols, remote_target::open_1)
1694 (remote_target::remote_detach_1, remote_target::verify_memory)
1695 (remote_target::xfer_partial, remote_target::read_description)
1696 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1697 * record-full.c (record_full_open_1): Update.
1698 * record-btrace.c (record_btrace_target_open): Update.
1699 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1700 (value_nsstring): Update.
1701 * linux-thread-db.c (add_thread_db_info)
1702 (thread_db_find_new_threads_silently, check_thread_db_callback)
1703 (try_thread_db_load_1, record_thread): Update.
1704 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1705 Update.
1706 * linux-fork.c (checkpoint_command): Update.
1707 * infrun.c (set_non_stop, set_observer_mode)
1708 (check_multi_target_resumption, for_each_just_stopped_thread)
1709 (maybe_remove_breakpoints, normal_stop)
1710 (class infcall_suspend_state): Update.
1711 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1712 (info_program_command, attach_command): Update.
1713 * infcall.c (call_function_by_hand_dummy): Update.
1714 * inf-loop.c (inferior_event_handler): Update.
1715 * gcore.c (gcore_command, derive_heap_segment): Update.
1716 * exec.c (exec_file_command): Update.
1717 * eval.c (evaluate_subexp): Update.
1718 * compile/compile.c (compile_to_object): Update.
1719 * cli/cli-dump.c (restore_command): Update.
1720 * breakpoint.c (update_watchpoint)
1721 (update_inserted_breakpoint_locations)
1722 (insert_breakpoint_locations, get_bpstat_thread): Update.
1723 * target.h (target_has_execution): Remove macro.
1724 (target_has_execution_current): Don't declare.
1725 (target_has_execution): Rename from target_has_execution_1. Add
1726 argument default.
1727
05374cfd
TT
17282020-09-28 Tom Tromey <tom@tromey.com>
1729
1730 * mi/mi-main.c (exec_reverse_continue)
1731 (mi_cmd_list_target_features): Update.
1732 * infrun.c (set_exec_direction_func): Update.
1733 * target.c (default_execution_direction): Update.
1734 * reverse.c (exec_reverse_once): Update.
1735 * target.h (target_can_execute_reverse): Now a function.
1736
9dccd06e
TT
17372020-09-28 Tom Tromey <tom@tromey.com>
1738
1739 * tui/tui-regs.c (tui_get_register)
1740 (tui_data_window::show_registers): Update.
1741 * thread.c (scoped_restore_current_thread::restore)
1742 (scoped_restore_current_thread::scoped_restore_current_thread):
1743 Update.
1744 * regcache-dump.c (regcache_print): Update.
1745 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1746 Update.
1747 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1748 * mep-tdep.c (current_me_module, current_options): Update.
1749 * linux-thread-db.c (thread_db_load): Update.
1750 * infcmd.c (registers_info, info_vector_command)
1751 (info_float_command): Update.
1752 * ia64-tdep.c (ia64_frame_prev_register)
1753 (ia64_sigtramp_frame_prev_register): Update.
1754 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1755 * gcore.c (derive_stack_segment): Update.
1756 * frame.c (get_current_frame, has_stack_frames): Update.
1757 * findvar.c (language_defn::read_var_value): Update.
1758 * arm-tdep.c (arm_pc_is_thumb): Update.
1759 * target.c (target_has_registers): Rename from
1760 target_has_registers_1.
1761 * target.h (target_has_registers): Remove macro.
1762 (target_has_registers): Rename from target_has_registers_1.
1763
841de120
TT
17642020-09-28 Tom Tromey <tom@tromey.com>
1765
1766 * windows-tdep.c (tlb_make_value): Update.
1767 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1768 * thread.c (scoped_restore_current_thread::restore)
1769 (scoped_restore_current_thread::scoped_restore_current_thread)
1770 (thread_command): Update.
1771 * stack.c (backtrace_command_1, frame_apply_level_command)
1772 (frame_apply_all_command, frame_apply_command): Update.
1773 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1774 Update.
1775 * gcore.c (derive_stack_segment): Update.
1776 * frame.c (get_current_frame, has_stack_frames): Update.
1777 * auxv.c (info_auxv_command): Update.
1778 * ada-tasks.c (ada_build_task_list): Update.
1779 * target.c (target_has_stack): Rename from target_has_stack_1.
1780 * target.h (target_has_stack): Remove macro.
1781 (target_has_stack): Rename from target_has_stack_1.
1782
a739972c
TT
17832020-09-28 Tom Tromey <tom@tromey.com>
1784
1785 * target.c (target_has_memory): Rename from target_has_memory_1.
1786 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1787 * thread.c (scoped_restore_current_thread::restore)
1788 (scoped_restore_current_thread::scoped_restore_current_thread):
1789 Update.
1790 * frame.c (get_current_frame, has_stack_frames): Update.
1791 * target.h (target_has_memory): Remove macro.
1792 (target_has_memory): Rename from target_has_memory_1.
1793
5b8a4776
TT
17942020-09-28 Tom Tromey <tom@tromey.com>
1795
1796 * target.c (target_has_all_memory_1): Remove.
1797 * target.h (target_has_all_memory): Remove define.
1798 (target_has_all_memory_1): Don't declare.
1799
bd356ec6
SM
18002020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1801
1802 * ser-base.c: Adjust comments formatting.
1803
2c72d5e5
TT
18042020-09-27 Tom Tromey <tom@tromey.com>
1805
1806 PR tui/25342:
1807 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1808
35a98237
TT
18092020-09-27 Tom Tromey <tom@tromey.com>
1810
1811 PR tui/25342:
1812 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1813
9e820dec
TT
18142020-09-27 Tom Tromey <tom@tromey.com>
1815
1816 * unittests/tui-selftests.c: Update.
1817 * tui/tui-winsource.h (struct tui_source_window_base)
1818 <extra_margin, show_line_number, refresh_pad>: New methods.
1819 <m_max_length, m_pad>: New members.
1820 (tui_copy_source_line): Update.
1821 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1822 first_col, line_width, ndigits parameters. Add length.
1823 (tui_source_window_base::show_source_line): Write to pad. Line
1824 number now 0-based.
1825 (tui_source_window_base::refresh_pad): New method.
1826 (tui_source_window_base::show_source_content): Write to pad. Call
1827 refresh_pad.
1828 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1829 not refill.
1830 (tui_source_window_base::update_exec_info): Call
1831 show_line_number.
1832 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1833 method.
1834 <m_digits>: New member.
1835 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1836 and m_max_length.
1837 (tui_source_window::show_line_number): New method.
1838 * tui/tui-io.h (tui_puts): Fix comment.
1839 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1840 m_max_length.
1841
c15c15c8
TT
18422020-09-27 Tom Tromey <tom@tromey.com>
1843
1844 * tui/tui-winsource.c
1845 (tui_source_window_base::set_is_exec_point_at): Don't call
1846 show_source_line.
1847
149830c1
TT
18482020-09-27 Tom Tromey <tom@tromey.com>
1849
1850 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1851 method.
1852 <erase>: Update.
1853 <cursor_x, cursor_y>: Remove.
1854 <m_inner_window>: New member.
1855 (tui_py_window::rerender): Create inner window.
1856 (tui_py_window::output): Write to inner window.
1857
8f9929bb
GR
18582020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1859
1860 PR python/26586
1861 * cli/cli-script.c (execute_control_commands): don't set
1862 instream to nullptr here as this breaks the from_tty argument
1863 to gdb.execute in Python.
1864 (execute_user_command): set instream to nullptr here instead.
1865
956bdb59
SM
18662020-09-25 Simon Marchi <simon.marchi@efficios.com>
1867
1868 * infrun.h (infrun_debug_printf): Fix formatting.
1869 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1870
3b93626b
SJ
18712020-09-25 Saagar Jha <saagar@saagarjha.com>
1872
1873 * compile/compile-object-load.h (struct munmap_list): Add
1874 explicitly-defined move constructor.
1875
b551a89f
TT
18762020-09-24 Tom Tromey <tromey@adacore.com>
1877
1878 PR tui/26638:
1879 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1880 method.
1881 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1882 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1883 (tui_prev_win): Rewrite.
1884
99bb393f
HD
18852020-09-23 Hannes Domani <ssbssa@yahoo.de>
1886
1887 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1888 in WOW64 processes as SIGINT.
1889 * nat/windows-nat.h: Make wow64_process a shared variable.
1890 * windows-nat.c: Remove static wow64_process variable.
1891
20a5fcbd
TT
18922020-09-23 Tom Tromey <tom@tromey.com>
1893
1894 PR symtab/25470:
1895 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1896 offset and bit size.
1897 * printcmd.c (print_scalar_formatted): Handle zero-length
1898 integer.
1899 (print_scalar_formatted): Use bit_size_differs_p.
1900 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1901 constant.
1902 (union type_specific): <int_stuff>: New member.
1903 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1904 methods.
1905 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1906 TYPE_SPECIFIC_FIELD.
1907 (recursive_dump_type, copy_type_recursive): Update.
1908 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1909 DW_AT_data_bit_offset.
1910
bac51ab7
TT
19112020-09-23 Tom Tromey <tom@tromey.com>
1912
1913 * utils.h (class gdb_argv): Add move operators.
1914 <append>: New methods.
1915 * compile/compile.c (build_argc_argv): Remove.
1916 (compile_args_argc): Remove.
1917 (compile_args_argv): Change type.
1918 (set_compile_args): Simplify.
1919 (append_args): Remove.
1920 (filter_args): Remove argcp parameter.
1921 (get_args): Return gdb_argv. Simplify.
1922 (compile_to_object): Update.
1923
92677124
TT
19242020-09-23 Tom Tromey <tom@tromey.com>
1925
1926 * compile/compile-object-run.c (do_module_cleanup)
1927 <~do_module_cleanup> :Remove.
1928 (do_module_cleanup): Update.
1929 * compile/compile-object-load.h (struct munmap_list): Add move
1930 assignment operator.
1931 <source_file>: Now a std::string.
1932 <munmap_list>: Rename. No longer a pointer.
1933 * compile/compile-object-load.c (struct setup_sections_data): Add
1934 constructor.
1935 <setup_one_section>: Declare.
1936 <munmap_list>: Move earlier.
1937 <m_bfd>: New member.
1938 <m_last_size, m_last_section_first, m_last_prot,
1939 m_last_max_alignment>: Rename, add initializers where needed.
1940 (setup_sections_data::setup_one_section): Rename from
1941 setup_sections. Update.
1942 (compile_object_load): Update. Don't use bfd_map_over_sections.
1943
e616f60a
TT
19442020-09-23 Tom Tromey <tom@tromey.com>
1945
1946 * compile/compile-object-run.c (struct do_module_cleanup): Add
1947 parameters to constructor. Update destructor.
1948 <source_file, scope, scope_data, out_value_type, out_value_addr,
1949 munmap_list_head, objfile_name_string>: Remove.
1950 <module>: New member.
1951 (do_module_cleanup): Update.
1952 (compile_object_run): Update.
1953
e947a848
TT
19542020-09-23 Tom Tromey <tom@tromey.com>
1955
1956 * compile/compile.c (eval_compile_command): Update.
1957 * compile/compile-object-run.h (compile_object_run): Take a
1958 compile_module_up.
1959 * compile/compile-object-run.c (compile_object_run): Take a
1960 compile_module_up.
1961 * compile/compile-object-load.h (struct compile_module): Add
1962 constructor, destructor.
1963 (compile_module_up): New typedef.
1964 (compile_object_load): Return compile_object_up.
1965 * compile/compile-object-load.c (compile_object_load): Return
1966 compile_module_up.
1967
0dbf6ee6
TT
19682020-09-23 Tom Tromey <tom@tromey.com>
1969
1970 * compile/compile-object-run.c (struct do_module_cleanup): Add
1971 constructor, destructor.
1972 <objfile_name_string>: Don't use struct hack.
1973 (do_module_cleanup): Use delete.
1974 (compile_object_run): Use new.
1975
ebe824f5
TT
19762020-09-23 Tom Tromey <tom@tromey.com>
1977
1978 * compile/compile-cplus-types.c
1979 (compile_cplus_convert_struct_or_union): Use std::vector.
1980 (compile_cplus_convert_func): Likewise.
1981 * compile/compile-c-types.c (convert_func): Use std::vector.
1982
5dd918d9
TT
19832020-09-21 Tom Tromey <tromey@adacore.com>
1984
1985 * sparc-tdep.c (sparc32_skip_prologue): Use
1986 skip_prologue_using_sal.
1987
5486c517
TT
19882020-09-19 Tom Tromey <tom@tromey.com>
1989
1990 * symfile.c (add_section_size_callback): Remove.
1991 (load_one_section): Rename from load_section_callback. Change
1992 parameters.
1993 (generic_load): Use foreach.
1994
8a6bb1d1
TT
19952020-09-19 Tom Tromey <tom@tromey.com>
1996
1997 * exec.c (add_to_section_table): Remove.
1998 (build_section_table): Use foreach.
1999
08f93a1a
TT
20002020-09-19 Tom Tromey <tom@tromey.com>
2001
2002 * elfread.c (elf_locate_sections): Change parameters.
2003 (elf_symfile_read): Use foreach.
2004
03cd72b8
TT
20052020-09-19 Tom Tromey <tom@tromey.com>
2006
2007 * cli/cli-dump.c (struct callback_data): Remove.
2008 (restore_one_section): Rename from restore_section_callback.
2009 Change parameters.
2010 (restore_binary_file): Change parameters.
2011 (restore_command): Use foreach.
2012
f4f2b85f
TT
20132020-09-19 Tom Tromey <tom@tromey.com>
2014
2015 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2016 (gcore_copy_callback): Likewise.
2017 (gcore_memory_sections): Use foreach.
2018
b35c1d1c
TT
20192020-09-19 Tom Tromey <tom@tromey.com>
2020
2021 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2022 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2023 parameters.
2024 (generic_elf_osabi_sniffer): Use foreach.
2025 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2026 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2027
5bb6e9dd
TT
20282020-09-19 Tom Tromey <tom@tromey.com>
2029
2030 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2031 (dwarf2_get_dwz_file): Use foreach.
2032 (dwarf2_locate_dwo_sections): Change parameters.
2033 (open_and_init_dwo_file): Use foreach.
2034 (dwarf2_locate_common_dwp_sections): Change parameters.
2035 (open_and_init_dwp_file): Use foreach.
2036
ad7277da
TT
20372020-09-19 Tom Tromey <tom@tromey.com>
2038
2039 * symfile.h: (find_lowest_section): Don't declare.
2040 * symfile.c (find_lowest_section): Now static. Change
2041 parameters.
2042 (struct place_section_arg): Remove.
2043 (place_section): Change parameters.
2044 (addr_info_make_relative): Use foreach.
2045 (symfile_dummy_outputs): Remove.
2046 (default_symfile_relocate): Use foreach.
2047
cb814f2e
TT
20482020-09-19 Tom Tromey <tom@tromey.com>
2049
2050 * objfiles.c (add_to_objfile_sections): Rename from
2051 add_to_objfile_sections_full.
2052 (add_to_objfile_sections): Remove.
2053 (build_objfile_section_table): Use foreach.
2054
3cabfd26
TT
20552020-09-19 Tom Tromey <tom@tromey.com>
2056
2057 * stap-probe.c (get_stap_base_address_1): Remove.
2058 (get_stap_base_address): Use foreach.
2059
1ce51eb5
TT
20602020-09-19 Tom Tromey <tom@tromey.com>
2061
2062 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2063 parameters.
2064 (gdb_bfd_close_or_warn): Use foreach.
2065
a190fabb
TT
20662020-09-19 Tom Tromey <tom@tromey.com>
2067
2068 * corelow.c (add_to_thread_list): Change parameters.
2069 (core_target_open): Use foreach.
2070
cafb0d81
TT
20712020-09-19 Tom Tromey <tom@tromey.com>
2072
2073 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2074 existing function.
2075
c8d5abea
AB
20762020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2079 for arrays.
2080
6d816919
AB
20812020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * eval.c: Remove 'f-lang.h' include.
2084 (value_f90_subarray): Moved to f-lang.c.
2085 (eval_call): Renamed to...
2086 (evaluate_subexp_do_call): ...this, is no longer static, header
2087 comment moved into header file.
2088 (evaluate_funcall): Update call to eval_call.
2089 (skip_undetermined_arglist): Moved to f-lang.c.
2090 (fortran_value_subarray): Likewise.
2091 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2092 moved to evaluate_subexp_f.
2093 (calc_f77_array_dims): Moved to f-lang.c
2094 * expprint.c (print_subexp_funcall): New function.
2095 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2096 moved to print_subexp_f, OP_FUNCALL uses new function.
2097 (dump_subexp_body_funcall): New function.
2098 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2099 moved to dump_subexp_f, OP_FUNCALL uses new function.
2100 * expression.h (evaluate_subexp_do_call): Declare.
2101 * f-lang.c (value_f90_subarray): Moved from eval.c.
2102 (skip_undetermined_arglist): Likewise.
2103 (calc_f77_array_dims): Likewise.
2104 (fortran_value_subarray): Likewise.
2105 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2106 (operator_length_f): Likewise.
2107 (print_subexp_f): Likewise.
2108 (dump_subexp_body_f): Likewise.
2109 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2110 declaration of this operation to here.
2111 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2112 support moved to operator_length_f.
2113 * parser-defs.h (dump_subexp_body_funcall): Declare.
2114 (print_subexp_funcall): Declare.
2115 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2116 fortran-operator.def.
2117
8c37706a
AB
21182020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2119
2120 * eval.c (fortran_value_subarray): New function, content is taken
2121 from...
2122 (evaluate_subexp_standard): ...here, in two places. Now arrays
2123 and strings both call the new function.
2124 (calc_f77_array_dims): Add header comment, handle strings.
2125
14f9473c
VC
21262020-09-18 Victor Collod <vcollod@nvidia.com>
2127
2128 PR gdb/26635
2129 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2130 (i386_analyze_prologue): Call i386_skip_endbr.
2131
b60cea74
TT
21322020-09-18 Tom Tromey <tromey@adacore.com>
2133
2134 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2135 (windows_nat_target::wait): Update.
2136 * target/wait.h (enum target_wait_flag): New. Use
2137 DEF_ENUM_FLAGS_TYPE.
2138 * target/target.h (target_wait): Change type of options.
2139 * target.h (target_options_to_string, default_target_wait):
2140 Update.
2141 (struct target_ops) <wait>: Change type of options.
2142 * target.c (target_wait, default_target_wait, do_option): Change
2143 type of "options".
2144 (target_options_to_string): Likewise.
2145 * target-delegates.c: Rebuild.
2146 * target-debug.h (target_debug_print_target_wait_flags): Rename
2147 from target_debug_print_options.
2148 * sol-thread.c (class sol_thread_target) <wait>: Update.
2149 (sol_thread_target::wait): Update.
2150 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2151 (rs6000_nat_target::wait): Update.
2152 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2153 Update.
2154 (remote_target::wait_ns, remote_target::wait_as): Change type of
2155 "options".
2156 (remote_target::wait): Update.
2157 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2158 (gdbsim_target::wait): Update.
2159 * record-full.c (class record_full_base_target) <wait>: Update.
2160 (record_full_wait_1): Change type of "options".
2161 (record_full_base_target::wait): Update.
2162 * record-btrace.c (class record_btrace_target) <wait>: Update.
2163 (record_btrace_target::wait): Update.
2164 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2165 Update.
2166 (ravenscar_thread_target::wait): Update.
2167 * procfs.c (class procfs_target) <wait>: Update.
2168 (procfs_target::wait): Update.
2169 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2170 * obsd-nat.c (obsd_nat_target::wait): Update.
2171 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2172 (nto_procfs_target::wait): Update.
2173 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2174 * nbsd-nat.c (nbsd_wait): Change type of "options".
2175 (nbsd_nat_target::wait): Update.
2176 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2177 (thread_db_target::wait): Update.
2178 * linux-nat.h (class linux_nat_target) <wait>: Update.
2179 * linux-nat.c (linux_nat_target::wait): Update.
2180 (linux_nat_wait_1): Update.
2181 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2182 "options".
2183 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2184 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2185 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2186 (go32_nat_target::wait): Update.
2187 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2188 * gnu-nat.c (gnu_nat_target::wait): Update.
2189 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2190 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2191 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2192 * darwin-nat.c (darwin_nat_target::wait): Update.
2193 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2194 (bsd_uthread_target::wait): Update.
2195 * aix-thread.c (class aix_thread_target) <wait>: Update.
2196 (aix_thread_target::wait): Update.
2197
0295dde6
AB
21982020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * compile/compile-object-run.c (create_copied_type_recursive): New
2201 function.
2202 (compile_object_run): Use new function.
2203
d3483b43
JT
22042020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2205
2206 * NEWS: Mention x86_64 Cygwin core file support.
2207
e7d612ad
JT
22082020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2209
2210 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2211 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2212
aff9d387
JT
22132020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2214
62a5151b
JT
2215 * windows-tdep.h: Add prototypes.
2216 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2217 (i386_windows_core_pid_to_str): Move and rename ...
2218 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2219 (windows_core_pid_to_str): ... and here.
2220 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2221
22222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2223 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2224 (amd64_windows_init_abi_common): ... and register.
2225
7d155da3
JT
22262020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2227
2228 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2229 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2230
e8ef12b9
PA
22312020-09-18 Pedro Alves <pedro@palves.net>
2232
2233 PR gdb/26631
2234 * thread.c (thread_find_command): Switch inferior before calling
2235 target methods.
2236
c1e1314d
TT
22372020-09-17 Tom Tromey <tromey@adacore.com>
2238
2239 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2240 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2241 (tdesc_arch_data_up): New typedef.
2242 (tdesc_use_registers, tdesc_data_alloc): Update.
2243 (tdesc_data_cleanup): Don't declare.
2244 * target-descriptions.c (tdesc_data_alloc): Return a
2245 tdesc_arch_data_up.
2246 (tdesc_arch_data_deleter::operator()): Rename from
2247 tdesc_data_cleanup. Change argument type.
2248 (tdesc_use_registers): Change early_data to an rvalue reference.
2249 (tdesc_use_registers): Don't use delete.
2250 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2251 * s390-tdep.c (s390_gdbarch_init): Update.
2252 * rx-tdep.c (rx_gdbarch_init): Update.
2253 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2254 * riscv-tdep.c (riscv_gdbarch_init): Update.
2255 * or1k-tdep.c (or1k_gdbarch_init): Update.
2256 * nios2-tdep.c (nios2_gdbarch_init): Update.
2257 * nds32-tdep.c (nds32_gdbarch_init): Update.
2258 * mips-tdep.c (mips_gdbarch_init): Update.
2259 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2260 * m68k-tdep.c (m68k_gdbarch_init): Update.
2261 * i386-tdep.c (i386_gdbarch_init): Update.
2262 * arm-tdep.c (arm_gdbarch_init): Update.
2263 * arc-tdep.c (arc_tdesc_init): Update.
2264 (arc_gdbarch_init): Update.
2265 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2266
0363df3d
HD
22672020-09-17 Hannes Domani <ssbssa@yahoo.de>
2268
2269 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2270 for WOW64 processes.
2271
280a9412
TT
22722020-09-17 Tom Tromey <tom@tromey.com>
2273
2274 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2275
6108fd18
TT
22762020-09-17 Tom Tromey <tom@tromey.com>
2277
2278 * value.c (preserve_values): Update.
2279 * python/py-type.c (save_objfile_types): Update.
2280 * guile/scm-type.c (save_objfile_types): Update.
2281 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2282 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2283 * compile/compile-object-run.c (compile_object_run): Update.
2284
fa9b1164
TT
22852020-09-17 Tom Tromey <tom@tromey.com>
2286
2287 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2288 Remove.
2289 <m_table>: Now htab_up.
2290 * typeprint.c (typedef_hash_table::recursively_update)
2291 (typedef_hash_table::add_template_parameters)
2292 (typedef_hash_table::typedef_hash_table): Update.
2293 (typedef_hash_table::~typedef_hash_table): Remove.
2294 (typedef_hash_table::typedef_hash_table)
2295 (typedef_hash_table::find_global_typedef)
2296 (typedef_hash_table::find_typedef): Update.
2297
eb53f105
TT
22982020-09-17 Tom Tromey <tom@tromey.com>
2299
2300 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2301
7a8a5d47
TT
23022020-09-17 Tom Tromey <tom@tromey.com>
2303
2304 * linespec.c (class decode_compound_collector)
2305 <~decode_compound_collector>: Remove.
2306 <m_unique_syms>: Now htab_up.
2307 (decode_compound_collector::operator ()): Update.
2308 (class symtab_collector) <~symtab_collector>: Remove.
2309 <m_symtab_table>: Now htab_up.
2310 (symtab_collector::operator ()): Update.
2311
99032cfc
TT
23122020-09-17 Tom Tromey <tom@tromey.com>
2313
2314 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2315 (filename_seen_cache::clear): Update.
2316 (~filename_seen_cache): Remove.
2317 (filename_seen_cache::seen): Update.
2318 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2319 htab_up.
2320 <~filename_seen_cache>: Remove.
2321 <traverse>: Update.
2322
32580f6d
TT
23232020-09-17 Tom Tromey <tom@tromey.com>
2324
2325 * completer.c (completion_tracker::discard_completions)
2326 (completion_tracker::~completion_tracker)
2327 (completion_tracker::maybe_add_completion)
2328 (completion_tracker::remove_completion)
2329 (completion_tracker::recompute_lowest_common_denominator)
2330 (completion_tracker::build_completion_result): Update.
2331 * completer.h (class completion_tracker) <have_completions>:
2332 Update.
2333 <m_entries_hash>: Now htab_up.
2334
c1fb9836
TT
23352020-09-17 Tom Tromey <tom@tromey.com>
2336
2337 * breakpoint.c (ambiguous_names_p): Use htab_up.
2338
88f07206
TT
23392020-09-17 Tom Tromey <tom@tromey.com>
2340
2341 * auto-load.c (struct auto_load_pspace_info)
2342 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2343 <loaded_script_files, loaded_script_texts>: Change type to
2344 htab_up.
2345 (~auto_load_pspace_info) Remove.
2346 (init_loaded_scripts_info, maybe_add_script_file)
2347 (maybe_add_script_text, auto_load_info_scripts): Update.
2348
9519b2ee
TT
23492020-09-17 Tom Tromey <tromey@adacore.com>
2350
2351 * c-exp.y (name_obstack): Now static.
2352
d2cd4113
CC
23532020-09-17 Chungyi Chi <demonic@csie.io>
2354
2355 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2356
b650a282
SM
23572020-09-16 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2360 (add_solib_catchpoint): Likewise.
2361 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2362 to bool.
2363 (add_solib_catchpoint): Change int parameter/variable to bool.
2364 (catch_load_or_unload): Likewise.
2365 (init_catchpoint): Likewise.
2366 (create_fork_vfork_event_catchpoint): Likewise.
2367 (catch_fork_command_1): Likewise.
2368 (catch_exec_command_1): Likewise.
2369
4d0bcfcf
SM
23702020-09-16 Simon Marchi <simon.marchi@efficios.com>
2371
2372 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2373 Change instance_flags to m_instance_flags.
2374
fe830662
TT
23752020-09-16 Tom Tromey <tromey@adacore.com>
2376
2377 PR gdb/26598:
2378 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2379
fe5ddfc3
JB
23802020-09-16 John Baldwin <jhb@FreeBSD.org>
2381
2382 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2383 PL_FLAG_EXEC.
2384 (fbsd_nat_target::insert_exec_catchpoint)
2385 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2386 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2387 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2388
e911c666
JB
23892020-09-16 John Baldwin <jhb@FreeBSD.org>
2390
2391 * configure.ac: Remove check for kinfo_getvmmap().
2392 * configure, config.in: Regenerate.
2393 * fbsd-nat.c (fbsd_read_mapping): Remove
2394 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2395 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2396 kinfo_get_vmmap() are always present.
2397
1f17d372
JB
23982020-09-16 John Baldwin <jhb@FreeBSD.org>
2399
2400 * fbsd-nat.c: Always include support for
2401 TARGET_OBJECT_SIGNAL_INFO.
2402
bcb1da7f
JB
24032020-09-16 John Baldwin <jhb@FreeBSD.org>
2404
2405 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2406 sysctl and remove procfs fallback.
2407
5515f729
JB
24082020-09-16 John Baldwin <jhb@FreeBSD.org>
2409
2410 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2411 * fbsd-nat.h: Likewise.
2412
da1df1db
TBA
24132020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2414
2415 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2416 argument.
2417
0e25e767
AB
24182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 * ada-lang.c (ada_language_data): Delete.
2421 (ada_language): Remove references to ada_language_data.
2422 * c-lang.c (c_language_data): Delete.
2423 (c_language): Remove references to c_language_data.
2424 (cplus_language_data): Delete.
2425 (cplus_language): Remove references to cplus_language_data.
2426 (asm_language_data): Delete.
2427 (asm_language): Remove references to asm_language_data.
2428 (minimal_language_data): Delete.
2429 (minimal_language): Remove references to minimal_language_data.
2430 * d-lang.c (d_language_data): Delete.
2431 (d_language): Remove references to d_language_data.
2432 * f-lang.c (f_language_data): Delete.
2433 (f_language): Remove references to f_language_data.
2434 * go-lang.c (go_language_data): Delete.
2435 (go_language): Remove references to go_language_data.
2436 * language.c (unknown_language_data): Delete.
2437 (unknown_language): Remove references to unknown_language_data.
2438 (auto_language_data): Delete.
2439 (auto_language): Remove references to auto_language_data.
2440 * language.h (language_data): Delete struct.
2441 (language_defn): No longer inherit from language_data.
2442 * m2-lang.c (m2_language_data): Delete.
2443 (m2_language): Remove references to m2_language_data.
2444 * objc-lang.c (objc_language_data): Delete.
2445 (objc_language): Remove references to objc_language_data.
2446 * opencl-lang.c (opencl_language_data): Delete.
2447 (opencl_language): Remove references to opencl_language_data.
2448 * p-lang.c (pascal_language_data): Delete.
2449 (pascal_language): Remove references to pascal_language_data.
2450 * rust-lang.c (rust_language_data): Delete.
2451 (rust_language): Remove references to rust_language_data.
2452
b7c6e27d
AB
24532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2456 initializer.
2457 (ada_language::opcode_print_table): New member function.
2458 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2459 (c_language::opcode_print_table): New member function.
2460 (cplus_language_data): Remove la_op_print_tab initializer.
2461 (cplus_language::opcode_print_table): New member function.
2462 (asm_language_data): Remove la_op_print_tab initializer.
2463 (asm_language::opcode_print_table): New member function.
2464 (minimal_language_data): Remove la_op_print_tab initializer.
2465 (minimal_language::opcode_print_table): New member function.
2466 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2467 (d_language::opcode_print_table): New member function.
2468 * expprint.c (print_subexp_standard): Update call to
2469 opcode_print_table.
2470 (op_string): Likewise.
2471 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2472 (f_language::opcode_print_table): New member function.
2473 * go-lang.c (go_language_data): Remove la_op_print_tab
2474 initializer.
2475 (go_language::opcode_print_table): New member function.
2476 * language.c (unknown_language_data): Remove la_op_print_tab
2477 initializer.
2478 (unknown_language::opcode_print_table): New member function.
2479 (auto_language_data): Remove la_op_print_tab initializer.
2480 (auto_language::opcode_print_table): New member function.
2481 * language.h (language_data): Remove la_op_print_tab field.
2482 (language_defn::opcode_print_table): Declare new member function.
2483 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2484 initializer.
2485 (m2_language::opcode_print_table): New member function.
2486 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2487 initializer.
2488 (objc_language::opcode_print_table): New member function.
2489 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2490 initializer.
2491 (opencl_language::opcode_print_table): New member function.
2492 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2493 initializer.
2494 (pascal_language::opcode_print_table): New member function.
2495 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2496 initializer.
2497 (rust_language::opcode_print_table): New member function.
2498
5aba6ebe
AB
24992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2500
2501 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2502 (ada_language::expression_ops): New member function.
2503 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2504 (c_language::expression_ops): New member function.
2505 (cplus_language_data): Remove la_exp_desc initializer.
2506 (cplus_language::expression_ops): New member function.
2507 (asm_language_data): Remove la_exp_desc initializer.
2508 (asm_language::expression_ops): New member function.
2509 (minimal_language_data): Remove la_exp_desc initializer.
2510 (minimal_language::expression_ops): New member function.
2511 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2512 (d_language::expression_ops): New member function.
2513 * eval.c (evaluate_subexp): Update call to expression_ops.
2514 * expprint.c (print_subexp): Likewise.
2515 (op_name): Likewise.
2516 (dump_subexp_body): Likewise.
2517 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2518 (f_language::expression_ops): New member function.
2519 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2520 (go_language::expression_ops): New member function.
2521 * language.c (language_defn::expression_ops): New function.
2522 (unknown_language_data): Remove la_exp_desc initializer.
2523 (auto_language_data): Likewise.
2524 * language.h (language_data): Remove la_exp_desc field.
2525 (language_defn::expression_ops): Declare new member function.
2526 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2527 (m2_language::expression_ops): New member function.
2528 * objc-lang.c (objc_language_data): Remove la_exp_desc
2529 initializer.
2530 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2531 initializer.
2532 (opencl_language::expression_ops): New member function.
2533 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2534 * parse.c (operator_length): Update call to expression_ops.
2535 (exp_iterate): Likewise.
2536 * rust-lang.c (rust_language_data): Remove la_exp_desc
2537 initializer.
2538 (ruse_language::expression_ops): New member function.
2539
b63a3f3f
AB
25402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2543 initializer.
2544 (ada_language::varobj_ops): New member function.
2545 * c-lang.c (c_language_data): Remove la_varobj_ops
2546 initializer.
2547 (cplus_language_data): Likewise.
2548 (cplus_language::varobj_ops): New member function.
2549 (asm_language_data): Remove la_varobj_ops initializer.
2550 (minimal_language_data): Likewise.
2551 * d-lang.c (d_language_data): Likewise.
2552 * f-lang.c (f_language_data): Likewise.
2553 * go-lang.c (go_language_data): Likewise.
2554 * language.c (language_defn::varobj_ops): New function.
2555 (unknown_language_data): Remove la_varobj_ops
2556 initializer.
2557 (auto_language_data): Likewise.
2558 * language.h (language_data): Remove la_varobj_ops field.
2559 (language_defn::varobj_ops): Declare new member function.
2560 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2561 * objc-lang.c (objc_language_data): Likewise.
2562 * opencl-lang.c (opencl_language_data): Likewise.
2563 * p-lang.c (pascal_language_data): Likewise.
2564 * rust-lang.c (rust_language_data): Likewise.
2565 * varobj.c (varobj_create): Update call to varobj_ops.
2566 * varobj.h (default_varobj_ops): Delete define.
2567
1ac14a04
AB
25682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2569
2570 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2571 initializer.
2572 * c-lang.c (c_language_data): Likewise.
2573 (c_language::macro_expansion): New member function.
2574 (cplus_language_data): Likewise.
2575 (cplus_language::macro_expansion): New member function.
2576 (asm_language_data): Likewise.
2577 (asm_language::macro_expansion): New member function.
2578 (minimal_language_data): Likewise.
2579 (minimal_language::macro_expansion): New member function.
2580 * d-lang.c (d_language_data): Remove la_macro_expansion
2581 initializer.
2582 * f-lang.c (f_language_data): Likewise.
2583 * go-lang.c (go_language_data): Likewise.
2584 * language.c (unknown_language_data): Likewise.
2585 (auto_language_data): Likewise.
2586 * language.h (language_data): Remove la_macro_expansion field.
2587 (language_defn::macro_expansion): New member function.
2588 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2589 initializer.
2590 * objc-lang.c (objc_language_data): Likewise.
2591 (objc_language::macro_expansion): New member function.
2592 * opencl-lang.c (opencl_language_data): Likewise.
2593 (opencl_language::macro_expansion): New member function.
2594 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2595 initializer.
2596 * rust-lang.c (rust_language_data): Likewise.
2597 * symtab.c (default_collect_symbol_completion_matches_break_on):
2598 Update call to macro_expansion.
2599
3a3440fb
AB
26002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2601
2602 * ada-lang.c (ada_language_data): Remove la_array_ordering
2603 initializer.
2604 * c-lang.c (c_language_data): Likewise.
2605 (cplus_language_data): Likewise.
2606 (asm_language_data): Likewise.
2607 (minimal_language_data): Likewise.
2608 * d-lang.c (d_language_data): Likewise.
2609 * dwarf2/read.c (read_array_order): Update for call to
2610 array_ordering.
2611 * f-lang.c (f_language_data): Remove la_array_ordering
2612 initializer.
2613 (f_language::array_ordering): New member function.
2614 * go-lang.c (go_language_data): Remove la_array_ordering
2615 initializer.
2616 * language.c (unknown_language_data): Likewise.
2617 (auto_language_data): Likewise.
2618 * language.h (language_data): Delete la_array_ordering field.
2619 (language_defn::array_ordering): New member function.
2620 * m2-lang.c (m2_language_data): Remove la_array_ordering
2621 initializer.
2622 * objc-lang.c (objc_language_data): Likewise.
2623 * opencl-lang.c (opencl_language_data): Likewise.
2624 * p-lang.c (pascal_language_data): Likewise.
2625 * rust-lang.c (rust_language_data): Likewise.
2626
0d201fa4
AB
26272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2628
2629 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2630 initializer.
2631 * c-lang.c (c_language_data): Likewise.
2632 (cplus_language_data): Likewise.
2633 (asm_language_data): Likewise.
2634 (minimal_language_data): Likewise.
2635 * d-lang.c (d_language_data): Likewise.
2636 * f-lang.c (f_language_data): Likewise.
2637 (f_language::case_sensitivity): New member function.
2638 * go-lang.c (go_language_data): Remove la_case_sensitivity
2639 initializer.
2640 * language.c (enum case_mode): Moved here from language.h.
2641 (case_mode): Make static.
2642 (show_case_command): Update for case_sensitivity being a method.
2643 (set_case_command): Likewise.
2644 (set_range_case): Likewise.
2645 (unknown_language_data): Remove la_case_sensitivity initializer.
2646 (auto_language_data): Likewise.
2647 * language.h (case_mode): Delete, move enum declaration to
2648 language.c.
2649 (language_data): Delete la_case_sensitivity field.
2650 (language_defn::case_sensitivity): New member function.
2651 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2652 initializer.
2653 * objc-lang.c (objc_language_data): Likewise.
2654 * opencl-lang.c (opencl_language_data): Likewise.
2655 * p-lang.c (pascal_language_data): Likewise.
2656 * rust-lang.c (rust_language_data): Likewise.
2657
efdf6a73
AB
26582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * ada-lang.c (ada_language_data): Remove la_range_check
2661 initializer.
2662 * c-lang.c (c_language_data): Likewise.
2663 (cplus_language_data): Likewise.
2664 (asm_language_data): Likewise.
2665 (minimal_language_data): Likewise.
2666 * d-lang.c (d_language_data): Likewise.
2667 * f-lang.c (f_language_data): Likewise.
2668 (f_language::range_checking_on_by_default): New member function.
2669 * go-lang.c (go_language_data): Remove la_range_check initializer.
2670 * language.c (enum range_mode): Moved here from language.h.
2671 (range_mode): Made static.
2672 (show_range_command): Update to use
2673 range_checking_on_by_default.
2674 (set_range_command): Likewise.
2675 (set_range_case): Likewise.
2676 (unknown_language_data): Remove la_range_check initializer.
2677 (auto_language_data): Likewise.
2678 * language.h (range_mode): Delete. Enum definition moved to
2679 language.c.
2680 (language_data): Remove la_range_check field.
2681 (language_defn::range_checking_on_by_default): New member
2682 function.
2683 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2684 (m2_language::range_checking_on_by_default): New member function.
2685 * objc-lang.c (objc_language_data): Remove la_range_check
2686 initializer.
2687 * opencl-lang.c (opencl_language_data): Likewise.
2688 * p-lang.c (pascal_language_data): Likewise.
2689 (pascal_language::range_checking_on_by_default): New member
2690 function.
2691 * rust-lang.c (rust_language_data): Remove la_range_check
2692 initializer.
2693 (rust_language::range_checking_on_by_default): New member
2694 function.
2695
bf92aec5
AB
26962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * dwarf2/read.c (dwarf2_physname): Remove special case for
2699 language_go.
2700 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2701 member function.
2702
d3355e4d
AB
27032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * ada-lang.c (ada_language_data): Remove
2706 la_store_sym_names_in_linkage_form_p initializer.
2707 (ada_language::store_sym_names_in_linkage_form_p): New member
2708 function.
2709 * c-lang.c (c_language_data): Remove
2710 la_store_sym_names_in_linkage_form_p initializer.
2711 (c_language::store_sym_names_in_linkage_form_p): New member
2712 function.
2713 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2714 initializer.
2715 (asm_language_data): Likewise.
2716 (asm_language::store_sym_names_in_linkage_form_p): New member
2717 function.
2718 (minimal_language_data): Remove
2719 la_store_sym_names_in_linkage_form_p initializer.
2720 (minimal_language::store_sym_names_in_linkage_form_p): New member
2721 function.
2722 * d-lang.c (d_language_data): Remove
2723 la_store_sym_names_in_linkage_form_p initializer.
2724 * dwarf2/read.c (dwarf2_physname): Update call to
2725 store_sym_names_in_linkage_form_p.
2726 * f-lang.c (f_language_data): Remove
2727 la_store_sym_names_in_linkage_form_p initializer.
2728 * go-lang.c (go_language_data): Remove
2729 la_store_sym_names_in_linkage_form_p initializer.
2730 * language.c (unknown_language_data): Remove
2731 la_store_sym_names_in_linkage_form_p initializer.
2732 (unknown_language::store_sym_names_in_linkage_form_p): New member
2733 function.
2734 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2735 initializer.
2736 (auto_language::store_sym_names_in_linkage_form_p): New member
2737 function.
2738 * language.h (language_data): Remove
2739 la_store_sym_names_in_linkage_form_p member variable.
2740 (language_defn::store_sym_names_in_linkage_form_p): New member
2741 function.
2742 * m2-lang.c (m2_language_data): Remove
2743 la_store_sym_names_in_linkage_form_p initializer.
2744 * objc-lang.c (objc_language_data): Likewise.
2745 * opencl-lang.c (opencl_language_data): Likewise.
2746 * p-lang.c (pascal_language_data): Likewise.
2747 * rust-lang.c (rust_language_data): Likewise.
2748
22c12a6c
AB
27492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2750
2751 * ada-lang.c (ada_language_data): Remove string_lower_bound
2752 initializer.
2753 * c-lang.c (c_language_data): Likewise.
2754 (cplus_language_data): Likewise.
2755 (asm_language_data): Likewise.
2756 (minimal_language_data): Likewise.
2757 * d-lang.c (d_language_data): Likewise.
2758 * f-lang.c (f_language_data): Likewise.
2759 * go-lang.c (go_language_data): Likewise.
2760 * language.c (unknown_language_data): Likewise.
2761 (auto_language_data): Likewise.
2762 * language.h (language_data): Remove string_lower_bound field.
2763 (language_defn::string_lower_bound): New member function.
2764 * m2-lang.c (m2_language_data): Remove string_lower_bound
2765 initializer.
2766 (m2_language::string_lower_bound): New member function.
2767 * objc-lang.c (objc_language_data): Remove string_lower_bound
2768 initializer.
2769 * opencl-lang.c (opencl_language_data): Likewise.
2770 * p-lang.c (pascal_language_data): Likewise.
2771 * rust-lang.c (rust_language_data): Likewise.
2772 * valops.c (value_cstring): Update call to string_lower_bound.
2773 (value_string): Likewise.
2774 * value.c (allocate_repeated_value): Likewise.
2775
1c236ddd
AB
27762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2777
2778 * valops.c (value_repeat): Fix incorrect argument name in comment.
2779
67bd3fd5
AB
27802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2781
2782 * ada-lang.c (ada_language_data): Remove c_style_arrays
2783 initializer.
2784 (ada_language::c_style_arrays_p): New member fuction.
2785 * c-lang.c (c_language_data): Remove c_style_arrays
2786 initializer.
2787 (cplus_language_data): Likewise.
2788 (asm_language_data): Likewise.
2789 (minimal_language_data): Likewise.
2790 * d-lang.c (d_language_data): Likewise.
2791 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2792 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2793 (f_language::c_style_arrays_p): New member function.
2794 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2795 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2796 * language.c (unknown_language_data): Remove c_style_arrays
2797 initializer.
2798 (auto_language_data): Likewise.
2799 * language.h (language_data): Remove c_style_arrays field.
2800 (language_defn::c_style_arrays_p): New member function.
2801 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2802 (m2_language::c_style_arrays_p): New member function.
2803 * objc-lang.c (objc_language_data): Remove c_style_arrays
2804 initializer.
2805 * opencl-lang.c (opencl_language_data): Likewise.
2806 * p-lang.c (pascal_language_data): Likewise.
2807 * rust-lang.c (rust_language_data): Likewise.
2808 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2809 and update local variable to a bool.
2810 * valops.c (value_cast): Update call to c_style_arrays_p.
2811 (value_array): Likewise.
2812 * value.c (coerce_array): Likewise.
2813
85967615
AB
28142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2815
2816 * ada-lang.c (ada_language_data): Remove la_language initializer.
2817 * c-lang.c (c_language_data): Likewise.
2818 (cplus_language_data): Likewise.
2819 (asm_language_data): Likewise.
2820 (minimal_language_data): Likewise.
2821 * d-lang.c (d_language_data): Likewise.
2822 * f-lang.c (f_language_data): Likewise.
2823 * go-lang.c (go_language_data): Likewise.
2824 * language.c (unknown_language_data): Likewise.
2825 (auto_language_data): Likewise.
2826 * language.h (language_data): Remove la_language field.
2827 (language_defn::language_defn): Initialise la_language field.
2828 (language_defn::la_language): New member variable.
2829 * m2-lang.c (m2_language_data): Remove la_language field.
2830 * objc-lang.c (objc_language_data): Likewise.
2831 * opencl-lang.c (opencl_language_data): Likewise.
2832 * p-lang.c (pascal_language_data): Likewise.
2833 * rust-lang.c (rust_language_data): Likewise.
2834
e171d6f1
AB
28352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2836
2837 * ada-lang.c (ada_extensions): Delete, moved into
2838 ada_language::filename_extensions.
2839 (ada_language_data): Remove la_filename_extensions initializer.
2840 (ada_language::filename_extensions): New member function.
2841 * c-lang.c (c_extensions): Delete, moved into
2842 c_language::filename_extensions.
2843 (c_language_data): Remove la_filename_extensions initializer.
2844 (c_language::filename_extensions): New member function.
2845 (cplus_extensions): Delete, moved into
2846 cplus_language::filename_extensions.
2847 (cplus_language_data): Remove la_filename_extensions initializer.
2848 (cplus_language::filename_extensions): New member function.
2849 (asm_extensions): Delete, moved into
2850 asm_language::filename_extensions.
2851 (asm_language_data): Remove la_filename_extensions initializer.
2852 (asm_language::filename_extensions): New member function.
2853 (minimal_language_data): Remove la_filename_extensions
2854 initializer.
2855 * d-lang.c (d_extensions): Delete, moved into
2856 d_language::filename_extensions.
2857 (d_language_data): Remove la_filename_extensions initializer.
2858 (d_language::filename_extensions): New member function.
2859 * f-lang.c (f_extensions): Delete, moved into
2860 f_language::filename_extensions.
2861 (f_language_data): Remove la_filename_extensions initializer.
2862 (f_language::filename_extensions): New member function.
2863 * go-lang.c (go_language_data): Remove la_filename_extensions
2864 initializer.
2865 * language.c (add_set_language_command): Update now that
2866 filename_extensions returns a vector.
2867 (unknown_language_data): Remove la_filename_extensions
2868 initializer.
2869 (auto_language_data): Likewise.
2870 * language.h (language_data): Remove la_filename_extensions field.
2871 (language_defn::filename_extensions): New member function.
2872 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2873 initializer.
2874 * objc-lang.c (objc_extensions): Delete, moved into
2875 objc_language::filename_extensions.
2876 (objc_language_data): Remove la_filename_extensions initializer.
2877 (objc_language::filename_extensions): New member function.
2878 * opencl-lang.c (opencl_language_data): Remove
2879 la_filename_extensions initializer.
2880 * p-lang.c (pascal_extensions): Delete, moved into
2881 pascal_language::filename_extensions.
2882 (pascal_language_data): Remove la_filename_extensions initializer.
2883 (pascal_language::filename_extensions): New member function.
2884 * rust-lang.c (rust_extensions): Delete, moved into
2885 rust_language::filename_extensions.
2886 (rust_language_data): Remove la_filename_extensions initializer.
2887 (rust_language::filename_extensions): New member function.
2888 * symfile.c (add_filename_language): Add new assert.
2889
6f7664a9
AB
28902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * ada-lang.c (ada_language_data): Remove la_name and
2893 la_natural_name initializers.
2894 (ada_language::name): New member function.
2895 (ada_language::natural_name): New member function.
2896 * c-lang.c (c_language_data): Remove la_name and
2897 la_natural_name initializers.
2898 (c_language::name): New member function.
2899 (c_language::natural_name): New member function.
2900 (cplus_language_data): Remove la_name and
2901 la_natural_name initializers.
2902 (cplus_language::name): New member function.
2903 (cplus_language::natural_name): New member function.
2904 (asm_language_data): Remove la_name and
2905 la_natural_name initializers.
2906 (asm_language::name): New member function.
2907 (asm_language::natural_name): New member function.
2908 (minimal_language_data): Remove la_name and
2909 la_natural_name initializers.
2910 (minimal_language::name): New member function.
2911 (minimal_language::natural_name): New member function.
2912 * compile/compile.c (compile_to_object): Update call to
2913 lanugage_defn::name.
2914 * d-lang.c (d_language_data): Remove la_name and
2915 la_natural_name initializers.
2916 (d_language::name): New member function.
2917 (d_language::natural_name): New member function.
2918 * expprint.c (print_subexp_standard): Update call to
2919 language_defn::name.
2920 (dump_raw_expression): Likewise
2921 (dump_prefix_expression): Likewise.
2922 * f-lang.c (f_language_data): Remove la_name and
2923 la_natural_name initializers.
2924 (f_language::name): New member function.
2925 (f_language::natural_name): New member function.
2926 * go-lang.c (go_language_data): Remove la_name and
2927 la_natural_name initializers.
2928 (go_language::name): New member function.
2929 (go_language::natural_name): New member function.
2930 * language.c (show_language_command): Update call to
2931 language_defn::name.
2932 (set_language_command): Likewise.
2933 (language_enum): Likewise.
2934 (language_str): Likewise.
2935 (add_set_language_command): Likewise, use
2936 language_defn::natural_name in the doc string.
2937 (unknown_language_data): Remove la_name and
2938 la_natural_name initializers.
2939 (unknown_language::name): New member function.
2940 (unknown_language::natural_name): New member function.
2941 (auto_language_data): Remove la_name and
2942 la_natural_name initializers.
2943 (auto_language::name): New member function.
2944 (auto_language::natural_name): New member function.
2945 (language_lookup_primitive_type_as_symbol): Update call to
2946 language_defn::name.
2947 * language.h (language_data): Remove la_name and la_natural_name
2948 member variables.
2949 (language_defn::name): New member function.
2950 (language_defn::natural_name): New member function.
2951 * m2-lang.c (m2_language_data): Remove la_name and
2952 la_natural_name initializers.
2953 (m2_language::name): New member function.
2954 (m2_language::natural_name): New member function.
2955 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2956 language_defn::natural_name.
2957 * objc-lang.c (objc_language_data): Remove la_name and
2958 la_natural_name initializers.
2959 (objc_language::name): New member function.
2960 (objc_language::natural_name): New member function.
2961 * opencl-lang.c (opencl_language_data): Remove la_name and
2962 la_natural_name initializers.
2963 (opencl_language::name): New member function.
2964 (opencl_language::natural_name): New member function.
2965 * p-lang.c (pascal_language_data): Remove la_name and
2966 la_natural_name initializers.
2967 (pascal_language::name): New member function.
2968 (pascal_language::natural_name): New member function.
2969 * rust-lang.c (rust_language_data): Remove la_name and
2970 la_natural_name initializers.
2971 (rust_language::name): New member function.
2972 (rust_language::natural_name): New member function.
2973 * symtab.c (lookup_language_this): Update call to
2974 language_defn::name.
2975
5bae7c4e
AB
29762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2977
2978 * ada-lang.c (ada_language_data): Remove la_name_of_this
2979 initializer.
2980 * ax-gdb.c (gen_expr): Update call to name_of_this.
2981 * c-exp.y (classify_name): Likewise.
2982 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2983 (cplus_language_data): Likewise.
2984 (cplus_language::name_of_this): New member function.
2985 (asm_language_data): Remove la_name_of_this initializer.
2986 (minimal_language_data): Likewise.
2987 * d-lang.c (d_language_data): Likewise.
2988 (d_language::name_of_this): New member function.
2989 * expprint.c (print_subexp_standard): Update call to name_of_this.
2990 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2991 * go-lang.c (go_language_data): Likewise.
2992 * language.c (unknown_language_data): Likewise.
2993 (unknown_language::name_of_this): New member function.
2994 (auto_language_data): Remove la_name_of_this initializer.
2995 (auto_language::name_of_this): New member function.
2996 * language.h (language_data): Delete la_name_of_this member
2997 variable.
2998 (language_defn::name_of_this): New member function.
2999 * m2-lang.c (m2_language_data): Remove la_name_of_this
3000 initializer.
3001 * objc-lang.c (objc_language_data): Likewise.
3002 (objc_language::name_of_this): New member function.
3003 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3004 initializer.
3005 * p-lang.c (pascal_language_data): Likewise.
3006 (pascal_language::name_of_this): New member function.
3007 * rust-lang.c (rust_language_data): Remove la_name_of_this
3008 initializer.
3009 * symtab.c (lookup_language_this): Update call to name_of_this.
3010 (lookup_symbol_aux): Likewise.
3011 * valops.c (value_of_this): Likewise.
3012
22e3f3ed
AB
30132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3014
3015 * ada-lang.c (ada_language_data): Remove
3016 la_struct_too_deep_ellipsis initializer.
3017 (ada_language::struct_too_deep_ellipsis): New member function.
3018 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3019 initializer.
3020 (cplus_language_data): Likewise.
3021 (asm_language_data): Likewise.
3022 (minimal_language_data): Likewise.
3023 * cp-valprint.c (cp_print_value): Update call to
3024 struct_too_deep_ellipsis.
3025 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3026 initializer.
3027 * f-lang.c (f_language_data): Likewise.
3028 (f_language::struct_too_deep_ellipsis): New member function.
3029 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3030 initializer.
3031 * language.c (unknown_language_data): Likewise.
3032 (auto_language_data): Likewise.
3033 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3034 member variable.
3035 (language_defn::struct_too_deep_ellipsis): New member function.
3036 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3037 initializer.Q
3038 * objc-lang.c (objc_language_data): Likewise.
3039 * opencl-lang.c (opencl_language_data): Likewise.
3040 * p-lang.c (pascal_language_data): Likewise.
3041 * rust-lang.c (rust_language_data): Likewise.
3042 * valprint.c (val_print_check_max_depth): Update call to
3043 struct_too_deep_ellipsis.
3044
ed29e1c7
FW
30452020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3046
3047 * MAINTAINERS (Write After Approval): Add myself.
3048
12d8f940
TT
30492020-09-15 Tom Tromey <tom@tromey.com>
3050
3051 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3052 Remove.
3053
6b5a7bc7
TT
30542020-09-15 Tom Tromey <tom@tromey.com>
3055
3056 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3057 and TYPE_CODE_METHODPTR cases.
3058 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3059 (c_value_print_inner): Update.
3060 * valprint.c (generic_value_print_memberptr): New function, from
3061 c_value_print_memberptr.
3062 (generic_value_print): Use it. Call cplus_print_method_ptr.
3063
47f0e2ff
TT
30642020-09-15 Tom Tromey <tromey@adacore.com>
3065
3066 * python/python-internal.h (PyInt_FromLong): Remove define.
3067 * python/py-value.c (convert_value_from_python): Use
3068 gdb_py_object_from_longest.
3069 * python/py-type.c (typy_get_code): Use
3070 gdb_py_object_from_longest.
3071 * python/py-symtab.c (salpy_get_line): Use
3072 gdb_py_object_from_longest.
3073 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3074 gdb_py_object_from_longest.
3075 * python/py-record.c (recpy_gap_reason_code): Use
3076 gdb_py_object_from_longest.
3077 * python/py-record-btrace.c (recpy_bt_insn_size)
3078 (recpy_bt_func_level, btpy_list_count): Use
3079 gdb_py_object_from_longest.
3080 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3081 gdb_py_object_from_longest. Fix error handling.
3082 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3083 gdb_py_object_from_longest.
3084 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3085 gdb_py_object_from_longest.
3086 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3087 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3088 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3089
512116ce
TT
30902020-09-15 Tom Tromey <tromey@adacore.com>
3091
3092 * python/python.c (gdbpy_parameter_value): Use
3093 gdb_py_object_from_ulongest.
3094
4ab1029c
TT
30952020-09-15 Tom Tromey <tromey@adacore.com>
3096
3097 * python/py-infevents.c (create_register_changed_event_object):
3098 Use gdb_py_object_from_longest.
3099 * python/py-exitedevent.c (create_exited_event_object): Use
3100 gdb_py_object_from_longest.
3101
062534d4
TT
31022020-09-15 Tom Tromey <tromey@adacore.com>
3103
3104 * python/python.c (gdbpy_parameter_value): Use
3105 gdb_py_object_from_longest.
3106 * python/py-type.c (convert_field, typy_range): Use
3107 gdb_py_object_from_longest.
3108 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3109 gdb_py_object_from_longest.
3110 * python/py-lazy-string.c (stpy_get_length): Use
3111 gdb_py_object_from_longest.
3112 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3113 gdb_py_object_from_longest.
3114 * python/py-infevents.c (create_memory_changed_event_object): Use
3115 gdb_py_object_from_longest.
3116 * python/py-inferior.c (infpy_get_num): Use
3117 gdb_py_object_from_longest.
3118 (infpy_get_pid): Likewise.
3119
d1cab987
TT
31202020-09-15 Tom Tromey <tromey@adacore.com>
3121
3122 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3123 defines.
3124 * python/py-value.c (valpy_long): Use
3125 gdb_py_object_from_ulongest.
3126 * python/py-symtab.c (salpy_get_pc): Use
3127 gdb_py_object_from_ulongest.
3128 (salpy_get_last): Likewise.
3129 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3130 gdb_py_object_from_ulongest.
3131 * python/py-lazy-string.c (stpy_get_address): Use
3132 gdb_py_object_from_ulongest.
3133 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3134 * python/py-arch.c (archpy_disassemble): Use
3135 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3136 error handling.
3137
4bde49dc
TT
31382020-09-15 Tom Tromey <tromey@adacore.com>
3139
3140 * python/python-internal.h (gdb_py_long_from_longest): Remove
3141 defines.
3142 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3143 * python/py-type.c (convert_field, typy_get_sizeof): Use
3144 gdb_py_object_from_longest.
3145 * python/py-record-btrace.c (btpy_list_index): Use
3146 gdb_py_object_from_longest.
3147
37431074
TT
31482020-09-15 Tom Tromey <tromey@adacore.com>
3149
3150 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3151 * python/py-record.c (recpy_element_number): Use
3152 gdb_py_object_from_longest.
3153 (recpy_gap_number): Likewise.
3154
cbe25684
TT
31552020-09-15 Tom Tromey <tromey@adacore.com>
3156
3157 * top.c (ui::ui): Update.
3158 (highest_ui_num): Remove.
3159 * top.h (struct ui) <num>: Remove.
3160
db92ac45
TT
31612020-09-15 Tom Tromey <tromey@adacore.com>
3162
3163 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3164 * ui-style.c (ansi_regex_text): Now array.
3165 * rust-exp.y (number_regex_text): Now array.
3166 * linespec.c (linespec_quote_characters): Now array.
3167 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3168 Now arrays.
3169
d2b31b67
SM
31702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3171
3172 * debuginfod-support.c (debuginfod_client_deleter): New.
3173 (debuginfod_client_up): New.
3174 (debuginfod_init): Return debuginfod_client_up.
3175 (debuginfod_source_query): Adjust.
3176 (debuginfod_debuginfo_query): Adjust.
3177
3246bd8e
SM
31782020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 * debuginfod-support.c (debuginfod_source_query): Use
3181 make_unique_xstrdup.
3182
10242f36
SM
31832020-09-14 Simon Marchi <simon.marchi@efficios.com>
3184
3185 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3186 with `type::instance_flags`.
3187
e1044e6a
MM
31882020-09-14 Michael Mullin <masmullin@gmail.com>
3189
3190 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3191 Remove baton parameter.
3192
04902b09
PA
31932020-09-14 Pedro Alves <pedro@palves.net>
3194
3195 * Makefile.in (SELFTESTS_SRCS): Add
3196 unittests/enum-flags-selftests.c.
3197 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3198 btrace_function_flags instead of enum btrace_function_flag.
3199 * compile/compile-c-types.c (convert_qualified): Use
3200 enum_flags::raw.
3201 * compile/compile-cplus-symbols.c (convert_one_symbol)
3202 (convert_symbol_bmsym):
3203 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3204 (compile_cplus_convert_struct_or_union_methods)
3205 (compile_cplus_instance::convert_qualified_base):
3206 * go-exp.y (parse_string_or_char): Add cast to int.
3207 * unittests/enum-flags-selftests.c: New file.
3208 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3209 type to btrace_thread_flags from btrace_thread_flag.
3210 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3211 local's type to btrace_thread_flags from btrace_thread_flag. Add
3212 cast in DEBUG call.
3213
69896a2c
PA
32142020-09-14 Pedro Alves <pedro@palves.net>
3215
3216 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3217 * gdbtypes.c (address_space_name_to_int): Rename to ...
3218 (address_space_name_to_type_instance_flags): ... this.
3219 (address_space_int_to_name): Rename to ...
3220 (address_space_type_instance_flags_to_name): ... this.
3221 * gdbtypes.h (address_space_name_to_int): Rename to ...
3222 (address_space_name_to_type_instance_flags): ... this.
3223 (address_space_int_to_name): Rename to ...
3224 (address_space_type_instance_flags_to_name): ... this.
3225 * type-stack.c (type_stack::insert): Adjust to rename.
3226 * type-stack.h (type_stack::insert): Likewise.
3227
314ad88d
PA
32282020-09-14 Pedro Alves <pedro@palves.net>
3229 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * avr-tdep.c (avr_address_class_type_flags): Return
3232 type_instance_flags.
3233 (avr_address_class_type_flags_to_name): Take a
3234 type_instance_flags.
3235 (avr_address_class_name_to_type_flags): Return bool and take a
3236 type_instance_flags.
3237 * d-lang.c (build_d_types): Use type::set_instance_flags.
3238 * ft32-tdep.c (ft32_address_class_type_flags): Return
3239 type_instance_flags.
3240 (ft32_address_class_type_flags_to_name): Take a
3241 type_instance_flags.
3242 (ft32_address_class_name_to_type_flags): Return bool and take a
3243 type_instance_flags.
3244 (ft32_gdbarch_init): Use type::set_instance_flags.
3245 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3246 * gdbarch.h, gdbarch.c: Regenerate.
3247 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3248 (address_class_name_to_type_flags): Use type_instance_flags and
3249 bool.
3250 * gdbtypes.c (address_space_name_to_int)
3251 (address_space_int_to_name, make_qualified_type): Use
3252 type_instance_flags.
3253 (make_qualified_type): Use type_instance_flags and
3254 type::set_instance_flags.
3255 (make_type_with_address_space, make_cv_type, make_vector_type)
3256 (check_typedef): Use type_instance_flags.
3257 (recursive_dump_type): Cast type_instance_flags to unsigned for
3258 printing.
3259 (copy_type_recursive): Use type::set_instance_flags.
3260 (gdbtypes_post_init): Use type::set_instance_flags.
3261 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3262 <m_instance_flags>: ... this.
3263 <instance_flags, set_instance_flags>: New methods.
3264 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3265 (SET_TYPE_INSTANCE_FLAGS): New.
3266 (address_space_name_to_int, address_space_int_to_name)
3267 (make_type_with_address_space): Pass flags using
3268 type_instance_flags instead of int.
3269 * stabsread.c (cleanup_undefined_types_noname): Use
3270 type::set_instance_flags.
3271 * s390-tdep.c (s390_address_class_type_flags): Return
3272 type_instance_flags.
3273 (s390_address_class_type_flags_to_name): Take a
3274 type_instance_flags.
3275 (s390_address_class_name_to_type_flags): Return bool and take a
3276 type_instance_flags.
3277 * type-stack.c (type_stack::follow_types): Use
3278 type_instance_flags.
3279 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3280
27087b7f
TT
32812020-09-14 Tom Tromey <tromey@adacore.com>
3282
3283 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3284 * x86-tdep.c (x86_is_thunk_register_name)
3285 (x86_in_indirect_branch_thunk): Update.
3286 * sparc64-tdep.c (sparc64_fpu_register_names)
3287 (sparc64_cp0_register_names, sparc64_register_names)
3288 (sparc64_pseudo_register_names): Now const.
3289 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3290 cp0_registers_num>: Now const.
3291 * sparc-tdep.c (sparc_core_register_names)
3292 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3293 (sparc32_pseudo_register_names): Now const.
3294 (validate_tdesc_registers): Update.
3295 * rust-lang.c (rust_extensions): Now const.
3296 * p-lang.c (p_extensions): Now const.
3297 * objc-lang.c (objc_extensions): Now const.
3298 * nto-tdep.c (nto_thread_state_str): Now const.
3299 * moxie-tdep.c (moxie_register_names): Now const.
3300 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3301 Now const.
3302 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3303 (mips_linux_reg_names): Now const.
3304 (mips_gdbarch_init): Update.
3305 * microblaze-tdep.c (microblaze_register_names): Now const.
3306 * m68k-tdep.c (m68k_register_names): Now const.
3307 * m32r-tdep.c (m32r_register_names): Now const.
3308 * ia64-tdep.c (ia64_register_names): Now const.
3309 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3310 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3311 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3312 ymm_avx512_register_names, pkeys_register_names>: Now const.
3313 * i386-tdep.c (i386_register_names, i386_zmm_names)
3314 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3315 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3316 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3317 * f-lang.c (f_extensions): Now const.
3318 * d-lang.c (d_extensions): Now const.
3319 * csky-tdep.c (csky_register_names): Now const.
3320 * charset.c (default_charset_names, charset_enum): Now const.
3321 (_initialize_charset): Update.
3322 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3323 const.
3324 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3325 (bsd_uthread_solib_loaded): Update.
3326 (bsd_uthread_state): Now const.
3327 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3328 (amd64_ymm_avx512_names, amd64_ymmh_names)
3329 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3330 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3331 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3332 (amd64_dword_names): Now const.
3333 * agent.c (can_use_agent_enum): Now const.
3334 * ada-tasks.c (task_states, long_task_states): Now const.
3335 * ada-lang.c (known_runtime_file_name_patterns)
3336 (known_auxiliary_function_name_patterns, attribute_names)
3337 (standard_exc, ada_extensions): Now const.
3338
89806626
SM
33392020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3340
3341 * bcache.h (struct bcache) <bcache>: Remove constructor.
3342 <m_hash_function, m_compare_function>: Remove.
3343 <~bcache>: Make virtual.
3344 <compare>: Remove static method, introduce virtual method.
3345 <default_hash>: Remove.
3346 <hash>: New virtual method.
3347 * bcache.c (bcache::expand_hash_table): Update.
3348 (bcache::insert): Update.
3349 (bcache::hash): New.
3350 (bcache::compare): Update comment and parameter names.
3351 * gdbtypes.c (types_deeply_equal): Update.
3352 * psymtab.h (struct psymbol_bcache): New struct.
3353 (class psymtab_storage) <psymtab_storage>: Make default.
3354 <psymbol_cache>: Change type to psymbol_bcache.
3355 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3356 (psymbol_hash): Change to...
3357 (psymbol_bcache::hash): ... this.
3358 (psymbol_compare): Change to...
3359 (psymbol_bcache::compare): ... this.
3360
677c92fe
SM
33612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3362
3363 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3364 checking for initial lwp.
3365
3eba3a01
TT
33662020-09-14 Tom Tromey <tromey@adacore.com>
3367
3368 * m68k-tdep.c (m68k_extract_return_value): Use
3369 pointer_result_regnum.
3370 (m68k_store_return_value): Likewise.
3371 (m68k_reg_struct_return_p): Handle vectors and arrays.
3372 (m68k_return_value): Handle arrays.
3373 (m68k_svr4_return_value): Fix single-element aggregate handling.
3374 Handle long double. Adjust for embedded ABI.
3375 (m68k_svr4_init_abi): Set pointer_result_regnum.
3376 (m68k_embedded_init_abi): New function.
3377 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3378 (m68k_osabi_sniffer): New function.
3379 (_initialize_m68k_tdep): Register osabi sniffer.
3380 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3381 member.
3382
33f4dd48
SM
33832020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3384
3385 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3386 with gdb::unique_xmalloc_ptr<char>.
3387
8400a90d
SM
33882020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3389
3390 * xml-support.h (xml_fetch_another): Change type to be a
3391 function_view.
3392 (xml_process_xincludes): Remove baton parameter.
3393 (xml_fetch_content_from_file): Change baton parameter to
3394 dirname.
3395 * xml-support.c (struct xinclude_parsing_data)
3396 <xinclude_parsing_data>: Remove baton parameter.
3397 <fetcher_baton>: Remove.
3398 (xinclude_start_include): Adjust.
3399 (xml_process_xincludes): Adjust.
3400 (xml_fetch_content_from_file): Replace baton parameter with
3401 dirname.
3402 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3403 (xml_init_syscalls_info): Use a lambda.
3404 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3405 (file_read_description_xml): Use a lambda.
3406 (fetch_available_features_from_target): Change baton parameter
3407 to target_ops.
3408 (target_read_description_xml): Use a lambda.
3409 (target_fetch_description_xml): Use a lambda.
3410 (string_read_description_xml): Update.
3411
04f5bab2
SM
34122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3413
3414 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3415 uses with type::endianity_is_not_default.
3416
db558e34
SM
34172020-09-14 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * gdbtypes.h (struct type) <endianity_is_not_default,
3420 set_endianity_is_not_default>: New methods.
3421 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3422 type::endianity_is_not_default, change all write call sites to
3423 use type::set_endianity_is_not_default.
3424
22c4c60c
SM
34252020-09-14 Simon Marchi <simon.marchi@efficios.com>
3426
3427 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3428 uses with type::is_fixed_instance.
3429
9cdd0d12
SM
34302020-09-14 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * gdbtypes.h (struct type) <is_fixed_instance,
3433 set_is_fixed_instance>: New methods.
3434 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3435 write call sites to use type::set_is_fixed_instance.
3436
0becda7a
SM
34372020-09-14 Simon Marchi <simon.marchi@efficios.com>
3438
3439 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3440 uses with type::is_gnu_ifunc.
3441
03cc7249
SM
34422020-09-14 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3445 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3446 use type::set_is_gnu_ifunc.
3447
3f46044c
SM
34482020-09-14 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3451 uses with type::stub_is_supported.
3452
9baccff6
SM
34532020-09-14 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3456 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3457 use type::set_stub_is_supported.
3458
bd63c870
SM
34592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3462 uses with type::is_vector.
3463
2062087b
SM
34642020-09-14 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3467 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3468 use type::set_is_vector.
3469
a409645d
SM
34702020-09-14 Simon Marchi <simon.marchi@efficios.com>
3471
3472 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3473 uses with type::has_varargs.
3474
1d6286ed
SM
34752020-09-14 Simon Marchi <simon.marchi@efficios.com>
3476
3477 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3478 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3479 use type::set_has_varargs.
3480
7f9f399b
SM
34812020-09-14 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3484 uses with type::is_prototyped.
3485
27e69b7a
SM
34862020-09-14 Simon Marchi <simon.marchi@efficios.com>
3487
3488 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3489 New methods.
3490 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3491 call sites to use type::set_is_prototyped.
3492
d2183968
SM
34932020-09-14 Simon Marchi <simon.marchi@efficios.com>
3494
3495 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3496 uses with type::target_is_stub.
3497
8f53807e
SM
34982020-09-14 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3501 New methods.
3502 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3503 sites to use type::set_target_is_stub.
3504
e46d3488
SM
35052020-09-14 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * gdbtypes.h (TYPE_STUB): Remove, replace all
3508 uses with type::is_stub.
3509
b4b73759
SM
35102020-09-14 Simon Marchi <simon.marchi@efficios.com>
3511
3512 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3513 (TYPE_STUB): Use type::is_stub, change all write call sites to
3514 use type::set_is_stub.
3515
20ce4123
SM
35162020-09-14 Simon Marchi <simon.marchi@efficios.com>
3517
3518 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3519 type::has_no_signedness.
3520
15152a54
SM
35212020-09-14 Simon Marchi <simon.marchi@efficios.com>
3522
3523 * gdbtypes.h (struct type) <has_no_signedness,
3524 set_has_no_signedness>: New methods.
3525 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3526 call sites to use type::set_has_no_signedness.
3527
c6d940a9
SM
35282020-09-14 Simon Marchi <simon.marchi@efficios.com>
3529
3530 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3531 type::is_unsigned.
3532
653223d3
SM
35332020-09-14 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3536 methods.
3537 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3538 sites to use type::set_is_unsigned.
3539
55ea94da 35402020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3541 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3542
e851246a
SM
3543 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3544 pointer and stack frame offset when unwinding.
55ea94da 3545
6791b117
PA
35462020-09-13 Pedro Alves <pedro@palves.net>
3547
3548 * NEWS: Document "-break-insert --qualified".
3549 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3550
77f2120b
PA
35512020-09-13 Pedro Alves <pedro@palves.net>
3552
3553 * linespec.c (classify_mtype, compare_msyms): Delete.
3554 (search_minsyms_for_name): Remove classification logic. Instead
3555 filter out trampoline symbols if we also found an external
3556 function of the same name.
3557
ed6a896c
JB
35582020-09-13 Joel Brobecker <brobecker@adacore.com>
3559
3560 * NEWS: Create a new section for the next release branch.
3561 Rename the section of the current branch, now that it has
3562 been cut.
3563
32aea73e
JB
35642020-09-13 Joel Brobecker <brobecker@adacore.com>
3565
3566 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3567 * version.in: Bump version to 11.0.50.DATE-git.
3568
8087c3fa
JB
35692020-09-12 Joel Brobecker <brobecker@adacore.com>
3570
3571 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3572
2a67f09d
FW
35732020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3574 Felix Willgerodt <Felix.Willgerodt@intel.com>
3575
3576 * gdbarch.sh: Added bfloat16 type.
3577 * gdbarch.c: Regenerated.
3578 * gdbarch.h: Regenerated.
3579 * gdbtypes.c (floatformats_bfloat16): New struct.
3580 (gdbtypes_post_init): Add builtin_bfloat16.
3581 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3582 (floatformats_bfloat16): New struct.
3583 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3584 (i386_ymm_type): Add field "v16_bfloat16"
3585 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3586 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3587 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3588 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3589 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3590 * features/i386/64bit-avx512.c: Regenerated.
3591 * features/i386/64bit-sse.xml: Add bfloat16 type.
3592 * features/i386/64bit-sse.c: Regenerated.
3593
1347d111
FW
35942020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3595
3596 * i386-tdep.c (i386_zmm_type): Fix field names.
3597 (i386_ymm_type): Fix field names.
3598
7a4e8e7d
TBA
35992020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3600
3601 * breakpoint.c: Fix typo in the help message of the
3602 "set breakpoint condition-evaluation" command.
3603
cf4ac4be
KR
36042020-09-10 Kamil Rytarowski <n54@gmx.com>
3605
3606 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3607 * (nbsd_nat_target::pid_to_exec_file)
3608 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3609 (nbsd_nat_target::post_startup_inferior)
3610 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3611 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3612 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3613 * (nbsd_thread_lister): Remove.
3614
f404573e
KR
36152020-09-10 Kamil Rytarowski <n54@gmx.com>
3616
3617 * fork-inferior.c (startup_inferior): Avoid double free.
3618
1ccb2c17
KR
36192020-09-10 Kamil Rytarowski <n54@gmx.com>
3620
3621 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3622 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3623
feedfcc7
KR
36242020-09-10 Kamil Rytarowski <n54@gmx.com>
3625
3626 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3627 * netbsd-nat.c: Include <sys/ptrace.h>.
3628 * (netbsd_nat::enable_proc_events): Add.
3629
c489f8c6
KR
36302020-09-10 Kamil Rytarowski <n54@gmx.com>
3631
3632 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3633 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3634 (netbsd_nat::for_each_thread): Add.
3635 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3636 "gdbsupport/common-debug.h".
3637 * (netbsd_nat::netbsd_thread_lister)
3638 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3639 (netbsd_nat::for_each_thread): Add.
3640
330662f6
KR
36412020-09-10 Kamil Rytarowski <n54@gmx.com>
3642
3643 * netbsd-nat.h: Include <unistd.h>.
3644 * (netbsd_nat::pid_to_exec_file): Add.
3645 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3646 * (netbsd_nat::pid_to_exec_file) Add.
3647
70b67307
KR
36482020-09-10 Kamil Rytarowski <n54@gmx.com>
3649
3650 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3651
99cf6da6
KR
36522020-09-10 Kamil Rytarowski <n54@gmx.com>
3653
3654 * netbsd-nat.h: New file.
3655 * netbsd-nat.c: Likewise.
3656
1b788fb6
TT
36572020-09-09 Tom Tromey <tromey@adacore.com>
3658
3659 * ada-lang.c (remove_extra_symbols): Do not increment when
3660 removing an element
3661
03b0a45f
TT
36622020-09-08 Tom Tromey <tromey@adacore.com>
3663
3664 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3665
3cae4447
TT
36662020-09-08 Tom Tromey <tromey@adacore.com>
3667
3668 PR win32/25302:
3669 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3670 (gdb_bfd_init_data): New function.
3671 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3672
7f08fd51
TBA
36732020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3674
3675 * infrun.c (fetch_inferior_event): Use
3676 `switch_to_target_no_thread` to switch the target.
3677
3e6ff933
TT
36782020-09-06 Tom Tromey <tom@tromey.com>
3679
3680 * symfile.h (dwarf2_free_objfile): Don't declare.
3681
e56798df
AKS
36822020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3683
3684 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3685 to match 16 byte real/complex type generated by Flang compiler.
3686
8f5c6526
TV
36872020-09-03 Tom de Vries <tdevries@suse.de>
3688
3689 PR breakpoint/26546
3690 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3691 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3692
c5065df0
SM
36932020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3694
3695 * maint.c (index_digits): New function.
3696 (struct maint_print_section_data): Remove.
3697 (print_bfd_section_info): Remove print_data parameter, add arg
3698 and index_digits.
3699 (print_objfile_section_info): Likewise.
3700 (print_bfd_section_info_maybe_relocated): Likewise (plus
3701 objfile).
3702 (maintenance_info_sections): Adjust calls.
3703
02c6f3f1
TT
37042020-09-02 Tom Tromey <tromey@adacore.com>
3705
3706 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3707 for null pointers.
3708 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3709
ef5e5b0b
SM
37102020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3711
3712 * bcache.h (struct bcache) <insert>: Change type of `added` to
3713 pointer to bool.
3714 * bcache.c (bcache::insert): Likewise.
3715 * gdbtypes.c (check_types_worklist): Adjust.
3716 * psymtab.c (add_psymbol_to_bcache): Adjust.
3717
973695d6
KB
37182020-08-31 Kevin Buettner <kevinb@redhat.com>
3719
3720 * corelow.c (unordered_set): Include.
3721 (class core_target): Add field 'm_core_unavailable_mappings'.
3722 (core_target::build_file_mappings): Print only one warning
3723 per inaccessible file. Add unavailable/broken mappings
3724 to m_core_unavailable_mappings.
3725 (core_target::xfer_partial): Call...
3726 (core_target::xfer_memory_via_mappings): New method.
3727
264fc0e2
SM
37282020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3729
3730 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3731 type to bool.
3732
2de01bdb
SM
37332020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3734
3735 * dwarf2/read.c (struct field_info): Fix indentation.
3736
f3bd50f1
SM
37372020-08-31 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3740 ordering in comment.
3741 * frame.c (frame_id_eq): Fix indentation.
3742
22b9b4b0
SL
37432020-08-31 Scott Linder <scott@scottlinder.com>
3744 Simon Marchi <simon.marchi@efficios.com>
3745
3746 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3747 inline frame ids in outer frame.
3748
84154d16
SM
37492020-08-31 Simon Marchi <simon.marchi@efficios.com>
3750
3751 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3752 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3753 (outer_frame_id): Use FID_STACK_OUTER instead of
3754 FID_STACK_INVALID.
3755 (frame_id_p): Don't check for outer_frame_id.
3756
8efaf6b3
SM
37572020-08-31 Simon Marchi <simon.marchi@efficios.com>
3758
3759 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3760 regnum/frame in value. Call allocate_value_lazy.
3761 * frame.c (frame_unwind_register_value): Use
3762 val_print_not_saved.
3763
fe1fe7ea
SM
37642020-08-31 Simon Marchi <simon.marchi@efficios.com>
3765
3766 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3767
f7c7700d
PA
37682020-08-29 Pedro Alves <pedro@palves.net>
3769
3770 * progspace.c (print_program_space): Use all_inferiors. Switch to
3771 the inferior before calling target_pid_to_str.
3772
e0814aae
TT
37732020-08-28 Tom Tromey <tom@tromey.com>
3774
3775 * xcoffread.c (xcoff_end_psymtab): Update comment.
3776 * dbxread.c (dbx_end_psymtab): Update comment.
3777
626d2320
TV
37782020-08-28 Tom de Vries <tdevries@suse.de>
3779
3780 PR breakpoint/26544
3781 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3782 event_location.
3783 (create_breakpoint): Same.
3784 (base_breakpoint_decode_location): Same.
3785 (bkpt_create_sals_from_location): Same.
3786 (bkpt_decode_location): Same.
3787 (bkpt_probe_create_sals_from_location): Same.
3788 (bkpt_probe_decode_location): Same.
3789 (tracepoint_create_sals_from_location): Same.
3790 (tracepoint_decode_location): Same.
3791 (tracepoint_probe_decode_location): Same.
3792 (strace_marker_create_sals_from_location): Same.
3793 (strace_marker_decode_location): Same.
3794 (create_sals_from_location_default): Same.
3795 (decode_location_default): Same.
3796 * breakpoint.h (struct breakpoint_ops): Same.
3797 (create_breakpoint): Same.
3798 * linespec.h (decode_line_full): Same.
3799 * linespec.c (decode_line_full): Same. Throw error if
3800 result.size () == 0.
3801
df631783
PA
38022020-08-27 Pedro Alves <pedro@palves.net>
3803
3804 PR gdb/26524
3805 * breakpoint.c (until_break_fsm) <location_breakpoint,
3806 caller_breakpoint>: Delete fields.
3807 <breakpoints>: New field.
3808 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3809 two individual breakpoints.
3810 (until_break_fsm::should_stop): Loop over breakpoints in the
3811 breakpoint vector.
3812 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3813 vector.
3814 (until_break_command): Handle location expanding into multiple
3815 sals.
3816
b2b38aa4
PA
38172020-08-27 Pedro Alves <pedro@palves.net>
3818
3819 PR gdb/26523
3820 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3821 bp_until breakpoints user-specified locations. Update intro
3822 comment.
3823
b886559f
SM
38242020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3825
3826 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3827 gdb_bfd_sections): New.
3828 * maint.c (print_bfd_section_info): Change param type to
3829 maint_print_section_data.
3830 (print_objfile_section_info): Likewise.
3831 (print_bfd_section_info_maybe_relocated): Likewise.
3832 (maintenance_info_sections): Use gdb_bfd_sections.
3833
4c6e63bf
SV
38342020-08-25 Shahab Vahedi <shahab@synopsys.com>
3835
3836 * MAINTAINERS: Add ARC target and maintainer.
3837
8d7f0635
AK
38382020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3839
3840 * configure.tgt: ARC support for GNU/Linux.
3841 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3842 * arc-linux-tdep.c: New file.
3843 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3844 * arc-tdep.c (arc_write_pc): Use it.
3845
fdd8731b
SV
38462020-08-25 Shahab Vahedi <shahab@synopsys.com>
3847
3848 * arc-tdep.c (arc_check_for_hardware_loop): New.
3849 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3850
22459524
SV
38512020-08-25 Shahab Vahedi <shahab@synopsys.com>
3852
3853 * arc-tdep.h: Include "gdbarch.h".
3854
995d3a19
SV
38552020-08-25 Shahab Vahedi <shahab@synopsys.com>
3856
3857 * arch/arc.h
3858 (arc_gdbarch_features): New class to stir the selection of target XML.
3859 (arc_create_target_description): Use FEATURES to choose XML target.
3860 (arc_lookup_target_description): Use arc_create_target_description
3861 to create _new_ target descriptions or return the already created
3862 ones if the FEATURES is the same.
3863 * arch/arc.c: Implementation of prototypes described above.
3864 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3865 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3866 * arc-tdep.c (*_feature_name): Make feature names consistent.
3867 (arc_register_feature): A new struct to hold information about
3868 registers of a particular target/feature.
3869 (arc_check_tdesc_feature): Check if XML provides registers in
3870 compliance with ARC_REGISTER_FEATURE structs.
3871 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3872 (determine_*_reg_feature_set): Which feature name to look for.
3873 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3874 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3875 to expected ISA enums to be used in arc_gdbarch_features structs.
3876 * features/Makefile (FEATURE_XMLFILES): Add new files.
3877 * gdb/features/arc/v1-aux.c: New file.
3878 * gdb/features/arc/v1-aux.xml: Likewise.
3879 * gdb/features/arc/v1-core.c: Likewise.
3880 * gdb/features/arc/v1-core.xml: Likewise.
3881 * gdb/features/arc/v2-aux.c: Likewise.
3882 * gdb/features/arc/v2-aux.xml: Likewise.
3883 * gdb/features/arc/v2-core.c: Likewise.
3884 * gdb/features/arc/v2-core.xml: Likewise.
3885 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3886
3945d2d7
GM
38872020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3888 Andrew Burgess <andrew.burgess@embecosm.com>
3889
3890 PR m2/26372
fc5d6901 3891 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3892 an assert. Remove single element array indexing pattern as the
3893 MULTI_SUBSCRIPT support will handle this case too.
3894
2677f2d3
SM
38952020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3896
3897 * value.h (valprint_check_validity): Move declaration from
3898 here...
3899 * valprint.h (valprint_check_validity): ... to here.
3900
c426fddb
SM
39012020-08-24 Simon Marchi <simon.marchi@efficios.com>
3902
3903 * debug.h: New file.
3904 * debug.c (debug_prefixed_vprintf): New function.
3905 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3906 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3907
1eb8556f
SM
39082020-08-24 Simon Marchi <simon.marchi@efficios.com>
3909
3910 * infrun.h (infrun_debug_printf_1): New function declaration.
3911 (infrun_debug_printf): New macro.
3912 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3913 throughout.
3914 (infrun_debug_printf): New function.
3915 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3916 (handle_jit_event): Likewise.
3917
b8fff44e
MW
39182020-08-21 Mark Wielaard <mark@klomp.org>
3919
3920 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3921
d19c3068
SM
39222020-08-22 Simon Marchi <simon.marchi@efficios.com>
3923
3924 * frame.c (enum class frame_id_status): New.
3925 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3926 (fprintf_frame): Update.
3927 (compute_frame_id): Set frame id status to "computing" on entry.
3928 Set it back to "not_computed" on failure and to "computed" on
3929 success.
3930 (get_frame_id): Assert the frame id is not being computed.
3931 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3932 (create_new_frame): Likewise.
3933 (frame_cleanup_after_sniffer): Update assert.
3934
b70e516e
SM
39352020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3936
3937 * regcache.c (pid_ptid_regcache_map): New type.
3938 (target_ptid_regcache_map): Remove.
3939 (target_pid_ptid_regcache_map): New type.
3940 (regcaches): Change type to target_pid_ptid_regcache_map.
3941 (get_thread_arch_aspace_regcache): Update.
3942 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3943 case.
3944 (regcaches_size): Update.
3945 (regcache_count): Update.
3946 (registers_changed_ptid_target_pid_test): New.
3947 (_initialize_regcache): Register new test.
3948
cdd9148a
SM
39492020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3950
3951 * regcache.c (regcache_count): New.
3952 (struct regcache_test_data): New.
3953 (regcache_test_data_up): New.
3954 (populate_regcaches_for_test): New.
3955 (regcaches_test): Remove.
3956 (get_thread_arch_aspace_regcache_test): New.
3957 (registers_changed_ptid_all_test): New.
3958 (registers_changed_ptid_target_test): New.
3959 (registers_changed_ptid_target_ptid_test): New.
3960 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3961 (_initialize_regcache): Register new tests.
3962
dd125343
SM
39632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3964
3965 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3966 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3967 gdbarch and aspace parameter. Use current inferior's aspace.
3968 Validate regcache's arch value.
3969 (regcaches_test): Update.
3970
3ee93972
SM
39712020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3972
3973 * regcache.c (regcaches_test): Call registers_changed.
3974
33bf4c5c
TBA
39752020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3976
3977 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3978
c2fd7fae
AKS
39792020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3980
3981 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3982 to find the end of prologue for flang compiled binaries.
3983 * arm-tdep.c (arm_skip_prologue): Likewise.
3984 * i386-tdep.c (i386_skip_prologue): Likewise.
3985 * producer.c (producer_is_llvm): New function.
3986 (producer_parsing_tests): Added new tests for clang/flang.
3987 * producer.h (producer_is_llvm): New declaration.
3988
9327494e
SM
39892020-08-18 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * linux-nat.c (linux_nat_debug_printf): New function.
3992 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3993
d138725a
AM
39942020-08-18 Aaron Merey <amerey@redhat.com>
3995
3996 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3997 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3998 (CLIBS): Add DEBUGINFOD_LIBS.
3999
f9b11e6b
ST
40002020-08-17 Sergei Trofimovich <siarheit@google.com>
4001
4002 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4003 'gdbarch_num_regs'.
4004
3ae7ab99
TT
40052020-08-17 Tom Tromey <tromey@adacore.com>
4006
4007 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4008 ada_get_decoded_value returns NULL.
4009
b017825f
TT
40102020-08-17 Tom Tromey <tromey@adacore.com>
4011
4012 * python/py-inferior.c (infpy_search_memory): Use
4013 gdb_py_object_from_ulongest.
4014 * python/py-infevents.c (create_inferior_call_event_object)
4015 (create_memory_changed_event_object): Use
4016 gdb_py_object_from_ulongest.
4017 * python/py-linetable.c (ltpy_entry_get_pc): Use
4018 gdb_py_object_from_ulongest.
4019
7635cf79
SM
40202020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4021
4022 * loc.c (class symbol_needs_eval_context): Fix indentation.
4023
f54be24b
SM
40242020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4025
4026 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4027 bool.
4028
53d5a2a5
TV
40292020-08-17 Tom de Vries <tdevries@suse.de>
4030
4031 PR gdb/26393
4032 * gdbtypes.c (dump_dynamic_prop): New function.
4033 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4034
547ce8f0
TV
40352020-08-15 Tom de Vries <tdevries@suse.de>
4036
4037 PR backtrace/26390
4038 * stack.c (print_frame_args): Temporarily set the selected
4039 frame to FRAME while printing the frame's arguments.
4040
6ea815e7
PFC
40412020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4042
4043 PR breakpoints/26385
4044 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4045 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4046
6e562fa3
PFC
40472020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4048
4049 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4050 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4051 and >= to check return value instead of == -1 and != -1.
4052
d369b608
SM
40532020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4054
4055 * utils.h (class gdb_argv) <as_array_view>: New method.
4056 * utils.c (gdb_argv_as_array_view_test): New.
4057 (_initialize_utils): Register selftest.
4058 * maint.c (maintenance_selftest): Use the new method.
4059
b31488a3
KR
40602020-08-13 Kamil Rytarowski <n54@gmx.com>
4061
4062 * target.h (supports_dumpcore, dumpcore): New
4063 function declarations.
4064 * target.c (supports_dumpcore, dumpcore): New
4065 functions.
4066 * target-delegates.c: Rebuild.
4067 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4068 and target_dumpcore ().
4069
002a3166
AM
40702020-08-13 Aaron Merey <amerey@redhat.com>
4071
4072 * debuginfod-support.c: Replace global variables with user_data.
4073
ece5bc8a
SM
40742020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4075
4076 * maint.c (maintenance_selftest): Split args and pass array_view
4077 to run_tests.
4078
6d8a0a5e
LM
40792020-08-12 Luis Machado <luis.machado@linaro.org>
4080
4081 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4082 type's length.
4083 Use %s and pulongest to print the length.
4084
7cf663a9
PA
40852020-08-12 Pedro Alves <palves@redhat.com>
4086
4087 * NEWS: Move "Multi-target debugging support" item to the
4088 "Changes since GDB 9" section.
4089
27c7b875
PA
40902020-08-12 Pedro Alves <palves@redhat.com>
4091
4092 PR gdb/26336
4093 * progspace.c (program_space::remove_objfile): Invalidate the
4094 frame cache.
4095
1796a2a1
TV
40962020-08-11 Tom de Vries <tdevries@suse.de>
4097
4098 * MAINTAINERS: Mark ms1 as deleted.
4099
f8e3fe0d
LM
41002020-08-10 Luis Machado <luis.machado@linaro.org>
4101
4102 PR gdb/26310
4103
4104 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4105 act accordingly.
4106 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4107 movz/str/stur/stp skipping behavior.
4108
cc308722
LM
41092020-08-10 Luis Machado <luis.machado@linaro.org>
4110
4111 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4112 struct user_sve_header instead of struct sve_context.
4113
041d9819
SM
41142020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4115
4116 * read.h (dwarf2_fetch_die_loc_sect_off,
4117 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4118 `void *` parameter with function_view.
4119 * read.c (dwarf2_fetch_die_loc_sect_off,
4120 dwarf2_fetch_die_loc_cu_off): Likewise.
4121 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4122 (per_cu_dwarf_call): Adjust.
4123 (get_frame_address_in_block_wrapper): Remove.
4124 (indirect_synthetic_pointer): Adjust.
4125 (get_ax_pc): Remove.
4126 (dwarf2_compile_expr_to_ax): Adjust.
4127
38f8aa06
TV
41282020-08-08 Tom de Vries <tdevries@suse.de>
4129
4130 PR build/26344
4131 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4132 constructor.
4133 * regcache.c (get_thread_arch_aspace_regcache): Same.
4134
a52b3ae2
TT
41352020-08-07 Tom Tromey <tromey@adacore.com>
4136
4137 * ravenscar-thread.c
4138 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4139 New method.
4140 (ravenscar_thread_target::wait): Check
4141 runtime_initialized.
4142 (ravenscar_thread_target::prepare_to_store)
4143 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4144 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4145 (ravenscar_thread_target::stopped_by_watchpoint)
4146 (ravenscar_thread_target::stopped_data_address)
4147 (ravenscar_thread_target::core_of_thread): Use
4148 scoped_restore_current_thread and
4149 set_base_thread_from_ravenscar_task.
4150
0e29517d
TT
41512020-08-07 Tom Tromey <tromey@adacore.com>
4152
4153 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4154
592f9bd7
TT
41552020-08-07 Tom Tromey <tromey@adacore.com>
4156
4157 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4158 update_inferior_ptid before update_thread_list.
4159 (temporarily_change_regcache_ptid): New class.
4160 (ravenscar_thread_target::fetch_registers)
4161 (ravenscar_thread_target::store_registers)
4162 (ravenscar_thread_target::prepare_to_store): Use base thread when
4163 forwarding operation.
4164
39e2018a
TT
41652020-08-07 Tom Tromey <tromey@adacore.com>
4166
4167 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4168 "is_pid" case.
4169
2080266b
TT
41702020-08-07 Tom Tromey <tromey@adacore.com>
4171
4172 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4173 New methods.
4174 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4175 first.
4176 (ravenscar_thread_target::add_thread): Rename from
4177 ravenscar_add_thread.
4178 (ravenscar_thread_target::update_thread_list): Use a lambda.
4179 (ravenscar_thread_target::xfer_partial): New method.
4180
78c02f21
TT
41812020-08-07 Tom Tromey <tromey@adacore.com>
4182
4183 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4184 gdb::function_view.
4185 (iterate_over_live_ada_tasks): Change type of argument.
4186 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4187 of argument.
4188
d5d833af
TT
41892020-08-07 Tom Tromey <tromey@adacore.com>
4190
4191 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4192 Remove.
4193 (ravenscar_thread_target::extra_thread_info): Remove.
4194 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4195 defer to target beneath for non-Ravenscar threads.
4196
a8ac85bb
TT
41972020-08-07 Tom Tromey <tromey@adacore.com>
4198
4199 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4200 get_base_thread_from_ravenscar_task>: Now methods.
4201 <m_cpu_map>: New member.
4202 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4203 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4204 (ravenscar_thread_target::task_is_currently_active): Update.
4205 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4206 Now a method.
4207 (ravenscar_thread_target::add_active_thread): Put initial thread
4208 into the m_cpu_map.
4209
550ab58d
TT
42102020-08-07 Tom Tromey <tromey@adacore.com>
4211
4212 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4213 event_ptid.
4214
e9546579
TT
42152020-08-07 Tom Tromey <tromey@adacore.com>
4216
4217 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4218 runtime_initialized.
4219
3d4470e5
TT
42202020-08-07 Tom Tromey <tromey@adacore.com>
4221
4222 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4223 add_active_thread.
4224 (ravenscar_thread_target::add_active_thread): Now public.
4225 (ravenscar_inferior_created): Call add_active_thread after pushing
4226 the target.
4227
888bdb2b
SM
42282020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4229
4230 * regcache.c (ptid_regcache_map): New type.
4231 (target_ptid_regcache_map): New type.
4232 (regcaches): Change type to target_ptid_regcache_map.
4233 (get_thread_arch_aspace_regcache): Update to regcaches' new
4234 type.
4235 (regcache_thread_ptid_changed): Likewise.
4236 (registers_changed_ptid): Likewise.
4237 (regcaches_size): Likewise.
4238 (regcaches_test): Update.
4239 (regcache_thread_ptid_changed): Update.
4240 * regcache.h (regcache_up): New type.
4241 * gdbsupport/ptid.h (hash_ptid): New struct.
4242
b161a60d
SM
42432020-08-07 Simon Marchi <simon.marchi@efficios.com>
4244
4245 * observable.h (thread_ptid_changed): Add parameter
4246 `process_stratum_target *`.
4247 * infrun.c (infrun_thread_ptid_changed): Add parameter
4248 `process_stratum_target *` and use it.
4249 (selftests): New namespace.
4250 (infrun_thread_ptid_changed): New function.
4251 (_initialize_infrun): Register selftest.
4252 * regcache.c (regcache_thread_ptid_changed): Add parameter
4253 `process_stratum_target *` and use it.
4254 (regcache_thread_ptid_changed): New function.
4255 (_initialize_regcache): Register selftest.
4256 * thread.c (thread_change_ptid): Pass target to
4257 thread_ptid_changed observable.
4258
d2854d8d
CT
42592020-08-06 Caroline Tice <cmtice@google.com>
4260
fe4c3d43
SM
4261 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4262 (struct dwp_sections): Update field comments. Add loclists and
4263 rnglists fields.
4264 (struct virtual_v2_dwo_sections): Rename struct to
4265 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4266 size & offset fields for loclists and rnglists.
4267 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4268 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4269 skipping dummy type units.
4270 (create_dwp_hash_table): Update the large comment above the function to
4271 discuss Version 5 DWP files as well, with references. Update all the
4272 version checks in the function to check for version 5 as well. Add new
4273 section at the end to create dwp hash table for version 5.
4274 (create_dwp_v2_section): Rename function to
4275 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4276 Add V5 to error message text.
4277 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4278 into calls to create_dwp_v2_or_v5_section.
4279 (create_dwo_unit_in_dwp_v5): New function.
4280 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4281 check for version2; add else clause to handle version 5.
4282 (open_and_init_dwo_file): Add code to check dwarf version & only call
4283 create_debug_types_hash_table (with sections.types) if version is not 5;
4284 else call create_debug_type_hash_table, with sections.info.
4285 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4286 version 5.
4287 (dwarf2_locate_v5_dwp_sections): New function.
4288 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4289 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4290
159ed7d9
SM
42912020-08-06 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * regcache.h (class regcache): Remove friend
4294 registers_changed_ptid.
4295 <regcache_thread_ptid_changed>: Remove.
4296 <regcaches>: Remove.
4297 * regcache.c (regcache::regcaches): Rename to...
4298 (regcaches): ... this. Make static.
4299 (get_thread_arch_aspace_regcache): Update.
4300 (regcache::regcache_thread_ptid_changed): Rename to...
4301 (regcache_thread_ptid_changed): ... this. Update.
4302 (class regcache_access): Remove.
4303 (regcaches_test): Update.
4304 (_initialize_regcache): Update.
4305 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4306 <forward_list>.
4307
174981ae
SM
43082020-08-06 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * regcache.h (class regcache) <current_regcache>: Rename to...
4311 <regcaches>: ... this. Move doc here.
4312 * regcache.c (regcache::current_regcache) Rename to...
4313 (regcache::regcaches): ... this. Move doc to header.
4314 (get_thread_arch_aspace_regcache): Update.
4315 (regcache::regcache_thread_ptid_changed): Update.
4316 (registers_changed_ptid): Update.
4317 (class regcache_access) <current_regcache_size>: Rename to...
4318 <regcaches_size>: ... this.
4319 (current_regcache_test): Rename to...
4320 (regcaches_test): ... this.
4321 (_initialize_regcache): Update.
4322
ed908db6
VC
43232020-08-06 Victor Collod <vcollod@nvidia.com>
4324
4325 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4326
b5582ab7
KB
43272020-08-05 Kevin Buettner <kevinb@redhat.com>
4328
4329 * corelow.c (core_target::build_file_mappings): Don't output
4330 null pathname in warning.
4331
ea946b86
SM
43322020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4333
4334 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4335 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4336 gdb.dwarf2/dw2-single-line-discriminators.exp,
4337 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4338
57d02173
TT
43392020-08-05 Tom Tromey <tromey@adacore.com>
4340
4341 PR rust/26197:
4342 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4343 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4344 Fix off-by-one and type size errors in ordinary case.
4345
5555c86d
TV
43462020-08-05 Tom de Vries <tdevries@suse.de>
4347
4348 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4349 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4350
97916bfe
SM
43512020-08-04 Simon Marchi <simon.marchi@efficios.com>
4352
4353 * frame.h (frame_id_p): Return bool.
4354 (frame_id_artificial_p): Return bool.
4355 (frame_id_eq): Return bool.
4356 (has_stack_frames): Return bool.
4357 (get_selected_frame): Fix typo in comment.
4358 (get_frame_pc_if_available): Return bool.
4359 (get_frame_address_in_block_if_available): Return bool.
4360 (get_frame_func_if_available): Return bool.
4361 (read_frame_register_unsigned): Return bool.
4362 (get_frame_register_bytes): Return bool.
4363 (safe_frame_unwind_memory): Return bool.
4364 (deprecated_frame_register_read): Return bool.
4365 (frame_unwinder_is): Return bool.
4366 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4367 bool.
4368 <this_id::p>: Likewise.
4369 <prev_p>: Likewise.
4370 (frame_stash_add): Return bool.
4371 (get_frame_id): Use bool.
4372 (frame_id_build_special) Use bool.
4373 (frame_id_build_unavailable_stack): Use bool.
4374 (frame_id_build): Use bool.
4375 (frame_id_p): Return bool, use true/false instead of 1/0.
4376 (frame_id_artificial_p): Likewise.
4377 (frame_id_eq): Likewise.
4378 (frame_id_inner): Likewise.
4379 (get_frame_func_if_available): Likewise.
4380 (read_frame_register_unsigned): Likewise.
4381 (deprecated_frame_register_read): Likewise.
4382 (get_frame_register_bytes): Likewise.
4383 (has_stack_frames): Likewise.
4384 (inside_main_func): Likewise.
4385 (inside_entry_func): Likewise.
4386 (get_frame_pc_if_available): Likewise.
4387 (get_frame_address_in_block_if_available): Likewise.
4388 (frame_unwinder_is): Likewise.
4389 (safe_frame_unwind_memory): Likewise.
4390 (frame_unwind_arch): Likewise.
4391
fedfee88
SM
43922020-08-04 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4395 type to cached_copy_status.
4396 (fprintf_frame): Adjust.
4397 (get_frame_func_if_available): Adjust.
4398 (frame_cleanup_after_sniffer): Adjust.
4399
6cfa9b59
MW
44002020-08-04 Mark Wielaard <mark@klomp.org>
4401
4402 * MAINTAINERS (Write After Approval): Update email address.
4403
66d6346b
SM
44042020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4405
4406 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4407 dynamic_prop::const_val.
4408
8a6d5e35
SM
44092020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4410
4411 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4412 dynamic_prop::kind.
4413
51d6067d
SM
44142020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4415
4416 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4417
b26e2ae7
JM
44182020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4419
4420 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4421
39791af2
JM
44222020-08-04 Weimin Pan <weimin.pan@oracle.com>
4423 Jose E. Marchesi <jose.marchesi@oracle.com>
4424
4425 * configure.tgt: Add entry for bpf-*-*.
4426 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4427 (ALLDEPFILES): Add bpf-tdep.c.
4428 * bpf-tdep.c: New file.
4429 * MAINTAINERS: Add bpf target and maintainer.
4430 * NEWS: Mention the support for the new target.
4431
521894aa
TV
44322020-08-04 Tom de Vries <tdevries@suse.de>
4433
4434 PR symtab/23270
4435 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4436 Error.
4437
5d6356e9
JB
44382020-08-03 John Baldwin <jhb@FreeBSD.org>
4439
4440 * syscalls/freebsd.xml: Regenerate.
4441
0cf82b81
JB
44422020-08-03 John Baldwin <jhb@FreeBSD.org>
4443
4444 * syscalls/update-freebsd.sh: Fix usage and year range.
4445
8f34b746
TV
44462020-08-03 Tom de Vries <tdevries@suse.de>
4447
4448 PR symtab/26333
4449 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4450 DW_LNE_lo_user/DW_LNE_hi_user range.
4451
5e500d33
SM
44522020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4453
4454 PR ada/26318
4455 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4456 kind.
4457
78319c15
TBA
44582020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4459
4460 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4461
4c55e970
TBA
44622020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4463
4464 * breakpoint.c (set_breakpoint_condition): Update the condition
4465 expressions after checking that the input condition string parses
4466 successfully and does not contain junk at the end.
4467
1e620590
TBA
44682020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4469
4470 * breakpoint.c (set_breakpoint_condition): Update the
4471 condition string after parsing the new condition successfully.
4472
c8693053
RO
44732020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4474
4475 * proc-api.c (_STRUCTURED_PROC): Don't define.
4476 * proc-events.c: Likewise.
4477 * proc-flags.c: Likewise.
4478 * proc-why.c: Likewise.
4479 * procfs.c: Likewise.
4480
4481 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4482 * configure, config.in: Regenerate.
4483
5a99adb8
TV
44842020-07-30 Tom de Vries <tdevries@suse.de>
4485
4486 PR build/26320
4487 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4488 m_red/m_green/m_blue in a union.
4489
8ba83e91
TV
44902020-07-29 Tom de Vries <tdevries@suse.de>
4491
4492 PR tdep/26280
4493 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4494
f75a0693
AB
44952020-07-28 Tom Tromey <tromey@adacore.com>
4496
4497 PR symtab/26270:
4498 * symtab.h (find_pc_partial_function_sym): Declare.
4499 * cli/cli-cmds.c (disassemble_command): Use
4500 find_pc_partial_function_sym. Check asm_demangle.
4501 * blockframe.c (cache_pc_function_sym): New global.
4502 (cache_pc_function_name): Remove.
4503 (clear_pc_function_cache): Update.
4504 (find_pc_partial_function_sym): New function, from
4505 find_pc_partial_function.
4506 (find_pc_partial_function): Rewrite using
4507 find_pc_partial_function_sym.
4508
16f3242c
TT
45092020-07-28 Tom Tromey <tromey@adacore.com>
4510
4511 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4512 help. Add usage.
4513
4888741a
TT
45142020-07-28 Tom Tromey <tromey@adacore.com>
4515
4516 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4517 <DW_OP_GNU_variable_value>: Cast to address type.
4518
4d46f402
KR
45192020-07-28 Kamil Rytarowski <n54@gmx.com>
4520
4521 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4522 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4523 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4524 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4525 (nbsd_get_siginfo_type): New.
4526 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4527 (_initialize_nbsd_tdep): New.
4528
d70f978b
L
45292020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4530
4531 PR binutils/26301
4532 * configure: Regenerated.
4533
377170fa
L
45342020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4535
4536 PR binutils/26301
4537 * configure: Regenerated.
4538
43d5901d
AB
45392020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4540
4541 * python/py-frame.c: Remove 'user-regs.h' include.
4542 (frapy_read_register): Rewrite to make use of
4543 gdbpy_parse_register_id.
4544 * python/py-registers.c (gdbpy_parse_register_id): New function,
4545 moved here from python/py-unwind.c. Updated the return type, and
4546 also accepts register descriptor objects.
4547 * python/py-unwind.c: Remove 'user-regs.h' include.
4548 (pyuw_parse_register_id): Moved to python/py-registers.c.
4549 (unwind_infopy_add_saved_register): Update to use
4550 gdbpy_parse_register_id.
4551 (pending_framepy_read_register): Likewise.
4552 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4553
14fa8fb3
AB
45542020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4555
4556 * python/py-registers.c: Add 'user-regs.h' include.
4557 (register_descriptor_iter_find): New function.
4558 (register_descriptor_iterator_object_methods): New static global
4559 methods array.
4560 (register_descriptor_iterator_object_type): Add pointer to methods
4561 array.
4562
ddce1758
JB
45632020-07-27 John Baldwin <jhb@FreeBSD.org>
4564
4565 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4566 for all architectures on FreeBSD 11.3 and later.
4567
a4089f52
TT
45682020-07-27 Tom Tromey <tromey@adacore.com>
4569
4570 * gcore.h (load_corefile): Don't declare.
4571
95420d30
TV
45722020-07-27 Tom de Vries <tdevries@suse.de>
4573
4574 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4575 * config.in: Regenerate.
4576 * configure: Regenerate.
4577
05a6b8c2
EZ
45782020-07-26 Eli Zaretskii <eliz@gnu.org>
4579
4580 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4581 ws2tcpip.h. When checking whether socklen_t type is defined, use
4582 ws2tcpip.h if it is available and sys/socket.h isn't.
4583 * configure: Regenerate.
4584 * config.in: Regenerate.
4585
e79eb02f
AB
45862020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4587
4588 PR fortran/23051
4589 PR fortran/26139
4590 * valops.c (value_ind): Pass address to
4591 readjust_indirect_value_type.
4592 * value.c (readjust_indirect_value_type): Make parameter
4593 non-const, and add extra address parameter. Resolve original type
4594 before using it.
4595 * value.h (readjust_indirect_value_type): Update function
4596 signature and comment.
4597
876518dd
TV
45982020-07-25 Tom de Vries <tdevries@suse.de>
4599
4600 PR symtab/26243
4601 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4602 entries.
4603
f6720b1c
AM
46042020-07-24 Aaron Merey <amerey@redhat.com>
4605
4606 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4607 * configure: Rebuild.
4608
513487e1
KB
46092020-07-23 Kevin Buettner <kevinb@redhat.com>
4610
4611 PR corefiles/26294
4612 * corelow.c (_initialize_corelow): Add period to help text
4613 for "maintenance print core-file-backed-mappings".
4614
e7bc9db8
PA
46152020-07-23 Pedro Alves <pedro@palves.net>
4616
4617 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4618 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4619 meanwhile.
4620 * frame.c (frame_cache_generation, get_frame_cache_generation):
4621 New.
4622 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4623 (get_prev_frame_if_no_cycle): On exception, don't touch
4624 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4625 * frame.h (get_frame_cache_generation): Declare.
4626
90fcc466
TV
46272020-07-23 Tom de Vries <tdevries@suse.de>
4628
4629 PR tui/26282
4630 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4631 New default constructor.
4632
78344df7
AB
46332020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4634
4635 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4636 exclude non-statement entries.
4637
b089853a
KB
46382020-07-22 Kevin Buettner <kevinb@redhat.com>
4639
4640 * NEWS (New commands): Mention new command
4641 "maintenance print core-file-backed-mappings".
4642
09c2f5d4
KB
46432020-07-22 Kevin Buettner <kevinb@redhat.com>
4644
4645 * corelow.c (gdbcmd.h): Include.
4646 (core_target::info_proc_mappings): New method.
4647 (get_current_core_target): New function.
4648 (maintenance_print_core_file_backed_mappings): New function.
4649 (_initialize_corelow): Add core-file-backed-mappings to
4650 "maint print" commands.
4651
9c5ec5c2 46522020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4653
9c5ec5c2
KB
4654 * linux-tdep.c (dump_note_entry_p): New function.
4655 (linux_dump_mapping_p_ftype): New typedef.
4656 (linux_find_memory_regions_full): Add new parameter,
4657 should_dump_mapping_p.
4658 (linux_find_memory_regions): Adjust call to
4659 linux_find_memory_regions_full.
4660 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4661 call to linux_find_memory_regions_full.
4662
db082f59
KB
46632020-07-22 Kevin Buettner <kevinb@redhat.com>
4664
4665 * corelow.c (solist.h, unordered_map): Include.
4666 (class core_target): Add field m_core_file_mappings and
4667 method build_file_mappings.
4668 (core_target::core_target): Call build_file_mappings.
4669 (core_target::~core_target): Free memory associated with
4670 m_core_file_mappings.
4671 (core_target::build_file_mappings): New method.
4672 (core_target::xfer_partial): Use m_core_file_mappings
4673 for memory transfers.
4674 * linux-tdep.c (linux_read_core_file_mappings): New
4675 function.
4676 (linux_core_info_proc_mappings): Rewrite to use
4677 linux_read_core_file_mappings.
4678 (linux_init_abi): Register linux_read_core_file_mappings.
4679
7e183d27
KB
46802020-07-22 Kevin Buettner <kevinb@redhat.com>
4681
4682 * arch-utils.c (default_read_core_file_mappings): New function.
4683 * arch-utils.c (default_read_core_file_mappings): Declare.
4684 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4685 * gdbarch.h, gdbarch.c: Regenerate.
4686
2735d421
KB
46872020-07-22 Kevin Buettner <kevinb@redhat.com>
4688
4689 PR corefiles/25631
4690 * corelow.c (core_target:xfer_partial): Revise
4691 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4692 case after first checking the stratum beneath the core
4693 target.
4694 (has_all_memory): Return true.
4695 * target.c (raw_memory_xfer_partial): Revise comment
4696 regarding use of has_all_memory.
4697
e56cb451
KB
46982020-07-22 Kevin Buettner <kevinb@redhat.com>
4699
4700 * exec.h (section_table_xfer_memory): Revise declaration,
4701 replacing section name parameter with an optional callback
4702 predicate.
4703 * exec.c (section_table_xfer_memory): Likewise.
4704 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4705 of section_table_xfer_memory.
4706
32fa152e
TT
47072020-07-22 Tom Tromey <tromey@adacore.com>
4708
4709 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4710 lookup_symbol_search_name.
4711
a67a1c41
AB
47122020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4713
4714 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4715 redundant local variable.
4716 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4717 reference, not pointer, update code accordingly.
4718
a7b4ff4f
SM
47192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4720 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4721
4722 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4723 * jit.c (jit_breakpoint_re_set_internal): Use the
4724 `skip_jit_symbol_lookup` field.
4725
2340e834
SM
47262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4727 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4728
4729 * jit.c (jit_read_descriptor): Define the descriptor address once,
4730 use twice.
4731 (jit_breakpoint_deleted): Move the declaration of the loop variable
4732 `iter` into the loop header.
4733 (jit_breakpoint_re_set_internal): Move the declaration of the local
4734 variable `objf_data` to the first point of definition.
4735 (jit_event_handler): Move the declaration of local variables
4736 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4737 Rename `objf` to `jited`.
4738
c1072906
SM
47392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4740
4741 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4742 Remove.
4743 * jit.c (get_jiter_objfile_data): Update.
4744
c8474dc3
TBA
47452020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4746 Simon Marchi <simon.marchi@polymtl.ca>
4747
4748 * jit.c (struct jit_program_space_data): Remove.
4749 (jit_program_space_key): Remove.
4750 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4751 stuff.
4752 (get_jit_program_space_data): Remove.
4753 (jit_breakpoint_deleted): Iterate on all of the program space's
4754 objfiles.
4755 (jit_inferior_init): Likewise.
4756 (jit_breakpoint_re_set_internal): Likewise. Also change return
4757 type to void.
4758 (jit_breakpoint_re_set): Pass current_program_space to
4759 jit_breakpoint_re_set_internal.
4760
77208eb7
SM
47612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 * jit.h (struct jiter_objfile_data) <cached_code_address,
4764 jit_breakpoint>: Move to here from ...
4765 * jit.c (jit_program_space_data): ... here.
4766 (jiter_objfile_data::~jiter_objfile_data): Update.
4767 (jit_breakpoint_deleted): Update.
4768 (jit_breakpoint_re_set_internal): Update.
4769
8c1c720f
SM
47702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4771
4772 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4773 checks.
4774 (jit_read_descriptor): Remove NULL check.
4775 (jit_event_handler): Add an assertion.
4776
0e74a041
SM
47772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4778
4779 * jit.h (struct jit_objfile_data): Split into...
4780 (struct jiter_objfile_data): ... this ...
4781 (struct jited_objfile_data): ... and this.
4782 * objfiles.h (struct objfile) <jit_data>: Remove.
4783 <jiter_data, jited_data>: New fields.
4784 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4785 (jiter_objfile_data::~jiter_objfile_data): ... this.
4786 (get_jit_objfile_data): Rename to ...
4787 (get_jiter_objfile_data): ... this.
4788 (add_objfile_entry): Update.
4789 (jit_read_descriptor): Use get_jiter_objfile_data.
4790 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4791 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4792 (jit_inferior_exit_hook): Use objfile's jited_data field.
4793
238b5c9f
SM
47942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4795
4796 * jit.h: Forward-declare `struct minimal_symbol`.
4797 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4798 constructor, destructor, and an objfile* field.
4799 * jit.c (jit_objfile_data): Remove.
4800 (struct jit_objfile_data): Migrate from here to jit.h.
4801 (jit_objfile_data::~jit_objfile_data): New destructor
4802 implementation with code moved from free_objfile_data.
4803 (free_objfile_data): Delete.
4804 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4805 (jit_find_objf_with_entry_addr): Ditto.
4806 (jit_inferior_exit_hook): Ditto.
4807 (_initialize_jit): Remove the call to
4808 register_objfile_data_with_cleanup.
4809 * objfiles.h (struct objfile) <jit_data>: New field.
4810
fe053b9e
TBA
48112020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4812
4813 * jit.h: Forward-declare `struct objfile`.
4814 (jit_event_handler): Add a second parameter, the JITer objfile.
4815 * jit.c (jit_read_descriptor): Change the signature to take the
4816 JITer objfile as an argument instead of the jit_program_space_data.
4817 (jit_inferior_init): Update the call to jit_read_descriptor.
4818 (jit_event_handler): Use the new JITer objfile argument when calling
4819 jit_read_descriptor.
4820 * breakpoint.c (handle_jit_event): Update the call to
4821 jit_event_handler to pass the JITer objfile.
4822
4cec0c66
JB
48232020-07-21 John Baldwin <jhb@FreeBSD.org>
4824
4825 * gdbarch.c: Regenerate.
4826 * gdbarch.h: Regenerate.
4827 * gdbarch.sh (handle_segmentation_fault): Remove method.
4828 * infrun.c (handle_segmentation_fault): Remove.
4829 (print_signal_received_reason): Remove call to
4830 handle_segmentation_fault.
4831
0e42f66a
JB
48322020-07-21 John Baldwin <jhb@FreeBSD.org>
4833
4834 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4835 Rename to sparc64_linux_report_signal_info and add siggnal
4836 argument.
4837 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4838 instead of sparc64_linux_handle_segmentation_fault.
4839
77bdfeb2
JB
48402020-07-21 John Baldwin <jhb@FreeBSD.org>
4841
4842 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4843 i386_linux_report_signal_info instead of
4844 i386_linux_handle_segmentation_fault.
4845 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4846 to i386_linux_report_signal_info and add siggnal argument.
4847 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4848 of i386_linux_handle_segmentation_fault.
4849 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4850 to i386_linux_report_signal_info and add siggnal argument.
4851
ad97bfc5
JB
48522020-07-21 John Baldwin <jhb@FreeBSD.org>
4853
4854 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4855 hook if present.
4856
272bb05c
JB
48572020-07-21 John Baldwin <jhb@FreeBSD.org>
4858
4859 * gdbarch.c: Regenerate.
4860 * gdbarch.h: Regenerate.
4861 * gdbarch.sh (report_signal_info): New method.
4862 * infrun.c (print_signal_received_reason): Invoke gdbarch
4863 report_signal_info hook if present.
4864
baf8791e
AB
48652020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4866
4867 * python/py-registers.c : Add 'unordered_map' include.
4868 (gdbpy_new_reggroup): Renamed to...
4869 (gdbpy_get_reggroup): ...this. Update to only create register
4870 group descriptors when needed.
4871 (gdbpy_reggroup_iter_next): Update.
4872
f7306dac
AB
48732020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * python/py-registers.c (gdbpy_register_object_data): New static
4876 global.
4877 (gdbpy_register_object_data_init): New function.
4878 (gdbpy_new_register_descriptor): Renamed to...
4879 (gdbpy_get_register_descriptor): ...this, and update to reuse
4880 existing register descriptors where possible.
4881 (gdbpy_register_descriptor_iter_next): Update.
4882 (gdbpy_initialize_registers): Register new gdbarch data.
4883
05c309a8
SM
48842020-07-21 Simon Marchi <simon.marchi@efficios.com>
4885
4886 * linux-nat.c (stopped_pids): Make static.
4887
d1fd641e
SM
48882020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4889
4890 PR ada/26235
4891 * gdbtypes.c (ada_discrete_type_low_bound,
4892 ada_discrete_type_high_bound): Handle undefined bounds.
4893
1de14d77
KR
48942020-07-21 Kamil Rytarowski <n54@gmx.com>
4895
4896 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4897 declaration.
4898 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4899 function.
4900
ed810cc7
JB
49012020-07-20 John Baldwin <jhb@FreeBSD.org>
4902
4903 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4904 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4905 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4906 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4907 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4908 method.
4909
ae5369e7
LC
49102020-07-20 Ludovic Courtès <ludo@gnu.org>
4911
4912 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4913 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4914 which are deprecated in Guile 3.0.
4915 * configure.ac (try_guile_versions): Add "guile-3.0".
4916 * configure (try_guile_versions): Regenerate.
4917 * NEWS: Update entry.
4918
68cf161c
LC
49192020-07-20 Ludovic Courtès <ludo@gnu.org>
4920 Doug Evans <dje@google.com>
4921
4922 PR gdb/21104
4923 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4924 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4925 USING_GUILE_BEFORE_2_2.
4926 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4927 Change type to 'scm_t_port_type *'.
4928 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4929 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4930 parameter and honor it. Update callers.
4931 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4932 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4933 functions.
4934 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4935 USING_GUILE_BEFORE_2_2.
4936 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4937 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4938 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4939 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4940 and 'SCM_PORT_TYPE'.
4941 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4942 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4943 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4944 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4945 [!USING_GUILE_BEFORE_2_2]: New functions.
4946 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4947 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4948 'gdbscm_memory_port_read'.
4949 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4950 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4951 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4952 function.
4953 (ioscm_init_memory_port): Remove.
4954 (ioscm_init_memory_port_stream): New function
4955 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4956 function.
4957 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4958 Return scm_from_uint (0).
4959 (gdbscm_set_memory_port_read_buffer_size_x)
4960 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4961 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4962 Return scm_from_uint (0).
4963 (gdbscm_set_memory_port_write_buffer_size_x)
4964 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4965 * configure.ac (try_guile_versions): Add "guile-2.2".
4966 * configure: Regenerate.
4967 * NEWS: Add entry.
4968
aee91db3
TT
49692020-07-18 Tom Tromey <tom@tromey.com>
4970
4971 * linux-nat.c (linux_multi_process): Remove.
4972 (linux_nat_target::supports_multi_process): Return true.
4973
0e267416
AB
49742020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4975
4976 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4977 (riscv_lookup_target_description): Return pointer out of
4978 unique_ptr.
4979 * target-descriptions.c (allocate_target_description): Add
4980 comment.
4981 (target_desc_deleter::operator()): Likewise.
4982 * target-descriptions.h (struct target_desc_deleter): Moved to
4983 gdbsupport/tdesc.h.
4984 (target_desc_up): Likewise.
4985
f80c8ec4
TT
49862020-07-17 Tom Tromey <tromey@adacore.com>
4987
4988 * linux-nat.c (linux_nat_target::supports_non_stop)
4989 (linux_nat_target::always_non_stop_p): Use "true".
4990 (linux_nat_target::supports_disable_randomization): Use "true" and
4991 "false".
4992
d0ce17d8
CT
49932020-07-16 Caroline Tice <cmtice@google.com>
4994
4995 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4996 (RNGLIST_HEADER_SIZE64): New constant definition.
4997 (struct dwop_section_names): Add rnglists_dwo.
4998 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4999 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5000 (struct dwo_sections): Add rnglists field.
5001 (read_attribut_reprocess): Add tag parameter.
5002 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5003 (cu_debug_rnglists_section): New function (decl & definition).
5004 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5005 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5006 die whose range is being checked; get rnglist section from
5007 cu_debug_rnglists_section, to get from either objfile or dwo file as
5008 appropriate. Add cases for DW_RLE_base_addressx,
5009 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5010 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5011 test inside if-condition and updating complaint message.
5012 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5013 dwarf2_rnglists_process.
5014 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5015 dwarf2_ranges_process.
5016 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5017 need_ranges_base and update comment appropriately. Also pass die tag
5018 to dwarf2_ranges_read.
5019 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5020 need_ranges_base and update comment appropriately. Also pass die tag
5021 to dwarf2_ranges_process.
5022 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5023 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5024 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5025 need_ranges_base and update comment appropriately. Also pass die tag
5026 to read_attribute_reprocess and dwarf2_ranges_read.
5027 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5028 and update function comment appropriately.
5029 (read_loclist_index): Call read_loclists_rnglists_header instead of
5030 read_loclist_header.
5031 (read_rnglist_index): New function.
5032 (read_attribute_reprocess): Add tag parameter. Add code for
5033 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5034 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5035
3dcc261c
AB
50362020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5039 being resolved.
5040
ccb9eba6
AB
50412020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5042
5043 * arch-utils.c (show_architecture): Update formatting of messages.
5044
cf88be68
SM
50452020-07-12 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * gdbtypes.h (struct type) <bounds>: Handle array and string
5048 types.
5049 * ada-lang.c (assign_aggregate): Use type::bounds on
5050 array/string type.
5051 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5052 * c-varobj.c (c_number_of_children): Likewise.
5053 (c_describe_child): Likewise.
5054 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5055 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5056 (f_type_print_base): Likewise.
5057 * f-valprint.c (f77_array_offset_tbl): Likewise.
5058 (f77_get_upperbound): Likewise.
5059 (f77_print_array_1): Likewise.
5060 * guile/scm-type.c (gdbscm_type_range): Likewise.
5061 * m2-typeprint.c (m2_array): Likewise.
5062 (m2_is_long_set_of_type): Likewise.
5063 * m2-valprint.c (get_long_set_bounds): Likewise.
5064 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5065 * python/py-type.c (typy_range): Likewise.
5066 * rust-lang.c (rust_internal_print_type): Likewise.
5067 * type-stack.c (type_stack::follow_types): Likewise.
5068 * valarith.c (value_subscripted_rvalue): Likewise.
5069 * valops.c (value_cast): Likewise.
5070
509971ae
SM
50712020-07-12 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5074 callers to use the equivalent accessor methods.
5075
107406b7
SM
50762020-07-12 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5079 (struct type) <bit_stride>: New method.
5080 (TYPE_BIT_STRIDE): Remove.
5081 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5082
bb789949
SM
50832020-07-12 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5086 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5087 callers to use the equivalent accessor methods instead.
5088
39498edb
SM
50892020-07-12 Simon Marchi <simon.marchi@efficios.com>
5090
5091 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5092 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5093 callers to use the equivalent accessor methods instead.
5094
3b606f38
SM
50952020-07-12 Simon Marchi <simon.marchi@efficios.com>
5096
5097 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5098 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5099 to use dynamic_prop::kind.
5100
064d9cb9
SM
51012020-07-12 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5104 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5105 to get the bound property's kind and check against
5106 PROP_UNDEFINED.
5107
5537ddd0
SM
51082020-07-12 Simon Marchi <simon.marchi@efficios.com>
5109
5110 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5111 all callers to use type::range_bounds followed by
5112 dynamic_prop::{low,high}.
5113
8c2e4e06
SM
51142020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5115
5116 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5117 const_val, set_const_val, baton, set_locexpr, set_loclist,
5118 set_addr_offset, variant_parts, set_variant_parts,
5119 original_type, set_original_type>: New methods.
5120 <kind>: Rename to...
5121 <m_kind>: ... this. Update all users to use the new methods
5122 instead.
5123 <data>: Rename to...
5124 <m_data>: ... this. Update all users to use the new methods
5125 instead.
5126
7c6f2712
SM
51272020-07-12 Simon Marchi <simon.marchi@efficios.com>
5128
5129 * gdbtypes.c (get_discrete_bounds): Return failure if
5130 the range type's bounds are not both defined and constant
5131 values.
5132 (get_array_bounds): Update comment. Remove undefined bound check.
5133
599088e3
SM
51342020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5135
5136 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5137 the type::bounds method directly.
5138
c4dfcb36
SM
51392020-07-12 Simon Marchi <simon.marchi@efficios.com>
5140
5141 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5142 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5143 are used to set the range type's bounds to use set_bounds.
5144
0a278aa7
PW
51452020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5146
5147 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5148
cce20f10
PA
51492020-07-10 Pedro Alves <pedro@palves.net>
5150
5151 * gdbthread.h (inferior_ref): Define.
5152 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5153 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5154 * thread.c
5155 (scoped_restore_current_thread::restore):
5156 Adjust to gdb::ref_ptr.
5157 (scoped_restore_current_thread::~scoped_restore_current_thread):
5158 Remove manual decref handling.
5159 (scoped_restore_current_thread::scoped_restore_current_thread):
5160 Adjust to use
5161 inferior_ref::new_reference/thread_info_ref::new_reference.
5162 Incref the thread before calling get_frame_id instead of after.
5163 Let TARGET_CLOSE_ERROR propagate.
5164
6d7aa592
PA
51652020-07-10 Pedro Alves <pedro@palves.net>
5166
5167 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5168 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5169 NOT_AVAILABLE_ERROR.
5170 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5171 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5172
b3e3a4c1
SM
51732020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5174 Pedro Alves <pedro@palves.net>
5175
5176 PR gdb/26199
5177 * infrun.c (threads_are_resumed_pending_p): Delete.
5178 (do_target_wait): Remove threads_are_executing and
5179 threads_are_resumed_pending_p checks from the inferior_matches
5180 lambda. Update comments.
5181
d6cc5d98
PA
51822020-07-10 Pedro Alves <pedro@palves.net>
5183
5184 PR gdb/26199
5185 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5186 executing threads.
5187
7d3badc6
PA
51882020-07-10 Pedro Alves <pedro@palves.net>
5189
5190 PR gdb/26199
5191 * infrun.c (handle_no_resumed): Handle multiple targets.
5192
42bd97a6
PA
51932020-07-10 Pedro Alves <pedro@palves.net>
5194
5195 PR gdb/26199
5196 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5197 target_is_async_p.
5198
43667cc6
PA
51992020-07-10 Pedro Alves <pedro@palves.net>
5200
5201 PR gdb/26199
5202 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5203 threads, not all threads.
5204
96118d11
PA
52052020-07-10 Pedro Alves <pedro@palves.net>
5206
5207 PR gdb/26199
5208 * remote.c (remote_target::open_1): Pass remote target pointer as
5209 data to create_async_event_handler.
5210 (remote_async_inferior_event_handler): Mark async event handler
5211 before returning if the remote target still has either pending
5212 events or unacknowledged notifications.
5213
54904d81
JB
52142020-07-10 John Baldwin <jhb@FreeBSD.org>
5215
5216 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5217 declaration.
5218 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5219 function.
5220
f37e5866
JB
52212020-07-09 John Baldwin <jhb@FreeBSD.org>
5222
5223 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5224 inferior_ptid.
5225
fc238d4a
JB
52262020-07-09 John Baldwin <jhb@FreeBSD.org>
5227
5228 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5229 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5230 AT_FREEBSD_PS_STRINGS.
5231
6e2469ff
HD
52322020-07-08 Hannes Domani <ssbssa@yahoo.de>
5233
5234 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5235 of debugfile path on Windows.
5236
d1076c41
JB
52372020-07-08 John Baldwin <jhb@FreeBSD.org>
5238
5239 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5240 argument to 'data'.
5241
15f3b077
TT
52422020-07-08 Tom Tromey <tromey@adacore.com>
5243
5244 * ada-lang.c (ada_exception_message_1): Use read_memory.
5245
9fc501fd
AB
52462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 PR python/22748
5249 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5250 special handling for inline frames.
5251 * findvar.c (value_of_register_lazy): Skip inline frames when
5252 creating lazy register values.
5253 * frame.c (frame_id_computed_p): Delete definition.
5254 * frame.h (frame_id_computed_p): Delete declaration.
5255
64cb3757
AB
52562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5257
5258 * NEWS: Mention additions to Python API.
5259 * python/py-arch.c (archpy_register_groups): New function.
5260 (arch_object_methods): Add 'register_groups' method.
5261 * python/py-registers.c (reggroup_iterator_object): New struct.
5262 (reggroup_object): New struct.
5263 (gdbpy_new_reggroup): New function.
5264 (gdbpy_reggroup_to_string): New function.
5265 (gdbpy_reggroup_name): New function.
5266 (gdbpy_reggroup_iter): New function.
5267 (gdbpy_reggroup_iter_next): New function.
5268 (gdbpy_new_reggroup_iterator): New function
5269 (gdbpy_initialize_registers): Register new types.
5270 (reggroup_iterator_object_type): Define new Python type.
5271 (gdbpy_reggroup_getset): New static global.
5272 (reggroup_object_type): Define new Python type.
5273 * python/python-internal.h
5274
0f767f94
AB
52752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5276
5277 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5278 * python/py-arch.c (archpy_registers): New function.
5279 (arch_object_methods): Add 'registers' method.
5280 * python/py-registers.c: New file.
5281 * python/python-internal.h
5282 (gdbpy_new_register_descriptor_iterator): Declare.
5283 (gdbpy_initialize_registers): Declare.
5284 * python/python.c (do_start_initialization): Call
5285 gdbpy_initialize_registers.
5286 * NEWS: Mention additions to the Python API.
5287
87dbc774
AB
52882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * NEWS: Mention new Python API method.
5291 * python/py-unwind.c (pending_framepy_architecture): New function.
5292 (pending_frame_object_methods): Add architecture method.
5293
3bc98c0c
AB
52942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5295
5296 * gdbarch.c: Regenerate.
5297 * gdbarch.h: Regenerate.
5298 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5299 (gdbarch_data): Use internal_error for the case where
5300 deprecated_set_gdbarch_data was originally needed.
5301 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5302 and use passed in obstack.
5303 (libunwind_frame_set_descr): Should no longer get back NULL from
5304 gdbarch_data.
5305 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5306 type.
5307 * user-regs.c (user_regs_init): Update parameters, and use passed
5308 in obstack.
5309 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5310 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5311
d8cc8af6
TV
53122020-07-06 Tom de Vries <tdevries@suse.de>
5313
5314 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5315 End-Of-Sequence in lte_is_less_than.
5316 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5317 "gdb: Don't reorder line table entries too much when sorting".
5318
947f7597
TV
53192020-07-06 Tom de Vries <tdevries@suse.de>
5320
5321 PR tui/26205
5322 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5323
1e7c1b22
TV
53242020-07-05 Tom de Vries <tdevries@suse.de>
5325
5326 PR build/26187
5327 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5328 std::uncaught_exceptions instead of deprecated
5329 std::uncaught_exception.
5330
a36158ec
SM
53312020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5332
5333 * macroexp.h (macro_stringify): Return
5334 gdb::unique_xmalloc_ptr<char>.
5335 * macroexp.c (macro_stringify): Likewise.
5336 * macrotab.c (fixup_definition): Update.
5337
14d960c8
SM
53382020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5339
5340 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5341 (lex_one_token): Update.
5342 * macroexp.c (struct macro_buffer) <release>: Return
5343 gdb::unique_xmalloc_ptr<char>.
5344 (macro_stringify): Update.
5345 (macro_expand): Update.
5346 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5347 * macroexp.h (macro_expand_next): Likewise.
5348
211d5b1c
SM
53492020-07-02 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * macroexp.h (macro_lookup_ftype): Remove.
5352 (macro_expand, macro_expand_once, macro_expand_next): Remove
5353 lookup function parameters, add scope parameter.
5354 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5355 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5356 * macroscope.h (standard_macro_lookup): Change parameter type
5357 to macro_scope.
5358 * macroscope.c (standard_macro_lookup): Likewise.
5359 * c-exp.y (lex_one_token): Update.
5360 * macrocmd.c (macro_expand_command): Likewise.
5361 (macro_expand_once_command): Likewise.
5362
b1a35af2
SM
53632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5364
5365 * inf-loop.c (inferior_event_handler): Remove client_data param.
5366 * inf-loop.h (inferior_event_handler): Likewise.
5367 * infcmd.c (step_1): Adjust.
5368 * infrun.c (proceed): Adjust.
5369 (fetch_inferior_event): Remove client_data param.
5370 (infrun_async_inferior_event_handler): Adjust.
5371 * infrun.h (fetch_inferior_event): Remove `void *` param.
5372 * linux-nat.c (handle_target_event): Adjust.
5373 * record-btrace.c (record_btrace_handle_async_inferior_event):
5374 Adjust.
5375 * record-full.c (record_full_async_inferior_event_handler):
5376 Adjust.
5377 * remote.c (remote_async_inferior_event_handler): Adjust.
5378
1cdf9e33
TT
53792020-07-01 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5382 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5383
32c1e210
TT
53842020-07-01 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5387 tui_gen_win_info.
5388 (tui_win_info::make_window): Merge with
5389 tui_gen_win_info::make_window.
5390 (tui_win_info::make_visible): Move from tui_gen_win_info.
5391 * tui/tui-win.c (tui_win_info::max_width): Move from
5392 tui_gen_win_info.
5393 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5394 type.
5395 <window_factory>: Likewise.
5396 * tui/tui-layout.c (tui_win_info::resize): Move from
5397 tui_gen_win_info.
5398 (make_standard_window): Change return type.
5399 (get_locator_window, tui_get_window_by_name): Likewise.
5400 (tui_layout_window::apply): Remove a cast.
5401 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5402 (struct tui_win_info): Merge with tui_gen_win_info.
5403 (struct tui_gen_win_info): Remove.
5404
a30cb6da
TT
54052020-07-01 Tom Tromey <tom@tromey.com>
5406
5407 * tui/tui-stack.h (struct tui_locator_window): Derive from
5408 tui_win_info.
5409 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5410 <can_box>: New method.
5411
1eb2161f
TT
54122020-07-01 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5415
7134f2eb
TT
54162020-07-01 Tom Tromey <tom@tromey.com>
5417
5418 * tui/tui-regs.c (tui_data_window::display_registers_from)
5419 (tui_data_window::display_registers_from)
5420 (tui_data_window::first_data_item_displayed)
5421 (tui_data_window::delete_data_content_windows): Update.
5422 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5423 Remove.
5424 (tui_data_window::check_register_values): Update.
5425 (tui_data_item_window::rerender): Add parameters. Update.
5426 (tui_data_item_window::refresh_window): Remove.
5427 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5428 virtual.
5429 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5430 tui_gen_win_info.
5431 <refresh_window, max_height, min_height>: Remove.
5432 <rerender>: Add parameters.
5433 <x, y, visible>: New members.
5434 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5435 <m_item_width>: New member.
5436
22b7b041
TT
54372020-07-01 Tom Tromey <tom@tromey.com>
5438
5439 * tui/tui-regs.c (tui_data_window::show_register_group)
5440 (tui_data_window::check_register_values): Update.
5441 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5442 from item_no.
5443
c9753adb
TT
54442020-07-01 Tom Tromey <tom@tromey.com>
5445
5446 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5447 useless "if".
5448
9ab26b4a
TT
54492020-07-01 Tom Tromey <tom@tromey.com>
5450
5451 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5452 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5453
e555083f
TT
54542020-07-01 Tom Tromey <tom@tromey.com>
5455
5456 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5457 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5458 (struct tui_line_or_address): Move from tui-data.h.
5459 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5460 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5461 (tui_cmd_window, tui_source_window_base, tui_source_window)
5462 (tui_disasm_window): Don't declare.
5463 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5464 to tui-winsource.h.
5465 (SINGLE_KEY): Move to tui-stack.c.
5466
7a02bab7
TT
54672020-07-01 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5470 std::string.
5471 * tui/tui-regs.c (class tab_expansion_file): New.
5472 (tab_expansion_file::write): New method.
5473 (tui_register_format): Change return type. Use
5474 tab_expansion_file.
5475 (tui_get_register, tui_data_window::display_registers_from)
5476 (tui_data_item_window::rerender): Update.
5477 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5478 * tui/tui-io.c (tui_expand_tabs): Remove.
5479
ea68593b
TT
54802020-07-01 Tom Tromey <tom@tromey.com>
5481
5482 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5483
a8caed5d
FS
54842020-07-01 Fangrui Song <maskray@google.com>
5485
5486 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5487
9cdf9820
AKS
54882020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5489
5490 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5491 forms for DW_AT_associated and DW_AT_allocated attributes,
5492 which is already checked in function attr_to_dynamic_prop.
5493
a1520ad8
TT
54942020-06-30 Tom Tromey <tromey@adacore.com>
5495
5496 * dwarf2/read.c (quirk_rust_enum): Correctly call
5497 alloc_rust_variant for default-less enum.
5498
5ac58899
TT
54992020-06-30 Tom Tromey <tromey@adacore.com>
5500
5501 PR build/26183:
5502 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5503 gdb::to_string.
5504
19b187a9
SM
55052020-06-29 Simon Marchi <simon.marchi@efficios.com>
5506
5507 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5508 * gdbarch.h: Re-generate.
5509
cd4c4c07
TT
55102020-06-28 Tom Tromey <tom@tromey.com>
5511
5512 * command.h (cmd_types): Remove.
5513 (cmd_type): Don't declare.
5514 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5515 typedef.
5516 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5517 * cli/cli-decode.c (cmd_type): Remove.
5518
05779d57
PA
55192020-06-27 Pedro Alves <palves@redhat.com>
5520
5521 * fork-child.c (prefork_hook): Adjust.
5522 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5523 Delete.
5524 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5525 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5526 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5527 Remove declarations.
5528 (struct inferior) <set_tty, tty>: New methods.
5529 (struct inferior) <terminal>: Rename to ...
5530 (struct inferior) <m_terminal>: ... this and make private.
5531 * main.c (captured_main_1): Adjust.
5532 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5533 (mi_cmd_inferior_tty_show): Adjust.
5534 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5535 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5536
1776e3e5
NA
55372020-06-26 Nick Alcock <nick.alcock@oracle.com>
5538
5539 * configure.ac: Add --enable-libctf: handle --disable-static
5540 properly.
5541 * acinclude.m4: sinclude ../config/enable.m4.
5542 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5543 (LIBCTF): Substitute in.
5544 (CTF_DEPS): New, likewise.
5545 (CLIBS): libctf needs symbols from libbfd: move earlier.
5546 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5547 flags.
5548 * ctfread.c: Surround in ENABLE_LIBCTF.
5549 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5550 * configure: Regenerate.
5551 * config.in: Likewise.
5552
58373b80
SM
55532020-06-25 Simon Marchi <simon.marchi@efficios.com>
5554
5555 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5556
277474ee
SM
55572020-06-25 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * inferior.h (struct inferior) <terminal>: Change type to
5560 gdb::unique_xmalloc_ptr<char>.
5561 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5562 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5563 field, adjust to unique pointer.
5564 (get_inferior_io_terminal): Adjust to unique pointer.
5565
6d74da72
AB
55662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5567
5568 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5569 registers, not just the known core set of registers.
5570
2e52d038
AB
55712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5572
5573 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5574 fflags, frm, and fcsr registers.
5575 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5576 restore groups.
5577 (riscv_tdesc_unknown_reg): New function.
5578 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5579 tdesc_use_registers.
5580 * riscv-tdep.h (struct gdbarch_tdep): Add
5581 unknown_csrs_first_regnum, unknown_csrs_count,
5582 duplicate_fflags_regnum, duplicate_frm_regnum, and
5583 duplicate_fcsr_regnum fields.
5584
be64fd07
AB
55852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5586
5587 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5588 callback, use the callback (when not null) to help number unknown
5589 registers.
5590 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5591 (tdesc_use_registers): Add extra parameter to declaration.
5592
3b9fce96
AB
55932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5594
5595 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5596 in the file.
5597 (class riscv_pending_register_alias): Likewise.
5598 (riscv_register_feature::register_info): Change 'required_p' field
5599 to 'required', and change its type. Add 'check' member function.
5600 (riscv_register_feature::register_info::check): Define new member
5601 function.
5602 (riscv_xreg_feature): Change initialisation of 'required' field.
5603 (riscv_freg_feature): Likewise.
5604 (riscv_virtual_feature): Likewise.
5605 (riscv_csr_feature): Likewise.
5606 (riscv_check_tdesc_feature): Take extra parameter, the csr
5607 tdesc_feature, rewrite the function to use the new
5608 riscv_register_feature::register_info::check function.
5609 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5610
865bad26
AB
56112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5612
5613 * features/Makefile: Remove all references to the deleted files
5614 below.
5615 * features/riscv/32bit-csr.c: Deleted.
5616 * features/riscv/32bit-csr.xml: Deleted.
5617 * features/riscv/64bit-csr.c: Deleted.
5618 * features/riscv/64bit-csr.xml: Deleted.
5619 * features/riscv/rebuild-csr-xml.sh: Deleted.
5620
ed69cbc8
AB
56212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5622
5623 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5624 whitespace error for declaration of names member variable.
5625 (struct riscv_register_feature): Add new prefer_first_name member
5626 variable, and fix whitespace error in declaration of registers.
5627 (riscv_xreg_feature): Initialize prefer_first_name field.
5628 (riscv_freg_feature): Likewise.
5629 (riscv_virtual_feature): Likewise.
5630 (riscv_csr_feature): Likewise.
5631 (riscv_register_name): Expand on comments. Remove register name
5632 modifications for CSR and virtual registers.
5633
4445e8f5
AB
56342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5635
5636 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5637 errors.
5638
767a879e
AB
56392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5640
5641 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5642 riscv-opc.h.
5643 (class riscv_pending_register_alias): New class.
5644 (riscv_check_tdesc_feature): Take vector of pending aliases and
5645 populate it as appropriate.
5646 (riscv_setup_register_aliases): Delete.
5647 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5648 to riscv_check_tdesc_feature in all cases. Use the vector to
5649 create the register aliases.
5650
bb6e55f3
RO
56512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5652
5653 * sol2-tdep.c (sol2_static_transform_name): Remove.
5654 (sol2_init_abi): Don't register it.
5655 * gdbarch.sh (static_transform_name): Remove.
5656 * gdbarch.c, gdbarch.h: Regenerate.
5657
5658 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5659 gdbarch_static_transform_name.
5660 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5661 * stabsread.c (define_symbol) <'X'>: Remove.
5662 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5663 handling.
5664 <'V'>: Likewise.
5665 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5666 <'S'>: Remove call to gdbarch_static_transform_name.
5667
c6d36836
RO
56682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5669
5670 * procfs.c (procfs_pre_trace): New function.
5671 (procfs_target::create_inferior): Pass it to fork_inferior.
5672
a7e6196b
RO
56732020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5674
5675 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5676 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5677 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5678 sol2-tdep.o, sparc-sol2-tdep.o.
5679 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5680 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5681 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5682 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5683
d412e696
RO
56842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5685
5686 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5687 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5688 Call sol2_init_abi.
5689 Remove calls to set_gdbarch_skip_solib_resolver,
5690 set_gdbarch_core_pid_to_str.
5691 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5692 (i386_sol2_static_transform_name): Remove.
5693 (i386_sol2_init_abi): Call sol2_init_abi.
5694 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5695 set_gdbarch_static_transform_name,
5696 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5697 Use sol2_sigtramp_p.
5698 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5699 (sol2_sigtramp_p): New function.
5700 (sol2_static_transform_name): New function.
5701 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5702 (sol2_init_abi): New function.
5703 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5704 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5705 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5706 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5707 (sparc_sol2_static_transform_name): Remove.
5708 (sparc32_sol2_init_abi): Call sol2_init_abi.
5709 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5710 set_gdbarch_static_transform_name,
5711 set_gdbarch_skip_solib_resolver,
5712 set_gdbarch_core_pid_to_str.
5713 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5714 (sparc_sol2_static_transform_name): Remove
5715 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5716 call sol2_sigtramp_p.
5717 (sparc64_sol2_init_abi): Call sol2_init_abi.
5718 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5719 set_gdbarch_static_transform_name,
5720 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5721
a8654e7d
PW
57222020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5723
5724 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5725 * exec.c (validate_exec_file): If from_tty, set both
5726 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5727 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5728 and from_tty, unconditionally ask a confirmation.
5729
caa7fd04
AB
57302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5731
5732 * target-descriptions.c (tdesc_architecture_name): Protect against
5733 NULL pointer dereference.
5734 (maint_print_xml_tdesc_cmd): New function.
5735 (_initialize_target_descriptions): Register new 'maint print
5736 xml-tdesc' command and give it the filename completer.
5737 * NEWS: Mention new 'maint print xml-tdesc' command.
5738
fbf42f4e
AB
57392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5740
5741 * target-descriptions.c (class tdesc_compatible_info): New class.
5742 (struct target_desc): Change type of compatible vector.
5743 (tdesc_compatible_p): Update for change in type of
5744 target_desc::compatible.
5745 (tdesc_compatible_info_list): New function.
5746 (tdesc_compatible_info_arch_name): New function.
5747 (tdesc_add_compatible): Update for change in type of
5748 target_desc::compatible.
5749 (print_c_tdesc::visit_pre): Likewise.
5750
20821f4e
AB
57512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5754 whitespace to underscore.
5755 (maint_print_c_tdesc_cmd): Use fake filename for target
5756 descriptions that came from the target.
5757 (_initialize_target_descriptions): Add filename command completion
5758 for 'maint print c-tdesc'.
5759
1fb5ee62
SM
57602020-06-23 Simon Marchi <simon.marchi@efficios.com>
5761
5762 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5763 lines.
5764
fc3ecb3e
SM
57652020-06-23 Simon Marchi <simon.marchi@efficios.com>
5766
5767 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5768 lines.
5769 (dwarf2_find_location_expression): Likewise.
5770 (call_site_parameter_matches): Likewise.
5771 (dwarf2_compile_expr_to_ax): Likewise.
5772 (disassemble_dwarf_expression): Likewise.
5773 (loclist_describe_location): Likewise.
5774
236ef034
PA
57752020-06-23 Pedro Alves <palves@redhat.com>
5776
5777 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5778 progspace-and-thread.h. Include scoped-mock-context.h instead.
5779 (register_to_value_test): Use scoped_mock_context.
5780 * regcache.c: Include "scoped-mock-context.h".
5781 (cooked_read_test): Don't error out if a target is already pushed.
5782 Use scoped_mock_context. Adjust.
5783 * scoped-mock-context.h: New file.
5784
39e7ecca
AB
57852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5786
5787 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5788 initializer.
5789 (ada_language::is_string_type_p): New member function.
5790 * c-lang.c (c_language_data): Delete la_is_string_type_p
5791 initializer.
5792 (cplus_language_data): Likewise.
5793 (asm_language_data): Likewise.
5794 (minimal_language_data): Likewise.
5795 * d-lang.c (d_language_data): Likewise.
5796 * f-lang.c (f_is_string_type_p): Delete function, implementation
5797 moved to f_language::is_string_type_p.
5798 (f_language_data): Delete la_is_string_type_p initializer.
5799 (f_language::is_string_type_p): New member function,
5800 implementation from f_is_string_type_p.
5801 * go-lang.c (go_is_string_type_p): Delete function, implementation
5802 moved to go_language::is_string_type_p.
5803 (go_language_data): Delete la_is_string_type_p initializer.
5804 (go_language::is_string_type_p): New member function,
5805 implementation from go_is_string_type_p.
5806 * language.c (language_defn::is_string_type_p): Define new member
5807 function.
5808 (default_is_string_type_p): Make static, add comment copied from
5809 header file.
5810 (unknown_language_data): Delete la_is_string_type_p initializer.
5811 (unknown_language::is_string_type_p): New member function.
5812 (auto_language_data): Delete la_is_string_type_p initializer.
5813 (auto_language::is_string_type_p): New member function.
5814 * language.h (language_data): Delete la_is_string_type_p field.
5815 (language_defn::is_string_type_p): Declare new function.
5816 (default_is_string_type_p): Delete desclaration, move comment to
5817 definition.
5818 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5819 moved to m2_language::is_string_type_p.
5820 (m2_language_data): Delete la_is_string_type_p initializer.
5821 (m2_language::is_string_type_p): New member function,
5822 implementation from m2_is_string_type_p.
5823 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5824 initializer.
5825 * opencl-lang.c (opencl_language_data): Likewise.
5826 * p-lang.c (pascal_is_string_type_p): Delete function,
5827 implementation moved to pascal_language::is_string_type_p.
5828 (pascal_language_data): Delete la_is_string_type_p initializer.
5829 (pascal_language::is_string_type_p): New member function,
5830 implementation from pascal_is_string_type_p.
5831 * rust-lang.c (rust_is_string_type_p): Delete function,
5832 implementation moved to rust_language::is_string_type_p.
5833 (rust_language_data): Delete la_is_string_type_p initializer.
5834 (rust_language::is_string_type_p): New member function,
5835 implementation from rust_is_string_type_p.
5836 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5837 is_string_type_p.
5838
4ffc13fb
AB
58392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5840
5841 * ada-lang.c (ada_language_data): Delete la_print_typedef
5842 initializer.
5843 (ada_language::print_typedef): New member function.
5844 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5845 (cplus_language_data): Likewise.
5846 (asm_language_data): Likewise.
5847 (minimal_language_data): Likewise.
5848 * d-lang.c (d_language_data): Likewise.
5849 * f-lang.c (f_language_data): Likewise.
5850 (f_language::print_typedef): New member function.
5851 * go-lang.c (go_language_data): Delete la_print_typedef
5852 initializer.
5853 * language.c (language_defn::print_typedef): Define member
5854 function.
5855 (unknown_language_data): Delete la_print_typedef initializer.
5856 (unknown_language::print_typedef): New member function.
5857 (auto_language_data): Delete la_print_typedef initializer.
5858 (auto_language::print_typedef): New member function.
5859 * language.h (language_data): Delete la_print_typedef field.
5860 (language_defn::print_typedef): Declare new member function.
5861 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5862 (default_print_typedef): Delete declaration.
5863 * m2-lang.c (m2_language_data): Delete la_print_typedef
5864 initializer.
5865 (m2_language::print_typedef): New member function.
5866 * objc-lang.c (objc_language_data): Delete la_print_typedef
5867 initializer.
5868 * opencl-lang.c (opencl_language_data): Likewise.
5869 * p-lang.c (pascal_language_data): Likewise.
5870 (pascal_language::print_typedef): New member function.
5871 * rust-lang.c (rust_print_typedef): Delete function,
5872 implementation moved to rust_language::print_typedef.
5873 (rust_language): Delete la_print_typedef initializer.
5874 (rust_language::print_typedef): New member function,
5875 implementation from rust_print_typedef.
5876 * typeprint.c (default_print_typedef): Delete.
5877
d711ee67
AB
58782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5879
5880 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5881 (ada_language::printstr): New member function.
5882 * c-lang.c (c_language_data): Delete la_printstr initializer.
5883 (cplus_language_data): Likewise.
5884 (asm_language_data): Likewise.
5885 (minimal_language_data): Likewise.
5886 * d-lang.c (d_language_data): Likewise.
5887 * f-lang.c (f_printstr): Rename to f_language::printstr.
5888 (f_language_data): Delete la_printstr initializer.
5889 (f_language::printstr): New member function, implementation from
5890 f_printstr.
5891 * go-lang.c (go_language_data): Delete la_printstr initializer.
5892 * language.c (language_defn::printstr): Define new member
5893 function.
5894 (unk_lang_printstr): Delete.
5895 (unknown_language_data): Delete la_printstr initializer.
5896 (unknown_language::printstr): New member function.
5897 (auto_language_data): Delete la_printstr initializer.
5898 (auto_language::printstr): New member function.
5899 * language.h (language_data): Delete la_printstr field.
5900 (language_defn::printstr): Declare new member function.
5901 (LA_PRINT_STRING): Update call to printstr.
5902 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5903 (m2_language_data): Delete la_printstr initializer.
5904 (m2_language::printstr): New member function, implementation from
5905 m2_printstr.
5906 * objc-lang.c (objc_language_data): Delete la_printstr
5907 initializer.
5908 * opencl-lang.c (opencl_language_data): Likewise.
5909 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5910 (pascal_language_data): Delete la_printstr initializer.
5911 (pascal_language::printstr): New member function, implementation
5912 from pascal_printstr.
5913 * p-lang.h (pascal_printstr): Delete declaration.
5914 * rust-lang.c (rust_printstr): Update header comment.
5915 (rust_language_data): Delete la_printstr initializer.
5916 (rust_language::printstr): New member function.
5917
52b50f2c
AB
59182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5919
5920 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5921 (ada_language::printchar): New member function.
5922 * c-lang.c (c_language_data): Delete la_printchar initializer.
5923 (cplus_language_data): Likewise.
5924 (asm_language_data): Likewise.
5925 (minimal_language_data): Likewise.
5926 * d-lang.c (d_language_data): Likewise.
5927 * f-lang.c (f_printchar): Rename to f_language::printchar.
5928 (f_language_data): Delete la_printchar initializer.
5929 (f_language::printchar): New member function, implementation from
5930 f_printchar.
5931 * go-lang.c (go_language_data): Delete la_printchar initializer.
5932 * language.c (unk_lang_printchar): Delete.
5933 (language_defn::printchar): Define new member function.
5934 (unknown_language_data): Delete la_printchar initializer.
5935 (unknown_language::printchar): New member function.
5936 (auto_language_data): Delete la_printchar initializer.
5937 (auto_language::printchar): New member function.
5938 * language.h (language_data): Delete la_printchar field.
5939 (language_defn::printchar): Declare new member function.
5940 (LA_PRINT_CHAR): Update call to printchar.
5941 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5942 (m2_language::printchar): New member function.
5943 * objc-lang.c (objc_language_data): Delete la_printchar
5944 initializer.
5945 * opencl-lang.c (opencl_language_data): Likewise.
5946 * p-lang.c (pascal_language_data): Delete la_printchar
5947 initializer.
5948 (pascal_language::printchar): New member function.
5949 * rust-lang.c (rust_printchar): Rename to
5950 rust_language::printchar.
5951 (rust_language_data): Delete la_printchar initializer.
5952 (rust_language::printchar): New member function, implementation
5953 from rust_printchar.
5954
ec8cec5b
AB
59552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5956
5957 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5958 (ada_language_data): Delete la_emitchar initializer.
5959 (ada_language::emitchar): New member function, implementation from
5960 emit_char.
5961 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5962 (cplus_language_data): Likewise.
5963 (asm_language_data): Likewise.
5964 (minimal_language_data): Likewise.
5965 * d-lang.c (d_language_data): Likewise.
5966 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5967 (f_language_data): Delete la_emitchar initializer.
5968 (f_language::emitchar): New member function, implementation from
5969 f_emit_char.
5970 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5971 * language.c (unk_lang_emit_char): Delete.
5972 (language_defn::emitchar): New member function definition.
5973 (unknown_language_data): Delete la_emitchar initializer.
5974 (unknown_language::emitchar): New member function.
5975 (auto_language_data): Delete la_emitchar initializer.
5976 (auto_language::emitchar): New member function.
5977 * language.h (language_data): Delete la_emitchar field.
5978 (language_defn::emitchar): New member field declaration.
5979 (LA_EMIT_CHAR): Update call to emitchar.
5980 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5981 (m2_language_data): Delete la_emitchar initializer.
5982 (m2_language::emitchar): New member function, implementation from
5983 m2_emit_char.
5984 * objc-lang.c (objc_language_data): Delete la_emitchar
5985 initializer.
5986 * opencl-lang.c (opencl_language_data): Likewise.
5987 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5988 (pascal_language_data): Delete la_emitchar initializer.
5989 (pascal_language::emitchar): New member function, implementation
5990 from pascal_emit_char.
5991 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5992 (rust_language_data): Delete la_emitchar initializer.
5993 (rust_language::emitchar): New member function, implementation
5994 from rust_emitchar.
5995
1bf9c363
AB
59962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5997
5998 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5999 (ada_language_data): Delete la_post_parser initializer.
6000 (ada_language::post_parser): New member function.
6001 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6002 (cplus_language_data): Likewise.
6003 (asm_language_data): Likewise.
6004 (minimal_language_data): Likewise.
6005 * d-lang.c (d_language_data): Likewise.
6006 * f-lang.c (f_language_data): Likewise.
6007 * go-lang.c (go_language_data): Likewise.
6008 * language.c (unknown_language_data): Likewise.
6009 (auto_language_data): Likewise.
6010 * language.h (language_data): Delete la_post_parser field.
6011 (language_defn::post_parser): New member function.
6012 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6013 * objc-lang.c (objc_language_data): Likewise.
6014 * opencl-lang.c (opencl_language_data): Likewise.
6015 * p-lang.c (pascal_language_data): Likewise.
6016 * parse.c (parse_exp_in_context): Update call to post_parser.
6017 (null_post_parser): Delete definition.
6018 * parser-defs.h (null_post_parser): Delete declaration.
6019 * rust-lang.c (rust_language_data): Delete la_post_parser
6020 initializer.
6021
87afa652
AB
60222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6023
6024 * ada-lang.c (parse): Rename to ada_language::parser.
6025 (ada_language_data): Delete la_parser initializer.
6026 (ada_language::parser): New member function, implementation from
6027 parse.
6028 * c-lang.c (c_language_data): Delete la_parser initializer.
6029 (cplus_language_data): Likewise.
6030 (asm_language_data): Likewise.
6031 (minimal_language_data): Likewise.
6032 * d-lang.c (d_language_data): Likewise.
6033 (d_language::parser): New member function.
6034 * f-lang.c (f_language_data): Delete la_parser initializer.
6035 (f_language::parser): New member function.
6036 * go-lang.c (go_language_data): Delete la_parser initializer.
6037 (go_language::parser): New member function.
6038 * language.c (unk_lang_parser): Delete.
6039 (language_defn::parser): Define new member function.
6040 (unknown_language_data): Delete la_parser initializer.
6041 (unknown_language::parser): New member function.
6042 (auto_language_data): Delete la_parser initializer.
6043 (auto_language::parser): New member function.
6044 * language.h (language_data): Delete la_parser field.
6045 (language_defn::parser): Declare new member function.
6046 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6047 (m2_language::parser): New member function.
6048 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6049 * opencl-lang.c (opencl_language_data): Likewise.
6050 * p-lang.c (pascal_language_data): Likewise.
6051 (pascal_language::parser): New member function.
6052 * parse.c (parse_exp_in_context): Update call to parser.
6053 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6054 (rust_language::parser): New member function.
6055
37825800
AB
60562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6057
6058 * top.c (print_gdb_configuration): Print --with-python-libdir
6059 configuration value.
6060
5b860c93
PW
60612020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6062
6063 * NEWS: Mention change to the alias command.
6064
cf00cd6f
PW
60652020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6066
6067 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6068 (alias_command_completer)
6069 (make_alias_options_def_group): New functions.
6070 (alias_opts, alias_option_defs): New struct and array.
6071 (alias_usage_error): Update usage.
6072 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6073 Use option framework.
6074 (_initialize_cli_cmds): Update alias command help.
6075 Update aliases command help.
6076 (show_user):
6077 Add NULL for new default_args lookup_cmd argument.
6078 (valid_command_p): Rename to validate_aliased_command.
6079 Add NULL for new default_args lookup_cmd argument. Verify that the
6080 aliased_command has no default args.
6081 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6082 (lookup_cmd_1, lookup_cmd): New argument default_args.
6083 (add_alias_cmd):
6084 Add NULL for new default_args lookup_cmd argument.
6085 (print_help_for_command): Show default args under the layout
6086 alias some_alias = some_aliased_cmd some_alias_default_arg.
6087 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6088 xfree default_args in destructor.
6089 * cli/cli-script.c (process_next_line, do_define_command):
6090 Add NULL for new default_args lookup_cmd argument.
6091 * command.h: Declare new default_args argument in lookup_cmd
6092 and lookup_cmd_1.
6093 * completer.c (complete_line_internal_1):
6094 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6095 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6096 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6097 Likewise.
6098 * infcmd.c (_initialize_infcmd): Likewise.
6099 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6100 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6101 * python/py-param.c (add_setshow_generic): Likewise.
6102 * remote.c (_initialize_remote): Likewise.
6103 * top.c (execute_command): Prepend default_args if command has some.
6104 (set_verbose):
6105 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6106 * tracepoint.c (validate_actionline, encode_actions_1):
6107 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6108
bd920864
TBA
61092020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6110
6111 * jit.c (jit_read_descriptor): Use bool as the return type.
6112 (jit_breakpoint_re_set_internal): Use bool as the return type.
6113 Invert the return value logic; return true if the jit breakpoint
6114 has been successfully initialized.
6115 (jit_inferior_init): Update the call to
6116 jit_breakpoint_re_set_internal.
6117
f8098322
PA
61182020-06-22 Pedro Alves <palves@redhat.com>
6119
6120 PR gdb/25939
6121 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6122 Use the current inferior instead. Don't return
6123 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6124 wait again.
6125 * sol-thread.c (sol_thread_target::wait): Don't reference
6126 inferior_ptid.
6127 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6128 (sol_update_thread_list_callback): Use the current inferior's pid
6129 instead of inferior_ptid.
6130
196535a6
RO
61312020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6132
6133 * procfs.c: Cleanup many comments.
6134
6135 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6136 (AFTER_WATCHFLAG): Replace by value.
6137
6138 (MAIN_PROC_NAME_FORMAT): Inline ...
6139 (create_procinfo): ... here.
6140
6141 (procfs_debug_inferior): Remove SYS_exec handling.
6142 (syscall_is_exec): Likewise.
6143 (procfs_set_exec_trap): Likewise.
6144
6145 (syscall_is_lwp_exit): Inline in callers.
6146 (syscall_is_exit): Likewise.
6147 (syscall_is_exec): Likewise.
6148 (syscall_is_lwp_create): Likewise.
6149
6150 (invalidate_cache): Remove #if 0 code.
6151
6152 (make_signal_thread_runnable): Remove.
6153 (procfs_target::resume): Remove #if 0 code.
6154
cf6f3e86
RO
61552020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6156
6157 PR gdb/25939
6158 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6159 call ...
6160 (procfs_target::create_inferior): ... here.
6161
48e9cc84
PW
61622020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6163
6164 * exec.c (validate_exec_file): Ensure the build-id is up to
6165 date by calling reopen_exec_file (that checks file timestamp
6166 to decide to re-read the file).
6167
3922b302
PA
61682020-06-18 Pedro Alves <palves@redhat.com>
6169
6170 PR gdb/25412
6171 * gdbthread.h (delete_thread, delete_thread_silent)
6172 (find_thread_ptid): Update comments.
6173 * thread.c (current_thread_): New global.
6174 (is_current_thread): Move higher, and reimplement.
6175 (inferior_thread): Reimplement.
6176 (set_thread_exited): Use bool. Add assertions.
6177 (add_thread_silent): Simplify thread-reuse handling by always
6178 calling delete_thread.
6179 (delete_thread): Remove intro comment.
6180 (find_thread_ptid): Skip exited threads.
6181 (switch_to_thread_no_regs): Write to current_thread_.
6182 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6183 INFERIOR_PTID. Clear current_thread_.
6184
6dbdab44
PA
61852020-06-18 Pedro Alves <palves@redhat.com>
6186
6187 * aix-thread.c (pd_update): Use switch_to_thread.
6188
2da4b788
PA
61892020-06-18 Pedro Alves <palves@redhat.com>
6190
6191 * ravenscar-thread.c (ravenscar_thread_target): Update.
6192 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6193 (ravenscar_thread_target::add_active_thread): ... this. Don't
6194 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6195 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6196
50838d1b
PA
61972020-06-18 Pedro Alves <palves@redhat.com>
6198
6199 * nat/windows-nat.c (current_windows_thread): Remove.
6200 * nat/windows-nat.h (current_windows_thread): Remove.
6201 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6202 Adjust.
6203 (display_selectors): Adjust to fetch the current
6204 windows_thread_info based on inferior_ptid.
6205 (fake_create_process): No longer write to current_windows_thread.
6206 (windows_nat_target::get_windows_debug_event):
6207 Don't set inferior_ptid or current_windows_thread.
6208 (windows_nat_target::wait): Adjust to not rely on
6209 current_windows_thread.
6210 (do_initial_windows_stuff): Now a method of windows_nat_target.
6211 Switch to the last_ptid thread.
6212 (windows_nat_target::attach): Adjust.
6213 (windows_nat_target::detach): Use switch_to_no_thread instead of
6214 writing to inferior_ptid directly.
6215 (windows_nat_target::create_inferior): Adjust.
6216
31ce04e9
PA
62172020-06-18 Pedro Alves <palves@redhat.com>
6218
6219 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6220
1ee1a363
PA
62212020-06-18 Pedro Alves <palves@redhat.com>
6222
6223 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6224 after creating it, instead of writing to inferior_ptid. Don't
6225 write to inferior_ptid.
6226
6d350754
PA
62272020-06-18 Pedro Alves <palves@redhat.com>
6228
6229 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6230
5d971d48
PA
62312020-06-18 Pedro Alves <palves@redhat.com>
6232
6233 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6234 it, instead of writing to inferior_ptid.
6235
86e57d1b
PA
62362020-06-18 Pedro Alves <palves@redhat.com>
6237
6238 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6239 to inferior_ptid.
6240
f2e1c129
PA
62412020-06-18 Pedro Alves <palves@redhat.com>
6242
6243 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6244 instead of writing to inferior_ptid directly.
6245
60db1b85
PA
62462020-06-18 Pedro Alves <palves@redhat.com>
6247
6248 * corelow.c (core_target::close): Use switch_to_no_thread instead
6249 of writing to inferior_ptid directly.
6250 (add_to_thread_list, core_target_open): Use switch_to_thread
6251 instead of writing to inferior_ptid directly.
6252
fe7d6a8d
PA
62532020-06-18 Pedro Alves <palves@redhat.com>
6254
6255 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6256 inferior_ptid.
6257 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6258 inferior_ptid.
6259 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6260 inferior_ptid directly.
6261 (darwin_nat_target::init_thread_list): Switch to thread, instead
6262 of writing to inferior_ptid.
6263 (darwin_nat_target::attach): Don't write to inferior_ptid.
6264 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6265
975f8708
PA
62662020-06-18 Pedro Alves <palves@redhat.com>
6267
6268 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6269 thread.
6270 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6271 Instead use switch_to_thread.
6272 (gnu_nat_target::detach): Use switch_to_no_thread
6273 instead of writing to inferior_ptid directly. Used passed-in
6274 inferior instead of looking up the inferior by pid.
6275
1a204730
PA
62762020-06-18 Pedro Alves <palves@redhat.com>
6277
6278 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6279 inferior_ptid.
6280
ebe84f23
PA
62812020-06-18 Pedro Alves <palves@redhat.com>
6282
6283 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6284 inferior_ptid.
6285 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6286 thread.
6287 (nto_procfs_target::detach): Avoid referencing
6288 inferior_ptid. Use switch_to_no_thread instead of writing to
6289 inferior_ptid directly.
6290 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6291 instead of writing to inferior_ptid directly.
6292 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6293 to thread.
6294
191f02e5
PA
62952020-06-18 Pedro Alves <palves@redhat.com>
6296
6297 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6298 after creating it, instead of writing to inferior_ptid.
6299 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6300 to inferior_ptid directly.
6301 (gdbsim_target::wait): Don't write to inferior_ptid.
6302
0ac55310
PA
63032020-06-18 Pedro Alves <palves@redhat.com>
6304
6305 * remote.c (remote_target::remote_notice_new_inferior): Use
6306 switch_to_thread instead of writing to inferior_ptid directly.
6307 (remote_target::add_current_inferior_and_thread): Use
6308 switch_to_no_thread instead of writing to inferior_ptid directly.
6309 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6310 and switch_to_thread instead of using set_current_inferior or
6311 writing to inferior_ptid directly.
6312
5233f39b
PA
63132020-06-18 Pedro Alves <palves@redhat.com>
6314
6315 * tracectf.c (ctf_target_open): Switch to added thread instead of
6316 writing to inferior_ptid directly.
6317 (ctf_target::close): Use switch_to_no_thread instead of writing to
6318 inferior_ptid directly.
6319
087e161b
PA
63202020-06-18 Pedro Alves <palves@redhat.com>
6321
6322 * tracefile-tfile.c (tfile_target_open): Don't write to
6323 inferior_ptid directly, instead switch to added thread.
6324 (tfile_target::close): Use switch_to_no_thread instead of writing
6325 to inferior_ptid directly.
6326
7fb43e53
PA
63272020-06-18 Pedro Alves <palves@redhat.com>
6328
6329 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6330 (procfs_target::detach): Use switch_to_no_thread
6331 instead of writing to inferior_ptid directly.
6332 (do_attach): Change return type to void. Switch to the added
6333 thread.
6334 (procfs_target::create_inferior): Switch to the added thread.
6335 (procfs_do_thread_registers): Don't write to inferior_ptid.
6336
18493a00
PA
63372020-06-18 Pedro Alves <palves@redhat.com>
6338
6339 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6340 of writing to inferior_ptid.
6341 (scoped_restore_exited_inferior): Delete.
6342 (handle_vfork_child_exec_or_exit): Simplify using
6343 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6344 instead of writing to inferior_ptid.
6345 (THREAD_STOPPED_BY): Delete.
6346 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6347 (thread_stopped_by_hw_breakpoint): Delete.
6348 (save_waitstatus): Use
6349 scoped_restore_current_thread+switch_to_thread, and call
6350 target_stopped_by_watchpoint instead of
6351 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6352 instead of thread_stopped_by_sw_breakpoint, and
6353 target_stopped_by_hw_breakpoint instead of
6354 thread_stopped_by_hw_breakpoint.
6355 (handle_inferior_event)
6356 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6357 inferior_ptid directly, nor
6358 set_current_inferior/set_current_program_space. Use
6359 switch_to_thread / switch_to_inferior_no_thread instead.
6360
a0776b13
PA
63612020-06-18 Pedro Alves <palves@redhat.com>
6362
6363 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6364 instead of writing to inferior_ptid.
6365
6155c136
PA
63662020-06-18 Pedro Alves <palves@redhat.com>
6367
6368 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6369 added thread.
6370 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6371 to the added thread.
6372 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6373 instead of writing to inferior_ptid.
6374
c5316fc6
PA
63752020-06-18 Pedro Alves <palves@redhat.com>
6376
6377 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6378 (register_to_value_test): Mock a program_space too. Heap-allocate
6379 the address space. Don't write to inferior_ptid. Use
6380 switch_to_thread instead.
6381
8df01799
PA
63822020-06-18 Pedro Alves <palves@redhat.com>
6383
6384 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6385 Delete.
6386 (find_signalled_thread()): New, factored out from
6387 linux_make_corefile_notes and adjusted to handle exited threads.
6388 (linux_make_corefile_notes): Adjust to use the new
6389 find_signalled_thread.
6390
41792d68
PA
63912020-06-18 Pedro Alves <palves@redhat.com>
6392
6393 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6394 of saving/restoring inferior_ptid.
6395
612f258a
TT
63962020-06-17 Tom Tromey <tom@tromey.com>
6397
6398 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6399 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6400 declare.
6401 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6402
efb763a5
SM
64032020-06-15 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6406 of partial symtabs.
6407
2951f6c0
SM
64082020-06-17 Simon Marchi <simon.marchi@efficios.com>
6409
6410 * regformats/reg-arm.dat: Remove.
6411 * regformats/reg-bfin.dat: Remove.
6412 * regformats/reg-cris.dat: Remove.
6413 * regformats/reg-crisv32.dat: Remove.
6414 * regformats/reg-m32r.dat: Remove.
6415 * regformats/reg-tilegx.dat: Remove.
6416 * regformats/reg-tilegx32.dat: Remove.
6417
7d458ea5
SM
64182020-06-17 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * features/Makefile (WHICH): Remove arm files.
6421 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6422 * regformats/arm/arm-with-neon.dat: Remove.
6423 * regformats/arm/arm-with-vfpv2.dat: Remove.
6424 * regformats/arm/arm-with-vfpv3.dat: Remove.
6425
3af96c0d
SM
64262020-06-17 Simon Marchi <simon.marchi@efficios.com>
6427
6428 * features/Makefile (XMLTOC): Remove rx.xml.
6429
b25e22fd
PA
64302020-06-17 Pedro Alves <palves@redhat.com>
6431
6432 * gdbthread.h (thread_control_state) <trap_expected> Update
6433 comments.
6434
a78a19b1
AB
64352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6436
6437 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6438 ada_language::lookup_symbol_nonlocal.
6439 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6440 (ada_language::lookup_symbol_nonlocal): New member function,
6441 implementation from ada_lookup_symbol_nonlocal.
6442 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6443 initializer.
6444 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6445 initializer.
6446 (cplus_language::lookup_symbol_nonlocal): New member function.
6447 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6448 (minimal_language_data) Likewise.
6449 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6450 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6451 initializer.
6452 (d_language::lookup_symbol_nonlocal): New member function.
6453 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6454 initializer.
6455 (f_language::lookup_symbol_nonlocal): New member function.
6456 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6457 initializer.
6458 * language.c (unknown_language_data): Likewise.
6459 (auto_language_data): Likewise.
6460 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6461 field.
6462 (language_defn::lookup_symbol_nonlocal): New member function.
6463 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6464 initializer.
6465 * objc-lang.c (objc_language_data): Likewise.
6466 * opencl-lang.c (opencl_language_data): Likewise.
6467 * p-lang.c (pascal_language_data): Likewise.
6468 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6469 rust_language::lookup_symbol_nonlocal.
6470 (rust_language_data): Delete la_lookup_symbol_nonlocal
6471 initializer.
6472 (rust_language::lookup_symbol_nonlocal): New member function,
6473 implementation from rust_lookup_symbol_nonlocal.
6474 * symtab.c (lookup_symbol_aux): Update call to
6475 lookup_symbol_nonlocal.
6476 (basic_lookup_symbol_nonlocal): Rename to...
6477 (language_defn::lookup_symbol_nonlocal): ...this, and update
6478 header comment. Remove language_defn parameter, and replace with
6479 uses of `this'.
6480 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6481
ebe2334e
AB
64822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6485 initializer.
6486 (ada_language::value_print_inner): New member function.
6487 * c-lang.c (c_language_data): Delete la_value_print_inner
6488 initializer.
6489 (cplus_language_data): Likewise.
6490 (asm_language_data): Likewise.
6491 (minimal_language_data): Likewise.
6492 * d-lang.c (d_language_data): Likewise.
6493 (d_language::value_print_inner): New member function.
6494 * f-lang.c (f_language_data): Delete la_value_print_inner
6495 initializer.
6496 (f_language::value_print_inner): New member function.
6497 * f-lang.h (f_value_print_innner): Rename to...
6498 (f_value_print_inner): ...this (note spelling of 'inner').
6499 * f-valprint.c (f_value_print_innner): Rename to...
6500 (f_value_print_inner): ...this (note spelling of 'inner').
6501 * go-lang.c (go_language_data): Delete la_value_print_inner
6502 initializer.
6503 (go_language::value_print_inner): New member function.
6504 * language.c (language_defn::value_print_inner): Define new member
6505 function.
6506 (unk_lang_value_print_inner): Delete.
6507 (unknown_language_data): Delete la_value_print_inner initializer.
6508 (unknown_language::value_print_inner): New member function.
6509 (auto_language_data): Delete la_value_print_inner initializer.
6510 (auto_language::value_print_inner): New member function.
6511 * language.h (language_data): Delete la_value_print_inner field.
6512 (language_defn::value_print_inner): Delcare new member function.
6513 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6514 initializer.
6515 (m2_language::value_print_inner): New member function.
6516 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6517 initializer.
6518 * opencl-lang.c (opencl_language_data): Likewise.
6519 * p-lang.c (pascal_language_data): Likewise.
6520 (pascal_language::value_print_inner): New member function.
6521 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6522 initializer.
6523 (rust_language::value_print_inner): New member function.
6524 * valprint.c (do_val_print): Update call to value_print_inner.
6525
a1d1fa3e
AB
65262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6527
6528 * ada-lang.c (ada_language_data): Delete la_value_print
6529 initializer.
6530 (ada_language::value_print): New member function.
6531 * c-lang.c (c_language_data): Delete la_value_print initializer.
6532 (cplus_language_data): Likewise.
6533 (asm_language_data): Likewise.
6534 (minimal_language_data): Likewise.
6535 * d-lang.c (d_language_data): Likewise.
6536 * f-lang.c (f_language_data): Likewise.
6537 * go-lang.c (go_language_data): Likewise.
6538 * language.c (unk_lang_value_print): Delete.
6539 (language_defn::value_print): Define new member function.
6540 (unknown_language_data): Delete la_value_print initializer.
6541 (unknown_language::value_print): New member function.
6542 (auto_language_data): Delete la_value_print initializer.
6543 (auto_language::value_print): New member function.
6544 * language.h (language_data): Delete la_value_print field.
6545 (language_defn::value_print): Declare new member function.
6546 (LA_VALUE_PRINT): Update call to value_print.
6547 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6548 * objc-lang.c (objc_language_data): Likewise.
6549 * opencl-lang.c (opencl_language_data): Likewise.
6550 * p-lang.c (pascal_language_data): Likewise.
6551 (pascal_language::value_print): New member function.
6552 * rust-lang.c (rust_language_data): Delete la_value_print
6553 initializer.
6554
f16a9f57
AB
65552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6556
6557 * ada-lang.c (ada_watch_location_expression): Rename to
6558 ada_language::watch_location_expression.
6559 (ada_language_data): Delete la_watch_location_expression
6560 initializer.
6561 (ada_language::watch_location_expression): New member function,
6562 implementation from ada_watch_location_expression.
6563 * breakpoint.c (watch_command_1): Update call to
6564 watch_location_expression.
6565 * c-lang.c (c_watch_location_expression): Rename to
6566 language_defn::watch_location_expression.
6567 (c_language_data): Delete la_watch_location_expression
6568 initializer.
6569 (cplus_language_data): Likewise.
6570 (asm_language_data): Likewise.
6571 (minimal_language_data): Likewise.
6572 * c-lang.h (c_watch_location_expression): Delete declaration.
6573 * d-lang.c (d_language_data): Delete la_watch_location_expression
6574 initializer.
6575 * f-lang.c (f_language_data): Likewise.
6576 * go-lang.c (go_language_data): Likewise.
6577 * language.c (language_defn::watch_location_expression): Member
6578 function implementation from c_watch_location_expression.
6579 (unknown_language_data): Delete la_watch_location_expression
6580 initializer.
6581 (auto_language_data): Likewise.
6582 * language.h (language_data): Delete la_watch_location_expression
6583 field.
6584 (language_defn::watch_location_expression): Declare new member
6585 function.
6586 * m2-lang.c (m2_language_data): Delete
6587 la_watch_location_expression initializer.
6588 * objc-lang.c (objc_language_data): Likewise.
6589 * opencl-lang.c (opencl_language_data): Likewise.
6590 * p-lang.c (pascal_language_data): Likewise.
6591 * rust-lang.c (rust_watch_location_expression): Rename to
6592 rust_language::watch_location_expression.
6593 (rust_language_data): Delete la_watch_location_expression
6594 initializer.
6595 (rust_language::watch_location_expression): New member function,
6596 implementation from rust_watch_location_expression.
6597
7e56227d
AB
65982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6601 ada_language::collect_symbol_completion_matches.
6602 (ada_language_data): Delete la_collect_symbol_completion_matches
6603 initializer.
6604 (ada_language::collect_symbol_completion_matches): New member
6605 function, implementation from
6606 ada_collect_symbol_completion_matches.
6607 * c-lang.c (c_language_data): Delete
6608 la_collect_symbol_completion_matches initializer.
6609 (cplus_language_data): Likewise.
6610 (asm_language_data): Likewise.
6611 (minimal_language_data): Likewise.
6612 * d-lang.c (d_language_data): Likewise.
6613 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6614 f_language::collect_symbol_completion_matches.
6615 (f_language_data): Delete la_collect_symbol_completion_matches
6616 initializer.
6617 (f_language::collect_symbol_completion_matches) New member
6618 function, implementation from f_collect_symbol_completion_matches.
6619 * go-lang.c (go_language_data): Delete
6620 la_collect_symbol_completion_matches initializer.
6621 * language.c (unknown_language_data): Likewise.
6622 (auto_language_data): Likewise.
6623 * language.h (language_data): Delete
6624 la_collect_symbol_completion_matches field.
6625 (language_defn::collect_symbol_completion_matches): New member
6626 function.
6627 * m2-lang.c (m2_language_data): Delete
6628 la_collect_symbol_completion_matches initializer.
6629 * objc-lang.c (objc_language_data): Likewise.
6630 * opencl-lang.c (opencl_language_data): Likewise.
6631 * p-lang.c (pascal_language_data): Likewise.
6632 * rust-lang.c (rust_language_data): Likewise.
6633 * symtab.c (default_collect_symbol_completion_matches): Delete.
6634 (collect_symbol_completion_matches): Update call to
6635 collect_symbol_completion_matches.
6636 (collect_symbol_completion_matches_type): Likewise.
6637 * symtab.h (default_collect_symbol_completion_matches): Delete
6638 declaration.
6639
53fc67f8
AB
66402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6643 (ada_language_data): Delete la_word_break_characters initializer.
6644 (ada_language::word_break_characters): New member function.
6645 * c-lang.c (c_language_data): Delete la_word_break_characters
6646 initializer.
6647 (cplus_language_data): Likewise.
6648 (asm_language_data): Likewise.
6649 (minimal_language_data): Likewise.
6650 * completer.c: Update global comment.
6651 (advance_to_expression_complete_word_point): Update call to
6652 word_break_characters.
6653 (complete_files_symbols): Likewise.
6654 (complete_line_internal_1): Likewise.
6655 (default_completer_handle_brkchars): Likewise.
6656 (skip_quoted_chars): Likewise.
6657 * d-lang.c (d_language_data): Delete la_word_break_characters
6658 initializer.
6659 * f-lang.c (f_word_break_characters): Delete.
6660 (f_language_data): Delete la_word_break_characters initializer.
6661 (f_language::word_break_characters): New member function.
6662 * go-lang.c (go_language_data): Delete la_word_break_characters
6663 initializer.
6664 * language.c (unknown_language_data): Likewise.
6665 (auto_language_data): Likewise.
6666 * language.h (default_word_break_characters): Move declaration to
6667 earlier in the file.
6668 (language_data): Delete la_word_break_characters field.
6669 (language_defn::word_break_characters): New member function.
6670 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6671 initializer.
6672 * objc-lang.c (objc_language_data): Likewise.
6673 * opencl-lang.c (opencl_language_data): Likewise.
6674 * p-lang.c (pascal_language_data): Likewise.
6675 * rust-lang.c (rust_language_data): Likewise.
6676
c9debfb9
AB
66772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6678
6679 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6680 (ada_language_data): Delete la_get_symbol_name_matcher
6681 initializer.
6682 (language_defn::get_symbol_name_matcher_inner): New member
6683 function.
6684 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6685 initializer.
6686 (cplus_language_data): Likewise.
6687 (cplus_language::get_symbol_name_matcher_inner): New member
6688 function.
6689 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6690 (minimal_language_data): Likewise.
6691 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6692 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6693 initializer.
6694 * dictionary.c (iter_match_first_hashed): Update call to
6695 get_symbol_name_matcher.
6696 (iter_match_next_hashed): Likewise.
6697 (iter_match_next_linear): Likewise.
6698 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6699 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6700 initializer.
6701 (f_language::get_symbol_name_matcher_inner): New member function.
6702 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6703 initializer.
6704 * language.c (default_symbol_name_matcher): Update header comment,
6705 make static.
6706 (language_defn::get_symbol_name_matcher): New definition.
6707 (language_defn::get_symbol_name_matcher_inner): Likewise.
6708 (get_symbol_name_matcher): Delete.
6709 (unknown_language_data): Delete la_get_symbol_name_matcher
6710 initializer.
6711 (auto_language_data): Likewise.
6712 * language.h (language_data): Delete la_get_symbol_name_matcher
6713 field.
6714 (language_defn::get_symbol_name_matcher): New member function.
6715 (language_defn::get_symbol_name_matcher_inner): Likewise.
6716 (default_symbol_name_matcher): Delete declaration.
6717 * linespec.c (find_methods): Update call to
6718 get_symbol_name_matcher.
6719 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6720 initializer.
6721 * minsyms.c (lookup_minimal_symbol): Update call to
6722 get_symbol_name_matcher.
6723 (iterate_over_minimal_symbols): Likewise.
6724 * objc-lang.c (objc_language_data): Delete
6725 la_get_symbol_name_matcher initializer.
6726 * opencl-lang.c (opencl_language_data): Likewise.
6727 * p-lang.c (pascal_language_data): Likewise.
6728 * psymtab.c (psymbol_name_matches): Update call to
6729 get_symbol_name_matcher.
6730 * rust-lang.c (rust_language_data): Delete
6731 la_get_symbol_name_matcher initializer.
6732 * symtab.c (symbol_matches_search_name): Update call to
6733 get_symbol_name_matcher.
6734 (compare_symbol_name): Likewise.
6735
9a49ad8c
AB
67362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6737
6738 * ada-lang.c (ada_language_data): Delete la_compute_program
6739 initializer.
6740 * c-lang.c (c_language_data): Likewise.
6741 (c_language::compute_program): New member function.
6742 (cplus_language_data): Delete la_compute_program initializer.
6743 (cplus_language::compute_program): New member function.
6744 (asm_language_data): Delete la_compute_program initializer.
6745 (minimal_language_data): Likewise.
6746 * c-lang.h (c_compute_program): Update comment.
6747 (cplus_compute_program): Likewise.
6748 * compile/compile-c-support.c (c_compute_program): Likewise.
6749 (cplus_compute_program): Likewise.
6750 * compile/compile.c (compile_to_object): Update call to
6751 la_compute_program.
6752 * d-lang.c (d_language_data): Delete la_compute_program
6753 initializer.
6754 * f-lang.c (f_language_data): Likewise.
6755 * go-lang.c (go_language_data): Likewise.
6756 * language.c (unknown_language_data): Likewise.
6757 (auto_language_data): Likewise.
6758 * language.h (language_data): Delete la_compute_program field.
6759 (language_defn::compute_program): New member function.
6760 * m2-lang.c (m2_language_data): Delete la_compute_program
6761 initializer.
6762 * objc-lang.c (objc_language_data): Likewise.
6763 * opencl-lang.c (opencl_language_data): Likewise.
6764 * p-lang.c (pascal_language_data): Likewise.
6765 * rust-lang.c (rust_language_data): Likewise.
6766
eff93b4d
AB
67672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * ada-lang.c (ada_language_data) Delete
6770 la_class_name_from_physname initializer.
6771 * c-lang.c (c_language_data): Likewise.
6772 (cplus_language_data): Likewise.
6773 (cplus_language::class_name_from_physname): New member function.
6774 (asm_language_data): Delete la_class_name_from_physname
6775 initializer.
6776 (minimal_language_data): Likewise.
6777 * d-lang.c (d_language_data): Likewise.
6778 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6779 method on language_defn class.
6780 (guess_full_die_structure_name): Likewise.
6781 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6782 initializer.
6783 * go-lang.c (go_language_data): Likewise.
6784 * language.c (language_class_name_from_physname): Delete.
6785 (unk_lang_class_name): Delete.
6786 (unknown_language_data): Delete la_class_name_from_physname
6787 initializer.
6788 (auto_language_data): Likewise.
6789 * language.h (language_data): Delete la_class_name_from_physname
6790 field.
6791 (language_defn::class_name_from_physname): New function.
6792 (language_class_name_from_physname): Delete declaration.
6793 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6794 initializer.
6795 * objc-lang.c (objc_language_data): Likewise.
6796 * opencl-lang.c (opencl_language_data): Likewise.
6797 * p-lang.c (pascal_language_data): Likewise.
6798 * rust-lang.c (rust_language_data): Likewise.
6799
de543742
TT
68002020-06-16 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-data.h (STATUS_NAME): New macro.
6803 * tui/tui-layout.c (tui_remove_some_windows)
6804 (initialize_known_windows, tui_register_window)
6805 (tui_layout_split::remove_windows, initialize_layouts)
6806 (tui_new_layout_command): Don't use hard-coded window names.
6807
a350efd4
TT
68082020-06-16 Tom Tromey <tom@tromey.com>
6809
6810 PR tui/25348:
6811 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6812 tui_initialize_readline. Only run once. Call rl_initialize.
6813 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6814 tui_initialize_readline.
6815 * tui/tui-io.c (tui_setup_io): Call
6816 tui_ensure_readline_initialized.
6817 * tui/tui-interp.c (tui_interp::init): Update.
6818
39ec0490
TT
68192020-06-16 Tom Tromey <tom@tromey.com>
6820
6821 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6822 Also preserve the status window.
6823
d2d1ea20
TT
68242020-06-16 Tom Tromey <tom@tromey.com>
6825
6826 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6827 where m_window==nullptr.
6828
66920317
TT
68292020-06-15 Tom Tromey <tromey@adacore.com>
6830
6831 * windows-nat.c (windows_nat::handle_output_debug_string):
6832 Update.
6833 (windows_nat::handle_ms_vc_exception): Update.
6834 * target.h (target_read_string): Change API.
6835 * target.c (target_read_string): Change API.
6836 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6837 Update.
6838 * solib-frv.c (frv_current_sos): Update.
6839 * solib-dsbt.c (dsbt_current_sos): Update.
6840 * solib-darwin.c (darwin_current_sos): Update.
6841 * linux-thread-db.c (inferior_has_bug): Update.
6842 * expprint.c (print_subexp_standard): Update.
6843 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6844 (ada_exception_message_1): Update.
6845
a5d871dd
TT
68462020-06-15 Tom Tromey <tromey@adacore.com>
6847
6848 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6849
670e35fa
TT
68502020-06-15 Tom Tromey <tromey@adacore.com>
6851
6852 * valprint.c (read_string): Update comment.
6853 * target.c (MIN): Remove.
6854 (target_read_string): Rewrite.
6855
f5272a3b
TT
68562020-06-15 Tom Tromey <tromey@adacore.com>
6857
6858 * corefile.c (read_memory_string): Remove.
6859 * ada-valprint.c (ada_value_print_ptr): Update.
6860 * ada-lang.h (ada_tag_name): Change return type.
6861 * ada-lang.c (type_from_tag): Update.
6862 (ada_tag_name_from_tsd): Change return type. Use
6863 target_read_string.
6864 (ada_tag_name): Likewise.
6865 * gdbcore.h (read_memory_string): Don't declare.
6866
2c074f49
HD
68672020-06-14 Hannes Domani <ssbssa@yahoo.de>
6868
6869 * symtab.c (rbreak_command): Ignore Windows drive colon.
6870
6a17d503
SM
68712020-06-12 Simon Marchi <simon.marchi@efficios.com>
6872
6873 * NEWS: Mention removed GDBserver host support.
6874
453c733f
NC
68752020-06-12 Nelson Chu <nelson.chu@sifive.com>
6876
6877 * features/riscv/rebuild-csr-xml.sh: Updated.
6878
2b4e6a3f
TT
68792020-06-11 Tom Tromey <tom@tromey.com>
6880
6881 PR gdb/18318:
6882 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6883
4412332f
JG
68842020-06-09 Jonny Grant <jg@jguk.org>
68852020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6886
6887 * main.c (captured_main_1): Don't print new line after help.
6888 (print_gdb_help): add mailing list and IRC channel information
6889 to --help. Add new lines between items in the footer. Remove
6890 quotes around bug url.
6891
2f33032a
KS
68922020-06-11 Keith Seitz <keiths@redhat.com>
6893
6894 PR gdb/21356
6895 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6896 Resolve typedefs for type length calculations.
6897
7ab96794
TV
68982020-06-10 Tom de Vries <tdevries@suse.de>
6899
6900 PR ada/24713
6901 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6902 (write_psymbols): Enable .gdb_index for ada.
6903 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6904 ada.
6905
e5f3ece2
TV
69062020-06-10 Tom de Vries <tdevries@suse.de>
6907
6908 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6909 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6910 namei" instead of "const char *name" argument.
6911 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6912 dw2_symtab_iter_init.
6913
940da03e
SM
69142020-06-08 Simon Marchi <simon.marchi@efficios.com>
6915
6916 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6917 to use type::field and field::type instead.
6918
b6cdac4b
SM
69192020-06-08 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6922 to use field::type instead.
6923
5d14b6e5
SM
69242020-06-08 Simon Marchi <simon.marchi@efficios.com>
6925
6926 * gdbtypes.h (struct field) <type, set_type>: New methods.
6927 Rename `type` field to...
6928 <m_type>: ... this. Change references throughout to use type or
6929 set_type methods.
6930 (FIELD_TYPE): Use field::type. Change call sites that modify
6931 the field's type to use field::set_type instead.
6932
3d967001
SM
69332020-06-08 Simon Marchi <simon.marchi@efficios.com>
6934
6935 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6936 to use type::index_type instead.
6937
262abc0d
SM
69382020-06-08 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6941 methods.
6942 (TYPE_INDEX_TYPE): Use type::index_type.
6943 * gdbtypes.c (create_array_type_with_stride): Likewise.
6944
82836c92
TT
69452020-06-07 Tom Tromey <tom@tromey.com>
6946
6947 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6948 parameter.
6949 (generic_value_print): Update.
6950
940dace9
AB
69512020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6952
6953 Revert commit 982a38f60b0.
6954 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6955
982a38f6
AB
69562020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6957
6958 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6959 avoid use after free.
6960
82f06518
TV
69612020-06-05 Tom de Vries <tdevries@suse.de>
6962
6963 * NEWS: Fix typos.
6964
f8c41851
SM
69652020-06-04 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6968 the per_bfd object.
6969 (dwarf2_read_debug_names): Likewise.
6970 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6971 object when re-using a per_bfd object with an index.
6972
f9b5d5ea
TV
69732020-06-03 Tom de Vries <tdevries@suse.de>
6974
6975 PR symtab/26046
6976 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6977 children for C++.
6978 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6979 DW_TAG_subprogram.
6980
f6eee2d0
AB
69812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6982
6983 * ada-lang.c (ada_language_data): Delete skip_trampoline
6984 initializer.
6985 * c-lang.c (c_language_data): Likewise.
6986 (cplus_language_data): Likewise.
6987 (cplus_language::skip_trampoline): New member function.
6988 (asm_language_data): Delete skip_trampoline initializer.
6989 (minimal_language_data): Likewise.
6990 * d-lang.c (d_language_data): Likewise.
6991 * f-lang.c (f_language_data): Likewise.
6992 * go-lang.c (go_language_data): Likewise.
6993 * language.c (unk_lang_trampoline): Delete function.
6994 (skip_language_trampoline): Update.
6995 (unknown_language_data): Delete skip_trampoline initializer.
6996 (auto_language_data): Likewise.
6997 * language.h (language_data): Delete skip_trampoline field.
6998 (language_defn::skip_trampoline): New function.
6999 * m2-lang.c (m2_language_data): Delete skip_trampoline
7000 initializer.
7001 * objc-lang.c (objc_skip_trampoline): Delete function, move
7002 implementation to objc_language::skip_trampoline.
7003 (objc_language_data): Delete skip_trampoline initializer.
7004 (objc_language::skip_trampoline): New member function with
7005 implementation from objc_skip_trampoline.
7006 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7007 initializer.
7008 * p-lang.c (pascal_language_data): Likewise.
7009 * rust-lang.c (rust_language_data): Likewise.
7010
0a50df5d
AB
70112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7014 (ada_language::demangle): New member function.
7015 * c-lang.c (c_language_data): Delete la_demangle initializer.
7016 (cplus_language_data): Delete la_demangle initializer.
7017 (cplus_language::demangle): New member function.
7018 (asm_language_data): Delete la_demangle initializer.
7019 (minimal_language_data): Delete la_demangle initializer.
7020 * d-lang.c (d_language_data): Delete la_demangle initializer.
7021 (d_language::demangle): New member function.
7022 * f-lang.c (f_language_data): Delete la_demangle initializer.
7023 (f_language::demangle): New member function.
7024 * go-lang.c (go_language_data): Delete la_demangle initializer.
7025 (go_language::demangle): New member function.
7026 * language.c (language_demangle): Update.
7027 (unk_lang_demangle): Delete.
7028 (unknown_language_data): Delete la_demangle initializer.
7029 (unknown_language::demangle): New member function.
7030 (auto_language_data): Delete la_demangle initializer.
7031 (auto_language::demangle): New member function.
7032 * language.h (language_data): Delete la_demangle field.
7033 (language_defn::demangle): New function.
7034 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7035 * objc-lang.c (objc_language_data): Delete la_demangle
7036 initializer.
7037 (objc_language::demangle): New member function.
7038 * opencl-lang.c (opencl_language_data): Delete la_demangle
7039 initializer.
7040 * p-lang.c (pascal_language_data): Likewise.
7041 * rust-lang.c (rust_language_data): Likewise.
7042 (rust_language::demangle): New member function.
7043
fbfb0a46
AB
70442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * ada-lang.c (ada_language_data): Delete la_print_type
7047 initializer.
7048 (ada_language::print_type): New member function.
7049 * c-lang.c (c_language_data): Delete la_print_type initializer.
7050 (c_language::print_type): New member function.
7051 (cplus_language_data): Delete la_print_type initializer.
7052 (cplus_language::print_type): New member function.
7053 (asm_language_data): Delete la_print_type initializer.
7054 (asm_language::print_type): New member function.
7055 (minimal_language_data): Delete la_print_type initializer.
7056 (minimal_language::print_type): New member function.
7057 * d-lang.c (d_language_data): Delete la_print_type initializer.
7058 (d_language::print_type): New member function.
7059 * f-lang.c (f_language_data): Delete la_print_type initializer.
7060 (f_language::print_type): New member function.
7061 * go-lang.c (go_language_data): Delete la_print_type initializer.
7062 (go_language::print_type): New member function.
7063 * language.c (unk_lang_print_type): Delete.
7064 (unknown_language_data): Delete la_print_type initializer.
7065 (unknown_language::print_type): New member function.
7066 (auto_language_data): Delete la_print_type initializer.
7067 (auto_language::print_type): New member function.
7068 * language.h (language_data): Delete la_print_type field.
7069 (language_defn::print_type): New function.
7070 (LA_PRINT_TYPE): Update.
7071 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7072 (m2_language::print_type): New member function.
7073 * objc-lang.c (objc_language_data): Delete la_print_type
7074 initializer.
7075 (objc_language::print_type): New member function.
7076 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7077 to opencl_language::print_type.
7078 (opencl_language_data): Delete la_print_type initializer.
7079 (opencl_language::print_type): New member function, implementation
7080 from opencl_print_type.
7081 * p-lang.c (pascal_language_data): Delete la_print_type
7082 initializer.
7083 (pascal_language::print_type): New member function.
7084 * rust-lang.c (rust_print_type): Delete, implementation moved to
7085 rust_language::print_type.
7086 (rust_language_data): Delete la_print_type initializer.
7087 (rust_language::print_type): New member function, implementation
7088 from rust_print_type.
7089
6f827019
AB
70902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7091
7092 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7093 implementation moves to...
7094 (ada_language::sniff_from_mangled_name): ...here. Update return
7095 type.
7096 (ada_language_data): Delete la_sniff_from_mangled_name
7097 initializer.
7098 * c-lang.c (c_language_data): Likewise.
7099 (cplus_language_data): Likewise.
7100 (cplus_language::sniff_from_mangled_name): New member function,
7101 implementation taken from gdb_sniff_from_mangled_name.
7102 (asm_language_data): Delete la_sniff_from_mangled_name
7103 initializer.
7104 (minimal_language_data): Likewise.
7105 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7106 implementation moves to cplus_language::sniff_from_mangled_name.
7107 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7108 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7109 moves to...
7110 (d_language::sniff_from_mangled_name): ...here.
7111 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7112 * f-lang.c (f_language_data): Likewise.
7113 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7114 moves to...
7115 (go_language::sniff_from_mangled_name): ...here.
7116 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7117 * language.c (language_sniff_from_mangled_name): Delete.
7118 (unknown_language_data): Delete la_sniff_from_mangled_name
7119 initializer.
7120 (auto_language_data): Likewise.
7121 * language.h (language_data): Delete la_sniff_from_mangled_name
7122 field.
7123 (language_defn::sniff_from_mangled_name): New function.
7124 (language_sniff_from_mangled_name): Delete declaration.
7125 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7126 field.
7127 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7128 implementation moves to...
7129 (objc_language::sniff_from_mangled_name): ...here.
7130 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7131 * opencl-lang.c (opencl_language_data): Likewise.
7132 * p-lang.c (pascal_language_data): Likewise.
7133 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7134 implementation moves to...
7135 (rust_language::sniff_from_mangled_name): ...here.
7136 (rust_language_data): Delete la_sniff_from_mangled_name
7137 initializer.
7138 * symtab.c (symbol_find_demangled_name): Call
7139 sniff_from_mangled_name member function.
7140
fb8006fd
AB
71412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7142
7143 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7144 initializer.
7145 * c-lang.c (c_language_data): Likewise.
7146 (cplus_language_data): Likewise.
7147 (cplus_language::search_name_hash): New member function.
7148 (asm_language_data): Delete la_search_name_hash initializer.
7149 (minimal_language_data): Likewise.
7150 * d-lang.c (d_language_data): Likewise.
7151 * dictionary.c (default_search_name_hash): Rename to...
7152 (language_defn::search_name_hash): ...this.
7153 * f-lang.c (f_language_data): Likewise.
7154 (f_language::search_name_hash): New member function.
7155 * go-lang.c (go_language_data): Delete la_search_name_hash
7156 initializer.
7157 * language.c (unknown_language_data): Likewise.
7158 (auto_language_data): Likewise.
7159 * language.h (struct language_data): Delete la_search_name_hash
7160 field.
7161 (language_defn::search_name_hash): Declare new member function.
7162 (default_search_name_hash): Delete declaration.
7163 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7164 initializer.
7165 * objc-lang.c (objc_language_data): Likewise.
7166 * opencl-lang.c (opencl_language_data): Likewise.
7167 * p-lang.c (pascal_language_data): Likewise.
7168 * rust-lang.c (rust_language_data): Likewise.
7169 * symtab.c (search_name_hash): Update call.
7170
8e25bafe
AB
71712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7172
7173 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7174 initializer.
7175 * c-lang.c (class compile_instance): Declare.
7176 (c_language_data): Delete la_get_compile_instance initializer.
7177 (c_language::get_compile_instance): New member function.
7178 (cplus_language_data): Delete la_get_compile_instance initializer.
7179 (cplus_language::get_compile_instance): New member function.
7180 (asm_language_data): Delete la_get_compile_instance initializer.
7181 (minimal_language_data): Likewise.
7182 * c-lang.h (c_get_compile_context): Update comment.
7183 (cplus_get_compile_context): Update comment.
7184 * compile/compile.c (compile_to_object): Update calls, don't rely
7185 on function pointer being NULL.
7186 * d-lang.c (d_language_data): Delete la_get_compile_instance
7187 initializer.
7188 * f-lang.c (f_language_data): Likewise.
7189 * go-lang.c (go_language_data): Likewise.
7190 * language.c (unknown_language_data): Likewise.
7191 (auto_language_data): Likewise.
7192 * language.h (language_data): Delete la_get_compile_instance field.
7193 (language_defn::get_compile_instance): New member function.
7194 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7195 initializer.
7196 * objc-lang.c (objc_language_data): Likewise.
7197 * opencl-lang.c (opencl_language_data): Likewise.
7198 * p-lang.c (pascal_language_data): Likewise.
7199 * rust-lang.c (rust_language_data): Likewise.
7200
4009ee92
AB
72012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7202
7203 * ada-lang.c (ada_add_all_symbols): Update comment.
7204 (ada_iterate_over_symbols): Delete, move implementation to...
7205 (ada_language::iterate_over_symbols): ...here, a new member
7206 function, rewrite to use range based for loop.
7207 (ada_language_data): Delete la_iterate_over_symbols initializer.
7208 * c-lang.c (c_language_data): Likewise.
7209 (cplus_language_data): Likewise.
7210 (asm_language_data): Likewise.
7211 (minimal_language_data): Likewise.
7212 * d-lang.c (d_language_data): Likewise.
7213 * f-lang.c (f_language_data): Likewise.
7214 * go-lang.c (go_language_data): Likewise.
7215 * language.c (unknown_language_data): Likewise.
7216 (auto_language_data): Likewise.
7217 * language.h (language_data): Delete la_iterate_over_symbols field.
7218 (language_defn::iterate_over_symbols): New member function.
7219 (LA_ITERATE_OVER_SYMBOLS): Update.
7220 * linespec.c (iterate_over_all_matching_symtabs): Update.
7221 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7222 initializer.
7223 * objc-lang.c (objc_language_data): Likewise.
7224 * opencl-lang.c (opencl_language_data): Likewise.
7225 * p-lang.c (pascal_language_data): Likewise.
7226 * rust-lang.c (rust_language_data): Likewise.
7227
54f4ca46
AB
72282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7229
7230 * ada-lang.c (ada_language_data): Delete
7231 la_lookup_transparent_type initializer.
7232 * c-lang.c (c_language_data): Likewise.
7233 (cplus_language_data): Likewise.
7234 (cplus_language::lookup_transparent_type): New member function.
7235 (asm_language_data): Delete la_lookup_transparent_type
7236 initializer.
7237 (minimal_language_data): Likewise.
7238 * d-lang.c (d_language_data): Likewise.
7239 * f-lang.c (f_language_data): Likewise.
7240 * go-lang.c (go_language_data): Likewise.
7241 * language.c (unknown_language_data): Likewise.
7242 (auto_language_data): Likewise.
7243 * language.h (struct language_data): Delete
7244 la_lookup_transparent_type field.
7245 (language_defn::lookup_transparent_type): New member function.
7246 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7247 initializer.
7248 * objc-lang.c (objc_language_data): Likewise.
7249 * opencl-lang.c (opencl_language_data): Likewise.
7250 * p-lang.c (pascal_language_data): Likewise.
7251 * rust-lang.c (rust_language_data): Likewise.
7252 * symtab.c (symbol_matches_domain): Update call.
7253
1fb314aa
AB
72542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7255
7256 * ada-lang.c (ada_language_arch_info): Delete function, move
7257 implementation to...
7258 (ada_language::language_arch_info): ...here, a new member
7259 function.
7260 (ada_language_data): Delete la_language_arch_info.
7261 * c-lang.c (c_language_data): Likewise.
7262 (c_language::language_arch_info): New member function.
7263 (cplus_language_arch_info): Delete function, move
7264 implementation to...
7265 (cplus_language::language_arch_info): ...here, a new member
7266 function.
7267 (cplus_language_data): Delete la_language_arch_info.
7268 (asm_language_data): Likewise.
7269 (asm_language::language_arch_info): New member function.
7270 (minimal_language_data): Delete la_language_arch_info.
7271 (minimal_language::language_arch_info): New member function.
7272 * d-lang.c (d_language_arch_info): Delete function, move
7273 implementation to...
7274 (d_language::language_arch_info): ...here, a new member
7275 function.
7276 (d_language_data): Delete la_language_arch_info.
7277 * f-lang.c (f_language_arch_info): Delete function, move
7278 implementation to...
7279 (f_language::language_arch_info): ...here, a new member
7280 function.
7281 (f_language_data): Delete la_language_arch_info.
7282 * go-lang.c (go_language_arch_info): Delete function, move
7283 implementation to...
7284 (go_language::language_arch_info): ...here, a new member
7285 function.
7286 (go_language_data): Delete la_language_arch_info.
7287 * language.c (unknown_language_data): Likewise.
7288 (unknown_language::language_arch_info): New member function.
7289 (auto_language_data): Delete la_language_arch_info.
7290 (auto_language::language_arch_info): New member function.
7291 (language_gdbarch_post_init): Update call to
7292 la_language_arch_info.
7293 * language.h (language_data): Delete la_language_arch_info
7294 function pointer.
7295 (language_defn::language_arch_info): New function.
7296 * m2-lang.c (m2_language_arch_info): Delete function, move
7297 implementation to...
7298 (m2_language::language_arch_info): ...here, a new member
7299 function.
7300 (m2_language_data): Delete la_language_arch_info.
7301 * objc-lang.c (objc_language_arch_info): Delete function, move
7302 implementation to...
7303 (objc_language::language_arch_info): ...here, a new member
7304 function.
7305 (objc_language_data): Delete la_language_arch_info.
7306 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7307 implementation to...
7308 (opencl_language::language_arch_info): ...here, a new member
7309 function.
7310 (opencl_language_data): Delete la_language_arch_info.
7311 * p-lang.c (pascal_language_arch_info): Delete function, move
7312 implementation to...
7313 (pascal_language::language_arch_info): ...here, a new member
7314 function.
7315 (pascal_language_data): Delete la_language_arch_info.
7316 * rust-lang.c (rust_language_arch_info): Delete function, move
7317 implementation to...
7318 (rust_language::language_arch_info): ...here, a new member
7319 function.
7320 (rust_language_data): Delete la_language_arch_info.
7321
48448202
AB
73222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7323
7324 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7325 initializer.
7326 * c-lang.c (c_language_data): Likewise.
7327 (cplus_language_data): Likewise.
7328 (cplus_language::pass_by_reference_info): New method.
7329 (asm_language_data): Delete la_pass_by_reference initializer.
7330 (minimal_language_data): Likewise.
7331 * cp-abi.c (cp_pass_by_reference): Remove use of
7332 default_pass_by_reference.
7333 * d-lang.c (d_language_data): Likewise.
7334 * f-lang.c (f_language_data): Likewise.
7335 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7336 default_pass_by_reference.
7337 * go-lang.c (go_language_data): Likewise.
7338 * language.c (language_pass_by_reference): Update.
7339 (default_pass_by_reference): Delete.
7340 (unknown_language_data): Delete la_pass_by_reference
7341 initializer.
7342 (auto_language_data): Likewise.
7343 * language.h (struct language_data): Delete la_pass_by_reference
7344 field.
7345 (language_defn::pass_by_reference_info): New member function.
7346 (default_pass_by_reference): Delete declaration.
7347 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7348 initializer.
7349 * objc-lang.c (objc_language_data): Likewise.
7350 * opencl-lang.c (opencl_language_data): Likewise.
7351 * p-lang.c (pascal_language_data): Likewise.
7352 * rust-lang.c (rust_language_data): Likewise.
7353
15e5fd35
AB
73542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * ada-lang.c (ada_read_var_value): Delete function, move
7357 implementation to...
7358 (ada_language::read_var_value): ...here.
7359 (ada_language_data): Delete la_read_var_value initializer.
7360 * c-lang.c (c_language_data): Likewise.
7361 (cplus_language_data): Likewise.
7362 (minimal_language_data): Likewise.
7363 * d-lang.c (d_language_data): Likewise.
7364 * f-lang.c (f_language_data): Likewise.
7365 * findvar.c (default_read_var_value): Rename to...
7366 (language_defn::read_var_value): ...this.
7367 * findvar.c (read_var_value): Update header comment, and change to
7368 call member function instead of function pointer.
7369 * go-lang.c (go_language_data): Likewise.
7370 * language.c (unknown_language_data): Delete la_read_var_value
7371 initializer.
7372 (auto_language_data): Likewise.
7373 * language.h (struct language_data): Delete la_read_var_value
7374 field.
7375 (language_defn::read_var_value): New member function.
7376 (default_read_var_value): Delete declaration.
7377 * m2-lang.c (m2_language_data): Delete la_read_var_value
7378 initializer.
7379 * objc-lang.c (objc_language_data): Likewise.
7380 * opencl-lang.c (opencl_language_data): Likewise.
7381 * p-lang.c (pascal_language_data): Likewise.
7382 * rust-lang.c (rust_language_data): Likewise.
7383 * value.h (default_read_var_value): Delete declaration.
7384
5bd40f2a
AB
73852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7386
7387 * ada-lang.c (ada_print_array_index): Delete function, move
7388 implementation to...
7389 (ada_language::print_array_index): ...here.
7390 (ada_language_data): Delete la_print_array_index initializer.
7391 * c-lang.c (c_language_data): Likewise.
7392 (cplus_language_data): Likewise.
7393 (minimal_language_data): Likewise.
7394 * d-lang.c (d_language_data): Likewise.
7395 * f-lang.c (f_language_data): Likewise.
7396 * go-lang.c (go_language_data): Likewise.
7397 * language.c (default_print_array_index): Delete function, move
7398 implementation to...
7399 (language_defn::print_array_index): ...here.
7400 (unknown_language_data): Delete la_print_array_index initializer.
7401 (auto_language_data): Likewise.
7402 * language.h (struct language_data): Delete la_print_array_index
7403 field.
7404 (language_defn::print_array_index): New member function.
7405 (LA_PRINT_ARRAY_INDEX): Update.
7406 (default_print_array_index): Delete declaration.
7407 * m2-lang.c (m2_language_data): Delete la_print_array_index
7408 initializer.
7409 * objc-lang.c (objc_language_data): Likewise.
7410 * opencl-lang.c (opencl_language_data): Likewise.
7411 * p-lang.c (pascal_language_data): Likewise.
7412 * rust-lang.c (rust_language_data): Likewise.
7413
0874fd07
AB
74142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * gdb/ada-lang.c (ada_language_defn): Convert to...
7417 (ada_language_data): ...this.
7418 (class ada_language): New class.
7419 (ada_language_defn): New static global.
7420 * gdb/c-lang.c (c_language_defn): Convert to...
7421 (c_language_data): ...this.
7422 (class c_language): New class.
7423 (c_language_defn): New static global.
7424 (cplus_language_defn): Convert to...
7425 (cplus_language_data): ...this.
7426 (class cplus_language): New class.
7427 (cplus_language_defn): New static global.
7428 (asm_language_defn): Convert to...
7429 (asm_language_data): ...this.
7430 (class asm_language): New class.
7431 (asm_language_defn): New static global.
7432 (minimal_language_defn): Convert to...
7433 (minimal_language_data): ...this.
7434 (class minimal_language): New class.
7435 (minimal_language_defn): New static global.
7436 * gdb/d-lang.c (d_language_defn): Convert to...
7437 (d_language_data): ...this.
7438 (class d_language): New class.
7439 (d_language_defn): New static global.
7440 * gdb/f-lang.c (f_language_defn): Convert to...
7441 (f_language_data): ...this.
7442 (class f_language): New class.
7443 (f_language_defn): New static global.
7444 * gdb/go-lang.c (go_language_defn): Convert to...
7445 (go_language_data): ...this.
7446 (class go_language): New class.
7447 (go_language_defn): New static global.
7448 * gdb/language.c (unknown_language_defn): Remove declaration.
7449 (current_language): Initialize to nullptr, real initialization is
7450 moved to _initialize_language.
7451 (languages): Delete global.
7452 (language_defn::languages): Define.
7453 (set_language_command): Use language_defn::languages.
7454 (set_language): Likewise.
7455 (range_error): Likewise.
7456 (language_enum): Likewise.
7457 (language_def): Likewise.
7458 (add_set_language_command): Use language_def::languages for the
7459 language list, and language_def to lookup language pointers.
7460 (skip_language_trampoline): Use language_defn::languages.
7461 (unknown_language_defn): Convert to...
7462 (unknown_language_data): ...this.
7463 (class unknown_language): New class.
7464 (unknown_language_defn): New static global.
7465 (auto_language_defn): Convert to...
7466 (auto_language_data): ...this.
7467 (class auto_language): New class.
7468 (auto_language_defn): New static global.
7469 (language_gdbarch_post_init): Use language_defn::languages.
7470 (_initialize_language): Initialize current_language.
7471 * gdb/language.h (struct language_defn): Rename to...
7472 (struct language_data): ...this.
7473 (struct language_defn): New.
7474 (auto_language_defn): Delete.
7475 (unknown_language_defn): Delete.
7476 (minimal_language_defn): Delete.
7477 (ada_language_defn): Delete.
7478 (asm_language_defn): Delete.
7479 (c_language_defn): Delete.
7480 (cplus_language_defn): Delete.
7481 (d_language_defn): Delete.
7482 (f_language_defn): Delete.
7483 (go_language_defn): Delete.
7484 (m2_language_defn): Delete.
7485 (objc_language_defn): Delete.
7486 (opencl_language_defn): Delete.
7487 (pascal_language_defn): Delete.
7488 (rust_language_defn): Delete.
7489 * gdb/m2-lang.c (m2_language_defn): Convert to...
7490 (m2_language_data): ...this.
7491 (class m2_language): New class.
7492 (m2_language_defn): New static global.
7493 * gdb/objc-lang.c (objc_language_defn): Convert to...
7494 (objc_language_data): ...this.
7495 (class objc_language): New class.
7496 (objc_language_defn): New static global.
7497 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7498 (opencl_language_data): ...this.
7499 (class opencl_language): New class.
7500 (opencl_language_defn): New static global.
7501 * gdb/p-lang.c (pascal_language_defn): Convert to...
7502 (pascal_language_data): ...this.
7503 (class pascal_language): New class.
7504 (pascal_language_defn): New static global.
7505 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7506 language pointer, update comment format.
7507 * gdb/rust-lang.c (rust_language_defn): Convert to...
7508 (rust_language_data): ...this.
7509 (class rust_language): New class.
7510 (rust_language_defn): New static global.
7511
1313c56e
AB
75122020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7513
7514 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7515 member variable.
7516 <m_stmt_at_address>: New member variable.
7517 (lnp_state_machine::record_line): Don't record some lines, update
7518 tracking of is_stmt at the same address.
7519 (lnp_state_machine::lnp_state_machine): Initialise new member
7520 variables.
7521
b7ed9f3d
ST
75222020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7523
7524 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7525 "-include gnu-nat-mig.h".
7526 * gnu-nat-mig.h: New file.
7527 * gnu-nat.c: Include "gnu-nat-mig.h".
7528 (exc_server, msg_reply_server, notify_server,
7529 process_reply_server): Remove declarations.
7530
14a8ad62
ST
75312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7532
7533 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7534 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7535 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7536 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7537 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7538 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7539 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7540 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7541 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7542 to gnu_nat_target class.
7543 * gnu-nat.c: Likewise.
7544 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7545 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7546 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7547 object.
7548 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7549 instead of `gnu_target'.
7550
0af5e106
ST
75512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7552
7553 * i386-gnu-tdep.c: Include "gdbcore.h"
7554 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7555 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7556 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7557 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7558 i386_gnu_sigcontext_addr): New functions
7559 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7560 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7561 tdep.
7562
078f2fc9
ST
75632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7564
7565 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7566 before fork_inferior call. Avoid calling it if target_is_pushed returns
7567 true.
7568
53dff92c
ST
75692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7570
7571 * gnu-nat.h (gnu_target): New variable declaration.
7572 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7573 gnu_target.
7574 * gnu-nat.c (gnu_target): New variable.
7575 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7576 add_thread_silent, and add_thread calls.
7577 (gnu_nat_target::create_inferior): Pass gnu_target to
7578 add_thread_silent, thread_change_ptid call.
7579 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7580 call.
7581
5a8b8627
ST
75822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7583
7584 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7585 (gnu_nat_target::find_memory_regions): Remove unused
7586 `old_address' variable.
7587
366f550a
ST
75882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7589
7590 * gnu-nat.c: Include "gdbarch.h".
7591
f14871bf
ST
75922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7593
7594 * reply_mig_hack.awk (Error return): Cast function through
7595 void *, to bypass compiler function call check.
7596
c6887cfb
ST
75972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7598
7599 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7600 $(srcdir)/reply_mig_hack.awk.
7601
6930bffe
ST
76022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7603
7604 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7605
112c22ed
JG
76062020-05-30 Jonny Grant <jg@jguk.org>
7607
7608 * configure.ac (ACX_BUGURL): change bug URL to https.
7609
f68f85b5
PA
76102020-05-30 Pedro Alves <palves@redhat.com>
7611
7612 * cp-support.c (replace_typedefs_template): New.
7613 (replace_typedefs_qualified_name): Handle
7614 DEMANGLE_COMPONENT_TEMPLATE.
7615
976ca316
SM
76162020-05-29 Simon Marchi <simon.marchi@efficios.com>
7617
7618 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7619 dwarf2/index-cache.h, dwarf2/index-write.c,
7620 dwarf2/index-write.h, dwarf2/line-header.c,
7621 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7622 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7623 variables and fields from `dwarf2_per_objfile` to just
7624 `per_objfile` throughout.
7625
989ade05
SM
76262020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7627
7628 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7629 <push_dwarf_reg_entry_value>: Add comment.
7630
c47bae85
KB
76312020-05-28 Kevin Buettner <kevinb@redhat.com>
7632 Keith Seitz <keiths@redhat.com>
7633
7634 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7635 instead of PyEval_ReleaseLock.
7636 (class gdbpy_gil): Move to earlier in file.
7637 (finalize_python): Set gdb_python_initialized.
7638 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7639 when not initialized.
7640
44486dcf
SM
76412020-05-28 Simon Marchi <simon.marchi@efficios.com>
7642
7643 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7644 <push_dwarf_reg_entry_value>: Remove assert. Override
7645 per_objfile with caller_per_objfile.
7646
f030440d
TV
76472020-05-28 Tom de Vries <tdevries@suse.de>
7648
7649 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7650 PR gold/15646 workaround to symbol kind "type".
7651
f0fbb768
TT
76522020-05-27 Tom Tromey <tromey@adacore.com>
7653
7654 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7655
af0b2a3e
TT
76562020-05-27 Tom Tromey <tromey@adacore.com>
7657
7658 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7659 Use htab_find_with_hash.
7660 <add_abbrev>: Remove "abbrev_number" parameter.
7661 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7662 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7663 (hash_abbrev): Add comment.
7664 (abbrev_table::lookup_abbrev): Move to header file.
7665 (abbrev_table::read): Update.
7666
7d00ffec
TT
76672020-05-27 Tom Tromey <tromey@adacore.com>
7668
7669 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7670 method.
7671 <canonical_name>: New member.
7672 <raw_name>: Rename from "name".
7673 (partial_die_info): Initialize canonical_name.
7674 (scan_partial_symbols): Check raw_name.
7675 (partial_die_parent_scope, partial_die_full_name)
7676 (add_partial_symbol, add_partial_subprogram)
7677 (add_partial_enumeration, load_partial_dies): Use "name" method.
7678 (partial_die_info::name): New method.
7679 (partial_die_info::read, guess_partial_die_structure_name)
7680 (partial_die_info::fixup): Update.
7681
697bba18
TT
76822020-05-27 Tom Tromey <tromey@adacore.com>
7683
7684 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7685 <get_ref_die_offset>: Inline.
7686 <get_ref_die_offset_complaint>: New method.
7687 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7688 (attribute::get_ref_die_offset_complaint): Rename from
7689 get_ref_die_offset. Just issue complaint.
7690
c17ace43
HD
76912020-05-27 Hannes Domani <ssbssa@yahoo.de>
7692
7693 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7694
96445f0b
HD
76952020-05-27 Hannes Domani <ssbssa@yahoo.de>
7696
7697 * exec.c (exec_file_attach): Use errno value of first openp failure.
7698
ac637ec3
HD
76992020-05-27 Hannes Domani <ssbssa@yahoo.de>
7700
7701 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7702 Don't close thread handle.
7703
17ee85fc
TT
77042020-05-27 Tom Tromey <tom@tromey.com>
7705 Simon Marchi <simon.marchi@efficios.com>
7706
7707 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7708 shared_ptr.
7709 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7710 member.
7711 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7712 dwarf2_per_bfd_objfile_data_key>: New globals.
7713 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7714 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7715 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7716 shared.
7717 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7718 short-circuit when sharing.
7719 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7720 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7721
39b16f87
SM
77222020-05-27 Simon Marchi <simon.marchi@efficios.com>
7723
7724 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7725 to...
7726 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7727 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7728
fcf23d5b
SM
77292020-05-27 Simon Marchi <simon.marchi@efficios.com>
7730
7731 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7732 build_name_components, find_name_components_bounds>:
7733 Add per_objfile parameter.
7734 (struct mapped_index) <symbol_name_at>: Likewise.
7735 (struct mapped_debug_names): Remove constructor.
7736 <dwarf2_per_objfile>: Remove field.
7737 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7738 (mapped_index_base::find_name_components_bounds,
7739 mapped_index_base::build_name_components,
7740 dw2_expand_symtabs_matching_symbol): Likewise.
7741 (class mock_mapped_index) <symbol_name_at>: Likewise.
7742 (check_match): Likewise.
7743 (check_find_bounds_finds): Likewise.
7744 (test_mapped_index_find_name_component_bounds): Update.
7745 (CHECK_MATCH): Update.
7746 (dw2_expand_symtabs_matching): Update.
7747 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7748 per_objfile parameter.
7749 <find_vec_in_debug_names>: Likewise.
7750 <m_per_objfile>: New field.
7751 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7752 parameter.
7753 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7754 (dw2_debug_names_iterator::next): Update.
7755 (dw2_debug_names_lookup_symbol): Update.
7756 (dw2_debug_names_expand_symtabs_for_function): Update.
7757 (dw2_debug_names_map_matching_symbols): Update.
7758 (dw2_debug_names_expand_symtabs_matching): Update.
7759 (dwarf2_read_debug_names): Update.
7760
7188ed02
SM
77612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7762
7763 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7764 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7765 move to dwarf2_per_objfile.
7766 <read_in_chain>: Remove.
7767 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7768 remove_all_cus, age_comp_units>: New methods.
7769 <m_dwarf2_cus>: New member.
7770 (struct dwarf2_per_cu_data) <cu>: Remove.
7771 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7772 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7773 moved to methods of dwarf2_per_objfile.
7774 (dwarf2_clear_marks): Remove.
7775 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7776 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7777 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7778 (dwarf2_per_objfile::remove_all_cus): New.
7779 (class free_cached_comp_units) <~free_cached_comp_units>:
7780 Update.
7781 (load_cu): Update.
7782 (dw2_do_instantiate_symtab): Adjust.
7783 (fill_in_sig_entry_from_dwo_entry): Adjust.
7784 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7785 (cutu_reader::cutu_reader): Likewise.
7786 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7787 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7788 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7789 and dwarf2_per_objfile::age_comp_units.
7790 (load_partial_comp_unit): Update.
7791 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7792 (process_queue): Likewise.
7793 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7794 backlink.
7795 (dwarf2_read_addr_index): Likewise.
7796 (follow_die_offset): Likewise.
7797 (dwarf2_fetch_die_loc_sect_off): Likewise.
7798 (dwarf2_fetch_constant_bytes): Likewise.
7799 (dwarf2_fetch_die_type_sect_off): Likewise.
7800 (follow_die_sig_1): Likewise.
7801 (load_full_type_unit): Likewise.
7802 (read_signatured_type): Likewise.
7803 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7804 (dwarf2_cu::~dwarf2_cu): Remove.
7805 (dwarf2_per_objfile::get_cu): New.
7806 (dwarf2_per_objfile::set_cu): New.
7807 (age_cached_comp_units): Rename to...
7808 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7809 to std::unordered_map.
7810 (free_one_cached_comp_unit): Rename to...
7811 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7812 to std::unordered_map.
7813 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7814 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7815 a dwarf2_per_objfile in data.
7816 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7817 (dwarf2_clear_marks): Remove.
7818
2e671100
SM
78192020-05-27 Simon Marchi <simon.marchi@efficios.com>
7820
7821 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7822 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7823 (init_tu_and_read_dwo_dies): Likewise.
7824 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7825 (cutu_reader::cutu_reader): Likewise.
7826 (load_partial_comp_unit): Likewise.
7827 (process_psymtab_comp_unit): Update.
7828 (build_type_psymtabs_1): Update.
7829 (process_skeletonless_type_unit): Update.
7830 (load_full_comp_unit): Update.
7831 (find_partial_die): Update.
7832 (dwarf2_read_addr_index): Update.
7833 (read_signatured_type): Update.
7834
2e6a9f79
SM
78352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7836
7837 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7838 m_header_read_in>: New fields.
7839 <get_header>: New method.
7840 * dwarf2/read.c (per_cu_header_read_in): Remove.
7841 (dwarf2_per_cu_data::get_header): New.
7842 (dwarf2_per_cu_data::addr_size): Update.
7843 (dwarf2_per_cu_data::offset_size): Update.
7844 (dwarf2_per_cu_data::ref_addr_size): Update.
7845
1b555f17
SM
78462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7847
7848 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7849 (dw2_do_instantiate_symtab): Update.
7850 (queue_and_load_all_dwo_tus): Change parameter from
7851 dwarf2_per_cu_data to dwarf2_cu.
7852 (dwarf2_fetch_die_loc_sect_off): Update.
7853 (dwarf2_fetch_constant_bytes): Update.
7854 (dwarf2_fetch_die_type_sect_off): Update.
7855
8fc0b21d
SM
78562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7857
7858 * dwarf2/read.c (process_full_comp_unit,
7859 process_full_type_unit): Remove per_cu, per_objfile paramters.
7860 Add dwarf2_cu parameter.
7861 (process_queue): Update.
7862
168c9250
SM
78632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7864
7865 * dwarf2/read.c (create_cu_from_index_list): Replace
7866 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7867 (create_cus_from_index_list): Likewise.
7868 (create_cus_from_index): Likewise.
7869 (create_signatured_type_table_from_index): Likewise.
7870 (create_cus_from_debug_names_list): Likewise.
7871 (create_cus_from_debug_names): Likewise.
7872 (dwarf2_read_gdb_index): Update.
7873 (dwarf2_read_debug_names): Update.
7874
e286671b
TT
78752020-05-27 Tom Tromey <tom@tromey.com>
7876 Simon Marchi <simon.marchi@efficios.com>
7877
7878 * dwarf2/read.h (struct dwarf2_per_objfile)
7879 <get_type_for_signatured_type, set_type_for_signatured_type>:
7880 New methods.
7881 <m_type_map>: New member.
7882 (struct signatured_type) <type>: Remove.
7883 * dwarf2/read.c
7884 (dwarf2_per_objfile::get_type_for_signatured_type,
7885 dwarf2_per_objfile::set_type_for_signatured_type): New.
7886 (get_signatured_type): Use new methods.
7887
8adb8487
TT
78882020-05-27 Tom Tromey <tom@tromey.com>
7889 Simon Marchi <simon.marchi@efficios.com>
7890
7891 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7892 (struct dwarf2_per_objfile) <type_units>: New member.
7893 <get_type_unit_group_unshareable>: New method.
7894 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7895 num_symtabs, symtabs>: Remove; move to
7896 type_unit_group_unshareable.
7897 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7898 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7899 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7900
127bbf4b
SM
79012020-05-27 Simon Marchi <simon.marchi@efficios.com>
7902
7903 * dwarf2/read.h (struct dwarf2_per_cu_data):
7904 <dwarf2_per_objfile>: Remove.
7905 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7906 dwarf2_per_objfile.
7907 (create_signatured_type_table_from_index): Likewise.
7908 (create_signatured_type_table_from_debug_names): Likewise.
7909 (create_debug_type_hash_table): Likewise.
7910 (fill_in_sig_entry_from_dwo_entry): Likewise.
7911 (create_type_unit_group): Likewise.
7912 (read_comp_units_from_section): Likewise.
7913 (create_cus_hash_table): Likewise.
7914
f6e649dd
SM
79152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7918 dwarf2_per_cu_data::dwarf2_per_objfile.
7919 (compute_compunit_symtab_includes): Likewise.
7920 (dwarf2_cu::start_symtab): Likewise.
7921
aa66c379
SM
79222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7923
7924 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7925 parameter.
7926 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7927 (read_namespace_alias): Update.
7928 (lookup_die_type): Update.
7929 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7930 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7931 Update.
7932 (disassemble_dwarf_expression): Update.
7933
120ce1b5
SM
79342020-05-27 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * dwarf2/read.h (struct dwarf2_queue_item): Add
7937 dwarf2_per_objfile parameter, assign new parameter.
7938 <per_objfile>: New field.
7939 * dwarf2/read.c (free_one_cached_comp_unit): Add
7940 dwarf2_per_objfile parameter.
7941 (queue_comp_unit): Likewise.
7942 (dw2_do_instantiate_symtab): Update.
7943 (process_psymtab_comp_unit): Update.
7944 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7945 (process_imported_unit_die): Update.
7946 (queue_and_load_dwo_tu): Update.
7947 (follow_die_offset): Update.
7948 (follow_die_sig_1): Update.
7949
9f47c707
SM
79502020-05-27 Simon Marchi <simon.marchi@efficios.com>
7951
7952 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7953 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7954 (read_call_site_scope): Assign per_objfile.
7955 (dwarf2_per_cu_data::objfile): Remove.
7956 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7957 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7958 dwarf2_per_objfile parameter.
7959 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7960 dwarf2_per_objfile parameter.
7961 (dwarf_expr_reg_to_entry_parameter): Add output
7962 dwarf2_per_objfile parameter.
7963 (locexpr_get_frame_base): Update.
7964 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7965 <push_dwarf_reg_entry_value>: Update.
7966 <call_site_to_target_addr>: Update.
7967 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7968 parameter.
7969 (value_of_dwarf_reg_entry): Update.
7970 (rw_pieced_value): Update.
7971 (indirect_synthetic_pointer): Update.
7972 (dwarf2_evaluate_property): Update.
7973 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7974 parameter.
7975 (locexpr_read_variable): Update.
7976 (locexpr_get_symbol_read_needs): Update.
7977 (loclist_read_variable): Update.
7978
14095eb3
SM
79792020-05-27 Simon Marchi <simon.marchi@efficios.com>
7980
7981 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7982 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7983 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7984 parameter.
7985 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7986 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7987 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7988 parameter.
7989 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7990 sect_variable_value): Add dwarf2_per_objfile parameter.
7991 (class dwarf_evaluate_loc_desc) <dwarf_call,
7992 dwarf_variable_value>: Update.
7993 (fetch_const_value_from_synthetic_pointer): Add
7994 dwarf2_per_objfile parameter.
7995 (fetch_const_value_from_synthetic_pointer): Update.
7996 (coerced_pieced_ref): Update.
7997 (class symbol_needs_eval_context) <dwarf_call,
7998 dwarf_variable_value>: Update.
7999 (dwarf2_compile_expr_to_ax): Update.
8000
3c3cd3d4
SM
80012020-05-27 Simon Marchi <simon.marchi@efficios.com>
8002
8003 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8004 parameter.
8005 (dwarf2_evaluate_loc_desc_full): Update.
8006
82ca3f51
SM
80072020-05-27 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8010 parameter.
8011 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8012 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8013 dwarf2_per_objfile parameter.
8014 (decode_debug_loc_dwo_addresses): Likewise.
8015 (dwarf2_find_location_expression): Update.
8016 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8017 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8018 parameter.
8019 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8020 parameter.
8021 (locexpr_describe_location_1): Likewise.
8022 (locexpr_describe_location): Update.
8023
4b167ea1
SM
80242020-05-27 Simon Marchi <simon.marchi@efficios.com>
8025
8026 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8027 Remove.
8028 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8029 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8030 (dwarf2_compile_property_to_c): Update.
8031 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8032 use text offset from objfile.
8033 (locexpr_tracepoint_var_ref): Update.
8034 (locexpr_generate_c_location): Update.
8035 (loclist_describe_location): Update.
8036 (loclist_tracepoint_var_ref): Update.
8037 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8038 dwarf2_per_objfile parameter.
8039 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8040 use text offset from objfile.
8041 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8042
89b07335
SM
80432020-05-27 Simon Marchi <simon.marchi@efficios.com>
8044
8045 * dwarf2/expr.h (struct dwarf_expr_context)
8046 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8047 <offset>: Remove.
8048 <per_objfile>: New member.
8049 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8050 dwarf2_per_objfile parameter. Don't set offset, set
8051 per_objfile.
8052 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8053 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8054 a dwarf2_per_objfile object instead of an offset.
8055 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8056 constructor.
8057 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8058 to dwarf2_expr_executor constructor. Don't set offset.
8059 (dwarf2_fetch_cfa_info): Update.
8060 (struct dwarf2_frame_cache) <text_offset>: Remove.
8061 <per_objfile>: New field.
8062 (dwarf2_frame_cache): Update.
8063 (dwarf2_frame_prev_register): Update.
8064 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8065 <dwarf_evaluate_loc_desc>: Add constructor.
8066 (dwarf2_evaluate_loc_desc_full): Update.
8067 (dwarf2_locexpr_baton_eval): Update.
8068 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8069 Add constructor.
8070 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8071
293e7e51
SM
80722020-05-27 Simon Marchi <simon.marchi@efficios.com>
8073
8074 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8075 addr_sized_int_type>: Move to dwarf2_cu.
8076 <int_type>: Move to dwarf2_per_objfile.
8077 (struct dwarf2_per_objfile) <int_type>: Move here.
8078 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8079 addr_sized_int_type>: Move here.
8080 (read_func_scope): Update.
8081 (read_array_type): Update.
8082 (read_tag_string_type): Update.
8083 (attr_to_dynamic_prop): Update.
8084 (dwarf2_per_cu_data::int_type): Rename to...
8085 (dwarf2_per_objfile::int_type): ... this.
8086 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8087 (dwarf2_cu::addr_sized_int_type): ... this.
8088 (read_subrange_type): Update.
8089 (dwarf2_per_cu_data::addr_type): Rename to...
8090 (dwarf2_cu::addr_type): ... this.
8091 (set_die_type): Update.
8092
64874a40
SM
80932020-05-27 Simon Marchi <simon.marchi@efficios.com>
8094
8095 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8096 data through per_cu->cu.
8097
4ab09049
SM
80982020-05-27 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8101 dwarf2_per_cu_data parameter fo dwarf2_cu.
8102 (lookup_dwo_type_unit): Likewise.
8103 (read_cutu_die_from_dwo): Likewise.
8104 (lookup_dwo_unit): Likewise.
8105 (open_and_init_dwo_file): Likewise.
8106 (lookup_dwo_cutu): Likewise.
8107 (lookup_dwo_comp_unit): Likewise.
8108 (lookup_dwo_type_unit): Likewise.
8109 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8110 (cutu_reader::cutu_reader): Update.
8111
47b14e86
SM
81122020-05-27 Simon Marchi <simon.marchi@efficios.com>
8113
8114 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8115 parameter.
8116 (process_full_type_unit): Likewise.
8117 (process_queue): Update.
8118
43182c09
SM
81192020-05-27 Simon Marchi <simon.marchi@efficios.com>
8120
8121 * dwarf2/read.c (recursively_compute_inclusions): Add
8122 dwarf2_per_objfile parameter.
8123 (compute_compunit_symtab_includes): Likewise.
8124 (process_cu_includes): Update.
8125
7aa104c4
SM
81262020-05-27 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8129 parameter.
8130 (create_type_unit_group): Update.
8131 (process_psymtab_comp_unit_reader): Update.
8132 (build_type_psymtabs_reader): Update.
8133
e3beb21d
SM
81342020-05-27 Simon Marchi <simon.marchi@efficios.com>
8135
8136 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8137 object through m_this_cu->cu.
8138
d460f660
SM
81392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8140
8141 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8142 the info parameter.
8143 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8144
ab432490
SM
81452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8146
8147 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8148 per_objfile parameter.
8149 (load_full_type_unit): Add per_objfile parameter.
8150 (read_signatured_type): Likewise.
8151 (load_full_comp_unit): Likewise.
8152 (load_cu): Likewise.
8153 (dw2_do_instantiate_symtab): Likewise.
8154 (dw2_get_file_names): Likewise.
8155 (dw2_map_symtabs_matching_filename): Update.
8156 (dw_expand_symtabs_matching_file_matcher): Update.
8157 (dw2_map_symbol_filenames): Update.
8158 (process_psymtab_comp_unit): Add per_objfile parameter.
8159 (build_type_psymtabs_1): Update.
8160 (process_skeletonless_type_unit): Update.
8161 (dwarf2_build_psymtabs_hard): Update.
8162 (load_partial_comp_unit): Add per_objfile parameter.
8163 (scan_partial_symbols): Update.
8164 (load_full_comp_unit): Add per_objfile parameter.
8165 (process_imported_unit_die): Update.
8166 (create_cus_hash_table): Update.
8167 (find_partial_die): Update.
8168 (dwarf2_read_addr_index): Update.
8169 (follow_die_offset): Update.
8170 (dwarf2_fetch_die_loc_sect_off): Update.
8171 (dwarf2_fetch_constant_bytes): Update.
8172 (dwarf2_fetch_die_type_sect_off): Update.
8173 (follow_die_sig_1): Update.
8174 (load_full_type_unit): Add per_objfile parameter.
8175 (read_signatured_type): Likewise.
8176
313bad1b
SM
81772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8178
8179 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8180 of objfile_name.
8181
c3699833
SM
81822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8183
8184 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8185 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8186 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8187 field.
8188 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8189 (create_cus_from_index): Update.
8190 (dwarf2_read_gdb_index): Update.
8191 (create_cus_from_debug_names): Update.
8192 (dwarf2_read_debug_names): Update.
8193 (get_abbrev_section_for_cu): Update.
8194 (create_all_comp_units): Update.
8195 (read_attribute_value): Update.
8196 (get_debug_line_section): Update.
8197 * dwarf2/index-cache.c (index_cache::store): Update.
8198 * dwarf2/index-write.c (save_gdb_index_command): Update.
8199 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8200
1859c670
SM
82012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8202
8203 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8204 member.
8205 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8206 dwarf2_per_cu_data::per_bfd.
8207 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8208 (create_type_unit_group): Likewise.
8209 (queue_comp_unit): Remove reference to
8210 per_cu->dwarf2_per_objfile.
8211 (maybe_queue_comp_unit): Likewise.
8212 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8213 (create_cus_hash_table): Assign new field.
8214
5e22e966
SM
82152020-05-27 Simon Marchi <simon.marchi@efficios.com>
8216
8217 * dwarf2/read.c: Replace
8218 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8219 dwarf2_cu->per_objfile throughout.
8220
97a1449a
SM
82212020-05-27 Simon Marchi <simon.marchi@efficios.com>
8222
8223 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8224 parameter, don't use per_cu->dwarf2_per_objfile.
8225 (dw2_instantiate_symtab): Likewise.
8226 (dw2_find_last_source_symtab): Update.
8227 (dw2_map_expand_apply): Update.
8228 (dw2_lookup_symbol): Update.
8229 (dw2_expand_symtabs_for_function): Update.
8230 (dw2_expand_all_symtabs): Update.
8231 (dw2_expand_symtabs_with_fullname): Update.
8232 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8233 don't use per_cu->dwarf2_per_objfile.
8234 (dw2_expand_marked_cus): Update.
8235 (dw2_find_pc_sect_compunit_symtab): Update.
8236 (dw2_debug_names_lookup_symbol): Update.
8237 (dw2_debug_names_expand_symtabs_for_function): Update.
8238 (dw2_debug_names_map_matching_symbols): Update.
8239 (dwarf2_psymtab::expand_psymtab): Update.
8240
9e021579
SM
82412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8242
8243 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8244 <per_objfile>: New member.
8245 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8246 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8247 call to dwarf2_cu.
8248 (cutu_reader::cutu_reader): Update.
8249 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8250
ae090bdb
SM
82512020-05-27 Simon Marchi <simon.marchi@efficios.com>
8252
8253 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8254 struct dwarf2_per_objfile.
8255 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8256 dwarf2_per_bfd.
8257 * dwarf2/read.c (set_die_type): Update.
8258 (get_die_type_at_offset): Update.
8259
af758d11
SM
82602020-05-27 Tom Tromey <tom@tromey.com>
8261 Simon Marchi <simon.marchi@efficios.com>
8262
8263 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8264 method.
8265 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8266 get_symtab, set_symtab>: New methods.
8267 <m_symtabs>: New field.
8268 (struct dwarf2_psymtab): Derive from partial_symtab.
8269 <readin_p, get_compunit_symtab>: Declare methods.
8270 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8271 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8272 New methods.
8273 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8274 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8275 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8276 (dw2_symtab_iter_next, dw2_print_stats)
8277 (dw2_expand_symtabs_with_fullname)
8278 (dw2_expand_symtabs_matching_one)
8279 (dw_expand_symtabs_matching_file_matcher)
8280 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8281 (dw2_debug_names_iterator::next)
8282 (dw2_debug_names_map_matching_symbols)
8283 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8284 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8285 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8286 New methods.
8287 (get_compunit_symtab, process_full_comp_unit)
8288 (process_full_type_unit): Update.
8289 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8290
5989a64e
SM
82912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8292
8293 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8294 then introduce a new dwarf2_per_objfile type.
8295 <read_line_string>: Move to the new dwarf2_per_objfile type.
8296 <objfile>: Likewise.
8297 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8298 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8299 dwarf2_per_objfile->per_bfd.
8300 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8301 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8302 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8303 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8304 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8305 (dwarf2_per_objfile::locate_sections): Rename to...
8306 (dwarf2_per_bfd::locate_sections): ... this.
8307 (dwarf2_per_objfile::get_cutu): Rename to...
8308 (dwarf2_per_bfd::get_cutu): ... this.
8309 (dwarf2_per_objfile::get_cu): Rename to...
8310 (dwarf2_per_bfd::get_cu): ... this.
8311 (dwarf2_per_objfile::get_tu): Rename to...
8312 (dwarf2_per_bfd::get_tu): ... this.
8313 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8314 (dwarf2_per_bfd::allocate_per_cu): ... this.
8315 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8316 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8317 (get_gdb_index_contents_ftype): Change parameter from
8318 dwarf2_per_objfile to dwarf2_per_bfd.
8319 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8320 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8321
a50264ba
TT
83222020-05-27 Tom Tromey <tom@tromey.com>
8323 Simon Marchi <simon.marchi@efficios.com>
8324
8325 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8326 (allocate_piece_closure): Set "per_objfile" member.
8327 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8328 (locexpr_describe_location, loclist_describe_location): Use new
8329 member.
8330 * dwarf2/read.c (read_call_site_scope)
8331 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8332 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8333 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8334 handle_data_member_location): Set per_objfile member.
8335 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8336 member.
8337 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8338
d3473f0c
TT
83392020-05-27 Tom Tromey <tom@tromey.com>
8340
8341 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8342 allocate_signatured_type>: Declare new methods.
8343 <m_num_psymtabs>: New member.
8344 (struct dwarf2_per_cu_data) <index>: New member.
8345 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8346 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8347 (create_cu_from_index_list): Use allocate_per_cu.
8348 (create_signatured_type_table_from_index)
8349 (create_signatured_type_table_from_debug_names)
8350 (create_debug_type_hash_table, add_type_unit)
8351 (read_comp_units_from_section): Use allocate_signatured_type.
8352
5717c425
TT
83532020-05-27 Tom Tromey <tom@tromey.com>
8354
8355 * psymtab.c (partial_map_expand_apply)
8356 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8357 (psym_lookup_global_symbol_language)
8358 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8359 (psym_print_stats, psym_expand_symtabs_for_function)
8360 (psym_map_symbol_filenames, psym_map_matching_symbols)
8361 (psym_expand_symtabs_matching)
8362 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8363 (maintenance_check_psymtabs): Update.
8364 * psympriv.h (struct partial_symtab) <readin_p,
8365 get_compunit_symtab>: Add objfile parameter.
8366 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8367 Likewise.
8368 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8369 get_compunit_symtab>: Likewise.
8370 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8371
45940949
TT
83722020-05-27 Tom Tromey <tom@tromey.com>
8373
8374 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8375 member.
8376 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8377 (create_cu_from_index_list)
8378 (create_signatured_type_table_from_index)
8379 (create_signatured_type_table_from_debug_names)
8380 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8381 (dwarf2_create_include_psymtab)
8382 (create_debug_type_hash_table, add_type_unit)
8383 (create_type_unit_group, read_comp_units_from_section)
8384 (dwarf2_compute_name, create_cus_hash_table)
8385 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8386 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8387 obstack.
8388 (dw2_get_real_path): Likewise. Change argument to
8389 dwarf2_per_objfile.
8390
f8c6d152
LM
83912020-05-27 Luis Machado <luis.machado@linaro.org>
8392
8393 PR tdep/26000
8394 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8395 for ldrd (immediate).
8396
e98d2e6d
PW
83972020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8398
8399 * command.h: Add comment giving the name of class_tui.
8400 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8401 create the fake command for the help for class_tui.
8402
53a47a3e
TT
84032020-05-26 Tom Tromey <tromey@adacore.com>
8404
8405 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8406 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8407 (val_atr): New function.
8408 (value_val_atr): Use it.
8409 * ada-valprint.c (print_optional_low_bound): Change low bound
8410 handling for enums.
8411 (val_print_packed_array_elements): Don't call discrete_position.
8412 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8413 discrete_position for enum types.
8414 * language.c (default_print_array_index): Change type.
8415 * language.h (struct language_defn) <la_print_array_index>: Add
8416 index_type parameter, change type of index_value.
8417 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8418 (default_print_array_index): Update.
8419 * valprint.c (maybe_print_array_index): Don't call
8420 value_from_longest. Update.
8421 (value_print_array_elements): Don't call discrete_position.
8422
0bc2354b
TT
84232020-05-26 Tom Tromey <tromey@adacore.com>
8424
8425 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8426 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8427
1218a4bf
CDA
84282020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8429
8430 PR gdb/13519
8431 * avr-tdep.c (avr_integer_to_address): Return data or code
8432 address accordingly to the second 'type' argument of the
8433 function.
8434
92651b1d
MW
84352020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8436
8437 * infcmd.c, inferior.h: (construct_inferior_arguments):
8438 Moved function from here to gdbsupport/common-inferior.{h,cc}
8439
0a4f5f8c
TT
84402020-05-23 Tom Tromey <tom@tromey.com>
8441
8442 Revert commit eca1f90c:
8443 * NEWS: Remove entry for completion styling.
8444 * completer.c (_rl_completion_prefix_display_length): Move
8445 declaration later.
8446 (gdb_fnprint): Revert.
8447 (gdb_display_match_list_1): Likewise.
8448 * cli/cli-style.c (completion_prefix_style)
8449 (completion_difference_style, completion_suffix_style): Remove.
8450 (_initialize_cli_style): Revert.
8451 * cli/cli-style.h (completion_prefix_style)
8452 (completion_difference_style, completion_suffix_style): Don't
8453 declare.
8454
e08bd6c5
PA
84552020-05-24 Pedro Alves <palves@redhat.com>
8456
8457 * symtab.c (completion_list_add_name): Return boolean indication
8458 of whether the symbol matched.
8459 (completion_list_add_symbol): Don't try to remove C++ aliases if
8460 the symbol didn't match in the first place.
8461 * symtab.h (completion_list_add_name): Return bool.
8462
ceacbf6e
SM
84632020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8464
8465 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8466 type::field.
8467
26f16254
JB
84682020-05-23 Joel Brobecker <brobecker@adacore.com>
8469
8470 GDB 9.2 released.
8471
eca1f90c
TT
84722020-05-23 Tom Tromey <tom@tromey.com>
8473
8474 * NEWS: Add entry for completion styling.
8475 * completer.c (_rl_completion_prefix_display_length): Move
8476 declaration earlier.
8477 (gdb_fnprint): Use completion_style.
8478 (gdb_display_match_list_1): Likewise.
8479 * cli/cli-style.c (completion_prefix_style)
8480 (completion_difference_style, completion_suffix_style): New
8481 globals.
8482 (_initialize_cli_style): Register new globals.
8483 * cli/cli-style.h (completion_prefix_style)
8484 (completion_difference_style, completion_suffix_style): Declare.
8485
51e2cfa2
PA
84862020-05-23 Pedro Alves <palves@redhat.com>
8487
8488 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8489 (parse_escape): Use ISDIGIT instead of isdigit.
8490 (puts_debug): Use gdb_isprint instead of isprint.
8491 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8492 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8493 ISSPACE instead of isspace.
8494 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8495 instead of isspace.
8496 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8497 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8498 instead of isxdigit and ISDIGIT instead of isdigit.
8499
80fc5e77
SM
85002020-05-22 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * gdbtypes.h (struct type) <field>: New method.
8503 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8504 or type::field.
8505
3cabb6b0
SM
85062020-05-22 Simon Marchi <simon.marchi@efficios.com>
8507
8508 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8509 (TYPE_FIELDS): Use type::fields. Change all call sites that
8510 modify the propery to use type::set_fields instead.
8511
1f704f76
SM
85122020-05-22 Simon Marchi <simon.marchi@efficios.com>
8513
8514 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8515 type::num_fields instead.
8516
5e33d5f4
SM
85172020-05-22 Simon Marchi <simon.marchi@efficios.com>
8518
8519 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8520 methods.
8521 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8522 that modify the number of fields to use type::set_num_fields
8523 instead.
8524
9392ebb3
TT
85252020-05-22 Tom Tromey <tromey@adacore.com>
8526
8527 * compile/compile-object-load.h (munmap_list_free): Don't
8528 declare.
8529
7c13f4e8
AB
85302020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8531
8532 * annotate.c (annotate_source_line): Update return type, add call
8533 to update current symtab and line.
8534 * annotate.h (annotate_source_line): Update return type, and
8535 extend header comment.
8536 * source.c (info_line_command): Check annotation_level before
8537 calling annotate_source_line.
8538 * stack.c (print_frame_info): If calling annotate_source_line
8539 returns true, then don't print any other source line information.
8540
aa370940
SM
85412020-05-21 Simon Marchi <simon.marchi@efficios.com>
8542
8543 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8544
84d53fa9
SM
85452020-05-21 Simon Marchi <simon.marchi@efficios.com>
8546
8547 * coffread.c (patch_type): Remove NULL check before xfree.
8548 * corefile.c (set_gnutarget): Likewise.
8549 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8550 * exec.c (build_section_table): Likewise.
8551 * remote.c (remote_target::pass_signals): Likewise.
8552 * utils.c (n_spaces): Likewise.
8553 * cli/cli-script.c (document_command): Likewise.
8554 * i386-windows-tdep.c (core_process_module_section): Likewise.
8555 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8556
9d428aae
SM
85572020-05-20 Simon Marchi <simon.marchi@efficios.com>
8558
8559 * symfile.c (reread_symbols): Clear objfile's section_offsets
8560 vector and section indices, re-compute them by calling
8561 sym_offsets.
8562
250106a7
TT
85632020-05-20 Tom Tromey <tromey@adacore.com>
8564
8565 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8566 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8567
9a0bacfb
TV
85682020-05-20 Tom de Vries <tdevries@suse.de>
8569
8570 PR symtab/25833
8571 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8572
7b958a48
AM
85732020-05-20 Alan Modra <amodra@gmail.com>
8574
8575 PR 25993
8576 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8577 bfd_set_filename.
8578 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8579 passed to bfd_set_filename.
8580 * symfile-mem.c (add_vsyscall_page): Likewise for string
8581 passed to symbol_file_add_from_memory.
8582 (symbol_file_add_from_memory): Make name param a const char* and
8583 don't strdup.
8584
c7e97679
AM
85852020-05-20 Alan Modra <amodra@gmail.com>
8586
8587 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8588 rather than accessing bfd->filename directly.
8589 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8590 and use bfd_section_name.
8591 * dwarf2/frame.c (decode_frame_entry): Likewise.
8592 * exec.c (exec_set_section_address): Likewise.
8593 * solib-aix.c (solib_aix_bfd_open): Likewise.
8594 * stap-probe.c (get_stap_base_address): Likewise.
8595 * symfile.c (reread_symbols): Likewise.
8596
563c591b
TT
85972020-05-19 Tom Tromey <tromey@adacore.com>
8598
8599 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8600
f408d82c
SM
86012020-05-19 Simon Marchi <simon.marchi@efficios.com>
8602
8603 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8604
98c59b52
PA
86052020-05-19 Pedro Alves <palves@redhat.com>
8606
8607 * NEWS (set exec-file-mismatch): Adjust entry.
8608 * exec.c: Include "build-id.h".
8609 (validate_exec_file): Try to match build IDs instead of filenames.
8610 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8611 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8612 and pass down 'warn_if_slow'.
8613 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8614 gdb_bfd_open_closure to pass it down.
8615 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8616
4111f652
PA
86172020-05-19 Pedro Alves <palves@redhat.com>
8618
8619 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8620 * target.c (target_fileio_open_1): Rename to target_fileio_open
8621 and make extern. Use bool.
8622 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8623 (target_fileio_read_alloc_1): Adjust.
8624 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8625 (target_fileio_open_warn_if_slow): Delete declaration.
8626
ad80db5b
PA
86272020-05-19 Pedro Alves <palves@redhat.com>
8628
8629 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8630 Adjust all callers.
8631
1d6ce4d3
YS
86322020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8633
8634 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8635 whether disp is negative.
8636
9005fbbb
SM
86372020-05-19 Simon Marchi <simon.marchi@efficios.com>
8638
8639 * symfile.h (struct symfile_segment_data)
8640 <~symfile_segment_data>: Remove.
8641 <segment_info>: Change to std::vector.
8642 * symfile.c (default_symfile_segments): Update.
8643 * elfread.c (elf_symfile_segments): Update.
8644
68b888ff
SM
86452020-05-19 Simon Marchi <simon.marchi@efficios.com>
8646
8647 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8648 <segments>: New.
8649 <segment_bases, segment_sizes>: Remove.
8650 * symfile.c (default_symfile_segments): Update.
8651 * elfread.c (elf_symfile_segments): Update.
8652 * remote.c (remote_target::get_offsets): Update.
8653 * solib-target.c (solib_target_relocate_section_addresses):
8654 Update.
8655
62982abd
SM
86562020-05-19 Simon Marchi <simon.marchi@efficios.com>
8657
8658 * symfile.h (struct symfile_segment_data): Initialize fields.
8659 <~symfile_segment_data>: Add.
8660 (symfile_segment_data_up): New.
8661 (struct sym_fns) <sym_segments>: Return a
8662 symfile_segment_data_up.
8663 (default_symfile_segments): Return a symfile_segment_data_up.
8664 (free_symfile_segment_data): Remove.
8665 (get_symfile_segment_data): Return a symfile_segment_data_up.
8666 * symfile.c (default_symfile_segments): Likewise.
8667 (get_symfile_segment_data): Likewise.
8668 (free_symfile_segment_data): Remove.
8669 (symfile_find_segment_sections): Update.
8670 * elfread.c (elf_symfile_segments): Return a
8671 symfile_segment_data_up.
8672 * remote.c (remote_target::get_offsets): Update.
8673 * solib-target.c (solib_target_relocate_section_addresses):
8674 Update.
8675 * symfile-debug.c (debug_sym_segments): Return a
8676 symfile_segment_data_up.
8677
7f204339
RO
86782020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8679
e52a0f1b
RO
8680 PR build/25981
8681 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8682 Hardcode register numbers.
8683
7f204339
RO
8684 PR build/25981
8685 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8686 procfs_find_LDT_entry): Remove.
8687 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8688 procfs_find_LDT_entry): Remove.
8689 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8690 Remove.
8691
7f32a4d5
PA
86922020-05-17 Pedro Alves <palves@redhat.com>
8693 Andrew Burgess <andrew.burgess@embecosm.com>
8694 Keno Fischer <keno@juliacomputing.com>
8695
8696 PR gdb/25741
8697 * breakpoint.c (build_target_condition_list): Update comments.
8698 (build_target_command_list): Update comments and skip matching
8699 locations.
8700 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8701 a separate function. Simplify "set breakpoint auto-hw off"
8702 handling.
8703 (insert_breakpoints): Update comment.
8704 (tracepoint_locations_match): New parameter. For breakpoints,
8705 compare location types too, if the caller wants to.
8706 (handle_automatic_hardware_breakpoints): New functions.
8707 (bp_location_is_less_than): Also sort by location type and
8708 hardware breakpoint length.
8709 (update_global_location_list): Handle "set breakpoint auto-hw on"
8710 here.
8711 (update_breakpoint_locations): Ask breakpoint_locations_match to
8712 ignore location types.
8713
7d93a1e0
SM
87142020-05-16 Simon Marchi <simon.marchi@efficios.com>
8715
8716 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8717 type::name instead.
8718
d0e39ea2
SM
87192020-05-16 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * gdbtypes.h (struct type) <name, set_name>: New methods.
8722 (TYPE_CODE): Use type::name. Change all call sites used to set
8723 the name to use type::set_name instead.
8724
2dab0c7b
TT
87252020-05-16 Tom Tromey <tom@tromey.com>
8726
8727 * top.c (quit_force): Update.
8728 * infrun.c (handle_no_resumed): Update.
8729 * top.h (all_uis): New function.
8730 (ALL_UIS): Remove.
8731
59f7bd8d
SM
87322020-05-16 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8735
9bf058f0
PA
87362020-05-16 Pedro Alves <palves@redhat.com>
8737
8738 * ia64-linux-nat.c
8739 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8740 Declare method.
8741 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8742
8f86ae1a
SM
87432020-05-15 Simon Marchi <simon.marchi@efficios.com>
8744
8745 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8746 (sparc64_adi_info): Likewise.
8747
d6bc0792
TT
87482020-05-15 Tom Tromey <tom@tromey.com>
8749
8750 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8751 block_objfile.
8752 (lookup_objfile_from_block): Remove.
8753 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8754 (lookup_global_symbol): Use block_objfile.
8755 * symtab.h (lookup_objfile_from_block): Don't declare.
8756 * printcmd.c (clear_dangling_display_expressions): Use
8757 block_objfile.
8758 * parse.c (operator_check_standard): Use block_objfile.
8759
8c14c3a3
TT
87602020-05-15 Tom Tromey <tom@tromey.com>
8761
8762 * language.c (language_alloc_type_symbol): Set
8763 SYMBOL_SECTION.
8764 * symtab.c (initialize_objfile_symbol): Remove.
8765 (allocate_symbol): Remove.
8766 (allocate_template_symbol): Remove.
8767 * dwarf2/read.c (fixup_go_packaging): Use "new".
8768 (new_symbol): Use "new".
8769 (read_variable): Don't call initialize_objfile_symbol. Use
8770 "new".
8771 (read_func_scope): Use "new".
8772 * xcoffread.c (process_xcoff_symbol): Don't call
8773 initialize_objfile_symbol.
8774 (SYMBOL_DUP): Remove.
8775 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8776 "new".
8777 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8778 (allocate_template_symbol): Don't declare.
8779 (struct symbol): Add copy constructor. Change defaults.
8780 * jit.c (finalize_symtab): Use "new".
8781 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8782 Use "new".
8783 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8784 (common_block_end): Use "new".
8785 * mdebugread.c (parse_symbol): Use "new".
8786 (new_symbol): Likewise.
8787
5b4a1a8d
PW
87882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8789
8790 * NEWS: Mention changes to help and apropos.
8791
57b4f16e
PW
87922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8793
8794 * command.h (enum command_class): Improve comments, document
8795 that class_alias is for user-defined aliases, give the class
8796 name for each class, remove unused class_xdb.
8797 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8798 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8799 by a precise class.
8800 * infcmd.c (_initialize_infcmd): Likewise.
8801 * reverse.c (_initialize_reverse): Likewise.
8802 * stack.c (_initialize_stack): Likewise.
8803 * symfile.c (_initialize_symfile): Likewise.
8804 * tracepoint.c (_initialize_tracepoint): Likewise.
8805
7c05caf7
PW
88062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8807
8808 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8809 when their aliased command is traversed.
8810 (help_cmd): Add fput_command_names_styled call to
8811 output command name and aliases when command has an alias.
8812
3b3aaacb
PW
88132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8814
8815 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8816 * cli/cli-decode.c (help_cmd_list): Declare as static,
8817 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8818 a command together with the command.
8819 (fput_command_name_styled, fput_command_names_styled): New functions.
8820 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8821 fput_command_name_styled.
8822 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8823 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8824
7aa1b46f
PW
88252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8826
8827 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8828 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8829 * command.h (cmd_show_list): Likewise.
8830 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8831 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8832
89bcba74
PW
88332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8834
8835 * unittests/command-def-selftests.c (traverse_command_structure):
8836 Verify all commands of a list have the same prefix command and
8837 that only the top cmdlist commands have a null prefix.
8838
3f4d92eb
PW
88392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8840
8841 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8842 as prefix, not one of its aliases.
8843 (set_cmd_prefix): Remove.
8844 (do_add_cmd): Centralize the setting of the prefix of a command, when
8845 command is defined after its full chain of prefix commands.
8846 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8847 (add_setshow_cmd_full): Likewise.
8848 (update_prefix_field_of_prefixed_commands): New function.
8849 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8850 update_prefix_field_of_prefixed_commands.
8851 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8852 addresses of remote_set_cmdlist and remote_show_cmdlist given
8853 as argument, not the address of an argument.
8854 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8855 * gdb/remote.c (_initialize_remote): Likewise.
8856
0605465f
PW
88572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8858
8859 * cli/cli-cmds.c (alias_command): Check for an existing alias
8860 using lookup_cmd_composition, as valid_command_p is too strict
8861 and forbids aliases that are the prefix of an existing alias
8862 or command.
8863 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8864 command is properly recognised as a valid command.
8865
58e6ac70
PW
88662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8867
8868 * unittests/help-doc-selftests.c: Rename to
8869 unittests/command-def-selftests.c
8870 * unittests/command-def-selftests.c (help_doc_tests): Update some
8871 comments.
8872 (command_structure_tests, traverse_command_structure): New namespace
8873 and function.
8874 (command_structure_invariants_tests): New function.
8875 (_initialize_command_def_selftests) Renamed from
8876 _initialize_help_doc_selftests, register command_structure_invariants
8877 selftest.
8878
a7b9ceb8
PW
88792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8880
8881 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8882 an alias of 'show'.
8883
b2188a06
JB
88842020-05-15 Joel Brobecker <brobecker@adacore.com>
8885
8886 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8887 ada_is_fixed_point_type. Update all callers.
8888 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8889 all callers.
8890 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8891 Update all callers.
8892 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8893 print_fixed_point_type. Update all callers.
8894 * ada-valprint.c (ada_value_print_num): Replace call to
8895 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8896
a51951c2
KB
88972020-05-14 Kevin Buettner <kevinb@redhat.com>
8898
8899 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8900 processors.
8901 (cpu_supports_bts): Add CV_AMD case.
8902
29d6859f
LM
89032020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8904 Simon Marchi <simon.marchi@efficios.com>
8905
8906 * infrun.c (stop_all_threads): Collect multiple wait events at
8907 each pass.
8908
78134374
SM
89092020-05-14 Simon Marchi <simon.marchi@efficios.com>
8910
8911 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8912 type::code instead.
8913
67607e24
SM
89142020-05-14 Simon Marchi <simon.marchi@efficios.com>
8915
8916 * gdbtypes.h (struct type) <code, set_code>: New methods.
8917 (TYPE_CODE): Use type::code. Change all call sites used to set
8918 the code to use type::set_code instead.
8919
a05575d3
TBA
89202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8921 Tom de Vries <tdevries@suse.de>
8922 Pedro Alves <palves@redhat.com>
8923
8924 PR threads/25478
8925 * infrun.c (stop_all_threads): Do NOT ignore
8926 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8927 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8928 received.
8929 (handle_no_resumed): Remove code handling a live inferior with no
8930 threads.
8931 * remote.c (has_single_non_exited_thread): New.
8932 (remote_target::update_thread_list): Do not delete a thread if is
8933 the last thread of the process.
8934 * thread.c (thread_select): Call delete_exited_threads instead of
8935 prune_threads.
8936
6ad82919
TBA
89372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8938
8939 * infrun.c (stop_all_threads): Enable/disable thread events of all
8940 targets. Move a debug message denoting the end of the function
8941 into the SCOPED_EXIT block.
8942
d890404b
TBA
89432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8944
8945 * process-stratum-target.h: Include <set>.
8946 (all_non_exited_process_targets, switch_to_target_no_thread): New
8947 function declarations.
8948 * process-stratum-target.c (all_non_exited_process_targets)
8949 (switch_to_target_no_thread): New function implementations.
8950
293b3ebc
TBA
89512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8952
8953 * infrun.c (handle_inferior_event): Extract out a piece of code
8954 into...
8955 (mark_non_executing_threads): ...this new function.
8956
7ca9b62a
TBA
89572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8958
8959 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8960 use.
8961
fc75c28b
TBA
89622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8963
8964 * regcache.c (regcache_read_pc_protected): New function
8965 implementation that returns 0 if the PC cannot read via
8966 'regcache_read_pc'.
8967 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8968 instead of 'regcache_read_pc'.
8969 (keep_going_pass_signal): Ditto.
8970
a89febbd
TT
89712020-05-13 Tom Tromey <tromey@adacore.com>
8972
8973 * ada-lang.c (align_value): Remove.
8974 (ada_template_to_fixed_record_type_1): Use align_up.
8975
f7e23710
TBA
89762020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8977
8978 * async-event.c: Update the copyright year.
8979 * async-event.h: Update the copyright year.
8980
02ff80c2
SM
89812020-05-12 Simon Marchi <simon.marchi@efficios.com>
8982
8983 * objfiles.h (is_addr_in_objfile,
8984 shared_objfile_contains_address_p): Return bool.
8985 * objfile.c (is_addr_in_objfile,
8986 shared_objfile_contains_address_p): Return bool.
8987
4fd6c7e8
TT
89882020-05-11 Tom Tromey <tromey@adacore.com>
8989
8990 * cli/cli-cmds.c (info_command): Restore.
8991 (_initialize_cli_cmds): Use add_prefix_command for "info".
8992 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8993
5eb68a39
TT
89942020-05-11 Tom Tromey <tromey@adacore.com>
8995
8996 * ada-lang.c (ada_value_primitive_field): Now public.
8997 * ada-lang.h (ada_value_primitive_field): Declare.
8998 * ada-valprint.c (print_field_values): Use
8999 ada_value_primitive_field for wrapper fields.
9000
7666722f
TV
90012020-05-11 Tom de Vries <tdevries@suse.de>
9002
9003 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9004 MODULE_DOMAIN.
9005
3ee6bb11
TV
90062020-05-11 Tom de Vries <tdevries@suse.de>
9007
9008 PR symtab/25941
9009 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9010 with length 0, if not gdb-produced.
9011 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9012
43434996
TV
90132020-05-09 Tom de Vries <tdevries@suse.de>
9014
9015 PR gdb/25955
9016 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9017 calculation.
9018
2f78cffc
TT
90192020-05-09 Tom Tromey <tom@tromey.com>
9020
9021 * top.c (server_command): Now bool.
9022 * top.h (server_command): Now bool.
9023
4f7bc5ed
TT
90242020-05-08 Tom Tromey <tromey@adacore.com>
9025
9026 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9027 already being processed.
9028
8be4b118
TT
90292020-05-08 Tom Tromey <tom@tromey.com>
9030
9031 * printcmd.c (struct display) <next>: Remove.
9032 <display>: New constructor.
9033 <exp_string>: Now a std::string.
9034 <enabled_p>: Now a bool.
9035 (display_number): Move definition earlier.
9036 (displays): Rename from display_chain. Now a std::vector.
9037 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9038 (display_command): Update.
9039 (do_one_display, disable_display)
9040 (enable_disable_display_command, do_enable_disable_display):
9041 Update.
9042 (free_display): Remove.
9043 (clear_displays): Rewrite.
9044 (delete_display): Update.
9045 (map_display_numbers): Use function_view. Remove "data"
9046 parameter. Update.
9047 (do_delete_display): Remove.
9048 (undisplay_command): Update.
9049 (do_one_display, do_displays, disable_display)
9050 (info_display_command): Update.
9051 (do_enable_disable_display): Remove.
9052 (enable_disable_display_command)
9053 (clear_dangling_display_expressions): Update.
9054
94c93c35
TT
90552020-05-08 Tom Tromey <tom@tromey.com>
9056
9057 * symtab.c (set_symbol_cache_size)
9058 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9059 (maintenance_print_symbol_cache_statistics): Update.
9060 * symmisc.c (print_symbol_bcache_statistics)
9061 (print_objfile_statistics, maintenance_print_objfiles)
9062 (maintenance_info_symtabs, maintenance_check_symtabs)
9063 (maintenance_expand_symtabs, maintenance_info_line_tables):
9064 Update.
9065 * symfile-debug.c (set_debug_symfile): Update.
9066 * source.c (forget_cached_source_info): Update.
9067 * python/python.c (gdbpy_progspaces): Update.
9068 * psymtab.c (maintenance_info_psymtabs): Update.
9069 * probe.c (parse_probes): Update.
9070 * linespec.c (iterate_over_all_matching_symtabs)
9071 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9072 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9073 * exec.c (exec_target::close): Update.
9074 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9075 * breakpoint.c (print_one_breakpoint_location)
9076 (create_longjmp_master_breakpoint)
9077 (create_std_terminate_master_breakpoint): Update.
9078 * progspace.c (program_spaces): Now a std::vector.
9079 (maybe_new_address_space): Update.
9080 (add_program_space): Remove.
9081 (program_space::program_space): Update.
9082 (remove_program_space): Update.
9083 (number_of_program_spaces): Remove.
9084 (print_program_space, update_address_spaces): Update.
9085 * progspace.h (program_spaces): Change type.
9086 (ALL_PSPACES): Remove.
9087 (number_of_program_spaces): Don't declare.
9088 (struct program_space) <next>: Remove.
9089
a1fd1ac9
TT
90902020-05-08 Tom Tromey <tom@tromey.com>
9091
9092 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9093 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9094 (enable_break): Update.
9095 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9096 (frv_fdpic_find_canonical_descriptor): Update.
9097 (frv_fetch_objfile_link_map): Update.
9098 * progspace.c (program_space::free_all_objfiles): Update.
9099 (program_space::solibs): New method.
9100 * progspace.h (struct program_space) <solibs>: New method.
9101 * solist.h (master_so_list): Don't declare.
9102 (ALL_SO_LIBS): Remove.
9103 * solib.h (so_list_head): Remove.
9104 (update_solib_list): Update comment.
9105 * solib.c (master_so_list): Remove.
9106 (solib_used, update_solib_list, solib_add)
9107 (info_sharedlibrary_command, clear_solib)
9108 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9109
38eae084
TT
91102020-05-08 Tom Tromey <tom@tromey.com>
9111
9112 * extension.c (extension_languages): Now a std::array.
9113 (ALL_EXTENSION_LANGUAGES): Remove.
9114 (get_ext_lang_defn, get_ext_lang_of_file)
9115 (eval_ext_lang_from_control_command): Update.
9116 (finish_ext_lang_initialization)
9117 (auto_load_ext_lang_scripts_for_objfile)
9118 (ext_lang_type_printers::ext_lang_type_printers)
9119 (apply_ext_lang_type_printers)
9120 (ext_lang_type_printers::~ext_lang_type_printers)
9121 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9122 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9123 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9124 (get_matching_xmethod_workers, ext_lang_colorize)
9125 (ext_lang_before_prompt): Update.
9126 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9127
596dc4ad
TT
91282020-05-08 Tom Tromey <tom@tromey.com>
9129
9130 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9131 overload.
9132 <swap_string, m_string>: Remove.
9133 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9134 Update.
9135 * stabsread.c (define_symbol, read_type): Update.
9136 * linespec.c (find_linespec_symbols): Update.
9137 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9138 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9139 * dbxread.c (read_dbx_symtab): Update.
9140 * cp-support.h (cp_canonicalize_string_full)
9141 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9142 Return unique_xmalloc_ptr.
9143 * cp-support.c (inspect_type): Update.
9144 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9145 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9146 Likewise.
9147 * c-typeprint.c (print_name_maybe_canonical): Update.
9148 * break-catch-throw.c (check_status_exception_catchpoint):
9149 Update.
9150
bf4cb9be
TV
91512020-05-08 Tom de Vries <tdevries@suse.de>
9152
9153 * infrun.c (follow_fork): Copy current_line and current_symtab to
9154 child thread.
9155
a1b68f28
SM
91562020-05-07 Simon Marchi <simon.marchi@efficios.com>
9157
9158 * async-event.c (struct async_signal_handler, struct
9159 async_event_handler): Reformat, remove typedef.
9160
98d48915
SM
91612020-05-07 Simon Marchi <simon.marchi@efficios.com>
9162
9163 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9164 access thistype->main_type->dyn_prop_list directly.
9165
7aa91313
SM
91662020-05-07 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9169 (remove_dyn_prop): Remove. Update all users to use
9170 type::remove_dyn_prop.
9171 * gdbtypes.c (remove_dyn_prop): Rename to...
9172 (type::remove_dyn_prop): ... this.
9173
5c54719c
SM
91742020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9175
9176 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9177 (add_dyn_prop): Remove. Update all users to use
9178 type::add_dyn_prop.
9179 * gdbtypes.c (add_dyn_prop): Rename to...
9180 (type::add_dyn_prop): ... this.
9181
24e99c6c
SM
91822020-05-07 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9185 (get_dyn_prop): Remove. Update all users to use
9186 type::dyn_prop.
9187 * gdbtypes.c (get_dyn_prop): Rename to...
9188 (type::dyn_prop): ... this.
9189
0d4bf016
SM
91902020-05-06 Simon Marchi <simon.marchi@efficios.com>
9191
9192 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9193
ac4a4f1c
SM
91942020-05-06 Simon Marchi <simon.marchi@efficios.com>
9195
9196 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9197 instruction, skip it if it's there.
9198
a3bbacc1
SM
91992020-05-05 Simon Marchi <simon.marchi@efficios.com>
9200
9201 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9202
c3236f84
SM
92032020-05-04 Simon Marchi <simon.marchi@efficios.com>
9204
9205 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9206 * gdbtypes.c (recursive_dump_type): Remove use of
9207 TYPE_INCOMPLETE.
9208
3b6acaee
TT
92092020-05-03 Tom Tromey <tom@tromey.com>
9210
9211 * breakpoint.c (catch_command, tcatch_command): Remove.
9212 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9213 add_show_prefix_cmd.
9214 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9215 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9216 Remove.
9217 (add_internal_problem_command): Use add_basic_prefix_cmd,
9218 add_show_prefix_cmd.
9219 * mips-tdep.c (set_mipsfpu_command): Remove.
9220 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9221 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9222 (_initialize_index_cache): Use add_basic_prefix_cmd.
9223 * memattr.c (dummy_cmd): Remove.
9224 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9225 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9226 (_initialize_tui_win): Use add_basic_prefix_cmd,
9227 add_show_prefix_cmd.
9228 * cli/cli-logging.c (set_logging_command): Remove.
9229 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9230 add_show_prefix_cmd.
9231 (show_logging_command): Remove.
9232 * target.c (target_command): Remove.
9233 (add_target): Use add_basic_prefix_cmd.
9234
a51119cd
HD
92352020-05-02 Hannes Domani <ssbssa@yahoo.de>
9236
9237 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9238
652fc23a 92392020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9240
652fc23a
PW
9241 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9242 info_command.
9243
117539e6
KR
92442020-04-30 Kamil Rytarowski <n54@gmx.com>
9245
9246 * nbsd-nat.c (nbsd_enable_proc_events)
9247 (nbsd_nat_target::post_startup_inferior): Add.
9248 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9249 (nbsd_nat_target::update_thread_list): Rewrite.
9250 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9251 "PTRACE_LWP_CREATE".
9252 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9253
102e38eb 92542020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9255
102e38eb
PW
9256 * stack.c (_initialize_stack): Remove duplicated creation
9257 of "frame" command and "f" alias.
9258
ee9d1e5f
HD
92592020-04-30 Hannes Domani <ssbssa@yahoo.de>
9260
9261 PR gdb/18706
9262 * gdbtypes.c (check_typedef): Calculate size of array of
9263 stubbed type.
9264
627c7fb8
HD
92652020-04-30 Hannes Domani <ssbssa@yahoo.de>
9266
9267 PR gdb/15559
9268 * i386-tdep.c (i386_push_dummy_call): Call
9269 i386_thiscall_push_dummy_call.
9270 (i386_thiscall_push_dummy_call): New function.
9271 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9272 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9273 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9274
ffc2844e
SM
92752020-04-29 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * gdbarch.sh (do_read): Add shellcheck disable directive for
9278 warning SC2162.
9279
1207375d
SM
92802020-04-29 Simon Marchi <simon.marchi@efficios.com>
9281
9282 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9283 "referenced but not assigned" warning.
9284
9fdb2916
SM
92852020-04-29 Simon Marchi <simon.marchi@efficios.com>
9286
9287 * gdbarch.sh: Remove code that sets fallbackdefault.
9288
759cea5e
SM
92892020-04-29 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * gdbarch.sh: Use shell operators && and || instead of
9292 -a and -o.
9293
cb02ab24
SM
92942020-04-29 Simon Marchi <simon.marchi@efficios.com>
9295
9296 * gdbarch.sh: Use $(...) instead of `...`.
9297
a6fc5ffc
SM
92982020-04-29 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * gdbarch.sh: Use double quotes around variables.
9301
8d113d13
SM
93022020-04-29 Simon Marchi <simon.marchi@efficios.com>
9303
9304 * gdbarch.sh: Use %s with printf, instead of variables in the
9305 format string.
9306
ed6acedd
TT
93072020-04-29 Tom Tromey <tromey@adacore.com>
9308
9309 PR ada/25875:
9310 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9311 type fields here.
9312 (read_enumeration_type): Call
9313 update_enumeration_type_from_children later. Update comments.
9314 (process_enumeration_scope): Don't create type fields.
9315
b68b1b58
KR
93162020-04-29 Kamil Rytarowski <n54@gmx.com>
9317
9318 * nbsd-tdep.c: Include "xml-syscall.h".
9319 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9320
f94b2e03
KR
93212020-04-29 Kamil Rytarowski <n54@gmx.com>
9322
9323 * nbsd-nat.c: Include "sys/wait.h".
9324 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9325 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9326 (nbsd_nat_target::remove_exec_catchpoint)
9327 (nbsd_nat_target::set_syscall_catchpoint): Add.
9328 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9329 (nbsd_nat_target::insert_exec_catchpoint)
9330 (nbsd_nat_target::remove_exec_catchpoint)
9331 (nbsd_nat_target::set_syscall_catchpoint): Add.
9332 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9333 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9334 `nbsd_get_syscall_number'.
9335
fc49bc72
TT
93362020-04-29 Tom Tromey <tom@tromey.com>
9337
9338 * stack.c (print_block_frame_labels): Remove.
9339
d642b692
HD
93402020-04-29 Hannes Domani <ssbssa@yahoo.de>
9341
9342 PR gdb/17320
9343 * ada-valprint.c (val_print_packed_array_elements): Move array
9344 end bracket to new line.
9345 (ada_val_print_string): Remove extra spaces before first array
9346 element.
9347 * c-valprint.c (c_value_print_array): Likewise.
9348 * m2-valprint.c (m2_print_array_contents): Likewise.
9349 (m2_value_print_inner): Likewise.
9350 * p-valprint.c (pascal_value_print_inner): Likewise.
9351 * valprint.c (generic_val_print_array): Likewise.
9352 (value_print_array_elements): Move first array element and array
9353 end bracket to new line.
9354
ea90f227
TV
93552020-04-29 Tom de Vries <tdevries@suse.de>
9356
9357 PR symtab/25889
9358 * linespec.c (find_method): Fix ix calculation.
9359
4498ef4f
KR
93602020-04-28 Kamil Rytarowski <n54@gmx.com>
9361
9362 * syscalls/update-netbsd.sh: New file.
9363 * syscalls/netbsd.xml: Regenerate.
9364 * data-directory/Makefile.in: Register `netbsd.xml' in
9365 `SYSCALLS_FILES'.
9366
a55e30b5
SM
93672020-04-28 Simon Marchi <simon.marchi@efficios.com>
9368
9369 * syscalls/update-freebsd.sh: Add double quotes.
9370
2b2fbab8
TT
93712020-04-28 Tom Tromey <tom@tromey.com>
9372
9373 * NEWS: Update.
9374 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9375 (cmdpy_init): Allow class_tui.
9376
a65189c9
TV
93772020-04-28 Mark Williams <mark@myosotissp.com>
9378
9379 PR gdb/24480
9380 * dwarf2read.c: Add missing assingments to list_in_scope when
9381 start_symtab was already called.
9382
1b95cdb7
SM
93832020-04-28 Simon Marchi <simon.marchi@efficios.com>
9384
9385 PR gdb/25881
9386 * dwarf2/read.c (offset_map_type): Use
9387 gdb:hash_enum<sect_offset> as hash function.
9388
15cd93d0
TV
93892020-04-28 Tom de Vries <tdevries@suse.de>
9390
9391 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9392 with DW_AT_signature.
9393
1eb39914
SM
93942020-04-27 Simon Marchi <simon.marchi@efficios.com>
9395
9396 * configure.ac: Remove check for fs_base/gs_base in
9397 user_regs_struct.
9398 * configure: Re-generate.
9399 * config.in: Re-generate.
9400 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9401 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9402 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9403
991a3e2e
LM
94042020-04-27 Luis Machado <luis.machado@linaro.org>
9405
9406 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9407 problematic inline frame unwinding situation.
9408 * frame.c (frame_id_computed_p): New function.
9409 * frame.h (frame_id_computed_p): New prototype.
9410
361ba0e8
TT
94112020-04-26 Tom Tromey <tom@tromey.com>
9412
9413 * command.h (enum command_class) <class_pseudo>: Remove.
9414
bc3609fd
PW
94152020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9416
9417 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9418 and whitespace.
9419
b9771db7
KR
94202020-04-25 Kamil Rytarowski <n54@gmx.com>
9421
ec16513e
SM
9422 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9423 `PT_GET_PROCESS_STATE' block.
b9771db7 9424
7151c1af
TT
94252020-04-24 Tom Tromey <tom@tromey.com>
9426
9427 * symtab.h (symbol_get_demangled_name): Don't declare.
9428 * symtab.c (symbol_get_demangled_name): Remove.
9429 (general_symbol_info::natural_name)
9430 (general_symbol_info::demangled_name): Update.
9431
906bb4c5
TT
94322020-04-24 Tom Tromey <tom@tromey.com>
9433
9434 PR rust/25025:
9435 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9436
bcfe6157
TT
94372020-04-24 Tom Tromey <tom@tromey.com>
9438
9439 PR symtab/12707:
9440 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9441 exists.
9442 (new_symbol): Likewise.
9443 * compile/compile-object-load.c (get_out_value_type): Use
9444 symbol_matches_search_name.
9445
f049a313
TT
94462020-04-24 Tom Tromey <tom@tromey.com>
9447
9448 * dwarf2/read.c (add_partial_symbol): Do not call
9449 compute_and_set_names.
9450
76e288d1
TT
94512020-04-24 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9454 overload.
9455
2467f4f6
TT
94562020-04-24 Tom Tromey <tom@tromey.com>
9457
9458 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9459 (add_psymbol_to_list): New overload. Make old overload call new
9460 one.
9461 * psympriv.h (add_psymbol_to_list): New overload.
9462
e61108c9
TT
94632020-04-24 Tom Tromey <tom@tromey.com>
9464
9465 * dwarf2/read.c (partial_die_info::read) <case
9466 DW_AT_linkage_name>: Use value_as_string.
9467 (dwarf2_string_attr): Use value_as_string.
9468 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9469 method.
9470 * dwarf2/attribute.c (attribute::value_as_string): New method.
9471
8c87a452
TT
94722020-04-24 Tom Tromey <tom@tromey.com>
9473
9474 * symtab.c (general_symbol_info::natural_name)
9475 (general_symbol_info::demangled_name): Check for language_rust.
9476
787de330
TT
94772020-04-24 Tom Tromey <tom@tromey.com>
9478
9479 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9480 (dwarf2_physname): ... from here.
9481 (partial_die_info::read): Add Rust "{" hack.
9482
ff985671
TT
94832020-04-24 Tom Tromey <tom@tromey.com>
9484
9485 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9486 method.
9487 (symbol_set_demangled_name): Don't declare.
9488 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9489 symbol_set_demangled_name.
9490 (general_symbol_info::set_language)
9491 (general_symbol_info::compute_and_set_names): Update.
9492 * minsyms.c (minimal_symbol_reader::install): Update.
9493 * dwarf2/read.c (new_symbol): Update.
9494
1acda803
TT
94952020-04-24 Tom Tromey <tromey@adacore.com>
9496
9497 PR python/23662:
9498 * python/py-type.c (convert_field): Handle
9499 FIELD_LOC_KIND_DWARF_BLOCK.
9500 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9501 (typy_get_dynamic): Nw function.
9502 (type_object_getset): Add "dynamic".
9503 * NEWS: Add entry.
9504
d656f129
TT
95052020-04-24 Tom Tromey <tromey@adacore.com>
9506
9507 * ada-typeprint.c (print_choices, print_variant_part)
9508 (print_record_field_types_dynamic): New functions.
9509 (print_record_field_types): Use print_record_field_types_dynamic.
9510
7d79de9a
TT
95112020-04-24 Tom Tromey <tromey@adacore.com>
9512
9513 * dwarf2/read.c (handle_data_member_location): New overload.
9514 (dwarf2_add_field): Use it.
9515 (decode_locdesc): Add "computed" parameter. Update comment.
9516 * gdbtypes.c (is_dynamic_type_internal): Also look for
9517 FIELD_LOC_KIND_DWARF_BLOCK.
9518 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9519 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9520 virtual base classes.
9521 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9522 FIELD_LOC_KIND_DWARF_BLOCK.
9523
f8e89861
TT
95242020-04-24 Tom Tromey <tromey@adacore.com>
9525
9526 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9527 * gdbtypes.c (is_dynamic_type_internal): Check
9528 TYPE_HAS_DYNAMIC_LENGTH.
9529 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9530 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9531 New macros.
9532 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9533 constant.
9534
9c6a1327
TT
95352020-04-24 Tom Tromey <tromey@adacore.com>
9536
9537 * dwarf2/read.c (struct variant_field): Rewrite.
9538 (struct variant_part_builder): New.
9539 (struct nextfield): Remove "variant" field. Add "offset".
9540 (struct field_info): Add "current_variant_part" and
9541 "variant_parts".
9542 (alloc_discriminant_info): Remove.
9543 (alloc_rust_variant): New function.
9544 (quirk_rust_enum): Update.
9545 (dwarf2_add_field): Set "offset" member. Don't handle
9546 DW_TAG_variant_part.
9547 (offset_map_type): New typedef.
9548 (convert_variant_range, create_one_variant)
9549 (create_one_variant_part, create_variant_parts)
9550 (add_variant_property): New functions.
9551 (dwarf2_attach_fields_to_type): Call add_variant_property.
9552 (read_structure_type): Don't handle DW_TAG_variant_part.
9553 (handle_variant_part, handle_variant): New functions.
9554 (handle_struct_member_die): Use them.
9555 (process_structure_scope): Don't handle variant parts.
9556 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9557 (struct discriminant_info): Remove.
9558 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9559 (struct main_type) <flag_discriminated_union>: Remove.
9560 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9561 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9562 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9563 Update.
9564 * valops.c (value_union_variant): Remove.
9565 * value.h (value_union_variant): Don't declare.
9566
b249d2c2
TT
95672020-04-24 Tom Tromey <tromey@adacore.com>
9568
9569 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9570 (ada_value_primitive_packed_val): Update.
9571 * ada-valprint.c (ada_value_print_1): Update.
9572 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9573 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9574 just an address. Use evaluate_for_locexpr_baton.
9575 (dwarf2_evaluate_property): Update.
9576 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9577 array_view.
9578 * findvar.c (default_read_var_value): Update.
9579 * gdbtypes.c (compute_variant_fields_inner)
9580 (resolve_dynamic_type_internal): Update.
9581 (resolve_dynamic_type): Change type of valaddr parameter.
9582 * gdbtypes.h (resolve_dynamic_type): Update.
9583 * valarith.c (value_subscripted_rvalue): Update.
9584 * value.c (value_from_contents_and_address): Update.
9585
61122aa9
TT
95862020-04-24 Tom Tromey <tromey@adacore.com>
9587
9588 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9589 "push_initial_value" parameter.
9590 (dwarf2_evaluate_property): Likewise.
9591 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9592
ef83a141
TT
95932020-04-24 Tom Tromey <tromey@adacore.com>
9594
9595 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9596 (variant::matches, compute_variant_fields_recurse)
9597 (compute_variant_fields_inner, compute_variant_fields): New
9598 functions.
9599 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9600 Use resolved_type after type is made.
9601 (operator==): Add new cases.
9602 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9603 (struct discriminant_range, struct variant, struct variant_part):
9604 New.
9605 (union dynamic_prop_data) <variant_parts, original_type>: New
9606 members.
9607 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9608 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9609 constants.
9610 * value.c (unpack_bits_as_long): Now public.
9611 * value.h (unpack_bits_as_long): Declare.
9612
675127ec
TT
96132020-04-24 Tom Tromey <tromey@adacore.com>
9614
9615 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9616 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9617
9852ceef
HD
96182020-04-24 Hannes Domani <ssbssa@yahoo.de>
9619
9620 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9621
7632c6ce
KR
96222020-04-24 Kamil Rytarowski <n54@gmx.com>
9623
9624 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9625 (remove_fork_catchpoint, post_startup_inferior)
9626 (post_attach): Move...
9627 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9628 (remove_fork_catchpoint, post_startup_inferior)
9629 (post_attach): ...here.
9630 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9631 (remove_fork_catchpoint, post_startup_inferior)
9632 (post_attach): Move...
9633 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9634 (remove_fork_catchpoint, post_startup_inferior)
9635 (post_attach): ...here.
9636
7be2bb4f
TT
96372020-04-24 Tom Tromey <tromey@adacore.com>
9638
9639 * nat/windows-nat.h (struct windows_thread_info)
9640 <pc_adjusted>: New member.
9641 * windows-nat.c (windows_fetch_one_register): Check
9642 pc_adjusted.
9643 (windows_nat_target::get_windows_debug_event)
9644 (windows_nat_target::wait): Set pc_adjusted.
9645
f80cb3b4
TV
96462020-04-24 Tom de Vries <tdevries@suse.de>
9647
9648 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9649 Run gdb-add-index inside temp dir.
9650
29514b87
TT
96512020-04-23 Tom Tromey <tromey@adacore.com>
9652
9653 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9654 in loop.
9655
5939967b
LM
96562020-04-23 Luis Machado <luis.machado@linaro.org>
9657
9658 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9659 get_frame_register instead of gdbarch_unwind_pc.
9660
70bc38f5
TV
96612020-04-23 Tom de Vries <tdevries@suse.de>
9662
9663 * symtab.c (lookup_global_symbol): Prefer def over decl.
9664
de82891c
TV
96652020-04-23 Tom de Vries <tdevries@suse.de>
9666
9667 PR symtab/25807
9668 * block.c (best_symbol, better_symbol): Promote to external.
9669 * block.h (best_symbol, better_symbol): Declare.
9670 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9671 decl.
9672
ecc6c606
TT
96732020-04-23 Tom Tromey <tromey@adacore.com>
9674
9675 PR ada/25837:
9676 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9677 "const char *", not a "const std::string &".
9678 <name_and_matcher::operator==>: Update.
9679 * unittests/lookup_name_info-selftests.c: Change type of
9680 "result".
9681
740480b8
TT
96822020-04-23 Tom Tromey <tom@tromey.com>
9683
9684 * inferior.h (iterate_over_inferiors): Don't declare.
9685 * inferior.c (iterate_over_inferiors): Remove.
9686 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9687 Remove.
9688 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9689 use iterate_over_inferiors.
9690 (darwin_resume_inferior_it)
9691 (struct resume_inferior_threads_param)
9692 (darwin_resume_inferior_threads_it): Remove.
9693 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9694
ae3ab1f0
TV
96952020-04-23 Tom de Vries <tdevries@suse.de>
9696
9697 * blockframe.c (find_pc_partial_function): Use
9698 find_pc_sect_compunit_symtab rather than
9699 objfile->sf->qf->find_pc_sect_compunit_symtab.
9700
317d2668
TV
97012020-04-22 Tom de Vries <tdevries@suse.de>
9702
9703 PR symtab/25764
9704 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9705 in psymtabs.
9706
eea9e357
TV
97072020-04-22 Tom de Vries <tdevries@suse.de>
9708
9709 PR symtab/25801
9710 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9711 symtabs.
9712
3d5afab3
TV
97132020-04-22 Tom de Vries <tdevries@suse.de>
9714
9715 PR symtab/25700
9716 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9717 CU if already created.
9718
d43b7a2d
TBA
97192020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9720
9721 * infrun.c (displaced_step_fixup): Switch to the event_thread
9722 before calling displaced_step_restore, not after.
9723
d89edf9b
MM
97242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9725
9726 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9727 its inferior is not recorded by us.
9728 (record_btrace_target_open): Replace call to
9729 all_non_exited_threads () with call to current_inferior
9730 ()->non_exited_threads ().
9731 (record_btrace_target::stop_recording): Likewise.
9732 (record_btrace_target::close): Likewise.
9733 (record_btrace_target::wait): Likewise.
9734 (record_btrace_target::record_stop_replaying): Likewise.
9735
5897fd49
MM
97362020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9737
9738 * btrace.c (btrace_enable): Throw an error on double enables and
9739 when enabling recording fails.
9740 (btrace_disable): Throw an error if the thread is not recorded.
9741
1a476b6d
MM
97422020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9743
9744 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9745 request if we do not have a thread_info.
9746
4778a5f8
TV
97472020-04-21 Tom de Vries <tdevries@suse.de>
9748
9749 PR gdb/25471
9750 * thread.c
9751 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9752 exception in get_frame_id.
9753
0fa7617d
TT
97542020-04-20 Tom Tromey <tromey@adacore.com>
9755
9756 * python/python.c (struct gdbpy_event): Mark move constructor as
9757 noexcept.
9758 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9759 constructor as noexcept.
9760 * completer.h (struct completion_result): Mark move constructor as
9761 noexcept.
9762 * completer.c (completion_result::completion_result): Use
9763 initialization style. Don't call reset_match_list.
9764
ad23bda0
MS
97652020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9766
9767 * MAINTAINERS (Write After Approval): Add myself.
9768
45e1f031
TT
97692020-04-18 Tom Tromey <tom@tromey.com>
9770
9771 * windows-tdep.c (init_w32_command_list)
9772 (w32_prefix_command_valid): Restore.
9773 (_initialize_windows_tdep): Call init_w32_command_list.
9774
08feed99
TT
97752020-04-18 Tom Tromey <tom@tromey.com>
9776
9777 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9778 * value.c (value_fn_field): Update.
9779 * valops.c (find_function_in_inferior)
9780 (value_allocate_space_in_inferior): Update.
9781 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9782 Update.
9783 * tui/tui-source.c (tui_source_window::set_contents): Update.
9784 * symtab.c (lookup_global_or_static_symbol)
9785 (find_function_start_sal_1, skip_prologue_sal)
9786 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9787 * symmisc.c (dump_msymbols, dump_symtab_1)
9788 (maintenance_print_one_line_table): Update.
9789 * symfile.c (init_entry_point_info, section_is_mapped)
9790 (list_overlays_command, simple_read_overlay_table)
9791 (simple_overlay_update_1): Update.
9792 * stap-probe.c (handle_stap_probe): Update.
9793 * stabsread.c (dbx_init_float_type, define_symbol)
9794 (read_one_struct_field, read_enum_type, read_range_type): Update.
9795 * source.c (info_line_command): Update.
9796 * python/python.c (gdbpy_source_objfile_script)
9797 (gdbpy_execute_objfile_script): Update.
9798 * python/py-type.c (save_objfile_types): Update.
9799 * python/py-objfile.c (py_free_objfile): Update.
9800 * python/py-inferior.c (python_new_objfile): Update.
9801 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9802 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9803 (maintenance_check_psymtabs): Update.
9804 * printcmd.c (info_address_command): Update.
9805 * objfiles.h (struct objfile) <arch>: New method, from
9806 get_objfile_arch.
9807 (get_objfile_arch): Don't declare.
9808 * objfiles.c (get_objfile_arch): Remove.
9809 (filter_overlapping_sections): Update.
9810 * minsyms.c (msymbol_is_function): Update.
9811 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9812 (output_nondebug_symbol): Update.
9813 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9814 (mdebug_expand_psymtab): Update.
9815 * machoread.c (macho_add_oso_symfile): Update.
9816 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9817 Update.
9818 * linux-fork.c (checkpoint_command): Update.
9819 * linespec.c (convert_linespec_to_sals): Update.
9820 * jit.c (finalize_symtab): Update.
9821 * infrun.c (insert_exception_resume_from_probe): Update.
9822 * ia64-tdep.c (ia64_find_unwind_table): Update.
9823 * hppa-tdep.c (internalize_unwinds): Update.
9824 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9825 Update.
9826 * gcore.c (call_target_sbrk): Update.
9827 * elfread.c (record_minimal_symbol, elf_symtab_read)
9828 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9829 (elf_gnu_ifunc_resolve_by_got): Update.
9830 * dwarf2/read.c (create_addrmap_from_index)
9831 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9832 (read_debug_names_from_section)
9833 (process_psymtab_comp_unit_reader, add_partial_symbol)
9834 (add_partial_subprogram, process_full_comp_unit)
9835 (read_file_scope, read_func_scope, read_lexical_block_scope)
9836 (read_call_site_scope, dwarf2_ranges_read)
9837 (dwarf2_record_block_ranges, dwarf2_add_field)
9838 (mark_common_block_symbol_computed, read_tag_pointer_type)
9839 (read_tag_string_type, dwarf2_init_float_type)
9840 (dwarf2_init_complex_target_type, read_base_type)
9841 (partial_die_info::read, partial_die_info::read)
9842 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9843 (dwarf2_fetch_die_loc_sect_off): Update.
9844 * dwarf2/loc.c (dwarf2_find_location_expression)
9845 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9846 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9847 (dwarf2_loc_desc_get_symbol_read_needs)
9848 (locexpr_describe_location_piece, locexpr_describe_location_1)
9849 (loclist_describe_location): Update.
9850 * dwarf2/index-write.c (write_debug_names): Update.
9851 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9852 * dtrace-probe.c (dtrace_process_dof): Update.
9853 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9854 (process_one_symbol): Update.
9855 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9856 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9857 (coff_read_enum_type): Update.
9858 * cli/cli-cmds.c (edit_command, list_command): Update.
9859 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9860 * breakpoint.c (create_overlay_event_breakpoint)
9861 (create_longjmp_master_breakpoint)
9862 (create_std_terminate_master_breakpoint)
9863 (create_exception_master_breakpoint, get_sal_arch): Update.
9864 * block.c (block_gdbarch): Update.
9865 * annotate.c (annotate_source_line): Update.
9866
0743fc83
TT
98672020-04-17 Tom Tromey <tromey@adacore.com>
9868
9869 * auto-load.c (show_auto_load_cmd): Remove.
9870 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9871 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9872 (maintenance_print_arc_command): Remove.
9873 * tui/tui-win.c (tui_command): Remove.
9874 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9875 * tui/tui-layout.c (tui_layout_command): Remove.
9876 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9877 * python/python.c (user_set_python, user_show_python): Remove.
9878 (_initialize_python): Use add_basic_prefix_cmd,
9879 add_show_prefix_cmd.
9880 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9881 (install_gdb_commands): Use add_basic_prefix_cmd,
9882 add_show_prefix_cmd.
9883 (info_guile_command): Remove.
9884 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9885 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9886 add_show_prefix_cmd.
9887 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9888 Remove do_set and do_show parameters.
9889 * cli/cli-style.c (set_style, show_style): Remove.
9890 (_initialize_cli_style): Use add_basic_prefix_cmd,
9891 add_show_prefix_cmd.
9892 (cli_style_option::add_setshow_commands): Remove do_set and
9893 do_show parameters.
9894 (cli_style_option::add_setshow_commands): Use
9895 add_basic_prefix_cmd, add_show_prefix_cmd.
9896 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9897 (set_style_name): Remove.
9898 * cli/cli-dump.c (dump_command, append_command): Remove.
9899 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9900 (tekhex_dump_command, binary_dump_command)
9901 (binary_append_command): Remove.
9902 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9903 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9904 (init_w32_command_list): Remove; move into ...
9905 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9906 * valprint.c (set_print, show_print, set_print_raw)
9907 (show_print_raw): Remove.
9908 (_initialize_valprint): Use add_basic_prefix_cmd,
9909 add_show_prefix_cmd.
9910 * typeprint.c (set_print_type, show_print_type): Remove.
9911 (_initialize_typeprint): Use add_basic_prefix_cmd,
9912 add_show_prefix_cmd.
9913 * record.c (set_record_command, show_record_command): Remove.
9914 (_initialize_record): Use add_basic_prefix_cmd,
9915 add_show_prefix_cmd.
9916 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9917 add_show_prefix_cmd.
9918 (info_command, show_command, set_debug, show_debug): Remove.
9919 * top.h (set_history, show_history): Don't declare.
9920 * top.c (set_history, show_history): Remove.
9921 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9922 (unset_tdesc_cmd): Remove.
9923 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9924 add_show_prefix_cmd.
9925 * symtab.c (info_module_command): Remove.
9926 (_initialize_symtab): Use add_basic_prefix_cmd.
9927 * symfile.c (overlay_command): Remove.
9928 (_initialize_symfile): Use add_basic_prefix_cmd.
9929 * sparc64-tdep.c (info_adi_command): Remove.
9930 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9931 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9932 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9933 add_show_prefix_cmd.
9934 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9935 (_initialize_serial): Use add_basic_prefix_cmd,
9936 add_show_prefix_cmd.
9937 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9938 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9939 add_show_prefix_cmd.
9940 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9941 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9942 add_show_prefix_cmd.
9943 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9944 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9945 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9946 add_show_prefix_cmd.
9947 * remote.c (remote_command, set_remote_cmd): Remove.
9948 (_initialize_remote): Use add_basic_prefix_cmd.
9949 * record-full.c (set_record_full_command)
9950 (show_record_full_command): Remove.
9951 (_initialize_record_full): Use add_basic_prefix_cmd,
9952 add_show_prefix_cmd.
9953 * record-btrace.c (cmd_set_record_btrace)
9954 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9955 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9956 (cmd_show_record_btrace_pt): Remove.
9957 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9958 add_show_prefix_cmd.
9959 * ravenscar-thread.c (set_ravenscar_command)
9960 (show_ravenscar_command): Remove.
9961 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9962 add_show_prefix_cmd.
9963 * mips-tdep.c (show_mips_command, set_mips_command)
9964 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9965 add_show_prefix_cmd.
9966 * maint.c (maintenance_command, maintenance_info_command)
9967 (maintenance_check_command, maintenance_print_command)
9968 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9969 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9970 add_show_prefix_cmd.
9971 (show_per_command_cmd): Remove.
9972 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9973 Remove.
9974 (maintenance_show_test_settings_cmd): Remove.
9975 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9976 add_show_prefix_cmd.
9977 * maint-test-options.c (maintenance_test_options_command):
9978 Remove.
9979 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9980 * macrocmd.c (macro_command): Remove
9981 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9982 * language.c (set_check, show_check): Remove.
9983 (_initialize_language): Use add_basic_prefix_cmd,
9984 add_show_prefix_cmd.
9985 * infcmd.c (unset_command): Remove.
9986 (_initialize_infcmd): Use add_basic_prefix_cmd.
9987 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9988 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9989 add_show_prefix_cmd.
9990 * go32-nat.c (go32_info_dos_command): Remove.
9991 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9992 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9993 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9994 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9995 (_initialize_frame): Use add_basic_prefix_cmd,
9996 add_show_prefix_cmd.
9997 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9998 (_initialize_dcache): Use add_basic_prefix_cmd,
9999 add_show_prefix_cmd.
10000 * cp-support.c (maint_cplus_command): Remove.
10001 (_initialize_cp_support): Use add_basic_prefix_cmd.
10002 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10003 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10004 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10005 add_basic_prefix_cmd, add_show_prefix_cmd.
10006 * breakpoint.c (save_command): Remove.
10007 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10008 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10009 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10010 add_show_prefix_cmd.
10011 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10012 (set_ada_command, show_ada_command): Remove.
10013 (_initialize_ada_language): Use add_basic_prefix_cmd,
10014 add_show_prefix_cmd.
10015 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10016
3557f442
KR
100172020-04-16 Kamil Rytarowski <n54@gmx.com>
10018
10019 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10020 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10021
16197208
SM
100222020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10023
10024 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10025 warning messages.
10026
00ac85d3
SM
100272020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10028
10029 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10030 import table is not at beginning of .idata section.
10031
381ce63f
PA
100322020-04-16 Pedro Alves <palves@redhat.com>
10033
10034 * inferior.c (delete_inferior): Use delete operator directly
10035 instead of delete_program_space.
10036 * progspace.c (add_program_space): New, factored out from
10037 program_space::program_space.
10038 (remove_program_space): New, factored out from
10039 delete_program_space.
10040 (program_space::program_space): Remove intro comment. Rewrite.
10041 (program_space::~program_space): Remove intro comment. Call
10042 remove_program_space.
10043 (delete_program_space): Delete.
10044 * progspace.h (program_space::program_space): Make explicit. Move
10045 intro comment here, adjusted.
10046 (program_space::~program_space): Move intro comment here,
10047 adjusted.
10048 (delete_program_space): Remove.
10049
a010605f
TT
100502020-04-16 Tom Tromey <tromey@adacore.com>
10051
10052 * windows-nat.c (windows_nat::handle_access_violation): New
10053 function.
10054 * nat/windows-nat.h (handle_access_violation): Declare.
10055 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10056 windows-nat.c. Call handle_access_violation.
10057
efba5c23
TV
100582020-04-16 Tom de Vries <tdevries@suse.de>
10059
10060 PR symtab/25791
10061 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10062 CUs without psymtab.
10063
97ed802d
KB
100642020-04-16 Kevin Buettner <kevinb@redhat.com>
10065
10066 * python/python.c (do_start_initialization): Don't call
10067 PyEval_InitThreads for Python 3.9 and beyond.
10068
c7d64809
KR
100692020-04-15 Kamil Rytarowski <n54@gmx.com>
10070
10071 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10072 thread functions.
10073 (obsd_nat_target::wait): Likewise.
10074
ce127a96
TT
100752020-04-15 Tom Tromey <tromey@adacore.com>
10076
10077 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10078 (DEBUG_EXCEPT): Use debug_printf.
10079
99f1bc6a
AB
100802020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10081
10082 * completer.c (class completion_tracker::completion_hash_entry)
10083 <hash_name>: New member function.
10084 (completion_tracker::discard_completions): New callback to hash a
10085 completion_hash_entry, pass this to htab_create_alloc.
10086
a0e9b532
JT
100872016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10088
10089 * windows-nat.c (windows_make_so): Warn rather than stopping with
10090 an error if realpath() fails.
10091
06ca5dd4
KR
100922020-04-14 Kamil Rytarowski <n54@gmx.com>
10093
10094 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10095 (nbsd_nat_target::info_proc): Add do_status.
10096
194d088f
TV
100972020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10098 Tom de Vries <tdevries@suse.de>
10099
10100 PR symtab/25718
10101 * psympriv.h (struct partial_symtab::read_symtab)
10102 (struct partial_symtab::expand_psymtab)
10103 (struct partial_symtab::read_dependencies): Update comments.
10104 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10105 read_symtab for includer.
10106 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10107 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10108 (struct dwarf2_include_psymtab::m_readin): Remove.
10109 (struct dwarf2_include_psymtab::includer): New member function.
10110 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10111
c1a66c06
TV
101122020-04-14 Tom de Vries <tdevries@suse.de>
10113
10114 PR symtab/25720
10115 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10116 with NULL symbol_matcher and lookup_name.
10117 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10118 and lookup_name.
10119 * dwarf2/read.c (dw2_expand_symtabs_matching)
10120 (dw2_debug_names_expand_symtabs_matching): Same.
10121 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10122 Make lookup_name a pointer. Update comment.
10123 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10124 lookup_name being a pointer.
10125 * symfile.c (expand_symtabs_matching): Same.
10126 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10127 * linespec.c (iterate_over_all_matching_symtabs): Same.
10128
400b5eca
TT
101292020-04-13 Tom Tromey <tom@tromey.com>
10130
10131 * run-on-main-thread.c: Update include.
10132 * unittests/main-thread-selftests.c: Update include.
10133 * tui/tui-win.c: Update include.
10134 * tui/tui-io.c: Update include.
10135 * tui/tui-interp.c: Update include.
10136 * tui/tui-hooks.c: Update include.
10137 * top.h: Update include.
10138 * top.c: Update include.
10139 * ser-base.c: Update include.
10140 * remote.c: Update include.
10141 * remote-notif.c: Update include.
10142 * remote-fileio.c: Update include.
10143 * record-full.c: Update include.
10144 * record-btrace.c: Update include.
10145 * python/python.c: Update include.
10146 * posix-hdep.c: Update include.
10147 * mingw-hdep.c: Update include.
10148 * mi/mi-main.c: Update include.
10149 * mi/mi-interp.c: Update include.
10150 * main.c: Update include.
10151 * linux-nat.c: Update include.
10152 * interps.c: Update include.
10153 * infrun.c: Update include.
10154 * inf-loop.c: Update include.
10155 * event-top.c: Update include.
10156 * event-loop.c: Move to ../gdbsupport/.
10157 * event-loop.h: Move to ../gdbsupport/.
10158 * async-event.h: Update include.
10159 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10160
93b54c8e
TT
101612020-04-13 Tom Tromey <tom@tromey.com>
10162
10163 * tui/tui-win.c: Include async-event.h.
10164 * remote.c: Include async-event.h.
10165 * remote-notif.c: Include async-event.h.
10166 * record-full.c: Include async-event.h.
10167 * record-btrace.c: Include async-event.h.
10168 * infrun.c: Include async-event.h.
10169 * event-top.c: Include async-event.h.
10170 * event-loop.h: Move some declarations to async-event.h.
10171 * event-loop.c: Don't include ser-event.h or top.h. Move some
10172 code to async-event.c.
10173 * async-event.h: New file.
10174 * async-event.c: New file.
10175 * Makefile.in (COMMON_SFILES): Add async-event.c.
10176 (HFILES_NO_SRCDIR): Add async-event.h.
10177
c1cd3163
TT
101782020-04-13 Tom Tromey <tom@tromey.com>
10179
10180 * utils.c (flush_streams): New function.
10181 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10182
29f2bf4f
TT
101832020-04-13 Tom Tromey <tom@tromey.com>
10184
10185 * event-loop.c (handle_file_event): Use warning, not
10186 printf_unfiltered.
10187
98029d02
TT
101882020-04-13 Tom Tromey <tom@tromey.com>
10189
10190 * event-loop.c: Include <chrono>.
10191
06cc9596
TT
101922020-04-13 Tom Tromey <tom@tromey.com>
10193
10194 * gdb_select.h: Move to ../gdbsupport/.
10195 * event-loop.c: Update include path.
10196 * top.c: Update include path.
10197 * ser-base.c: Update include path.
10198 * ui-file.c: Update include path.
10199 * ser-tcp.c: Update include path.
10200 * guile/scm-ports.c: Update include path.
10201 * posix-hdep.c: Update include path.
10202 * ser-unix.c: Update include path.
10203 * gdb_usleep.c: Update include path.
10204 * mingw-hdep.c: Update include path.
10205 * inflow.c: Update include path.
10206 * infrun.c: Update include path.
10207 * event-top.c: Update include path.
10208
8ae8e197
TT
102092020-04-13 Tom Tromey <tom@tromey.com>
10210
10211 * configure: Rebuild.
10212 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10213
58cf28e8
TT
102142020-04-13 Tom Tromey <tom@tromey.com>
10215
10216 * event-loop.h (start_event_loop): Don't declare.
10217 * event-loop.c (start_event_loop): Move...
10218 * main.c (start_event_loop): ...here. Now static.
10219
b7f999ae
SDJ
102202020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10221
10222 * MAINTAINERS: Update my email address.
10223
1085dfd4
KR
102242020-04-12 Kamil Rytarowski <n54@gmx.com>
10225
10226 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10227 IP_ALL.
10228
49d1d1f5
KR
102292020-04-12 Kamil Rytarowski <n54@gmx.com>
10230
10231 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10232 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10233
b4848d2a
KR
102342020-04-12 Kamil Rytarowski <n54@gmx.com>
10235
10236 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10237 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10238
51c133d5
KR
102392020-04-12 Kamil Rytarowski <n54@gmx.com>
10240
10241 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10242
54b8cbd0
KR
102432020-04-11 Kamil Rytarowski <n54@gmx.com>
10244
10245 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10246 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10247 (nbsd_nat_target::info_proc): New functions.
10248 * nbsd-nat.c (kinfo_get_vmmap): New function.
10249 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10250 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10251 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10252 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10253 functions.
10254 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10255 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10256 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10257 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10258 (KINFO_VME_FLAG_GROWS_DOWN): New.
10259
cf83625d
AS
102602020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10261
10262 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10263 bit shift.
10264
0c4311ab
TT
102652020-04-10 Tom Tromey <tromey@adacore.com>
10266
10267 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10268
3e65b3e9
TT
102692020-04-10 Tom Tromey <tromey@adacore.com>
10270
10271 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10272 separate debug files.
10273
13302e95
HD
102742020-04-10 Hannes Domani <ssbssa@yahoo.de>
10275
10276 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10277 Move to...
10278 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10279 ... here.
10280 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10281 Check for STATUS_WX86_BREAKPOINT.
10282 (windows_nat_target::wait): Same.
10283
bdfc1e8a
TV
102842020-04-10 Tom de Vries <tdevries@suse.de>
10285
10286 PR cli/25808
10287 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10288
f4460aec
SM
102892020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10290
10291 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10292 (Write After Approval): Remove Tom de Vries.
10293
a25198bb
BE
102942020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10295
10296 revert partially:
10297 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10298
aac66a4c
SM
10299 * buildsym.c (record_line): Fix undefined behavior and preserve
10300 lines at eof.
a25198bb 10301
206c98a6
KR
103022020-04-09 Kamil Rytarowski <n54@gmx.com>
10303
10304 * auxv.h (svr4_auxv_parse): New.
10305 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10306 and generic_auxv_parse.
10307 (svr4_auxv_parse): Add.
10308 * obsd-tdep.c: Include "auxv.h".
10309 (obsd_auxv_parse): Remove.
10310 (obsd_init_abi): Remove comment.
10311 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10312 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10313 * nbsd-tdep.c: Include "auxv.h".
10314 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10315
71fbdbaf
TT
103162020-04-08 Tom Tromey <tromey@adacore.com>
10317
10318 * nat/windows-nat.h (last_wait_event): Don't declare.
10319 (wait_for_debug_event): Update comment.
10320 * nat/windows-nat.c (last_wait_event): Now static.
10321
2c1d95e8
TT
103222020-04-08 Tom Tromey <tromey@adacore.com>
10323
10324 * windows-nat.c (wait_for_debug_event): Move to
10325 nat/windows-nat.c.
10326 * nat/windows-nat.h (wait_for_debug_event): Declare.
10327 * nat/windows-nat.c (wait_for_debug_event): Move from
10328 windows-nat.c. No longer static.
10329
d2977bc4
TT
103302020-04-08 Tom Tromey <tromey@adacore.com>
10331
10332 * windows-nat.c (get_windows_debug_event): Use
10333 fetch_pending_stop.
10334 * nat/windows-nat.h (fetch_pending_stop): Declare.
10335 * nat/windows-nat.c (fetch_pending_stop): New function.
10336
e758e19c
TT
103372020-04-08 Tom Tromey <tromey@adacore.com>
10338
10339 * windows-nat.c (windows_continue): Use matching_pending_stop and
10340 continue_last_debug_event.
10341 * nat/windows-nat.h (matching_pending_stop)
10342 (continue_last_debug_event): Declare.
10343 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10344 (matching_pending_stop, continue_last_debug_event): New
10345 functions.
10346
8d30e395
TT
103472020-04-08 Tom Tromey <tromey@adacore.com>
10348
10349 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10350 (handle_exception_result): Move to nat/windows-nat.h.
10351 (DEBUG_EXCEPTION_SIMPLE): Remove.
10352 (windows_nat::handle_ms_vc_exception): New function.
10353 (handle_exception): Move to nat/windows-nat.c.
10354 (get_windows_debug_event): Update.
10355 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10356 nat/windows-nat.c.
10357 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10358 (handle_exception_result): Move from windows-nat.c.
10359 (handle_exception): Declare.
10360 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10361 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10362 windows-nat.c.
10363
29de418d
TT
103642020-04-08 Tom Tromey <tromey@adacore.com>
10365
10366 * windows-nat.c (exception_count, event_count): Remove.
10367 (handle_exception, get_windows_debug_event)
10368 (do_initial_windows_stuff): Update.
10369
a816ba18
TT
103702020-04-08 Tom Tromey <tromey@adacore.com>
10371
10372 * windows-nat.c (windows_nat::handle_load_dll)
10373 (windows_nat::handle_unload_dll): Rename. No longer static.
10374 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10375 Declare.
10376
a00caa12
TT
103772020-04-08 Tom Tromey <tromey@adacore.com>
10378
10379 * complaints.h (stop_whining): Declare at top-level.
10380 (complaint): Don't declare stop_whining.
10381
d41b524f
TT
103822020-04-08 Tom Tromey <tromey@adacore.com>
10383
10384 * windows-nat.c (windows_nat::handle_output_debug_string):
10385 Rename. No longer static.
10386 * nat/windows-nat.h (handle_output_debug_string): Declare.
10387
3c76026d
TT
103882020-04-08 Tom Tromey <tromey@adacore.com>
10389
10390 * windows-nat.c (current_process_handle, current_process_id)
10391 (main_thread_id, last_sig, current_event, last_wait_event)
10392 (current_windows_thread, desired_stop_thread_id, pending_stops)
10393 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10394 (display_selectors, fake_create_process)
10395 (get_windows_debug_event): Update.
10396 * nat/windows-nat.h (current_process_handle, current_process_id)
10397 (main_thread_id, last_sig, current_event, last_wait_event)
10398 (current_windows_thread, desired_stop_thread_id, pending_stops)
10399 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10400 * nat/windows-nat.c (current_process_handle, current_process_id)
10401 (main_thread_id, last_sig, current_event, last_wait_event)
10402 (current_windows_thread, desired_stop_thread_id, pending_stops)
10403 (siginfo_er): New globals. Move from windows-nat.c.
10404
9d8679cc
TT
104052020-04-08 Tom Tromey <tromey@adacore.com>
10406
10407 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10408 (handle_load_dll): Update.
10409 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10410
28688adf
TT
104112020-04-08 Tom Tromey <tromey@adacore.com>
10412
10413 * windows-nat.c (enum thread_disposition_type): Move to
10414 nat/windows-nat.h.
10415 (windows_nat::thread_rec): Rename from thread_rec. No longer
10416 static.
10417 (windows_add_thread, windows_nat_target::fetch_registers)
10418 (windows_nat_target::store_registers, handle_exception)
10419 (windows_nat_target::resume, get_windows_debug_event)
10420 (windows_nat_target::get_tib_address)
10421 (windows_nat_target::thread_name)
10422 (windows_nat_target::thread_alive): Update.
10423 * nat/windows-nat.h (enum thread_disposition_type): Move from
10424 windows-nat.c.
10425 (thread_rec): Declare.
10426
4834dad0
TT
104272020-04-08 Tom Tromey <tromey@adacore.com>
10428
10429 * windows-nat.c: Add "using namespace".
10430 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10431 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10432
65bafd5b
TT
104332020-04-08 Tom Tromey <tromey@adacore.com>
10434
10435 * nat/windows-nat.h (struct windows_thread_info): Declare
10436 destructor.
10437 * nat/windows-nat.c (~windows_thread_info): New.
10438
0a4afda3
TT
104392020-04-08 Tom Tromey <tromey@adacore.com>
10440
10441 PR gdb/22992
10442 * windows-nat.c (current_event): Update comment.
10443 (last_wait_event, desired_stop_thread_id): New globals.
10444 (struct pending_stop): New.
10445 (pending_stops): New global.
10446 (windows_nat_target) <stopped_by_sw_breakpoint>
10447 <supports_stopped_by_sw_breakpoint>: New methods.
10448 (windows_fetch_one_register): Add assertions. Adjust PC.
10449 (windows_continue): Handle pending stops. Suspend other threads
10450 when stepping. Use last_wait_event
10451 (wait_for_debug_event): New function.
10452 (get_windows_debug_event): Use wait_for_debug_event. Handle
10453 pending stops. Queue spurious stops.
10454 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10455 (windows_nat_target::kill): Use wait_for_debug_event.
10456 * nat/windows-nat.h (struct windows_thread_info)
10457 <stopped_at_software_breakpoint>: New field.
10458 * nat/windows-nat.c (windows_thread_info::resume): Clear
10459 stopped_at_software_breakpoint.
10460
8e61ebec
TT
104612020-04-08 Tom Tromey <tromey@adacore.com>
10462
10463 * windows-nat.c (enum thread_disposition_type): New.
10464 (thread_rec): Replace "get_context" parameter with "disposition";
10465 change type.
10466 (windows_add_thread, windows_nat_target::fetch_registers)
10467 (windows_nat_target::store_registers, handle_exception)
10468 (windows_nat_target::resume, get_windows_debug_event)
10469 (windows_nat_target::get_tib_address)
10470 (windows_nat_target::thread_name)
10471 (windows_nat_target::thread_alive): Update.
10472
98a03287
TT
104732020-04-08 Tom Tromey <tromey@adacore.com>
10474
10475 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10476 (windows_continue): Use windows_continue::resume.
10477 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10478 resume>: Declare new methods.
10479 * nat/windows-nat.c: New file.
10480 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10481
7c7411bc
TT
104822020-04-08 Tom Tromey <tromey@adacore.com>
10483
10484 * windows-nat.c (windows_add_thread, windows_delete_thread)
10485 (windows_nat_target::fetch_registers)
10486 (windows_nat_target::store_registers, fake_create_process)
10487 (windows_nat_target::resume, windows_nat_target::resume)
10488 (get_windows_debug_event, windows_nat_target::wait)
10489 (windows_nat_target::pid_to_str)
10490 (windows_nat_target::get_tib_address)
10491 (windows_nat_target::get_ada_task_ptid)
10492 (windows_nat_target::thread_name)
10493 (windows_nat_target::thread_alive): Use lwp, not tid.
10494
2950fdf7
TT
104952020-04-08 Tom Tromey <tromey@adacore.com>
10496
10497 * windows-nat.c (handle_exception)
10498 (windows_nat_target::thread_name): Update.
10499 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10500 <name>: Now unique_xmalloc_ptr.
10501
62fe396b
TT
105022020-04-08 Tom Tromey <tromey@adacore.com>
10503
10504 * windows-nat.c (thread_rec)
10505 (windows_nat_target::fetch_registers): Update.
10506 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10507 Update comment.
10508 <debug_registers_changed, reload_context>: Now bool.
10509
e9534bd2
TT
105102020-04-08 Tom Tromey <tromey@adacore.com>
10511
10512 * windows-nat.c (windows_add_thread): Use new.
10513 (windows_init_thread_list, windows_delete_thread): Use delete.
10514 (get_windows_debug_event): Update.
10515 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10516 destructor, and initializers.
10517
ae1f8880
TT
105182020-04-08 Tom Tromey <tromey@adacore.com>
10519
10520 * windows-nat.c (struct windows_thread_info): Remove.
10521 * nat/windows-nat.h: New file.
10522
55a1e039
TT
105232020-04-08 Tom Tromey <tromey@adacore.com>
10524
10525 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10526 (thread_rec, windows_add_thread, windows_delete_thread)
10527 (windows_continue): Update.
10528
93366324
TT
105292020-04-08 Tom Tromey <tromey@adacore.com>
10530
10531 * windows-nat.c (struct windows_thread_info): Remove typedef.
10532 (thread_head): Remove.
10533 (thread_list): New global.
10534 (thread_rec, windows_add_thread, windows_init_thread_list)
10535 (windows_delete_thread, windows_continue): Update.
10536
0f2265e2
SM
105372020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10538
10539 * windows-tdep.h (windows_init_abi): Add comment.
10540 (cygwin_init_abi): New declaration.
10541 * windows-tdep.c: Split signal enumeration in two, one for
10542 Windows and one for Cygwin.
10543 (windows_gdb_signal_to_target): Only deal with signal of the
10544 Windows OS ABI.
10545 (cygwin_gdb_signal_to_target): New function.
10546 (windows_init_abi): Rename to windows_init_abi_common, don't set
10547 gdb_signal_to_target gdbarch method. Add new new function with
10548 this name.
10549 (cygwin_init_abi): New function.
10550 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10551 comment. Don't call windows_init_abi.
10552 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10553 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10554 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10555 i386_windows_init_abi_common, don't call windows_init_abi. Add
10556 a new function of this name.
10557 (i386_cygwin_init_abi): New function.
10558 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10559 OS ABI Cygwin.
10560
3810f182
SM
105612020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10562
10563 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10564 parameter.c.
10565 (dwarf2_read_gdb_index): Update.
10566
063f8e80
KR
105672020-04-07 Kamil Rytarowski <n54@gmx.com>
10568
10569 * nbsd-tdep.c: Include "objfiles.h".
10570 (nbsd_skip_solib_resolver): New.
10571 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10572
85a9510c 105732020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10574
10575 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10576 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10577 with DW_LLE_base_addressx are being emitted in DWARFv5.
10578 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10579 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10580 unsigned integer.
10581
9fc3eaae 105822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10583
10584 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10585 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10586 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10587 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10588 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10589 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10590 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10591
10592
41144253 105932020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10594
10595 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10596 (read_loclist_index): New function definition.
10597 (lookup_loclist_base): New function definition.
10598 (read_loclist_header): New function definition.
10599 (dwarf2_cu): Add loclist_base and loclist_header field.
10600 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10601 (read_full_die_1): Read the value of DW_AT_loclists_base.
10602 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10603 (read_attribute_value): Handle DW_FORM_loclistx.
10604 (skip_one_die): Handle DW_FORM_loclistx.
10605 (loclist_header): New structure declaration.
10606 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10607
9f4e76a4
SM
106082020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10609
10610 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10611 constructor. Remove `addr` parameter from other constructor and
10612 add `per_cu` parameter.
10613 * dwarf2/read.c (create_partial_symtab): Update.
10614
25c11aca
TV
106152020-04-07 Tom de Vries <tdevries@suse.de>
10616
10617 PR symtab/25796
10618 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10619 (partial_die_info::fixup): Inherit has_const_value.
10620
5707e24b
TV
106212020-04-07 Tom de Vries <tdevries@suse.de>
10622
10623 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10624 symbols without address.
10625
05f00e22
KR
106262020-04-06 Kamil Rytarowski <n54@gmx.com>
10627
10628 * nbsd-nat.h (struct thread_info): Add forward declaration.
10629 (nbsd_nat_target::thread_alive): Add.
10630 (nbsd_nat_target::thread_name): Likewise.
10631 (nbsd_nat_target::update_thread_list): Likewise.
10632 (update_thread_list::post_attach): Likewise.
10633 (post_attach::pid_to_str): Likewise.
10634 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10635 (nbsd_thread_lister): Add.
10636 (nbsd_nat_target::thread_alive): Likewise.
10637 (nbsd_nat_target::thread_name): Likewise.
10638 (nbsd_add_threads): Likewise.
10639 (update_thread_list::post_attach): Likewise.
10640 (nbsd_nat_target::update_thread_list): Likewise.
10641 (post_attach::pid_to_str): Likewise.
10642
6ee448cc
TT
106432020-04-06 Tom Tromey <tromey@adacore.com>
10644
10645 * ada-valprint.c (print_variant_part): Extract the variant field.
10646 (print_field_values): Use the field as the outer value when
10647 recursing.
10648
dea34e8c
TT
106492020-04-06 Tom Tromey <tromey@adacore.com>
10650
10651 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10652 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10653 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10654 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10655 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10656
93689ce9
TT
106572020-04-06 Tom Tromey <tromey@adacore.com>
10658
10659 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10660 TYPE_CODE_ERROR.
10661
79743962
KR
106622020-04-06 Kamil Rytarowski <n54@gmx.com>
10663
10664 * nbsd-tdep.c: Include "gdbarch.h".
10665 Define enum with NetBSD signal numbers.
10666 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10667 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10668 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10669 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10670 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10671 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10672 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10673 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10674 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10675 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10676 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10677 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10678
9e7c9a03
HD
106792020-04-03 Hannes Domani <ssbssa@yahoo.de>
10680
10681 PR gdb/25325
10682 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10683
d9e49b61
TT
106842020-04-03 Tom Tromey <tromey@adacore.com>
10685
10686 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10687 Read constant block.
10688
e0fc5c3f
SM
106892020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10690
10691 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10692 (gdb_bfd_get_full_section_contents): New declaration.
10693 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10694 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10695 gdb_bfd_get_full_section_contents.
10696
e2ff18a0
SM
106972020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10698
10699 * exec.c (build_section_table): Replace internal_error with
10700 gdb_assert.
10701 (section_table_xfer_memory_partial): Likewise.
10702 * mdebugread.c (parse_partial_symbols): Likewise.
10703 * psymtab.c (lookup_partial_symbol): Likewise.
10704 * utils.c (wrap_here): Likewise.
10705
0830d301
TT
107062020-04-02 Tom Tromey <tromey@adacore.com>
10707
10708 * f-lang.c (build_fortran_types): Use arch_type to initialize
10709 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10710
e7da7f8f
TT
107112020-04-02 Tom Tromey <tromey@adacore.com>
10712
10713 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10714 of attributes.
10715
c90d28ac
AB
107162020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10717 Bernd Edlinger <bernd.edlinger@hotmail.de>
10718 Tom Tromey <tromey@adacore.com>
10719
10720 * buildsym.c (buildsym_compunit::record_line): Remove
10721 deduplication code.
10722
1aa98955
TV
107232020-04-02 Tom de Vries <tdevries@suse.de>
10724
10725 PR ada/24671
10726 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10727
d3214198
TV
107282020-04-02 Tom de Vries <tdevries@suse.de>
10729
10730 * dwarf2/read.c (dwarf2_gdb_index_functions,
10731 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10732 NULL.
10733 * psymtab.c (psym_lookup_global_symbol_language): New function.
10734 (psym_functions): Init psym_lookup_global_symbol_language with
10735 psym_lookup_global_symbol_language.
10736 * symfile-debug.c (debug_sym_quick_functions): Init
10737 lookup_global_symbol_language with NULL.
10738 * symfile.c (set_initial_language): Remove fixme comment.
10739 * symfile.h (struct quick_symbol_functions): Add
10740 lookup_global_symbol_language.
10741 * symtab.c (find_quick_global_symbol_language): New function.
10742 (find_main_name): Use find_quick_global_symbol_language.
10743
2836752f
SM
107442020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10745
10746 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10747
64dc2d4b
BE
107482020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10749
10750 * buildsym.c (record_line): Fix undefined behavior and preserve
10751 lines at eof.
10752
bbe3dc41
BE
107532020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10754
10755 * buildsym.c (record_line): Fix the resizing condition.
10756
6b4a335b
TT
107572020-04-01 Tom Tromey <tom@tromey.com>
10758
10759 * value.h (value_literal_complex): Add comment.
10760 * valops.c (value_literal_complex): Refer to value.h.
10761
3638a098
TT
107622020-04-01 Tom Tromey <tom@tromey.com>
10763
10764 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10765 (scalar_type): New rule, from typebase.
10766 (typebase): Use scalar_type. Recognize complex types.
10767 (field_name): Handle FLOAT_KEYWORD.
10768 (ident_tokens): Add _Complex and __complex__.
10769
c34e8714
TT
107702020-04-01 Tom Tromey <tom@tromey.com>
10771
10772 PR exp/25299:
10773 * valarith.c (promotion_type, complex_binop): New functions.
10774 (scalar_binop): Handle complex numbers. Use promotion_type.
10775 (value_pos, value_neg, value_complement): Handle complex numbers.
10776
fa649bb7
TT
107772020-04-01 Tom Tromey <tom@tromey.com>
10778
10779 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10780 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10781 (parse_number): Handle complex numbers.
10782
981c08ce
TT
107832020-04-01 Tom Tromey <tom@tromey.com>
10784
10785 * c-valprint.c (c_decorations): Change complex suffix to "i".
10786
4c99290d
TT
107872020-04-01 Tom Tromey <tom@tromey.com>
10788
10789 * valprint.c (generic_value_print_complex): Use accessors.
10790 * value.h (value_real_part, value_imaginary_part): Declare.
10791 * valops.c (value_real_part, value_imaginary_part): New
10792 functions.
10793 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10794
5b930b45
TT
107952020-04-01 Tom Tromey <tom@tromey.com>
10796
10797 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10798 (read_range_type): Update.
10799 * mdebugread.c (basic_type): Update.
10800 * go-lang.c (build_go_types): Use init_complex_type.
10801 * gdbtypes.h (struct main_type) <complex_type>: New member.
10802 (init_complex_type): Update.
10803 (arch_complex_type): Don't declare.
10804 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10805 Make name if none given. Use alloc_type_copy. Look for cached
10806 complex type.
10807 (arch_complex_type): Remove.
10808 (gdbtypes_post_init): Use init_complex_type.
10809 * f-lang.c (build_fortran_types): Use init_complex_type.
10810 * dwarf2/read.c (read_base_type): Update.
10811 * d-lang.c (build_d_types): Use init_complex_type.
10812 * ctfread.c (read_base_type): Update.
10813
53cccef1
TBA
108142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10815
10816 * infrun.c (stop_all_threads): Update assertion, plus when
10817 stopping threads, take into account that we might be trying
10818 to stop an all-stop target.
10819 (stop_waiting): Call 'stop_all_threads' if there exists a
10820 non-stop target.
10821
a0714d30
TBA
108222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10823
10824 * target.h (exists_non_stop_target): New function declaration.
10825 * target.c (exists_non_stop_target): New function.
10826
60e22c1e
HD
108272020-04-01 Hannes Domani <ssbssa@yahoo.de>
10828
10829 PR gdb/24789
10830 * eval.c (is_integral_or_integral_reference): New function.
10831 (evaluate_subexp_standard): Allow integer references in
10832 pointer arithmetic.
10833
e139a727
TBA
108342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10835
10836 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10837 check for no ptid in the stop reply when the target is non-stop.
10838
e0802d59
TT
108392020-04-01 Tom Tromey <tromey@adacore.com>
10840
10841 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10842 "name" parameter to rvalue reference. Initialize m_name_holder.
10843 <lookup_name_info>: New overloads.
10844 <name>: Return gdb::string_view.
10845 <c_str>: New method.
10846 <make_ignore_params>: Update.
10847 <search_name_hash>: Update.
10848 <language_lookup_name>: Return const char *.
10849 <m_name>: Change type.
10850 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10851 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10852 (lookup_name_info::match_any): Update.
10853 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10854 Update.
10855 * minsyms.c (linkage_name_str): Update.
10856 * language.c (default_symbol_name_matcher): Update.
10857 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10858 Update.
10859 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10860 (ada_lookup_name_info::ada_lookup_name_info): Update.
10861 (literal_symbol_name_matcher): Update.
10862
8c072cb6
TT
108632020-04-01 Tom Tromey <tromey@adacore.com>
10864
10865 * psymtab.c (psymtab_search_name): Remove function.
10866 (psym_lookup_symbol): Create search name and lookup name here.
10867 (lookup_partial_symbol): Remove "name" parameter; add
10868 lookup_name.
10869 (psym_expand_symtabs_for_function): Update.
10870
6f29a534
TT
108712020-03-31 Joel Jones <joelkevinjones@gmail.com>
10872
10873 PR tui/25597:
10874 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10875
af62665e
TT
108762020-03-31 Tom Tromey <tromey@adacore.com>
10877
10878 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10879 memcpy.
10880
d1a89da5
NC
108812020-03-30 Nelson Chu <nelson.chu@sifive.com>
10882
10883 * features/riscv/32bit-csr.xml: Regenerated.
10884 * features/riscv/64bit-csr.xml: Regenerated.
10885
d8af9068
TT
108862020-03-30 Tom Tromey <tromey@adacore.com>
10887
10888 * ada-valprint.c (print_variant_part): Update.
10889 * ada-lang.h (ada_which_variant_applies): Update.
10890 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10891 outer_valaddr parameters; replace with "outer" value parameter.
10892 (to_fixed_variant_branch_type): Update.
10893
227c0bf4
PFC
108942020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10895
10896 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10897 <list>. Remove inclusion of observable.h.
10898 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10899 (struct arch_lwp_info): New struct.
10900 (class ppc_linux_dreg_interface): New class.
10901 (struct ppc_linux_process_info): New struct.
10902 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10903 <low_new_clone, low_forget_process, low_prepare_to_resume>
10904 <copy_thread_dreg_state, mark_thread_stale>
10905 <mark_debug_registers_changed, register_hw_breakpoint>
10906 <clear_hw_breakpoint, register_wp, clear_wp>
10907 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10908 <num_memory_accesses, get_trigger_type>
10909 <create_watchpoint_request, hwdebug_point_cmp>
10910 <init_arch_lwp_info, get_arch_lwp_info>
10911 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10912 methods.
10913 <struct ptid_hash>: New inner struct.
10914 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10915 members.
10916 (saved_dabr_value, hwdebug_info, max_slots_number)
10917 (struct hw_break_tuple, struct thread_points, ppc_threads)
10918 (have_ptrace_hwdebug_interface)
10919 (hwdebug_find_thread_points_by_tid)
10920 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10921 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10922 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10923 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10924 use m_dreg_interface.
10925 (hwdebug_point_cmp): Change to...
10926 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10927 reference arguments instead of pointers.
10928 (ppc_linux_nat_target::ranged_break_num_registers): Use
10929 m_dreg_interface.
10930 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10931 m_dreg_interface. Call register_hw_breakpoint.
10932 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10933 m_dreg_interface. Call clear_hw_breakpoint.
10934 (get_trigger_type): Change to...
10935 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10936 comment.
10937 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10938 use m_dreg_interface. Call register_hw_breakpoint.
10939 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10940 use m_dreg_interface. Call clear_hw_breakpoint.
10941 (can_use_watchpoint_cond_accel): Change to...
10942 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10943 method. Update comment, use m_dreg_interface and
10944 m_process_info.
10945 (calculate_dvc): Change to...
10946 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10947 m_dreg_interface.
10948 (num_memory_accesses): Change to...
10949 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10950 (check_condition): Change to...
10951 (ppc_linux_nat_target::check_condition): ...this method.
10952 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10953 comment, use m_dreg_interface.
10954 (create_watchpoint_request): Change to...
10955 (ppc_linux_nat_target::create_watchpoint_request): ...this
10956 method. Use m_dreg_interface.
10957 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10958 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10959 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10960 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10961 (ppc_linux_nat_target::low_forget_process)
10962 (ppc_linux_nat_target::low_new_fork)
10963 (ppc_linux_nat_target::low_new_clone)
10964 (ppc_linux_nat_target::low_delete_thread)
10965 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10966 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10967 only call mark_thread_stale.
10968 (ppc_linux_thread_exit): Remove.
10969 (ppc_linux_nat_target::stopped_data_address): Change to...
10970 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10971 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10972 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10973 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10974 comment. Call low_stopped_data_address.
10975 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10976 m_dreg_interface.
10977 (ppc_linux_nat_target::masked_watch_num_registers): Use
10978 m_dreg_interface.
10979 (ppc_linux_nat_target::copy_thread_dreg_state)
10980 (ppc_linux_nat_target::mark_thread_stale)
10981 (ppc_linux_nat_target::mark_debug_registers_changed)
10982 (ppc_linux_nat_target::register_hw_breakpoint)
10983 (ppc_linux_nat_target::clear_hw_breakpoint)
10984 (ppc_linux_nat_target::register_wp)
10985 (ppc_linux_nat_target::clear_wp)
10986 (ppc_linux_nat_target::init_arch_lwp_info)
10987 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10988 (_initialize_ppc_linux_nat): Remove observer callback.
10989
4db10d8f
PFC
109902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10991
10992 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10993 (ppc_linux_nat_target::auxv_parse)
10994 (ppc_linux_nat_target::read_description)
10995 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10996 Move up.
10997
1310c1b0
PFC
109982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10999
11000 * linux-nat.h (low_new_clone): New method.
11001 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11002
69b037c3
SM
110032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11004
11005 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11006 (dbx_expand_psymtab): ... this.
11007 (start_psymtab): Update.
11008 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11009 (mdebug_expand_psymtab): ... this.
11010 (parse_partial_symbols): Update.
11011 (new_psymtab): Update.
11012 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11013 (xcoff_expand_psymtab): ... this.
11014 (xcoff_start_psymtab): Update.
11015
48993951
SM
110162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11017
11018 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11019 <expand_dependencies>: ... this.
11020 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11021 (partial_symtab::expand_dependencies): ... this.
11022 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11023 Update.
11024 (dwarf2_psymtab::expand_psymtab): Update.
11025 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11026 * mdebugread.c (psymtab_to_symtab_1): Update.
11027 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11028
3ad83046
SM
110292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11030
11031 * psympriv.h (discard_psymtab): Remove.
11032 * dbxread.c (dbx_end_psymtab): Update.
11033 * xcoffread.c (xcoff_end_psymtab): Update.
11034
4d1b9ab6
TT
110352020-03-28 Tom Tromey <tom@tromey.com>
11036
11037 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11038 comment.
11039
f1749218
TT
110402020-03-28 Tom Tromey <tom@tromey.com>
11041
11042 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11043
ebea7626
HD
110442020-03-27 Hannes Domani <ssbssa@yahoo.de>
11045
11046 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11047
a879b4d5
JB
110482020-03-26 John Baldwin <jhb@FreeBSD.org>
11049
11050 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11051
0826b30a
TT
110522020-03-26 Tom Tromey <tom@tromey.com>
11053
11054 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11055 (mark_common_block_symbol_computed, read_tag_string_type)
11056 (attr_to_dynamic_prop, read_subrange_type): Update.
11057 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11058 to be methods on struct attribute.
11059 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11060 (read_call_site_scope, partial_die_info::read)
11061 (partial_die_info::read, lookup_die_type, follow_die_ref):
11062 Update.
11063 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11064 from dwarf2_get_ref_die_offset.
11065 (attribute::constant_value): New method, from
11066 dwarf2_get_attr_constant_value.
11067 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11068 Declare method.
11069 <constant_value>: New method.
11070
2b2558bf
TT
110712020-03-26 Tom Tromey <tom@tromey.com>
11072
11073 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11074 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11075 (dwarf_type_encoding_name): Move to stringify.c.
11076 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11077 * dwarf2/stringify.c: New file.
11078 * dwarf2/stringify.h: New file.
11079
eeb64781
TT
110802020-03-26 Tom Tromey <tom@tromey.com>
11081
11082 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11083 Rewrite.
11084
a39fdb41
TT
110852020-03-26 Tom Tromey <tom@tromey.com>
11086
11087 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11088 methods.
11089 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11090 (lookup_ranges_base): Likewise.
11091 (read_cutu_die_from_dwo, read_full_die_1): Update.
11092
436c571c
TT
110932020-03-26 Tom Tromey <tom@tromey.com>
11094
11095 * dwarf2/read.c (read_import_statement, read_file_scope)
11096 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11097 (read_lexical_block_scope, read_call_site_scope)
11098 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11099 (handle_struct_member_die, process_structure_scope)
11100 (update_enumeration_type_from_children)
11101 (process_enumeration_scope, read_array_type, read_common_block)
11102 (read_namespace, read_module, read_subroutine_type): Update.
11103 (sibling_die): Remove.
11104
052c8bb8
TT
111052020-03-26 Tom Tromey <tom@tromey.com>
11106
11107 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11108 (build_type_psymtabs_reader, read_structure_type)
11109 (read_enumeration_type, read_full_die_1): Update.
11110 (dwarf2_attr_no_follow): Move to die.h.
11111 * dwarf2/die.h (struct die_info) <attr>: New method.
11112
2b24b6e4
TT
111132020-03-26 Tom Tromey <tom@tromey.com>
11114
11115 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11116 <base_address>: Now an optional.
11117 (dwarf2_find_base_address, dwarf2_rnglists_process)
11118 (dwarf2_ranges_process, fill_in_loclist_baton)
11119 (dwarf2_symbol_mark_computed): Update.
11120
c2d50fd0
TT
111212020-03-26 Tom Tromey <tom@tromey.com>
11122
11123 * dwarf2/read.c (struct die_info): Move to die.h.
11124 * dwarf2/die.h: New file.
11125
0df7ad3a
TT
111262020-03-26 Tom Tromey <tom@tromey.com>
11127
11128 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11129 * dwarf2/read.c
11130 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11131 Move to line-header.c.
11132 (read_checked_initial_length_and_offset, read_formatted_entries):
11133 Likewise.
11134 (dwarf_decode_line_header): Split into two.
11135 * dwarf2/line-header.c
11136 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11137 Move from read.c.
11138 (read_checked_initial_length_and_offset, read_formatted_entries):
11139 Likewise.
11140 (dwarf_decode_line_header): New function, split from read.c.
11141
86c0bb4c
TT
111422020-03-26 Tom Tromey <tom@tromey.com>
11143
11144 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11145 Declare method.
11146 * dwarf2/read.c (read_attribute_value): Update.
11147 (dwarf2_per_objfile::read_line_string): Rename from
11148 read_indirect_line_string.
11149 (read_formatted_entries): Update.
11150
2ef46c2f
TT
111512020-03-26 Tom Tromey <tom@tromey.com>
11152
11153 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11154 variable.
11155
4f9c1eda
TT
111562020-03-26 Tom Tromey <tom@tromey.com>
11157
11158 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11159 const.
11160 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11161 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11162 parameter const.
11163
5a0e026f
TT
111642020-03-26 Tom Tromey <tom@tromey.com>
11165
11166 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11167 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11168 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11169 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11170
8844c11b
TT
111712020-03-26 Tom Tromey <tom@tromey.com>
11172
11173 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11174 file_names_size, file_full_name, file_file_name>: Use const.
11175 <file_name_at, file_names>: Add const overload.
11176 * dwarf2/line-header.c (line_header::file_file_name)
11177 (line_header::file_full_name): Update.
11178
c90ec28a
TT
111792020-03-26 Tom Tromey <tom@tromey.com>
11180
11181 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11182 (macro_start_file, consume_improper_spaces)
11183 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11184 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11185 (dwarf_decode_macros): Move to macro.c.
11186 * dwarf2/macro.c: New file.
11187 * dwarf2/macro.h: New file.
11188 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11189
4f44ae6c
TT
111902020-03-26 Tom Tromey <tom@tromey.com>
11191
11192 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11193 method.
11194 * dwarf2/section.c: New method. From
11195 read_indirect_string_at_offset_from.
11196 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11197 (read_indirect_string_at_offset_from): Move to section.c.
11198 (read_indirect_string_at_offset): Rewrite.
11199 (read_indirect_line_string_at_offset): Remove.
11200 (read_indirect_string, read_indirect_line_string)
11201 (dwarf_decode_macro_bytes): Update.
11202
a0194fa8
TT
112032020-03-26 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/section.h (struct dwarf2_section_info)
11206 <overload_complaint>: Declare.
11207 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11208 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11209 Rename from dwarf2_section_buffer_overflow_complaint.
11210 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11211 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11212
3d27bbdb
TT
112132020-03-26 Tom Tromey <tom@tromey.com>
11214
11215 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11216 Declare.
11217 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11218 Move from read.c.
11219 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11220 to section.c.
11221
9eac9650
TT
112222020-03-26 Tom Tromey <tom@tromey.com>
11223
11224 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11225
bf80d710
TT
112262020-03-26 Tom Tromey <tom@tromey.com>
11227
11228 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11229 "builder".
11230 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11231 parameter.
11232 (dwarf_decode_macros): Update.
11233
0314b390
TT
112342020-03-26 Tom Tromey <tom@tromey.com>
11235
11236 * dwarf2/read.c (read_attribute_value): Update.
11237 (read_indirect_string_from_dwz): Move to dwz.c; change into
11238 method.
11239 (dwarf_decode_macro_bytes): Update.
11240 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11241 * dwarf2/dwz.c: New file.
11242 * Makefile.in (COMMON_SFILES): Add dwz.c.
11243
9fda78b6
TT
112442020-03-26 Tom Tromey <tom@tromey.com>
11245
11246 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11247 * dwarf2/read.c: Add include.
11248 * dwarf2/index-write.c: Add include.
11249 * dwarf2/index-cache.c: Add include.
11250 * dwarf2/dwz.h: New file.
11251
33aa3c10
TT
112522020-03-25 Tom Tromey <tom@tromey.com>
11253
11254 * compile/compile-object-load.c (get_out_value_type): Mention
11255 correct symbol name in error message.
11256
d503b685
HD
112572020-03-25 Hannes Domani <ssbssa@yahoo.de>
11258
11259 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11260
7b1eff95
TV
112612020-03-25 Tom de Vries <tdevries@suse.de>
11262
11263 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11264 * symmisc.c (dump_symtab_1): Print user and includes fields.
11265 (maintenance_info_symtabs): Same.
11266
dd895392
AB
112672020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11268
11269 PR gdb/25534
11270 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11271 (riscv_regcache_cooked_write): New function.
11272 (riscv_push_dummy_call): Use new function.
11273 (riscv_return_value): Likewise.
11274
5ab2fbf1
SM
112752020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11276
11277 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11278 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11279 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11280 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11281 * infrun.c (follow_fork): Likewise.
11282 (follow_fork_inferior): Likewise.
11283 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11284 * linux-nat.h (class linux_nat_target): Likewise.
11285 * remote.c (class remote_target) <follow_fork>: Likewise.
11286 (remote_target::follow_fork): Likewise.
11287 * target-delegates.c: Re-generate.
11288 * target.c (default_follow_fork): Likewise.
11289 (target_follow_fork): Likewise.
11290 * target.h (struct target_ops) <follow_fork>: Likewise.
11291 (target_follow_fork): Likewise.
11292
a64fafb5
TV
112932020-03-24 Tom de Vries <tdevries@suse.de>
11294
11295 * psymtab.c (maintenance_info_psymtabs): Print user field.
11296
fe26d3a3
TT
112972020-03-20 Tom Tromey <tromey@adacore.com>
11298
11299 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11300 const.
11301 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11302 const.
11303
c884cc46
SM
113042020-03-20 Simon Marchi <simon.marchi@efficios.com>
11305
11306 * ptrace.m4: Don't check for ptrace declaration.
11307 * config.in: Re-generate.
11308 * configure: Re-generate.
11309 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11310 not defined.
11311
1ff700c2
KR
113122020-03-20 Kamil Rytarowski <n54@gmx.com>
11313
11314 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11315 `PTRACE_TYPE_RET'.
11316 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11317 * sparc-nat.c (gdb_ptrace): Likewise.
11318 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11319
f7d4f0b1
TT
113202020-03-20 Tom Tromey <tromey@adacore.com>
11321
11322 * c-exp.y (lex_one_token): Fix assert.
11323
f67210ff
TT
113242020-03-20 Tom Tromey <tromey@adacore.com>
11325
11326 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11327 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11328 strncpy call.
11329
1773be9e
TT
113302020-03-20 Tom Tromey <tromey@adacore.com>
11331
11332 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11333
70304be9
TT
113342020-03-20 Tom Tromey <tromey@adacore.com>
11335
11336 * ada-valprint.c (print_variant_part): Remove parameters; switch
11337 to value-based API.
11338 (print_field_values): Likewise.
11339 (ada_val_print_struct_union): Likewise.
11340 (ada_value_print_1): Update.
11341
9faa006d
KR
113422020-03-20 Kamil Rytarowski <n54@gmx.com>
11343
11344 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11345 nbsd_nat_target instead of inf_ptrace_target.
11346 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11347 nbsd_nat_target.
11348
4a90f062
KR
113492020-03-20 Kamil Rytarowski <n54@gmx.com>
11350
11351 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11352 it to the ptrace call.
11353 * (store_registers): Likewise.
11354
113552020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11356
11357 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11358 it to the ptrace call.
11359 * (store_registers): Likewise.
11360
2d07da27
LM
113612020-03-19 Luis Machado <luis.machado@linaro.org>
11362
11363 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11364 valid, fetch vg value from ptrace.
11365
f09db380
KR
113662020-03-19 Kamil Rytarowski <n54@gmx.com>
11367 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11368 * inf-ptrace.c: Likewise.
11369 * (gdb_ptrace): Add.
11370 * (inf_ptrace_target::resume): Update.
11371 * (inf_ptrace_target::xfer_partial): Likewise.
11372 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11373 * (inf_ptrace_peek_poke): Update.
11374
fcc7376e
KR
113752020-03-19 Kamil Rytarowski <n54@gmx.com>
11376
11377 * x86-bsd-nat.c (gdb_ptrace): New.
11378 * (x86bsd_dr_set): Add new argument `ptid'.
11379 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11380 x86bsd_dr_set_addr): Update.
11381
cada5fc9
AB
113822020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11383
11384 * remote.c (remote_target::process_stop_reply): Handle events for
11385 all threads differently.
11386
19a2740f
AB
113872020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11388
11389 * completer.c (completion_tracker::remove_completion): Define new
11390 function.
11391 * completer.h (completion_tracker::remove_completion): Declare new
11392 function.
11393 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11394 when adding a C++ function symbol.
11395
724fd9ba
AB
113962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11397
11398 * completer.c (completion_tracker::completion_hash_entry): Define
11399 new class.
11400 (advance_to_filename_complete_word_point): Call
11401 recompute_lowest_common_denominator.
11402 (completion_tracker::completion_tracker): Call discard_completions
11403 to setup the hash table.
11404 (completion_tracker::discard_completions): Allow for being called
11405 from the constructor, pass new equal function, and element deleter
11406 when constructing the hash table. Initialise new class member
11407 variables.
11408 (completion_tracker::maybe_add_completion): Remove use of
11409 m_entries_vec, and store more information into m_entries_hash.
11410 (completion_tracker::recompute_lcd_visitor): New function, most
11411 content taken from...
11412 (completion_tracker::recompute_lowest_common_denominator):
11413 ...here, this now just visits each item in the hash calling the
11414 above visitor.
11415 (completion_tracker::build_completion_result): Remove use of
11416 m_entries_vec, call recompute_lowest_common_denominator.
11417 * completer.h (completion_tracker::have_completions): Remove use
11418 of m_entries_vec.
11419 (completion_tracker::completion_hash_entry): Declare new class.
11420 (completion_tracker::recompute_lowest_common_denominator): Change
11421 function signature.
11422 (completion_tracker::recompute_lcd_visitor): Declare new function.
11423 (completion_tracker::m_entries_vec): Delete.
11424 (completion_tracker::m_entries_hash): Initialize to NULL.
11425 (completion_tracker::m_lowest_common_denominator_valid): New
11426 member variable.
11427 (completion_tracker::m_lowest_common_denominator_max_length): New
11428 member variable.
11429
5a82b8a1
KR
114302020-03-17 Kamil Rytarowski <n54@gmx.com>
11431
11432 * regformats/regdef.h: Put reg in gdb namespace.
11433
fb516a69
KR
114342020-03-17 Kamil Rytarowski <n54@gmx.com>
11435
11436 * i386-bsd-nat.c (gdb_ptrace): New.
11437 * (i386bsd_fetch_inferior_registers,
11438 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11439 * (i386bsd_fetch_inferior_registers,
11440 i386bsd_store_inferior_registers) Use gdb_ptrace.
11441
1c0aa1fb
KR
114422020-03-17 Kamil Rytarowski <n54@gmx.com>
11443
11444 * amd64-bsd-nat.c (gdb_ptrace): New.
11445 * (amd64bsd_fetch_inferior_registers,
11446 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11447 * (amd64bsd_fetch_inferior_registers,
11448 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11449
5ccd2fb7
KR
114502020-03-17 Kamil Rytarowski <n54@gmx.com>
11451
11452 * user-regs.c (user_reg::read): Rename to...
11453 (user_reg::xread): ...this.
11454 * (append_user_reg): Rename argument `read' to `xread'.
11455 * (user_reg_add_builtin): Likewise.
11456 * (user_reg_add): Likewise.
11457 * (value_of_user_reg): Likewise.
11458
2108a63a
KR
114592020-03-17 Kamil Rytarowski <n54@gmx.com>
11460
11461 * sparc-nat.c (gdb_ptrace): New.
11462 * sparc-nat.c (sparc_fetch_inferior_registers)
11463 (sparc_store_inferior_registers) Remove obsolete comment.
11464 * sparc-nat.c (sparc_fetch_inferior_registers)
11465 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11466 * sparc-nat.c (sparc_fetch_inferior_registers)
11467 (sparc_store_inferior_registers) Use gdb_ptrace.
11468
a225c9a8
KR
114692020-03-17 Kamil Rytarowski <n54@gmx.com>
11470
11471 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11472 it to the ptrace call.
11473 * sh-nbsd-nat.c (store_registers): Likewise.
11474
98097623
KR
114752020-03-17 Kamil Rytarowski <n54@gmx.com>
11476
11477 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11478 nbsd_nat_target instead of inf_ptrace_target.
11479 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11480 nbsd_nat_target.
11481
9e38d619
KR
114822020-03-17 Kamil Rytarowski <n54@gmx.com>
11483
11484 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11485
a2ecbe9f
KR
114862020-03-17 Kamil Rytarowski <n54@gmx.com>
11487
11488 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11489 <sys/sysctl.h>.
11490 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11491
58990295
TV
114922020-03-17 Tom de Vries <tdevries@suse.de>
11493
11494 PR gdb/23710
11495 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11496 fields.
11497 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11498 fields.
11499 (process_imported_unit_die): Skip import of c++ CUs.
11500
771dd3a8
TT
115012020-03-16 Tom Tromey <tom@tromey.com>
11502
11503 * p-valprint.c (pascal_object_print_value): Initialize
11504 base_value.
11505
817a7585
AK
115062020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11507 Shahab Vahedi <shahab@synopsys.com>
11508
11509 * Makefile.in: Add arch/arc.o
11510 * configure.tgt: Likewise.
11511 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11512 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11513 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11514 * arc-tdep.h (arc_read_description): Add proto type.
11515 * arch/arc.c: New file.
11516 * arch/arc.h: Likewise.
11517 * features/Makefile: Replace old target descriptions with new.
11518 * features/arc-arcompact.c: Remove.
11519 * features/arc-arcompact.xml: Likewise.
11520 * features/arc-v2.c: Likewise
11521 * features/arc-v2.xml: Likewise
11522 * features/arc/aux-arcompact.xml: New file.
11523 * features/arc/aux-v2.xml: Likewise.
11524 * features/arc/core-arcompact.xml: Likewise.
11525 * features/arc/core-v2.xml: Likewise.
11526 * features/arc/aux-arcompact.c: Generate.
11527 * features/arc/aux-v2.c: Likewise.
11528 * features/arc/core-arcompact.c: Likewise.
11529 * features/arc/core-v2.c: Likewise.
11530 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11531
67430cd0
TT
115322020-03-16 Tom Tromey <tromey@adacore.com>
11533
11534 PR gdb/25663:
11535 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11536 putting value into bcache.
11537
30efb6c7
SM
115382020-03-16 Simon Marchi <simon.marchi@efficios.com>
11539
11540 PR gdb/21500
11541 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11542 to...
11543 (amd64_windows_init_abi_common): ... this. Don't set size of
11544 long type.
11545 (amd64_windows_init_abi): New function.
11546 (amd64_cygwin_init_abi): New function.
11547 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11548 the Cygwin OS ABI.
11549 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11550 comment.
11551
8db52437
SM
115522020-03-16 Simon Marchi <simon.marchi@efficios.com>
11553
11554 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11555 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11556 (pe_import_directory_entry): New struct type.
11557 (is_linked_with_cygwin_dll): New function.
11558 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11559 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11560 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11561
5982a56a
SM
115622020-03-16 Simon Marchi <simon.marchi@efficios.com>
11563
11564 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11565 i386_cygwin_core_osabi_sniffer.
11566
7a1998df
SM
115672020-03-16 Simon Marchi <simon.marchi@efficios.com>
11568
11569 * i386-cygwin-tdep.c: Rename to...
11570 * i386-windows-tdep.c: ... this.
11571 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11572 i386-windows-tdep.c.
11573 * configure.tgt: Likewise.
11574
053205cc
SM
115752020-03-16 Simon Marchi <simon.marchi@efficios.com>
11576
11577 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11578 * osabi.c (gdb_osabi_names): Add "Windows".
11579 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11580 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11581 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11582 i386_cygwin_osabi_sniffer.
11583 (_initialize_i386_cygwin_tdep): Register OS ABI
11584 GDB_OSABI_WINDOWS for i386.
11585 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11586 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11587 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11588 for x86-64.
11589 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11590 when the target matches '*-*-mingw*'.
11591
fe4b2ee6
SM
115922020-03-16 Simon Marchi <simon.marchi@efficios.com>
11593
11594 * defs.h (enum gdb_osabi): Move to...
11595 * osabi.h (enum gdb_osabi): ... here.
11596 * gdbarch.sh: Include osabi.h in gdbarch.h.
11597 * gdbarch.h: Re-generate.
11598
cb9b645d
SM
115992020-03-16 Simon Marchi <simon.marchi@efficios.com>
11600
11601 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11602 function.
11603 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11604
3293bbaf
TT
116052020-03-14 Tom Tromey <tom@tromey.com>
11606
11607 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11608 for C++.
11609 (c_type_print_modifier): Likewise. Add "language" parameter.
11610 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11611 (c_type_print_base_1): Update.
11612 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11613 constants.
11614 * type-stack.c (type_stack::insert): Handle tp_atomic and
11615 tp_restrict.
11616 (type_stack::follow_type_instance_flags): Likewise.
11617 (type_stack::follow_types): Likewise. Merge type-following code.
11618 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11619 (space_identifier, cv_with_space_id)
11620 (const_or_volatile_or_space_identifier_noopt)
11621 (const_or_volatile_or_space_identifier): Remove.
11622 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11623 rules.
11624 (ptr_operator, typebase): Update.
11625 (enum token_flag) <FLAG_C>: New constant.
11626 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11627 "_Atomic".
11628 (lex_one_token): Handle FLAG_C.
11629
154151a6
KR
116302020-03-14 Kamil Rytarowski <n54@gmx.com>
11631
11632 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11633 it to the ptrace call.
11634 * m68k-bsd-nat.c (store_registers): Likewise.
11635
bc107784
KR
116362020-03-14 Kamil Rytarowski <n54@gmx.com>
11637
11638 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11639 gdb_byte *.
11640 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11641 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11642 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11643
01a80117
KR
116442020-03-14 Kamil Rytarowski <n54@gmx.com>
11645
11646 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11647 nbsd_nat_target instead of inf_ptrace_target.
11648 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11649 nbsd_nat_target.
11650
f90280ca
KR
116512020-03-14 Kamil Rytarowski <n54@gmx.com>
11652
11653 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11654 register_t.
11655
6def66f1
KR
116562020-03-14 Kamil Rytarowski <n54@gmx.com>
11657
11658 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11659 it to the ptrace call.
11660 * alpha-bsd-nat.c (store_registers): Likewise.
11661
66eaca97
KR
116622020-03-14 Kamil Rytarowski <n54@gmx.com>
11663
11664 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11665 includes.
11666 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11667 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11668 fill_fpregset): Likewise.
11669
4fed520b
KR
116702020-03-14 Kamil Rytarowski <n54@gmx.com>
11671
11672 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11673 nbsd_nat_target instead of inf_ptrace_target.
11674 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11675 nbsd_nat_target.
11676
2190cf06
KR
116772020-03-14 Kamil Rytarowski <n54@gmx.com>
11678
11679 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11680 register_t.
11681
75c56d3d
KR
116822020-03-14 Kamil Rytarowski <n54@gmx.com>
11683
11684 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11685 it to the ptrace call.
11686 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11687 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11688 * arm-nbsd-nat.c (store_register): Likewise.
11689 * arm-nbsd-nat.c (store_regs): Likewise.
11690 * arm-nbsd-nat.c (store_fp_register): Likewise.
11691 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11692
6018d381
KR
116932020-03-14 Kamil Rytarowski <n54@gmx.com>
11694
11695 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11696 nbsd_nat_target instead of inf_ptrace_target.
11697 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11698 nbsd_nat_target.
11699
013f99f0
KR
117002020-03-14 Kamil Rytarowski <n54@gmx.com>
11701
11702 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11703 it to the ptrace call.
11704 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11705
12753073
KR
117062020-03-14 Kamil Rytarowski <n54@gmx.com>
11707
6227b330
KR
11708 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11709 it to the ptrace call.
11710 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11711
117122020-03-14 Kamil Rytarowski <n54@gmx.com>
11713
11714 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11715 gdb_byte *.
12753073
KR
11716 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11717
d5be5fa4
KR
117182020-03-14 Kamil Rytarowski <n54@gmx.com>
11719
11720 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11721 instead of inf_ptrace_target.
11722 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11723 nbsd_nat_target.
11724
8110f842
KR
117252020-03-14 Kamil Rytarowski <n54@gmx.com>
11726
11727 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11728 register_t.
11729
52feded7
KR
117302020-03-14 Kamil Rytarowski <n54@gmx.com>
11731
11732 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11733 register_t.
11734
25567eee
KR
117352020-03-14 Kamil Rytarowski <n54@gmx.com>
11736
11737 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11738 register_t.
11739
426a9c18
TT
117402020-03-13 Tom Tromey <tom@tromey.com>
11741
11742 * value.h (val_print): Don't declare.
11743 * valprint.h (val_print_array_elements)
11744 (val_print_scalar_formatted, generic_val_print): Don't declare.
11745 * valprint.c (generic_val_print_array): Take a struct value.
11746 (generic_val_print_ptr, generic_val_print_memberptr)
11747 (generic_val_print_bool, generic_val_print_int)
11748 (generic_val_print_char, generic_val_print_complex)
11749 (generic_val_print): Remove.
11750 (generic_value_print): Update.
11751 (do_val_print): Remove unused parameters. Don't call
11752 la_val_print.
11753 (val_print): Remove.
11754 (common_val_print): Update. Don't call value_check_printable.
11755 (val_print_scalar_formatted, val_print_array_elements): Remove.
11756 * rust-lang.c (rust_val_print): Remove.
11757 (rust_language_defn): Update.
11758 * p-valprint.c (pascal_val_print): Remove.
11759 (pascal_value_print_inner): Update.
11760 (pascal_object_print_val_fields, pascal_object_print_val):
11761 Remove.
11762 (pascal_object_print_static_field): Update.
11763 * p-lang.h (pascal_val_print): Don't declare.
11764 * p-lang.c (pascal_language_defn): Update.
11765 * opencl-lang.c (opencl_language_defn): Update.
11766 * objc-lang.c (objc_language_defn): Update.
11767 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11768 * m2-lang.h (m2_val_print): Don't declare.
11769 * m2-lang.c (m2_language_defn): Update.
11770 * language.h (struct language_defn) <la_val_print>: Remove.
11771 * language.c (unk_lang_value_print_inner): Rename. Change
11772 argument types.
11773 (unknown_language_defn, auto_language_defn): Update.
11774 * go-valprint.c (go_val_print): Remove.
11775 * go-lang.h (go_val_print): Don't declare.
11776 * go-lang.c (go_language_defn): Update.
11777 * f-valprint.c (f_val_print): Remove.
11778 * f-lang.h (f_value_print): Don't declare.
11779 * f-lang.c (f_language_defn): Update.
11780 * d-valprint.c (d_val_print): Remove.
11781 * d-lang.h (d_value_print): Don't declare.
11782 * d-lang.c (d_language_defn): Update.
11783 * cp-valprint.c (cp_print_value_fields)
11784 (cp_print_value_fields_rtti, cp_print_value): Remove.
11785 (cp_print_static_field): Update.
11786 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11787 (c_val_print_struct, c_val_print_union, c_val_print_int)
11788 (c_val_print_memberptr, c_val_print): Remove.
11789 * c-lang.h (c_val_print_array, cp_print_value_fields)
11790 (cp_print_value_fields_rtti): Don't declare.
11791 * c-lang.c (c_language_defn, cplus_language_defn)
11792 (asm_language_defn, minimal_language_defn): Update.
11793 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11794 (ada_val_print_enum): Take a struct value.
11795 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11796 (ada_val_print): Remove.
11797 (ada_value_print_1): Update.
11798 (printable_val_type): Remove.
11799 * ada-lang.h (ada_val_print): Don't declare.
11800 * ada-lang.c (ada_language_defn): Update.
11801
42331a1e
TT
118022020-03-13 Tom Tromey <tom@tromey.com>
11803
11804 * valprint.c (do_val_print): Update.
11805 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11806 a struct value.
11807 (value_to_value_object_no_release): Declare.
11808 * python/py-value.c (value_to_value_object_no_release): New
11809 function.
11810 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11811 struct value.
11812 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11813 function.
11814 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11815 a struct value.
11816 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11817 Declare.
11818 (gdbscm_apply_val_pretty_printer): Take a struct value.
11819 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11820 value.
11821 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11822 value.
11823 * extension-priv.h (struct extension_language_ops)
11824 <apply_val_pretty_printer>: Take a struct value.
11825 * cp-valprint.c (cp_print_value): Create a struct value.
11826 (cp_print_value): Update.
11827
3a916a97
TT
118282020-03-13 Tom Tromey <tom@tromey.com>
11829
11830 * ada-valprint.c (print_field_values): Call common_val_print.
11831
b59eac37
TT
118322020-03-13 Tom Tromey <tom@tromey.com>
11833
11834 * ada-valprint.c (val_print_packed_array_elements): Remove
11835 bitoffset and val parameters. Call common_val_print.
11836 (ada_val_print_string): Remove offset, address, and original_value
11837 parameters.
11838 (ada_val_print_array): Update.
11839 (ada_value_print_array): New function.
11840 (ada_value_print_1): Call it.
11841
03371129
TT
118422020-03-13 Tom Tromey <tom@tromey.com>
11843
11844 * ada-valprint.c (ada_value_print): Use common_val_print.
11845
2e088f8b
TT
118462020-03-13 Tom Tromey <tom@tromey.com>
11847
11848 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11849
39ef85a8
TT
118502020-03-13 Tom Tromey <tom@tromey.com>
11851
11852 * ada-valprint.c (ada_value_print_num): New function.
11853 (ada_value_print_1): Use it.
11854
b9fa6e07
TT
118552020-03-13 Tom Tromey <tom@tromey.com>
11856
11857 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11858
416595d6
TT
118592020-03-13 Tom Tromey <tom@tromey.com>
11860
11861 * ada-valprint.c (ada_value_print_ptr): New function.
11862 (ada_value_print_1): Use it.
11863
5b5e15ec
TT
118642020-03-13 Tom Tromey <tom@tromey.com>
11865
11866 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11867 call common_val_print.
11868 (ada_val_print_1): Update.
11869 (ada_value_print_1): New function.
11870 (ada_value_print_inner): Rewrite.
11871
fbf54e75
TT
118722020-03-13 Tom Tromey <tom@tromey.com>
11873
11874 * cp-valprint.c (cp_print_value_fields): Update.
11875 (cp_print_value): New function.
11876
64b653ca
TT
118772020-03-13 Tom Tromey <tom@tromey.com>
11878
11879 * m2-valprint.c (m2_value_print_inner): Use
11880 cp_print_value_fields.
11881 * cp-valprint.c (cp_print_value_fields): New function.
11882 * c-valprint.c (c_value_print_struct): New function.
11883 (c_value_print_inner): Use c_value_print_struct.
11884 * c-lang.h (cp_print_value_fields): Declare.
11885
6999f067
TT
118862020-03-13 Tom Tromey <tom@tromey.com>
11887
11888 * c-valprint.c (c_value_print_array): New function.
11889 (c_value_print_inner): Use it.
11890
ce80b8bd
TT
118912020-03-13 Tom Tromey <tom@tromey.com>
11892
11893 * c-valprint.c (c_value_print_memberptr): New function.
11894 (c_value_print_inner): Use it.
11895
2faac269
TT
118962020-03-13 Tom Tromey <tom@tromey.com>
11897
11898 * c-valprint.c (c_value_print_int): New function.
11899 (c_value_print_inner): Use it.
11900
da3e2c29
TT
119012020-03-13 Tom Tromey <tom@tromey.com>
11902
11903 * c-valprint.c (c_value_print_ptr): New function.
11904 (c_value_print_inner): Use it.
11905
50836231
TT
119062020-03-13 Tom Tromey <tom@tromey.com>
11907
11908 * c-valprint.c (c_value_print_inner): Rewrite.
11909
4f412b6e
TT
119102020-03-13 Tom Tromey <tom@tromey.com>
11911
11912 * valprint.c (generic_value_print_complex): New function.
11913 (generic_value_print): Use it.
11914
f5354008
TT
119152020-03-13 Tom Tromey <tom@tromey.com>
11916
11917 * valprint.c (generic_val_print_float): Don't call
11918 val_print_scalar_formatted.
11919 (generic_val_print, generic_value_print): Update.
11920
3eec3b05
TT
119212020-03-13 Tom Tromey <tom@tromey.com>
11922
11923 * valprint.c (generic_value_print_char): New function
11924 (generic_value_print): Use it.
11925
fdddfccb
TT
119262020-03-13 Tom Tromey <tom@tromey.com>
11927
11928 * valprint.c (generic_value_print_int): New function.
11929 (generic_value_print): Use it.
11930
6dde7521
TT
119312020-03-13 Tom Tromey <tom@tromey.com>
11932
11933 * valprint.c (generic_value_print_bool): New function.
11934 (generic_value_print): Use it.
11935
4112d2e6
TT
119362020-03-13 Tom Tromey <tom@tromey.com>
11937
11938 * valprint.c (generic_val_print_func): Simplify.
11939 (generic_val_print, generic_value_print): Update.
11940
65786af6
TT
119412020-03-13 Tom Tromey <tom@tromey.com>
11942
11943 * valprint.c (generic_val_print_flags): Remove.
11944 (generic_val_print, generic_value_print): Update.
11945 (val_print_type_code_flags): Add original_value parameter.
11946
40f3ce18
TT
119472020-03-13 Tom Tromey <tom@tromey.com>
11948
11949 * valprint.c (generic_val_print): Update.
11950 (generic_value_print): Update.
11951 * valprint.c (generic_val_print_enum): Don't call
11952 val_print_scalar_formatted.
11953
2a5b130b
TT
119542020-03-13 Tom Tromey <tom@tromey.com>
11955
11956 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11957 * valprint.c (generic_value_print_ptr): New function.
11958
abc66ce9
TT
119592020-03-13 Tom Tromey <tom@tromey.com>
11960
11961 * valprint.c (generic_value_print): Rewrite.
11962
07a32858
TT
119632020-03-13 Tom Tromey <tom@tromey.com>
11964
11965 * p-valprint.c (pascal_object_print_value_fields)
11966 (pascal_object_print_value): New functions.
11967
64d64d3a
TT
119682020-03-13 Tom Tromey <tom@tromey.com>
11969
11970 * p-valprint.c (pascal_value_print_inner): Rewrite.
11971
6a95a1f5
TT
119722020-03-13 Tom Tromey <tom@tromey.com>
11973
11974 * f-valprint.c (f_value_print_innner): Rewrite.
11975
59fcdac6
TT
119762020-03-13 Tom Tromey <tom@tromey.com>
11977
11978 * m2-valprint.c (m2_print_unbounded_array): New overload.
11979 (m2_print_unbounded_array): Update.
11980 (m2_print_array_contents): Take a struct value.
11981 (m2_value_print_inner): Rewrite.
11982
d133c3e1
TT
119832020-03-13 Tom Tromey <tom@tromey.com>
11984
11985 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11986 (d_value_print_inner): New function.
11987 * d-lang.h (d_value_print_inner): Declare.
11988 * d-lang.c (d_language_defn): Use d_value_print_inner.
11989
23b0f06b
TT
119902020-03-13 Tom Tromey <tom@tromey.com>
11991
11992 * go-valprint.c (go_value_print_inner): New function.
11993 * go-lang.h (go_value_print_inner): Declare.
11994 * go-lang.c (go_language_defn): Use go_value_print_inner.
11995
5f56f7cb
TT
119962020-03-13 Tom Tromey <tom@tromey.com>
11997
11998 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11999 API.
12000 (rust_val_print): Rewrite.
12001 (rust_value_print_inner): New function, from rust_val_print.
12002 (rust_language_defn): Use rust_value_print_inner.
12003
26792ee0
TT
120042020-03-13 Tom Tromey <tom@tromey.com>
12005
12006 * ada-valprint.c (ada_value_print_inner): New function.
12007 * ada-lang.h (ada_value_print_inner): Declare.
12008 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12009
24051bbe
TT
120102020-03-13 Tom Tromey <tom@tromey.com>
12011
12012 * f-valprint.c (f_value_print_innner): New function.
12013 * f-lang.h (f_value_print_innner): Declare.
12014 * f-lang.c (f_language_defn): Use f_value_print_innner.
12015
c0941be6
TT
120162020-03-13 Tom Tromey <tom@tromey.com>
12017
12018 * p-valprint.c (pascal_value_print_inner): New function.
12019 * p-lang.h (pascal_value_print_inner): Declare.
12020 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12021
62c4663d
TT
120222020-03-13 Tom Tromey <tom@tromey.com>
12023
12024 * m2-valprint.c (m2_value_print_inner): New function.
12025 * m2-lang.h (m2_value_print_inner): Declare.
12026 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12027
62182190
TT
120282020-03-13 Tom Tromey <tom@tromey.com>
12029
12030 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12031 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12032 * c-valprint.c (c_value_print_inner): New function.
12033 * c-lang.h (c_value_print_inner): Declare.
12034 * c-lang.c (c_language_defn, cplus_language_defn)
12035 (asm_language_defn, minimal_language_defn): Use
12036 c_value_print_inner.
12037
1e592a8a
TT
120382020-03-13 Tom Tromey <tom@tromey.com>
12039
12040 * p-valprint.c (pascal_object_print_value_fields): Now static.
12041 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12042
7fe471e9
TT
120432020-03-13 Tom Tromey <tom@tromey.com>
12044
12045 * c-valprint.c (c_val_print_array): Simplify.
12046
d121c6ce
TT
120472020-03-13 Tom Tromey <tom@tromey.com>
12048
12049 * valprint.c (value_print_array_elements): New function.
12050 * valprint.h (value_print_array_elements): Declare.
12051
4dba70ee
TT
120522020-03-13 Tom Tromey <tom@tromey.com>
12053
12054 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12055 * mips-tdep.c (mips_print_register): Use
12056 value_print_scalar_formatted.
12057
4f9ae810
TT
120582020-03-13 Tom Tromey <tom@tromey.com>
12059
12060 * valprint.h (value_print_scalar_formatted): Declare.
12061 * valprint.c (value_print_scalar_formatted): New function.
12062
156bfec9
TT
120632020-03-13 Tom Tromey <tom@tromey.com>
12064
12065 * valprint.h (generic_value_print): Declare.
12066 * valprint.c (generic_value_print): New function.
12067
2b4e573d
TT
120682020-03-13 Tom Tromey <tom@tromey.com>
12069
12070 * valprint.c (do_val_print): Call la_value_print_inner, if
12071 available.
12072 * rust-lang.c (rust_language_defn): Update.
12073 * p-lang.c (pascal_language_defn): Update.
12074 * opencl-lang.c (opencl_language_defn): Update.
12075 * objc-lang.c (objc_language_defn): Update.
12076 * m2-lang.c (m2_language_defn): Update.
12077 * language.h (struct language_defn) <la_value_print_inner>: New
12078 member.
12079 * language.c (unknown_language_defn, auto_language_defn): Update.
12080 * go-lang.c (go_language_defn): Update.
12081 * f-lang.c (f_language_defn): Update.
12082 * d-lang.c (d_language_defn): Update.
12083 * c-lang.c (c_language_defn, cplus_language_defn)
12084 (asm_language_defn, minimal_language_defn): Update.
12085 * ada-lang.c (ada_language_defn): Update.
12086
a1f6a07c
TT
120872020-03-13 Tom Tromey <tom@tromey.com>
12088
12089 * c-valprint.c (c_value_print): Use common_val_print.
12090
410cf315
TT
120912020-03-13 Tom Tromey <tom@tromey.com>
12092
12093 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12094
72a45c93
TT
120952020-03-13 Tom Tromey <tom@tromey.com>
12096
12097 * f-valprint.c (f77_print_array_1, f_val_print): Use
12098 common_val_print.
12099
040f66bd
TT
121002020-03-13 Tom Tromey <tom@tromey.com>
12101
12102 * riscv-tdep.c (riscv_print_one_register_info): Use
12103 common_val_print.
12104
a6e05a6c
TT
121052020-03-13 Tom Tromey <tom@tromey.com>
12106
12107 * mi/mi-main.c (output_register): Use common_val_print.
12108
3444c526
TT
121092020-03-13 Tom Tromey <tom@tromey.com>
12110
12111 * infcmd.c (default_print_one_register_info): Use
12112 common_val_print.
12113
c2a44efe
TT
121142020-03-13 Tom Tromey <tom@tromey.com>
12115
12116 * valprint.h (common_val_print_checked): Declare.
12117 * valprint.c (common_val_print_checked): New function.
12118 * stack.c (print_frame_arg): Use common_val_print_checked.
12119
b0c26e99
TT
121202020-03-13 Tom Tromey <tom@tromey.com>
12121
12122 * valprint.c (do_val_print): New function, from val_print.
12123 (val_print): Use do_val_print.
12124 (common_val_print): Use do_val_print.
12125
ce3acbe9
TT
121262020-03-13 Tom Tromey <tom@tromey.com>
12127
12128 * valprint.c (value_print): Use scoped_value_mark.
12129
96c7f873
TV
121302020-03-13 Tom de Vries <tdevries@suse.de>
12131
12132 PR symtab/25646
12133 * psymtab.c (partial_symtab::partial_symtab): Don't set
12134 globals_offset and statics_offset. Push element onto
12135 current_global_psymbols and current_static_psymbols stacks.
12136 (concat): New function.
12137 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12138 element from current_global_psymbols and current_static_psymbols
12139 stacks. Concat popped elements to global_psymbols and
12140 static_symbols.
12141 (add_psymbol_to_list): Use current_global_psymbols and
12142 current_static_psymbols stacks.
12143 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12144 current_static_psymbols fields.
12145
6ba0a321
CB
121462020-03-12 Christian Biesinger <cbiesinger@google.com>
12147
12148 * corelow.c (sniff_core_bfd): Remove.
12149 (class core_target) <m_core_vec>: Remove.
12150 (core_target::core_target): Update.
12151 (core_file_fns): Remove.
12152 (deprecated_add_core_fns): Remove.
12153 (default_core_sniffer): Remove.
12154 (sniff_core_bfd): Remove.
12155 (default_check_format): Remove.
12156 (gdb_check_format): Remove.
12157 (core_target_open): Update.
12158 (core_target::get_core_register_section): Update.
12159 (get_core_registers_cb): Update.
12160 (core_target::fetch_registers): Update.
12161 * gdbcore.h (struct core_fns): Remove.
12162 (deprecated_add_core_fns): Remove.
12163 (default_core_sniffer): Remove.
12164 (default_check_format): Remove.
12165
227031b2
TT
121662020-03-12 Tom Tromey <tom@tromey.com>
12167
12168 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12169 CORE_ADDR.
12170 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12171
53807e9f
TT
121722020-03-12 Tom Tromey <tom@tromey.com>
12173
12174 * remote.c (remote_target::download_tracepoint)
12175 (remote_target::enable_tracepoint)
12176 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12177 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12178 sprintf_vma.
12179
64f25102
TT
121802020-03-12 Tom Tromey <tom@tromey.com>
12181
12182 * symfile-mem.c: Update CORE_ADDR size assert.
12183
272cd5a3
SM
121842020-03-12 Simon Marchi <simon.marchi@efficios.com>
12185
12186 * selftest.m4: Move to gdbsupport/.
12187 * acinclude.m4: Update path to selftest.m4.
12188
74cd3f9d
SM
121892020-03-12 Simon Marchi <simon.marchi@efficios.com>
12190
12191 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12192 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12193 gdbarch-selfselftests.c and selftest-arch.c.
12194 (SUBDIR_UNITTESTS_OBS): Rename to...
12195 (SELFTESTS_OBS): ... this.
12196 (COMMON_SFILES): Remove disasm-selftests.c and
12197 gdbarch-selftests.c.
12198 * configure.ac: Don't add selftest-arch.{c,o} to
12199 CONFIG_{SRCS,OBS}.
12200 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12201 preprocessor conditions.
12202
db6878ac
SM
122032020-03-12 Simon Marchi <simon.marchi@efficios.com>
12204
12205 * configure.ac: Don't source bfd/development.sh.
12206 * selftest.m4: Modify comment.
12207 * configure: Re-generate.
12208
4d696a5c
SM
122092020-03-12 Simon Marchi <simon.marchi@efficios.com>
12210
12211 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12212 not "true" or "false".
12213 * configure: Re-generate.
12214
8dd8e1c7
CB
122152020-03-12 Christian Biesinger <cbiesinger@google.com>
12216
12217 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12218 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12219 renamed to arm_nbsd_supply_gregset.
12220 (fetch_register): Update to call arm_nbsd_supply_gregset.
12221 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12222 (arm_netbsd_nat_target::fetch_registers): Update.
12223 (fetch_elfcore_registers): Removed.
12224 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12225 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12226 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12227 not require NetBSD system headers.
12228 (arm_nbsd_regset): New struct.
12229 (arm_nbsd_iterate_over_regset_sections): New function.
12230 (arm_netbsd_init_abi_common): Updated to call
12231 set_gdbarch_iterate_over_regset_sections.
12232 * arm-nbsd-tdep.h: New file.
12233
dd69bf7a
KB
122342020-03-11 Kevin Buettner <kevinb@redhat.com>
12235
12236 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12237 recursion.
12238
a0761e34
SM
122392020-03-11 Simon Marchi <simon.marchi@efficios.com>
12240
12241 * configure: Re-generate.
12242
e7a82140
TT
122432020-03-11 Tom Tromey <tromey@adacore.com>
12244
12245 * ada-typeprint.c (print_choices): Fix comment.
12246
dcc050c8
AB
122472020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12248
12249 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12250 previous item in the list, when the list has no items.
12251
1c33af77
TV
122522020-03-11 Tom de Vries <tdevries@suse.de>
12253
12254 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12255 PROP_LOCLIST handling code.
12256
8c95582d
AB
122572020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12258
12259 * buildsym-legacy.c (record_line): Pass extra parameter to
12260 record_line.
12261 * buildsym.c (buildsym_compunit::record_line): Take an extra
12262 parameter, reduce duplication in the line table, and record the
12263 is_stmt flag in the line table.
12264 * buildsym.h (buildsym_compunit::record_line): Add extra
12265 parameter.
12266 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12267 non-statement lines.
12268 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12269 this to the symtab builder.
12270 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12271 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12272 through to dwarf_record_line_1.
12273 * infrun.c (process_event_stop_test): When stepping, don't stop at
12274 a non-statement instruction, and only refresh the step info when
12275 we land in the middle of a line's range. Also add an extra
12276 comment.
12277 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12278 field.
12279 * record-btrace.c (btrace_find_line_range): Only record lines
12280 marked as is-statement.
12281 * stack.c (frame_show_address): Show the frame address if we are
12282 in a non-statement sal.
12283 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12284 (maintenance_print_one_line_table): Print a header for the is_stmt
12285 column, and include is_stmt information in the output.
12286 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12287 preference to non-statements.
12288 (find_pcs_for_symtab_line): Prefer is-statement entries.
12289 (find_line_common): Likewise.
12290 * symtab.h (struct linetable_entry): Add is_stmt field.
12291 (struct symtab_and_line): Likewise.
12292 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12293 arranging the line table.
12294
e4003a34
TV
122952020-03-07 Tom de Vries <tdevries@suse.de>
12296
12297 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12298 DIE.
12299
e8932576
TT
123002020-03-07 Tom Tromey <tom@tromey.com>
12301
12302 * valops.c (value_literal_complex): Remove obsolete comment.
12303 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12304 comment.
12305
29734269
SM
123062020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12307
12308 * infrun.h: Forward-declare thread_info.
12309 (set_step_info): Add thread_info parameter, add doc.
12310 * infrun.c (set_step_info): Add thread_info parameter, move doc
12311 to header.
12312 * infrun.c (process_event_stop_test): Pass thread to
12313 set_step_info call.
12314 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12315 set_step_info.
12316 (prepare_one_step): Add thread_info parameter, pass it to
12317 set_step_frame and prepare_one_step (recursive) call.
12318 (step_1): Pass thread to prepare_one_step call.
12319 (step_command_fsm::should_stop): Pass thread to
12320 prepare_one_step.
12321 (until_next_fsm): Pass thread to set_step_frame call.
12322 (finish_command): Pass thread to set_step_info call.
12323
b7d64b29
HD
123242020-03-06 Hannes Domani <ssbssa@yahoo.de>
12325
12326 * windows-tdep.c (windows_solib_create_inferior_hook):
12327 Check if inferior is running.
12328
09f2921c
TV
123292020-03-06 Tom de Vries <tdevries@suse.de>
12330
12331 * NEWS: Fix "the the".
12332 * ctfread.c: Same.
12333
fd760e79
TV
123342020-03-06 Tom de Vries <tdevries@suse.de>
12335
12336 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12337
20ea4a60
AB
123382020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12339
12340 * .dir-locals.el: Add a comment referencing the other copies of
12341 this file.
12342
0afbabf0
JB
123432020-03-05 John Baldwin <jhb@FreeBSD.org>
12344
12345 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12346 psargs.
12347
842806cb
TBA
123482020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12349
12350 * .gitattributes: New file.
12351
be1e3d3e
TT
123522020-03-04 Tom Tromey <tom@tromey.com>
12353
12354 * symmisc.c (print_symbol_bcache_statistics)
12355 (print_objfile_statistics): Update.
12356 * symfile.c (allocate_symtab): Use intern.
12357 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12358 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12359 macro_cache>: Remove.
12360 <string_cache>: New member.
12361 (struct objfile) <intern>: New methods.
12362 * elfread.c (elf_symtab_read): Use intern.
12363 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12364 (dwarf2_compute_name, dwarf2_physname)
12365 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12366 names.
12367 (guess_partial_die_structure_name): Update.
12368 (partial_die_info::fixup): Intern name.
12369 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12370 name.
12371 (dwarf2_name): Intern name. Update.
12372 * buildsym.c (buildsym_compunit::get_macro_table): Use
12373 string_cache.
12374
4e7625fd
TT
123752020-03-04 Tom Tromey <tom@tromey.com>
12376
12377 * jit.c (bfd_open_from_target_memory): Make "target" const.
12378 * corefile.c (gnutarget): Now const.
12379 * gdbcore.h (gnutarget): Now const.
12380
46f9f931
HD
123812020-03-04 Hannes Domani <ssbssa@yahoo.de>
12382
12383 * NEWS: Mention support for WOW64 processes.
12384 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12385 (amd64_windows_segment_register_p): Remove static.
12386 (_initialize_amd64_windows_nat): Update.
12387 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12388 * i386-windows-nat.c (context_offset): Update.
12389 (i386_mappings): Rename and remove static.
12390 (i386_windows_segment_register_p): Remove static.
12391 (_initialize_i386_windows_nat): Update.
12392 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12393 (STATUS_WX86_SINGLE_STEP): New macro.
12394 (EnumProcessModulesEx): New macro.
12395 (Wow64SuspendThread): New macro.
12396 (Wow64GetThreadContext): New macro.
12397 (Wow64SetThreadContext): New macro.
12398 (Wow64GetThreadSelectorEntry): New macro.
12399 (windows_set_context_register_offsets): Add static.
12400 (windows_set_segment_register_p): Likewise.
12401 (windows_add_thread): Adapt for WOW64 processes.
12402 (windows_fetch_one_register): Likewise.
12403 (windows_nat_target::fetch_registers): Likewise.
12404 (windows_store_one_register): Likewise.
12405 (display_selector): Likewise.
12406 (display_selectors): Likewise.
12407 (handle_exception): Likewise.
12408 (windows_continue): Likewise.
12409 (windows_nat_target::resume): Likewise.
12410 (windows_add_all_dlls): Likewise.
12411 (do_initial_windows_stuff): Likewise.
12412 (windows_nat_target::attach): Likewise.
12413 (windows_get_exec_module_filename): Likewise.
12414 (windows_nat_target::create_inferior): Likewise.
12415 (windows_xfer_siginfo): Likewise.
12416 (_initialize_loadable): Initialize Wow64SuspendThread,
12417 Wow64GetThreadContext, Wow64SetThreadContext,
12418 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12419 * windows-nat.h (windows_set_context_register_offsets):
12420 Remove declaration.
12421 (windows_set_segment_register_p): Likewise.
12422 (i386_windows_segment_register_p): Add declaration.
12423 (amd64_windows_segment_register_p): Likewise.
12424
440cf44e
LM
124252020-03-04 Luis Machado <luis.machado@linaro.org>
12426
12427 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12428 in "info registers" for AArch64/ARM.
12429
12430 The change caused "info registers" to not print GPR's.
12431
12432 gdb/ChangeLog:
12433
12434 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12435
12436 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12437 when reg->group is empty and reggroup is not.
12438
1009d92f
TT
124392020-03-03 Tom Tromey <tromey@adacore.com>
12440
12441 * dwarf2/frame.c (struct dwarf2_frame_cache)
12442 <checked_tailcall_bottom, entry_cfa_sp_offset,
12443 entry_cfa_sp_offset_p>: Remove members.
12444 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12445 (dwarf2_frame_prev_register): Don't call
12446 dwarf2_tailcall_sniffer_first.
12447 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12448 * frame-unwind.c (add_unwinder): New fuction.
12449 (frame_unwind_init): Use it. Add tailcall unwinder.
12450
5e5d66b6
AB
124512020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12452 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12453
12454 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12455 value should be printed as true.
12456
584cf46d
HD
124572020-03-03 Hannes Domani <ssbssa@yahoo.de>
12458
12459 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12460 (windows_init_abi): Set and use windows_so_ops.
12461
7b973adc
SDJ
124622020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12463
12464 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12465 when verifying if dealing with a convenience variable.
12466
bb7b70ab
LM
124672020-03-03 Luis Machado <luis.machado@linaro.org>
12468
12469 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12470
9822cb57
SM
124712020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12472
12473 * infrun.c (gdbarch_supports_displaced_stepping): New.
12474 (use_displaced_stepping): Break up conditions in smaller pieces.
12475 Use gdbarch_supports_displaced_stepping.
12476 (displaced_step_prepare_throw): Use
12477 gdbarch_supports_displaced_stepping.
12478
63e163f2
AB
124792020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12480
12481 * NEWS: Mention new behaviour of the history filename.
12482 * top.c (write_history_p): Add comment.
12483 (show_write_history_p): Add header comment, give a different
12484 message when history writing is on, but the history filename is
12485 empty.
12486 (history_filename): Add comment.
12487 (history_filename_empty): New function.
12488 (show_history_filename): Add header comment, give a different
12489 message when the filename is empty.
12490 (init_history): Compare history_filename against nullptr, and only
12491 read history if the filename is not empty.
12492 (set_history_filename): Add header comment, and only make
12493 non-empty filenames absolute.
12494 (init_main): Make the filename argument to 'set history filename'
12495 optional.
12496
81b86b97
CB
124972020-03-02 Christian Biesinger <cbiesinger@google.com>
12498
12499 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12500 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12501 (fetch_fp_register): Update.
12502 (fetch_fp_regs): Update.
12503 (store_fp_register): Update.
12504 (store_fp_regs): Update.
12505 (arm_netbsd_nat_target::read_description): New function.
12506 (fetch_elfcore_registers): Update.
12507
24ed6739
AB
125082020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12509
12510 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12511 general_thread if the stop reply is missing a thread-id.
12512 (remote_target::process_stop_reply): Use the first non-exited
12513 thread if the target didn't pass a thread-id.
12514 * infrun.c (do_target_wait): Move call to
12515 switch_to_inferior_no_thread to ....
12516 (do_target_wait_1): ... here.
12517
a84bb2a0
JT
125182020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12519
12520 * debuginfod-support.c: Include defs.h first.
12521
658dadf0
TV
125222020-02-28 Tom de Vries <tdevries@suse.de>
12523
12524 * symfile.c (set_initial_language): Use default language for lookup.
12525
4ebe4877
SM
125262020-02-28 Simon Marchi <simon.marchi@efficios.com>
12527
12528 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12529 reader variable, pass `this` to read_cutu_die_from_dwo.
12530
e5da1139
AM
125312020-02-27 Aaron Merey <amerey@redhat.com>
12532
12533 * source.c (open_source_file): Check for nullptr when computing
12534 srcpath.
12535
317f7127
TT
125362020-02-27 Tom Tromey <tromey@adacore.com>
12537
12538 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12539 member.
12540 (dwarf2_add_field): Don't update nfields.
12541 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12542
3104d9ee
AB
125432020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12544
12545 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12546 abs.
12547
b83470bf
TT
125482020-02-26 Tom Tromey <tom@tromey.com>
12549
12550 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12551 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12552 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12553 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12554 per_cu_data.
12555
edfe0a0c
TT
125562020-02-26 Tom Tromey <tom@tromey.com>
12557
12558 * dwarf2/index-write.c (psym_index_map): Change type.
12559 (add_address_entry_worker, write_one_signatured_type)
12560 (recursively_count_psymbols, recursively_write_psymbols)
12561 (class debug_names, psyms_seen_size, write_gdbindex)
12562 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12563
0d79cdc4
AM
125642020-02-26 Aaron Merey <amerey@redhat.com>
12565
12566 * Makefile.in: Handle optional debuginfod support.
12567 * NEWS: Update.
12568 * README: Add --with-debuginfod summary.
12569 * config.in: Regenerate.
12570 * configure: Regenerate.
12571 * configure.ac: Handle optional debuginfod support.
12572 * debuginfod-support.c: debuginfod helper functions.
12573 * debuginfod-support.h: Ditto.
12574 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12575 summary.
12576 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12577 when a dwz file cannot be found.
12578 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12579 debuginfo file cannot be found.
12580 * source.c (open_source_file): Query debuginfod servers when a
12581 source file cannot be found.
12582 * top.c (print_gdb_configuration): Include
12583 --{with,without}-debuginfod in the output.
12584
b65ce565
JG
125852020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12586
12587 * thread.c (thr_try_catch_cmd): Print thread name.
12588
d4c9a4f8
SM
125892020-02-26 Simon Marchi <simon.marchi@efficios.com>
12590
12591 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12592 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12593 dwarf2_fetch_die_type_sect_off): Move to...
12594 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12595 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12596 dwarf2_fetch_die_type_sect_off): ... here.
12597 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12598 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12599 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12600
0dce4280
TV
126012020-02-26 Tom de Vries <tdevries@suse.de>
12602
12603 PR gdb/25603
12604 * symfile.c (set_initial_language): Exit-early if
12605 language_mode == language_mode_manual.
12606
450a1bfc
SM
126072020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12608
12609 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12610 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12611 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12612
9e80cfa1
AB
126132020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12614
12615 * gdbtypes.c (create_array_type_with_stride): Handle negative
12616 array strides.
12617 * valarith.c (value_subscripted_rvalue): Likewise.
12618
09624f1f
LM
126192020-02-25 Luis Machado <luis.machado@linaro.org>
12620
12621 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12622
8cb5117c
SM
126232020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12624
12625 * loc.h (dwarf2_get_die_type): Move to...
12626 * read.h (dwarf2_get_die_type): ... here.
12627 * read.c (dwarf2_get_die_type): Move doc to header.
12628
c325c44e
JB
126292020-02-25 Joel Brobecker <brobecker@adacore.com>
12630
12631 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12632 'gnulib/Makefile.in' to the list.
12633
4ac93832
TT
126342020-02-24 Tom Tromey <tom@tromey.com>
12635
12636 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12637 Remove.
12638 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12639 XOBNEWVEC.
12640
197400e8
TT
126412020-02-24 Tom Tromey <tom@tromey.com>
12642
12643 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12644 New method.
12645 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12646 (dw2_do_instantiate_symtab, dw2_get_file_names)
12647 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12648
76935768
TT
126492020-02-24 Tom Tromey <tom@tromey.com>
12650
12651 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12652 make_scoped_restore.
12653 (dwarf2_psymtab::read_symtab): Don't clear
12654 reading_partial_symbols.
12655
a88ef40d
TV
126562020-02-24 Tom de Vries <tdevries@suse.de>
12657
12658 PR gdb/25592
12659 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12660
c9af6521
TV
126612020-02-24 Tom de Vries <tdevries@suse.de>
12662
12663 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12664 commands layout next/prev/regs.
12665
5707a07a
TT
126662020-02-22 Tom Tromey <tom@tromey.com>
12667
12668 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12669 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12670
3b0fb49e
TT
126712020-02-22 Tom Tromey <tom@tromey.com>
12672
12673 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12674
283be8bf
TT
126752020-02-22 Tom Tromey <tom@tromey.com>
12676
12677 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12678 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12679 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12680 * tui/tui.c (_initialize_tui): Add usage text.
12681
ca793b96
TT
126822020-02-22 Tom Tromey <tom@tromey.com>
12683
12684 * tui/tui-win.c (tui_set_focus_command)
12685 (tui_set_win_height_command): Use error_no_arg.
12686 (_initialize_tui_win): Update help text.
12687 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12688
432b5c40
TT
126892020-02-22 Tom Tromey <tom@tromey.com>
12690
12691 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12692 * tui/tui-disasm.h (struct tui_disasm_window)
12693 <display_start_addr>: Declare.
12694 * tui/tui-source.h (struct tui_source_window)
12695 <display_start_addr>: Declare.
12696 * tui/tui-winsource.h (struct tui_source_window_base)
12697 <show_source_line, display_start_addr>: New methods.
12698 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12699 Rename and move to protected section.
12700 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12701 (tui_source_window_base::do_erase_source_content): Update.
12702 (tui_source_window_base::show_source_line): Now a method.
12703 (tui_source_window_base::show_source_content)
12704 (tui_source_window_base::tui_source_window_base)
12705 (tui_source_window_base::rerender)
12706 (tui_source_window_base::refill)
12707 (tui_source_window_base::do_scroll_horizontal)
12708 (tui_source_window_base::set_is_exec_point_at)
12709 (tui_source_window_base::update_breakpoint_info)
12710 (tui_source_window_base::update_exec_info): Update.
12711 * tui/tui-source.c (tui_source_window::set_contents)
12712 (tui_source_window::showing_source_p)
12713 (tui_source_window::do_scroll_vertical)
12714 (tui_source_window::location_matches_p)
12715 (tui_source_window::line_is_displayed): Update.
12716 (tui_source_window::display_start_addr): New method.
12717 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12718 (tui_disasm_window::do_scroll_vertical)
12719 (tui_disasm_window::location_matches_p): Update.
12720 (tui_disasm_window::display_start_addr): New method.
12721
01b1af32
TT
127222020-02-22 Tom Tromey <tom@tromey.com>
12723
12724 * NEWS: Add entry for gdb.register_window_type.
12725 * tui/tui-layout.h (window_factory): New typedef.
12726 (tui_register_window): Declare.
12727 * tui/tui-layout.c (saved_tui_windows): New global.
12728 (tui_apply_current_layout): Use it.
12729 (tui_register_window): New function.
12730 * python/python.c (do_start_initialization): Call
12731 gdbpy_initialize_tui.
12732 (python_GdbMethods): Add "register_window_type" function.
12733 * python/python-internal.h (gdbpy_register_tui_window)
12734 (gdbpy_initialize_tui): Declare.
12735 * python/py-tui.c: New file.
12736 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12737
fc96d20b
TT
127382020-02-22 Tom Tromey <tom@tromey.com>
12739
12740 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12741
935c78c0
TT
127422020-02-22 Tom Tromey <tom@tromey.com>
12743
12744 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12745 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12746 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12747 (tui_set_win_focus_to): Move from tui-win.c.
12748
0240c8f1
TT
127492020-02-22 Tom Tromey <tom@tromey.com>
12750
12751 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12752 functions.
12753 (known_window_types): New global.
12754 (tui_get_window_by_name): Reimplement.
12755 (initialize_known_windows): New function.
12756 (validate_window_name): Rewrite.
12757 (_initialize_tui_layout): Call initialize_known_windows.
12758
fdb01f0c
TT
127592020-02-22 Tom Tromey <tom@tromey.com>
12760
12761 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12762 Remove constants.
12763 * tui/tui-winsource.h (struct tui_source_window_base)
12764 <tui_source_window_base>: Remove parameter.
12765 * tui/tui-winsource.c
12766 (tui_source_window_base::tui_source_window_base): Remove
12767 parameter.
12768 (tui_source_window_base::refill): Update.
12769 * tui/tui-stack.h (struct tui_locator_window)
12770 <tui_locator_window>: Update.
12771 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12772 Default the constructor.
12773 * tui/tui-regs.h (struct tui_data_item_window)
12774 <tui_data_item_window>: Default the constructor.
12775 (struct tui_data_window) <tui_data_window>: Likewise.
12776 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12777 Default the constructor.
12778 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12779 Default the constructor.
12780 <type>: Remove.
12781 (struct tui_win_info) <tui_win_info>: Default the constructor.
12782 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12783 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12784 Default the constructor.
12785
865a5aec
TT
127862020-02-22 Tom Tromey <tom@tromey.com>
12787
12788 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12789 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12790 * tui/tui-win.c (tui_resize_all): Don't call
12791 tui_delete_invisible_windows.
12792 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12793 done.
12794 (tui_set_layout): Update.
12795 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12796 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12797 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12798
e098d18c
TT
127992020-02-22 Tom Tromey <tom@tromey.com>
12800
12801 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12802 correctly.
12803
eb9c8874
TT
128042020-02-22 Tom Tromey <tom@tromey.com>
12805
12806 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12807
7eed1a8e
TT
128082020-02-22 Tom Tromey <tom@tromey.com>
12809
12810 * tui/tui-winsource.h (struct tui_source_window_iterator)
12811 <inner_iterator>: New etytypedef.
12812 <tui_source_window_iterator>: Take "end" parameter.
12813 <tui_source_window_iterator>: Take iterator.
12814 <operator*, advance>: Update.
12815 <m_iter>: Change type.
12816 <m_end>: New field.
12817 (struct tui_source_windows) <begin, end>: Update.
12818 * tui/tui-layout.c (tui_windows): New global.
12819 (tui_apply_current_layout): Clear tui_windows.
12820 (tui_layout_window::apply): Update tui_windows.
12821 * tui/tui-data.h (tui_windows): Declare.
12822 (all_tui_windows): Now inline function.
12823 (class tui_window_iterator, struct all_tui_windows): Remove.
12824
7c043ba6
TT
128252020-02-22 Tom Tromey <tom@tromey.com>
12826
12827 PR tui/17850:
12828 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12829 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12830 "height" argument.
12831 (class tui_layout_window) <get_sizes>: Likewise.
12832 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12833 argument.
12834 <get_sizes>: Add "height" argument.
12835 <m_vertical>: New field.
12836 * tui/tui-layout.c (tui_layout_split::clone): Update.
12837 (tui_layout_split::get_sizes): Add "height" argument.
12838 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12839 (tui_new_layout_command): Parse "-horizontal".
12840 (_initialize_tui_layout): Update help string.
12841 (tui_layout_split::specification): Add "-horizontal" when needed.
12842 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12843 argument.
12844 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12845 New methods.
12846
6bc56648
TT
128472020-02-22 Tom Tromey <tom@tromey.com>
12848
12849 * tui/tui-layout.h (enum tui_adjust_result): New.
12850 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12851 (class tui_layout_window) <adjust_size>: Return
12852 tui_adjust_result. Rewrite.
12853 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12854 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12855
c22fef7e
TT
128562020-02-22 Tom Tromey <tom@tromey.com>
12857
12858 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12859 parameter and return types.
12860 (class tui_layout_base) <specification>: Add "depth".
12861 (class tui_layout_window) <specification>: Add "depth".
12862 (class tui_layout_split) <specification>: Add "depth".
12863 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12864 and return types.
12865 (tui_new_layout_command): Parse sub-layouts.
12866 (_initialize_tui_layout): Update help string.
12867 (tui_layout_window::specification): Add "depth".
12868 (add_layout_command): Update.
12869
ee325b61
TT
128702020-02-22 Tom Tromey <tom@tromey.com>
12871
12872 * NEWS: Add "tui new-layout" item.
12873 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12874 Add new-layout command to help text.
12875 (validate_window_name): New function.
12876 (tui_new_layout_command): New function.
12877 (_initialize_tui_layout): Register "new-layout".
12878 (tui_layout_window::specification): New method.
12879 (tui_layout_window::specification): New method.
12880 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12881 method.
12882 (class tui_layout_window) <specification>: New method.
12883 (class tui_layout_split) <specification>: New method.
12884
416eb92d
TT
128852020-02-22 Tom Tromey <tom@tromey.com>
12886
12887 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12888 * tui/tui-win.c (window_name_completer): Update comment.
12889 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12890 Declare method.
12891 (class tui_layout_window) <replace_window>: Likewise.
12892 (class tui_layout_split) <replace_window>: Likewise.
12893 (tui_set_layout): Don't declare.
12894 (tui_set_initial_layout): Declare function.
12895 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12896 (asm_regs_layout): New globals.
12897 (tui_current_layout, show_layout): Remove.
12898 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12899 (find_layout, tui_apply_layout): New function.
12900 (layout_completer): Remove.
12901 (tui_next_layout): Reimplement.
12902 (tui_next_layout_command): New function.
12903 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12904 (tui_regs_layout): Reimplement.
12905 (tui_regs_layout_command): New function.
12906 (extract_display_start_addr): Rewrite.
12907 (next_layout, prev_layout): Remove.
12908 (tui_layout_window::replace_window): New method.
12909 (tui_layout_split::replace_window): New method.
12910 (destroy_layout): New function.
12911 (layout_list): New global.
12912 (add_layout_command): New function.
12913 (initialize_layouts): Update.
12914 (tui_layout_command): New function.
12915 (_initialize_tui_layout): Install "layout" commands.
12916 * tui/tui-data.h (enum tui_layout_type): Remove.
12917 (tui_current_layout): Don't declare.
12918
0dbc2fc7
TT
129192020-02-22 Tom Tromey <tom@tromey.com>
12920
12921 * tui/tui-regs.c (tui_reg_layout): Remove.
12922 (tui_reg_command): Use tui_regs_layout.
12923 * tui/tui-layout.h (tui_reg_command): Declare.
12924 * tui/tui-layout.c (tui_reg_command): New function.
12925
5afe342e
TT
129262020-02-22 Tom Tromey <tom@tromey.com>
12927
12928 * tui/tui.c (tui_rl_delete_other_windows): Call
12929 tui_remove_some_windows.
12930 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12931 Declare method.
12932 (class tui_layout_window) <remove_windows>: New method.
12933 (class tui_layout_split) <remove_windows>: Declare.
12934 (tui_remove_some_windows): Declare.
12935 * tui/tui-layout.c (tui_remove_some_windows): New function.
12936 (tui_layout_split::remove_windows): New method.
12937
427326a8
TT
129382020-02-22 Tom Tromey <tom@tromey.com>
12939
12940 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12941 * tui/tui-layout.h (tui_next_layout): Declare.
12942 * tui/tui-layout.c (tui_next_layout): New function.
12943
3fe12b6d
TT
129442020-02-22 Tom Tromey <tom@tromey.com>
12945
12946 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12947 correct coordinates.
12948
59b8b5d2
TT
129492020-02-22 Tom Tromey <tom@tromey.com>
12950
12951 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12952 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12953 DATA_WIN case.
12954
2a3d458b
TT
129552020-02-22 Tom Tromey <tom@tromey.com>
12956
12957 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12958 TUI_DISASM_WIN, not tui_win_list.
12959
3f0cbb04
TT
129602020-02-22 Tom Tromey <tom@tromey.com>
12961
12962 * valprint.c (generic_val_print_enum_1)
12963 (val_print_type_code_flags): Style member names.
12964 * rust-lang.c (val_print_struct, rust_print_enum)
12965 (rust_print_struct_def, rust_internal_print_type): Style member
12966 names.
12967 * p-valprint.c (pascal_object_print_value_fields): Style member
12968 names. Only call fprintf_symbol_filtered for static members.
12969 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12970 * f-valprint.c (f_val_print): Style member names.
12971 * f-typeprint.c (f_type_print_base): Style member names.
12972 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12973 call fprintf_symbol_filtered for static members.
12974 (cp_print_class_member): Style member names.
12975 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12976 member names.
12977 * ada-valprint.c (ada_print_scalar): Style enum names.
12978 (ada_val_print_enum): Likewise.
12979 * ada-typeprint.c (print_enum_type): Style enum names.
12980
d4d947ae
TT
129812020-02-21 Tom Tromey <tom@tromey.com>
12982
12983 * psympriv.h (struct partial_symtab): Update comment.
12984
e94e944b
TT
129852020-02-21 Tom Tromey <tromey@adacore.com>
12986
12987 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12988 type is CORE_ADDR.
12989
1eb73179
TV
129902020-02-21 Tom de Vries <tdevries@suse.de>
12991
12992 PR gdb/25534
12993 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12994 if dependencies[i]->user != NULL.
12995
4f180d53
AT
129962020-02-21 Ali Tamur <tamur@google.com>
12997
12998 * dwarf2/read.c (dwarf2_name): Add null check.
12999
22b6cd70
TT
130002020-02-20 Tom Tromey <tom@tromey.com>
13001
13002 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13003 ">=", in binary search.
13004 (dwarf2_find_containing_comp_unit): New overload.
13005 (run_test): New self-test.
13006 (_initialize_dwarf2_read): Register new test.
13007
bd0cf5a6
NC
130082020-02-20 Nelson Chu <nelson.chu@sifive.com>
13009
13010 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13011 * riscv-tdep.h: Likewise.
13012 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13013 rv32-only CSR.
13014 * features/riscv/64bit-csr.xml: Regenerated.
13015
3f702acd
SDJ
130162020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13017 Tom Tromey <tom@tromey.com>
13018
13019 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13020 of 'fputc_unfiltered'.
13021 (putchar_unfiltered): Call 'fputc_unfiltered'.
13022 (fputc_unfiltered): Call 'fputs_unfiltered'.
13023
d13c7322
AB
130242020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13025
13026 * config.in: Regenerate.
13027 * configure: Regenerate.
13028 * configure.ac: Add --with-python-libdir option.
13029 * main.c: Use WITH_PYTHON_LIBDIR.
13030
869d8950
TT
130312020-02-19 Tom Tromey <tom@tromey.com>
13032
13033 * symtab.c (general_symbol_info::compute_and_set_names): Use
13034 obstack_strndup. Simplify call to symbol_set_demangled_name.
13035
298e9637
SM
130362020-02-19 Simon Marchi <simon.marchi@efficios.com>
13037
13038 * dwarf2/read.c (allocate_signatured_type_table,
13039 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13040 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13041 Remove objfile parameter, update all callers.
13042
08410482
DE
130432020-02-19 Doug Evans <dje@google.com>
13044
13045 PR rust/25535
13046 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13047 rust_enum_variant calculation.
13048
dfdeeca1
TT
130492020-02-19 Tom Tromey <tromey@adacore.com>
13050
13051 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13052
2ef5453b
TT
130532020-02-19 Tom Tromey <tromey@adacore.com>
13054
13055 * ada-lang.c (cache_symbol): Use obstack_strdup.
13056
9f1528a1
AB
130572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13058
13059 * configure: Regenerate.
13060
d3c22fa8
TT
130612020-02-19 Tom Tromey <tromey@adacore.com>
13062
13063 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13064 NULL check.
13065
bf84f706
MR
130662020-02-19 Maciej W. Rozycki <macro@wdc.com>
13067
13068 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13069
d1c9b20f
AB
130702020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13071
13072 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13073 if GDBSERVER is not defined.
13074 (riscv_tdesc_cache): Likewise, also store const target_desc.
13075 (STATIC_IN_GDB): Define.
13076 (riscv_create_target_description): Update declaration with
13077 STATIC_IN_GDB.
13078 (riscv_lookup_target_description): New function, only define if
13079 GDBSERVER is not defined.
13080 * arch/riscv.h (riscv_create_target_description): Declare only
13081 when GDBSERVER is defined.
13082 (riscv_lookup_target_description): New declaration when GDBSERVER
13083 is not defined.
13084 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13085 (riscv_linux_read_features): ...this, and return
13086 riscv_gdbarch_features instead of target_desc.
13087 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13088 (riscv_linux_read_description): Rename to...
13089 (riscv_linux_read_features): ...this.
13090 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13091 Update to use riscv_gdbarch_features and
13092 riscv_lookup_target_description.
13093 * riscv-tdep.c (riscv_find_default_target_description): Use
13094 riscv_lookup_target_description instead of
13095 riscv_create_target_description.
13096
373d7ac0
SM
130972020-02-18 Simon Marchi <simon.marchi@efficios.com>
13098
13099 * valprint.c (generic_val_print_enum_1): When printing a flag
13100 enum with value 0 and there is no enumerator with value 0, print
13101 just "0" instead of "(unknown: 0x0)".
13102
b29a2df0
SM
131032020-02-18 Simon Marchi <simon.marchi@efficios.com>
13104
13105 * valprint.c (generic_val_print_enum_1): Print unknown part of
13106 flag enum in hex.
13107
6740f0cc
SM
131082020-02-18 Simon Marchi <simon.marchi@efficios.com>
13109
13110 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13111 flag enums to contain duplicate enumerators.
13112 * valprint.c (generic_val_print_enum_1): Update comment.
13113
edd45eb0
SM
131142020-02-18 Simon Marchi <simon.marchi@efficios.com>
13115
13116 * dwarf2/read.c: Include "count-one-bits.h".
13117 (update_enumeration_type_from_children): If an enumerator has
13118 multiple bits set, don't treat the enumeration as a "flag enum".
13119 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13120 of flag enums have 0 or 1 bit set.
13121
6d0cf446
BE
131222020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13123
13124 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13125 conversion.
13126 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13127 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13128 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13129 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13130 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13131
7001c1b7
SM
131322020-02-18 Simon Marchi <simon.marchi@efficios.com>
13133
13134 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13135
fdb61c6c
SM
131362020-02-14 Simon Marchi <simon.marchi@efficios.com>
13137
13138 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13139 displaced_step_closure_up.
13140 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13141 (struct displaced_step_closure_up):
13142 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13143 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13144 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13145 Likewise.
13146 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13147 * gdbarch.c, gdbarch.h: Re-generate.
13148 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13149 displaced_step_closure_up.
13150 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13151 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13152 * infrun.h (displaced_step_closure_up): New type alias.
13153 (struct displaced_step_inferior_state) <step_closure>: Change
13154 type to displaced_step_closure_up.
13155 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13156 displaced_step_closure_up.
13157 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13158
a4a38eb4
TT
131592020-02-14 Tom Tromey <tom@tromey.com>
13160
13161 * minidebug.c (gnu_debug_key): New global.
13162 (find_separate_debug_file_in_section): Use it.
13163
e8217e61
SM
131642020-02-14 Simon Marchi <simon.marchi@efficios.com>
13165
13166 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13167 std::unique_ptr.
13168 * gdbarch.c: Re-generate.
13169 * gdbarch.h: Re-generate.
13170 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13171 change.
13172 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13173 type to std::unique_ptr.
13174 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13175 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13176 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13177 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13178 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13179 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13180 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13181 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13182 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13183
d8d83535
SM
131842020-02-14 Simon Marchi <simon.marchi@efficios.com>
13185
13186 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13187 std::unique_ptr.
13188 (displaced_step_clear): Rename to...
13189 (displaced_step_reset): ... this. Just call displaced->reset ().
13190 (displaced_step_clear_cleanup): Rename to...
13191 (displaced_step_reset_cleanup): ... this.
13192 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13193 (displaced_step_fixup): Likewise.
13194 (resume_1): Likewise.
13195 (handle_inferior_event): Restore child's memory before calling
13196 displaced_step_fixup on the parent.
13197 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13198 to std::unique_ptr.
13199 <step_closure>: Change type to std::unique_ptr.
13200
5f661e03
SM
132012020-02-14 Simon Marchi <simon.marchi@efficios.com>
13202
13203 * arm-tdep.c: Include count-one-bits.h.
13204 (cleanup_block_store_pc): Use count_one_bits.
13205 (cleanup_block_load_pc): Use count_one_bits.
13206 (arm_copy_block_xfer): Use count_one_bits.
13207 (thumb2_copy_block_xfer): Use count_one_bits.
13208 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13209 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13210 (thumb_get_next_pcs_raw): Use count_one_bits.
13211 (arm_get_next_pcs_raw): Use count_one_bits_l.
13212 * arch/arm.c (bitcount): Remove.
13213 * arch/arm.h (bitcount): Remove.
13214
8084e579
TT
132152020-02-14 Tom Tromey <tromey@adacore.com>
13216
13217 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13218 Update.
13219 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13220 * dwarf2/loc.c (call_site_find_chain_1): Return
13221 unique_xmalloc_ptr.
13222 (call_site_find_chain): Likewise.
13223
258bf0ee
RB
132242020-02-14 Richard Biener <rguenther@suse.de>
13225
13226 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13227 on expression with division operators.
13228
f98a8458
AKS
132292020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13230
13231 * MAINTAINERS (Write After Approval): Adding myself.
13232
d1437c0e
TT
132332020-02-12 Tom Tromey <tom@tromey.com>
13234
13235 * event-loop.c (event_data, gdb_event, event_handler_func):
13236 Remove.
13237
3d4560f7
TT
132382020-02-12 Tom Tromey <tom@tromey.com>
13239
13240 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13241 (dwarf2_frame_objfile_data): Add comment.
13242 (find_comp_unit, set_comp_unit): New functions.
13243 (dwarf2_frame_find_fde): Use find_comp_unit.
13244 (dwarf2_build_frame_info): Use set_comp_unit.
13245
21982304
TT
132462020-02-12 Tom Tromey <tom@tromey.com>
13247
13248 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13249 (comp_unit): Don't initialize objfile.
13250 (execute_cfa_program): Add text_offset parameter.
13251 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13252 (dwarf2_frame_cache): Update.
13253 (dwarf2_build_frame_info): Don't set "objfile" member.
13254
4debb237
TT
132552020-02-12 Tom Tromey <tom@tromey.com>
13256
13257 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13258 (decode_frame_entry): Likewise.
13259 (dwarf2_build_frame_info): Update.
13260
0d404d44
TT
132612020-02-12 Tom Tromey <tom@tromey.com>
13262
13263 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13264 (decode_frame_entry_1): Use the comp_unit obstack.
13265
a7a3ae5c
TT
132662020-02-12 Tom Tromey <tom@tromey.com>
13267
13268 * dwarf2/frame.c (struct comp_unit): Add initializers and
13269 constructor.
13270 (dwarf2_frame_objfile_data): Store a comp_unit.
13271 (dwarf2_frame_find_fde): Update.
13272 (dwarf2_build_frame_info): Use "new".
13273
a9d65418
TT
132742020-02-12 Tom Tromey <tom@tromey.com>
13275
13276 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13277 (dwarf2_fde_table): Typedef for std::vector.
13278 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13279 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13280 (decode_frame_entry): Update.
13281 (dwarf2_build_frame_info): Use "new".
13282
7559c217
CB
132832020-02-12 Christian Biesinger <cbiesinger@google.com>
13284
13285 * arm-tdep.c (arm_gdbarch_init): Update.
13286 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13287 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13288 have_neon, is_m>: Change to bool.
13289
aeefc73c
CB
132902020-02-12 Christian Biesinger <cbiesinger@google.com>
13291
13292 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13293
d27b8e5f
TT
132942020-02-12 Tom Tromey <tom@tromey.com>
13295
13296 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13297
cd5900f3
HD
132982020-02-12 Hannes Domani <ssbssa@yahoo.de>
13299
13300 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13301 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13302
f056b22b
TT
133032020-02-11 Tom Tromey <tom@tromey.com>
13304
13305 * psymtab.h: Update comment.
13306
f92ff6b5
TT
133072020-02-11 Tom Tromey <tom@tromey.com>
13308
13309 * gdb_obstack.h (struct auto_obstack): Use
13310 DISABLE_COPY_AND_ASSIGN.
13311
3fd6912b
TT
133122020-02-11 Tom Tromey <tom@tromey.com>
13313
13314 * dwarf2/frame.h (struct objfile): Don't forward declare.
13315
69ed9b74
CB
133162020-02-11 Christian Biesinger <cbiesinger@google.com>
13317
13318 * cris-tdep.c (cris_supply_gregset): Change signature to match
13319 what struct regset expects.
13320 (cris_regset): New struct.
13321 (fetch_core_registers): Remove.
13322 (cris_iterate_over_regset_sections): New function.
13323 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13324 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13325
bda874f6
CB
133262020-02-11 Christian Biesinger <cbiesinger@google.com>
13327
13328 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13329 registers.
13330
754e1564
CB
133312020-02-11 Christian Biesinger <cbiesinger@google.com>
13332
13333 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13334
8ddd8e0e
SM
133352020-02-11 Simon Marchi <simon.marchi@efficios.com>
13336
13337 * configure: Re-generate.
13338
898e7f60
SM
133392020-02-11 Simon Marchi <simon.marchi@efficios.com>
13340
13341 * configure: Re-generate.
13342
58df732b
SM
133432020-02-11 Simon Marchi <simon.marchi@efficios.com>
13344
13345 * acinclude: Update warning.m4 path.
13346 * warning.m4: Move to gdbsupport.
13347
da5bd37e
TT
133482020-02-11 Tom Tromey <tromey@adacore.com>
13349
13350 * remote.c (remote_console_output): Update.
13351 * printcmd.c (printf_command): Update.
13352 * event-loop.c (gdb_wait_for_event): Update.
13353 * linux-nat.c (sigchld_handler): Update.
13354 * remote-sim.c (gdb_os_write_stdout): Update.
13355 (gdb_os_flush_stdout): Update.
13356 (gdb_os_flush_stderr): Update.
13357 (gdb_os_write_stderr): Update.
13358 * exceptions.c (print_exception): Update.
13359 * remote-fileio.c (remote_fileio_func_read): Update.
13360 (remote_fileio_func_write): Update.
13361 * tui/tui.c (tui_enable): Update.
13362 * tui/tui-interp.c (tui_interp::init): Update.
13363 * utils.c (init_page_info): Update.
13364 (putchar_unfiltered, fputc_unfiltered): Update.
13365 (gdb_flush): Update.
13366 (emit_style_escape): Update.
13367 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13368 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13369 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13370 (stderr_file::write): Update.
13371 (stderr_file::puts): Update.
13372 * ui-file.h (ui_file_isatty, ui_file_write)
13373 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13374 (ui_file_puts): Don't declare.
13375
85f0dd3c
TV
133762020-02-10 Tom de Vries <tdevries@suse.de>
13377
13378 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13379 sentinel to char *.
13380
2e927613
TV
133812020-02-09 Tom de Vries <tdevries@suse.de>
13382
13383 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13384 filename if it matches "<artificial>".
13385
6bafc845
HD
133862020-02-09 Hannes Domani <ssbssa@yahoo.de>
13387
13388 * windows-tdep.c (struct enum_value_name): New struct.
13389 (create_enum): New function.
13390 (windows_get_siginfo_type): Create and use enum types.
13391
7928d571
HD
133922020-02-09 Hannes Domani <ssbssa@yahoo.de>
13393
13394 * NEWS: Mention $_siginfo support for Windows.
13395 * windows-nat.c (handle_exception): Set siginfo_er.
13396 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13397 (windows_xfer_siginfo): New function.
13398 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13399 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13400 (init_windows_gdbarch_data): New function.
13401 (get_windows_gdbarch_data): New function.
13402 (windows_get_siginfo_type): New function.
13403 (windows_init_abi): Register windows_get_siginfo_type.
13404 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13405
6751ebae
TT
134062020-02-08 Tom Tromey <tom@tromey.com>
13407
13408 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13409 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13410 <keep>: Declare method.
13411 <m_keep>: Remove member.
13412 <~cutu_reader>: Remove.
13413 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13414 (cutu_reader::cutu_reader): Update.
13415 (cutu_reader::keep): Rename from ~cutu_reader.
13416 (process_psymtab_comp_unit, build_type_psymtabs_1)
13417 (process_skeletonless_type_unit, load_partial_comp_unit)
13418 (load_full_comp_unit, dwarf2_read_addr_index)
13419 (read_signatured_type): Update.
13420
135f5437
TT
134212020-02-08 Tom Tromey <tom@tromey.com>
13422
13423 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13424 "want_partial_unit" parameter.
13425 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13426 Inline check for DW_TAG_partial_unit.
13427 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13428
9f66ff1c
TT
134292020-02-08 Tom Tromey <tom@tromey.com>
13430
13431 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13432 read.c.
13433 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13434 read.c.
13435
c8a7a66f
TT
134362020-02-08 Tom Tromey <tom@tromey.com>
13437
13438 * dwarf2/read.c (read_address): Move to comp-unit.c.
13439 (dwarf2_rnglists_process, dwarf2_ranges_process)
13440 (read_attribute_value, dwarf_decode_lines_1)
13441 (var_decode_location, decode_locdesc): Update.
13442 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13443 read.c. Remove "cu" parameter.
13444 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13445 method.
13446
8266302d
TT
134472020-02-08 Tom Tromey <tom@tromey.com>
13448
13449 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13450 (read_indirect_line_string): Update.
13451 * dwarf2/comp-unit.c (read_offset): Remove.
13452 (read_comp_unit_head): Update.
13453 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13454 method.
13455 (read_offset): Don't declare.
13456
4057dfde
TT
134572020-02-08 Tom Tromey <tom@tromey.com>
13458
13459 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13460 * dwarf2/read.c (struct comp_unit_head): Move to
13461 dwarf2/comp-unit.h.
13462 (enum class rcuh_kind): Move to comp-unit.h.
13463 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13464 (read_comp_unit_head, error_check_comp_unit_head)
13465 (read_and_check_comp_unit_head): Move to comp-unit.c.
13466 (read_offset, dwarf_unit_type_name): Likewise.
13467 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13468 (cutu_reader::cutu_reader, read_call_site_scope)
13469 (find_partial_die, follow_die_offset): Update.
13470 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13471
24aa364d
TT
134722020-02-08 Tom Tromey <tom@tromey.com>
13473
13474 * dwarf2/read.c (read_offset_1): Move to leb.c.
13475 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13476 (dwarf_decode_macro_bytes): Update.
13477 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13478 * dwarf2/leb.h (read_offset): Declare.
13479
2c7d5afc
TT
134802020-02-08 Tom Tromey <tom@tromey.com>
13481
13482 * dwarf2/read.c (dwarf2_section_size): Remove.
13483 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13484 Update.
13485 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13486
4075cb26
TT
134872020-02-08 Tom Tromey <tom@tromey.com>
13488
13489 * dwarf2/read.c (read_initial_length): Move to leb.c.
13490 * dwarf2/leb.h (read_initial_length): Declare.
13491 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13492 handle_nonstd parameter.
13493 * dwarf2/frame.c (read_initial_length): Remove.
13494 (decode_frame_entry_1): Update.
13495
09ba997f
TT
134962020-02-08 Tom Tromey <tom@tromey.com>
13497
13498 * dwarf2/loc.c (dwarf2_find_location_expression)
13499 (dwarf_evaluate_loc_desc::get_tls_address)
13500 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13501 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13502 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13503 (dwarf2_compile_property_to_c)
13504 (dwarf2_loc_desc_get_symbol_read_needs)
13505 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13506 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13507 (loclist_describe_location, loclist_tracepoint_var_ref)
13508 (loclist_generate_c_location): Update.
13509 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13510 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13511 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13512 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13513 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13514 (dwarf2_per_cu_data::addr_size)
13515 (dwarf2_per_cu_data::ref_addr_size)
13516 (dwarf2_per_cu_data::text_offset)
13517 (dwarf2_per_cu_data::addr_type): Now methods.
13518 (per_cu_header_read_in): Make per_cu "const".
13519 (dwarf2_version): Remove.
13520 (dwarf2_per_cu_data::int_type): Now a method.
13521 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13522 (set_die_type, read_array_type, read_subrange_index_type)
13523 (read_tag_string_type, read_subrange_type): Update.
13524 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13525 offset_size, ref_addr_size, text_offset, addr_type, version,
13526 objfile, int_type, addr_sized_int_type>: Declare methods.
13527
96c738c0
TT
135282020-02-08 Tom Tromey <tom@tromey.com>
13529
13530 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13531 Move earlier.
13532
8fdd972c
TT
135332020-02-08 Tom Tromey <tom@tromey.com>
13534
13535 * dwarf2/read.h (dwarf_line_debug): Declare.
13536 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13537 * dwarf2/read.c: Move line_header code to new files.
13538 (dwarf_line_debug): No longer static.
13539 * dwarf2/line-header.c: New file.
13540 * dwarf2/line-header.h: New file.
13541
03075812
TT
135422020-02-08 Tom Tromey <tom@tromey.com>
13543
13544 * dwarf2/read.c (struct line_header) <file_full_name,
13545 file_file_name>: Return unique_xmalloc_ptr.
13546 (line_header::file_file_name): Update.
13547 (line_header::file_full_name): Update.
13548 (dw2_get_file_names_reader): Update.
13549 (macro_start_file): Update.
13550
bb822404
TT
135512020-02-08 Tom Tromey <tom@tromey.com>
13552
13553 * dwarf2/read.c (struct line_header) <file_full_name,
13554 file_file_name>: Declare methods.
13555 (dw2_get_file_names_reader): Update.
13556 (file_file_name): Now a method.
13557 (file_full_name): Likewise.
13558 (macro_start_file): Update.
13559
009b64fc
TT
135602020-02-08 Tom Tromey <tom@tromey.com>
13561
13562 * dwarf2/read.c (dwarf_always_disassemble)
13563 (show_dwarf_always_disassemble): Move to loc.c.
13564 (_initialize_dwarf2_read): Move "always-disassemble" registration
13565 to loc.c.
13566 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13567 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13568 static.
13569 (show_dwarf_always_disassemble): Move from read.c.
13570 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13571
5895093f
TT
135722020-02-08 Tom Tromey <tom@tromey.com>
13573
13574 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13575 (create_quick_file_names_table): Return htab_up.
13576 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13577 Update.
13578 * dwarf2/read.h (struct dwarf2_per_objfile)
13579 <quick_file_names_table>: Now htab_up.
13580
b3b32279
TT
135812020-02-08 Tom Tromey <tom@tromey.com>
13582
13583 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13584
1d33d811
TT
135852020-02-08 Tom Tromey <tom@tromey.com>
13586
13587 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13588 Rewrite.
13589 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13590 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13591 (abbrev_table::abbrev_table): No longer inline.
13592 (ABBREV_HASH_SIZE): Remove.
13593 (abbrev_table::m_abbrevs): Now an htab_up.
13594
86de1d91
TT
135952020-02-08 Tom Tromey <tom@tromey.com>
13596
13597 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13598 (cutu_reader): Update.
13599 (build_type_psymtabs_1): Update.
13600 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13601 (abbrev_table::alloc_abbrev): Update.
13602 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13603 (abbrev_table::read): New static method, renamed from
13604 abbrev_table_read_table.
13605 (abbrev_table::alloc_abbrev)
13606 (abbrev_table::add_abbrev): Now private.
13607 (abbrev_table::abbrev_table): Now private.
13608 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13609
0335378b
TT
136102020-02-08 Tom Tromey <tom@tromey.com>
13611
13612 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13613 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13614 htab_up.
13615
48b490f2
TT
136162020-02-08 Tom Tromey <tom@tromey.com>
13617
13618 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13619 htab_up.
13620 (lookup_dwo_unit_in_dwp): Update.
13621 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13622 on obstack.
13623
bc68fb19
TT
136242020-02-08 Tom Tromey <tom@tromey.com>
13625
13626 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13627 obstack.
13628
d15acc42
TT
136292020-02-08 Tom Tromey <tom@tromey.com>
13630
13631 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13632 line_header_hash.
13633 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13634 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13635 Change type to htab_up.
13636
eaa5fa8b
TT
136372020-02-08 Tom Tromey <tom@tromey.com>
13638
13639 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13640 htab_up. Don't allocate on obstack.
13641 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13642 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13643 Change type to htab_up.
13644
b0b6a987
TT
136452020-02-08 Tom Tromey <tom@tromey.com>
13646
13647 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13648 Change type to htab_up.
13649 * dwarf2/read.c (create_signatured_type_table_from_index)
13650 (create_signatured_type_table_from_debug_names)
13651 (create_all_type_units, add_type_unit)
13652 (lookup_dwo_signatured_type, lookup_signatured_type)
13653 (process_skeletonless_type_unit): Update.
13654 (create_debug_type_hash_table, create_debug_types_hash_table):
13655 Change type of types_htab.
13656 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13657 htab_up. Don't allocate on obstack.
13658 (create_cus_hash_table): Change type of cus_htab parameter.
13659 (struct dwo_file) <cus, tus>: Now htab_up.
13660 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13661 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13662 (queue_and_load_all_dwo_tus): Update.
13663 * dwarf2/index-write.c (write_gdbindex): Update.
13664 (write_debug_names): Update.
13665
39856def
TT
136662020-02-08 Tom Tromey <tom@tromey.com>
13667
13668 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13669 dwarf2/read.c. Remove "next" member. Add constructor ntad
13670 destructor.
13671 (struct dwarf2_per_objfile) <queue>: New member.
13672 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13673 dwarf2/read.h.
13674 (dwarf2_queue, dwarf2_queue_tail): Remove.
13675 (class dwarf2_queue_guard): Add parameter to constructor. Use
13676 DISABLE_COPY_AND_ASSIGN.
13677 <m_per_objfile>: New member.
13678 <~dwarf2_queue_guard>: Rewrite.
13679 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13680 Update.
13681 (~dwarf2_queue_item): New.
13682
3e225074
TT
136832020-02-08 Tom Tromey <tom@tromey.com>
13684
13685 * dwarf2/read.c (struct die_info) <has_children>: New member.
13686 (dw2_get_file_names_reader): Remove has_children.
13687 (dw2_get_file_names): Update.
13688 (read_cutu_die_from_dwo): Remove has_children.
13689 (cutu_reader::init_tu_and_read_dwo_dies)
13690 (cutu_reader::cutu_reader): Update.
13691 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13692 Remove has_children.
13693 (build_type_psymtabs_1, process_skeletonless_type_unit)
13694 (load_partial_comp_unit, load_full_comp_unit): Update.
13695 (create_dwo_cu_reader): Remove has_children.
13696 (create_cus_hash_table, read_die_and_children): Update.
13697 (read_full_die_1,read_full_die): Remove has_children.
13698 (read_signatured_type): Update.
13699 (class cutu_reader) <has_children>: Remove.
13700
82ca8957
TT
137012020-02-08 Tom Tromey <tom@tromey.com>
13702
13703 * dwarf2/expr.c: Rename from dwarf2expr.c.
13704 * dwarf2/expr.h: Rename from dwarf2expr.h.
13705 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13706 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13707 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13708 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13709 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13710 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13711 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13712 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13713 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13714 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13715 * dwarf2/loc.c: Rename from dwarf2loc.c.
13716 * dwarf2/loc.h: Rename from dwarf2loc.h.
13717 * dwarf2/read.c: Rename from dwarf2read.c.
13718 * dwarf2/read.h: Rename from dwarf2read.h.
13719 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13720 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13721 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13722 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13723 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13724 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13725 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13726 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13727 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13728 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13729 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13730 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13731 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13732 Update.
13733 * Makefile.in (COMMON_SFILES): Update.
13734 (HFILES_NO_SRCDIR): Update.
13735
9e35d499
TT
137362020-02-08 Tom Tromey <tom@tromey.com>
13737
13738 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13739 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13740
1eba2311
TT
137412020-02-08 Tom Tromey <tom@tromey.com>
13742
13743 * dwarf2read.h (struct die_info): Don't declare.
13744
e41c2da2
TT
137452020-02-08 Tom Tromey <tom@tromey.com>
13746
13747 * dwarf2read.h (die_info_ptr): Remove typedef.
13748
4fc6c0d5
TT
137492020-02-08 Tom Tromey <tom@tromey.com>
13750
13751 * dwarf2read.c (read_call_site_scope)
13752 (handle_data_member_location, dwarf2_add_member_fn)
13753 (mark_common_block_symbol_computed, read_common_block)
13754 (attr_to_dynamic_prop, partial_die_info::read)
13755 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13756 (dwarf2_symbol_mark_computed, set_die_type): Update.
13757 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13758 method.
13759 (attr_form_is_block): Don't declare.
13760 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13761
cd6c91b4
TT
137622020-02-08 Tom Tromey <tom@tromey.com>
13763
13764 * dwarf2read.c (dwarf2_find_base_address, )
13765 (read_call_site_scope, rust_containing_type)
13766 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13767 (handle_data_member_location, dwarf2_add_member_fn)
13768 (get_alignment, read_structure_type, process_structure_scope)
13769 (mark_common_block_symbol_computed, read_common_block)
13770 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13771 (partial_die_info::read, read_attribute_value, new_symbol)
13772 (lookup_die_type, dwarf2_get_ref_die_offset)
13773 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13774 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13775 (dwarf2_symbol_mark_computed): Update.
13776 * dwarf2/attribute.h (struct attribute) <value_as_address,
13777 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13778 methods.
13779 (value_as_address, attr_form_is_section_offset)
13780 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13781 * dwarf2/attribute.c (attribute::value_as_address)
13782 (attribute::form_is_section_offset, attribute::form_is_constant)
13783 (attribute::form_is_ref): Now methods.
13784
162dce55
TT
137852020-02-08 Tom Tromey <tom@tromey.com>
13786
13787 * dwarf2read.c (struct attribute, DW_STRING)
13788 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13789 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13790 (attr_form_is_block, attr_form_is_section_offset)
13791 (attr_form_is_constant, attr_form_is_ref): Move.
13792 * dwarf2/attribute.h: New file.
13793 * dwarf2/attribute.c: New file, from dwarf2read.c.
13794 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13795
3054dd54
TT
137962020-02-08 Tom Tromey <tom@tromey.com>
13797
13798 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13799 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13800 Move.
13801 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13802 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13803 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13804 abbrev.c.
13805 * dwarf2/abbrev.h: New file.
13806 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13807 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13808
96b79293
TT
138092020-02-08 Tom Tromey <tom@tromey.com>
13810
13811 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13812 (dwarf2_section_size, dwarf2_get_section_info)
13813 (create_signatured_type_table_from_debug_names)
13814 (create_addrmap_from_aranges, read_debug_names_from_section)
13815 (get_gdb_index_contents_from_section, read_comp_unit_head)
13816 (error_check_comp_unit_head, read_abbrev_offset)
13817 (create_debug_type_hash_table, init_cu_die_reader)
13818 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13819 (read_comp_units_from_section, create_cus_hash_table)
13820 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13821 (create_dwp_v2_section, dwarf2_rnglists_process)
13822 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13823 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13824 (read_indirect_string_from_dwz, read_addr_index_1)
13825 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13826 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13827 (fill_in_loclist_baton): Update.
13828 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13829 get_containing_section, get_bfd_owner, get_bfd_section,
13830 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13831 (dwarf2_read_section, get_section_name, get_section_file_name)
13832 (get_containing_section, get_section_bfd_owner)
13833 (get_section_bfd_section, get_section_name, get_section_file_name)
13834 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13835 declare.
13836 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13837 (dwarf2_section_info::get_bfd_owner)
13838 (dwarf2_section_info::get_bfd_section)
13839 (dwarf2_section_info::get_name)
13840 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13841 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13842 (dwarf2_section_info::read): Now methods.
13843 * dwarf-index-write.c (class debug_names): Update.
13844
2c86cff9
TT
138452020-02-08 Tom Tromey <tom@tromey.com>
13846
13847 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13848 Move to dwarf2/section.h.
13849 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13850 (get_section_bfd_section, get_section_name)
13851 (get_section_file_name, get_section_id, get_section_flags)
13852 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13853 dwarf2/section.c.
13854 * dwarf2/section.h: New file.
13855 * dwarf2/section.c: New file, from dwarf2read.c.
13856 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13857
f4382c45
TT
138582020-02-08 Tom Tromey <tom@tromey.com>
13859
13860 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13861 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13862 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13863 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13864 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13865 * dwarf2/leb.h: New file, from dwarf2read.c.
13866 * dwarf2/leb.c: New file, from dwarf2read.c.
13867 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13868 Remove.
13869 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13870 (COMMON_SFILES): Add dwarf2/leb.c.
13871
01840b7a
JB
138722020-02-08 Joel Brobecker <brobecker@adacore.com>
13873
13874 GDB 9.1 released.
13875
dfcb27e4
IB
138762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13877
13878 PR gdb/25190:
aac66a4c
SM
13879 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13880 * gdb/remote.c (remote_console_output): Update.
13881 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13882 (ui_file_puts): ...this.
13883 * gdb/ui-file.h (ui_file_puts): Add declaration.
13884 * gdb/utils.c (emit_style_escape): Update.
13885 (flush_wrap_buffer): Update.
13886 (fputs_maybe_filtered): Update.
13887 (fputs_unfiltered): Add function.
dfcb27e4 13888
faa17681
IB
138892020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13890
aac66a4c
SM
13891 * gdb/event-loop.c (gdb_wait_for_event): Update.
13892 * gdb/printcmd.c (printf_command): Update.
13893 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13894 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13895 (gdb_os_flush_stderr): Update.
13896 * gdb/remote.c (remote_console_output): Update.
13897 * gdb/ui-file.c (gdb_flush): Rename to...
13898 (ui_file_flush): ...this.
13899 (stderr_file::write): Update.
13900 (stderr_file::puts): Update.
13901 * gdb/ui-file.h (gdb_flush): Rename to...
13902 (ui_file_flush): ...this.
13903 * gdb/utils.c (gdb_flush): Add function.
13904 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13905
5abbbe1d
TT
139062020-02-07 Tom Tromey <tromey@adacore.com>
13907
13908 PR breakpoints/24915:
13909 * source.c (find_and_open_source): Do not check basenames_may_differ.
13910
919adfe8
TT
139112020-02-07 Tom Tromey <tom@tromey.com>
13912
13913 * README: Update gdbserver documentation.
13914 * gdbserver: Move to top level.
13915 * configure.tgt (build_gdbserver): Remove.
13916 * configure.ac: Remove --enable-gdbserver.
13917 * configure: Rebuild.
13918 * Makefile.in (distclean): Don't mention gdbserver.
13919
1d5d29e7
SV
139202020-02-06 Shahab Vahedi <shahab@synopsys.com>
13921
13922 * source-cache.c (source_cache::ensure): Surround
13923 get_plain_source_lines with a try/catch.
13924 (source_cache::get_line_charpos): Get rid of try/catch
13925 and only check for the return value of "ensure".
13926 * tui/tui-source.c (tui_source_window::set_contents):
13927 Simplify "nlines" calculation.
13928
6eb1129c
SV
139292020-02-06 Shahab Vahedi <shahab@synopsys.com>
13930
13931 * MAINTAINERS (Write After Approval): Add myself.
13932
c6a42d11
CB
139332020-02-05 Christian Biesinger <cbiesinger@google.com>
13934
13935 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13936 function call.
13937
c8ecdda6
CB
139382020-02-05 Christian Biesinger <cbiesinger@google.com>
13939
13940 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13941
f6480e70
MR
139422020-02-05 Maciej W. Rozycki <macro@wdc.com>
13943
13944 * nat/riscv-linux-tdesc.h: New file.
13945 * nat/riscv-linux-tdesc.c: New file, taking code from...
13946 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13947 ... here.
13948 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13949 NATDEPFILES.
13950
dcc9fbc6
AB
139512020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13952
13953 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13954 we don't set the fake simulator ptid to the null_ptid.
13955
719546c4
SM
139562020-02-03 Simon Marchi <simon.marchi@efficios.com>
13957
13958 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13959 * gdbthread.h (class thread_info) <resumed>: Likewise.
13960 * infrun.c (resume_1): Likewise.
13961 (proceed): Likewise.
13962 (infrun_thread_stop_requested): Likewise.
13963 (stop_all_threads): Likewise.
13964 (handle_inferior_event): Likewise.
13965 (restart_threads): Likewise.
13966 (finish_step_over): Likewise.
13967 (keep_going_stepped_thread): Likewise.
13968 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13969 (linux_handle_extended_wait): Likewise.
13970 * record-btrace.c (get_thread_current_frame_id): Likewise.
13971 * record-full.c (record_full_wait_1): Likewise.
13972 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13973 * target.c (target_resume): Likewise.
13974 * thread.c (set_running_thread): Likewise.
13975
e409c542
AKS
139762020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13977
13978 * f-valprint.c (f77_print_array_1): Changed datatype of index
13979 variable to LONGEST from int to enable it to contain bound
13980 values correctly.
13981
ee98c0da
MR
139822020-02-03 Maciej W. Rozycki <macro@wdc.com>
13983
13984 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13985 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13986 offsets according to FLEN determined.
13987 (riscv_linux_nat_target::read_description): Determine FLEN
13988 dynamically.
13989 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13990 according to FLEN determined.
13991 (riscv_linux_nat_target::store_registers): Likewise.
13992
aa66aac4
SV
139932020-02-01 Shahab Vahedi <shahab@synopsys.com>
13994
13995 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13996 when reg->group is empty and reggroup is not.
13997
fd9faca8
TT
139982020-01-31 Tom Tromey <tromey@adacore.com>
13999
14000 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14001 Call beneath target's mourn_inferior after unpushing.
14002
42330a68
AB
140032020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14004
14005 PR tui/9765
14006 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14007 have enough lines to fill the screen, still return the lowest
14008 address we found.
14009
7a27a45b
AB
140102020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14011
14012 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14013 '-', '<', and '>' commands.
14014
c47f70e2
PA
140152020-01-29 Pedro Alves <palves@redhat.com>
14016 Sergio Durigan Junior <sergiodj@redhat.com>
14017
14018 * infcmd.c (construct_inferior_arguments): Assert that
14019 'argc' is greater than 0.
14020
5133a315
LM
140212020-01-29 Luis Machado <luis.machado@linaro.org>
14022
14023 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14024 (BRK_INSN_MASK): Define to 0xd4200000.
14025 (aarch64_program_breakpoint_here_p): New function.
14026 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14027 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14028 breakpoint.c.
14029 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14030 breakpoint.h
14031 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14032 call gdbarch_program_breakpoint_here_p.
14033 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14034 default_program_breakpoint_here_p, changed return type to bool and
14035 simplified.
14036 * breakpoint.h (program_breakpoint_here): Moved prototype to
14037 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14038 return type to bool.
14039 * gdbarch.c: Regenerate.
14040 * gdbarch.h: Regenerate.
14041 * gdbarch.sh (program_breakpoint_here_p): New method.
14042 * infrun.c (handle_signal_stop): Call
14043 gdbarch_program_breakpoint_here_p.
14044
168f8c6b
TT
140452020-01-26 Tom Tromey <tom@tromey.com>
14046
14047 * ctfread.c (struct ctf_fp_info): Reindent.
14048 (_initialize_ctfread): Remove.
14049
128a391f
TT
140502020-01-26 Tom Tromey <tom@tromey.com>
14051
14052 * psymtab.c (partial_map_expand_apply)
14053 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14054 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14055 (psym_print_stats, psym_expand_symtabs_for_function)
14056 (psym_map_symbol_filenames, psym_map_matching_symbols)
14057 (psym_expand_symtabs_matching)
14058 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14059 (maintenance_check_psymtabs): Use new methods.
14060 * psympriv.h (struct partial_symtab) <readin_p,
14061 get_compunit_symtab>: New methods.
14062 <readin, compunit_symtab>: Remove members.
14063 (struct standard_psymtab): New.
14064 (struct legacy_psymtab): Derive from standard_psymtab.
14065 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14066 standard_psymtab.
14067 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14068
0494dbec
TT
140692020-01-26 Tom Tromey <tom@tromey.com>
14070
14071 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14072 read_dependencies. Add assert.
14073 * psymtab.c (partial_symtab::read_dependencies): New method.
14074 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14075 method.
14076 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14077 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14078 read_dependencies.
14079 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14080 Add assert.
14081
8566b89b
TT
140822020-01-26 Tom Tromey <tom@tromey.com>
14083
14084 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14085 Call expand_psymtab.
14086 (xcoff_read_symtab): Call expand_psymtab.
14087 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14088 legacy_expand_psymtab.
14089 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14090 method.
14091 (struct legacy_psymtab) <expand_psymtab>: Implement.
14092 <legacy_expand_psymtab>: New member.
14093 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14094 (parse_partial_symbols): Set legacy_expand_psymtab.
14095 (psymtab_to_symtab_1): Change argument order. Call
14096 expand_psymtab.
14097 (new_psymtab): Set legacy_expand_psymtab.
14098 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14099 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14100 expand_psymtab.
14101 (dwarf2_psymtab::expand_psymtab): Rename from
14102 psymtab_to_symtab_1. Call expand_psymtab.
14103 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14104 (dbx_end_psymtab): Likewise.
14105 (dbx_psymtab_to_symtab_1): Change argument order. Call
14106 expand_psymtab.
14107 (dbx_read_symtab): Call expand_psymtab.
14108 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14109 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14110 (ctf_psymtab::read_symtab): Call expand_psymtab.
14111
077cbab2
TT
141122020-01-26 Tom Tromey <tom@tromey.com>
14113
14114 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14115 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14116 messages.
14117 * mdebugread.c (mdebug_read_symtab): Remove prints.
14118 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14119 assert.
14120 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14121
891813be
TT
141222020-01-26 Tom Tromey <tom@tromey.com>
14123
14124 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14125 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14126 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14127 legacy_symtab.
14128 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14129 * psymtab.c (psymtab_to_symtab): Call method.
14130 (dump_psymtab): Update.
14131 * psympriv.h (struct partial_symtab): Add virtual destructor.
14132 <read_symtab>: New method.
14133 (struct legacy_symtab): New.
14134 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14135 (struct pst_map) <pst>: Now a legacy_psymtab.
14136 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14137 (new_psymtab): Use legacy_psymtab.
14138 * dwarf2read.h (struct dwarf2_psymtab): New.
14139 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14140 * dwarf2read.c (dwarf2_create_include_psymtab)
14141 (dwarf2_build_include_psymtabs, create_type_unit_group)
14142 (create_partial_symtab, process_psymtab_comp_unit_reader)
14143 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14144 (set_partial_user): Use dwarf2_psymtab.
14145 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14146 (psymtab_to_symtab_1, process_full_comp_unit)
14147 (process_full_type_unit, dwarf2_ranges_read)
14148 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14149 (dwarf_decode_lines): Use dwarf2_psymtab.
14150 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14151 (add_address_entry_worker, write_one_signatured_type)
14152 (recursively_count_psymbols, recursively_write_psymbols)
14153 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14154 (write_debug_names): Likewise.
14155 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14156 <pst>: Now a legacy_psymtab.
14157 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14158 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14159 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14160 * ctfread.c (struct ctf_psymtab): New.
14161 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14162 ctf_psymtab.
14163 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14164 (create_partial_symtab): Return a ctf_psymtab.
14165 (scan_partial_symbols): Update.
14166
c3693a1d
TT
141672020-01-26 Tom Tromey <tom@tromey.com>
14168
14169 * xcoffread.c (xcoff_start_psymtab): Use new.
14170 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14171 renamed from start_psymtab_common.
14172 * psympriv.h (struct partial_symtab): Add new constructor.
14173 (start_psymtab_common): Don't declare.
14174 * mdebugread.c (parse_partial_symbols): Use new.
14175 * dwarf2read.c (create_partial_symtab): Use new.
14176 * dbxread.c (start_psymtab): Use new.
14177 * ctfread.c (create_partial_symtab): Use new.
14178
32caafd0
TT
141792020-01-26 Tom Tromey <tom@tromey.com>
14180
14181 * xcoffread.c (xcoff_end_psymtab): Use new.
14182 * psymtab.c (start_psymtab_common): Use new.
14183 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14184 Update.
14185 * psympriv.h (struct partial_symtab): Add parameters to
14186 constructor. Don't inline.
14187 (allocate_psymtab): Don't declare.
14188 * mdebugread.c (new_psymtab): Use new.
14189 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14190 * dbxread.c (dbx_end_psymtab): Use new.
14191
abaa2f23
TT
141922020-01-26 Tom Tromey <tom@tromey.com>
14193
14194 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14195 allocate_psymtab. Update documentation.
14196 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14197 allocate_psymtab. Do not use new.
14198 (allocate_psymtab): Use new. Update.
14199
6d94535f
TT
142002020-01-26 Tom Tromey <tom@tromey.com>
14201
14202 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14203 * psymtab.c (psym_print_stats): Update.
14204 * psympriv.h (struct partial_symtab) <readin,
14205 psymtabs_addrmap_supported, anonymous>: Now bool.
14206 * mdebugread.c (psymtab_to_symtab_1): Update.
14207 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14208 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14209 (process_full_comp_unit, process_full_type_unit): Update.
14210 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14211 * ctfread.c (psymtab_to_symtab): Update.
14212
6f17252b
TT
142132020-01-26 Tom Tromey <tom@tromey.com>
14214
14215 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14216 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14217 * psymtab.c (psymtab_storage): Delete psymtabs.
14218 (psymtab_storage::allocate_psymtab): Use new.
14219 (psymtab_storage::discard_psymtab): Use delete.
14220 * psympriv.h (struct partial_symtab): Add constructor and
14221 initializers.
14222
f6f1cebc
TT
142232020-01-26 Tom Tromey <tom@tromey.com>
14224
14225 * machoread.c: Do not include psympriv.h.
14226
e47e48f6
PW
142272020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14228
14229 * NEWS: Mention the new option and the set/show commands.
14230
a2fedca9
PW
142312020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14232
14233 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14234 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14235 (validate_exec_file): New variables, enums, functions.
14236 (exec_file_locate_attach, print_section_info): Style the filenames.
14237 (_initialize_exec): Install show_exec_file_mismatch_command and
14238 set_exec_file_mismatch_command.
14239 * gdbcore.h (validate_exec_file): Declare.
14240 * infcmd.c (attach_command): Call validate_exec_file.
14241 * remote.c ( remote_target::remote_add_inferior): Likewise.
14242
7ffa82e1
AB
142432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14244
14245 * frame.c (find_frame_sal): Move call to get_next_frame into more
14246 inner scope.
14247 * inline-frame.c (inilne_state) <inline_state>: Update argument
14248 types.
14249 (inilne_state) <skipped_symbol>: Rename to...
14250 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14251 (skip_inline_frames): Build vector of skipped symbols and use this
14252 to reate the inline_state.
14253 (inline_skipped_symbol): Add a comment and some assertions, fetch
14254 skipped symbol from the list.
14255
3d92a3e3
AB
142562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14257
14258 * buildsym.c (lte_is_less_than): Delete.
14259 (buildsym_compunit::end_symtab_with_blockvector): Create local
14260 lambda function to sort line table entries, and use
14261 std::stable_sort instead of std::sort.
14262 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14263 markers when looking for a previous line.
14264
94a72be7
AB
142652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14266
14267 * dwarf2read.c (lnp_state_machine::record_line): Include
14268 end_sequence parameter in debug print out. Record the line if we
14269 are at an end_sequence marker even if it's not the start of a
14270 statement.
14271 * symmisc.c (maintenance_print_one_line_table): Print end of
14272 sequence markers with 'END' not '0'.
14273
53af73bf
PA
142742020-01-24 Pedro Alves <palves@redhat.com>
14275
14276 PR gdb/25410
14277 * thread.c (scoped_restore_current_thread::restore): Use
14278 switch_to_inferior_no_thread.
14279 * exec.c: Include "progspace-and-thread.h".
14280 (add_target_sections, remove_target_sections):
14281 scoped_restore_current_pspace_and_thread instead of
14282 scoped_restore_current_thread.
14283 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14284 and aspace to the inferior before calling clone_program_space.
14285 Remove stale comment.
14286
3050c6f4
CB
142872020-01-24 Christian Biesinger <cbiesinger@google.com>
14288
14289 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14290 (arm_netbsd_nat_target::fetch_registers): ...this.
14291 (arm_nbsd_nat_target::store_registers): Rename to...
14292 (arm_netbsd_nat_target::store_registers): ...this.
14293
73685c7e
CB
142942020-01-24 Christian Biesinger <cbiesinger@google.com>
14295
14296 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14297 register_t.
14298
89203d40
CB
142992020-01-24 Christian Biesinger <cbiesinger@google.com>
14300
14301 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14302 Update comment.
14303 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14304 Likewise.
14305 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14306 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14307 the correct replacement (iterate_over_regset_sections).
14308 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14309 Update comment.
14310
1ba1ac88
AB
143112020-01-24 Graham Markall <graham.markall@embecosm.com>
14312
14313 PR gdb/23718
14314 * gdb/python/python.c (execute_gdb_command): Call
14315 async_enable_stdin in catch block.
14316
f3364a6d
AB
143172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14318
14319 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14320 SWITCH_THRU_ALL_UIS.
14321
733d0a67
AB
143222020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14323
14324 PR tui/9765
14325 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14326 comment, add extra parameter, and update to store previous symbol
14327 when appropriate.
14328 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14329 add extra parameter.
14330 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14331 remove unneeded parameter, add try/catch around gdb_print_insn,
14332 rewrite to add items to asm_lines vector.
14333 (tui_find_backward_disassembly_start_address): New function.
14334 (tui_find_disassembly_address): Updated throughout.
14335 (tui_disasm_window::set_contents): Update for changes to
14336 tui_disassemble.
14337 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14338 number of lines to scroll.
14339
b3b3bada
SM
143402020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14341
14342 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14343 (SECT_OFF_DATA): Likewise.
14344 (SECT_OFF_RODATA): Likewise.
14345 (SECT_OFF_TEXT): Likewise.
14346 (SECT_OFF_BSS): Likewise.
14347 (struct objfile) <text_section_offset, data_section_offset>: New
14348 methods.
14349 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14350 objfile::text_section_offset.
14351 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14352 * coffread.c (coff_symtab_read): Likewise.
14353 (enter_linenos): Likewise.
14354 (process_coff_symbol): Likewise.
14355 * ctfread.c (get_objfile_text_range): Likewise.
14356 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14357 Use objfile::data_section_offset.
14358 * dwarf2-frame.c (execute_cfa_program): Use
14359 objfile::text_section_offset.
14360 (dwarf2_frame_find_fde): Likewise.
14361 * dwarf2read.c (create_addrmap_from_index): Likewise.
14362 (create_addrmap_from_aranges): Likewise.
14363 (dw2_find_pc_sect_compunit_symtab): Likewise.
14364 (process_psymtab_comp_unit_reader): Likewise.
14365 (add_partial_symbol): Likewise.
14366 (add_partial_subprogram): Likewise.
14367 (process_full_comp_unit): Likewise.
14368 (read_file_scope): Likewise.
14369 (read_func_scope): Likewise.
14370 (read_lexical_block_scope): Likewise.
14371 (read_call_site_scope): Likewise.
14372 (dwarf2_rnglists_process): Likewise.
14373 (dwarf2_ranges_process): Likewise.
14374 (dwarf2_ranges_read): Likewise.
14375 (dwarf_decode_lines_1): Likewise.
14376 (new_symbol): Likewise.
14377 (dwarf2_fetch_die_loc_sect_off): Likewise.
14378 (dwarf2_per_cu_text_offset): Likewise.
14379 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14380 * hppa-tdep.c (read_unwind_info): Likewise.
14381 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14382 * psympriv.h (struct partial_symtab): Likewise.
14383 * psymtab.c (find_pc_sect_psymtab): Likewise.
14384 * solib-svr4.c (enable_break): Likewise.
14385 * stap-probe.c (relocate_address): Use
14386 objfile::data_section_offset.
14387 * xcoffread.c (enter_line_range): Use
14388 objfile::text_section_offset.
14389 (read_xcoff_symtab): Likewise.
14390
ab53f382
SM
143912020-01-23 Simon Marchi <simon.marchi@efficios.com>
14392
14393 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14394 declaration to narrower scopes.
14395
e7eee665
SM
143962020-01-23 Simon Marchi <simon.marchi@efficios.com>
14397
14398 * darwin-nat.h (struct darwin_exception_msg, enum
14399 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14400 Move up.
14401 (class darwin_nat_target) <wait_1, check_new_threads,
14402 decode_exception_message, decode_message, stop_inferior,
14403 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14404 * darwin-nat.c (darwin_check_new_threads): Rename to...
14405 (darwin_nat_target::check_new_threads): ... this.
14406 (darwin_suspend_inferior_it): Remove.
14407 (darwin_decode_exception_message): Rename to...
14408 (darwin_nat_target::decode_exception_message): ... this.
14409 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14410 (darwin_decode_message): Rename to...
14411 (darwin_nat_target::decode_message): ... this.
14412 (cancel_breakpoint): Rename to...
14413 (darwin_nat_target::cancel_breakpoint): ... this.
14414 (darwin_wait): Rename to...
14415 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14416 instead of iterate_over_inferiors.
14417 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14418 (darwin_stop_inferior): Rename to...
14419 (darwin_nat_target::stop_inferior): ... this.
14420 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14421 (darwin_init_thread_list): Rename to...
14422 (darwin_nat_target::init_thread_list): ... this.
14423 (darwin_ptrace_him): Rename to...
14424 (darwin_nat_target::ptrace_him): ... this.
14425 (darwin_nat_target::create_inferior): Pass lambda function to
14426 fork_inferior.
14427 (darwin_nat_target::detach): Call stop_inferior instead of
14428 darwin_stop_inferior.
14429 * fork-inferior.h (fork_inferior): Change init_trace_fun
14430 parameter to gdb::function_view.
14431 * fork-inferior.c (fork_inferior): Likewise.
14432
c162ed3e
HD
144332020-01-23 Hannes Domani <ssbssa@yahoo.de>
14434
14435 * i386-cygwin-tdep.c (core_process_module_section): Update.
14436 * windows-nat.c (struct lm_info_windows): Add text_offset.
14437 (windows_xfer_shared_libraries): Update.
14438 * windows-tdep.c (windows_xfer_shared_library):
14439 Add text_offset_cached argument.
14440 * windows-tdep.h (windows_xfer_shared_library): Update.
14441
a1237872
SM
144422020-01-21 Simon Marchi <simon.marchi@efficios.com>
14443
14444 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14445
b3ee6dd9
SM
144462020-01-21 Simon Marchi <simon.marchi@efficios.com>
14447
14448 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14449 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14450 replace with range-based for.
14451 (gdbsim_interrupt_inferior): Remove.
14452 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14453 with a range-based for. Inline code from
14454 gdbsim_interrupt_inferior.
14455
f9fac3c8
SM
144562020-01-21 Simon Marchi <simon.marchi@efficios.com>
14457
14458 * infrun.c (proceed): Fix indentation.
14459
f6474de9
TT
144602020-01-21 Tom Tromey <tromey@adacore.com>
14461
14462 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14463 * python/python.c (python_extension_ops): Update.
14464 (gdbpy_colorize): New function.
14465 * python/lib/gdb/__init__.py (colorize): New function.
14466 * extension.h (ext_lang_colorize): Declare.
14467 * extension.c (ext_lang_colorize): New function.
14468 * extension-priv.h (struct extension_language_ops) <colorize>: New
14469 member.
14470 * cli/cli-style.c (_initialize_cli_style): Update help text.
14471
f0c702d4
LM
144722020-01-21 Luis Machado <luis.machado@linaro.org>
14473
14474 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14475 <cond>: Change type to bool.
14476 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14477 (aarch64_displaced_step_cb): Likewise.
14478 (aarch64_displaced_step_tb): Likewise.
14479
1ab139e5
LM
144802020-01-21 Luis Machado <luis.machado@linaro.org>
14481
14482 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14483 output.
14484
0c271889
LM
144852020-01-21 Luis Machado <luis.machado@linaro.org>
14486
14487 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14488 <pc_adjust>: Adjust the documentation.
14489 (aarch64_displaced_step_fixup): Check if PC really moved before
14490 adjusting it.
14491
4d89c1c7
TT
144922020-01-19 Tom Tromey <tom@tromey.com>
14493
14494 * disasm.c (~gdb_disassembler): New destructor.
14495 (gdb_buffered_insn_length): Call disassemble_free_target.
14496 * disasm.h (class gdb_disassembler): Declare destructor. Use
14497 DISABLE_COPY_AND_ASSIGN.
14498
c0ab21c2
TT
144992020-01-19 Tom Tromey <tom@tromey.com>
14500
14501 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14502 (die_reader_func_ftype): Remove.
14503 (cutu_reader): New class.
14504 (dw2_get_file_names_reader): Remove "data" parameter.
14505 (dw2_get_file_names): Use cutu_reader.
14506 (create_debug_type_hash_table): Update.
14507 (read_cutu_die_from_dwo): Update comment.
14508 (lookup_dwo_unit): Add dwo_name parameter.
14509 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14510 die_reader_func_ftype and data parameters.
14511 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14512 Remove die_reader_func_ftype and data parameters.
14513 (~cutu_reader): New; from init_cutu_and_read_dies.
14514 (cutu_reader::cutu_reader): Rename from
14515 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14516 and data parameters.
14517 (init_cutu_and_read_dies_simple): Remove.
14518 (struct process_psymtab_comp_unit_data): Remove.
14519 (process_psymtab_comp_unit_reader): Remove data parameter; add
14520 want_partial_unit and pretend_language parameters.
14521 (process_psymtab_comp_unit): Use cutu_reader.
14522 (build_type_psymtabs_reader): Remove data parameter.
14523 (build_type_psymtabs_1): Use cutu_reader.
14524 (process_skeletonless_type_unit): Likewise.
14525 (load_partial_comp_unit_reader): Remove.
14526 (load_partial_comp_unit): Use cutu_reader.
14527 (load_full_comp_unit_reader): Remove.
14528 (load_full_comp_unit): Use cutu_reader.
14529 (struct create_dwo_cu_data): Remove.
14530 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14531 dwo_unit parameters.
14532 (create_cus_hash_table): Use cutu_reader.
14533 (struct dwarf2_read_addr_index_data): Remove.
14534 (dwarf2_read_addr_index_reader): Remove.
14535 (dwarf2_read_addr_index): Use cutu_reader.
14536 (read_signatured_type_reader): Remove.
14537 (read_signatured_type): Use cutu_reader.
14538
45bbae5c
TT
145392020-01-19 Tom Tromey <tom@tromey.com>
14540
14541 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14542 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14543 (tui_wrefresh): Declare.
14544 * tui/tui-wingeneral.c (suppress_output): New global.
14545 (tui_suppress_output, ~tui_suppress_output): New constructor and
14546 destructor.
14547 (tui_wrefresh): New function.
14548 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14549 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14550 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14551 method.
14552 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14553 tui_wrefresh.
14554 (tui_data_window::no_refresh): New method.
14555 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14556 (tui_reg_command): Use tui_suppress_output
14557 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14558 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14559 method.
14560 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14561
4f13c1c0
TT
145622020-01-19 Tom Tromey <tom@tromey.com>
14563
14564 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14565 Handle case where symtab is null.
14566
fa47e446
SM
145672020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14568
14569 * linux-fork.c (one_fork_p): Simplify.
14570
26f42329
SM
145712020-01-17 Simon Marchi <simon.marchi@efficios.com>
14572
14573 * top.c (struct qt_args): Remove.
14574 (kill_or_detach): Change return type to void, replace `void *`
14575 parameter with a proper one.
14576 (print_inferior_quit_action): Likewise.
14577 (quit_confirm): Use range-based for loop to iterate over inferiors.
14578 (quit_force): Likewise.
14579
a9ac81b1
SM
145802020-01-17 Simon Marchi <simon.marchi@efficios.com>
14581
14582 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14583 `void *` parameter with proper parameters.
14584 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14585 (print_one_inferior): Change return type to void, replace `void *`
14586 parameter with proper parameters.
14587 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14588 inferiors.
14589 (get_other_inferior): Remove.
14590 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14591 inferiors.
14592
788eca49
SM
145932020-01-17 Simon Marchi <simon.marchi@efficios.com>
14594
14595 * mi/mi-interp.c (report_initial_inferior): Remove.
14596 (mi_interp::init): Use range-based for to iterate over inferiors.
14597
d9bc85b6
SM
145982020-01-17 Simon Marchi <simon.marchi@efficios.com>
14599
14600 * python/py-inferior.c (build_inferior_list): Remove.
14601 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14602
40c94099
CB
146032020-01-16 Christian Biesinger <cbiesinger@google.com>
14604
14605 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14606 (btrace_stitch_trace): Likewise.
14607 * charset.c (intermediate_encoding): Likewise (vaild).
14608 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14609 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14610 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14611
e0cdfe3c
HD
146122020-01-16 Hannes Domani <ssbssa@yahoo.de>
14613
14614 * windows-tdep.c (windows_get_tlb_type):
14615 Add rtl_user_process_parameters type.
14616
790f1718 146172020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14618 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14619
14620 PR build/24805
14621 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14622 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14623 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14624 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14625 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14626 (ps_plog): Redeclare exported functions with default visibility.
14627
3112ed97
NA
146282020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14629
14630 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14631 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14632
8dc3273e
SM
146332020-01-15 Simon Marchi <simon.marchi@efficios.com>
14634
14635 * infcmd.c (post_create_inferior): Use get_thread_regcache
14636 instead of get_current_regcache.
14637
ff47f4f0
TT
146382020-01-14 Tom Tromey <tom@tromey.com>
14639
14640 PR symtab/12535:
14641 * python/python.c (gdbpy_decode_line): Treat empty string the same
14642 as no argument.
14643
975f45b7
TT
146442020-01-14 Tom Tromey <tom@tromey.com>
14645
14646 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14647
25e57356
TT
146482020-01-14 Tom Tromey <tom@tromey.com>
14649
14650 * nat/linux-btrace.c: Don't include <config.h>.
14651 * nat/linux-ptrace.c: Don't include <config.h>.
14652 * nat/x86-linux-dregs.c: Don't include <config.h>.
14653
05ea2a05
TT
146542020-01-14 Tom Tromey <tom@tromey.com>
14655
14656 * configure: Rebuild.
14657 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14658
01027315
TT
146592020-01-14 Tom Tromey <tom@tromey.com>
14660
14661 * nat/x86-linux-dregs.c: Include configh.h.
14662 * nat/linux-ptrace.c: Include configh.h.
14663 * nat/linux-btrace.c: Include configh.h.
14664 * defs.h: Include config.h, bfd.h.
14665 * configure.ac: Don't source common.host.
14666 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14667 * configure: Rebuild.
14668 * acinclude.m4: Update path.
14669 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14670 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14671 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14672 (CLIBS): Add LIBSUPPORT.
14673 (CDEPS): Likewise.
14674 (COMMON_SFILES): Remove gdbsupport files.
14675 (HFILES_NO_SRCDIR): Likewise.
14676 (stamp-version): Update path to create-version.sh.
14677 (ALLDEPFILES): Remove gdbsupport files.
14678
b2ceabe8
TT
146792020-01-14 Tom Tromey <tom@tromey.com>
14680
14681 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14682 USE_WIN32API when needed.
14683 * configure.ac (USE_WIN32API): Don't define.
14684 (WIN32LIBS): Use WIN32APILIBS.
14685 * configure: Rebuild.
14686
25c51f71
TT
146872020-01-14 Tom Tromey <tom@tromey.com>
14688
14689 * configure: Rebuild.
14690 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14691
717c684d
BE
146922020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14693
14694 * skip.c (skip_function_command): Make skip w/o arguments use the
14695 name of the inlined function if pc is inside any inlined function.
14696
7da6a5b9
LM
146972020-01-14 Luis Machado <luis.machado@linaro.org>
14698
14699 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14700 * infrun.c (resume_1): Likewise.
14701 (handle_inferior_event): Remove stale comment.
14702 * linux-nat.c (linux_nat_target::resume): Update comments.
14703 (save_stop_reason): Likewise.
14704 (linux_nat_filter_event): Likewise.
14705 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14706
44e4c775
AB
147072020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14708
14709 * elfread.c (record_minimal_symbol): Set section index to 0 for
14710 non-allocatable sections.
14711
18a8505e
AT
14712
147132020-01-13 Ali Tamur <tamur@google.com>
14714
14715 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14716 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14717 to gdb::optional. Update comments.
14718 (dwo_file): Update comments.
14719 (read_attribute): Update API to take an additional out parameter,
14720 need_reprocess. This is used to mark attributes that need other
14721 attributes (e.g. str_offsets_base) for correct computation which may not
14722 have been read yet.
14723 (read_attribute_reprocess): New function declaration.
14724 (read_addr_index): Likewise.
14725 (read_dwo_str_index): Likewise.
14726 (read_stub_str_index): Likewise.
14727 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14728 (lookup_addr_base): New function definition.
14729 (lookup_ranges_base): Likewise.
14730 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14731 lookup_ranges_base.
14732 (init_cutu_and_read_dies): Update comments.
14733 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14734 unit. This is used to inherit parent's str_offsets_base and addr_base.
14735 Update comments.
14736 (init_cutu_and_read_dies_simple): Reflect API changes.
14737 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14738 (create_cus_hash_table): Change API to take parent compile unit.
14739 Reflect API changes.
14740 (open_and_init_dwo_file): Reflect API changes.
14741 (dwarf2_get_pc_bounds): Update comments.
14742 (dwarf2_record_block_ranges): Likewise.
14743 (read_full_die_1): Change implementation to reprocess attributes that
14744 need str_offsets_base and addr_base.
14745 (partial_die_info::read): Likewise.
14746 (read_attribute_reprocess): New function definition.
14747 (read_attribute_value): Change API to take an additional out parameter,
14748 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14749 when a non-dwo compile unit has index based attributes.
14750 (read_attribute): Reflect API changes.
14751 (read_addr_index_1): Reflect API changes. Update comments.
14752 (dwarf2_read_addr_index_data): Reflect API changes.
14753 (dwarf2_read_addr_index): Likewise.
14754 (read_str_index): Change API and implementation. This becomes a helper
14755 to be used by the new string index related methods. Update error
14756 message and comments.
14757 (read_dwo_str_index): New function definition.
14758 (read_stub_str_index): Likewise.
14759 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14760 * symfile.h (dwarf2_debug_sections): Likewise.
14761 * xcoffread.c (dwarf2_debug_sections): Likewise.
14762
0cac9354
SM
147632020-01-13 Simon Marchi <simon.marchi@efficios.com>
14764
14765 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14766 core_reg_sect type to gdb_byte *.
14767 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14768 * cris-tdep.c (fetch_core_registers): Likewise.
14769 * corelow.c (core_target::get_core_register_section): Change
14770 type of `contents` to gdb::byte_vector.
14771
9a6d629c
AB
147722020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14773
14774 * tui/tui-wingeneral.c (box_win): Position the title in the center
14775 of the border.
14776
d8b2f9e3
SM
147772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14778
14779 * corelow.c (core_target::get_core_register_section): Use
14780 std::vector instead of alloca.
14781
bb564c58
SM
147822020-01-13 Simon Marchi <simon.marchi@efficios.com>
14783
14784 * warning.m4: Add -Wmissing-declarations to build_warnings.
14785 * configure: Re-generate.
14786
6b366111
SM
147872020-01-13 Simon Marchi <simon.marchi@efficios.com>
14788
14789 * python/python.c (init__gdb_module): Add declaration.
14790
6c265988
SM
147912020-01-13 Simon Marchi <simon.marchi@efficios.com>
14792
14793 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14794 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14795 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14796 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14797 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14798 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14799 * ada-exp.y (_initialize_ada_exp): Add declaration.
14800 * ada-lang.c (_initialize_ada_language): Add declaration.
14801 * ada-tasks.c (_initialize_tasks): Add declaration.
14802 * agent.c (_initialize_agent): Add declaration.
14803 * aix-thread.c (_initialize_aix_thread): Add declaration.
14804 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14805 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14806 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14807 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14808 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14809 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14810 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14811 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14812 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14813 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14814 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14815 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14816 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14817 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14818 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14819 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14820 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14821 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14822 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14823 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14824 * annotate.c (_initialize_annotate): Add declaration.
14825 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14826 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14827 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14828 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14829 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14830 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14831 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14832 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14833 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14834 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14835 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14836 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14837 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14838 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14839 * auto-load.c (_initialize_auto_load): Add declaration.
14840 * auxv.c (_initialize_auxv): Add declaration.
14841 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14842 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14843 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14844 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14845 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14846 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14847 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14848 * breakpoint.c (_initialize_breakpoint): Add declaration.
14849 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14850 * btrace.c (_initialize_btrace): Add declaration.
14851 * charset.c (_initialize_charset): Add declaration.
14852 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14853 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14854 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14855 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14856 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14857 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14858 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14859 * coffread.c (_initialize_coffread): Add declaration.
14860 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14861 * compile/compile.c (_initialize_compile): Add declaration.
14862 * complaints.c (_initialize_complaints): Add declaration.
14863 * completer.c (_initialize_completer): Add declaration.
14864 * copying.c (_initialize_copying): Add declaration.
14865 * corefile.c (_initialize_core): Add declaration.
14866 * corelow.c (_initialize_corelow): Add declaration.
14867 * cp-abi.c (_initialize_cp_abi): Add declaration.
14868 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14869 * cp-support.c (_initialize_cp_support): Add declaration.
14870 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14871 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14872 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14873 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14874 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14875 * ctfread.c (_initialize_ctfread): Add declaration.
14876 * d-lang.c (_initialize_d_language): Add declaration.
14877 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14878 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14879 * dbxread.c (_initialize_dbxread): Add declaration.
14880 * dcache.c (_initialize_dcache): Add declaration.
14881 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14882 * disasm.c (_initialize_disasm): Add declaration.
14883 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14884 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14885 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14886 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14887 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14888 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14889 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14890 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14891 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14892 * elfread.c (_initialize_elfread): Add declaration.
14893 * exec.c (_initialize_exec): Add declaration.
14894 * extension.c (_initialize_extension): Add declaration.
14895 * f-lang.c (_initialize_f_language): Add declaration.
14896 * f-valprint.c (_initialize_f_valprint): Add declaration.
14897 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14898 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14899 * filesystem.c (_initialize_filesystem): Add declaration.
14900 * findcmd.c (_initialize_mem_search): Add declaration.
14901 * findvar.c (_initialize_findvar): Add declaration.
14902 * fork-child.c (_initialize_fork_child): Add declaration.
14903 * frame-base.c (_initialize_frame_base): Add declaration.
14904 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14905 * frame.c (_initialize_frame): Add declaration.
14906 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14907 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14908 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14909 * gcore.c (_initialize_gcore): Add declaration.
14910 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14911 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14912 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14913 * gdbarch.c (_initialize_gdbarch): Add declaration.
14914 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14915 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14916 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14917 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14918 * go-lang.c (_initialize_go_language): Add declaration.
14919 * go32-nat.c (_initialize_go32_nat): Add declaration.
14920 * guile/guile.c (_initialize_guile): Add declaration.
14921 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14922 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14923 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14924 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14925 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14926 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14927 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14928 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14929 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14930 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14931 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14932 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14933 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14934 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14935 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14936 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14937 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14938 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14939 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14940 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14941 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14942 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14943 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14944 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14945 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14946 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14947 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14948 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14949 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14950 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14951 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14952 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14953 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14954 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14955 * infcall.c (_initialize_infcall): Add declaration.
14956 * infcmd.c (_initialize_infcmd): Add declaration.
14957 * inflow.c (_initialize_inflow): Add declaration.
14958 * infrun.c (_initialize_infrun): Add declaration.
14959 * interps.c (_initialize_interpreter): Add declaration.
14960 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14961 * jit.c (_initialize_jit): Add declaration.
14962 * language.c (_initialize_language): Add declaration.
14963 * linux-fork.c (_initialize_linux_fork): Add declaration.
14964 * linux-nat.c (_initialize_linux_nat): Add declaration.
14965 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14966 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14967 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14968 * m2-lang.c (_initialize_m2_language): Add declaration.
14969 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14970 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14971 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14972 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14973 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14974 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14975 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14976 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14977 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14978 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14979 * machoread.c (_initialize_machoread): Add declaration.
14980 * macrocmd.c (_initialize_macrocmd): Add declaration.
14981 * macroscope.c (_initialize_macroscope): Add declaration.
14982 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14983 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14984 * maint.c (_initialize_maint_cmds): Add declaration.
14985 * mdebugread.c (_initialize_mdebugread): Add declaration.
14986 * memattr.c (_initialize_mem): Add declaration.
14987 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14988 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14989 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14990 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14991 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14992 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14993 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14994 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14995 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14996 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14997 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14998 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14999 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15000 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15001 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15002 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15003 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15004 * mipsread.c (_initialize_mipsread): Add declaration.
15005 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15006 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15007 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15008 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15009 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15010 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15011 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15012 * nto-procfs.c (_initialize_procfs): Add declaration.
15013 * objc-lang.c (_initialize_objc_language): Add declaration.
15014 * observable.c (_initialize_observer): Add declaration.
15015 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15016 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15017 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15018 * osabi.c (_initialize_gdb_osabi): Add declaration.
15019 * osdata.c (_initialize_osdata): Add declaration.
15020 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15021 * parse.c (_initialize_parse): Add declaration.
15022 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15023 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15024 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15025 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15026 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15027 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15028 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15029 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15030 * printcmd.c (_initialize_printcmd): Add declaration.
15031 * probe.c (_initialize_probe): Add declaration.
15032 * proc-api.c (_initialize_proc_api): Add declaration.
15033 * proc-events.c (_initialize_proc_events): Add declaration.
15034 * proc-service.c (_initialize_proc_service): Add declaration.
15035 * procfs.c (_initialize_procfs): Add declaration.
15036 * producer.c (_initialize_producer): Add declaration.
15037 * psymtab.c (_initialize_psymtab): Add declaration.
15038 * python/python.c (_initialize_python): Add declaration.
15039 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15040 * record-btrace.c (_initialize_record_btrace): Add declaration.
15041 * record-full.c (_initialize_record_full): Add declaration.
15042 * record.c (_initialize_record): Add declaration.
15043 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15044 * regcache.c (_initialize_regcache): Add declaration.
15045 * reggroups.c (_initialize_reggroup): Add declaration.
15046 * remote-notif.c (_initialize_notif): Add declaration.
15047 * remote-sim.c (_initialize_remote_sim): Add declaration.
15048 * remote.c (_initialize_remote): Add declaration.
15049 * reverse.c (_initialize_reverse): Add declaration.
15050 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15051 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15052 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15053 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15054 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15055 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15056 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15057 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15058 Add declaration.
15059 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15060 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15061 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15062 * rust-exp.y (_initialize_rust_exp): Add declaration.
15063 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15064 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15065 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15066 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15067 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15068 * score-tdep.c (_initialize_score_tdep): Add declaration.
15069 * ser-go32.c (_initialize_ser_dos): Add declaration.
15070 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15071 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15072 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15073 * ser-uds.c (_initialize_ser_socket): Add declaration.
15074 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15075 * serial.c (_initialize_serial): Add declaration.
15076 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15077 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15078 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15079 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15080 * skip.c (_initialize_step_skip): Add declaration.
15081 * sol-thread.c (_initialize_sol_thread): Add declaration.
15082 * solib-aix.c (_initialize_solib_aix): Add declaration.
15083 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15084 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15085 * solib-frv.c (_initialize_frv_solib): Add declaration.
15086 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15087 * solib-target.c (_initialize_solib_target): Add declaration.
15088 * solib.c (_initialize_solib): Add declaration.
15089 * source-cache.c (_initialize_source_cache): Add declaration.
15090 * source.c (_initialize_source): Add declaration.
15091 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15092 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15093 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15094 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15095 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15096 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15097 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15098 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15099 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15100 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15101 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15102 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15103 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15104 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15105 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15106 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15107 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15108 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15109 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15110 * stabsread.c (_initialize_stabsread): Add declaration.
15111 * stack.c (_initialize_stack): Add declaration.
15112 * stap-probe.c (_initialize_stap_probe): Add declaration.
15113 * std-regs.c (_initialize_frame_reg): Add declaration.
15114 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15115 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15116 * symfile.c (_initialize_symfile): Add declaration.
15117 * symmisc.c (_initialize_symmisc): Add declaration.
15118 * symtab.c (_initialize_symtab): Add declaration.
15119 * target.c (_initialize_target): Add declaration.
15120 * target-connection.c (_initialize_target_connection): Add
15121 declaration.
15122 * target-dcache.c (_initialize_target_dcache): Add declaration.
15123 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15124 * thread.c (_initialize_thread): Add declaration.
15125 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15126 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15127 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15128 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15129 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15130 * tracectf.c (_initialize_ctf): Add declaration.
15131 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15132 * tracefile.c (_initialize_tracefile): Add declaration.
15133 * tracepoint.c (_initialize_tracepoint): Add declaration.
15134 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15135 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15136 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15137 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15138 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15139 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15140 * tui/tui.c (_initialize_tui): Add declaration.
15141 * typeprint.c (_initialize_typeprint): Add declaration.
15142 * ui-style.c (_initialize_ui_style): Add declaration.
15143 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15144 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15145 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15146 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15147 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15148 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15149 * unittests/filtered_iterator-selftests.c
15150 (_initialize_filtered_iterator_selftests): Add declaration.
15151 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15152 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15153 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15154 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15155 * unittests/main-thread-selftests.c
15156 (_initialize_main_thread_selftests): Add declaration.
15157 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15158 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15159 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15160 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15161 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15162 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15163 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15164 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15165 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15166 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15167 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15168 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15169 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15170 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15171 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15172 declaration.
15173 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15174 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15175 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15176 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15177 * user-regs.c (_initialize_user_regs): Add declaration.
15178 * utils.c (_initialize_utils): Add declaration.
15179 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15180 * valops.c (_initialize_valops): Add declaration.
15181 * valprint.c (_initialize_valprint): Add declaration.
15182 * value.c (_initialize_values): Add declaration.
15183 * varobj.c (_initialize_varobj): Add declaration.
15184 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15185 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15186 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15187 * windows-nat.c (_initialize_windows_nat): Add declaration.
15188 (_initialize_check_for_gdb_ini): Add declaration.
15189 (_initialize_loadable): Add declaration.
15190 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15191 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15192 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15193 * xcoffread.c (_initialize_xcoffread): Add declaration.
15194 * xml-support.c (_initialize_xml_support): Add declaration.
15195 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15196 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15197 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15198 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15199
e2de1eec
SM
152002020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15201
15202 * regformats/regdat.sh: Generate declaration for init function.
15203
e0037b4c
SM
152042020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15205
15206 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15207 up.
15208 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15209 close_one_inferior>: New methods.
15210 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15211 pass down target to find_inferior_pid.
15212 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15213 Pass down target to find_inferior_ptid.
15214 (gdbsim_target::create_inferior): Pass down target to
15215 add_thread_silent.
15216 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15217 target down to find_inferior_ptid and switch_to_thread.
15218 (gdbsim_target::close): Update to call close_one_inferior.
15219 (struct resume_data): Remove.
15220 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15221 directly, rather than through a void pointer.
15222 (gdbsim_target::resume): Update to call resume_one_inferior.
15223
58920b5b
SM
152242020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15225
15226 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15227
4ec89149
PA
152282020-01-12 Pedro Alves <palves@redhat.com>
15229
15230 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15231 directly for the current inferior instead of
15232 discard_all_inferiors.
15233 (discard_all_inferiors): Delete.
15234
7c392d1d
TT
152352020-01-11 Tom Tromey <tom@tromey.com>
15236
15237 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15238 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15239 deprecated_safe_get_selected_frame.
15240
d9ebdab7
TBA
152412020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15242
15243 * inferior.c (print_inferior): Switch inferior before printing it.
15244
f3c469b9
PA
152452020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15246 Pedro Alves <palves@redhat.com>
15247
15248 * progspace-and-thread.c (switch_to_program_space_and_thread):
15249 Assert there's an inferior for PSPACE. Use
15250 switch_to_inferior_no_thread to switch the inferior too.
15251 * progspace.c (program_space::~program_space): Call
15252 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15253 (program_space::free_all_objfiles): Don't call clear_symtab_users
15254 here.
15255 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15256
65c574f6
PA
152572020-01-10 Pedro Alves <palves@redhat.com>
15258
15259 * NEWS: Mention multi-target debugging, "info connections", and
15260 "add-inferior -no-connection".
15261
2f4fcf00
PA
152622020-01-10 Pedro Alves <palves@redhat.com>
15263
15264 * infrun.c: Include "target-connection.h".
15265 (check_multi_target_resumption): New.
15266 (proceed): Call it.
15267 * target-connection.c (make_target_connection_string): Make
15268 extern.
15269 * target-connection.h (make_target_connection_string): Declare.
15270
121b3efd
PA
152712020-01-10 Pedro Alves <palves@redhat.com>
15272
15273 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15274 * inferior.c (uiout_field_connection): New function.
15275 (print_inferior): Add new "connection-id" column.
15276 (add_inferior_command): Show connection number/string of added
15277 inferior.
15278 * process-stratum-target.h
15279 (process_stratum_target::connection_string): New virtual method.
15280 (process_stratum_target::connection_number): New field.
15281 * remote.c (remote_target::connection_string): New override.
15282 * target-connection.c: New file.
15283 * target-connection.h: New file.
15284 * target.c (decref_target): Remove process_stratum targets from
15285 the connection list.
15286 (target_stack::push): Add process_stratum targets to the
15287 connection list.
15288
4f837581
PA
152892020-01-10 Pedro Alves <palves@redhat.com>
15290
15291 Revert:
15292 2016-04-12 Pedro Alves <palves@redhat.com>
15293 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15294 Remove references to name.
15295 * serial.h (struct serial) <name>: Delete.
15296
f4ec508e
PA
152972020-01-10 Pedro Alves <palves@redhat.com>
15298
15299 * gdbarch-selftests.c (register_to_value_test): Remove "target
15300 already pushed" check.
15301
5b6d1e4f
PA
153022020-01-10 Pedro Alves <palves@redhat.com>
15303 John Baldwin <jhb@FreeBSD.org>
15304
15305 * aarch64-linux-nat.c
15306 (aarch64_linux_nat_target::thread_architecture): Adjust.
15307 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15308 (task_command_1): Likewise.
15309 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15310 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15311 (aix_thread_target::store_registers)
15312 (aix_thread_target::thread_alive): Adjust.
15313 * amd64-fbsd-tdep.c: Include "inferior.h".
15314 (amd64fbsd_get_thread_local_address): Pass down target.
15315 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15316 thread's gdbarch instead of target_gdbarch.
15317 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15318 get_last_target_status.
15319 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15320 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15321 inferiors.
15322 (update_inserted_breakpoint_locations): Skip if inferiors with no
15323 execution.
15324 (update_global_location_list): When handling moribund locations,
15325 find representative inferior for location's pspace, and use thread
15326 count of its process_stratum target.
15327 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15328 * bsd-uthread.c (bsd_uthread_target::wait): Use
15329 as_process_stratum_target and adjust thread_change_ptid and
15330 add_thread calls.
15331 (bsd_uthread_target::update_thread_list): Use
15332 as_process_stratum_target and adjust find_thread_ptid,
15333 thread_change_ptid and add_thread calls.
15334 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15335 find_thread_ptid call.
15336 * corelow.c (add_to_thread_list): Adjust add_thread call.
15337 (core_target_open): Adjust add_thread_silent and thread_count
15338 calls.
15339 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15340 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15341 * event-top.c (async_disconnect): Pop targets from all inferiors.
15342 * exec.c (add_target_sections): Push exec target on all inferiors
15343 sharing the program space.
15344 (remove_target_sections): Remove the exec target from all
15345 inferiors sharing the program space.
15346 (exec_on_vfork): New.
15347 * exec.h (exec_on_vfork): Declare.
15348 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15349 Pass it down.
15350 (fbsd_nat_target::update_thread_list): Adjust.
15351 (fbsd_nat_target::resume): Adjust.
15352 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15353 down.
15354 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15355 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15356 get_thread_arch_regcache call.
15357 * fork-child.c (gdb_startup_inferior): Pass target down to
15358 startup_inferior and set_executing.
15359 * gdbthread.h (struct process_stratum_target): Forward declare.
15360 (add_thread, add_thread_silent, add_thread_with_info)
15361 (in_thread_list): Add process_stratum_target parameter.
15362 (find_thread_ptid(inferior*, ptid_t)): New overload.
15363 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15364 parameter.
15365 (all_threads()): Delete overload.
15366 (all_threads, all_non_exited_threads): Add process_stratum_target
15367 parameter.
15368 (all_threads_safe): Use brace initialization.
15369 (thread_count): Add process_stratum_target parameter.
15370 (set_resumed, set_running, set_stop_requested, set_executing)
15371 (threads_are_executing, finish_thread_state): Add
15372 process_stratum_target parameter.
15373 (switch_to_thread): Use is_current_thread.
15374 * i386-fbsd-tdep.c: Include "inferior.h".
15375 (i386fbsd_get_thread_local_address): Pass down target.
15376 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15377 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15378 have_inferiors check.
15379 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15380 (inf_ptrace_target::attach): Adjust.
15381 * infcall.c (run_inferior_call): Adjust.
15382 * infcmd.c (run_command_1): Pass target to
15383 scoped_finish_thread_state.
15384 (proceed_thread_callback): Skip inferiors with no execution.
15385 (continue_command): Rename 'all_threads' local to avoid hiding
15386 'all_threads' function. Adjust get_last_target_status call.
15387 (prepare_one_step): Adjust set_running call.
15388 (signal_command): Use user_visible_resume_target. Compare thread
15389 pointers instead of inferior_ptid.
15390 (info_program_command): Adjust to pass down target.
15391 (attach_command): Mark target's 'thread_executing' flag.
15392 (stop_current_target_threads_ns): New, factored out from ...
15393 (interrupt_target_1): ... this. Switch inferior before making
15394 target calls.
15395 * inferior-iter.h
15396 (struct all_inferiors_iterator, struct all_inferiors_range)
15397 (struct all_inferiors_safe_range)
15398 (struct all_non_exited_inferiors_range): Filter on
15399 process_stratum_target too. Remove explicit.
15400 * inferior.c (inferior::inferior): Push dummy target on target
15401 stack.
15402 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15403 Add process_stratum_target parameter, and pass it down.
15404 (have_live_inferiors): Adjust.
15405 (switch_to_inferior_and_push_target): New.
15406 (add_inferior_command, clone_inferior_command): Handle
15407 "-no-connection" parameter. Use
15408 switch_to_inferior_and_push_target.
15409 (_initialize_inferior): Mention "-no-connection" option in
15410 the help of "add-inferior" and "clone-inferior" commands.
15411 * inferior.h: Include "process-stratum-target.h".
15412 (interrupt_target_1): Use bool.
15413 (struct inferior) <push_target, unpush_target, target_is_pushed,
15414 find_target_beneath, top_target, process_target, target_at,
15415 m_stack>: New.
15416 (discard_all_inferiors): Delete.
15417 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15418 (all_inferiors, all_non_exited_inferiors): Add
15419 process_stratum_target parameter.
15420 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15421 (target_last_proc_target): New global.
15422 (follow_fork_inferior): Push target on new inferior. Pass target
15423 to add_thread_silent. Call exec_on_vfork. Handle target's
15424 reference count.
15425 (follow_fork): Adjust get_last_target_status call. Also consider
15426 target.
15427 (follow_exec): Push target on new inferior.
15428 (struct execution_control_state) <target>: New field.
15429 (user_visible_resume_target): New.
15430 (do_target_resume): Call target_async.
15431 (resume_1): Set target's threads_executing flag. Consider resume
15432 target.
15433 (commit_resume_all_targets): New.
15434 (proceed): Also consider resume target. Skip threads of inferiors
15435 with no execution. Commit resumtion in all targets.
15436 (start_remote): Pass current inferior to wait_for_inferior.
15437 (infrun_thread_stop_requested): Consider target as well. Pass
15438 thread_info pointer to clear_inline_frame_state instead of ptid.
15439 (infrun_thread_thread_exit): Consider target as well.
15440 (random_pending_event_thread): New inferior parameter. Use it.
15441 (do_target_wait): Rename to ...
15442 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15443 down.
15444 (threads_are_resumed_pending_p, do_target_wait): New.
15445 (prepare_for_detach): Adjust calls.
15446 (wait_for_inferior): New inferior parameter. Handle it. Use
15447 do_target_wait_1 instead of do_target_wait.
15448 (fetch_inferior_event): Adjust. Switch to representative
15449 inferior. Pass target down.
15450 (set_last_target_status): Add process_stratum_target parameter.
15451 Save target in global.
15452 (get_last_target_status): Add process_stratum_target parameter and
15453 handle it.
15454 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15455 (context_switch): Check inferior_ptid == null_ptid before calling
15456 inferior_thread().
15457 (get_inferior_stop_soon): Pass down target.
15458 (wait_one): Rename to ...
15459 (poll_one_curr_target): ... this.
15460 (struct wait_one_event): New.
15461 (wait_one): New.
15462 (stop_all_threads): Adjust.
15463 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15464 event's target.
15465 (switch_back_to_stepped_thread): Also consider target.
15466 (print_stop_event): Update.
15467 (normal_stop): Update. Also consider the resume target.
15468 * infrun.h (wait_for_inferior): Remove declaration.
15469 (user_visible_resume_target): New declaration.
15470 (get_last_target_status, set_last_target_status): New
15471 process_stratum_target parameter.
15472 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15473 process_stratum_target parameter, and use it.
15474 (clear_inline_frame_state (thread_info*)): New.
15475 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15476 process_stratum_target parameter.
15477 (clear_inline_frame_state (thread_info*)): Declare.
15478 * linux-fork.c (delete_checkpoint_command): Pass target down to
15479 find_thread_ptid.
15480 (checkpoint_command): Adjust.
15481 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15482 instead of just tweaking inferior_ptid.
15483 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15484 (exit_lwp): Pass target down to find_thread_ptid.
15485 (attach_proc_task_lwp_callback): Pass target down to
15486 add_thread/set_running/set_executing.
15487 (linux_nat_target::attach): Pass target down to
15488 thread_change_ptid.
15489 (get_detach_signal): Pass target down to find_thread_ptid.
15490 Consider last target status's target.
15491 (linux_resume_one_lwp_throw, resume_lwp)
15492 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15493 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15494 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15495 (linux_nat_target::async_wait_fd): New.
15496 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15497 target down.
15498 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15499 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15500 * linux-thread-db.c (struct thread_db_info::process_target): New
15501 field.
15502 (add_thread_db_info): Save target.
15503 (get_thread_db_info): New process_stratum_target parameter. Also
15504 match target.
15505 (delete_thread_db_info): New process_stratum_target parameter.
15506 Also match target.
15507 (thread_from_lwp): Adjust to pass down target.
15508 (thread_db_notice_clone): Pass down target.
15509 (check_thread_db_callback): Pass down target.
15510 (try_thread_db_load_1): Always push the thread_db target.
15511 (try_thread_db_load, record_thread): Pass target down.
15512 (thread_db_target::detach): Pass target down. Always unpush the
15513 thread_db target.
15514 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15515 target down. Always unpush the thread_db target.
15516 (find_new_threads_callback, thread_db_find_new_threads_2)
15517 (thread_db_target::update_thread_list): Pass target down.
15518 (thread_db_target::pid_to_str): Pass current inferior down.
15519 (thread_db_target::get_thread_local_address): Pass target down.
15520 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15521 target down.
15522 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15523 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15524 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15525 (procfs_init_inferior): Rename to ...
15526 (procfs_target::procfs_init_inferior): ... this and adjust.
15527 (procfs_target::create_inferior, procfs_notice_thread)
15528 (procfs_do_thread_registers): Adjust.
15529 * ppc-fbsd-tdep.c: Include "inferior.h".
15530 (ppcfbsd_get_thread_local_address): Pass down target.
15531 * proc-service.c (ps_xfer_memory): Switch current inferior and
15532 program space as well.
15533 (get_ps_regcache): Pass target down.
15534 * process-stratum-target.c
15535 (process_stratum_target::thread_address_space)
15536 (process_stratum_target::thread_architecture): Pass target down.
15537 * process-stratum-target.h
15538 (process_stratum_target::threads_executing): New field.
15539 (as_process_stratum_target): New.
15540 * ravenscar-thread.c
15541 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15542 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15543 down.
15544 * record-btrace.c (record_btrace_target::info_record): Adjust.
15545 (record_btrace_target::record_method)
15546 (record_btrace_target::record_is_replaying)
15547 (record_btrace_target::fetch_registers)
15548 (get_thread_current_frame_id, record_btrace_target::resume)
15549 (record_btrace_target::wait, record_btrace_target::stop): Pass
15550 target down.
15551 * record-full.c (record_full_wait_1): Switch to event thread.
15552 Pass target down.
15553 * regcache.c (regcache::regcache)
15554 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15555 process_stratum_target parameter and handle it.
15556 (current_thread_target): New global.
15557 (get_thread_regcache): Add process_stratum_target parameter and
15558 handle it. Switch inferior before calling target method.
15559 (get_thread_regcache): Pass target down.
15560 (get_thread_regcache_for_ptid): Pass target down.
15561 (registers_changed_ptid): Add process_stratum_target parameter and
15562 handle it.
15563 (registers_changed_thread, registers_changed): Pass target down.
15564 (test_get_thread_arch_aspace_regcache): New.
15565 (current_regcache_test): Define a couple local test_target_ops
15566 instances and use them for testing.
15567 (readwrite_regcache): Pass process_stratum_target parameter.
15568 (cooked_read_test, cooked_write_test): Pass mock_target down.
15569 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15570 (get_thread_arch_aspace_regcache): Add process_stratum_target
15571 parameter.
15572 (regcache::target): New method.
15573 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15574 (regcache::registers_changed_ptid): Add process_stratum_target
15575 parameter.
15576 (regcache::m_target): New field.
15577 (registers_changed_ptid): Add process_stratum_target parameter.
15578 * remote.c (remote_state::supports_vCont_probed): New field.
15579 (remote_target::async_wait_fd): New method.
15580 (remote_unpush_and_throw): Add remote_target parameter.
15581 (get_current_remote_target): Adjust.
15582 (remote_target::remote_add_inferior): Push target.
15583 (remote_target::remote_add_thread)
15584 (remote_target::remote_notice_new_inferior)
15585 (get_remote_thread_info): Pass target down.
15586 (remote_target::update_thread_list): Skip threads of inferiors
15587 bound to other targets. (remote_target::close): Don't discard
15588 inferiors. (remote_target::add_current_inferior_and_thread)
15589 (remote_target::process_initial_stop_replies)
15590 (remote_target::start_remote)
15591 (remote_target::remote_serial_quit_handler): Pass down target.
15592 (remote_target::remote_unpush_target): New remote_target
15593 parameter. Unpush the target from all inferiors.
15594 (remote_target::remote_unpush_and_throw): New remote_target
15595 parameter. Pass it down.
15596 (remote_target::open_1): Check whether the current inferior has
15597 execution instead of checking whether any inferior is live. Pass
15598 target down.
15599 (remote_target::remote_detach_1): Pass down target. Use
15600 remote_unpush_target.
15601 (extended_remote_target::attach): Pass down target.
15602 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15603 (remote_target::append_resumption): Pass down target.
15604 (remote_target::append_pending_thread_resumptions)
15605 (remote_target::remote_resume_with_hc, remote_target::resume)
15606 (remote_target::commit_resume): Pass down target.
15607 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15608 (remote_target::interrupt_query)
15609 (remote_target::remove_new_fork_children)
15610 (remote_target::check_pending_events_prevent_wildcard_vcont)
15611 (remote_target::remote_parse_stop_reply)
15612 (remote_target::process_stop_reply): Pass down target.
15613 (first_remote_resumed_thread): New remote_target parameter. Pass
15614 it down.
15615 (remote_target::wait_as): Pass down target.
15616 (unpush_and_perror): New remote_target parameter. Pass it down.
15617 (remote_target::readchar, remote_target::remote_serial_write)
15618 (remote_target::getpkt_or_notif_sane_1)
15619 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15620 down target.
15621 (remote_target::mourn_inferior): Pass down target. Use
15622 remote_unpush_target.
15623 (remote_target::core_of_thread)
15624 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15625 (remote_target::pid_to_exec_file)
15626 (remote_target::thread_handle_to_thread_info): Pass down target.
15627 (remote_target::async_wait_fd): New.
15628 * riscv-fbsd-tdep.c: Include "inferior.h".
15629 (riscv_fbsd_get_thread_local_address): Pass down target.
15630 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15631 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15632 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15633 Adjust.
15634 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15635 * solib-svr4.c (enable_break): Pass down target.
15636 * spu-multiarch.c (parse_spufs_run): Pass down target.
15637 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15638 * target-delegates.c: Regenerate.
15639 * target.c (g_target_stack): Delete.
15640 (current_top_target): Return the current inferior's top target.
15641 (target_has_execution_1): Refer to the passed-in inferior's top
15642 target.
15643 (target_supports_terminal_ours): Check whether the initial
15644 inferior was already created.
15645 (decref_target): New.
15646 (target_stack::push): Incref/decref the target.
15647 (push_target, push_target, unpush_target): Adjust.
15648 (target_stack::unpush): Defref target.
15649 (target_is_pushed): Return bool. Adjust to refer to the current
15650 inferior's target stack.
15651 (dispose_inferior): Delete, and inline parts ...
15652 (target_preopen): ... here. Only dispose of the current inferior.
15653 (target_detach): Hold strong target reference while detaching.
15654 Pass target down.
15655 (target_thread_name): Add assertion.
15656 (target_resume): Pass down target.
15657 (target_ops::beneath, find_target_at): Adjust to refer to the
15658 current inferior's target stack.
15659 (get_dummy_target): New.
15660 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15661 has a thread running.
15662 (initialize_targets): Rename to ...
15663 (_initialize_target): ... this.
15664 * target.h: Include "gdbsupport/refcounted-object.h".
15665 (struct target_ops): Inherit refcounted_object.
15666 (target_ops::shortname, target_ops::longname): Make const.
15667 (target_ops::async_wait_fd): New method.
15668 (decref_target): Declare.
15669 (struct target_ops_ref_policy): New.
15670 (target_ops_ref): New typedef.
15671 (get_dummy_target): Declare function.
15672 (target_is_pushed): Return bool.
15673 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15674 (all_matching_threads_iterator::all_matching_threads_iterator):
15675 Handle filter target.
15676 * thread-iter.h (struct all_matching_threads_iterator, struct
15677 all_matching_threads_range, class all_non_exited_threads_range):
15678 Filter by target too. Remove explicit.
15679 * thread.c (threads_executing): Delete.
15680 (inferior_thread): Pass down current inferior.
15681 (clear_thread_inferior_resources): Pass down thread pointer
15682 instead of ptid_t.
15683 (add_thread_silent, add_thread_with_info, add_thread): Add
15684 process_stratum_target parameter. Use it for thread and inferior
15685 searches.
15686 (is_current_thread): New.
15687 (thread_info::deletable): Use it.
15688 (find_thread_ptid, thread_count, in_thread_list)
15689 (thread_change_ptid, set_resumed, set_running): New
15690 process_stratum_target parameter. Pass it down.
15691 (set_executing): New process_stratum_target parameter. Pass it
15692 down. Adjust reference to 'threads_executing'.
15693 (threads_are_executing): New process_stratum_target parameter.
15694 Adjust reference to 'threads_executing'.
15695 (set_stop_requested, finish_thread_state): New
15696 process_stratum_target parameter. Pass it down.
15697 (switch_to_thread): Also match inferior.
15698 (switch_to_thread): New process_stratum_target parameter. Pass it
15699 down.
15700 (update_threads_executing): Reimplement.
15701 * top.c (quit_force): Pop targets from all inferior.
15702 (gdb_init): Don't call initialize_targets.
15703 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15704 Declare.
15705 (windows_add_thread, windows_delete_thread): Adjust.
15706 (get_windows_debug_event): Rename to ...
15707 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15708 * tracefile-tfile.c (tfile_target_open): Pass down target.
15709 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15710 Forward declare.
15711 (switch_to_thread): Add process_stratum_target parameter.
15712 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15713 parameter. Use it.
15714 (mi_on_resume): Pass target down.
15715 * nat/fork-inferior.c (startup_inferior): Add
15716 process_stratum_target parameter. Pass it down.
15717 * nat/fork-inferior.h (startup_inferior): Add
15718 process_stratum_target parameter.
15719 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15720
75c6c844
PA
157212020-01-10 Pedro Alves <palves@redhat.com>
15722
15723 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15724 directly. Instead find the first thread in the thread list and
15725 use switch_to_thread.
15726
78f2c40a
PA
157272020-01-10 Pedro Alves <palves@redhat.com>
15728
15729 * remote.c (remote_target::remote_add_inferior): Don't bind a
15730 process to the current inferior if the current inferior is already
15731 bound to a process.
15732
e7af6c70
TBA
157332020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15734 Pedro Alves <palves@redhat.com>
15735
15736 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15737 If no process is specified, return null_ptid instead of
15738 inferior_ptid.
15739 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15740 TARGET_WAITKIND_SIGNALLED with no pid.
15741
31ba933e
PA
157422020-01-10 Pedro Alves <palves@redhat.com>
15743
15744 * remote.c (first_remote_resumed_thread): New.
15745 (remote_target::wait_as): Use it as default event_ptid instead of
15746 inferior_ptid.
15747
735fc2ca
PA
157482020-01-10 Pedro Alves <palves@redhat.com>
15749
15750 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15751
c17e02e1
PA
157522020-01-10 Pedro Alves <palves@redhat.com>
15753
15754 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15755 not -1.
15756
ab1ddbcf
PA
157572020-01-10 Pedro Alves <palves@redhat.com>
15758
15759 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15760 ptid to get_last_target_status.
15761 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15762 ptid to get_last_target_status.
15763 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15764 get_last_target_status.
15765 (info_program_command): Don't pass a target_waitstatus to
15766 get_last_target_status.
15767 * infrun.c (init_wait_for_inferior): Use
15768 nullify_last_target_wait_ptid.
15769 (get_last_target_status): Handle nullptr arguments.
15770 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15771 (print_stop_event): Don't pass a ptid to get_last_target_status.
15772 (normal_stop): Don't pass a ptid to get_last_target_status.
15773 * infrun.h (get_last_target_status, set_last_target_status): Move
15774 comments here and update.
15775 (nullify_last_target_wait_ptid): Declare.
15776 * linux-fork.c (fork_load_infrun_state): Remove local extern
15777 declaration of nullify_last_target_wait_ptid.
15778 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15779 to get_last_target_status.
15780
f3f8ece4
PA
157812020-01-10 Pedro Alves <palves@redhat.com>
15782
15783 * gdbthread.h (scoped_restore_current_thread)
15784 <dont_restore, restore, m_dont_restore>: Declare.
15785 * thread.c (thread_alive): Add assertion. Return bool.
15786 (switch_to_thread_if_alive): New.
15787 (prune_threads): Switch inferior/thread.
15788 (print_thread_info_1): Switch thread before calling target methods.
15789 (scoped_restore_current_thread::restore): New, factored out from
15790 ...
15791 (scoped_restore_current_thread::~scoped_restore_current_thread):
15792 ... this.
15793 (scoped_restore_current_thread::scoped_restore_current_thread):
15794 Add assertion.
15795 (thread_apply_all_command, thread_select): Use
15796 switch_to_thread_if_alive.
15797 * infrun.c (proceed, restart_threads, handle_signal_stop)
15798 (switch_back_to_stepped_thread): Switch current thread before
15799 calling target methods.
15800
db2d40f7
PA
158012020-01-10 Pedro Alves <palves@redhat.com>
15802
15803 * inferior.c (switch_to_inferior_no_thread): New function,
15804 factored out from ...
15805 (inferior_command): ... here.
15806 * inferior.h (switch_to_inferior_no_thread): Declare.
15807 * mi/mi-main.c (run_one_inferior): Use
15808 switch_to_inferior_no_thread.
15809
bd420a2d
PA
158102020-01-10 Pedro Alves <palves@redhat.com>
15811
15812 * infcmd.c (kill_command): Remove dead code.
15813
ddf5db90
PA
158142020-01-10 Pedro Alves <palves@redhat.com>
15815
15816 * remote.c (remote_target::mourn_inferior): No longer check
15817 whether the target is running.
15818
5018ce90
PA
158192020-01-10 Pedro Alves <palves@redhat.com>
15820
15821 * corelow.c (core_target::has_execution): Change parameter type to
15822 inferior pointer.
15823 * inferior.c (number_of_live_inferiors): Use
15824 inferior::has_execution instead of target_has_execution_1.
15825 * inferior.h (inferior::has_execution): New.
15826 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15827 inferior::has_execution instead of target_has_execution_1.
15828 * process-stratum-target.c
15829 (process_stratum_target::has_execution): Change parameter type to
15830 inferior pointer. Check the inferior's PID instead of
15831 inferior_ptid.
15832 * process-stratum-target.h
15833 (process_stratum_target::has_execution): Change parameter type to
15834 inferior pointer.
15835 * record-full.c (record_full_core_target::has_execution): Change
15836 parameter type to inferior pointer.
15837 * target.c (target_has_execution_1): Change parameter type to
15838 inferior pointer.
15839 (target_has_execution_current): Adjust.
15840 * target.h (target_ops::has_execution): Change parameter type to
15841 inferior pointer.
15842 (target_has_execution_1): Change parameter type to inferior
15843 pointer. Change return type to bool.
15844 * tracefile.h (tracefile_target::has_execution): Change parameter
15845 type to inferior pointer.
15846
74375d18
PA
158472020-01-10 Pedro Alves <palves@redhat.com>
15848
15849 * exceptions.c (print_flush): Remove current_top_target() check.
15850
acdf84a6
PA
158512020-01-10 Pedro Alves <palves@redhat.com>
15852
15853 * remote.c (show_remote_exec_file): Show the current inferior's
15854 exec-file instead of the command variable's value.
15855
ec506636
PA
158562020-01-10 Pedro Alves <palves@redhat.com>
15857
15858 * record-full.c (record_full_resume_ptid): New global.
15859 (record_full_target::resume): Set it.
15860 (record_full_wait_1): Use record_full_resume_ptid instead of
15861 inferior_ptid.
15862
873657b9
PA
158632020-01-10 Pedro Alves <palves@redhat.com>
15864
15865 * gdbthread.h (scoped_restore_current_thread)
15866 <dont_restore, restore, m_dont_restore>: Declare.
15867 * thread.c (thread_alive): Add assertion. Return bool.
15868 (switch_to_thread_if_alive): New.
15869 (prune_threads): Switch inferior/thread.
15870 (print_thread_info_1): Switch thread before calling target methods.
15871 (scoped_restore_current_thread::restore): New, factored out from
15872 ...
15873 (scoped_restore_current_thread::~scoped_restore_current_thread):
15874 ... this.
15875 (scoped_restore_current_thread::scoped_restore_current_thread):
15876 Add assertion.
15877 (thread_apply_all_command, thread_select): Use
15878 switch_to_thread_if_alive.
15879
7f0ae84c
GB
158802020-01-10 George Barrett <bob@bob131.so>
15881
15882 * stap-probe.c (stap_modify_semaphore): Don't check for null
15883 semaphores.
15884 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15885 for null semaphores.
15886
f5a7c406
AB
158872020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15888
15889 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15890 all source windows, and maintain horizontal scroll status while
15891 doing so.
15892
9ae6bf64
TT
158932020-01-09 Tom Tromey <tom@tromey.com>
15894
15895 PR tui/18932:
15896 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15897 update_source_window, not print_source_lines.
15898
b2efe70c
AB
158992020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15900
15901 * tui/tui.c (tui_enable): Register tui hooks after calling
15902 tui_display_main.
15903
5f23a082
CB
159042020-01-09 Christian Biesinger <cbiesinger@google.com>
15905
15906 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15907
3061113b
SM
159082020-01-08 Simon Marchi <simon.marchi@efficios.com>
15909
15910 * thread.c (print_thread_info_1): Fix indentation.
15911
57d75002
CB
159122020-01-09 Christian Biesinger <cbiesinger@google.com>
15913
15914 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15915 unique_xmalloc_ptr outside the if to always free the demangled name.
15916
6a053cb1
TT
159172020-01-08 Tom Tromey <tromey@adacore.com>
15918
15919 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15920 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15921 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15922 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15923 Remove.
15924 (section_offsets): New typedef.
15925 * symtab.c (fixup_section, get_msymbol_address): Update.
15926 * symmisc.c (dump_msymbols): Update.
15927 * symfile.h (relative_addr_info_to_section_offsets)
15928 (symfile_map_offsets_to_segments): Update.
15929 * symfile.c (build_section_addr_info_from_objfile)
15930 (init_objfile_sect_indices): Update.
15931 (struct place_section_arg): Change type of "offsets".
15932 (place_section): Update.
15933 (relative_addr_info_to_section_offsets): Change type of
15934 "section_offsets". Remove "num_sections" parameter.
15935 (default_symfile_offsets, syms_from_objfile_1)
15936 (set_objfile_default_section_offset): Update.
15937 (reread_symbols): No need to preserve section offsets by hand.
15938 (symfile_map_offsets_to_segments): Change type of "offsets".
15939 * stap-probe.c (relocate_address): Update.
15940 * stabsread.h (process_one_symbol): Update.
15941 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15942 (solib_target_relocate_section_addresses): Update.
15943 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15944 Update.
15945 * solib-frv.c (frv_relocate_main_executable): Update.
15946 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15947 * solib-aix.c (solib_aix_get_section_offsets): Change return
15948 type.
15949 (solib_aix_solib_create_inferior_hook): Update.
15950 * remote.c (remote_target::get_offsets): Update.
15951 * psymtab.c (find_pc_sect_psymtab): Update.
15952 * psympriv.h (struct partial_symbol) <address, text_low,
15953 text_high>: Update.
15954 * objfiles.h (obj_section_offset): Update.
15955 (struct objfile) <section_offsets>: Change type.
15956 <num_sections>: Remove.
15957 (objfile_relocate): Update.
15958 * objfiles.c (entry_point_address_query): Update
15959 (relocate_one_symbol): Change type of "section_offsets".
15960 (objfile_relocate1, objfile_relocate1): Change type of
15961 "new_offsets".
15962 (objfile_rebase1): Update.
15963 * mipsread.c (mipscoff_symfile_read): Update.
15964 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15965 parameter.
15966 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15967 (parse_external, psymtab_to_symtab_1): Update.
15968 * machoread.c (macho_symfile_offsets): Update.
15969 * ia64-tdep.c (ia64_find_unwind_table): Update.
15970 * hppa-tdep.c (read_unwind_info): Update.
15971 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15972 * dwarf2read.c (create_addrmap_from_index)
15973 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15974 (process_psymtab_comp_unit_reader, add_partial_symbol)
15975 (add_partial_subprogram, process_full_comp_unit)
15976 (read_file_scope, read_func_scope, read_lexical_block_scope)
15977 (read_call_site_scope, dwarf2_rnglists_process)
15978 (dwarf2_ranges_process, dwarf2_ranges_read)
15979 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15980 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15981 Update.
15982 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15983 Update.
15984 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15985 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15986 (process_one_symbol): Change type of "section_offsets".
15987 * ctfread.c (get_objfile_text_range): Update.
15988 * coffread.c (coff_symtab_read, enter_linenos)
15989 (process_coff_symbol): Update.
15990 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15991 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15992
456e800a
TT
159932020-01-08 Tom Tromey <tromey@adacore.com>
15994
15995 * dwarf2read.c (parse_macro_definition): Use std::string.
15996 (parse_macro_definition): Likewise.
15997
6dfa2fc2
TT
159982020-01-08 Tom Tromey <tromey@adacore.com>
15999
16000 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16001 (ATTR_ALLOC_CHUNK): Remove.
16002
421d1616
TT
160032020-01-08 Tom Tromey <tromey@adacore.com>
16004
16005 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16006
43816ebc
TT
160072020-01-08 Tom Tromey <tromey@adacore.com>
16008
16009 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16010 (dwarf2_compute_name, open_dwo_file): Likewise.
16011 (process_enumeration_scope): Use std::vector.
16012 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16013 (partial_die_info::fixup, dwarf2_start_subfile)
16014 (guess_full_die_structure_name, dwarf2_name): Likewise.
16015 (determine_prefix): Update.
16016 (guess_full_die_structure_name): Make return type const.
16017 (partial_die_full_name): Return unique_xmalloc_ptr.
16018 (DW_FIELD_ALLOC_CHUNK): Remove.
16019
4212d509
TT
160202020-01-07 Tom Tromey <tromey@adacore.com>
16021
16022 PR build/24937:
16023 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16024
06a6207a
JT
160252020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16026
16027 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16028
153d79c4
AB
160292020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16030
16031 * stack.c (print_frame_info): Move disassemble_next_line code
16032 inside source_print block.
16033
66182876
EZ
160342020-01-06 Eli Zaretskii <eliz@gnu.org>
16035
16036 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16037 gdb/signals.h, as we are now using native signal symbols.
16038
cbfa8581
SV
160392020-01-06 Shahab Vahedi <shahab@synopsys.com>
16040
16041 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16042 overflow by an early check of content vs threshold.
aac66a4c 16043 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16044 Likewise.
16045
3f602821
EZ
160462020-01-06 Eli Zaretskii <eliz@gnu.org>
16047
16048 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16049
a08c904d
JT
160502020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16051
16052 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16053 export table if no section contains it's RVA.
16054
89a65580
EZ
160552020-01-06 Eli Zaretskii <eliz@gnu.org>
16056
16057 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16058
8b7fcda2
HD
160592020-01-06 Hannes Domani <ssbssa@yahoo.de>
16060
16061 * source.c (print_source_lines_base): Set last_line_listed.
16062
a61b4f69
SV
160632020-01-06 Shahab Vahedi <shahab@synopsys.com>
16064
16065 * tui/tui-disasm.c: Remove trailing spaces.
16066
559e7e50
EZ
160672020-01-06 Eli Zaretskii <eliz@gnu.org>
16068 Pedro Alves <palves@redhat.com>
16069
16070 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16071 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16072 (windows_gdb_signal_to_target): New function, uses the above
16073 enumeration to convert GDB internal signal codes to equivalent
16074 Windows codes.
16075 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16076 * windows-nat.c: Include "gdb_wait.h".
16077 (get_windows_debug_event): Extract the fatal exception from the
16078 exit status and convert to the equivalent Posix signal number.
16079 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16080 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16081 * gdbsupport/gdb_wait.c: New file, implements
16082 windows_status_to_termsig.
16083 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16084 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16085
f2302a34
AB
160862020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16087
16088 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16089 show_layout.
16090
6a5206eb
LM
160912020-01-05 Luis Machado <luis.machado@linaro.org>
16092
16093 * aarch64-linux-nat.c
16094 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16095 and bfd_mach_aarch64.
16096
6ec1d75e
PW
160972020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16098
16099 * ui-file.c (stdio_file::can_emit_style_escape)
16100 (tee_file::can_emit_style_escape): Ensure style is used also on
16101 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16102 to gdb_stdout.
16103 * main.c (set_gdb_data_directory): Use file style to output the
16104 warning that the given pathname is not a directory.
16105 * top.c (show_history_filename, gdb_safe_append_history)
16106 (show_gdb_datadir): Use file style.
16107
44f81a76
HD
161082020-01-03 Hannes Domani <ssbssa@yahoo.de>
16109
16110 * solib-target.c (struct lm_info_target):
16111 Change offsets to be a unique_xmalloc_ptr.
16112 (solib_target_relocate_section_addresses): Update.
16113
25057eb0
HD
161142020-01-03 Hannes Domani <ssbssa@yahoo.de>
16115
16116 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16117
6e2118f5
BE
161182020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16119
16120 * MAINTAINERS (Write After Approval): Add myself.
16121
8133c7dc
LM
161222020-01-02 Luis Machado <luis.machado@linaro.org>
16123
16124 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16125 Cell BE architecture.
16126 * target.h (struct target_ops) <thread_architecture>: Likewise.
16127
48189bec
HD
161282020-01-01 Hannes Domani <ssbssa@yahoo.de>
16129
16130 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16131
ead1063b
HD
161322020-01-01 Hannes Domani <ssbssa@yahoo.de>
16133
16134 * MAINTAINERS (Write After Approval): Add myself.
16135
e5d78223
JB
161362020-01-01 Joel Brobecker <brobecker@adacore.com>
16137
16138 * gdbarch.sh: Update copyright year range of generated files.
16139
b811d2c2
JB
161402020-01-01 Joel Brobecker <brobecker@adacore.com>
16141
16142 Update copyright year range in all GDB files.
16143
5f4def5c
JB
161442020-01-01 Joel Brobecker <brobecker@adacore.com>
16145
16146 * copyright.py: Convert to Python 3.
16147
51fd4002
JB
161482020-01-01 Joel Brobecker <brobecker@adacore.com>
16149
16150 * copyright.py: Adapt after move of gnulib directory from gdb
16151 directory to toplevel directory.
16152
5fb651f2
JB
161532020-01-01 Joel Brobecker <brobecker@adacore.com>
16154
16155 * copyright.py (main): Exit if run from the wrong directory.
16156
5dd8bf88
JB
161572020-01-01 Joel Brobecker <brobecker@adacore.com>
16158
16159 * top.c (print_gdb_version): Change copyright year to 2020.
16160
9f71dacb 161612020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16162
9f71dacb 16163 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16164
9f71dacb 16165For older changes see ChangeLog-2019.
c906108c
SS
16166\f
16167Local Variables:
16168mode: change-log
16169left-margin: 8
16170fill-column: 74
16171version-control: never
57da7796 16172coding: utf-8
c906108c 16173End:
This page took 4.456076 seconds and 4 git commands to generate.