gdb: rs6000_dwarf2_reg_to_regnum return -1 for unknown register number
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aa2045e7
SM
12020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
4
b1ec2735
TT
52020-10-30 Tom Tromey <tromey@adacore.com>
6
7 * Makefile.in (stamp-init): Depend on config.status.
8
b78b3a29
TBA
92020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10
11 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
12
d70bdd3c
PA
132020-10-30 Pedro Alves <pedro@palves.net>
14
15 * thread.c (lookup_selected_frame): Move ...
16 * frame.c (lookup_selected_frame): ... here.
17
79952e69
PA
182020-10-30 Pedro Alves <pedro@palves.net>
19
20 * blockframe.c (block_innermost_frame): Use get_selected_frame.
21 * frame.c
22 (scoped_restore_selected_frame::scoped_restore_selected_frame):
23 Use save_selected_frame. Save language as well.
24 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
25 Use restore_selected_frame, and restore language as well.
26 (selected_frame_id, selected_frame_level): New.
27 (selected_frame): Update comments.
28 (save_selected_frame, restore_selected_frame): New.
29 (get_selected_frame): Use lookup_selected_frame.
30 (get_selected_frame_if_set): Delete.
31 (select_frame): Record selected_frame_level and selected_frame_id.
32 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
33 fields.
34 (get_selected_frame): Make 'message' parameter optional.
35 (get_selected_frame_if_set): Delete declaration.
36 (select_frame): Update comments.
37 (save_selected_frame, restore_selected_frame)
38 (lookup_selected_frame): Declare.
39 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
40 * infrun.c (struct infcall_control_state) <selected_frame_level>:
41 New field.
42 (save_infcall_control_state): Use save_selected_frame.
43 (restore_selected_frame): Delete.
44 (restore_infcall_control_state): Use restore_selected_frame.
45 * stack.c (select_frame_command_core, frame_command_core): Use
46 get_selected_frame.
47 * thread.c (restore_selected_frame): Rename to ...
48 (lookup_selected_frame): ... this and make extern. Select the
49 current frame if the frame level is -1.
50 (scoped_restore_current_thread::restore): Also restore the
51 language.
52 (scoped_restore_current_thread::~scoped_restore_current_thread):
53 Don't try/catch.
54 (scoped_restore_current_thread::scoped_restore_current_thread):
55 Save the language as well. Use save_selected_frame.
56
58103c33
SM
572020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
58
59 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
60 documentation.
61 * gdbarch.h: Re-generate.
62
40a53766
SM
632020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
64
65 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
66 parameter.
67 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
68 Likewise.
69 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
70 Likewise.
71 * arch-utils.c (default_displaced_step_hw_singlestep):
72 Likewise.
73 * arch-utils.h (default_displaced_step_hw_singlestep):
74 Likewise.
75 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
76 Likewise.
77 * s390-tdep.c (s390_displaced_step_hw_singlestep):
78 Likewise.
79 * gdbarch.c: Re-generate.
80 * gdbarch.h: Re-generate.
81 * infrun.c (resume_1): Adjust.
82
8407f91b
TT
832020-10-29 Tom Tromey <tom@tromey.com>
84
85 * progspace.c (program_space::~program_space): Don't call
86 exec_close.
87
5008b3b2
TT
882020-10-29 Tom Tromey <tom@tromey.com>
89
90 * exec.c (exec_target::close): Don't change current program
91 space.
92
d9eebde0
TT
932020-10-29 Tom Tromey <tom@tromey.com>
94
95 * symfile.c (add_symbol_file_command): Update.
96 * exec.c (program_space::add_target_sections): Rename.
97 * symfile-mem.c (symbol_file_add_from_memory): Update.
98 * progspace.h (struct program_space) <add_target_sections>:
99 Declare new overload.
100 * exec.h (add_target_sections_of_objfile): Don't declare.
101
3769e227
TT
1022020-10-29 Tom Tromey <tom@tromey.com>
103
104 * solib.c (solib_map_sections): Update.
105 * exec.c (program_space::add_target_sections): Now a method.
106 (exec_file_attach): Update.
107 * exec.h (add_target_sections): Don't declare.
108 * progspace.h (struct program_space) <add_target_sections>:
109 Declare.
110
2a3f84af
TT
1112020-10-29 Tom Tromey <tom@tromey.com>
112
113 * progspace.h (struct program_space) <remove_target_sections>:
114 Declare.
115 * exec.c (program_space::remove_target_sections): Now a method.
116 * exec.h (remove_target_sections): Don't declare.
117
004eecfd
TT
1182020-10-29 Tom Tromey <tom@tromey.com>
119
120 * inferior.c (delete_inferior): Update.
121 * progspace.c (program_space::empty): Rename from
122 program_space_empty_p. Return bool.
123 * progspace.h (struct program_space) <empty>: New method.
124 (program_space_empty_p): Don't declare.
125
e39fb971
TT
1262020-10-29 Tom Tromey <tom@tromey.com>
127
128 * progspace.c (program_space::~program_space): Don't call
129 clear_program_space_solib_cache.
130 (program_space::clear_solib_cache): Rename from
131 clear_solib_cache.
132 * solib.c (handle_solib_event): Update.
133 * progspace.h (struct program_space) <clear_solib_cache>: New
134 method.
135 (clear_program_space_solib_cache): Don't declare.
136
a42d7dd8
TT
1372020-10-29 Tom Tromey <tom@tromey.com>
138
139 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
140 * target.c (info_target_command): Update.
141 * symfile.c (syms_from_objfile_1, finish_new_objfile)
142 (symbol_file_clear, reread_symbols): Update.
143 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
144 * stabsread.c (scan_file_globals): Update.
145 * solib.c (update_solib_list): Update.
146 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
147 (svr4_fetch_objfile_link_map, enable_break)
148 (svr4_relocate_main_executable)
149 (svr4_iterate_over_objfiles_in_search_order): Update.
150 * solib-frv.c (lm_base, enable_break)
151 (frv_relocate_main_executable): Update.
152 (main_got, frv_fdpic_find_canonical_descriptor): Update.
153 (frv_fetch_objfile_link_map): Update.
154 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
155 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
156 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
157 * remote.c (remote_target::get_offsets): Update.
158 (remote_target::start_remote)
159 (extended_remote_target::post_attach): Update.
160 * objfiles.c (entry_point_address_query): Update.
161 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
162 * minsyms.c (get_symbol_leading_char): Update.
163 * frame.c (inside_main_func): Update.
164 * progspace.h (symfile_objfile): Remove macro.
165
19f6550e
TT
1662020-10-29 Tom Tromey <tom@tromey.com>
167
168 * exec.c (exec_file_attach): Update.
169 * progspace.c (program_space::exec_close): Update.
170 * progspace.h (struct program_space) <ebfd>: Now a
171 gdb_bfd_ref_ptr.
172 <set_exec_bfd>: Change argument type.
173 <exec_bfd>: Update.
174
7e10abd1
TT
1752020-10-29 Tom Tromey <tom@tromey.com>
176
177 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
178 * symfile.c (reread_symbols): Update.
179 * symfile-mem.c (add_symbol_file_from_memory_command)
180 (add_vsyscall_page): Update.
181 * source-cache.c (source_cache::get_plain_source_lines): Update.
182 * solib-svr4.c (find_program_interpreter, elf_locate_base)
183 (svr4_current_sos_direct, svr4_exec_displacement)
184 (svr4_relocate_main_executable): Update.
185 (svr4_iterate_over_objfiles_in_search_order): Update.
186 * solib-frv.c (enable_break2, enable_break): Update.
187 * solib-dsbt.c (lm_base, enable_break): Update.
188 * solib-darwin.c (find_program_interpreter)
189 (darwin_solib_create_inferior_hook): Update.
190 * sol-thread.c (rw_common, ps_pdmodel): Update.
191 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
192 * remote.c (compare_sections_command)
193 (remote_target::trace_set_readonly_regions): Update.
194 * remote-sim.c (get_sim_inferior_data)
195 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
196 (gdbsim_target_open, gdbsim_target::files_info): Update.
197 * exec.h (exec_bfd): Remove macro.
198 * progspace.c (initialize_progspace): Update.
199 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
200 Update.
201 * nto-procfs.c (nto_procfs_target::post_attach)
202 (nto_procfs_target::create_inferior): Update.
203 * maint.c (maintenance_info_sections): Update.
204 * linux-thread-db.c (thread_db_target::get_thread_local_address):
205 Update.
206 * infcmd.c (post_create_inferior): Update.
207 * gcore.c (default_gcore_arch, default_gcore_target): Update.
208 (objfile_find_memory_regions): Update.
209 * exec.c (validate_exec_file, exec_file_attach)
210 (exec_read_partial_read_only, print_section_info): Update.
211 * corelow.c (core_target_open): Update.
212 * corefile.c (reopen_exec_file, validate_files): Update.
213 * arm-tdep.c (gdb_print_insn_arm): Update.
214 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
215 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
216 methods.
217
b55221ab
TT
2182020-10-29 Tom Tromey <tom@tromey.com>
219
220 * progspace.h (current_target_sections): Remove macro.
221 * solib-svr4.c (scan_dyntag): Update.
222 * solib-dsbt.c (scan_dyntag): Update.
223 * exec.c (exec_target::close): Update.
224 (add_target_sections, add_target_sections_of_objfile)
225 (remove_target_sections, exec_target::get_section_table)
226 (exec_target::files_info, set_section_command)
227 (exec_set_section_address, exec_target::has_memory)
228 (exec_target::has_memory): Update.
229
5a36e715
TT
2302020-10-29 Tom Tromey <tom@tromey.com>
231
232 * source-cache.c (source_cache::get_plain_source_lines): Use
233 current_program_space.
234 * corefile.c (reopen_exec_file): Use current_program_space.
235 * exec.c (exec_file_attach): Use current_program_space.
236 * exec.h (exec_bfd_mtime): Remove.
237
784c8592
TT
2382020-10-29 Tom Tromey <tom@tromey.com>
239
240 * gcore.c (default_gcore_mach): Remove.
241 (create_gcore_bfd): Update.
242
8a4f1402
TT
2432020-10-29 Tom Tromey <tom@tromey.com>
244
245 * progspace.c (program_space::exec_close): New method, from
246 exec_close in exec.c.
247 * exec.c (exec_close): Move to progspace.c.
248 (exec_target::close, exec_file_attach): Update.
249 * progspace.h (struct program_space) <exec_close>: Declare
250 method.
251
c20cb686
TT
2522020-10-29 Tom Tromey <tom@tromey.com>
253
254 * progspace.h (struct program_space) <exec_filename>: Rename from
255 pspace_exec_filename. Now a unique_xmalloc_ptr.
256 * inferior.c (print_selected_inferior): Update.
257 (print_inferior): Update.
258 * mi/mi-main.c (print_one_inferior): Update.
259 * exec.h (exec_filename): Remove macro.
260 * corefile.c (get_exec_file): Update.
261 * exec.c (exec_close): Update.
262 (exec_file_attach): Update.
263 * progspace.c (clone_program_space): Update.
264 (print_program_space): Update.
265
6be2a9ab
TT
2662020-10-29 Tom Tromey <tom@tromey.com>
267
268 * target-section.h (struct target_section): Add constructor.
269 * exec.c (build_section_table, add_target_sections_of_objfile):
270 Update.
271 * corelow.c (core_target::build_file_mappings): Update.
272
cfaa8f76
TBA
2732020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
274
275 PR gdb/19318
276 * inferior.c (detach_inferior_command): Restore the current thread.
277 (kill_inferior_command): Ditto.
278
1b00ef06
TV
2792020-10-28 Tom de Vries <tdevries@suse.de>
280
281 PR symtab/26772
282 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
283 map, check it in the "best match" loop.
284
7f40ce1a
SM
2852020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
286
287 * m32c-tdep.c: Remove unused includes.
288
5eb9e3f5
SM
2892020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
290
291 * xtensa-tdep.c: Remove includes.
292
b1d4d8d1
TBA
2932020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
294
295 * breakpoint.c (struct condition_command_opts): New struct.
296 (condition_command_option_defs): New static global.
297 (make_condition_command_options_def_group): New function.
298 (condition_completer): Update to consider the '-force' flag.
299 (condition_command): Use gdb::option for the '-force' flag.
300
bd24c5d6
TV
3012020-10-27 Tom de Vries <tdevries@suse.de>
302
303 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
304 symbols in section check.
305
61eb46a4
TV
3062020-10-27 Tom de Vries <tdevries@suse.de>
307
308 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
309
733d554a
TBA
3102020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
311
312 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
313 * breakpoint.c: Update the help text of the 'condition' and 'break'
314 commands.
315 (set_breakpoint_condition): Take a new bool parameter
316 to control whether condition definition should be forced even when
317 the condition expression is invalid in all of the current locations.
318 (condition_command): Update the call to 'set_breakpoint_condition'.
319 (find_condition_and_thread): Take the "-force-condition" flag into
320 account.
321 * linespec.c (linespec_keywords): Add "-force-condition" as an
322 element.
323 (FORCE_KEYWORD_INDEX): New #define.
324 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
325 as a keyword.
326 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
327 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
328 * python/py-breakpoint.c (bppy_set_condition): Ditto.
329 * NEWS: Mention the changes to the 'break' and 'condition' commands.
330
b5fa468f
TBA
3312020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
332
333 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
334 * breakpoint.c (set_breakpoint_location_condition): New function.
335 (set_breakpoint_condition): Disable a breakpoint location if parsing
336 the condition string gives an error.
337 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
338 (build_target_condition_list): Ditto.
339 (build_target_command_list): Ditto.
340 (build_bpstat_chain): Ditto.
341 (print_one_breakpoint_location): Ditto.
342 (print_one_breakpoint): Ditto.
343 (breakpoint_1): Ditto.
344 (bp_location::bp_location): Ditto.
345 (locations_are_equal): Ditto.
346 (update_breakpoint_locations): Ditto.
347 (enable_disable_bp_num_loc): Ditto.
348 (init_breakpoint_sal): Use set_breakpoint_location_condition.
349 (find_condition_and_thread_for_sals): New static function.
350 (create_breakpoint): Call find_condition_and_thread_for_sals.
351 (location_to_sals): Call find_condition_and_thread_for_sals instead
352 of find_condition_and_thread.
353
1c47ec3e
TV
3542020-10-26 Tom de Vries <tdevries@suse.de>
355
356 * dwarf2/read.c (process_full_comp_unit): Call
357 dwarf2_find_base_address.
358
6390859c
TT
3592020-10-26 Tom Tromey <tromey@adacore.com>
360
361 * gdbtypes.c (create_range_type): Revert previous patch. Add
362 comment.
363
d744f0f9
PA
3642020-10-26 Pedro Alves <pedro@palves.net>
365
366 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
367 (my_waitpid): Use gdb::handle_eintr.
368
006811bc
SM
3692020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * acinclude.m4: Update ptrace.m4 path.
372 * ptrace.m4: Moved to gdbsupport.
373
c75e31a1
SM
3742020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
377 instead of target_gdbarch.
378
32495661
SM
3792020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * jit.c (jit_reader_load_command): Pass current inferior.
382 (jit_inferior_init): Change parameter type to inferior, use it.
383 (jit_inferior_created): Remove.
384 (jit_inferior_created_hook): Pass inferior parameter down.
385 (_initialize_jit): Use jit_inferior_created_hook instead of
386 jit_inferior_created.
387 * jit.h (jit_inferior_created_hook): Add inferior parameter.
388 * infrun.c (follow_exec): Pass inferior to
389 jit_inferior_created_hook.
390
3f66685e
SM
3912020-10-24 Simon Marchi <simon.marchi@efficios.com>
392
393 * linux-thread-db.c (check_pid_namespace_match): Add inferior
394 parameter and use it.
395 (thread_db_inferior_created): Pass inferior argument.
396
a0ff652f
SM
3972020-10-24 Simon Marchi <simon.marchi@efficios.com>
398
399 * aix-thread.c (aix_thread_inferior_created): Add inferior
400 parameter.
401 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
402 * dummy-frame.c (cleanup_dummy_frames): Likewise.
403 * jit.c (jit_inferior_created): Likewise.
404 * linux-thread-db.c (thread_db_inferior_created): Likewise.
405 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
406 * observable.h (inferior_created): Likewise.
407 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
408 * symfile-mem.c (add_vsyscall_page): Likewise.
409 * infcmd.c (post_create_inferior): Pass inferior argument.
410
3c67532c
JB
4112020-10-24 Joel Brobecker <brobecker@adacore.com>
412
413 GDB 10.1 released.
414
8747316e
JB
4152020-10-23 Joel Brobecker <brobecker@adacore.com>
416
417 * ada-typeprint.c (ada_print_type): Remove superfluous second call
418 to ada_check_typedef.
419
1a0ea399
AB
4202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * f-exp.y (f_parse): Rename to...
423 (f_language::parser): ...this.
424 * f-lang.c (f_get_encoding): Rename to...
425 (f_language::get_encoding): ...this.
426 (f_op_print_tab): Rename to...
427 (f_language::op_print_tab): ...this.
428 (exp_descriptor_f): Rename to...
429 (f_language::exp_descriptor_tab): ...this.
430 (class f_language): Moved to f-lang.h.
431 (f_language::language_arch_info): New function, moved out of class
432 declaration.
433 (f_language::search_name_hash): Likewise.
434 (f_language::lookup_symbol_nonlocal): Likewise.
435 (f_language::get_symbol_name_matcher_inner): Likewise.
436 * f-lang.h: Add 'valprint.h' include.
437 (class f_language): Moved here from f-lang.c.
438 * f-typeprint.c (f_type_print_args): Delete commented out
439 declaration.
440 (f_print_typedef): Rename to...
441 (f_language::print_typedef): ...this.
442 (f_print_type): Rename to...
443 (f_language::print_type): ...this.
444 (f_type_print_varspec_prefix): Delete declaration and rename to...
445 (f_language::f_type_print_varspec_prefix): ...this.
446 (f_type_print_varspec_suffix): Delete declaration and rename to...
447 (f_language::f_type_print_varspec_suffix): ...this.
448 (f_type_print_base): Delete declaration and rename to...
449 (f_language::f_type_print_base): ...this.
450 * f-valprint.c (f_value_print_inner): Rename to...
451 (f_language::value_print_inner): ...this.
452 * parse.c: Delete 'f-lang.h' include.
453
88cefd9b
AB
4542020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
455
456 * language.h (language_defn::print_type): Add variable names in
457 declaration, and update header comment.
458
5399db93
AB
4592020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 * ada-lang.c (ada_language::demangle): Rename to...
462 (ada_language::demangle_symbol): ...this.
463 * c-lang.c (cplus_language::demangle): Rename to...
464 (cplus_language::demangle_symbol): ...this.
465 * d-lang.c (d_language::demangle): Rename to...
466 (d_language::demangle_symbol): ...this.
467 * f-lang.c (f_language::demangle): Rename to...
468 (f_language::demangle_symbol): ...this.
469 * go-lang.c (go_language::demangle): Rename to...
470 (go_language::demangle_symbol): ...this.
471 * language.c (language_demangle): Update call to demangle_symbol.
472 (auto_or_unknown_language::demangle): Rename to...
473 (auto_or_unknown_language::demangle_symbol): ...this.
474 * language.h (language_defn::demangle): Rename to...
475 (language_defn::demangle_symbol): ...this.
476 * objc-lang.c (objc_language::demangle): Rename to...
477 (objc_language::demangle_symbol): ...this.
478 * rust-lang.c (rust_language::demangle): Rename to...
479 (rust_language::demangle_symbol): ...this.
480
4b2f86ef
AB
4812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
482
483 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
484 (iterate_over_file_blocks): Replace use of macro with the macros
485 definition.
486
e74b39de
AB
4872020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
490 * valprint.c (maybe_print_array_index): Replace use of macro with
491 the macros definition.
492
00c696a6
AB
4932020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
494
495 * ada-lang.c (ada_language::print_array_index): Call value_print
496 directly.
497 * language.c (language_defn::print_array_index): Likewise.
498 * language.h (LA_VALUE_PRINT): Delete.
499 * valprint.c (value_print): Call value_print on the
500 current_language directly.
501
d3b67c56
AB
5022020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 * language.h (LA_PRINT_TYPEDEF): Delete.
505 * typeprint.c (typedef_print): Call print_typedef directly on the
506 current_language object.
507
790e2a12
AB
5082020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
509
510 * m2-exp.y (m2_parse): Rename to...
511 (m2_language::parser): ...this. Update function signature.
512 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
513 (m2_op_print): Rename to...
514 (m2_language::op_print_tab): ...this, and make const.
515 (exp_descriptor_modula2): Rename to...
516 (m2_language::exp_descriptor_modula2): ...this.
517 (class m2_language): Move to m2-lang.h.
518 (m2_language::language_arch_info): New function, moved out of
519 class declaration.
520 (m2_language::printchar): New function, body from m2_printchar.
521 (m2_language::printstr): New function, moved out of class
522 declaration.
523 (m2_language::emitchar): Likewise.
524 * m2-lang.h (m2_parse): Delete declaration.
525 (m2_print_typedef): Delete declaration.
526 (m2_value_print_inner): Delete declaration.
527 (class m2_language): Class declaration moved from m2-lang.c,
528 larger functions are left in m2-lang.c.
529 * m2-typeprint.c (m2_print_typedef): Rename to...
530 (m2_language::print_typedef): ...this, and update function
531 signature.
532 * m2-valprint.c (m2_value_print_inner): Rename to...
533 (m2_language::value_print_inner): ...this, replace use of
534 LA_PRINT_STRING with a direct call to printstr member function,
535 and update recursive call.
536
b01175fc
AB
5372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
538
539 * language.c (default_is_string_type_p): Delete, implementation
540 moved into auto_or_unknown_language::is_string_type_p.
541 (unk_op_print_tab): Moved into
542 auto_or_unknown_language::opcode_print_table.
543 (unknown_language_arch_info): Delete, implementation moved into
544 auto_or_unknown_language::language_arch_info.
545 (class auto_or_unknown_language): New class, member functions
546 copied from unknown_language class, with some updates.
547 (class unknown_language): Most member functions moved into
548 auto_or_unknown_language class. Inherit from
549 auto_or_unknown_language class.
550 (class auto_language): Inherit from auto_or_unknown_language.
551 Delete most member functions.
552
1a97fe8c
HD
5532020-10-22 Hannes Domani <ssbssa@yahoo.de>
554
555 * stabsread.c (read_member_functions): Remove gdb_assert.
556
6b9d0dfd
HD
5572020-10-22 Hannes Domani <ssbssa@yahoo.de>
558
559 * gdbtypes.c (init_complex_type): Check target type name.
560
4b4bb603
SM
5612020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * target-debug.h (target_debug_print_struct_target_ops_p):
564 Remove.
565 (target_debug_print_async_callback_ftype_p): Remove.
566 (target_debug_print_struct_trace_state_variable_p): Remove.
567 (target_debug_print_struct_traceframe_info_p): Remove.
568 (target_debug_print_VEC__btrace_block_s__pp): Remove.
569 (target_debug_print_enum_btrace_format): Remove.
570 (target_debug_print_enum_info_proc_what): Remove.
571 (target_debug_print_thread_info_pp): Remove.
572
24f5300a
SM
5732020-10-22 Simon Marchi <simon.marchi@efficios.com>
574
575 * target.h (struct target_ops) <make_corefile_notes>:
576 Change return type to unique pointer.
577 * target.c (dummy_make_corefile_notes): Likewise.
578 * exec.c (struct exec_target) <make_corefile_notes>:
579 Likewise.
580 (exec_target::make_corefile_notes): Likewise.
581 * procfs.c (class procfs_target) <make_corefile_notes>:
582 Likewise.
583 (procfs_do_thread_registers): Adjust to unique pointer.
584 (struct procfs_corefile_thread_data): Add constructor.
585 <note_data>: Change type to unique pointer.
586 (procfs_corefile_thread_callback): Adjust to unique pointer.
587 (procfs_target::make_corefile_notes): Change return type to
588 unique pointer.
589 * target-delegates.c: Re-generate.
590 * gcore.c (write_gcore_file_1): Adjust.
591 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
592 New.
593
5fb4027f
TV
5942020-10-22 Tom de Vries <tdevries@suse.de>
595
596 * block.c (find_block_in_blockvector): Make sure the returned block
597 contains pc.
598
4a636814
SM
5992020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
600
601 PR gdb/26693
602 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
603 parameter.
604 (load_cu): Pass existing CU.
605 (process_imported_unit_die): Likewise.
606 (follow_die_offset): Likewise.
607
1bd57575
LM
6082020-10-22 Luis Machado <luis.machado@linaro.org>
609
610 * corelow.c (core_target::xfer_partial): Also check for an empty
611 m_core_unavailable_mappings vector.
612
6b4c676c
AB
6132020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
616 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
617 * f-exp.y (arglist): Allow for a series of subranges.
618 (subrange): Add cases for subranges with strides.
619 * f-lang.c (value_f90_subarray): Catch use of array strides and
620 throw an error.
621 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
622
f2d8e4c5
AB
6232020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * expprint.c (print_subexp_standard): Change enum range_type to
626 range_flag and rename variables to match.
627 (dump_subexp_body_standard): Likewise.
628 * expression.h (enum range_type): Rename to...
629 (enum range_flag): ...this.
630 (range_types): Rename to...
631 (range_flags): ...this.
632 * f-lang.c (value_f90_subarray): Change enum range_type to
633 range_flag and rename variables to match.
634 * parse.c (operator_length_standard): Likewise.
635 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
636 range_type to range_flag.
637 * rust-lang.c (rust_evaluate_funcall): Likewise.
638 (rust_range): Likewise.
639 (rust_compute_range): Likewise.
640 (rust_subscript): Likewise.
641
2f1b18db
AB
6422020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * expprint.c (print_subexp_standard): Update to reflect changes to
645 enum range_type.
646 (dump_subexp_body_standard): Likewise.
647 * expression.h (enum range_type): Convert to a bit field enum, and
648 make the enum unsigned.
649 * f-exp.y (subrange): Update to reflect changes to enum
650 range_type.
651 * f-lang.c (value_f90_subarray): Likewise.
652 * parse.c (operator_length_standard): Likewise.
653 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
654 * rust-lang.c (rust_range): Likewise.
655 (rust_compute_range): Likewise.
656 (rust_subscript): Likewise.
657
a46d1843
SM
6582020-10-21 Simon Marchi <simon.marchi@efficios.com>
659
660 * infrun.c (displaced_step_in_progress_thread): Fix comment.
661 (displaced_step_in_progress): Fix comment.
662
c21f37a8
SM
6632020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
664
665 * gdbarch.sh (make_corefile_notes): Return unique pointer.
666 * gdbarch.c: Re-generate.
667 * gdbarch.h: Re-generate.
668 * gcore.c (write_gcore_file_1): Adjust.
669 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
670 constructor.
671 <note_data>: Change type to unique pointer.
672 <abort_iteration>: Change type to bool.
673 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
674 (fbsd_collect_thread_registers): Return void, adjust.
675 (struct fbsd_corefile_thread_data): Add construtor.
676 <note_data>: Change type to unique pointer.
677 (fbsd_corefile_thread): Adjust.
678 (fbsd_make_corefile_notes): Return unique pointer, adjust.
679 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
680 to unique pointer, adjust.
681 (struct linux_collect_regset_section_cb_data): Add constructor.
682 <note_data>: Change type to unique pointer.
683 <abort_iteration>: Change type to bool.
684 (linux_collect_thread_registers): Return void, adjust.
685 (struct linux_corefile_thread_data): Add constructor.
686 <note_data>: Change type to unique pointer.
687 (linux_corefile_thread): Adjust.
688 (linux_make_corefile_notes): Return unique pointer, adjust.
689
07fbbd01
SM
6902020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
693 * gdbarch.c: Re-generate.
694 * gdbarch.h: Re-generate.
695 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
696 bool.
697 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
698 Likewise.
699 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
700 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
701 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
702 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
703
39535193
SM
7042020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * gdbarch.sh: Make generated predicates return bool.
707 * gdbarch.c: Re-generate.
708 * gdbarch.h: Re-generate.
709
ad523d01
TT
7102020-10-20 Tom Tromey <tom@tromey.com>
711
712 * varobj-iter.h (struct varobj_item): Remove typedef.
713
c4464ade
SM
7142020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
715
716 * infrun.c (currently_stepping): Change int to bool
717 (maybe_software_singlestep): Likewise.
718 (show_stop_on_solib_events): Likewise.
719 (stepping_past_nonsteppable_watchpoint): Likewise.
720 (displaced_step_in_progress_any_inferior): Likewise.
721 (displaced_step_in_progress_thread): Likewise.
722 (keep_going_stepped_thread): Likewise.
723 (thread_still_needs_step_over): Likewise.
724 (start_step_over): Likewise.
725 (do_target_resume): Likewise.
726 (resume_1): Likewise.
727 (clear_proceed_status): Likewise.
728 (thread_still_needs_step_over_bp): Likewise.
729 (proceed): Likewise.
730 (switch_back_to_stepped_thread): Likewise.
731 (adjust_pc_after_break): Likewise.
732 (stepped_in_from): Likewise.
733 (handle_stop_requested): Likewise.
734 (handle_syscall_event): Likewise.
735 (handle_no_resumed): Likewise.
736 (handle_inferior_event): Likewise.
737 (finish_step_over): Likewise.
738 (handle_signal_stop): Likewise.
739 (process_event_stop_test): Likewise.
740
2eb20436
SM
7412020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
742
743 * infrun.c (get_displaced_stepping_state): Fix comment.
744
e0c45ded
AS
7452020-10-20 Andreas Schwab <schwab@linux-m68k.org>
746
747 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
748
22cc388e
TT
7492020-10-19 Tom Tromey <tromey@adacore.com>
750
751 PR tui/26719
752 * tui/tui-winsource.h (struct tui_source_window_base)
753 <refresh_window>: Rename from refresh_pad.
754 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
755 Rename from refresh_pad.
756 (tui_source_window_base::show_source_content)
757 (tui_source_window_base::do_scroll_horizontal): Update.
758
3c6eb4d4
TBA
7592020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
760
761 * thread.c (_initialize_thread): Fine-tune the help text of
762 'info threads'.
763
26703721
TBA
7642020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
765
766 * frame.c: Remove the unused 'uinteger_option_def' type alias.
767
61c26be8
MS
7682020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
769
770 * breakpoint.c (handle_jit_event): Add an argument, change how
771 `jit_event_handler` is called.
772
932539d7
TT
7732020-10-17 Tom Tromey <tom@tromey.com>
774
775 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
776 (scan_xcoff_symtab): Update.
777 * psymtab.h (class psymtab_storage) <global_psymbols,
778 static_psymbols, current_global_psymbols,
779 current_static_psymbols>: Remove.
780 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
781 (match_partial_symbol, lookup_partial_symbol): Update.
782 (print_partial_symbols): Change parameters.
783 (dump_psymtab, recursively_search_psymtabs)
784 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
785 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
786 (concat): Remove.
787 (end_psymtab_common): Simplify.
788 (append_psymbol_to_list): Change parameters.
789 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
790 (init_psymbol_list): Simplify.
791 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
792 * psympriv.h (struct partial_symtab) <empty>: New method.
793 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
794 Remove.
795 <global_psymbols, static_psymbols>: New members.
796 <add_psymbol>: New methods.
797 (add_psymbol_to_list): Don't declare.
798 (psymbol_placement): Move earlier.
799 * mdebugread.c (parse_partial_symbols): Update.
800 (handle_psymbol_enumerators): Change parameters.
801 (mdebug_expand_psymtab): Update.
802 * dwarf2/read.c (process_psymtab_comp_unit_reader)
803 (add_partial_symbol): Update.
804 * dwarf2/index-write.c (write_psymbols): Change parameters.
805 (write_one_signatured_type): Update.
806 (recursively_count_psymbols): Update.
807 (recursively_write_psymbols): Update.
808 (class debug_names) <recursively_write_psymbols>: Update.
809 <write_psymbols>: Change parameters.
810 <write_one_signatured_type>: Update.
811 * dbxread.c (read_dbx_symtab): Update.
812 (dbx_end_psymtab): Use partial_symtab::empty.
813 * ctfread.c (struct ctf_context) <pst>: New member.
814 (create_partial_symtab): Set it.
815 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
816 (scan_partial_symbols): Use the psymtab's context. Update.
817
cfabbd35
TT
8182020-10-17 Tom Tromey <tom@tromey.com>
819
820 * valprint.c (generic_value_print): Remove comment.
821 * m2-valprint.c (m2_value_print_inner): Remove comment.
822 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
823 type.
824
520596f2
TV
8252020-10-17 Tom de Vries <tdevries@suse.de>
826
827 PR symtab/26317
828 * source.c (select_source_symtab): Handling sal.symtab == NULL for
829 symbol main.
830
76547ab3
TV
8312020-10-14 Tom de Vries <tdevries@suse.de>
832
833 PR gdb/26733
834 * solib.c (solib_contains_address_p): Handle
835 'solib->sections == nullptr'.
836
d3a07122
SM
8372020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
838
839 PR gdb/26642
840 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
841 target can't do async.
842 * target.c (target_wait): Assert that we don't pass
843 TARGET_WNOHANG to a target that can't async.
844
1b71cfcf
KR
8452020-10-13 Kamil Rytarowski <n54@gmx.com>
846
847 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
848 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
849 * alpha-bsd-nat.c: Adjust include.
850 * alpha-bsd-tdep.h: Adjust comment.
851 * alpha-nbsd-tdep.c: Rename to ...
852 * alpha-netbsd-tdep.c: ... this, adjust include.
853 * amd64-nbsd-nat.c: Rename to ...
854 * amd64-netbsd-nat.c: ... this, adjust include.
855 * amd64-nbsd-tdep.c: Rename to ...
856 * amd64-netbsd-tdep.c: ... this, adjust include.
857 * amd64-tdep.h: Adjust include.
858 * arm-nbsd-nat.c: Rename to ...
859 * arm-netbsd-nat.c: ... this, adjust include.
860 * arm-nbsd-tdep.c: Rename to ...
861 * arm-netbsd-tdep.c: ... this, adjust include.
862 * arm-nbsd-tdep.h: Rename to ...
863 * arm-netbsd-tdep.h: ... this, adjust include.
864 * configure.nat: Adjust file lists.
865 * configure.tgt: Likewise.
866 * hppa-nbsd-nat.c: Rename to ...
867 * hppa-netbsd-nat.c: ... this, adjust include.
868 * hppa-nbsd-tdep.c: Rename to ...
869 * hppa-netbsd-tdep.c: ... this, adjust include.
870 * i386-nbsd-nat.c: Rename to ...
871 * i386-netbsd-nat.c: ... this, adjust include.
872 * i386-nbsd-tdep.c: Rename to ...
873 * i386-netbsd-tdep.c: ... this, adjust include.
874 * m68k-bsd-nat.c: Adjust include.
875 * mips-nbsd-nat.c: Rename to ...
876 * mips-netbsd-nat.c: ... this, adjust include.
877 * mips-nbsd-tdep.c: Rename to ...
878 * mips-netbsd-tdep.c: ... this, adjust include.
879 * mips-nbsd-tdep.h: Rename to ...
880 * mips-netbsd-tdep.h: ... this.
881 * nbsd-nat.c: Rename to ...
882 * netbsd-nat.c: ... this, adjust include.
883 * nbsd-nat.h: Rename to ...
884 * netbsd-nat.h: ... this, adjust include.
885 * nbsd-tdep.c: Rename to ...
886 * netbsd-tdep.c: ... this, adjust include.
887 * nbsd-tdep.h: Rename to ...
888 * netbsd-tdep.h: ... this.
889 * ppc-nbsd-nat.c: Rename to ...
890 * ppc-netbsd-nat.c: ... this, adjust include.
891 * ppc-nbsd-tdep.c: Rename to ...
892 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
893 * ppc-nbsd-tdep.h: Rename to ...
894 * ppc-netbsd-tdep.h: ... this.
895 * sh-nbsd-nat.c: Rename to ...
896 * sh-netbsd-nat.c: ... this, adjust include.
897 * sh-nbsd-tdep.c: Rename to ...
898 * sh-netbsd-tdep.c: ... this, adjust include.
899 * sparc-nbsd-nat.c: Rename to ...
900 * sparc-netbsd-nat.c: ... this.
901 * sparc-nbsd-tdep.c: Rename to ...
902 * sparc-netbsd-tdep.c: ... this, adjust include.
903 * sparc64-nbsd-nat.c: Rename to ...
904 * sparc64-netbsd-nat.c: ... this.
905 * sparc64-nbsd-tdep.c: Rename to ...
906 * sparc64-netbsd-tdep.c: ... this, adjust include.
907 * sparc64-tdep.h: Adjust comment.
908 * vax-bsd-nat.c: Adjust include.
909 * vax-nbsd-tdep.c: Rename to ...
910 * vax-netbsd-tdep.c: ... this, adjust include.
911
d7a78e5c
TT
9122020-10-12 Tom Tromey <tom@tromey.com>
913
914 * target.h (struct target_ops) <get_section_table>: Update.
915 (target_get_section_table): Update.
916 * target.c (target_get_section_table, target_section_by_addr)
917 (memory_xfer_partial_1): Update.
918 * target-section.h (target_section_table): Now an alias.
919 * target-delegates.c: Rebuild.
920 * target-debug.h (target_debug_print_target_section_table_p):
921 Rename from target_debug_print_struct_target_section_table_p.
922 * symfile.c (build_section_addr_info_from_section_table): Update.
923 * solib.c (solib_map_sections, solib_contains_address_p): Update.
924 * solib-svr4.c (scan_dyntag): Update.
925 * solib-dsbt.c (scan_dyntag): Update.
926 * remote.c (remote_target::remote_xfer_live_readonly_partial):
927 Update.
928 * record-full.c (record_full_core_target::xfer_partial): Update.
929 * progspace.h (struct program_space) <target_sections>: Update.
930 * exec.h (print_section_info): Update.
931 * exec.c (exec_target::close, build_section_table)
932 (add_target_sections, add_target_sections_of_objfile)
933 (remove_target_sections, exec_on_vfork)
934 (section_table_available_memory)
935 (section_table_xfer_memory_partial)
936 (exec_target::get_section_table, exec_target::xfer_partial)
937 (print_section_info, set_section_command)
938 (exec_set_section_address, exec_target::has_memory): Update.
939 * corelow.c (core_target::build_file_mappings)
940 (core_target::xfer_partial, core_target::info_proc_mappings)
941 (core_target::info_proc_mappings): Update.
942 * bfd-target.c (class target_bfd): Update
943
eda214ce
TT
9442020-10-12 Tom Tromey <tom@tromey.com>
945
946 * progspace.c (program_space::~program_space): Don't call
947 clear_section_table.
948 * exec.h (clear_section_table): Don't declare.
949 * exec.c (exec_target::close): Update.
950 (clear_section_table): Remove.
951
91840ee3
TT
9522020-10-12 Tom Tromey <tom@tromey.com>
953
954 * exec.c (add_target_sections_of_objfile): Simplify.
955
2d128614
TT
9562020-10-12 Tom Tromey <tom@tromey.com>
957
958 * solib.c (solib_map_sections): Update.
959 * record-full.c (record_full_core_open_1): Update.
960 * exec.h (build_section_table): Return a target_section_table.
961 * exec.c (exec_file_attach): Update.
962 (build_section_table): Return a target_section_table.
963 * corelow.c (core_target::core_target): Update.
964 * bfd-target.c (target_bfd::target_bfd): Update.
965
bb2a6777
TT
9662020-10-12 Tom Tromey <tom@tromey.com>
967
968 * target.c (target_section_by_addr, memory_xfer_partial_1):
969 Update.
970 * target-section.h (struct target_section_table): Use
971 std::vector.
972 * symfile.h (build_section_addr_info_from_section_table): Take a
973 target_section_table.
974 * symfile.c (build_section_addr_info_from_section_table): Take a
975 target_section_table.
976 * solist.h (struct so_list) <sections>: Change type.
977 <sections_end>: Remove.
978 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
979 (solib_contains_address_p): Update.
980 * solib-svr4.c (scan_dyntag): Update.
981 * solib-dsbt.c (scan_dyntag): Update.
982 * remote.c (remote_target::remote_xfer_live_readonly_partial):
983 Update.
984 * record-full.c (record_full_core_start, record_full_core_end):
985 Remove.
986 (record_full_core_sections): New global.
987 (record_full_core_open_1, record_full_core_target::xfer_partial):
988 Update.
989 * exec.h (build_section_table, section_table_xfer_memory_partial)
990 (add_target_sections): Take a target_section_table.
991 * exec.c (exec_file_attach, clear_section_table): Update.
992 (resize_section_table): Remove.
993 (build_section_table, add_target_sections): Take a
994 target_section_table.
995 (add_target_sections_of_objfile, remove_target_sections)
996 (exec_on_vfork): Update.
997 (section_table_available_memory): Take a target_section_table.
998 (section_table_read_available_memory): Update.
999 (section_table_xfer_memory_partial): Take a target_section_table.
1000 (print_section_info, set_section_command)
1001 (exec_set_section_address, exec_target::has_memory): Update.
1002 * corelow.c (class core_target) <m_core_section_table,
1003 m_core_file_mappings>: Remove braces.
1004 <~core_target>: Remove.
1005 (core_target::core_target): Update.
1006 (core_target::~core_target): Remove.
1007 (core_target::build_file_mappings)
1008 (core_target::xfer_memory_via_mappings)
1009 (core_target::xfer_partial, core_target::info_proc_mappings):
1010 Update.
1011 * bfd-target.c (target_bfd::xfer_partial): Update.
1012 (target_bfd::target_bfd): Update.
1013 (target_bfd::~target_bfd): Remove.
1014
7b466b10
TT
10152020-10-12 Tom Tromey <tom@tromey.com>
1016
1017 * target.h (struct target_section, struct target_section_table):
1018 Move to target-section.h.
1019 * target-section.h: New file.
1020
87a37e5e
PA
10212020-10-12 Pedro Alves <pedro@palves.net>
1022
1023 PR exp/26602
1024 * valops.c (struct struct_field_searcher): New.
1025 (update_search_result): Rename to ...
1026 (struct_field_searcher::update_result): ... this. Simplify
1027 prototype. Record all found fields.
1028 (do_search_struct_field): Rename to ...
1029 (struct_field_searcher::search): ... this. Simplify prototype.
1030 Maintain stack of visited baseclass path. Call update_result for
1031 fields too. Keep searching fields in baseclasses instead of
1032 stopping at the first found field.
1033 (search_struct_field): Use struct_field_searcher. When looking
1034 for fields, report ambiguous access attempts.
1035
9370fd51
AB
10362020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * frame.c (inside_main_func): Check full symbols as well as
1039 minimal symbols.
1040
59c8a30b
JB
10412020-10-09 Joel Brobecker <brobecker@adacore.com>
1042
1043 * ada-lang.c (advance_wild_match): Rewrite the function's
1044 description. Change the type of target0, t0 and t1 to char.
1045
7c184d33
TT
10462020-10-09 Tom Tromey <tromey@adacore.com>
1047
1048 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1049
5c4258f4
TT
10502020-10-09 Tom Tromey <tromey@adacore.com>
1051
1052 * ada-lang.h (ada_encode): Return std::string.
1053 * ada-lang.c (ada_encode_1): Return std::string.
1054 (ada_encode): Likewise.
1055 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1056 Update.
1057 * ada-exp.y (block_lookup, write_var_or_type): Update.
1058
3d87245c
HD
10592020-10-09 Hannes Domani <ssbssa@yahoo.de>
1060
1061 PR exp/26714
1062 * printcmd.c (print_formatted): Handle void results as
1063 unformatted prints.
1064
bbb826f5
AB
10652020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1066
1067 * arch/aarch32.c (aarch32_create_target_description): Release the
1068 target_desc_up as late as possible.
1069 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1070 * arch/amd64.c (amd64_create_target_description): Likewise.
1071 * arch/arc.c (arc_create_target_description): Return a
1072 target_desc_up, don't release it.
1073 * arch/arc.h (arc_create_target_description): Update declaration.
1074 (arc_lookup_target_description): Move target_desc_up into the
1075 cache, and return a borrowed pointer.
1076 * arch/arm.c (arm_create_target_description): Release the
1077 target_desc_up as late as possible.
1078 * arch/i386.c (i386_create_target_description): Likewise.
1079 * arch/riscv.h (riscv_create_target_description): Update
1080 declaration to match definition.
1081 * arch/tic6x.c (tic6x_create_target_description): Release the
1082 target_desc_up as late as possible.
1083
361cb219
AB
10842020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1087 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1088
f5c4b229
JV
10892020-10-09 Jan Vrany <jan.vrany@labware.com>
1090
1091 * source.c (directory_command): Notify observers that "directories"
1092 parameter has changed.
1093
b2701685
TT
10942020-10-08 Tom Tromey <tom@tromey.com>
1095
1096 * cli/cli-cmds.c (print_disassembly): Style function name and
1097 addresses. Add _() wrappers.
1098
ada508b6
SV
10992020-10-08 Shahab Vahedi <shahab@synopsys.com>
1100
1101 * NEWS: Mention ARC support in GDBserver.
1102
51a948fd
AB
11032020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1104
1105 * arch/aarch32.c (aarch32_create_target_description): Release
1106 unique_ptr returned from allocate_target_description.
1107 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1108 * arch/amd64.c (amd64_create_target_description): Likewise.
1109 * arch/arc.c (arc_create_target_description): Likewise.
1110 * arch/arm.c (arm_create_target_description): Likewise.
1111 * arch/i386.c (i386_create_target_description): Likewise.
1112 * arch/riscv.c (riscv_create_target_description): Update return
1113 type. Handle allocate_target_description returning a unique_ptr.
1114 (riscv_lookup_target_description): Update to handle unique_ptr.
1115 * arch/tic6x.c (tic6x_create_target_description): Release
1116 unique_ptr returned from allocate_target_description.
1117 * features/microblaze-with-stack-protect.c: Regenerate.
1118 * features/microblaze.c: Regenerate.
1119 * features/mips-dsp-linux.c: Regenerate.
1120 * features/mips-linux.c: Regenerate.
1121 * features/mips64-dsp-linux.c: Regenerate.
1122 * features/mips64-linux.c: Regenerate.
1123 * features/nds32.c: Regenerate.
1124 * features/nios2.c: Regenerate.
1125 * features/or1k.c: Regenerate.
1126 * features/rs6000/powerpc-32.c: Regenerate.
1127 * features/rs6000/powerpc-32l.c: Regenerate.
1128 * features/rs6000/powerpc-403.c: Regenerate.
1129 * features/rs6000/powerpc-403gc.c: Regenerate.
1130 * features/rs6000/powerpc-405.c: Regenerate.
1131 * features/rs6000/powerpc-505.c: Regenerate.
1132 * features/rs6000/powerpc-601.c: Regenerate.
1133 * features/rs6000/powerpc-602.c: Regenerate.
1134 * features/rs6000/powerpc-603.c: Regenerate.
1135 * features/rs6000/powerpc-604.c: Regenerate.
1136 * features/rs6000/powerpc-64.c: Regenerate.
1137 * features/rs6000/powerpc-64l.c: Regenerate.
1138 * features/rs6000/powerpc-7400.c: Regenerate.
1139 * features/rs6000/powerpc-750.c: Regenerate.
1140 * features/rs6000/powerpc-860.c: Regenerate.
1141 * features/rs6000/powerpc-altivec32.c: Regenerate.
1142 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1143 * features/rs6000/powerpc-altivec64.c: Regenerate.
1144 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1145 * features/rs6000/powerpc-e500.c: Regenerate.
1146 * features/rs6000/powerpc-e500l.c: Regenerate.
1147 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1148 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1149 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1150 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1151 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1152 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1153 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1154 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1155 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1156 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1157 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1158 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1159 * features/rs6000/powerpc-vsx32.c: Regenerate.
1160 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1161 * features/rs6000/powerpc-vsx64.c: Regenerate.
1162 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1163 * features/rs6000/rs6000.c: Regenerate.
1164 * features/rx.c: Regenerate.
1165 * features/s390-gs-linux64.c: Regenerate.
1166 * features/s390-linux32.c: Regenerate.
1167 * features/s390-linux32v1.c: Regenerate.
1168 * features/s390-linux32v2.c: Regenerate.
1169 * features/s390-linux64.c: Regenerate.
1170 * features/s390-linux64v1.c: Regenerate.
1171 * features/s390-linux64v2.c: Regenerate.
1172 * features/s390-te-linux64.c: Regenerate.
1173 * features/s390-tevx-linux64.c: Regenerate.
1174 * features/s390-vx-linux64.c: Regenerate.
1175 * features/s390x-gs-linux64.c: Regenerate.
1176 * features/s390x-linux64.c: Regenerate.
1177 * features/s390x-linux64v1.c: Regenerate.
1178 * features/s390x-linux64v2.c: Regenerate.
1179 * features/s390x-te-linux64.c: Regenerate.
1180 * features/s390x-tevx-linux64.c: Regenerate.
1181 * features/s390x-vx-linux64.c: Regenerate.
1182 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1183 from allocate_target_description.
1184 * target-descriptions.c (allocate_target_description): Update
1185 return type.
1186 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1187 allocate_target_description.
1188
485c47e5
TT
11892020-10-07 Tom Tromey <tromey@adacore.com>
1190
1191 * unittests/search-memory-selftests.c: New file.
1192 * Makefile.in (SELFTESTS_SRCS): Add
1193 unittests/search-memory-selftests.c.
1194
3a135a91
TT
11952020-10-07 Tom Tromey <tromey@adacore.com>
1196
1197 PR gdb/16930:
1198 * findcmd.c (_initialize_mem_search): Mention that the range is
1199 inclusive.
1200
4a72de73
TT
12012020-10-07 Tom Tromey <tromey@adacore.com>
1202
1203 * target.h (simple_search_memory): Don't declare.
1204 * target.c (simple_search_memory): Move to gdbsupport.
1205 (default_search_memory): Update.
1206 * remote.c (remote_target::search_memory): Update.
1207
a038ffd8
SM
12082020-10-07 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * Makefile.in (COMPILE): Add CXXFLAGS.
1211 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1212 (check-headers): Add CXXFLAGS.
1213
cc463201
AK
12142020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1215
1216 * arc-linux-tdep.h: New file.
1217 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1218 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1219 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1220 arc_linux_gregset, arc_linux_v2_regset,
1221 arc_linux_iterate_over_regset_sections,
1222 arc_linux_core_read_description): Implement.
1223 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1224 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1225 (arc_gdbarch_features_create): Add.
1226 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1227
e4bd363f
SV
12282020-10-07 Shahab Vahedi <shahab@synopsys.com>
1229
1230 * arch/arc.h: Rename "arc_gdbarch_features" to
1231 "arc_arch_features".
1232 * arc-tdep.h: Likewise.
1233 * arc-tdep.c: Likewise.
1234
b68bef99
TBA
12352020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1236
1237 * infcmd.c (attach_command): Remove the redundant call to
1238 `clear_proceed_status`.
1239
4641551a
KR
12402020-10-07 Kamil Rytarowski <n54@gmx.com>
1241
1242 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1243
91e5e8db
KR
12442020-10-07 Kamil Rytarowski <n54@gmx.com>
1245
1246 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1247 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1248 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1249
64c03bdb
SM
12502020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1251
1252 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1253 (_initialize_break_catch_sig): Don't allocate array.
1254
31a8f60f
AB
12552020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1256
1257 * symtab.c (find_pc_line): Return unmapped addresses when the
1258 requested address is also unmapped.
1259
9e6dbd8b
SM
12602020-10-05 Simon Marchi <simon.marchi@efficios.com>
1261
1262 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1263 tui/tui-out.h.
1264
a1d217e8
SM
12652020-10-05 Simon Marchi <simon.marchi@efficios.com>
1266
1267 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1268 type::is_vector instead of TYPE_VECTOR.
1269
7d144117
SM
12702020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * auto-load.c (auto_load_objfile_script_1): Don't use
1273 debugfile_holder as temporary variable when stripping drive
1274 letter.
1275
cd096ec8
HD
12762020-10-05 Hannes Domani <ssbssa@yahoo.de>
1277
1278 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1279 Add TYPE_CODE_COMPLEX.
1280 (amd64_windows_return_value): Fix types returned via XMM0.
1281
b58e7f72
AH
12822020-10-05 Alan Hayward <alan.hayward@arm.com>
1283
1284 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1285 AArch64/ARM maintainers.
1286
8d378f27
SM
12872020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1288
1289 * NEWS: Mention set/show debug event-loop.
1290
d5519913
TT
12912020-10-02 Tom Tromey <tromey@adacore.com>
1292
1293 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1294 REG_EXTENDED.
1295
18b67edc
SM
12962020-10-02 Simon Marchi <simon.marchi@efficios.com>
1297
1298 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1299 * procfs.c (procfs_inferior_created): Remove.
1300 (_initialize_procfs): Don't register procfs_inferior_created.
1301
6b01403b
SM
13022020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1303
1304 * async-event.c (invoke_async_signal_handlers): Add debug
1305 print.
1306 (check_async_event_handlers): Likewise.
1307 * event-top.c (show_debug_event_loop): New function.
1308 (_initialize_event_top): Register "set debug event-loop"
1309 setting.
1310
ba988419
SM
13112020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1312
1313 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1314 * debug.h: Remove.
1315 * infrun.c: Include gdbsupport/common-debug.h.
1316 * linux-nat.c: Likewise.
1317
db20ebdf
SM
13182020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1319
1320 * async-event.h (create_async_signal_handler): Add name
1321 parameter.
1322 (create_async_event_handler): Likewise.
1323 * async-event.c (struct async_signal_handler) <name>: New field.
1324 (struct async_event_handler) <name>: New field.
1325 (create_async_signal_handler): Assign name.
1326 (create_async_event_handler): Assign name.
1327 * event-top.c (async_init_signals): Pass name when creating
1328 handler.
1329 * infrun.c (_initialize_infrun): Likewise.
1330 * record-btrace.c (record_btrace_push_target): Likewise.
1331 * record-full.c (record_full_open): Likewise.
1332 * remote-notif.c (remote_notif_state_allocate): Likewise.
1333 * remote.c (remote_target::open_1): Likewise.
1334 * tui/tui-win.c (tui_initialize_win): Likewise.
1335
2554f6f5
SM
13362020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * async-event.c (initialize_async_signal_handlers): Pass name to
1339 add_file_handler
1340 * event-top.c (ui_register_input_event_handler): Likewise.
1341 * linux-nat.c (linux_nat_target::async): Likewise.
1342 * run-on-main-thread.c (_initialize_run_on_main_thread):
1343 Likewise
1344 * ser-base.c (reschedule): Likewise.
1345 (ser_base_async): Likewise.
1346 * tui/tui-io.c: Likewise.
1347 * top.h (struct ui) <num>: New field.
1348 * top.c (highest_ui_num): New variable.
1349 (ui::ui): Initialize num.
1350
a7aba266
SM
13512020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1352
1353 * observable.h <inferior_created>: Remove parameters. Update all
1354 listeners.
1355 * inferior.h (post_create_inferior): Remove target parameter.
1356 Update all callers.
1357
048fde1e 13582020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1359
1360 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1361 and DW_MACRO_undef_strx.
1362 (dwarf_decode_macros): Likewise
1363 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1364 which is the value of DW_AT_str_offsets_base.
1365 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1366 str_offsets_base.
1367
064280be
KR
13682020-10-01 Kamil Rytarowski <n54@gmx.com>
1369
1370 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1371
6ff33035
KR
13722020-10-01 Kamil Rytarowski <n54@gmx.com>
1373
1374 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1375 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1376
1eb6eb79
KR
13772020-10-01 Kamil Rytarowski <n54@gmx.com>
1378
1379 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1380
95eb9e54
TV
13812020-09-30 Tom de Vries <tdevries@suse.de>
1382
1383 PR symtab/26683
1384 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1385
cae21f8e
TT
13862020-09-30 Tom Tromey <tromey@adacore.com>
1387
1388 * dwarf2/read.c (handle_variant): Use constant_value.
1389
529908cb
TT
13902020-09-29 Tom Tromey <tom@tromey.com>
1391
1392 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1393 (read_file_scope, dwarf2_get_pc_bounds)
1394 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1395 (read_structure_type, handle_struct_member_die)
1396 (read_enumeration_type, read_array_type, read_set_type)
1397 (read_tag_pointer_type, read_tag_reference_type)
1398 (read_subroutine_type, read_base_type, read_subrange_type)
1399 (read_full_die_1, partial_die_info::read)
1400 (partial_die_info::read, by, new_symbol)
1401 (dwarf2_const_value_data, dwarf2_const_value_attr)
1402 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1403 (prepare_one_comp_unit): Update.
1404 * dwarf2/attribute.h (DW_UNSND): Remove.
1405
c45bc3f8
TT
14062020-09-29 Tom Tromey <tom@tromey.com>
1407
1408 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1409 (read_subroutine_type, partial_die_info::read)
1410 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1411 (dwarf2_add_member_fn): Update.
1412 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1413 * dwarf2/attribute.c (attribute::as_boolean): New method.
1414
23dca5c3
TT
14152020-09-29 Tom Tromey <tom@tromey.com>
1416
1417 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1418 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1419 method.
1420 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1421
52c14d11
TT
14222020-09-29 Tom Tromey <tom@tromey.com>
1423
1424 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1425 the attribute's form.
1426
e8e5c158
TT
14272020-09-29 Tom Tromey <tom@tromey.com>
1428
1429 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1430 (dwarf2_add_member_fn): Update.
1431 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1432 * dwarf2/attribute.c (attribute::defaulted): New method, from
1433 is_valid_DW_AT_defaulted.
1434
d4df075e
TT
14352020-09-29 Tom Tromey <tom@tromey.com>
1436
1437 * dwarf2/read.c (dw2_get_file_names_reader)
1438 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1439 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1440 (dwarf2_symbol_mark_computed): Use as_unsigned.
1441 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1442 method.
1443 <form_is_section_offset>: Update comment.
1444
bf23a268
TT
14452020-09-29 Tom Tromey <tom@tromey.com>
1446
1447 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1448 dwarf2_default_access_attribute. Look up attribute.
1449 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1450 Update.
1451
7a5f294d
TT
14522020-09-29 Tom Tromey <tom@tromey.com>
1453
1454 * dwarf2/read.c (skip_one_die): Update.
1455 (read_full_die_1): Change how reprocessing is done.
1456 (partial_die_info::read): Update.
1457 (read_attribute_value): Remove need_reprocess parameter.
1458 (read_attribute): Likewise.
1459 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1460 New method.
1461
36d378cf
TT
14622020-09-29 Tom Tromey <tom@tromey.com>
1463
1464 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1465 (dwarf2_const_value_attr, dump_die_shallow)
1466 (dwarf2_fetch_constant_bytes): Update.
1467 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1468 comment.
1469 <set_address>: New method.
1470 (DW_ADDR): Remove.
1471 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1472 (attribute::as_string, attribute::as_address): Add assert.
1473
fe56917a
TT
14742020-09-29 Tom Tromey <tom@tromey.com>
1475
1476 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1477 (read_attribute_reprocess, read_attribute_value): Update.
1478 (read_attribute): Clear requires_reprocessing.
1479 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1480 form_requires_reprocessing>: New methods.
1481 <string_init>: Clear requires_reprocessing.
1482 <set_unsigned_reprocess>: New method.
1483 <name>: Shrink by one bit.
1484 <requires_reprocessing>: New member.
1485 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1486 method.
1487
414ad644
TT
14882020-09-29 Tom Tromey <tom@tromey.com>
1489
1490 * dwarf2/read.c (read_attribute_value): Update.
1491 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1492 set_unsigned>: New methods.
1493 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1494
1bc397c5
TT
14952020-09-29 Tom Tromey <tom@tromey.com>
1496
1497 * dwarf2/read.c (get_alignment, read_array_order)
1498 (read_attribute_value, dwarf2_const_value_attr)
1499 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1500 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1501 New methods.
1502 (DW_SND): Remove.
1503
630ed6b9
TT
15042020-09-29 Tom Tromey <tom@tromey.com>
1505
1506 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1507 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1508 Update.
1509 * dwarf2/attribute.h (struct attribute) <as_signature,
1510 set_signature>: New methods.
1511 (DW_SIGNATURE): Remove.
1512
9d2246fc
TT
15132020-09-29 Tom Tromey <tom@tromey.com>
1514
1515 * dwarf2/read.c (read_call_site_scope)
1516 (handle_data_member_location, dwarf2_add_member_fn)
1517 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1518 (partial_die_info::read, read_attribute_value)
1519 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1520 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1521 (dwarf2_symbol_mark_computed): Update.
1522 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1523 methods.
1524 (DW_BLOCK): Remove.
1525 * dwarf2/attribute.c (attribute::form_is_block): Add
1526 DW_FORM_data16.
1527
c6481205
TT
15282020-09-29 Tom Tromey <tom@tromey.com>
1529
1530 * dwarf2/read.c (read_cutu_die_from_dwo)
1531 (read_attribute_reprocess, read_attribute_value, read_attribute)
1532 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1533 (dwarf2_fetch_constant_bytes): Update.
1534 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1535 <set_string_noncanonical, set_string_canonical>: New methods.
1536 <string_is_canonical>: Update comment.
1537 <canonical_string_p>: Add assert.
1538 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1539 * dwarf2/attribute.c (attribute::form_is_string): New method.
1540 (attribute::string): Use it.
1541
3b64bf15
TT
15422020-09-29 Tom Tromey <tom@tromey.com>
1543
1544 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1545 (dump_die_shallow): Use canonical_string_p.
1546 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1547 method.
1548
2c830f54
TT
15492020-09-29 Tom Tromey <tom@tromey.com>
1550
1551 * dwarf2/read.c (partial_die_info::read)
1552 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1553 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1554 attribute::as_string.
1555
6c412691
TT
15562020-09-29 Tom Tromey <tom@tromey.com>
1557
1558 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1559 DW_ADDR.
1560 (attribute::string): Don't use DW_STRING.
1561 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1562 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1563
95f982e5
TT
15642020-09-29 Tom Tromey <tom@tromey.com>
1565
1566 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1567 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1568 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1569 * dwarf2/attribute.h (struct attribute): Rename methods.
1570 * dwarf2/attribute.c (attribute::as_address): Rename from
1571 value_as_address.
1572 (attribute::as_string): Rename from value_as_string.
1573
f800b00e
TT
15742020-09-29 Tom Tromey <tom@tromey.com>
1575
1576 * dwarf2/read.c (partial_die_info::read) <case
1577 DW_AT_linkage_name>: Use value_as_string.
1578 (dwarf2_string_attr): Use value_as_string.
1579 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1580 method.
1581 * dwarf2/attribute.c (attribute::value_as_string): New method.
1582
de38d64a
PA
15832020-09-29 Pedro Alves <pedro@palves.net>
1584
1585 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1586 defined before using '#pragma GCC diagnostic' instead of checking
1587 __clang__.
1588
9aed480c
TT
15892020-09-28 Tom Tromey <tom@tromey.com>
1590
1591 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1592 (handle_signal_stop): Update.
1593 * procfs.c (procfs_target::insert_watchpoint): Update.
1594 * target.h (target_have_steppable_watchpoint): Now a function.
1595
8a3ecb79
TT
15962020-09-28 Tom Tromey <tom@tromey.com>
1597
1598 * infrun.c (set_schedlock_func): Update.
1599 * target.h (target_can_lock_scheduler): Now a function.
1600
55f6301a
TT
16012020-09-28 Tom Tromey <tom@tromey.com>
1602
1603 * inferior.h (class inferior) <has_execution>: Update.
1604 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1605 * valops.c (find_function_in_inferior)
1606 (value_allocate_space_in_inferior): Update.
1607 * top.c (kill_or_detach): Update.
1608 * target.c (target_preopen, set_target_permissions): Update.
1609 (target_has_execution_current): Remove.
1610 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1611 Update.
1612 * solib.c (update_solib_list, reload_shared_libraries): Update.
1613 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1614 * solib-dsbt.c (enable_break): Update.
1615 * score-tdep.c (score7_fetch_inst): Update.
1616 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1617 Update.
1618 * remote.c (remote_target::start_remote)
1619 (remote_target::remote_check_symbols, remote_target::open_1)
1620 (remote_target::remote_detach_1, remote_target::verify_memory)
1621 (remote_target::xfer_partial, remote_target::read_description)
1622 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1623 * record-full.c (record_full_open_1): Update.
1624 * record-btrace.c (record_btrace_target_open): Update.
1625 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1626 (value_nsstring): Update.
1627 * linux-thread-db.c (add_thread_db_info)
1628 (thread_db_find_new_threads_silently, check_thread_db_callback)
1629 (try_thread_db_load_1, record_thread): Update.
1630 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1631 Update.
1632 * linux-fork.c (checkpoint_command): Update.
1633 * infrun.c (set_non_stop, set_observer_mode)
1634 (check_multi_target_resumption, for_each_just_stopped_thread)
1635 (maybe_remove_breakpoints, normal_stop)
1636 (class infcall_suspend_state): Update.
1637 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1638 (info_program_command, attach_command): Update.
1639 * infcall.c (call_function_by_hand_dummy): Update.
1640 * inf-loop.c (inferior_event_handler): Update.
1641 * gcore.c (gcore_command, derive_heap_segment): Update.
1642 * exec.c (exec_file_command): Update.
1643 * eval.c (evaluate_subexp): Update.
1644 * compile/compile.c (compile_to_object): Update.
1645 * cli/cli-dump.c (restore_command): Update.
1646 * breakpoint.c (update_watchpoint)
1647 (update_inserted_breakpoint_locations)
1648 (insert_breakpoint_locations, get_bpstat_thread): Update.
1649 * target.h (target_has_execution): Remove macro.
1650 (target_has_execution_current): Don't declare.
1651 (target_has_execution): Rename from target_has_execution_1. Add
1652 argument default.
1653
05374cfd
TT
16542020-09-28 Tom Tromey <tom@tromey.com>
1655
1656 * mi/mi-main.c (exec_reverse_continue)
1657 (mi_cmd_list_target_features): Update.
1658 * infrun.c (set_exec_direction_func): Update.
1659 * target.c (default_execution_direction): Update.
1660 * reverse.c (exec_reverse_once): Update.
1661 * target.h (target_can_execute_reverse): Now a function.
1662
9dccd06e
TT
16632020-09-28 Tom Tromey <tom@tromey.com>
1664
1665 * tui/tui-regs.c (tui_get_register)
1666 (tui_data_window::show_registers): Update.
1667 * thread.c (scoped_restore_current_thread::restore)
1668 (scoped_restore_current_thread::scoped_restore_current_thread):
1669 Update.
1670 * regcache-dump.c (regcache_print): Update.
1671 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1672 Update.
1673 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1674 * mep-tdep.c (current_me_module, current_options): Update.
1675 * linux-thread-db.c (thread_db_load): Update.
1676 * infcmd.c (registers_info, info_vector_command)
1677 (info_float_command): Update.
1678 * ia64-tdep.c (ia64_frame_prev_register)
1679 (ia64_sigtramp_frame_prev_register): Update.
1680 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1681 * gcore.c (derive_stack_segment): Update.
1682 * frame.c (get_current_frame, has_stack_frames): Update.
1683 * findvar.c (language_defn::read_var_value): Update.
1684 * arm-tdep.c (arm_pc_is_thumb): Update.
1685 * target.c (target_has_registers): Rename from
1686 target_has_registers_1.
1687 * target.h (target_has_registers): Remove macro.
1688 (target_has_registers): Rename from target_has_registers_1.
1689
841de120
TT
16902020-09-28 Tom Tromey <tom@tromey.com>
1691
1692 * windows-tdep.c (tlb_make_value): Update.
1693 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1694 * thread.c (scoped_restore_current_thread::restore)
1695 (scoped_restore_current_thread::scoped_restore_current_thread)
1696 (thread_command): Update.
1697 * stack.c (backtrace_command_1, frame_apply_level_command)
1698 (frame_apply_all_command, frame_apply_command): Update.
1699 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1700 Update.
1701 * gcore.c (derive_stack_segment): Update.
1702 * frame.c (get_current_frame, has_stack_frames): Update.
1703 * auxv.c (info_auxv_command): Update.
1704 * ada-tasks.c (ada_build_task_list): Update.
1705 * target.c (target_has_stack): Rename from target_has_stack_1.
1706 * target.h (target_has_stack): Remove macro.
1707 (target_has_stack): Rename from target_has_stack_1.
1708
a739972c
TT
17092020-09-28 Tom Tromey <tom@tromey.com>
1710
1711 * target.c (target_has_memory): Rename from target_has_memory_1.
1712 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1713 * thread.c (scoped_restore_current_thread::restore)
1714 (scoped_restore_current_thread::scoped_restore_current_thread):
1715 Update.
1716 * frame.c (get_current_frame, has_stack_frames): Update.
1717 * target.h (target_has_memory): Remove macro.
1718 (target_has_memory): Rename from target_has_memory_1.
1719
5b8a4776
TT
17202020-09-28 Tom Tromey <tom@tromey.com>
1721
1722 * target.c (target_has_all_memory_1): Remove.
1723 * target.h (target_has_all_memory): Remove define.
1724 (target_has_all_memory_1): Don't declare.
1725
bd356ec6
SM
17262020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1727
1728 * ser-base.c: Adjust comments formatting.
1729
2c72d5e5
TT
17302020-09-27 Tom Tromey <tom@tromey.com>
1731
1732 PR tui/25342:
1733 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1734
35a98237
TT
17352020-09-27 Tom Tromey <tom@tromey.com>
1736
1737 PR tui/25342:
1738 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1739
9e820dec
TT
17402020-09-27 Tom Tromey <tom@tromey.com>
1741
1742 * unittests/tui-selftests.c: Update.
1743 * tui/tui-winsource.h (struct tui_source_window_base)
1744 <extra_margin, show_line_number, refresh_pad>: New methods.
1745 <m_max_length, m_pad>: New members.
1746 (tui_copy_source_line): Update.
1747 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1748 first_col, line_width, ndigits parameters. Add length.
1749 (tui_source_window_base::show_source_line): Write to pad. Line
1750 number now 0-based.
1751 (tui_source_window_base::refresh_pad): New method.
1752 (tui_source_window_base::show_source_content): Write to pad. Call
1753 refresh_pad.
1754 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1755 not refill.
1756 (tui_source_window_base::update_exec_info): Call
1757 show_line_number.
1758 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1759 method.
1760 <m_digits>: New member.
1761 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1762 and m_max_length.
1763 (tui_source_window::show_line_number): New method.
1764 * tui/tui-io.h (tui_puts): Fix comment.
1765 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1766 m_max_length.
1767
c15c15c8
TT
17682020-09-27 Tom Tromey <tom@tromey.com>
1769
1770 * tui/tui-winsource.c
1771 (tui_source_window_base::set_is_exec_point_at): Don't call
1772 show_source_line.
1773
149830c1
TT
17742020-09-27 Tom Tromey <tom@tromey.com>
1775
1776 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1777 method.
1778 <erase>: Update.
1779 <cursor_x, cursor_y>: Remove.
1780 <m_inner_window>: New member.
1781 (tui_py_window::rerender): Create inner window.
1782 (tui_py_window::output): Write to inner window.
1783
8f9929bb
GR
17842020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1785
1786 PR python/26586
1787 * cli/cli-script.c (execute_control_commands): don't set
1788 instream to nullptr here as this breaks the from_tty argument
1789 to gdb.execute in Python.
1790 (execute_user_command): set instream to nullptr here instead.
1791
956bdb59
SM
17922020-09-25 Simon Marchi <simon.marchi@efficios.com>
1793
1794 * infrun.h (infrun_debug_printf): Fix formatting.
1795 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1796
3b93626b
SJ
17972020-09-25 Saagar Jha <saagar@saagarjha.com>
1798
1799 * compile/compile-object-load.h (struct munmap_list): Add
1800 explicitly-defined move constructor.
1801
b551a89f
TT
18022020-09-24 Tom Tromey <tromey@adacore.com>
1803
1804 PR tui/26638:
1805 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1806 method.
1807 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1808 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1809 (tui_prev_win): Rewrite.
1810
99bb393f
HD
18112020-09-23 Hannes Domani <ssbssa@yahoo.de>
1812
1813 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1814 in WOW64 processes as SIGINT.
1815 * nat/windows-nat.h: Make wow64_process a shared variable.
1816 * windows-nat.c: Remove static wow64_process variable.
1817
20a5fcbd
TT
18182020-09-23 Tom Tromey <tom@tromey.com>
1819
1820 PR symtab/25470:
1821 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1822 offset and bit size.
1823 * printcmd.c (print_scalar_formatted): Handle zero-length
1824 integer.
1825 (print_scalar_formatted): Use bit_size_differs_p.
1826 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1827 constant.
1828 (union type_specific): <int_stuff>: New member.
1829 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1830 methods.
1831 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1832 TYPE_SPECIFIC_FIELD.
1833 (recursive_dump_type, copy_type_recursive): Update.
1834 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1835 DW_AT_data_bit_offset.
1836
bac51ab7
TT
18372020-09-23 Tom Tromey <tom@tromey.com>
1838
1839 * utils.h (class gdb_argv): Add move operators.
1840 <append>: New methods.
1841 * compile/compile.c (build_argc_argv): Remove.
1842 (compile_args_argc): Remove.
1843 (compile_args_argv): Change type.
1844 (set_compile_args): Simplify.
1845 (append_args): Remove.
1846 (filter_args): Remove argcp parameter.
1847 (get_args): Return gdb_argv. Simplify.
1848 (compile_to_object): Update.
1849
92677124
TT
18502020-09-23 Tom Tromey <tom@tromey.com>
1851
1852 * compile/compile-object-run.c (do_module_cleanup)
1853 <~do_module_cleanup> :Remove.
1854 (do_module_cleanup): Update.
1855 * compile/compile-object-load.h (struct munmap_list): Add move
1856 assignment operator.
1857 <source_file>: Now a std::string.
1858 <munmap_list>: Rename. No longer a pointer.
1859 * compile/compile-object-load.c (struct setup_sections_data): Add
1860 constructor.
1861 <setup_one_section>: Declare.
1862 <munmap_list>: Move earlier.
1863 <m_bfd>: New member.
1864 <m_last_size, m_last_section_first, m_last_prot,
1865 m_last_max_alignment>: Rename, add initializers where needed.
1866 (setup_sections_data::setup_one_section): Rename from
1867 setup_sections. Update.
1868 (compile_object_load): Update. Don't use bfd_map_over_sections.
1869
e616f60a
TT
18702020-09-23 Tom Tromey <tom@tromey.com>
1871
1872 * compile/compile-object-run.c (struct do_module_cleanup): Add
1873 parameters to constructor. Update destructor.
1874 <source_file, scope, scope_data, out_value_type, out_value_addr,
1875 munmap_list_head, objfile_name_string>: Remove.
1876 <module>: New member.
1877 (do_module_cleanup): Update.
1878 (compile_object_run): Update.
1879
e947a848
TT
18802020-09-23 Tom Tromey <tom@tromey.com>
1881
1882 * compile/compile.c (eval_compile_command): Update.
1883 * compile/compile-object-run.h (compile_object_run): Take a
1884 compile_module_up.
1885 * compile/compile-object-run.c (compile_object_run): Take a
1886 compile_module_up.
1887 * compile/compile-object-load.h (struct compile_module): Add
1888 constructor, destructor.
1889 (compile_module_up): New typedef.
1890 (compile_object_load): Return compile_object_up.
1891 * compile/compile-object-load.c (compile_object_load): Return
1892 compile_module_up.
1893
0dbf6ee6
TT
18942020-09-23 Tom Tromey <tom@tromey.com>
1895
1896 * compile/compile-object-run.c (struct do_module_cleanup): Add
1897 constructor, destructor.
1898 <objfile_name_string>: Don't use struct hack.
1899 (do_module_cleanup): Use delete.
1900 (compile_object_run): Use new.
1901
ebe824f5
TT
19022020-09-23 Tom Tromey <tom@tromey.com>
1903
1904 * compile/compile-cplus-types.c
1905 (compile_cplus_convert_struct_or_union): Use std::vector.
1906 (compile_cplus_convert_func): Likewise.
1907 * compile/compile-c-types.c (convert_func): Use std::vector.
1908
5dd918d9
TT
19092020-09-21 Tom Tromey <tromey@adacore.com>
1910
1911 * sparc-tdep.c (sparc32_skip_prologue): Use
1912 skip_prologue_using_sal.
1913
5486c517
TT
19142020-09-19 Tom Tromey <tom@tromey.com>
1915
1916 * symfile.c (add_section_size_callback): Remove.
1917 (load_one_section): Rename from load_section_callback. Change
1918 parameters.
1919 (generic_load): Use foreach.
1920
8a6bb1d1
TT
19212020-09-19 Tom Tromey <tom@tromey.com>
1922
1923 * exec.c (add_to_section_table): Remove.
1924 (build_section_table): Use foreach.
1925
08f93a1a
TT
19262020-09-19 Tom Tromey <tom@tromey.com>
1927
1928 * elfread.c (elf_locate_sections): Change parameters.
1929 (elf_symfile_read): Use foreach.
1930
03cd72b8
TT
19312020-09-19 Tom Tromey <tom@tromey.com>
1932
1933 * cli/cli-dump.c (struct callback_data): Remove.
1934 (restore_one_section): Rename from restore_section_callback.
1935 Change parameters.
1936 (restore_binary_file): Change parameters.
1937 (restore_command): Use foreach.
1938
f4f2b85f
TT
19392020-09-19 Tom Tromey <tom@tromey.com>
1940
1941 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1942 (gcore_copy_callback): Likewise.
1943 (gcore_memory_sections): Use foreach.
1944
b35c1d1c
TT
19452020-09-19 Tom Tromey <tom@tromey.com>
1946
1947 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1948 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1949 parameters.
1950 (generic_elf_osabi_sniffer): Use foreach.
1951 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1952 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1953
5bb6e9dd
TT
19542020-09-19 Tom Tromey <tom@tromey.com>
1955
1956 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1957 (dwarf2_get_dwz_file): Use foreach.
1958 (dwarf2_locate_dwo_sections): Change parameters.
1959 (open_and_init_dwo_file): Use foreach.
1960 (dwarf2_locate_common_dwp_sections): Change parameters.
1961 (open_and_init_dwp_file): Use foreach.
1962
ad7277da
TT
19632020-09-19 Tom Tromey <tom@tromey.com>
1964
1965 * symfile.h: (find_lowest_section): Don't declare.
1966 * symfile.c (find_lowest_section): Now static. Change
1967 parameters.
1968 (struct place_section_arg): Remove.
1969 (place_section): Change parameters.
1970 (addr_info_make_relative): Use foreach.
1971 (symfile_dummy_outputs): Remove.
1972 (default_symfile_relocate): Use foreach.
1973
cb814f2e
TT
19742020-09-19 Tom Tromey <tom@tromey.com>
1975
1976 * objfiles.c (add_to_objfile_sections): Rename from
1977 add_to_objfile_sections_full.
1978 (add_to_objfile_sections): Remove.
1979 (build_objfile_section_table): Use foreach.
1980
3cabfd26
TT
19812020-09-19 Tom Tromey <tom@tromey.com>
1982
1983 * stap-probe.c (get_stap_base_address_1): Remove.
1984 (get_stap_base_address): Use foreach.
1985
1ce51eb5
TT
19862020-09-19 Tom Tromey <tom@tromey.com>
1987
1988 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1989 parameters.
1990 (gdb_bfd_close_or_warn): Use foreach.
1991
a190fabb
TT
19922020-09-19 Tom Tromey <tom@tromey.com>
1993
1994 * corelow.c (add_to_thread_list): Change parameters.
1995 (core_target_open): Use foreach.
1996
cafb0d81
TT
19972020-09-19 Tom Tromey <tom@tromey.com>
1998
1999 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2000 existing function.
2001
c8d5abea
AB
20022020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2003
2004 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2005 for arrays.
2006
6d816919
AB
20072020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * eval.c: Remove 'f-lang.h' include.
2010 (value_f90_subarray): Moved to f-lang.c.
2011 (eval_call): Renamed to...
2012 (evaluate_subexp_do_call): ...this, is no longer static, header
2013 comment moved into header file.
2014 (evaluate_funcall): Update call to eval_call.
2015 (skip_undetermined_arglist): Moved to f-lang.c.
2016 (fortran_value_subarray): Likewise.
2017 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2018 moved to evaluate_subexp_f.
2019 (calc_f77_array_dims): Moved to f-lang.c
2020 * expprint.c (print_subexp_funcall): New function.
2021 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2022 moved to print_subexp_f, OP_FUNCALL uses new function.
2023 (dump_subexp_body_funcall): New function.
2024 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2025 moved to dump_subexp_f, OP_FUNCALL uses new function.
2026 * expression.h (evaluate_subexp_do_call): Declare.
2027 * f-lang.c (value_f90_subarray): Moved from eval.c.
2028 (skip_undetermined_arglist): Likewise.
2029 (calc_f77_array_dims): Likewise.
2030 (fortran_value_subarray): Likewise.
2031 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2032 (operator_length_f): Likewise.
2033 (print_subexp_f): Likewise.
2034 (dump_subexp_body_f): Likewise.
2035 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2036 declaration of this operation to here.
2037 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2038 support moved to operator_length_f.
2039 * parser-defs.h (dump_subexp_body_funcall): Declare.
2040 (print_subexp_funcall): Declare.
2041 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2042 fortran-operator.def.
2043
8c37706a
AB
20442020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * eval.c (fortran_value_subarray): New function, content is taken
2047 from...
2048 (evaluate_subexp_standard): ...here, in two places. Now arrays
2049 and strings both call the new function.
2050 (calc_f77_array_dims): Add header comment, handle strings.
2051
14f9473c
VC
20522020-09-18 Victor Collod <vcollod@nvidia.com>
2053
2054 PR gdb/26635
2055 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2056 (i386_analyze_prologue): Call i386_skip_endbr.
2057
b60cea74
TT
20582020-09-18 Tom Tromey <tromey@adacore.com>
2059
2060 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2061 (windows_nat_target::wait): Update.
2062 * target/wait.h (enum target_wait_flag): New. Use
2063 DEF_ENUM_FLAGS_TYPE.
2064 * target/target.h (target_wait): Change type of options.
2065 * target.h (target_options_to_string, default_target_wait):
2066 Update.
2067 (struct target_ops) <wait>: Change type of options.
2068 * target.c (target_wait, default_target_wait, do_option): Change
2069 type of "options".
2070 (target_options_to_string): Likewise.
2071 * target-delegates.c: Rebuild.
2072 * target-debug.h (target_debug_print_target_wait_flags): Rename
2073 from target_debug_print_options.
2074 * sol-thread.c (class sol_thread_target) <wait>: Update.
2075 (sol_thread_target::wait): Update.
2076 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2077 (rs6000_nat_target::wait): Update.
2078 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2079 Update.
2080 (remote_target::wait_ns, remote_target::wait_as): Change type of
2081 "options".
2082 (remote_target::wait): Update.
2083 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2084 (gdbsim_target::wait): Update.
2085 * record-full.c (class record_full_base_target) <wait>: Update.
2086 (record_full_wait_1): Change type of "options".
2087 (record_full_base_target::wait): Update.
2088 * record-btrace.c (class record_btrace_target) <wait>: Update.
2089 (record_btrace_target::wait): Update.
2090 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2091 Update.
2092 (ravenscar_thread_target::wait): Update.
2093 * procfs.c (class procfs_target) <wait>: Update.
2094 (procfs_target::wait): Update.
2095 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2096 * obsd-nat.c (obsd_nat_target::wait): Update.
2097 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2098 (nto_procfs_target::wait): Update.
2099 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2100 * nbsd-nat.c (nbsd_wait): Change type of "options".
2101 (nbsd_nat_target::wait): Update.
2102 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2103 (thread_db_target::wait): Update.
2104 * linux-nat.h (class linux_nat_target) <wait>: Update.
2105 * linux-nat.c (linux_nat_target::wait): Update.
2106 (linux_nat_wait_1): Update.
2107 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2108 "options".
2109 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2110 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2111 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2112 (go32_nat_target::wait): Update.
2113 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2114 * gnu-nat.c (gnu_nat_target::wait): Update.
2115 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2116 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2117 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2118 * darwin-nat.c (darwin_nat_target::wait): Update.
2119 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2120 (bsd_uthread_target::wait): Update.
2121 * aix-thread.c (class aix_thread_target) <wait>: Update.
2122 (aix_thread_target::wait): Update.
2123
0295dde6
AB
21242020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * compile/compile-object-run.c (create_copied_type_recursive): New
2127 function.
2128 (compile_object_run): Use new function.
2129
d3483b43
JT
21302020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2131
2132 * NEWS: Mention x86_64 Cygwin core file support.
2133
e7d612ad
JT
21342020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2135
2136 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2137 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2138
aff9d387
JT
21392020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2140
62a5151b
JT
2141 * windows-tdep.h: Add prototypes.
2142 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2143 (i386_windows_core_pid_to_str): Move and rename ...
2144 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2145 (windows_core_pid_to_str): ... and here.
2146 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2147
21482020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2149 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2150 (amd64_windows_init_abi_common): ... and register.
2151
7d155da3
JT
21522020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2153
2154 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2155 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2156
e8ef12b9
PA
21572020-09-18 Pedro Alves <pedro@palves.net>
2158
2159 PR gdb/26631
2160 * thread.c (thread_find_command): Switch inferior before calling
2161 target methods.
2162
c1e1314d
TT
21632020-09-17 Tom Tromey <tromey@adacore.com>
2164
2165 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2166 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2167 (tdesc_arch_data_up): New typedef.
2168 (tdesc_use_registers, tdesc_data_alloc): Update.
2169 (tdesc_data_cleanup): Don't declare.
2170 * target-descriptions.c (tdesc_data_alloc): Return a
2171 tdesc_arch_data_up.
2172 (tdesc_arch_data_deleter::operator()): Rename from
2173 tdesc_data_cleanup. Change argument type.
2174 (tdesc_use_registers): Change early_data to an rvalue reference.
2175 (tdesc_use_registers): Don't use delete.
2176 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2177 * s390-tdep.c (s390_gdbarch_init): Update.
2178 * rx-tdep.c (rx_gdbarch_init): Update.
2179 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2180 * riscv-tdep.c (riscv_gdbarch_init): Update.
2181 * or1k-tdep.c (or1k_gdbarch_init): Update.
2182 * nios2-tdep.c (nios2_gdbarch_init): Update.
2183 * nds32-tdep.c (nds32_gdbarch_init): Update.
2184 * mips-tdep.c (mips_gdbarch_init): Update.
2185 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2186 * m68k-tdep.c (m68k_gdbarch_init): Update.
2187 * i386-tdep.c (i386_gdbarch_init): Update.
2188 * arm-tdep.c (arm_gdbarch_init): Update.
2189 * arc-tdep.c (arc_tdesc_init): Update.
2190 (arc_gdbarch_init): Update.
2191 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2192
0363df3d
HD
21932020-09-17 Hannes Domani <ssbssa@yahoo.de>
2194
2195 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2196 for WOW64 processes.
2197
280a9412
TT
21982020-09-17 Tom Tromey <tom@tromey.com>
2199
2200 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2201
6108fd18
TT
22022020-09-17 Tom Tromey <tom@tromey.com>
2203
2204 * value.c (preserve_values): Update.
2205 * python/py-type.c (save_objfile_types): Update.
2206 * guile/scm-type.c (save_objfile_types): Update.
2207 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2208 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2209 * compile/compile-object-run.c (compile_object_run): Update.
2210
fa9b1164
TT
22112020-09-17 Tom Tromey <tom@tromey.com>
2212
2213 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2214 Remove.
2215 <m_table>: Now htab_up.
2216 * typeprint.c (typedef_hash_table::recursively_update)
2217 (typedef_hash_table::add_template_parameters)
2218 (typedef_hash_table::typedef_hash_table): Update.
2219 (typedef_hash_table::~typedef_hash_table): Remove.
2220 (typedef_hash_table::typedef_hash_table)
2221 (typedef_hash_table::find_global_typedef)
2222 (typedef_hash_table::find_typedef): Update.
2223
eb53f105
TT
22242020-09-17 Tom Tromey <tom@tromey.com>
2225
2226 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2227
7a8a5d47
TT
22282020-09-17 Tom Tromey <tom@tromey.com>
2229
2230 * linespec.c (class decode_compound_collector)
2231 <~decode_compound_collector>: Remove.
2232 <m_unique_syms>: Now htab_up.
2233 (decode_compound_collector::operator ()): Update.
2234 (class symtab_collector) <~symtab_collector>: Remove.
2235 <m_symtab_table>: Now htab_up.
2236 (symtab_collector::operator ()): Update.
2237
99032cfc
TT
22382020-09-17 Tom Tromey <tom@tromey.com>
2239
2240 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2241 (filename_seen_cache::clear): Update.
2242 (~filename_seen_cache): Remove.
2243 (filename_seen_cache::seen): Update.
2244 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2245 htab_up.
2246 <~filename_seen_cache>: Remove.
2247 <traverse>: Update.
2248
32580f6d
TT
22492020-09-17 Tom Tromey <tom@tromey.com>
2250
2251 * completer.c (completion_tracker::discard_completions)
2252 (completion_tracker::~completion_tracker)
2253 (completion_tracker::maybe_add_completion)
2254 (completion_tracker::remove_completion)
2255 (completion_tracker::recompute_lowest_common_denominator)
2256 (completion_tracker::build_completion_result): Update.
2257 * completer.h (class completion_tracker) <have_completions>:
2258 Update.
2259 <m_entries_hash>: Now htab_up.
2260
c1fb9836
TT
22612020-09-17 Tom Tromey <tom@tromey.com>
2262
2263 * breakpoint.c (ambiguous_names_p): Use htab_up.
2264
88f07206
TT
22652020-09-17 Tom Tromey <tom@tromey.com>
2266
2267 * auto-load.c (struct auto_load_pspace_info)
2268 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2269 <loaded_script_files, loaded_script_texts>: Change type to
2270 htab_up.
2271 (~auto_load_pspace_info) Remove.
2272 (init_loaded_scripts_info, maybe_add_script_file)
2273 (maybe_add_script_text, auto_load_info_scripts): Update.
2274
9519b2ee
TT
22752020-09-17 Tom Tromey <tromey@adacore.com>
2276
2277 * c-exp.y (name_obstack): Now static.
2278
d2cd4113
CC
22792020-09-17 Chungyi Chi <demonic@csie.io>
2280
2281 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2282
b650a282
SM
22832020-09-16 Simon Marchi <simon.marchi@efficios.com>
2284
2285 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2286 (add_solib_catchpoint): Likewise.
2287 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2288 to bool.
2289 (add_solib_catchpoint): Change int parameter/variable to bool.
2290 (catch_load_or_unload): Likewise.
2291 (init_catchpoint): Likewise.
2292 (create_fork_vfork_event_catchpoint): Likewise.
2293 (catch_fork_command_1): Likewise.
2294 (catch_exec_command_1): Likewise.
2295
4d0bcfcf
SM
22962020-09-16 Simon Marchi <simon.marchi@efficios.com>
2297
2298 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2299 Change instance_flags to m_instance_flags.
2300
fe830662
TT
23012020-09-16 Tom Tromey <tromey@adacore.com>
2302
2303 PR gdb/26598:
2304 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2305
fe5ddfc3
JB
23062020-09-16 John Baldwin <jhb@FreeBSD.org>
2307
2308 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2309 PL_FLAG_EXEC.
2310 (fbsd_nat_target::insert_exec_catchpoint)
2311 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2312 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2313 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2314
e911c666
JB
23152020-09-16 John Baldwin <jhb@FreeBSD.org>
2316
2317 * configure.ac: Remove check for kinfo_getvmmap().
2318 * configure, config.in: Regenerate.
2319 * fbsd-nat.c (fbsd_read_mapping): Remove
2320 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2321 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2322 kinfo_get_vmmap() are always present.
2323
1f17d372
JB
23242020-09-16 John Baldwin <jhb@FreeBSD.org>
2325
2326 * fbsd-nat.c: Always include support for
2327 TARGET_OBJECT_SIGNAL_INFO.
2328
bcb1da7f
JB
23292020-09-16 John Baldwin <jhb@FreeBSD.org>
2330
2331 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2332 sysctl and remove procfs fallback.
2333
5515f729
JB
23342020-09-16 John Baldwin <jhb@FreeBSD.org>
2335
2336 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2337 * fbsd-nat.h: Likewise.
2338
da1df1db
TBA
23392020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2340
2341 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2342 argument.
2343
0e25e767
AB
23442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * ada-lang.c (ada_language_data): Delete.
2347 (ada_language): Remove references to ada_language_data.
2348 * c-lang.c (c_language_data): Delete.
2349 (c_language): Remove references to c_language_data.
2350 (cplus_language_data): Delete.
2351 (cplus_language): Remove references to cplus_language_data.
2352 (asm_language_data): Delete.
2353 (asm_language): Remove references to asm_language_data.
2354 (minimal_language_data): Delete.
2355 (minimal_language): Remove references to minimal_language_data.
2356 * d-lang.c (d_language_data): Delete.
2357 (d_language): Remove references to d_language_data.
2358 * f-lang.c (f_language_data): Delete.
2359 (f_language): Remove references to f_language_data.
2360 * go-lang.c (go_language_data): Delete.
2361 (go_language): Remove references to go_language_data.
2362 * language.c (unknown_language_data): Delete.
2363 (unknown_language): Remove references to unknown_language_data.
2364 (auto_language_data): Delete.
2365 (auto_language): Remove references to auto_language_data.
2366 * language.h (language_data): Delete struct.
2367 (language_defn): No longer inherit from language_data.
2368 * m2-lang.c (m2_language_data): Delete.
2369 (m2_language): Remove references to m2_language_data.
2370 * objc-lang.c (objc_language_data): Delete.
2371 (objc_language): Remove references to objc_language_data.
2372 * opencl-lang.c (opencl_language_data): Delete.
2373 (opencl_language): Remove references to opencl_language_data.
2374 * p-lang.c (pascal_language_data): Delete.
2375 (pascal_language): Remove references to pascal_language_data.
2376 * rust-lang.c (rust_language_data): Delete.
2377 (rust_language): Remove references to rust_language_data.
2378
b7c6e27d
AB
23792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2382 initializer.
2383 (ada_language::opcode_print_table): New member function.
2384 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2385 (c_language::opcode_print_table): New member function.
2386 (cplus_language_data): Remove la_op_print_tab initializer.
2387 (cplus_language::opcode_print_table): New member function.
2388 (asm_language_data): Remove la_op_print_tab initializer.
2389 (asm_language::opcode_print_table): New member function.
2390 (minimal_language_data): Remove la_op_print_tab initializer.
2391 (minimal_language::opcode_print_table): New member function.
2392 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2393 (d_language::opcode_print_table): New member function.
2394 * expprint.c (print_subexp_standard): Update call to
2395 opcode_print_table.
2396 (op_string): Likewise.
2397 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2398 (f_language::opcode_print_table): New member function.
2399 * go-lang.c (go_language_data): Remove la_op_print_tab
2400 initializer.
2401 (go_language::opcode_print_table): New member function.
2402 * language.c (unknown_language_data): Remove la_op_print_tab
2403 initializer.
2404 (unknown_language::opcode_print_table): New member function.
2405 (auto_language_data): Remove la_op_print_tab initializer.
2406 (auto_language::opcode_print_table): New member function.
2407 * language.h (language_data): Remove la_op_print_tab field.
2408 (language_defn::opcode_print_table): Declare new member function.
2409 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2410 initializer.
2411 (m2_language::opcode_print_table): New member function.
2412 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2413 initializer.
2414 (objc_language::opcode_print_table): New member function.
2415 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2416 initializer.
2417 (opencl_language::opcode_print_table): New member function.
2418 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2419 initializer.
2420 (pascal_language::opcode_print_table): New member function.
2421 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2422 initializer.
2423 (rust_language::opcode_print_table): New member function.
2424
5aba6ebe
AB
24252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2426
2427 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2428 (ada_language::expression_ops): New member function.
2429 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2430 (c_language::expression_ops): New member function.
2431 (cplus_language_data): Remove la_exp_desc initializer.
2432 (cplus_language::expression_ops): New member function.
2433 (asm_language_data): Remove la_exp_desc initializer.
2434 (asm_language::expression_ops): New member function.
2435 (minimal_language_data): Remove la_exp_desc initializer.
2436 (minimal_language::expression_ops): New member function.
2437 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2438 (d_language::expression_ops): New member function.
2439 * eval.c (evaluate_subexp): Update call to expression_ops.
2440 * expprint.c (print_subexp): Likewise.
2441 (op_name): Likewise.
2442 (dump_subexp_body): Likewise.
2443 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2444 (f_language::expression_ops): New member function.
2445 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2446 (go_language::expression_ops): New member function.
2447 * language.c (language_defn::expression_ops): New function.
2448 (unknown_language_data): Remove la_exp_desc initializer.
2449 (auto_language_data): Likewise.
2450 * language.h (language_data): Remove la_exp_desc field.
2451 (language_defn::expression_ops): Declare new member function.
2452 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2453 (m2_language::expression_ops): New member function.
2454 * objc-lang.c (objc_language_data): Remove la_exp_desc
2455 initializer.
2456 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2457 initializer.
2458 (opencl_language::expression_ops): New member function.
2459 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2460 * parse.c (operator_length): Update call to expression_ops.
2461 (exp_iterate): Likewise.
2462 * rust-lang.c (rust_language_data): Remove la_exp_desc
2463 initializer.
2464 (ruse_language::expression_ops): New member function.
2465
b63a3f3f
AB
24662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2467
2468 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2469 initializer.
2470 (ada_language::varobj_ops): New member function.
2471 * c-lang.c (c_language_data): Remove la_varobj_ops
2472 initializer.
2473 (cplus_language_data): Likewise.
2474 (cplus_language::varobj_ops): New member function.
2475 (asm_language_data): Remove la_varobj_ops initializer.
2476 (minimal_language_data): Likewise.
2477 * d-lang.c (d_language_data): Likewise.
2478 * f-lang.c (f_language_data): Likewise.
2479 * go-lang.c (go_language_data): Likewise.
2480 * language.c (language_defn::varobj_ops): New function.
2481 (unknown_language_data): Remove la_varobj_ops
2482 initializer.
2483 (auto_language_data): Likewise.
2484 * language.h (language_data): Remove la_varobj_ops field.
2485 (language_defn::varobj_ops): Declare new member function.
2486 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2487 * objc-lang.c (objc_language_data): Likewise.
2488 * opencl-lang.c (opencl_language_data): Likewise.
2489 * p-lang.c (pascal_language_data): Likewise.
2490 * rust-lang.c (rust_language_data): Likewise.
2491 * varobj.c (varobj_create): Update call to varobj_ops.
2492 * varobj.h (default_varobj_ops): Delete define.
2493
1ac14a04
AB
24942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2495
2496 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2497 initializer.
2498 * c-lang.c (c_language_data): Likewise.
2499 (c_language::macro_expansion): New member function.
2500 (cplus_language_data): Likewise.
2501 (cplus_language::macro_expansion): New member function.
2502 (asm_language_data): Likewise.
2503 (asm_language::macro_expansion): New member function.
2504 (minimal_language_data): Likewise.
2505 (minimal_language::macro_expansion): New member function.
2506 * d-lang.c (d_language_data): Remove la_macro_expansion
2507 initializer.
2508 * f-lang.c (f_language_data): Likewise.
2509 * go-lang.c (go_language_data): Likewise.
2510 * language.c (unknown_language_data): Likewise.
2511 (auto_language_data): Likewise.
2512 * language.h (language_data): Remove la_macro_expansion field.
2513 (language_defn::macro_expansion): New member function.
2514 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2515 initializer.
2516 * objc-lang.c (objc_language_data): Likewise.
2517 (objc_language::macro_expansion): New member function.
2518 * opencl-lang.c (opencl_language_data): Likewise.
2519 (opencl_language::macro_expansion): New member function.
2520 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2521 initializer.
2522 * rust-lang.c (rust_language_data): Likewise.
2523 * symtab.c (default_collect_symbol_completion_matches_break_on):
2524 Update call to macro_expansion.
2525
3a3440fb
AB
25262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * ada-lang.c (ada_language_data): Remove la_array_ordering
2529 initializer.
2530 * c-lang.c (c_language_data): Likewise.
2531 (cplus_language_data): Likewise.
2532 (asm_language_data): Likewise.
2533 (minimal_language_data): Likewise.
2534 * d-lang.c (d_language_data): Likewise.
2535 * dwarf2/read.c (read_array_order): Update for call to
2536 array_ordering.
2537 * f-lang.c (f_language_data): Remove la_array_ordering
2538 initializer.
2539 (f_language::array_ordering): New member function.
2540 * go-lang.c (go_language_data): Remove la_array_ordering
2541 initializer.
2542 * language.c (unknown_language_data): Likewise.
2543 (auto_language_data): Likewise.
2544 * language.h (language_data): Delete la_array_ordering field.
2545 (language_defn::array_ordering): New member function.
2546 * m2-lang.c (m2_language_data): Remove la_array_ordering
2547 initializer.
2548 * objc-lang.c (objc_language_data): Likewise.
2549 * opencl-lang.c (opencl_language_data): Likewise.
2550 * p-lang.c (pascal_language_data): Likewise.
2551 * rust-lang.c (rust_language_data): Likewise.
2552
0d201fa4
AB
25532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2554
2555 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2556 initializer.
2557 * c-lang.c (c_language_data): Likewise.
2558 (cplus_language_data): Likewise.
2559 (asm_language_data): Likewise.
2560 (minimal_language_data): Likewise.
2561 * d-lang.c (d_language_data): Likewise.
2562 * f-lang.c (f_language_data): Likewise.
2563 (f_language::case_sensitivity): New member function.
2564 * go-lang.c (go_language_data): Remove la_case_sensitivity
2565 initializer.
2566 * language.c (enum case_mode): Moved here from language.h.
2567 (case_mode): Make static.
2568 (show_case_command): Update for case_sensitivity being a method.
2569 (set_case_command): Likewise.
2570 (set_range_case): Likewise.
2571 (unknown_language_data): Remove la_case_sensitivity initializer.
2572 (auto_language_data): Likewise.
2573 * language.h (case_mode): Delete, move enum declaration to
2574 language.c.
2575 (language_data): Delete la_case_sensitivity field.
2576 (language_defn::case_sensitivity): New member function.
2577 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2578 initializer.
2579 * objc-lang.c (objc_language_data): Likewise.
2580 * opencl-lang.c (opencl_language_data): Likewise.
2581 * p-lang.c (pascal_language_data): Likewise.
2582 * rust-lang.c (rust_language_data): Likewise.
2583
efdf6a73
AB
25842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2585
2586 * ada-lang.c (ada_language_data): Remove la_range_check
2587 initializer.
2588 * c-lang.c (c_language_data): Likewise.
2589 (cplus_language_data): Likewise.
2590 (asm_language_data): Likewise.
2591 (minimal_language_data): Likewise.
2592 * d-lang.c (d_language_data): Likewise.
2593 * f-lang.c (f_language_data): Likewise.
2594 (f_language::range_checking_on_by_default): New member function.
2595 * go-lang.c (go_language_data): Remove la_range_check initializer.
2596 * language.c (enum range_mode): Moved here from language.h.
2597 (range_mode): Made static.
2598 (show_range_command): Update to use
2599 range_checking_on_by_default.
2600 (set_range_command): Likewise.
2601 (set_range_case): Likewise.
2602 (unknown_language_data): Remove la_range_check initializer.
2603 (auto_language_data): Likewise.
2604 * language.h (range_mode): Delete. Enum definition moved to
2605 language.c.
2606 (language_data): Remove la_range_check field.
2607 (language_defn::range_checking_on_by_default): New member
2608 function.
2609 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2610 (m2_language::range_checking_on_by_default): New member function.
2611 * objc-lang.c (objc_language_data): Remove la_range_check
2612 initializer.
2613 * opencl-lang.c (opencl_language_data): Likewise.
2614 * p-lang.c (pascal_language_data): Likewise.
2615 (pascal_language::range_checking_on_by_default): New member
2616 function.
2617 * rust-lang.c (rust_language_data): Remove la_range_check
2618 initializer.
2619 (rust_language::range_checking_on_by_default): New member
2620 function.
2621
bf92aec5
AB
26222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2623
2624 * dwarf2/read.c (dwarf2_physname): Remove special case for
2625 language_go.
2626 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2627 member function.
2628
d3355e4d
AB
26292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * ada-lang.c (ada_language_data): Remove
2632 la_store_sym_names_in_linkage_form_p initializer.
2633 (ada_language::store_sym_names_in_linkage_form_p): New member
2634 function.
2635 * c-lang.c (c_language_data): Remove
2636 la_store_sym_names_in_linkage_form_p initializer.
2637 (c_language::store_sym_names_in_linkage_form_p): New member
2638 function.
2639 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2640 initializer.
2641 (asm_language_data): Likewise.
2642 (asm_language::store_sym_names_in_linkage_form_p): New member
2643 function.
2644 (minimal_language_data): Remove
2645 la_store_sym_names_in_linkage_form_p initializer.
2646 (minimal_language::store_sym_names_in_linkage_form_p): New member
2647 function.
2648 * d-lang.c (d_language_data): Remove
2649 la_store_sym_names_in_linkage_form_p initializer.
2650 * dwarf2/read.c (dwarf2_physname): Update call to
2651 store_sym_names_in_linkage_form_p.
2652 * f-lang.c (f_language_data): Remove
2653 la_store_sym_names_in_linkage_form_p initializer.
2654 * go-lang.c (go_language_data): Remove
2655 la_store_sym_names_in_linkage_form_p initializer.
2656 * language.c (unknown_language_data): Remove
2657 la_store_sym_names_in_linkage_form_p initializer.
2658 (unknown_language::store_sym_names_in_linkage_form_p): New member
2659 function.
2660 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2661 initializer.
2662 (auto_language::store_sym_names_in_linkage_form_p): New member
2663 function.
2664 * language.h (language_data): Remove
2665 la_store_sym_names_in_linkage_form_p member variable.
2666 (language_defn::store_sym_names_in_linkage_form_p): New member
2667 function.
2668 * m2-lang.c (m2_language_data): Remove
2669 la_store_sym_names_in_linkage_form_p initializer.
2670 * objc-lang.c (objc_language_data): Likewise.
2671 * opencl-lang.c (opencl_language_data): Likewise.
2672 * p-lang.c (pascal_language_data): Likewise.
2673 * rust-lang.c (rust_language_data): Likewise.
2674
22c12a6c
AB
26752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2676
2677 * ada-lang.c (ada_language_data): Remove string_lower_bound
2678 initializer.
2679 * c-lang.c (c_language_data): Likewise.
2680 (cplus_language_data): Likewise.
2681 (asm_language_data): Likewise.
2682 (minimal_language_data): Likewise.
2683 * d-lang.c (d_language_data): Likewise.
2684 * f-lang.c (f_language_data): Likewise.
2685 * go-lang.c (go_language_data): Likewise.
2686 * language.c (unknown_language_data): Likewise.
2687 (auto_language_data): Likewise.
2688 * language.h (language_data): Remove string_lower_bound field.
2689 (language_defn::string_lower_bound): New member function.
2690 * m2-lang.c (m2_language_data): Remove string_lower_bound
2691 initializer.
2692 (m2_language::string_lower_bound): New member function.
2693 * objc-lang.c (objc_language_data): Remove string_lower_bound
2694 initializer.
2695 * opencl-lang.c (opencl_language_data): Likewise.
2696 * p-lang.c (pascal_language_data): Likewise.
2697 * rust-lang.c (rust_language_data): Likewise.
2698 * valops.c (value_cstring): Update call to string_lower_bound.
2699 (value_string): Likewise.
2700 * value.c (allocate_repeated_value): Likewise.
2701
1c236ddd
AB
27022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2703
2704 * valops.c (value_repeat): Fix incorrect argument name in comment.
2705
67bd3fd5
AB
27062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2707
2708 * ada-lang.c (ada_language_data): Remove c_style_arrays
2709 initializer.
2710 (ada_language::c_style_arrays_p): New member fuction.
2711 * c-lang.c (c_language_data): Remove c_style_arrays
2712 initializer.
2713 (cplus_language_data): Likewise.
2714 (asm_language_data): Likewise.
2715 (minimal_language_data): Likewise.
2716 * d-lang.c (d_language_data): Likewise.
2717 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2718 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2719 (f_language::c_style_arrays_p): New member function.
2720 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2721 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2722 * language.c (unknown_language_data): Remove c_style_arrays
2723 initializer.
2724 (auto_language_data): Likewise.
2725 * language.h (language_data): Remove c_style_arrays field.
2726 (language_defn::c_style_arrays_p): New member function.
2727 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2728 (m2_language::c_style_arrays_p): New member function.
2729 * objc-lang.c (objc_language_data): Remove c_style_arrays
2730 initializer.
2731 * opencl-lang.c (opencl_language_data): Likewise.
2732 * p-lang.c (pascal_language_data): Likewise.
2733 * rust-lang.c (rust_language_data): Likewise.
2734 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2735 and update local variable to a bool.
2736 * valops.c (value_cast): Update call to c_style_arrays_p.
2737 (value_array): Likewise.
2738 * value.c (coerce_array): Likewise.
2739
85967615
AB
27402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * ada-lang.c (ada_language_data): Remove la_language initializer.
2743 * c-lang.c (c_language_data): Likewise.
2744 (cplus_language_data): Likewise.
2745 (asm_language_data): Likewise.
2746 (minimal_language_data): Likewise.
2747 * d-lang.c (d_language_data): Likewise.
2748 * f-lang.c (f_language_data): Likewise.
2749 * go-lang.c (go_language_data): Likewise.
2750 * language.c (unknown_language_data): Likewise.
2751 (auto_language_data): Likewise.
2752 * language.h (language_data): Remove la_language field.
2753 (language_defn::language_defn): Initialise la_language field.
2754 (language_defn::la_language): New member variable.
2755 * m2-lang.c (m2_language_data): Remove la_language field.
2756 * objc-lang.c (objc_language_data): Likewise.
2757 * opencl-lang.c (opencl_language_data): Likewise.
2758 * p-lang.c (pascal_language_data): Likewise.
2759 * rust-lang.c (rust_language_data): Likewise.
2760
e171d6f1
AB
27612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2762
2763 * ada-lang.c (ada_extensions): Delete, moved into
2764 ada_language::filename_extensions.
2765 (ada_language_data): Remove la_filename_extensions initializer.
2766 (ada_language::filename_extensions): New member function.
2767 * c-lang.c (c_extensions): Delete, moved into
2768 c_language::filename_extensions.
2769 (c_language_data): Remove la_filename_extensions initializer.
2770 (c_language::filename_extensions): New member function.
2771 (cplus_extensions): Delete, moved into
2772 cplus_language::filename_extensions.
2773 (cplus_language_data): Remove la_filename_extensions initializer.
2774 (cplus_language::filename_extensions): New member function.
2775 (asm_extensions): Delete, moved into
2776 asm_language::filename_extensions.
2777 (asm_language_data): Remove la_filename_extensions initializer.
2778 (asm_language::filename_extensions): New member function.
2779 (minimal_language_data): Remove la_filename_extensions
2780 initializer.
2781 * d-lang.c (d_extensions): Delete, moved into
2782 d_language::filename_extensions.
2783 (d_language_data): Remove la_filename_extensions initializer.
2784 (d_language::filename_extensions): New member function.
2785 * f-lang.c (f_extensions): Delete, moved into
2786 f_language::filename_extensions.
2787 (f_language_data): Remove la_filename_extensions initializer.
2788 (f_language::filename_extensions): New member function.
2789 * go-lang.c (go_language_data): Remove la_filename_extensions
2790 initializer.
2791 * language.c (add_set_language_command): Update now that
2792 filename_extensions returns a vector.
2793 (unknown_language_data): Remove la_filename_extensions
2794 initializer.
2795 (auto_language_data): Likewise.
2796 * language.h (language_data): Remove la_filename_extensions field.
2797 (language_defn::filename_extensions): New member function.
2798 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2799 initializer.
2800 * objc-lang.c (objc_extensions): Delete, moved into
2801 objc_language::filename_extensions.
2802 (objc_language_data): Remove la_filename_extensions initializer.
2803 (objc_language::filename_extensions): New member function.
2804 * opencl-lang.c (opencl_language_data): Remove
2805 la_filename_extensions initializer.
2806 * p-lang.c (pascal_extensions): Delete, moved into
2807 pascal_language::filename_extensions.
2808 (pascal_language_data): Remove la_filename_extensions initializer.
2809 (pascal_language::filename_extensions): New member function.
2810 * rust-lang.c (rust_extensions): Delete, moved into
2811 rust_language::filename_extensions.
2812 (rust_language_data): Remove la_filename_extensions initializer.
2813 (rust_language::filename_extensions): New member function.
2814 * symfile.c (add_filename_language): Add new assert.
2815
6f7664a9
AB
28162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2817
2818 * ada-lang.c (ada_language_data): Remove la_name and
2819 la_natural_name initializers.
2820 (ada_language::name): New member function.
2821 (ada_language::natural_name): New member function.
2822 * c-lang.c (c_language_data): Remove la_name and
2823 la_natural_name initializers.
2824 (c_language::name): New member function.
2825 (c_language::natural_name): New member function.
2826 (cplus_language_data): Remove la_name and
2827 la_natural_name initializers.
2828 (cplus_language::name): New member function.
2829 (cplus_language::natural_name): New member function.
2830 (asm_language_data): Remove la_name and
2831 la_natural_name initializers.
2832 (asm_language::name): New member function.
2833 (asm_language::natural_name): New member function.
2834 (minimal_language_data): Remove la_name and
2835 la_natural_name initializers.
2836 (minimal_language::name): New member function.
2837 (minimal_language::natural_name): New member function.
2838 * compile/compile.c (compile_to_object): Update call to
2839 lanugage_defn::name.
2840 * d-lang.c (d_language_data): Remove la_name and
2841 la_natural_name initializers.
2842 (d_language::name): New member function.
2843 (d_language::natural_name): New member function.
2844 * expprint.c (print_subexp_standard): Update call to
2845 language_defn::name.
2846 (dump_raw_expression): Likewise
2847 (dump_prefix_expression): Likewise.
2848 * f-lang.c (f_language_data): Remove la_name and
2849 la_natural_name initializers.
2850 (f_language::name): New member function.
2851 (f_language::natural_name): New member function.
2852 * go-lang.c (go_language_data): Remove la_name and
2853 la_natural_name initializers.
2854 (go_language::name): New member function.
2855 (go_language::natural_name): New member function.
2856 * language.c (show_language_command): Update call to
2857 language_defn::name.
2858 (set_language_command): Likewise.
2859 (language_enum): Likewise.
2860 (language_str): Likewise.
2861 (add_set_language_command): Likewise, use
2862 language_defn::natural_name in the doc string.
2863 (unknown_language_data): Remove la_name and
2864 la_natural_name initializers.
2865 (unknown_language::name): New member function.
2866 (unknown_language::natural_name): New member function.
2867 (auto_language_data): Remove la_name and
2868 la_natural_name initializers.
2869 (auto_language::name): New member function.
2870 (auto_language::natural_name): New member function.
2871 (language_lookup_primitive_type_as_symbol): Update call to
2872 language_defn::name.
2873 * language.h (language_data): Remove la_name and la_natural_name
2874 member variables.
2875 (language_defn::name): New member function.
2876 (language_defn::natural_name): New member function.
2877 * m2-lang.c (m2_language_data): Remove la_name and
2878 la_natural_name initializers.
2879 (m2_language::name): New member function.
2880 (m2_language::natural_name): New member function.
2881 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2882 language_defn::natural_name.
2883 * objc-lang.c (objc_language_data): Remove la_name and
2884 la_natural_name initializers.
2885 (objc_language::name): New member function.
2886 (objc_language::natural_name): New member function.
2887 * opencl-lang.c (opencl_language_data): Remove la_name and
2888 la_natural_name initializers.
2889 (opencl_language::name): New member function.
2890 (opencl_language::natural_name): New member function.
2891 * p-lang.c (pascal_language_data): Remove la_name and
2892 la_natural_name initializers.
2893 (pascal_language::name): New member function.
2894 (pascal_language::natural_name): New member function.
2895 * rust-lang.c (rust_language_data): Remove la_name and
2896 la_natural_name initializers.
2897 (rust_language::name): New member function.
2898 (rust_language::natural_name): New member function.
2899 * symtab.c (lookup_language_this): Update call to
2900 language_defn::name.
2901
5bae7c4e
AB
29022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2903
2904 * ada-lang.c (ada_language_data): Remove la_name_of_this
2905 initializer.
2906 * ax-gdb.c (gen_expr): Update call to name_of_this.
2907 * c-exp.y (classify_name): Likewise.
2908 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2909 (cplus_language_data): Likewise.
2910 (cplus_language::name_of_this): New member function.
2911 (asm_language_data): Remove la_name_of_this initializer.
2912 (minimal_language_data): Likewise.
2913 * d-lang.c (d_language_data): Likewise.
2914 (d_language::name_of_this): New member function.
2915 * expprint.c (print_subexp_standard): Update call to name_of_this.
2916 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2917 * go-lang.c (go_language_data): Likewise.
2918 * language.c (unknown_language_data): Likewise.
2919 (unknown_language::name_of_this): New member function.
2920 (auto_language_data): Remove la_name_of_this initializer.
2921 (auto_language::name_of_this): New member function.
2922 * language.h (language_data): Delete la_name_of_this member
2923 variable.
2924 (language_defn::name_of_this): New member function.
2925 * m2-lang.c (m2_language_data): Remove la_name_of_this
2926 initializer.
2927 * objc-lang.c (objc_language_data): Likewise.
2928 (objc_language::name_of_this): New member function.
2929 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2930 initializer.
2931 * p-lang.c (pascal_language_data): Likewise.
2932 (pascal_language::name_of_this): New member function.
2933 * rust-lang.c (rust_language_data): Remove la_name_of_this
2934 initializer.
2935 * symtab.c (lookup_language_this): Update call to name_of_this.
2936 (lookup_symbol_aux): Likewise.
2937 * valops.c (value_of_this): Likewise.
2938
22e3f3ed
AB
29392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2940
2941 * ada-lang.c (ada_language_data): Remove
2942 la_struct_too_deep_ellipsis initializer.
2943 (ada_language::struct_too_deep_ellipsis): New member function.
2944 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2945 initializer.
2946 (cplus_language_data): Likewise.
2947 (asm_language_data): Likewise.
2948 (minimal_language_data): Likewise.
2949 * cp-valprint.c (cp_print_value): Update call to
2950 struct_too_deep_ellipsis.
2951 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2952 initializer.
2953 * f-lang.c (f_language_data): Likewise.
2954 (f_language::struct_too_deep_ellipsis): New member function.
2955 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2956 initializer.
2957 * language.c (unknown_language_data): Likewise.
2958 (auto_language_data): Likewise.
2959 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2960 member variable.
2961 (language_defn::struct_too_deep_ellipsis): New member function.
2962 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2963 initializer.Q
2964 * objc-lang.c (objc_language_data): Likewise.
2965 * opencl-lang.c (opencl_language_data): Likewise.
2966 * p-lang.c (pascal_language_data): Likewise.
2967 * rust-lang.c (rust_language_data): Likewise.
2968 * valprint.c (val_print_check_max_depth): Update call to
2969 struct_too_deep_ellipsis.
2970
ed29e1c7
FW
29712020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2972
2973 * MAINTAINERS (Write After Approval): Add myself.
2974
12d8f940
TT
29752020-09-15 Tom Tromey <tom@tromey.com>
2976
2977 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2978 Remove.
2979
6b5a7bc7
TT
29802020-09-15 Tom Tromey <tom@tromey.com>
2981
2982 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2983 and TYPE_CODE_METHODPTR cases.
2984 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2985 (c_value_print_inner): Update.
2986 * valprint.c (generic_value_print_memberptr): New function, from
2987 c_value_print_memberptr.
2988 (generic_value_print): Use it. Call cplus_print_method_ptr.
2989
47f0e2ff
TT
29902020-09-15 Tom Tromey <tromey@adacore.com>
2991
2992 * python/python-internal.h (PyInt_FromLong): Remove define.
2993 * python/py-value.c (convert_value_from_python): Use
2994 gdb_py_object_from_longest.
2995 * python/py-type.c (typy_get_code): Use
2996 gdb_py_object_from_longest.
2997 * python/py-symtab.c (salpy_get_line): Use
2998 gdb_py_object_from_longest.
2999 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3000 gdb_py_object_from_longest.
3001 * python/py-record.c (recpy_gap_reason_code): Use
3002 gdb_py_object_from_longest.
3003 * python/py-record-btrace.c (recpy_bt_insn_size)
3004 (recpy_bt_func_level, btpy_list_count): Use
3005 gdb_py_object_from_longest.
3006 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3007 gdb_py_object_from_longest. Fix error handling.
3008 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3009 gdb_py_object_from_longest.
3010 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3011 gdb_py_object_from_longest.
3012 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3013 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3014 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3015
512116ce
TT
30162020-09-15 Tom Tromey <tromey@adacore.com>
3017
3018 * python/python.c (gdbpy_parameter_value): Use
3019 gdb_py_object_from_ulongest.
3020
4ab1029c
TT
30212020-09-15 Tom Tromey <tromey@adacore.com>
3022
3023 * python/py-infevents.c (create_register_changed_event_object):
3024 Use gdb_py_object_from_longest.
3025 * python/py-exitedevent.c (create_exited_event_object): Use
3026 gdb_py_object_from_longest.
3027
062534d4
TT
30282020-09-15 Tom Tromey <tromey@adacore.com>
3029
3030 * python/python.c (gdbpy_parameter_value): Use
3031 gdb_py_object_from_longest.
3032 * python/py-type.c (convert_field, typy_range): Use
3033 gdb_py_object_from_longest.
3034 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3035 gdb_py_object_from_longest.
3036 * python/py-lazy-string.c (stpy_get_length): Use
3037 gdb_py_object_from_longest.
3038 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3039 gdb_py_object_from_longest.
3040 * python/py-infevents.c (create_memory_changed_event_object): Use
3041 gdb_py_object_from_longest.
3042 * python/py-inferior.c (infpy_get_num): Use
3043 gdb_py_object_from_longest.
3044 (infpy_get_pid): Likewise.
3045
d1cab987
TT
30462020-09-15 Tom Tromey <tromey@adacore.com>
3047
3048 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3049 defines.
3050 * python/py-value.c (valpy_long): Use
3051 gdb_py_object_from_ulongest.
3052 * python/py-symtab.c (salpy_get_pc): Use
3053 gdb_py_object_from_ulongest.
3054 (salpy_get_last): Likewise.
3055 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3056 gdb_py_object_from_ulongest.
3057 * python/py-lazy-string.c (stpy_get_address): Use
3058 gdb_py_object_from_ulongest.
3059 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3060 * python/py-arch.c (archpy_disassemble): Use
3061 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3062 error handling.
3063
4bde49dc
TT
30642020-09-15 Tom Tromey <tromey@adacore.com>
3065
3066 * python/python-internal.h (gdb_py_long_from_longest): Remove
3067 defines.
3068 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3069 * python/py-type.c (convert_field, typy_get_sizeof): Use
3070 gdb_py_object_from_longest.
3071 * python/py-record-btrace.c (btpy_list_index): Use
3072 gdb_py_object_from_longest.
3073
37431074
TT
30742020-09-15 Tom Tromey <tromey@adacore.com>
3075
3076 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3077 * python/py-record.c (recpy_element_number): Use
3078 gdb_py_object_from_longest.
3079 (recpy_gap_number): Likewise.
3080
cbe25684
TT
30812020-09-15 Tom Tromey <tromey@adacore.com>
3082
3083 * top.c (ui::ui): Update.
3084 (highest_ui_num): Remove.
3085 * top.h (struct ui) <num>: Remove.
3086
db92ac45
TT
30872020-09-15 Tom Tromey <tromey@adacore.com>
3088
3089 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3090 * ui-style.c (ansi_regex_text): Now array.
3091 * rust-exp.y (number_regex_text): Now array.
3092 * linespec.c (linespec_quote_characters): Now array.
3093 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3094 Now arrays.
3095
d2b31b67
SM
30962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3097
3098 * debuginfod-support.c (debuginfod_client_deleter): New.
3099 (debuginfod_client_up): New.
3100 (debuginfod_init): Return debuginfod_client_up.
3101 (debuginfod_source_query): Adjust.
3102 (debuginfod_debuginfo_query): Adjust.
3103
3246bd8e
SM
31042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3105
3106 * debuginfod-support.c (debuginfod_source_query): Use
3107 make_unique_xstrdup.
3108
10242f36
SM
31092020-09-14 Simon Marchi <simon.marchi@efficios.com>
3110
3111 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3112 with `type::instance_flags`.
3113
e1044e6a
MM
31142020-09-14 Michael Mullin <masmullin@gmail.com>
3115
3116 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3117 Remove baton parameter.
3118
04902b09
PA
31192020-09-14 Pedro Alves <pedro@palves.net>
3120
3121 * Makefile.in (SELFTESTS_SRCS): Add
3122 unittests/enum-flags-selftests.c.
3123 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3124 btrace_function_flags instead of enum btrace_function_flag.
3125 * compile/compile-c-types.c (convert_qualified): Use
3126 enum_flags::raw.
3127 * compile/compile-cplus-symbols.c (convert_one_symbol)
3128 (convert_symbol_bmsym):
3129 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3130 (compile_cplus_convert_struct_or_union_methods)
3131 (compile_cplus_instance::convert_qualified_base):
3132 * go-exp.y (parse_string_or_char): Add cast to int.
3133 * unittests/enum-flags-selftests.c: New file.
3134 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3135 type to btrace_thread_flags from btrace_thread_flag.
3136 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3137 local's type to btrace_thread_flags from btrace_thread_flag. Add
3138 cast in DEBUG call.
3139
69896a2c
PA
31402020-09-14 Pedro Alves <pedro@palves.net>
3141
3142 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3143 * gdbtypes.c (address_space_name_to_int): Rename to ...
3144 (address_space_name_to_type_instance_flags): ... this.
3145 (address_space_int_to_name): Rename to ...
3146 (address_space_type_instance_flags_to_name): ... this.
3147 * gdbtypes.h (address_space_name_to_int): Rename to ...
3148 (address_space_name_to_type_instance_flags): ... this.
3149 (address_space_int_to_name): Rename to ...
3150 (address_space_type_instance_flags_to_name): ... this.
3151 * type-stack.c (type_stack::insert): Adjust to rename.
3152 * type-stack.h (type_stack::insert): Likewise.
3153
314ad88d
PA
31542020-09-14 Pedro Alves <pedro@palves.net>
3155 Andrew Burgess <andrew.burgess@embecosm.com>
3156
3157 * avr-tdep.c (avr_address_class_type_flags): Return
3158 type_instance_flags.
3159 (avr_address_class_type_flags_to_name): Take a
3160 type_instance_flags.
3161 (avr_address_class_name_to_type_flags): Return bool and take a
3162 type_instance_flags.
3163 * d-lang.c (build_d_types): Use type::set_instance_flags.
3164 * ft32-tdep.c (ft32_address_class_type_flags): Return
3165 type_instance_flags.
3166 (ft32_address_class_type_flags_to_name): Take a
3167 type_instance_flags.
3168 (ft32_address_class_name_to_type_flags): Return bool and take a
3169 type_instance_flags.
3170 (ft32_gdbarch_init): Use type::set_instance_flags.
3171 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3172 * gdbarch.h, gdbarch.c: Regenerate.
3173 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3174 (address_class_name_to_type_flags): Use type_instance_flags and
3175 bool.
3176 * gdbtypes.c (address_space_name_to_int)
3177 (address_space_int_to_name, make_qualified_type): Use
3178 type_instance_flags.
3179 (make_qualified_type): Use type_instance_flags and
3180 type::set_instance_flags.
3181 (make_type_with_address_space, make_cv_type, make_vector_type)
3182 (check_typedef): Use type_instance_flags.
3183 (recursive_dump_type): Cast type_instance_flags to unsigned for
3184 printing.
3185 (copy_type_recursive): Use type::set_instance_flags.
3186 (gdbtypes_post_init): Use type::set_instance_flags.
3187 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3188 <m_instance_flags>: ... this.
3189 <instance_flags, set_instance_flags>: New methods.
3190 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3191 (SET_TYPE_INSTANCE_FLAGS): New.
3192 (address_space_name_to_int, address_space_int_to_name)
3193 (make_type_with_address_space): Pass flags using
3194 type_instance_flags instead of int.
3195 * stabsread.c (cleanup_undefined_types_noname): Use
3196 type::set_instance_flags.
3197 * s390-tdep.c (s390_address_class_type_flags): Return
3198 type_instance_flags.
3199 (s390_address_class_type_flags_to_name): Take a
3200 type_instance_flags.
3201 (s390_address_class_name_to_type_flags): Return bool and take a
3202 type_instance_flags.
3203 * type-stack.c (type_stack::follow_types): Use
3204 type_instance_flags.
3205 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3206
27087b7f
TT
32072020-09-14 Tom Tromey <tromey@adacore.com>
3208
3209 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3210 * x86-tdep.c (x86_is_thunk_register_name)
3211 (x86_in_indirect_branch_thunk): Update.
3212 * sparc64-tdep.c (sparc64_fpu_register_names)
3213 (sparc64_cp0_register_names, sparc64_register_names)
3214 (sparc64_pseudo_register_names): Now const.
3215 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3216 cp0_registers_num>: Now const.
3217 * sparc-tdep.c (sparc_core_register_names)
3218 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3219 (sparc32_pseudo_register_names): Now const.
3220 (validate_tdesc_registers): Update.
3221 * rust-lang.c (rust_extensions): Now const.
3222 * p-lang.c (p_extensions): Now const.
3223 * objc-lang.c (objc_extensions): Now const.
3224 * nto-tdep.c (nto_thread_state_str): Now const.
3225 * moxie-tdep.c (moxie_register_names): Now const.
3226 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3227 Now const.
3228 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3229 (mips_linux_reg_names): Now const.
3230 (mips_gdbarch_init): Update.
3231 * microblaze-tdep.c (microblaze_register_names): Now const.
3232 * m68k-tdep.c (m68k_register_names): Now const.
3233 * m32r-tdep.c (m32r_register_names): Now const.
3234 * ia64-tdep.c (ia64_register_names): Now const.
3235 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3236 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3237 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3238 ymm_avx512_register_names, pkeys_register_names>: Now const.
3239 * i386-tdep.c (i386_register_names, i386_zmm_names)
3240 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3241 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3242 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3243 * f-lang.c (f_extensions): Now const.
3244 * d-lang.c (d_extensions): Now const.
3245 * csky-tdep.c (csky_register_names): Now const.
3246 * charset.c (default_charset_names, charset_enum): Now const.
3247 (_initialize_charset): Update.
3248 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3249 const.
3250 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3251 (bsd_uthread_solib_loaded): Update.
3252 (bsd_uthread_state): Now const.
3253 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3254 (amd64_ymm_avx512_names, amd64_ymmh_names)
3255 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3256 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3257 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3258 (amd64_dword_names): Now const.
3259 * agent.c (can_use_agent_enum): Now const.
3260 * ada-tasks.c (task_states, long_task_states): Now const.
3261 * ada-lang.c (known_runtime_file_name_patterns)
3262 (known_auxiliary_function_name_patterns, attribute_names)
3263 (standard_exc, ada_extensions): Now const.
3264
89806626
SM
32652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3266
3267 * bcache.h (struct bcache) <bcache>: Remove constructor.
3268 <m_hash_function, m_compare_function>: Remove.
3269 <~bcache>: Make virtual.
3270 <compare>: Remove static method, introduce virtual method.
3271 <default_hash>: Remove.
3272 <hash>: New virtual method.
3273 * bcache.c (bcache::expand_hash_table): Update.
3274 (bcache::insert): Update.
3275 (bcache::hash): New.
3276 (bcache::compare): Update comment and parameter names.
3277 * gdbtypes.c (types_deeply_equal): Update.
3278 * psymtab.h (struct psymbol_bcache): New struct.
3279 (class psymtab_storage) <psymtab_storage>: Make default.
3280 <psymbol_cache>: Change type to psymbol_bcache.
3281 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3282 (psymbol_hash): Change to...
3283 (psymbol_bcache::hash): ... this.
3284 (psymbol_compare): Change to...
3285 (psymbol_bcache::compare): ... this.
3286
677c92fe
SM
32872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3288
3289 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3290 checking for initial lwp.
3291
3eba3a01
TT
32922020-09-14 Tom Tromey <tromey@adacore.com>
3293
3294 * m68k-tdep.c (m68k_extract_return_value): Use
3295 pointer_result_regnum.
3296 (m68k_store_return_value): Likewise.
3297 (m68k_reg_struct_return_p): Handle vectors and arrays.
3298 (m68k_return_value): Handle arrays.
3299 (m68k_svr4_return_value): Fix single-element aggregate handling.
3300 Handle long double. Adjust for embedded ABI.
3301 (m68k_svr4_init_abi): Set pointer_result_regnum.
3302 (m68k_embedded_init_abi): New function.
3303 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3304 (m68k_osabi_sniffer): New function.
3305 (_initialize_m68k_tdep): Register osabi sniffer.
3306 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3307 member.
3308
33f4dd48
SM
33092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3310
3311 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3312 with gdb::unique_xmalloc_ptr<char>.
3313
8400a90d
SM
33142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3315
3316 * xml-support.h (xml_fetch_another): Change type to be a
3317 function_view.
3318 (xml_process_xincludes): Remove baton parameter.
3319 (xml_fetch_content_from_file): Change baton parameter to
3320 dirname.
3321 * xml-support.c (struct xinclude_parsing_data)
3322 <xinclude_parsing_data>: Remove baton parameter.
3323 <fetcher_baton>: Remove.
3324 (xinclude_start_include): Adjust.
3325 (xml_process_xincludes): Adjust.
3326 (xml_fetch_content_from_file): Replace baton parameter with
3327 dirname.
3328 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3329 (xml_init_syscalls_info): Use a lambda.
3330 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3331 (file_read_description_xml): Use a lambda.
3332 (fetch_available_features_from_target): Change baton parameter
3333 to target_ops.
3334 (target_read_description_xml): Use a lambda.
3335 (target_fetch_description_xml): Use a lambda.
3336 (string_read_description_xml): Update.
3337
04f5bab2
SM
33382020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3339
3340 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3341 uses with type::endianity_is_not_default.
3342
db558e34
SM
33432020-09-14 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * gdbtypes.h (struct type) <endianity_is_not_default,
3346 set_endianity_is_not_default>: New methods.
3347 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3348 type::endianity_is_not_default, change all write call sites to
3349 use type::set_endianity_is_not_default.
3350
22c4c60c
SM
33512020-09-14 Simon Marchi <simon.marchi@efficios.com>
3352
3353 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3354 uses with type::is_fixed_instance.
3355
9cdd0d12
SM
33562020-09-14 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * gdbtypes.h (struct type) <is_fixed_instance,
3359 set_is_fixed_instance>: New methods.
3360 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3361 write call sites to use type::set_is_fixed_instance.
3362
0becda7a
SM
33632020-09-14 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3366 uses with type::is_gnu_ifunc.
3367
03cc7249
SM
33682020-09-14 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3371 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3372 use type::set_is_gnu_ifunc.
3373
3f46044c
SM
33742020-09-14 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3377 uses with type::stub_is_supported.
3378
9baccff6
SM
33792020-09-14 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3382 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3383 use type::set_stub_is_supported.
3384
bd63c870
SM
33852020-09-14 Simon Marchi <simon.marchi@efficios.com>
3386
3387 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3388 uses with type::is_vector.
3389
2062087b
SM
33902020-09-14 Simon Marchi <simon.marchi@efficios.com>
3391
3392 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3393 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3394 use type::set_is_vector.
3395
a409645d
SM
33962020-09-14 Simon Marchi <simon.marchi@efficios.com>
3397
3398 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3399 uses with type::has_varargs.
3400
1d6286ed
SM
34012020-09-14 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3404 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3405 use type::set_has_varargs.
3406
7f9f399b
SM
34072020-09-14 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3410 uses with type::is_prototyped.
3411
27e69b7a
SM
34122020-09-14 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3415 New methods.
3416 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3417 call sites to use type::set_is_prototyped.
3418
d2183968
SM
34192020-09-14 Simon Marchi <simon.marchi@efficios.com>
3420
3421 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3422 uses with type::target_is_stub.
3423
8f53807e
SM
34242020-09-14 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3427 New methods.
3428 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3429 sites to use type::set_target_is_stub.
3430
e46d3488
SM
34312020-09-14 Simon Marchi <simon.marchi@efficios.com>
3432
3433 * gdbtypes.h (TYPE_STUB): Remove, replace all
3434 uses with type::is_stub.
3435
b4b73759
SM
34362020-09-14 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3439 (TYPE_STUB): Use type::is_stub, change all write call sites to
3440 use type::set_is_stub.
3441
20ce4123
SM
34422020-09-14 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3445 type::has_no_signedness.
3446
15152a54
SM
34472020-09-14 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * gdbtypes.h (struct type) <has_no_signedness,
3450 set_has_no_signedness>: New methods.
3451 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3452 call sites to use type::set_has_no_signedness.
3453
c6d940a9
SM
34542020-09-14 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3457 type::is_unsigned.
3458
653223d3
SM
34592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3462 methods.
3463 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3464 sites to use type::set_is_unsigned.
3465
55ea94da 34662020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3467 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3468
e851246a
SM
3469 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3470 pointer and stack frame offset when unwinding.
55ea94da 3471
6791b117
PA
34722020-09-13 Pedro Alves <pedro@palves.net>
3473
3474 * NEWS: Document "-break-insert --qualified".
3475 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3476
77f2120b
PA
34772020-09-13 Pedro Alves <pedro@palves.net>
3478
3479 * linespec.c (classify_mtype, compare_msyms): Delete.
3480 (search_minsyms_for_name): Remove classification logic. Instead
3481 filter out trampoline symbols if we also found an external
3482 function of the same name.
3483
ed6a896c
JB
34842020-09-13 Joel Brobecker <brobecker@adacore.com>
3485
3486 * NEWS: Create a new section for the next release branch.
3487 Rename the section of the current branch, now that it has
3488 been cut.
3489
32aea73e
JB
34902020-09-13 Joel Brobecker <brobecker@adacore.com>
3491
3492 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3493 * version.in: Bump version to 11.0.50.DATE-git.
3494
8087c3fa
JB
34952020-09-12 Joel Brobecker <brobecker@adacore.com>
3496
3497 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3498
2a67f09d
FW
34992020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3500 Felix Willgerodt <Felix.Willgerodt@intel.com>
3501
3502 * gdbarch.sh: Added bfloat16 type.
3503 * gdbarch.c: Regenerated.
3504 * gdbarch.h: Regenerated.
3505 * gdbtypes.c (floatformats_bfloat16): New struct.
3506 (gdbtypes_post_init): Add builtin_bfloat16.
3507 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3508 (floatformats_bfloat16): New struct.
3509 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3510 (i386_ymm_type): Add field "v16_bfloat16"
3511 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3512 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3513 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3514 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3515 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3516 * features/i386/64bit-avx512.c: Regenerated.
3517 * features/i386/64bit-sse.xml: Add bfloat16 type.
3518 * features/i386/64bit-sse.c: Regenerated.
3519
1347d111
FW
35202020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3521
3522 * i386-tdep.c (i386_zmm_type): Fix field names.
3523 (i386_ymm_type): Fix field names.
3524
7a4e8e7d
TBA
35252020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3526
3527 * breakpoint.c: Fix typo in the help message of the
3528 "set breakpoint condition-evaluation" command.
3529
cf4ac4be
KR
35302020-09-10 Kamil Rytarowski <n54@gmx.com>
3531
3532 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3533 * (nbsd_nat_target::pid_to_exec_file)
3534 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3535 (nbsd_nat_target::post_startup_inferior)
3536 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3537 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3538 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3539 * (nbsd_thread_lister): Remove.
3540
f404573e
KR
35412020-09-10 Kamil Rytarowski <n54@gmx.com>
3542
3543 * fork-inferior.c (startup_inferior): Avoid double free.
3544
1ccb2c17
KR
35452020-09-10 Kamil Rytarowski <n54@gmx.com>
3546
3547 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3548 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3549
feedfcc7
KR
35502020-09-10 Kamil Rytarowski <n54@gmx.com>
3551
3552 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3553 * netbsd-nat.c: Include <sys/ptrace.h>.
3554 * (netbsd_nat::enable_proc_events): Add.
3555
c489f8c6
KR
35562020-09-10 Kamil Rytarowski <n54@gmx.com>
3557
3558 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3559 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3560 (netbsd_nat::for_each_thread): Add.
3561 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3562 "gdbsupport/common-debug.h".
3563 * (netbsd_nat::netbsd_thread_lister)
3564 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3565 (netbsd_nat::for_each_thread): Add.
3566
330662f6
KR
35672020-09-10 Kamil Rytarowski <n54@gmx.com>
3568
3569 * netbsd-nat.h: Include <unistd.h>.
3570 * (netbsd_nat::pid_to_exec_file): Add.
3571 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3572 * (netbsd_nat::pid_to_exec_file) Add.
3573
70b67307
KR
35742020-09-10 Kamil Rytarowski <n54@gmx.com>
3575
3576 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3577
99cf6da6
KR
35782020-09-10 Kamil Rytarowski <n54@gmx.com>
3579
3580 * netbsd-nat.h: New file.
3581 * netbsd-nat.c: Likewise.
3582
1b788fb6
TT
35832020-09-09 Tom Tromey <tromey@adacore.com>
3584
3585 * ada-lang.c (remove_extra_symbols): Do not increment when
3586 removing an element
3587
03b0a45f
TT
35882020-09-08 Tom Tromey <tromey@adacore.com>
3589
3590 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3591
3cae4447
TT
35922020-09-08 Tom Tromey <tromey@adacore.com>
3593
3594 PR win32/25302:
3595 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3596 (gdb_bfd_init_data): New function.
3597 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3598
7f08fd51
TBA
35992020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3600
3601 * infrun.c (fetch_inferior_event): Use
3602 `switch_to_target_no_thread` to switch the target.
3603
3e6ff933
TT
36042020-09-06 Tom Tromey <tom@tromey.com>
3605
3606 * symfile.h (dwarf2_free_objfile): Don't declare.
3607
e56798df
AKS
36082020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3609
3610 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3611 to match 16 byte real/complex type generated by Flang compiler.
3612
8f5c6526
TV
36132020-09-03 Tom de Vries <tdevries@suse.de>
3614
3615 PR breakpoint/26546
3616 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3617 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3618
c5065df0
SM
36192020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3620
3621 * maint.c (index_digits): New function.
3622 (struct maint_print_section_data): Remove.
3623 (print_bfd_section_info): Remove print_data parameter, add arg
3624 and index_digits.
3625 (print_objfile_section_info): Likewise.
3626 (print_bfd_section_info_maybe_relocated): Likewise (plus
3627 objfile).
3628 (maintenance_info_sections): Adjust calls.
3629
02c6f3f1
TT
36302020-09-02 Tom Tromey <tromey@adacore.com>
3631
3632 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3633 for null pointers.
3634 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3635
ef5e5b0b
SM
36362020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3637
3638 * bcache.h (struct bcache) <insert>: Change type of `added` to
3639 pointer to bool.
3640 * bcache.c (bcache::insert): Likewise.
3641 * gdbtypes.c (check_types_worklist): Adjust.
3642 * psymtab.c (add_psymbol_to_bcache): Adjust.
3643
973695d6
KB
36442020-08-31 Kevin Buettner <kevinb@redhat.com>
3645
3646 * corelow.c (unordered_set): Include.
3647 (class core_target): Add field 'm_core_unavailable_mappings'.
3648 (core_target::build_file_mappings): Print only one warning
3649 per inaccessible file. Add unavailable/broken mappings
3650 to m_core_unavailable_mappings.
3651 (core_target::xfer_partial): Call...
3652 (core_target::xfer_memory_via_mappings): New method.
3653
264fc0e2
SM
36542020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3655
3656 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3657 type to bool.
3658
2de01bdb
SM
36592020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3660
3661 * dwarf2/read.c (struct field_info): Fix indentation.
3662
f3bd50f1
SM
36632020-08-31 Simon Marchi <simon.marchi@efficios.com>
3664
3665 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3666 ordering in comment.
3667 * frame.c (frame_id_eq): Fix indentation.
3668
22b9b4b0
SL
36692020-08-31 Scott Linder <scott@scottlinder.com>
3670 Simon Marchi <simon.marchi@efficios.com>
3671
3672 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3673 inline frame ids in outer frame.
3674
84154d16
SM
36752020-08-31 Simon Marchi <simon.marchi@efficios.com>
3676
3677 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3678 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3679 (outer_frame_id): Use FID_STACK_OUTER instead of
3680 FID_STACK_INVALID.
3681 (frame_id_p): Don't check for outer_frame_id.
3682
8efaf6b3
SM
36832020-08-31 Simon Marchi <simon.marchi@efficios.com>
3684
3685 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3686 regnum/frame in value. Call allocate_value_lazy.
3687 * frame.c (frame_unwind_register_value): Use
3688 val_print_not_saved.
3689
fe1fe7ea
SM
36902020-08-31 Simon Marchi <simon.marchi@efficios.com>
3691
3692 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3693
f7c7700d
PA
36942020-08-29 Pedro Alves <pedro@palves.net>
3695
3696 * progspace.c (print_program_space): Use all_inferiors. Switch to
3697 the inferior before calling target_pid_to_str.
3698
e0814aae
TT
36992020-08-28 Tom Tromey <tom@tromey.com>
3700
3701 * xcoffread.c (xcoff_end_psymtab): Update comment.
3702 * dbxread.c (dbx_end_psymtab): Update comment.
3703
626d2320
TV
37042020-08-28 Tom de Vries <tdevries@suse.de>
3705
3706 PR breakpoint/26544
3707 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3708 event_location.
3709 (create_breakpoint): Same.
3710 (base_breakpoint_decode_location): Same.
3711 (bkpt_create_sals_from_location): Same.
3712 (bkpt_decode_location): Same.
3713 (bkpt_probe_create_sals_from_location): Same.
3714 (bkpt_probe_decode_location): Same.
3715 (tracepoint_create_sals_from_location): Same.
3716 (tracepoint_decode_location): Same.
3717 (tracepoint_probe_decode_location): Same.
3718 (strace_marker_create_sals_from_location): Same.
3719 (strace_marker_decode_location): Same.
3720 (create_sals_from_location_default): Same.
3721 (decode_location_default): Same.
3722 * breakpoint.h (struct breakpoint_ops): Same.
3723 (create_breakpoint): Same.
3724 * linespec.h (decode_line_full): Same.
3725 * linespec.c (decode_line_full): Same. Throw error if
3726 result.size () == 0.
3727
df631783
PA
37282020-08-27 Pedro Alves <pedro@palves.net>
3729
3730 PR gdb/26524
3731 * breakpoint.c (until_break_fsm) <location_breakpoint,
3732 caller_breakpoint>: Delete fields.
3733 <breakpoints>: New field.
3734 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3735 two individual breakpoints.
3736 (until_break_fsm::should_stop): Loop over breakpoints in the
3737 breakpoint vector.
3738 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3739 vector.
3740 (until_break_command): Handle location expanding into multiple
3741 sals.
3742
b2b38aa4
PA
37432020-08-27 Pedro Alves <pedro@palves.net>
3744
3745 PR gdb/26523
3746 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3747 bp_until breakpoints user-specified locations. Update intro
3748 comment.
3749
b886559f
SM
37502020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3751
3752 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3753 gdb_bfd_sections): New.
3754 * maint.c (print_bfd_section_info): Change param type to
3755 maint_print_section_data.
3756 (print_objfile_section_info): Likewise.
3757 (print_bfd_section_info_maybe_relocated): Likewise.
3758 (maintenance_info_sections): Use gdb_bfd_sections.
3759
4c6e63bf
SV
37602020-08-25 Shahab Vahedi <shahab@synopsys.com>
3761
3762 * MAINTAINERS: Add ARC target and maintainer.
3763
8d7f0635
AK
37642020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3765
3766 * configure.tgt: ARC support for GNU/Linux.
3767 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3768 * arc-linux-tdep.c: New file.
3769 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3770 * arc-tdep.c (arc_write_pc): Use it.
3771
fdd8731b
SV
37722020-08-25 Shahab Vahedi <shahab@synopsys.com>
3773
3774 * arc-tdep.c (arc_check_for_hardware_loop): New.
3775 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3776
22459524
SV
37772020-08-25 Shahab Vahedi <shahab@synopsys.com>
3778
3779 * arc-tdep.h: Include "gdbarch.h".
3780
995d3a19
SV
37812020-08-25 Shahab Vahedi <shahab@synopsys.com>
3782
3783 * arch/arc.h
3784 (arc_gdbarch_features): New class to stir the selection of target XML.
3785 (arc_create_target_description): Use FEATURES to choose XML target.
3786 (arc_lookup_target_description): Use arc_create_target_description
3787 to create _new_ target descriptions or return the already created
3788 ones if the FEATURES is the same.
3789 * arch/arc.c: Implementation of prototypes described above.
3790 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3791 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3792 * arc-tdep.c (*_feature_name): Make feature names consistent.
3793 (arc_register_feature): A new struct to hold information about
3794 registers of a particular target/feature.
3795 (arc_check_tdesc_feature): Check if XML provides registers in
3796 compliance with ARC_REGISTER_FEATURE structs.
3797 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3798 (determine_*_reg_feature_set): Which feature name to look for.
3799 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3800 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3801 to expected ISA enums to be used in arc_gdbarch_features structs.
3802 * features/Makefile (FEATURE_XMLFILES): Add new files.
3803 * gdb/features/arc/v1-aux.c: New file.
3804 * gdb/features/arc/v1-aux.xml: Likewise.
3805 * gdb/features/arc/v1-core.c: Likewise.
3806 * gdb/features/arc/v1-core.xml: Likewise.
3807 * gdb/features/arc/v2-aux.c: Likewise.
3808 * gdb/features/arc/v2-aux.xml: Likewise.
3809 * gdb/features/arc/v2-core.c: Likewise.
3810 * gdb/features/arc/v2-core.xml: Likewise.
3811 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3812
3945d2d7
GM
38132020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3814 Andrew Burgess <andrew.burgess@embecosm.com>
3815
3816 PR m2/26372
fc5d6901 3817 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3818 an assert. Remove single element array indexing pattern as the
3819 MULTI_SUBSCRIPT support will handle this case too.
3820
2677f2d3
SM
38212020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3822
3823 * value.h (valprint_check_validity): Move declaration from
3824 here...
3825 * valprint.h (valprint_check_validity): ... to here.
3826
c426fddb
SM
38272020-08-24 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * debug.h: New file.
3830 * debug.c (debug_prefixed_vprintf): New function.
3831 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3832 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3833
1eb8556f
SM
38342020-08-24 Simon Marchi <simon.marchi@efficios.com>
3835
3836 * infrun.h (infrun_debug_printf_1): New function declaration.
3837 (infrun_debug_printf): New macro.
3838 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3839 throughout.
3840 (infrun_debug_printf): New function.
3841 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3842 (handle_jit_event): Likewise.
3843
b8fff44e
MW
38442020-08-21 Mark Wielaard <mark@klomp.org>
3845
3846 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3847
d19c3068
SM
38482020-08-22 Simon Marchi <simon.marchi@efficios.com>
3849
3850 * frame.c (enum class frame_id_status): New.
3851 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3852 (fprintf_frame): Update.
3853 (compute_frame_id): Set frame id status to "computing" on entry.
3854 Set it back to "not_computed" on failure and to "computed" on
3855 success.
3856 (get_frame_id): Assert the frame id is not being computed.
3857 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3858 (create_new_frame): Likewise.
3859 (frame_cleanup_after_sniffer): Update assert.
3860
b70e516e
SM
38612020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3862
3863 * regcache.c (pid_ptid_regcache_map): New type.
3864 (target_ptid_regcache_map): Remove.
3865 (target_pid_ptid_regcache_map): New type.
3866 (regcaches): Change type to target_pid_ptid_regcache_map.
3867 (get_thread_arch_aspace_regcache): Update.
3868 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3869 case.
3870 (regcaches_size): Update.
3871 (regcache_count): Update.
3872 (registers_changed_ptid_target_pid_test): New.
3873 (_initialize_regcache): Register new test.
3874
cdd9148a
SM
38752020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3876
3877 * regcache.c (regcache_count): New.
3878 (struct regcache_test_data): New.
3879 (regcache_test_data_up): New.
3880 (populate_regcaches_for_test): New.
3881 (regcaches_test): Remove.
3882 (get_thread_arch_aspace_regcache_test): New.
3883 (registers_changed_ptid_all_test): New.
3884 (registers_changed_ptid_target_test): New.
3885 (registers_changed_ptid_target_ptid_test): New.
3886 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3887 (_initialize_regcache): Register new tests.
3888
dd125343
SM
38892020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3890
3891 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3892 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3893 gdbarch and aspace parameter. Use current inferior's aspace.
3894 Validate regcache's arch value.
3895 (regcaches_test): Update.
3896
3ee93972
SM
38972020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3898
3899 * regcache.c (regcaches_test): Call registers_changed.
3900
33bf4c5c
TBA
39012020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3902
3903 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3904
c2fd7fae
AKS
39052020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3906
3907 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3908 to find the end of prologue for flang compiled binaries.
3909 * arm-tdep.c (arm_skip_prologue): Likewise.
3910 * i386-tdep.c (i386_skip_prologue): Likewise.
3911 * producer.c (producer_is_llvm): New function.
3912 (producer_parsing_tests): Added new tests for clang/flang.
3913 * producer.h (producer_is_llvm): New declaration.
3914
9327494e
SM
39152020-08-18 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * linux-nat.c (linux_nat_debug_printf): New function.
3918 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3919
d138725a
AM
39202020-08-18 Aaron Merey <amerey@redhat.com>
3921
3922 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3923 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3924 (CLIBS): Add DEBUGINFOD_LIBS.
3925
f9b11e6b
ST
39262020-08-17 Sergei Trofimovich <siarheit@google.com>
3927
3928 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3929 'gdbarch_num_regs'.
3930
3ae7ab99
TT
39312020-08-17 Tom Tromey <tromey@adacore.com>
3932
3933 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3934 ada_get_decoded_value returns NULL.
3935
b017825f
TT
39362020-08-17 Tom Tromey <tromey@adacore.com>
3937
3938 * python/py-inferior.c (infpy_search_memory): Use
3939 gdb_py_object_from_ulongest.
3940 * python/py-infevents.c (create_inferior_call_event_object)
3941 (create_memory_changed_event_object): Use
3942 gdb_py_object_from_ulongest.
3943 * python/py-linetable.c (ltpy_entry_get_pc): Use
3944 gdb_py_object_from_ulongest.
3945
7635cf79
SM
39462020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3947
3948 * loc.c (class symbol_needs_eval_context): Fix indentation.
3949
f54be24b
SM
39502020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3951
3952 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3953 bool.
3954
53d5a2a5
TV
39552020-08-17 Tom de Vries <tdevries@suse.de>
3956
3957 PR gdb/26393
3958 * gdbtypes.c (dump_dynamic_prop): New function.
3959 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3960
547ce8f0
TV
39612020-08-15 Tom de Vries <tdevries@suse.de>
3962
3963 PR backtrace/26390
3964 * stack.c (print_frame_args): Temporarily set the selected
3965 frame to FRAME while printing the frame's arguments.
3966
6ea815e7
PFC
39672020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3968
3969 PR breakpoints/26385
3970 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3971 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3972
6e562fa3
PFC
39732020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3974
3975 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3976 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3977 and >= to check return value instead of == -1 and != -1.
3978
d369b608
SM
39792020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3980
3981 * utils.h (class gdb_argv) <as_array_view>: New method.
3982 * utils.c (gdb_argv_as_array_view_test): New.
3983 (_initialize_utils): Register selftest.
3984 * maint.c (maintenance_selftest): Use the new method.
3985
b31488a3
KR
39862020-08-13 Kamil Rytarowski <n54@gmx.com>
3987
3988 * target.h (supports_dumpcore, dumpcore): New
3989 function declarations.
3990 * target.c (supports_dumpcore, dumpcore): New
3991 functions.
3992 * target-delegates.c: Rebuild.
3993 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3994 and target_dumpcore ().
3995
002a3166
AM
39962020-08-13 Aaron Merey <amerey@redhat.com>
3997
3998 * debuginfod-support.c: Replace global variables with user_data.
3999
ece5bc8a
SM
40002020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4001
4002 * maint.c (maintenance_selftest): Split args and pass array_view
4003 to run_tests.
4004
6d8a0a5e
LM
40052020-08-12 Luis Machado <luis.machado@linaro.org>
4006
4007 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4008 type's length.
4009 Use %s and pulongest to print the length.
4010
7cf663a9
PA
40112020-08-12 Pedro Alves <palves@redhat.com>
4012
4013 * NEWS: Move "Multi-target debugging support" item to the
4014 "Changes since GDB 9" section.
4015
27c7b875
PA
40162020-08-12 Pedro Alves <palves@redhat.com>
4017
4018 PR gdb/26336
4019 * progspace.c (program_space::remove_objfile): Invalidate the
4020 frame cache.
4021
1796a2a1
TV
40222020-08-11 Tom de Vries <tdevries@suse.de>
4023
4024 * MAINTAINERS: Mark ms1 as deleted.
4025
f8e3fe0d
LM
40262020-08-10 Luis Machado <luis.machado@linaro.org>
4027
4028 PR gdb/26310
4029
4030 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4031 act accordingly.
4032 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4033 movz/str/stur/stp skipping behavior.
4034
cc308722
LM
40352020-08-10 Luis Machado <luis.machado@linaro.org>
4036
4037 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4038 struct user_sve_header instead of struct sve_context.
4039
041d9819
SM
40402020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * read.h (dwarf2_fetch_die_loc_sect_off,
4043 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4044 `void *` parameter with function_view.
4045 * read.c (dwarf2_fetch_die_loc_sect_off,
4046 dwarf2_fetch_die_loc_cu_off): Likewise.
4047 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4048 (per_cu_dwarf_call): Adjust.
4049 (get_frame_address_in_block_wrapper): Remove.
4050 (indirect_synthetic_pointer): Adjust.
4051 (get_ax_pc): Remove.
4052 (dwarf2_compile_expr_to_ax): Adjust.
4053
38f8aa06
TV
40542020-08-08 Tom de Vries <tdevries@suse.de>
4055
4056 PR build/26344
4057 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4058 constructor.
4059 * regcache.c (get_thread_arch_aspace_regcache): Same.
4060
a52b3ae2
TT
40612020-08-07 Tom Tromey <tromey@adacore.com>
4062
4063 * ravenscar-thread.c
4064 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4065 New method.
4066 (ravenscar_thread_target::wait): Check
4067 runtime_initialized.
4068 (ravenscar_thread_target::prepare_to_store)
4069 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4070 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4071 (ravenscar_thread_target::stopped_by_watchpoint)
4072 (ravenscar_thread_target::stopped_data_address)
4073 (ravenscar_thread_target::core_of_thread): Use
4074 scoped_restore_current_thread and
4075 set_base_thread_from_ravenscar_task.
4076
0e29517d
TT
40772020-08-07 Tom Tromey <tromey@adacore.com>
4078
4079 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4080
592f9bd7
TT
40812020-08-07 Tom Tromey <tromey@adacore.com>
4082
4083 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4084 update_inferior_ptid before update_thread_list.
4085 (temporarily_change_regcache_ptid): New class.
4086 (ravenscar_thread_target::fetch_registers)
4087 (ravenscar_thread_target::store_registers)
4088 (ravenscar_thread_target::prepare_to_store): Use base thread when
4089 forwarding operation.
4090
39e2018a
TT
40912020-08-07 Tom Tromey <tromey@adacore.com>
4092
4093 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4094 "is_pid" case.
4095
2080266b
TT
40962020-08-07 Tom Tromey <tromey@adacore.com>
4097
4098 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4099 New methods.
4100 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4101 first.
4102 (ravenscar_thread_target::add_thread): Rename from
4103 ravenscar_add_thread.
4104 (ravenscar_thread_target::update_thread_list): Use a lambda.
4105 (ravenscar_thread_target::xfer_partial): New method.
4106
78c02f21
TT
41072020-08-07 Tom Tromey <tromey@adacore.com>
4108
4109 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4110 gdb::function_view.
4111 (iterate_over_live_ada_tasks): Change type of argument.
4112 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4113 of argument.
4114
d5d833af
TT
41152020-08-07 Tom Tromey <tromey@adacore.com>
4116
4117 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4118 Remove.
4119 (ravenscar_thread_target::extra_thread_info): Remove.
4120 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4121 defer to target beneath for non-Ravenscar threads.
4122
a8ac85bb
TT
41232020-08-07 Tom Tromey <tromey@adacore.com>
4124
4125 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4126 get_base_thread_from_ravenscar_task>: Now methods.
4127 <m_cpu_map>: New member.
4128 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4129 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4130 (ravenscar_thread_target::task_is_currently_active): Update.
4131 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4132 Now a method.
4133 (ravenscar_thread_target::add_active_thread): Put initial thread
4134 into the m_cpu_map.
4135
550ab58d
TT
41362020-08-07 Tom Tromey <tromey@adacore.com>
4137
4138 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4139 event_ptid.
4140
e9546579
TT
41412020-08-07 Tom Tromey <tromey@adacore.com>
4142
4143 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4144 runtime_initialized.
4145
3d4470e5
TT
41462020-08-07 Tom Tromey <tromey@adacore.com>
4147
4148 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4149 add_active_thread.
4150 (ravenscar_thread_target::add_active_thread): Now public.
4151 (ravenscar_inferior_created): Call add_active_thread after pushing
4152 the target.
4153
888bdb2b
SM
41542020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4155
4156 * regcache.c (ptid_regcache_map): New type.
4157 (target_ptid_regcache_map): New type.
4158 (regcaches): Change type to target_ptid_regcache_map.
4159 (get_thread_arch_aspace_regcache): Update to regcaches' new
4160 type.
4161 (regcache_thread_ptid_changed): Likewise.
4162 (registers_changed_ptid): Likewise.
4163 (regcaches_size): Likewise.
4164 (regcaches_test): Update.
4165 (regcache_thread_ptid_changed): Update.
4166 * regcache.h (regcache_up): New type.
4167 * gdbsupport/ptid.h (hash_ptid): New struct.
4168
b161a60d
SM
41692020-08-07 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * observable.h (thread_ptid_changed): Add parameter
4172 `process_stratum_target *`.
4173 * infrun.c (infrun_thread_ptid_changed): Add parameter
4174 `process_stratum_target *` and use it.
4175 (selftests): New namespace.
4176 (infrun_thread_ptid_changed): New function.
4177 (_initialize_infrun): Register selftest.
4178 * regcache.c (regcache_thread_ptid_changed): Add parameter
4179 `process_stratum_target *` and use it.
4180 (regcache_thread_ptid_changed): New function.
4181 (_initialize_regcache): Register selftest.
4182 * thread.c (thread_change_ptid): Pass target to
4183 thread_ptid_changed observable.
4184
d2854d8d
CT
41852020-08-06 Caroline Tice <cmtice@google.com>
4186
fe4c3d43
SM
4187 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4188 (struct dwp_sections): Update field comments. Add loclists and
4189 rnglists fields.
4190 (struct virtual_v2_dwo_sections): Rename struct to
4191 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4192 size & offset fields for loclists and rnglists.
4193 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4194 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4195 skipping dummy type units.
4196 (create_dwp_hash_table): Update the large comment above the function to
4197 discuss Version 5 DWP files as well, with references. Update all the
4198 version checks in the function to check for version 5 as well. Add new
4199 section at the end to create dwp hash table for version 5.
4200 (create_dwp_v2_section): Rename function to
4201 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4202 Add V5 to error message text.
4203 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4204 into calls to create_dwp_v2_or_v5_section.
4205 (create_dwo_unit_in_dwp_v5): New function.
4206 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4207 check for version2; add else clause to handle version 5.
4208 (open_and_init_dwo_file): Add code to check dwarf version & only call
4209 create_debug_types_hash_table (with sections.types) if version is not 5;
4210 else call create_debug_type_hash_table, with sections.info.
4211 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4212 version 5.
4213 (dwarf2_locate_v5_dwp_sections): New function.
4214 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4215 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4216
159ed7d9
SM
42172020-08-06 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * regcache.h (class regcache): Remove friend
4220 registers_changed_ptid.
4221 <regcache_thread_ptid_changed>: Remove.
4222 <regcaches>: Remove.
4223 * regcache.c (regcache::regcaches): Rename to...
4224 (regcaches): ... this. Make static.
4225 (get_thread_arch_aspace_regcache): Update.
4226 (regcache::regcache_thread_ptid_changed): Rename to...
4227 (regcache_thread_ptid_changed): ... this. Update.
4228 (class regcache_access): Remove.
4229 (regcaches_test): Update.
4230 (_initialize_regcache): Update.
4231 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4232 <forward_list>.
4233
174981ae
SM
42342020-08-06 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * regcache.h (class regcache) <current_regcache>: Rename to...
4237 <regcaches>: ... this. Move doc here.
4238 * regcache.c (regcache::current_regcache) Rename to...
4239 (regcache::regcaches): ... this. Move doc to header.
4240 (get_thread_arch_aspace_regcache): Update.
4241 (regcache::regcache_thread_ptid_changed): Update.
4242 (registers_changed_ptid): Update.
4243 (class regcache_access) <current_regcache_size>: Rename to...
4244 <regcaches_size>: ... this.
4245 (current_regcache_test): Rename to...
4246 (regcaches_test): ... this.
4247 (_initialize_regcache): Update.
4248
ed908db6
VC
42492020-08-06 Victor Collod <vcollod@nvidia.com>
4250
4251 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4252
b5582ab7
KB
42532020-08-05 Kevin Buettner <kevinb@redhat.com>
4254
4255 * corelow.c (core_target::build_file_mappings): Don't output
4256 null pathname in warning.
4257
ea946b86
SM
42582020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4259
4260 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4261 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4262 gdb.dwarf2/dw2-single-line-discriminators.exp,
4263 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4264
57d02173
TT
42652020-08-05 Tom Tromey <tromey@adacore.com>
4266
4267 PR rust/26197:
4268 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4269 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4270 Fix off-by-one and type size errors in ordinary case.
4271
5555c86d
TV
42722020-08-05 Tom de Vries <tdevries@suse.de>
4273
4274 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4275 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4276
97916bfe
SM
42772020-08-04 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * frame.h (frame_id_p): Return bool.
4280 (frame_id_artificial_p): Return bool.
4281 (frame_id_eq): Return bool.
4282 (has_stack_frames): Return bool.
4283 (get_selected_frame): Fix typo in comment.
4284 (get_frame_pc_if_available): Return bool.
4285 (get_frame_address_in_block_if_available): Return bool.
4286 (get_frame_func_if_available): Return bool.
4287 (read_frame_register_unsigned): Return bool.
4288 (get_frame_register_bytes): Return bool.
4289 (safe_frame_unwind_memory): Return bool.
4290 (deprecated_frame_register_read): Return bool.
4291 (frame_unwinder_is): Return bool.
4292 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4293 bool.
4294 <this_id::p>: Likewise.
4295 <prev_p>: Likewise.
4296 (frame_stash_add): Return bool.
4297 (get_frame_id): Use bool.
4298 (frame_id_build_special) Use bool.
4299 (frame_id_build_unavailable_stack): Use bool.
4300 (frame_id_build): Use bool.
4301 (frame_id_p): Return bool, use true/false instead of 1/0.
4302 (frame_id_artificial_p): Likewise.
4303 (frame_id_eq): Likewise.
4304 (frame_id_inner): Likewise.
4305 (get_frame_func_if_available): Likewise.
4306 (read_frame_register_unsigned): Likewise.
4307 (deprecated_frame_register_read): Likewise.
4308 (get_frame_register_bytes): Likewise.
4309 (has_stack_frames): Likewise.
4310 (inside_main_func): Likewise.
4311 (inside_entry_func): Likewise.
4312 (get_frame_pc_if_available): Likewise.
4313 (get_frame_address_in_block_if_available): Likewise.
4314 (frame_unwinder_is): Likewise.
4315 (safe_frame_unwind_memory): Likewise.
4316 (frame_unwind_arch): Likewise.
4317
fedfee88
SM
43182020-08-04 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4321 type to cached_copy_status.
4322 (fprintf_frame): Adjust.
4323 (get_frame_func_if_available): Adjust.
4324 (frame_cleanup_after_sniffer): Adjust.
4325
6cfa9b59
MW
43262020-08-04 Mark Wielaard <mark@klomp.org>
4327
4328 * MAINTAINERS (Write After Approval): Update email address.
4329
66d6346b
SM
43302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4331
4332 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4333 dynamic_prop::const_val.
4334
8a6d5e35
SM
43352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4336
4337 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4338 dynamic_prop::kind.
4339
51d6067d
SM
43402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4341
4342 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4343
b26e2ae7
JM
43442020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4345
4346 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4347
39791af2
JM
43482020-08-04 Weimin Pan <weimin.pan@oracle.com>
4349 Jose E. Marchesi <jose.marchesi@oracle.com>
4350
4351 * configure.tgt: Add entry for bpf-*-*.
4352 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4353 (ALLDEPFILES): Add bpf-tdep.c.
4354 * bpf-tdep.c: New file.
4355 * MAINTAINERS: Add bpf target and maintainer.
4356 * NEWS: Mention the support for the new target.
4357
521894aa
TV
43582020-08-04 Tom de Vries <tdevries@suse.de>
4359
4360 PR symtab/23270
4361 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4362 Error.
4363
5d6356e9
JB
43642020-08-03 John Baldwin <jhb@FreeBSD.org>
4365
4366 * syscalls/freebsd.xml: Regenerate.
4367
0cf82b81
JB
43682020-08-03 John Baldwin <jhb@FreeBSD.org>
4369
4370 * syscalls/update-freebsd.sh: Fix usage and year range.
4371
8f34b746
TV
43722020-08-03 Tom de Vries <tdevries@suse.de>
4373
4374 PR symtab/26333
4375 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4376 DW_LNE_lo_user/DW_LNE_hi_user range.
4377
5e500d33
SM
43782020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4379
4380 PR ada/26318
4381 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4382 kind.
4383
78319c15
TBA
43842020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4385
4386 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4387
4c55e970
TBA
43882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4389
4390 * breakpoint.c (set_breakpoint_condition): Update the condition
4391 expressions after checking that the input condition string parses
4392 successfully and does not contain junk at the end.
4393
1e620590
TBA
43942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4395
4396 * breakpoint.c (set_breakpoint_condition): Update the
4397 condition string after parsing the new condition successfully.
4398
c8693053
RO
43992020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4400
4401 * proc-api.c (_STRUCTURED_PROC): Don't define.
4402 * proc-events.c: Likewise.
4403 * proc-flags.c: Likewise.
4404 * proc-why.c: Likewise.
4405 * procfs.c: Likewise.
4406
4407 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4408 * configure, config.in: Regenerate.
4409
5a99adb8
TV
44102020-07-30 Tom de Vries <tdevries@suse.de>
4411
4412 PR build/26320
4413 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4414 m_red/m_green/m_blue in a union.
4415
8ba83e91
TV
44162020-07-29 Tom de Vries <tdevries@suse.de>
4417
4418 PR tdep/26280
4419 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4420
f75a0693
AB
44212020-07-28 Tom Tromey <tromey@adacore.com>
4422
4423 PR symtab/26270:
4424 * symtab.h (find_pc_partial_function_sym): Declare.
4425 * cli/cli-cmds.c (disassemble_command): Use
4426 find_pc_partial_function_sym. Check asm_demangle.
4427 * blockframe.c (cache_pc_function_sym): New global.
4428 (cache_pc_function_name): Remove.
4429 (clear_pc_function_cache): Update.
4430 (find_pc_partial_function_sym): New function, from
4431 find_pc_partial_function.
4432 (find_pc_partial_function): Rewrite using
4433 find_pc_partial_function_sym.
4434
16f3242c
TT
44352020-07-28 Tom Tromey <tromey@adacore.com>
4436
4437 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4438 help. Add usage.
4439
4888741a
TT
44402020-07-28 Tom Tromey <tromey@adacore.com>
4441
4442 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4443 <DW_OP_GNU_variable_value>: Cast to address type.
4444
4d46f402
KR
44452020-07-28 Kamil Rytarowski <n54@gmx.com>
4446
4447 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4448 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4449 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4450 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4451 (nbsd_get_siginfo_type): New.
4452 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4453 (_initialize_nbsd_tdep): New.
4454
d70f978b
L
44552020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4456
4457 PR binutils/26301
4458 * configure: Regenerated.
4459
377170fa
L
44602020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4461
4462 PR binutils/26301
4463 * configure: Regenerated.
4464
43d5901d
AB
44652020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4466
4467 * python/py-frame.c: Remove 'user-regs.h' include.
4468 (frapy_read_register): Rewrite to make use of
4469 gdbpy_parse_register_id.
4470 * python/py-registers.c (gdbpy_parse_register_id): New function,
4471 moved here from python/py-unwind.c. Updated the return type, and
4472 also accepts register descriptor objects.
4473 * python/py-unwind.c: Remove 'user-regs.h' include.
4474 (pyuw_parse_register_id): Moved to python/py-registers.c.
4475 (unwind_infopy_add_saved_register): Update to use
4476 gdbpy_parse_register_id.
4477 (pending_framepy_read_register): Likewise.
4478 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4479
14fa8fb3
AB
44802020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4481
4482 * python/py-registers.c: Add 'user-regs.h' include.
4483 (register_descriptor_iter_find): New function.
4484 (register_descriptor_iterator_object_methods): New static global
4485 methods array.
4486 (register_descriptor_iterator_object_type): Add pointer to methods
4487 array.
4488
ddce1758
JB
44892020-07-27 John Baldwin <jhb@FreeBSD.org>
4490
4491 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4492 for all architectures on FreeBSD 11.3 and later.
4493
a4089f52
TT
44942020-07-27 Tom Tromey <tromey@adacore.com>
4495
4496 * gcore.h (load_corefile): Don't declare.
4497
95420d30
TV
44982020-07-27 Tom de Vries <tdevries@suse.de>
4499
4500 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4501 * config.in: Regenerate.
4502 * configure: Regenerate.
4503
05a6b8c2
EZ
45042020-07-26 Eli Zaretskii <eliz@gnu.org>
4505
4506 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4507 ws2tcpip.h. When checking whether socklen_t type is defined, use
4508 ws2tcpip.h if it is available and sys/socket.h isn't.
4509 * configure: Regenerate.
4510 * config.in: Regenerate.
4511
e79eb02f
AB
45122020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4513
4514 PR fortran/23051
4515 PR fortran/26139
4516 * valops.c (value_ind): Pass address to
4517 readjust_indirect_value_type.
4518 * value.c (readjust_indirect_value_type): Make parameter
4519 non-const, and add extra address parameter. Resolve original type
4520 before using it.
4521 * value.h (readjust_indirect_value_type): Update function
4522 signature and comment.
4523
876518dd
TV
45242020-07-25 Tom de Vries <tdevries@suse.de>
4525
4526 PR symtab/26243
4527 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4528 entries.
4529
f6720b1c
AM
45302020-07-24 Aaron Merey <amerey@redhat.com>
4531
4532 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4533 * configure: Rebuild.
4534
513487e1
KB
45352020-07-23 Kevin Buettner <kevinb@redhat.com>
4536
4537 PR corefiles/26294
4538 * corelow.c (_initialize_corelow): Add period to help text
4539 for "maintenance print core-file-backed-mappings".
4540
e7bc9db8
PA
45412020-07-23 Pedro Alves <pedro@palves.net>
4542
4543 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4544 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4545 meanwhile.
4546 * frame.c (frame_cache_generation, get_frame_cache_generation):
4547 New.
4548 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4549 (get_prev_frame_if_no_cycle): On exception, don't touch
4550 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4551 * frame.h (get_frame_cache_generation): Declare.
4552
90fcc466
TV
45532020-07-23 Tom de Vries <tdevries@suse.de>
4554
4555 PR tui/26282
4556 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4557 New default constructor.
4558
78344df7
AB
45592020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4560
4561 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4562 exclude non-statement entries.
4563
b089853a
KB
45642020-07-22 Kevin Buettner <kevinb@redhat.com>
4565
4566 * NEWS (New commands): Mention new command
4567 "maintenance print core-file-backed-mappings".
4568
09c2f5d4
KB
45692020-07-22 Kevin Buettner <kevinb@redhat.com>
4570
4571 * corelow.c (gdbcmd.h): Include.
4572 (core_target::info_proc_mappings): New method.
4573 (get_current_core_target): New function.
4574 (maintenance_print_core_file_backed_mappings): New function.
4575 (_initialize_corelow): Add core-file-backed-mappings to
4576 "maint print" commands.
4577
9c5ec5c2 45782020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4579
9c5ec5c2
KB
4580 * linux-tdep.c (dump_note_entry_p): New function.
4581 (linux_dump_mapping_p_ftype): New typedef.
4582 (linux_find_memory_regions_full): Add new parameter,
4583 should_dump_mapping_p.
4584 (linux_find_memory_regions): Adjust call to
4585 linux_find_memory_regions_full.
4586 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4587 call to linux_find_memory_regions_full.
4588
db082f59
KB
45892020-07-22 Kevin Buettner <kevinb@redhat.com>
4590
4591 * corelow.c (solist.h, unordered_map): Include.
4592 (class core_target): Add field m_core_file_mappings and
4593 method build_file_mappings.
4594 (core_target::core_target): Call build_file_mappings.
4595 (core_target::~core_target): Free memory associated with
4596 m_core_file_mappings.
4597 (core_target::build_file_mappings): New method.
4598 (core_target::xfer_partial): Use m_core_file_mappings
4599 for memory transfers.
4600 * linux-tdep.c (linux_read_core_file_mappings): New
4601 function.
4602 (linux_core_info_proc_mappings): Rewrite to use
4603 linux_read_core_file_mappings.
4604 (linux_init_abi): Register linux_read_core_file_mappings.
4605
7e183d27
KB
46062020-07-22 Kevin Buettner <kevinb@redhat.com>
4607
4608 * arch-utils.c (default_read_core_file_mappings): New function.
4609 * arch-utils.c (default_read_core_file_mappings): Declare.
4610 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4611 * gdbarch.h, gdbarch.c: Regenerate.
4612
2735d421
KB
46132020-07-22 Kevin Buettner <kevinb@redhat.com>
4614
4615 PR corefiles/25631
4616 * corelow.c (core_target:xfer_partial): Revise
4617 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4618 case after first checking the stratum beneath the core
4619 target.
4620 (has_all_memory): Return true.
4621 * target.c (raw_memory_xfer_partial): Revise comment
4622 regarding use of has_all_memory.
4623
e56cb451
KB
46242020-07-22 Kevin Buettner <kevinb@redhat.com>
4625
4626 * exec.h (section_table_xfer_memory): Revise declaration,
4627 replacing section name parameter with an optional callback
4628 predicate.
4629 * exec.c (section_table_xfer_memory): Likewise.
4630 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4631 of section_table_xfer_memory.
4632
32fa152e
TT
46332020-07-22 Tom Tromey <tromey@adacore.com>
4634
4635 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4636 lookup_symbol_search_name.
4637
a67a1c41
AB
46382020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4639
4640 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4641 redundant local variable.
4642 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4643 reference, not pointer, update code accordingly.
4644
a7b4ff4f
SM
46452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4646 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4647
4648 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4649 * jit.c (jit_breakpoint_re_set_internal): Use the
4650 `skip_jit_symbol_lookup` field.
4651
2340e834
SM
46522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4653 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4654
4655 * jit.c (jit_read_descriptor): Define the descriptor address once,
4656 use twice.
4657 (jit_breakpoint_deleted): Move the declaration of the loop variable
4658 `iter` into the loop header.
4659 (jit_breakpoint_re_set_internal): Move the declaration of the local
4660 variable `objf_data` to the first point of definition.
4661 (jit_event_handler): Move the declaration of local variables
4662 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4663 Rename `objf` to `jited`.
4664
c1072906
SM
46652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4666
4667 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4668 Remove.
4669 * jit.c (get_jiter_objfile_data): Update.
4670
c8474dc3
TBA
46712020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4672 Simon Marchi <simon.marchi@polymtl.ca>
4673
4674 * jit.c (struct jit_program_space_data): Remove.
4675 (jit_program_space_key): Remove.
4676 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4677 stuff.
4678 (get_jit_program_space_data): Remove.
4679 (jit_breakpoint_deleted): Iterate on all of the program space's
4680 objfiles.
4681 (jit_inferior_init): Likewise.
4682 (jit_breakpoint_re_set_internal): Likewise. Also change return
4683 type to void.
4684 (jit_breakpoint_re_set): Pass current_program_space to
4685 jit_breakpoint_re_set_internal.
4686
77208eb7
SM
46872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4688
4689 * jit.h (struct jiter_objfile_data) <cached_code_address,
4690 jit_breakpoint>: Move to here from ...
4691 * jit.c (jit_program_space_data): ... here.
4692 (jiter_objfile_data::~jiter_objfile_data): Update.
4693 (jit_breakpoint_deleted): Update.
4694 (jit_breakpoint_re_set_internal): Update.
4695
8c1c720f
SM
46962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4697
4698 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4699 checks.
4700 (jit_read_descriptor): Remove NULL check.
4701 (jit_event_handler): Add an assertion.
4702
0e74a041
SM
47032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4704
4705 * jit.h (struct jit_objfile_data): Split into...
4706 (struct jiter_objfile_data): ... this ...
4707 (struct jited_objfile_data): ... and this.
4708 * objfiles.h (struct objfile) <jit_data>: Remove.
4709 <jiter_data, jited_data>: New fields.
4710 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4711 (jiter_objfile_data::~jiter_objfile_data): ... this.
4712 (get_jit_objfile_data): Rename to ...
4713 (get_jiter_objfile_data): ... this.
4714 (add_objfile_entry): Update.
4715 (jit_read_descriptor): Use get_jiter_objfile_data.
4716 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4717 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4718 (jit_inferior_exit_hook): Use objfile's jited_data field.
4719
238b5c9f
SM
47202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4721
4722 * jit.h: Forward-declare `struct minimal_symbol`.
4723 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4724 constructor, destructor, and an objfile* field.
4725 * jit.c (jit_objfile_data): Remove.
4726 (struct jit_objfile_data): Migrate from here to jit.h.
4727 (jit_objfile_data::~jit_objfile_data): New destructor
4728 implementation with code moved from free_objfile_data.
4729 (free_objfile_data): Delete.
4730 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4731 (jit_find_objf_with_entry_addr): Ditto.
4732 (jit_inferior_exit_hook): Ditto.
4733 (_initialize_jit): Remove the call to
4734 register_objfile_data_with_cleanup.
4735 * objfiles.h (struct objfile) <jit_data>: New field.
4736
fe053b9e
TBA
47372020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4738
4739 * jit.h: Forward-declare `struct objfile`.
4740 (jit_event_handler): Add a second parameter, the JITer objfile.
4741 * jit.c (jit_read_descriptor): Change the signature to take the
4742 JITer objfile as an argument instead of the jit_program_space_data.
4743 (jit_inferior_init): Update the call to jit_read_descriptor.
4744 (jit_event_handler): Use the new JITer objfile argument when calling
4745 jit_read_descriptor.
4746 * breakpoint.c (handle_jit_event): Update the call to
4747 jit_event_handler to pass the JITer objfile.
4748
4cec0c66
JB
47492020-07-21 John Baldwin <jhb@FreeBSD.org>
4750
4751 * gdbarch.c: Regenerate.
4752 * gdbarch.h: Regenerate.
4753 * gdbarch.sh (handle_segmentation_fault): Remove method.
4754 * infrun.c (handle_segmentation_fault): Remove.
4755 (print_signal_received_reason): Remove call to
4756 handle_segmentation_fault.
4757
0e42f66a
JB
47582020-07-21 John Baldwin <jhb@FreeBSD.org>
4759
4760 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4761 Rename to sparc64_linux_report_signal_info and add siggnal
4762 argument.
4763 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4764 instead of sparc64_linux_handle_segmentation_fault.
4765
77bdfeb2
JB
47662020-07-21 John Baldwin <jhb@FreeBSD.org>
4767
4768 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4769 i386_linux_report_signal_info instead of
4770 i386_linux_handle_segmentation_fault.
4771 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4772 to i386_linux_report_signal_info and add siggnal argument.
4773 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4774 of i386_linux_handle_segmentation_fault.
4775 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4776 to i386_linux_report_signal_info and add siggnal argument.
4777
ad97bfc5
JB
47782020-07-21 John Baldwin <jhb@FreeBSD.org>
4779
4780 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4781 hook if present.
4782
272bb05c
JB
47832020-07-21 John Baldwin <jhb@FreeBSD.org>
4784
4785 * gdbarch.c: Regenerate.
4786 * gdbarch.h: Regenerate.
4787 * gdbarch.sh (report_signal_info): New method.
4788 * infrun.c (print_signal_received_reason): Invoke gdbarch
4789 report_signal_info hook if present.
4790
baf8791e
AB
47912020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4792
4793 * python/py-registers.c : Add 'unordered_map' include.
4794 (gdbpy_new_reggroup): Renamed to...
4795 (gdbpy_get_reggroup): ...this. Update to only create register
4796 group descriptors when needed.
4797 (gdbpy_reggroup_iter_next): Update.
4798
f7306dac
AB
47992020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4800
4801 * python/py-registers.c (gdbpy_register_object_data): New static
4802 global.
4803 (gdbpy_register_object_data_init): New function.
4804 (gdbpy_new_register_descriptor): Renamed to...
4805 (gdbpy_get_register_descriptor): ...this, and update to reuse
4806 existing register descriptors where possible.
4807 (gdbpy_register_descriptor_iter_next): Update.
4808 (gdbpy_initialize_registers): Register new gdbarch data.
4809
05c309a8
SM
48102020-07-21 Simon Marchi <simon.marchi@efficios.com>
4811
4812 * linux-nat.c (stopped_pids): Make static.
4813
d1fd641e
SM
48142020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4815
4816 PR ada/26235
4817 * gdbtypes.c (ada_discrete_type_low_bound,
4818 ada_discrete_type_high_bound): Handle undefined bounds.
4819
1de14d77
KR
48202020-07-21 Kamil Rytarowski <n54@gmx.com>
4821
4822 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4823 declaration.
4824 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4825 function.
4826
ed810cc7
JB
48272020-07-20 John Baldwin <jhb@FreeBSD.org>
4828
4829 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4830 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4831 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4832 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4833 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4834 method.
4835
ae5369e7
LC
48362020-07-20 Ludovic Courtès <ludo@gnu.org>
4837
4838 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4839 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4840 which are deprecated in Guile 3.0.
4841 * configure.ac (try_guile_versions): Add "guile-3.0".
4842 * configure (try_guile_versions): Regenerate.
4843 * NEWS: Update entry.
4844
68cf161c
LC
48452020-07-20 Ludovic Courtès <ludo@gnu.org>
4846 Doug Evans <dje@google.com>
4847
4848 PR gdb/21104
4849 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4850 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4851 USING_GUILE_BEFORE_2_2.
4852 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4853 Change type to 'scm_t_port_type *'.
4854 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4855 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4856 parameter and honor it. Update callers.
4857 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4858 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4859 functions.
4860 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4861 USING_GUILE_BEFORE_2_2.
4862 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4863 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4864 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4865 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4866 and 'SCM_PORT_TYPE'.
4867 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4868 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4869 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4870 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4871 [!USING_GUILE_BEFORE_2_2]: New functions.
4872 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4873 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4874 'gdbscm_memory_port_read'.
4875 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4876 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4877 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4878 function.
4879 (ioscm_init_memory_port): Remove.
4880 (ioscm_init_memory_port_stream): New function
4881 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4882 function.
4883 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4884 Return scm_from_uint (0).
4885 (gdbscm_set_memory_port_read_buffer_size_x)
4886 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4887 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4888 Return scm_from_uint (0).
4889 (gdbscm_set_memory_port_write_buffer_size_x)
4890 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4891 * configure.ac (try_guile_versions): Add "guile-2.2".
4892 * configure: Regenerate.
4893 * NEWS: Add entry.
4894
aee91db3
TT
48952020-07-18 Tom Tromey <tom@tromey.com>
4896
4897 * linux-nat.c (linux_multi_process): Remove.
4898 (linux_nat_target::supports_multi_process): Return true.
4899
0e267416
AB
49002020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4901
4902 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4903 (riscv_lookup_target_description): Return pointer out of
4904 unique_ptr.
4905 * target-descriptions.c (allocate_target_description): Add
4906 comment.
4907 (target_desc_deleter::operator()): Likewise.
4908 * target-descriptions.h (struct target_desc_deleter): Moved to
4909 gdbsupport/tdesc.h.
4910 (target_desc_up): Likewise.
4911
f80c8ec4
TT
49122020-07-17 Tom Tromey <tromey@adacore.com>
4913
4914 * linux-nat.c (linux_nat_target::supports_non_stop)
4915 (linux_nat_target::always_non_stop_p): Use "true".
4916 (linux_nat_target::supports_disable_randomization): Use "true" and
4917 "false".
4918
d0ce17d8
CT
49192020-07-16 Caroline Tice <cmtice@google.com>
4920
4921 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4922 (RNGLIST_HEADER_SIZE64): New constant definition.
4923 (struct dwop_section_names): Add rnglists_dwo.
4924 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4925 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4926 (struct dwo_sections): Add rnglists field.
4927 (read_attribut_reprocess): Add tag parameter.
4928 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4929 (cu_debug_rnglists_section): New function (decl & definition).
4930 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4931 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4932 die whose range is being checked; get rnglist section from
4933 cu_debug_rnglists_section, to get from either objfile or dwo file as
4934 appropriate. Add cases for DW_RLE_base_addressx,
4935 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4936 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4937 test inside if-condition and updating complaint message.
4938 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4939 dwarf2_rnglists_process.
4940 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4941 dwarf2_ranges_process.
4942 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4943 need_ranges_base and update comment appropriately. Also pass die tag
4944 to dwarf2_ranges_read.
4945 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4946 need_ranges_base and update comment appropriately. Also pass die tag
4947 to dwarf2_ranges_process.
4948 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4949 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4950 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4951 need_ranges_base and update comment appropriately. Also pass die tag
4952 to read_attribute_reprocess and dwarf2_ranges_read.
4953 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4954 and update function comment appropriately.
4955 (read_loclist_index): Call read_loclists_rnglists_header instead of
4956 read_loclist_header.
4957 (read_rnglist_index): New function.
4958 (read_attribute_reprocess): Add tag parameter. Add code for
4959 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4960 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4961
3dcc261c
AB
49622020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4963
4964 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4965 being resolved.
4966
ccb9eba6
AB
49672020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * arch-utils.c (show_architecture): Update formatting of messages.
4970
cf88be68
SM
49712020-07-12 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * gdbtypes.h (struct type) <bounds>: Handle array and string
4974 types.
4975 * ada-lang.c (assign_aggregate): Use type::bounds on
4976 array/string type.
4977 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4978 * c-varobj.c (c_number_of_children): Likewise.
4979 (c_describe_child): Likewise.
4980 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4981 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4982 (f_type_print_base): Likewise.
4983 * f-valprint.c (f77_array_offset_tbl): Likewise.
4984 (f77_get_upperbound): Likewise.
4985 (f77_print_array_1): Likewise.
4986 * guile/scm-type.c (gdbscm_type_range): Likewise.
4987 * m2-typeprint.c (m2_array): Likewise.
4988 (m2_is_long_set_of_type): Likewise.
4989 * m2-valprint.c (get_long_set_bounds): Likewise.
4990 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4991 * python/py-type.c (typy_range): Likewise.
4992 * rust-lang.c (rust_internal_print_type): Likewise.
4993 * type-stack.c (type_stack::follow_types): Likewise.
4994 * valarith.c (value_subscripted_rvalue): Likewise.
4995 * valops.c (value_cast): Likewise.
4996
509971ae
SM
49972020-07-12 Simon Marchi <simon.marchi@efficios.com>
4998
4999 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5000 callers to use the equivalent accessor methods.
5001
107406b7
SM
50022020-07-12 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5005 (struct type) <bit_stride>: New method.
5006 (TYPE_BIT_STRIDE): Remove.
5007 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5008
bb789949
SM
50092020-07-12 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5012 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5013 callers to use the equivalent accessor methods instead.
5014
39498edb
SM
50152020-07-12 Simon Marchi <simon.marchi@efficios.com>
5016
5017 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5018 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5019 callers to use the equivalent accessor methods instead.
5020
3b606f38
SM
50212020-07-12 Simon Marchi <simon.marchi@efficios.com>
5022
5023 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5024 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5025 to use dynamic_prop::kind.
5026
064d9cb9
SM
50272020-07-12 Simon Marchi <simon.marchi@efficios.com>
5028
5029 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5030 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5031 to get the bound property's kind and check against
5032 PROP_UNDEFINED.
5033
5537ddd0
SM
50342020-07-12 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5037 all callers to use type::range_bounds followed by
5038 dynamic_prop::{low,high}.
5039
8c2e4e06
SM
50402020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5041
5042 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5043 const_val, set_const_val, baton, set_locexpr, set_loclist,
5044 set_addr_offset, variant_parts, set_variant_parts,
5045 original_type, set_original_type>: New methods.
5046 <kind>: Rename to...
5047 <m_kind>: ... this. Update all users to use the new methods
5048 instead.
5049 <data>: Rename to...
5050 <m_data>: ... this. Update all users to use the new methods
5051 instead.
5052
7c6f2712
SM
50532020-07-12 Simon Marchi <simon.marchi@efficios.com>
5054
5055 * gdbtypes.c (get_discrete_bounds): Return failure if
5056 the range type's bounds are not both defined and constant
5057 values.
5058 (get_array_bounds): Update comment. Remove undefined bound check.
5059
599088e3
SM
50602020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5061
5062 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5063 the type::bounds method directly.
5064
c4dfcb36
SM
50652020-07-12 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5068 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5069 are used to set the range type's bounds to use set_bounds.
5070
0a278aa7
PW
50712020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5072
5073 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5074
cce20f10
PA
50752020-07-10 Pedro Alves <pedro@palves.net>
5076
5077 * gdbthread.h (inferior_ref): Define.
5078 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5079 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5080 * thread.c
5081 (scoped_restore_current_thread::restore):
5082 Adjust to gdb::ref_ptr.
5083 (scoped_restore_current_thread::~scoped_restore_current_thread):
5084 Remove manual decref handling.
5085 (scoped_restore_current_thread::scoped_restore_current_thread):
5086 Adjust to use
5087 inferior_ref::new_reference/thread_info_ref::new_reference.
5088 Incref the thread before calling get_frame_id instead of after.
5089 Let TARGET_CLOSE_ERROR propagate.
5090
6d7aa592
PA
50912020-07-10 Pedro Alves <pedro@palves.net>
5092
5093 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5094 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5095 NOT_AVAILABLE_ERROR.
5096 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5097 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5098
b3e3a4c1
SM
50992020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5100 Pedro Alves <pedro@palves.net>
5101
5102 PR gdb/26199
5103 * infrun.c (threads_are_resumed_pending_p): Delete.
5104 (do_target_wait): Remove threads_are_executing and
5105 threads_are_resumed_pending_p checks from the inferior_matches
5106 lambda. Update comments.
5107
d6cc5d98
PA
51082020-07-10 Pedro Alves <pedro@palves.net>
5109
5110 PR gdb/26199
5111 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5112 executing threads.
5113
7d3badc6
PA
51142020-07-10 Pedro Alves <pedro@palves.net>
5115
5116 PR gdb/26199
5117 * infrun.c (handle_no_resumed): Handle multiple targets.
5118
42bd97a6
PA
51192020-07-10 Pedro Alves <pedro@palves.net>
5120
5121 PR gdb/26199
5122 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5123 target_is_async_p.
5124
43667cc6
PA
51252020-07-10 Pedro Alves <pedro@palves.net>
5126
5127 PR gdb/26199
5128 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5129 threads, not all threads.
5130
96118d11
PA
51312020-07-10 Pedro Alves <pedro@palves.net>
5132
5133 PR gdb/26199
5134 * remote.c (remote_target::open_1): Pass remote target pointer as
5135 data to create_async_event_handler.
5136 (remote_async_inferior_event_handler): Mark async event handler
5137 before returning if the remote target still has either pending
5138 events or unacknowledged notifications.
5139
54904d81
JB
51402020-07-10 John Baldwin <jhb@FreeBSD.org>
5141
5142 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5143 declaration.
5144 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5145 function.
5146
f37e5866
JB
51472020-07-09 John Baldwin <jhb@FreeBSD.org>
5148
5149 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5150 inferior_ptid.
5151
fc238d4a
JB
51522020-07-09 John Baldwin <jhb@FreeBSD.org>
5153
5154 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5155 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5156 AT_FREEBSD_PS_STRINGS.
5157
6e2469ff
HD
51582020-07-08 Hannes Domani <ssbssa@yahoo.de>
5159
5160 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5161 of debugfile path on Windows.
5162
d1076c41
JB
51632020-07-08 John Baldwin <jhb@FreeBSD.org>
5164
5165 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5166 argument to 'data'.
5167
15f3b077
TT
51682020-07-08 Tom Tromey <tromey@adacore.com>
5169
5170 * ada-lang.c (ada_exception_message_1): Use read_memory.
5171
9fc501fd
AB
51722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5173
5174 PR python/22748
5175 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5176 special handling for inline frames.
5177 * findvar.c (value_of_register_lazy): Skip inline frames when
5178 creating lazy register values.
5179 * frame.c (frame_id_computed_p): Delete definition.
5180 * frame.h (frame_id_computed_p): Delete declaration.
5181
64cb3757
AB
51822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5183
5184 * NEWS: Mention additions to Python API.
5185 * python/py-arch.c (archpy_register_groups): New function.
5186 (arch_object_methods): Add 'register_groups' method.
5187 * python/py-registers.c (reggroup_iterator_object): New struct.
5188 (reggroup_object): New struct.
5189 (gdbpy_new_reggroup): New function.
5190 (gdbpy_reggroup_to_string): New function.
5191 (gdbpy_reggroup_name): New function.
5192 (gdbpy_reggroup_iter): New function.
5193 (gdbpy_reggroup_iter_next): New function.
5194 (gdbpy_new_reggroup_iterator): New function
5195 (gdbpy_initialize_registers): Register new types.
5196 (reggroup_iterator_object_type): Define new Python type.
5197 (gdbpy_reggroup_getset): New static global.
5198 (reggroup_object_type): Define new Python type.
5199 * python/python-internal.h
5200
0f767f94
AB
52012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5202
5203 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5204 * python/py-arch.c (archpy_registers): New function.
5205 (arch_object_methods): Add 'registers' method.
5206 * python/py-registers.c: New file.
5207 * python/python-internal.h
5208 (gdbpy_new_register_descriptor_iterator): Declare.
5209 (gdbpy_initialize_registers): Declare.
5210 * python/python.c (do_start_initialization): Call
5211 gdbpy_initialize_registers.
5212 * NEWS: Mention additions to the Python API.
5213
87dbc774
AB
52142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5215
5216 * NEWS: Mention new Python API method.
5217 * python/py-unwind.c (pending_framepy_architecture): New function.
5218 (pending_frame_object_methods): Add architecture method.
5219
3bc98c0c
AB
52202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5221
5222 * gdbarch.c: Regenerate.
5223 * gdbarch.h: Regenerate.
5224 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5225 (gdbarch_data): Use internal_error for the case where
5226 deprecated_set_gdbarch_data was originally needed.
5227 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5228 and use passed in obstack.
5229 (libunwind_frame_set_descr): Should no longer get back NULL from
5230 gdbarch_data.
5231 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5232 type.
5233 * user-regs.c (user_regs_init): Update parameters, and use passed
5234 in obstack.
5235 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5236 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5237
d8cc8af6
TV
52382020-07-06 Tom de Vries <tdevries@suse.de>
5239
5240 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5241 End-Of-Sequence in lte_is_less_than.
5242 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5243 "gdb: Don't reorder line table entries too much when sorting".
5244
947f7597
TV
52452020-07-06 Tom de Vries <tdevries@suse.de>
5246
5247 PR tui/26205
5248 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5249
1e7c1b22
TV
52502020-07-05 Tom de Vries <tdevries@suse.de>
5251
5252 PR build/26187
5253 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5254 std::uncaught_exceptions instead of deprecated
5255 std::uncaught_exception.
5256
a36158ec
SM
52572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5258
5259 * macroexp.h (macro_stringify): Return
5260 gdb::unique_xmalloc_ptr<char>.
5261 * macroexp.c (macro_stringify): Likewise.
5262 * macrotab.c (fixup_definition): Update.
5263
14d960c8
SM
52642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5265
5266 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5267 (lex_one_token): Update.
5268 * macroexp.c (struct macro_buffer) <release>: Return
5269 gdb::unique_xmalloc_ptr<char>.
5270 (macro_stringify): Update.
5271 (macro_expand): Update.
5272 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5273 * macroexp.h (macro_expand_next): Likewise.
5274
211d5b1c
SM
52752020-07-02 Simon Marchi <simon.marchi@efficios.com>
5276
5277 * macroexp.h (macro_lookup_ftype): Remove.
5278 (macro_expand, macro_expand_once, macro_expand_next): Remove
5279 lookup function parameters, add scope parameter.
5280 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5281 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5282 * macroscope.h (standard_macro_lookup): Change parameter type
5283 to macro_scope.
5284 * macroscope.c (standard_macro_lookup): Likewise.
5285 * c-exp.y (lex_one_token): Update.
5286 * macrocmd.c (macro_expand_command): Likewise.
5287 (macro_expand_once_command): Likewise.
5288
b1a35af2
SM
52892020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5290
5291 * inf-loop.c (inferior_event_handler): Remove client_data param.
5292 * inf-loop.h (inferior_event_handler): Likewise.
5293 * infcmd.c (step_1): Adjust.
5294 * infrun.c (proceed): Adjust.
5295 (fetch_inferior_event): Remove client_data param.
5296 (infrun_async_inferior_event_handler): Adjust.
5297 * infrun.h (fetch_inferior_event): Remove `void *` param.
5298 * linux-nat.c (handle_target_event): Adjust.
5299 * record-btrace.c (record_btrace_handle_async_inferior_event):
5300 Adjust.
5301 * record-full.c (record_full_async_inferior_event_handler):
5302 Adjust.
5303 * remote.c (remote_async_inferior_event_handler): Adjust.
5304
1cdf9e33
TT
53052020-07-01 Tom Tromey <tom@tromey.com>
5306
5307 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5308 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5309
32c1e210
TT
53102020-07-01 Tom Tromey <tom@tromey.com>
5311
5312 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5313 tui_gen_win_info.
5314 (tui_win_info::make_window): Merge with
5315 tui_gen_win_info::make_window.
5316 (tui_win_info::make_visible): Move from tui_gen_win_info.
5317 * tui/tui-win.c (tui_win_info::max_width): Move from
5318 tui_gen_win_info.
5319 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5320 type.
5321 <window_factory>: Likewise.
5322 * tui/tui-layout.c (tui_win_info::resize): Move from
5323 tui_gen_win_info.
5324 (make_standard_window): Change return type.
5325 (get_locator_window, tui_get_window_by_name): Likewise.
5326 (tui_layout_window::apply): Remove a cast.
5327 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5328 (struct tui_win_info): Merge with tui_gen_win_info.
5329 (struct tui_gen_win_info): Remove.
5330
a30cb6da
TT
53312020-07-01 Tom Tromey <tom@tromey.com>
5332
5333 * tui/tui-stack.h (struct tui_locator_window): Derive from
5334 tui_win_info.
5335 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5336 <can_box>: New method.
5337
1eb2161f
TT
53382020-07-01 Tom Tromey <tom@tromey.com>
5339
5340 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5341
7134f2eb
TT
53422020-07-01 Tom Tromey <tom@tromey.com>
5343
5344 * tui/tui-regs.c (tui_data_window::display_registers_from)
5345 (tui_data_window::display_registers_from)
5346 (tui_data_window::first_data_item_displayed)
5347 (tui_data_window::delete_data_content_windows): Update.
5348 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5349 Remove.
5350 (tui_data_window::check_register_values): Update.
5351 (tui_data_item_window::rerender): Add parameters. Update.
5352 (tui_data_item_window::refresh_window): Remove.
5353 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5354 virtual.
5355 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5356 tui_gen_win_info.
5357 <refresh_window, max_height, min_height>: Remove.
5358 <rerender>: Add parameters.
5359 <x, y, visible>: New members.
5360 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5361 <m_item_width>: New member.
5362
22b7b041
TT
53632020-07-01 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui-regs.c (tui_data_window::show_register_group)
5366 (tui_data_window::check_register_values): Update.
5367 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5368 from item_no.
5369
c9753adb
TT
53702020-07-01 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5373 useless "if".
5374
9ab26b4a
TT
53752020-07-01 Tom Tromey <tom@tromey.com>
5376
5377 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5378 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5379
e555083f
TT
53802020-07-01 Tom Tromey <tom@tromey.com>
5381
5382 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5383 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5384 (struct tui_line_or_address): Move from tui-data.h.
5385 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5386 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5387 (tui_cmd_window, tui_source_window_base, tui_source_window)
5388 (tui_disasm_window): Don't declare.
5389 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5390 to tui-winsource.h.
5391 (SINGLE_KEY): Move to tui-stack.c.
5392
7a02bab7
TT
53932020-07-01 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5396 std::string.
5397 * tui/tui-regs.c (class tab_expansion_file): New.
5398 (tab_expansion_file::write): New method.
5399 (tui_register_format): Change return type. Use
5400 tab_expansion_file.
5401 (tui_get_register, tui_data_window::display_registers_from)
5402 (tui_data_item_window::rerender): Update.
5403 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5404 * tui/tui-io.c (tui_expand_tabs): Remove.
5405
ea68593b
TT
54062020-07-01 Tom Tromey <tom@tromey.com>
5407
5408 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5409
a8caed5d
FS
54102020-07-01 Fangrui Song <maskray@google.com>
5411
5412 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5413
9cdf9820
AKS
54142020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5415
5416 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5417 forms for DW_AT_associated and DW_AT_allocated attributes,
5418 which is already checked in function attr_to_dynamic_prop.
5419
a1520ad8
TT
54202020-06-30 Tom Tromey <tromey@adacore.com>
5421
5422 * dwarf2/read.c (quirk_rust_enum): Correctly call
5423 alloc_rust_variant for default-less enum.
5424
5ac58899
TT
54252020-06-30 Tom Tromey <tromey@adacore.com>
5426
5427 PR build/26183:
5428 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5429 gdb::to_string.
5430
19b187a9
SM
54312020-06-29 Simon Marchi <simon.marchi@efficios.com>
5432
5433 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5434 * gdbarch.h: Re-generate.
5435
cd4c4c07
TT
54362020-06-28 Tom Tromey <tom@tromey.com>
5437
5438 * command.h (cmd_types): Remove.
5439 (cmd_type): Don't declare.
5440 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5441 typedef.
5442 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5443 * cli/cli-decode.c (cmd_type): Remove.
5444
05779d57
PA
54452020-06-27 Pedro Alves <palves@redhat.com>
5446
5447 * fork-child.c (prefork_hook): Adjust.
5448 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5449 Delete.
5450 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5451 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5452 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5453 Remove declarations.
5454 (struct inferior) <set_tty, tty>: New methods.
5455 (struct inferior) <terminal>: Rename to ...
5456 (struct inferior) <m_terminal>: ... this and make private.
5457 * main.c (captured_main_1): Adjust.
5458 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5459 (mi_cmd_inferior_tty_show): Adjust.
5460 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5461 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5462
1776e3e5
NA
54632020-06-26 Nick Alcock <nick.alcock@oracle.com>
5464
5465 * configure.ac: Add --enable-libctf: handle --disable-static
5466 properly.
5467 * acinclude.m4: sinclude ../config/enable.m4.
5468 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5469 (LIBCTF): Substitute in.
5470 (CTF_DEPS): New, likewise.
5471 (CLIBS): libctf needs symbols from libbfd: move earlier.
5472 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5473 flags.
5474 * ctfread.c: Surround in ENABLE_LIBCTF.
5475 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5476 * configure: Regenerate.
5477 * config.in: Likewise.
5478
58373b80
SM
54792020-06-25 Simon Marchi <simon.marchi@efficios.com>
5480
5481 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5482
277474ee
SM
54832020-06-25 Simon Marchi <simon.marchi@efficios.com>
5484
5485 * inferior.h (struct inferior) <terminal>: Change type to
5486 gdb::unique_xmalloc_ptr<char>.
5487 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5488 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5489 field, adjust to unique pointer.
5490 (get_inferior_io_terminal): Adjust to unique pointer.
5491
6d74da72
AB
54922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5493
5494 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5495 registers, not just the known core set of registers.
5496
2e52d038
AB
54972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5498
5499 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5500 fflags, frm, and fcsr registers.
5501 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5502 restore groups.
5503 (riscv_tdesc_unknown_reg): New function.
5504 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5505 tdesc_use_registers.
5506 * riscv-tdep.h (struct gdbarch_tdep): Add
5507 unknown_csrs_first_regnum, unknown_csrs_count,
5508 duplicate_fflags_regnum, duplicate_frm_regnum, and
5509 duplicate_fcsr_regnum fields.
5510
be64fd07
AB
55112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5512
5513 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5514 callback, use the callback (when not null) to help number unknown
5515 registers.
5516 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5517 (tdesc_use_registers): Add extra parameter to declaration.
5518
3b9fce96
AB
55192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5520
5521 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5522 in the file.
5523 (class riscv_pending_register_alias): Likewise.
5524 (riscv_register_feature::register_info): Change 'required_p' field
5525 to 'required', and change its type. Add 'check' member function.
5526 (riscv_register_feature::register_info::check): Define new member
5527 function.
5528 (riscv_xreg_feature): Change initialisation of 'required' field.
5529 (riscv_freg_feature): Likewise.
5530 (riscv_virtual_feature): Likewise.
5531 (riscv_csr_feature): Likewise.
5532 (riscv_check_tdesc_feature): Take extra parameter, the csr
5533 tdesc_feature, rewrite the function to use the new
5534 riscv_register_feature::register_info::check function.
5535 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5536
865bad26
AB
55372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5538
5539 * features/Makefile: Remove all references to the deleted files
5540 below.
5541 * features/riscv/32bit-csr.c: Deleted.
5542 * features/riscv/32bit-csr.xml: Deleted.
5543 * features/riscv/64bit-csr.c: Deleted.
5544 * features/riscv/64bit-csr.xml: Deleted.
5545 * features/riscv/rebuild-csr-xml.sh: Deleted.
5546
ed69cbc8
AB
55472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5548
5549 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5550 whitespace error for declaration of names member variable.
5551 (struct riscv_register_feature): Add new prefer_first_name member
5552 variable, and fix whitespace error in declaration of registers.
5553 (riscv_xreg_feature): Initialize prefer_first_name field.
5554 (riscv_freg_feature): Likewise.
5555 (riscv_virtual_feature): Likewise.
5556 (riscv_csr_feature): Likewise.
5557 (riscv_register_name): Expand on comments. Remove register name
5558 modifications for CSR and virtual registers.
5559
4445e8f5
AB
55602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5561
5562 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5563 errors.
5564
767a879e
AB
55652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5566
5567 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5568 riscv-opc.h.
5569 (class riscv_pending_register_alias): New class.
5570 (riscv_check_tdesc_feature): Take vector of pending aliases and
5571 populate it as appropriate.
5572 (riscv_setup_register_aliases): Delete.
5573 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5574 to riscv_check_tdesc_feature in all cases. Use the vector to
5575 create the register aliases.
5576
bb6e55f3
RO
55772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5578
5579 * sol2-tdep.c (sol2_static_transform_name): Remove.
5580 (sol2_init_abi): Don't register it.
5581 * gdbarch.sh (static_transform_name): Remove.
5582 * gdbarch.c, gdbarch.h: Regenerate.
5583
5584 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5585 gdbarch_static_transform_name.
5586 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5587 * stabsread.c (define_symbol) <'X'>: Remove.
5588 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5589 handling.
5590 <'V'>: Likewise.
5591 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5592 <'S'>: Remove call to gdbarch_static_transform_name.
5593
c6d36836
RO
55942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5595
5596 * procfs.c (procfs_pre_trace): New function.
5597 (procfs_target::create_inferior): Pass it to fork_inferior.
5598
a7e6196b
RO
55992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5600
5601 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5602 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5603 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5604 sol2-tdep.o, sparc-sol2-tdep.o.
5605 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5606 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5607 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5608 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5609
d412e696
RO
56102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5611
5612 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5613 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5614 Call sol2_init_abi.
5615 Remove calls to set_gdbarch_skip_solib_resolver,
5616 set_gdbarch_core_pid_to_str.
5617 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5618 (i386_sol2_static_transform_name): Remove.
5619 (i386_sol2_init_abi): Call sol2_init_abi.
5620 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5621 set_gdbarch_static_transform_name,
5622 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5623 Use sol2_sigtramp_p.
5624 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5625 (sol2_sigtramp_p): New function.
5626 (sol2_static_transform_name): New function.
5627 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5628 (sol2_init_abi): New function.
5629 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5630 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5631 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5632 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5633 (sparc_sol2_static_transform_name): Remove.
5634 (sparc32_sol2_init_abi): Call sol2_init_abi.
5635 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5636 set_gdbarch_static_transform_name,
5637 set_gdbarch_skip_solib_resolver,
5638 set_gdbarch_core_pid_to_str.
5639 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5640 (sparc_sol2_static_transform_name): Remove
5641 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5642 call sol2_sigtramp_p.
5643 (sparc64_sol2_init_abi): Call sol2_init_abi.
5644 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5645 set_gdbarch_static_transform_name,
5646 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5647
a8654e7d
PW
56482020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5649
5650 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5651 * exec.c (validate_exec_file): If from_tty, set both
5652 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5653 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5654 and from_tty, unconditionally ask a confirmation.
5655
caa7fd04
AB
56562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5657
5658 * target-descriptions.c (tdesc_architecture_name): Protect against
5659 NULL pointer dereference.
5660 (maint_print_xml_tdesc_cmd): New function.
5661 (_initialize_target_descriptions): Register new 'maint print
5662 xml-tdesc' command and give it the filename completer.
5663 * NEWS: Mention new 'maint print xml-tdesc' command.
5664
fbf42f4e
AB
56652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5666
5667 * target-descriptions.c (class tdesc_compatible_info): New class.
5668 (struct target_desc): Change type of compatible vector.
5669 (tdesc_compatible_p): Update for change in type of
5670 target_desc::compatible.
5671 (tdesc_compatible_info_list): New function.
5672 (tdesc_compatible_info_arch_name): New function.
5673 (tdesc_add_compatible): Update for change in type of
5674 target_desc::compatible.
5675 (print_c_tdesc::visit_pre): Likewise.
5676
20821f4e
AB
56772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5678
5679 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5680 whitespace to underscore.
5681 (maint_print_c_tdesc_cmd): Use fake filename for target
5682 descriptions that came from the target.
5683 (_initialize_target_descriptions): Add filename command completion
5684 for 'maint print c-tdesc'.
5685
1fb5ee62
SM
56862020-06-23 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5689 lines.
5690
fc3ecb3e
SM
56912020-06-23 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5694 lines.
5695 (dwarf2_find_location_expression): Likewise.
5696 (call_site_parameter_matches): Likewise.
5697 (dwarf2_compile_expr_to_ax): Likewise.
5698 (disassemble_dwarf_expression): Likewise.
5699 (loclist_describe_location): Likewise.
5700
236ef034
PA
57012020-06-23 Pedro Alves <palves@redhat.com>
5702
5703 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5704 progspace-and-thread.h. Include scoped-mock-context.h instead.
5705 (register_to_value_test): Use scoped_mock_context.
5706 * regcache.c: Include "scoped-mock-context.h".
5707 (cooked_read_test): Don't error out if a target is already pushed.
5708 Use scoped_mock_context. Adjust.
5709 * scoped-mock-context.h: New file.
5710
39e7ecca
AB
57112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5714 initializer.
5715 (ada_language::is_string_type_p): New member function.
5716 * c-lang.c (c_language_data): Delete la_is_string_type_p
5717 initializer.
5718 (cplus_language_data): Likewise.
5719 (asm_language_data): Likewise.
5720 (minimal_language_data): Likewise.
5721 * d-lang.c (d_language_data): Likewise.
5722 * f-lang.c (f_is_string_type_p): Delete function, implementation
5723 moved to f_language::is_string_type_p.
5724 (f_language_data): Delete la_is_string_type_p initializer.
5725 (f_language::is_string_type_p): New member function,
5726 implementation from f_is_string_type_p.
5727 * go-lang.c (go_is_string_type_p): Delete function, implementation
5728 moved to go_language::is_string_type_p.
5729 (go_language_data): Delete la_is_string_type_p initializer.
5730 (go_language::is_string_type_p): New member function,
5731 implementation from go_is_string_type_p.
5732 * language.c (language_defn::is_string_type_p): Define new member
5733 function.
5734 (default_is_string_type_p): Make static, add comment copied from
5735 header file.
5736 (unknown_language_data): Delete la_is_string_type_p initializer.
5737 (unknown_language::is_string_type_p): New member function.
5738 (auto_language_data): Delete la_is_string_type_p initializer.
5739 (auto_language::is_string_type_p): New member function.
5740 * language.h (language_data): Delete la_is_string_type_p field.
5741 (language_defn::is_string_type_p): Declare new function.
5742 (default_is_string_type_p): Delete desclaration, move comment to
5743 definition.
5744 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5745 moved to m2_language::is_string_type_p.
5746 (m2_language_data): Delete la_is_string_type_p initializer.
5747 (m2_language::is_string_type_p): New member function,
5748 implementation from m2_is_string_type_p.
5749 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5750 initializer.
5751 * opencl-lang.c (opencl_language_data): Likewise.
5752 * p-lang.c (pascal_is_string_type_p): Delete function,
5753 implementation moved to pascal_language::is_string_type_p.
5754 (pascal_language_data): Delete la_is_string_type_p initializer.
5755 (pascal_language::is_string_type_p): New member function,
5756 implementation from pascal_is_string_type_p.
5757 * rust-lang.c (rust_is_string_type_p): Delete function,
5758 implementation moved to rust_language::is_string_type_p.
5759 (rust_language_data): Delete la_is_string_type_p initializer.
5760 (rust_language::is_string_type_p): New member function,
5761 implementation from rust_is_string_type_p.
5762 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5763 is_string_type_p.
5764
4ffc13fb
AB
57652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5766
5767 * ada-lang.c (ada_language_data): Delete la_print_typedef
5768 initializer.
5769 (ada_language::print_typedef): New member function.
5770 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5771 (cplus_language_data): Likewise.
5772 (asm_language_data): Likewise.
5773 (minimal_language_data): Likewise.
5774 * d-lang.c (d_language_data): Likewise.
5775 * f-lang.c (f_language_data): Likewise.
5776 (f_language::print_typedef): New member function.
5777 * go-lang.c (go_language_data): Delete la_print_typedef
5778 initializer.
5779 * language.c (language_defn::print_typedef): Define member
5780 function.
5781 (unknown_language_data): Delete la_print_typedef initializer.
5782 (unknown_language::print_typedef): New member function.
5783 (auto_language_data): Delete la_print_typedef initializer.
5784 (auto_language::print_typedef): New member function.
5785 * language.h (language_data): Delete la_print_typedef field.
5786 (language_defn::print_typedef): Declare new member function.
5787 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5788 (default_print_typedef): Delete declaration.
5789 * m2-lang.c (m2_language_data): Delete la_print_typedef
5790 initializer.
5791 (m2_language::print_typedef): New member function.
5792 * objc-lang.c (objc_language_data): Delete la_print_typedef
5793 initializer.
5794 * opencl-lang.c (opencl_language_data): Likewise.
5795 * p-lang.c (pascal_language_data): Likewise.
5796 (pascal_language::print_typedef): New member function.
5797 * rust-lang.c (rust_print_typedef): Delete function,
5798 implementation moved to rust_language::print_typedef.
5799 (rust_language): Delete la_print_typedef initializer.
5800 (rust_language::print_typedef): New member function,
5801 implementation from rust_print_typedef.
5802 * typeprint.c (default_print_typedef): Delete.
5803
d711ee67
AB
58042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5805
5806 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5807 (ada_language::printstr): New member function.
5808 * c-lang.c (c_language_data): Delete la_printstr initializer.
5809 (cplus_language_data): Likewise.
5810 (asm_language_data): Likewise.
5811 (minimal_language_data): Likewise.
5812 * d-lang.c (d_language_data): Likewise.
5813 * f-lang.c (f_printstr): Rename to f_language::printstr.
5814 (f_language_data): Delete la_printstr initializer.
5815 (f_language::printstr): New member function, implementation from
5816 f_printstr.
5817 * go-lang.c (go_language_data): Delete la_printstr initializer.
5818 * language.c (language_defn::printstr): Define new member
5819 function.
5820 (unk_lang_printstr): Delete.
5821 (unknown_language_data): Delete la_printstr initializer.
5822 (unknown_language::printstr): New member function.
5823 (auto_language_data): Delete la_printstr initializer.
5824 (auto_language::printstr): New member function.
5825 * language.h (language_data): Delete la_printstr field.
5826 (language_defn::printstr): Declare new member function.
5827 (LA_PRINT_STRING): Update call to printstr.
5828 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5829 (m2_language_data): Delete la_printstr initializer.
5830 (m2_language::printstr): New member function, implementation from
5831 m2_printstr.
5832 * objc-lang.c (objc_language_data): Delete la_printstr
5833 initializer.
5834 * opencl-lang.c (opencl_language_data): Likewise.
5835 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5836 (pascal_language_data): Delete la_printstr initializer.
5837 (pascal_language::printstr): New member function, implementation
5838 from pascal_printstr.
5839 * p-lang.h (pascal_printstr): Delete declaration.
5840 * rust-lang.c (rust_printstr): Update header comment.
5841 (rust_language_data): Delete la_printstr initializer.
5842 (rust_language::printstr): New member function.
5843
52b50f2c
AB
58442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5845
5846 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5847 (ada_language::printchar): New member function.
5848 * c-lang.c (c_language_data): Delete la_printchar initializer.
5849 (cplus_language_data): Likewise.
5850 (asm_language_data): Likewise.
5851 (minimal_language_data): Likewise.
5852 * d-lang.c (d_language_data): Likewise.
5853 * f-lang.c (f_printchar): Rename to f_language::printchar.
5854 (f_language_data): Delete la_printchar initializer.
5855 (f_language::printchar): New member function, implementation from
5856 f_printchar.
5857 * go-lang.c (go_language_data): Delete la_printchar initializer.
5858 * language.c (unk_lang_printchar): Delete.
5859 (language_defn::printchar): Define new member function.
5860 (unknown_language_data): Delete la_printchar initializer.
5861 (unknown_language::printchar): New member function.
5862 (auto_language_data): Delete la_printchar initializer.
5863 (auto_language::printchar): New member function.
5864 * language.h (language_data): Delete la_printchar field.
5865 (language_defn::printchar): Declare new member function.
5866 (LA_PRINT_CHAR): Update call to printchar.
5867 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5868 (m2_language::printchar): New member function.
5869 * objc-lang.c (objc_language_data): Delete la_printchar
5870 initializer.
5871 * opencl-lang.c (opencl_language_data): Likewise.
5872 * p-lang.c (pascal_language_data): Delete la_printchar
5873 initializer.
5874 (pascal_language::printchar): New member function.
5875 * rust-lang.c (rust_printchar): Rename to
5876 rust_language::printchar.
5877 (rust_language_data): Delete la_printchar initializer.
5878 (rust_language::printchar): New member function, implementation
5879 from rust_printchar.
5880
ec8cec5b
AB
58812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5882
5883 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5884 (ada_language_data): Delete la_emitchar initializer.
5885 (ada_language::emitchar): New member function, implementation from
5886 emit_char.
5887 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5888 (cplus_language_data): Likewise.
5889 (asm_language_data): Likewise.
5890 (minimal_language_data): Likewise.
5891 * d-lang.c (d_language_data): Likewise.
5892 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5893 (f_language_data): Delete la_emitchar initializer.
5894 (f_language::emitchar): New member function, implementation from
5895 f_emit_char.
5896 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5897 * language.c (unk_lang_emit_char): Delete.
5898 (language_defn::emitchar): New member function definition.
5899 (unknown_language_data): Delete la_emitchar initializer.
5900 (unknown_language::emitchar): New member function.
5901 (auto_language_data): Delete la_emitchar initializer.
5902 (auto_language::emitchar): New member function.
5903 * language.h (language_data): Delete la_emitchar field.
5904 (language_defn::emitchar): New member field declaration.
5905 (LA_EMIT_CHAR): Update call to emitchar.
5906 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5907 (m2_language_data): Delete la_emitchar initializer.
5908 (m2_language::emitchar): New member function, implementation from
5909 m2_emit_char.
5910 * objc-lang.c (objc_language_data): Delete la_emitchar
5911 initializer.
5912 * opencl-lang.c (opencl_language_data): Likewise.
5913 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5914 (pascal_language_data): Delete la_emitchar initializer.
5915 (pascal_language::emitchar): New member function, implementation
5916 from pascal_emit_char.
5917 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5918 (rust_language_data): Delete la_emitchar initializer.
5919 (rust_language::emitchar): New member function, implementation
5920 from rust_emitchar.
5921
1bf9c363
AB
59222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5923
5924 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5925 (ada_language_data): Delete la_post_parser initializer.
5926 (ada_language::post_parser): New member function.
5927 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5928 (cplus_language_data): Likewise.
5929 (asm_language_data): Likewise.
5930 (minimal_language_data): Likewise.
5931 * d-lang.c (d_language_data): Likewise.
5932 * f-lang.c (f_language_data): Likewise.
5933 * go-lang.c (go_language_data): Likewise.
5934 * language.c (unknown_language_data): Likewise.
5935 (auto_language_data): Likewise.
5936 * language.h (language_data): Delete la_post_parser field.
5937 (language_defn::post_parser): New member function.
5938 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5939 * objc-lang.c (objc_language_data): Likewise.
5940 * opencl-lang.c (opencl_language_data): Likewise.
5941 * p-lang.c (pascal_language_data): Likewise.
5942 * parse.c (parse_exp_in_context): Update call to post_parser.
5943 (null_post_parser): Delete definition.
5944 * parser-defs.h (null_post_parser): Delete declaration.
5945 * rust-lang.c (rust_language_data): Delete la_post_parser
5946 initializer.
5947
87afa652
AB
59482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5949
5950 * ada-lang.c (parse): Rename to ada_language::parser.
5951 (ada_language_data): Delete la_parser initializer.
5952 (ada_language::parser): New member function, implementation from
5953 parse.
5954 * c-lang.c (c_language_data): Delete la_parser initializer.
5955 (cplus_language_data): Likewise.
5956 (asm_language_data): Likewise.
5957 (minimal_language_data): Likewise.
5958 * d-lang.c (d_language_data): Likewise.
5959 (d_language::parser): New member function.
5960 * f-lang.c (f_language_data): Delete la_parser initializer.
5961 (f_language::parser): New member function.
5962 * go-lang.c (go_language_data): Delete la_parser initializer.
5963 (go_language::parser): New member function.
5964 * language.c (unk_lang_parser): Delete.
5965 (language_defn::parser): Define new member function.
5966 (unknown_language_data): Delete la_parser initializer.
5967 (unknown_language::parser): New member function.
5968 (auto_language_data): Delete la_parser initializer.
5969 (auto_language::parser): New member function.
5970 * language.h (language_data): Delete la_parser field.
5971 (language_defn::parser): Declare new member function.
5972 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5973 (m2_language::parser): New member function.
5974 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5975 * opencl-lang.c (opencl_language_data): Likewise.
5976 * p-lang.c (pascal_language_data): Likewise.
5977 (pascal_language::parser): New member function.
5978 * parse.c (parse_exp_in_context): Update call to parser.
5979 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5980 (rust_language::parser): New member function.
5981
37825800
AB
59822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5983
5984 * top.c (print_gdb_configuration): Print --with-python-libdir
5985 configuration value.
5986
5b860c93
PW
59872020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5988
5989 * NEWS: Mention change to the alias command.
5990
cf00cd6f
PW
59912020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5992
5993 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5994 (alias_command_completer)
5995 (make_alias_options_def_group): New functions.
5996 (alias_opts, alias_option_defs): New struct and array.
5997 (alias_usage_error): Update usage.
5998 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5999 Use option framework.
6000 (_initialize_cli_cmds): Update alias command help.
6001 Update aliases command help.
6002 (show_user):
6003 Add NULL for new default_args lookup_cmd argument.
6004 (valid_command_p): Rename to validate_aliased_command.
6005 Add NULL for new default_args lookup_cmd argument. Verify that the
6006 aliased_command has no default args.
6007 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6008 (lookup_cmd_1, lookup_cmd): New argument default_args.
6009 (add_alias_cmd):
6010 Add NULL for new default_args lookup_cmd argument.
6011 (print_help_for_command): Show default args under the layout
6012 alias some_alias = some_aliased_cmd some_alias_default_arg.
6013 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6014 xfree default_args in destructor.
6015 * cli/cli-script.c (process_next_line, do_define_command):
6016 Add NULL for new default_args lookup_cmd argument.
6017 * command.h: Declare new default_args argument in lookup_cmd
6018 and lookup_cmd_1.
6019 * completer.c (complete_line_internal_1):
6020 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6021 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6022 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6023 Likewise.
6024 * infcmd.c (_initialize_infcmd): Likewise.
6025 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6026 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6027 * python/py-param.c (add_setshow_generic): Likewise.
6028 * remote.c (_initialize_remote): Likewise.
6029 * top.c (execute_command): Prepend default_args if command has some.
6030 (set_verbose):
6031 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6032 * tracepoint.c (validate_actionline, encode_actions_1):
6033 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6034
bd920864
TBA
60352020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6036
6037 * jit.c (jit_read_descriptor): Use bool as the return type.
6038 (jit_breakpoint_re_set_internal): Use bool as the return type.
6039 Invert the return value logic; return true if the jit breakpoint
6040 has been successfully initialized.
6041 (jit_inferior_init): Update the call to
6042 jit_breakpoint_re_set_internal.
6043
f8098322
PA
60442020-06-22 Pedro Alves <palves@redhat.com>
6045
6046 PR gdb/25939
6047 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6048 Use the current inferior instead. Don't return
6049 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6050 wait again.
6051 * sol-thread.c (sol_thread_target::wait): Don't reference
6052 inferior_ptid.
6053 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6054 (sol_update_thread_list_callback): Use the current inferior's pid
6055 instead of inferior_ptid.
6056
196535a6
RO
60572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6058
6059 * procfs.c: Cleanup many comments.
6060
6061 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6062 (AFTER_WATCHFLAG): Replace by value.
6063
6064 (MAIN_PROC_NAME_FORMAT): Inline ...
6065 (create_procinfo): ... here.
6066
6067 (procfs_debug_inferior): Remove SYS_exec handling.
6068 (syscall_is_exec): Likewise.
6069 (procfs_set_exec_trap): Likewise.
6070
6071 (syscall_is_lwp_exit): Inline in callers.
6072 (syscall_is_exit): Likewise.
6073 (syscall_is_exec): Likewise.
6074 (syscall_is_lwp_create): Likewise.
6075
6076 (invalidate_cache): Remove #if 0 code.
6077
6078 (make_signal_thread_runnable): Remove.
6079 (procfs_target::resume): Remove #if 0 code.
6080
cf6f3e86
RO
60812020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6082
6083 PR gdb/25939
6084 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6085 call ...
6086 (procfs_target::create_inferior): ... here.
6087
48e9cc84
PW
60882020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6089
6090 * exec.c (validate_exec_file): Ensure the build-id is up to
6091 date by calling reopen_exec_file (that checks file timestamp
6092 to decide to re-read the file).
6093
3922b302
PA
60942020-06-18 Pedro Alves <palves@redhat.com>
6095
6096 PR gdb/25412
6097 * gdbthread.h (delete_thread, delete_thread_silent)
6098 (find_thread_ptid): Update comments.
6099 * thread.c (current_thread_): New global.
6100 (is_current_thread): Move higher, and reimplement.
6101 (inferior_thread): Reimplement.
6102 (set_thread_exited): Use bool. Add assertions.
6103 (add_thread_silent): Simplify thread-reuse handling by always
6104 calling delete_thread.
6105 (delete_thread): Remove intro comment.
6106 (find_thread_ptid): Skip exited threads.
6107 (switch_to_thread_no_regs): Write to current_thread_.
6108 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6109 INFERIOR_PTID. Clear current_thread_.
6110
6dbdab44
PA
61112020-06-18 Pedro Alves <palves@redhat.com>
6112
6113 * aix-thread.c (pd_update): Use switch_to_thread.
6114
2da4b788
PA
61152020-06-18 Pedro Alves <palves@redhat.com>
6116
6117 * ravenscar-thread.c (ravenscar_thread_target): Update.
6118 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6119 (ravenscar_thread_target::add_active_thread): ... this. Don't
6120 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6121 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6122
50838d1b
PA
61232020-06-18 Pedro Alves <palves@redhat.com>
6124
6125 * nat/windows-nat.c (current_windows_thread): Remove.
6126 * nat/windows-nat.h (current_windows_thread): Remove.
6127 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6128 Adjust.
6129 (display_selectors): Adjust to fetch the current
6130 windows_thread_info based on inferior_ptid.
6131 (fake_create_process): No longer write to current_windows_thread.
6132 (windows_nat_target::get_windows_debug_event):
6133 Don't set inferior_ptid or current_windows_thread.
6134 (windows_nat_target::wait): Adjust to not rely on
6135 current_windows_thread.
6136 (do_initial_windows_stuff): Now a method of windows_nat_target.
6137 Switch to the last_ptid thread.
6138 (windows_nat_target::attach): Adjust.
6139 (windows_nat_target::detach): Use switch_to_no_thread instead of
6140 writing to inferior_ptid directly.
6141 (windows_nat_target::create_inferior): Adjust.
6142
31ce04e9
PA
61432020-06-18 Pedro Alves <palves@redhat.com>
6144
6145 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6146
1ee1a363
PA
61472020-06-18 Pedro Alves <palves@redhat.com>
6148
6149 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6150 after creating it, instead of writing to inferior_ptid. Don't
6151 write to inferior_ptid.
6152
6d350754
PA
61532020-06-18 Pedro Alves <palves@redhat.com>
6154
6155 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6156
5d971d48
PA
61572020-06-18 Pedro Alves <palves@redhat.com>
6158
6159 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6160 it, instead of writing to inferior_ptid.
6161
86e57d1b
PA
61622020-06-18 Pedro Alves <palves@redhat.com>
6163
6164 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6165 to inferior_ptid.
6166
f2e1c129
PA
61672020-06-18 Pedro Alves <palves@redhat.com>
6168
6169 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6170 instead of writing to inferior_ptid directly.
6171
60db1b85
PA
61722020-06-18 Pedro Alves <palves@redhat.com>
6173
6174 * corelow.c (core_target::close): Use switch_to_no_thread instead
6175 of writing to inferior_ptid directly.
6176 (add_to_thread_list, core_target_open): Use switch_to_thread
6177 instead of writing to inferior_ptid directly.
6178
fe7d6a8d
PA
61792020-06-18 Pedro Alves <palves@redhat.com>
6180
6181 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6182 inferior_ptid.
6183 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6184 inferior_ptid.
6185 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6186 inferior_ptid directly.
6187 (darwin_nat_target::init_thread_list): Switch to thread, instead
6188 of writing to inferior_ptid.
6189 (darwin_nat_target::attach): Don't write to inferior_ptid.
6190 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6191
975f8708
PA
61922020-06-18 Pedro Alves <palves@redhat.com>
6193
6194 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6195 thread.
6196 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6197 Instead use switch_to_thread.
6198 (gnu_nat_target::detach): Use switch_to_no_thread
6199 instead of writing to inferior_ptid directly. Used passed-in
6200 inferior instead of looking up the inferior by pid.
6201
1a204730
PA
62022020-06-18 Pedro Alves <palves@redhat.com>
6203
6204 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6205 inferior_ptid.
6206
ebe84f23
PA
62072020-06-18 Pedro Alves <palves@redhat.com>
6208
6209 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6210 inferior_ptid.
6211 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6212 thread.
6213 (nto_procfs_target::detach): Avoid referencing
6214 inferior_ptid. Use switch_to_no_thread instead of writing to
6215 inferior_ptid directly.
6216 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6217 instead of writing to inferior_ptid directly.
6218 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6219 to thread.
6220
191f02e5
PA
62212020-06-18 Pedro Alves <palves@redhat.com>
6222
6223 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6224 after creating it, instead of writing to inferior_ptid.
6225 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6226 to inferior_ptid directly.
6227 (gdbsim_target::wait): Don't write to inferior_ptid.
6228
0ac55310
PA
62292020-06-18 Pedro Alves <palves@redhat.com>
6230
6231 * remote.c (remote_target::remote_notice_new_inferior): Use
6232 switch_to_thread instead of writing to inferior_ptid directly.
6233 (remote_target::add_current_inferior_and_thread): Use
6234 switch_to_no_thread instead of writing to inferior_ptid directly.
6235 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6236 and switch_to_thread instead of using set_current_inferior or
6237 writing to inferior_ptid directly.
6238
5233f39b
PA
62392020-06-18 Pedro Alves <palves@redhat.com>
6240
6241 * tracectf.c (ctf_target_open): Switch to added thread instead of
6242 writing to inferior_ptid directly.
6243 (ctf_target::close): Use switch_to_no_thread instead of writing to
6244 inferior_ptid directly.
6245
087e161b
PA
62462020-06-18 Pedro Alves <palves@redhat.com>
6247
6248 * tracefile-tfile.c (tfile_target_open): Don't write to
6249 inferior_ptid directly, instead switch to added thread.
6250 (tfile_target::close): Use switch_to_no_thread instead of writing
6251 to inferior_ptid directly.
6252
7fb43e53
PA
62532020-06-18 Pedro Alves <palves@redhat.com>
6254
6255 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6256 (procfs_target::detach): Use switch_to_no_thread
6257 instead of writing to inferior_ptid directly.
6258 (do_attach): Change return type to void. Switch to the added
6259 thread.
6260 (procfs_target::create_inferior): Switch to the added thread.
6261 (procfs_do_thread_registers): Don't write to inferior_ptid.
6262
18493a00
PA
62632020-06-18 Pedro Alves <palves@redhat.com>
6264
6265 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6266 of writing to inferior_ptid.
6267 (scoped_restore_exited_inferior): Delete.
6268 (handle_vfork_child_exec_or_exit): Simplify using
6269 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6270 instead of writing to inferior_ptid.
6271 (THREAD_STOPPED_BY): Delete.
6272 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6273 (thread_stopped_by_hw_breakpoint): Delete.
6274 (save_waitstatus): Use
6275 scoped_restore_current_thread+switch_to_thread, and call
6276 target_stopped_by_watchpoint instead of
6277 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6278 instead of thread_stopped_by_sw_breakpoint, and
6279 target_stopped_by_hw_breakpoint instead of
6280 thread_stopped_by_hw_breakpoint.
6281 (handle_inferior_event)
6282 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6283 inferior_ptid directly, nor
6284 set_current_inferior/set_current_program_space. Use
6285 switch_to_thread / switch_to_inferior_no_thread instead.
6286
a0776b13
PA
62872020-06-18 Pedro Alves <palves@redhat.com>
6288
6289 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6290 instead of writing to inferior_ptid.
6291
6155c136
PA
62922020-06-18 Pedro Alves <palves@redhat.com>
6293
6294 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6295 added thread.
6296 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6297 to the added thread.
6298 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6299 instead of writing to inferior_ptid.
6300
c5316fc6
PA
63012020-06-18 Pedro Alves <palves@redhat.com>
6302
6303 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6304 (register_to_value_test): Mock a program_space too. Heap-allocate
6305 the address space. Don't write to inferior_ptid. Use
6306 switch_to_thread instead.
6307
8df01799
PA
63082020-06-18 Pedro Alves <palves@redhat.com>
6309
6310 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6311 Delete.
6312 (find_signalled_thread()): New, factored out from
6313 linux_make_corefile_notes and adjusted to handle exited threads.
6314 (linux_make_corefile_notes): Adjust to use the new
6315 find_signalled_thread.
6316
41792d68
PA
63172020-06-18 Pedro Alves <palves@redhat.com>
6318
6319 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6320 of saving/restoring inferior_ptid.
6321
612f258a
TT
63222020-06-17 Tom Tromey <tom@tromey.com>
6323
6324 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6325 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6326 declare.
6327 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6328
efb763a5
SM
63292020-06-15 Simon Marchi <simon.marchi@efficios.com>
6330
6331 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6332 of partial symtabs.
6333
2951f6c0
SM
63342020-06-17 Simon Marchi <simon.marchi@efficios.com>
6335
6336 * regformats/reg-arm.dat: Remove.
6337 * regformats/reg-bfin.dat: Remove.
6338 * regformats/reg-cris.dat: Remove.
6339 * regformats/reg-crisv32.dat: Remove.
6340 * regformats/reg-m32r.dat: Remove.
6341 * regformats/reg-tilegx.dat: Remove.
6342 * regformats/reg-tilegx32.dat: Remove.
6343
7d458ea5
SM
63442020-06-17 Simon Marchi <simon.marchi@efficios.com>
6345
6346 * features/Makefile (WHICH): Remove arm files.
6347 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6348 * regformats/arm/arm-with-neon.dat: Remove.
6349 * regformats/arm/arm-with-vfpv2.dat: Remove.
6350 * regformats/arm/arm-with-vfpv3.dat: Remove.
6351
3af96c0d
SM
63522020-06-17 Simon Marchi <simon.marchi@efficios.com>
6353
6354 * features/Makefile (XMLTOC): Remove rx.xml.
6355
b25e22fd
PA
63562020-06-17 Pedro Alves <palves@redhat.com>
6357
6358 * gdbthread.h (thread_control_state) <trap_expected> Update
6359 comments.
6360
a78a19b1
AB
63612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6362
6363 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6364 ada_language::lookup_symbol_nonlocal.
6365 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6366 (ada_language::lookup_symbol_nonlocal): New member function,
6367 implementation from ada_lookup_symbol_nonlocal.
6368 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6369 initializer.
6370 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6371 initializer.
6372 (cplus_language::lookup_symbol_nonlocal): New member function.
6373 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6374 (minimal_language_data) Likewise.
6375 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6376 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6377 initializer.
6378 (d_language::lookup_symbol_nonlocal): New member function.
6379 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6380 initializer.
6381 (f_language::lookup_symbol_nonlocal): New member function.
6382 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6383 initializer.
6384 * language.c (unknown_language_data): Likewise.
6385 (auto_language_data): Likewise.
6386 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6387 field.
6388 (language_defn::lookup_symbol_nonlocal): New member function.
6389 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6390 initializer.
6391 * objc-lang.c (objc_language_data): Likewise.
6392 * opencl-lang.c (opencl_language_data): Likewise.
6393 * p-lang.c (pascal_language_data): Likewise.
6394 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6395 rust_language::lookup_symbol_nonlocal.
6396 (rust_language_data): Delete la_lookup_symbol_nonlocal
6397 initializer.
6398 (rust_language::lookup_symbol_nonlocal): New member function,
6399 implementation from rust_lookup_symbol_nonlocal.
6400 * symtab.c (lookup_symbol_aux): Update call to
6401 lookup_symbol_nonlocal.
6402 (basic_lookup_symbol_nonlocal): Rename to...
6403 (language_defn::lookup_symbol_nonlocal): ...this, and update
6404 header comment. Remove language_defn parameter, and replace with
6405 uses of `this'.
6406 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6407
ebe2334e
AB
64082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6409
6410 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6411 initializer.
6412 (ada_language::value_print_inner): New member function.
6413 * c-lang.c (c_language_data): Delete la_value_print_inner
6414 initializer.
6415 (cplus_language_data): Likewise.
6416 (asm_language_data): Likewise.
6417 (minimal_language_data): Likewise.
6418 * d-lang.c (d_language_data): Likewise.
6419 (d_language::value_print_inner): New member function.
6420 * f-lang.c (f_language_data): Delete la_value_print_inner
6421 initializer.
6422 (f_language::value_print_inner): New member function.
6423 * f-lang.h (f_value_print_innner): Rename to...
6424 (f_value_print_inner): ...this (note spelling of 'inner').
6425 * f-valprint.c (f_value_print_innner): Rename to...
6426 (f_value_print_inner): ...this (note spelling of 'inner').
6427 * go-lang.c (go_language_data): Delete la_value_print_inner
6428 initializer.
6429 (go_language::value_print_inner): New member function.
6430 * language.c (language_defn::value_print_inner): Define new member
6431 function.
6432 (unk_lang_value_print_inner): Delete.
6433 (unknown_language_data): Delete la_value_print_inner initializer.
6434 (unknown_language::value_print_inner): New member function.
6435 (auto_language_data): Delete la_value_print_inner initializer.
6436 (auto_language::value_print_inner): New member function.
6437 * language.h (language_data): Delete la_value_print_inner field.
6438 (language_defn::value_print_inner): Delcare new member function.
6439 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6440 initializer.
6441 (m2_language::value_print_inner): New member function.
6442 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6443 initializer.
6444 * opencl-lang.c (opencl_language_data): Likewise.
6445 * p-lang.c (pascal_language_data): Likewise.
6446 (pascal_language::value_print_inner): New member function.
6447 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6448 initializer.
6449 (rust_language::value_print_inner): New member function.
6450 * valprint.c (do_val_print): Update call to value_print_inner.
6451
a1d1fa3e
AB
64522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6453
6454 * ada-lang.c (ada_language_data): Delete la_value_print
6455 initializer.
6456 (ada_language::value_print): New member function.
6457 * c-lang.c (c_language_data): Delete la_value_print initializer.
6458 (cplus_language_data): Likewise.
6459 (asm_language_data): Likewise.
6460 (minimal_language_data): Likewise.
6461 * d-lang.c (d_language_data): Likewise.
6462 * f-lang.c (f_language_data): Likewise.
6463 * go-lang.c (go_language_data): Likewise.
6464 * language.c (unk_lang_value_print): Delete.
6465 (language_defn::value_print): Define new member function.
6466 (unknown_language_data): Delete la_value_print initializer.
6467 (unknown_language::value_print): New member function.
6468 (auto_language_data): Delete la_value_print initializer.
6469 (auto_language::value_print): New member function.
6470 * language.h (language_data): Delete la_value_print field.
6471 (language_defn::value_print): Declare new member function.
6472 (LA_VALUE_PRINT): Update call to value_print.
6473 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6474 * objc-lang.c (objc_language_data): Likewise.
6475 * opencl-lang.c (opencl_language_data): Likewise.
6476 * p-lang.c (pascal_language_data): Likewise.
6477 (pascal_language::value_print): New member function.
6478 * rust-lang.c (rust_language_data): Delete la_value_print
6479 initializer.
6480
f16a9f57
AB
64812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6482
6483 * ada-lang.c (ada_watch_location_expression): Rename to
6484 ada_language::watch_location_expression.
6485 (ada_language_data): Delete la_watch_location_expression
6486 initializer.
6487 (ada_language::watch_location_expression): New member function,
6488 implementation from ada_watch_location_expression.
6489 * breakpoint.c (watch_command_1): Update call to
6490 watch_location_expression.
6491 * c-lang.c (c_watch_location_expression): Rename to
6492 language_defn::watch_location_expression.
6493 (c_language_data): Delete la_watch_location_expression
6494 initializer.
6495 (cplus_language_data): Likewise.
6496 (asm_language_data): Likewise.
6497 (minimal_language_data): Likewise.
6498 * c-lang.h (c_watch_location_expression): Delete declaration.
6499 * d-lang.c (d_language_data): Delete la_watch_location_expression
6500 initializer.
6501 * f-lang.c (f_language_data): Likewise.
6502 * go-lang.c (go_language_data): Likewise.
6503 * language.c (language_defn::watch_location_expression): Member
6504 function implementation from c_watch_location_expression.
6505 (unknown_language_data): Delete la_watch_location_expression
6506 initializer.
6507 (auto_language_data): Likewise.
6508 * language.h (language_data): Delete la_watch_location_expression
6509 field.
6510 (language_defn::watch_location_expression): Declare new member
6511 function.
6512 * m2-lang.c (m2_language_data): Delete
6513 la_watch_location_expression initializer.
6514 * objc-lang.c (objc_language_data): Likewise.
6515 * opencl-lang.c (opencl_language_data): Likewise.
6516 * p-lang.c (pascal_language_data): Likewise.
6517 * rust-lang.c (rust_watch_location_expression): Rename to
6518 rust_language::watch_location_expression.
6519 (rust_language_data): Delete la_watch_location_expression
6520 initializer.
6521 (rust_language::watch_location_expression): New member function,
6522 implementation from rust_watch_location_expression.
6523
7e56227d
AB
65242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6525
6526 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6527 ada_language::collect_symbol_completion_matches.
6528 (ada_language_data): Delete la_collect_symbol_completion_matches
6529 initializer.
6530 (ada_language::collect_symbol_completion_matches): New member
6531 function, implementation from
6532 ada_collect_symbol_completion_matches.
6533 * c-lang.c (c_language_data): Delete
6534 la_collect_symbol_completion_matches initializer.
6535 (cplus_language_data): Likewise.
6536 (asm_language_data): Likewise.
6537 (minimal_language_data): Likewise.
6538 * d-lang.c (d_language_data): Likewise.
6539 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6540 f_language::collect_symbol_completion_matches.
6541 (f_language_data): Delete la_collect_symbol_completion_matches
6542 initializer.
6543 (f_language::collect_symbol_completion_matches) New member
6544 function, implementation from f_collect_symbol_completion_matches.
6545 * go-lang.c (go_language_data): Delete
6546 la_collect_symbol_completion_matches initializer.
6547 * language.c (unknown_language_data): Likewise.
6548 (auto_language_data): Likewise.
6549 * language.h (language_data): Delete
6550 la_collect_symbol_completion_matches field.
6551 (language_defn::collect_symbol_completion_matches): New member
6552 function.
6553 * m2-lang.c (m2_language_data): Delete
6554 la_collect_symbol_completion_matches initializer.
6555 * objc-lang.c (objc_language_data): Likewise.
6556 * opencl-lang.c (opencl_language_data): Likewise.
6557 * p-lang.c (pascal_language_data): Likewise.
6558 * rust-lang.c (rust_language_data): Likewise.
6559 * symtab.c (default_collect_symbol_completion_matches): Delete.
6560 (collect_symbol_completion_matches): Update call to
6561 collect_symbol_completion_matches.
6562 (collect_symbol_completion_matches_type): Likewise.
6563 * symtab.h (default_collect_symbol_completion_matches): Delete
6564 declaration.
6565
53fc67f8
AB
65662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6569 (ada_language_data): Delete la_word_break_characters initializer.
6570 (ada_language::word_break_characters): New member function.
6571 * c-lang.c (c_language_data): Delete la_word_break_characters
6572 initializer.
6573 (cplus_language_data): Likewise.
6574 (asm_language_data): Likewise.
6575 (minimal_language_data): Likewise.
6576 * completer.c: Update global comment.
6577 (advance_to_expression_complete_word_point): Update call to
6578 word_break_characters.
6579 (complete_files_symbols): Likewise.
6580 (complete_line_internal_1): Likewise.
6581 (default_completer_handle_brkchars): Likewise.
6582 (skip_quoted_chars): Likewise.
6583 * d-lang.c (d_language_data): Delete la_word_break_characters
6584 initializer.
6585 * f-lang.c (f_word_break_characters): Delete.
6586 (f_language_data): Delete la_word_break_characters initializer.
6587 (f_language::word_break_characters): New member function.
6588 * go-lang.c (go_language_data): Delete la_word_break_characters
6589 initializer.
6590 * language.c (unknown_language_data): Likewise.
6591 (auto_language_data): Likewise.
6592 * language.h (default_word_break_characters): Move declaration to
6593 earlier in the file.
6594 (language_data): Delete la_word_break_characters field.
6595 (language_defn::word_break_characters): New member function.
6596 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6597 initializer.
6598 * objc-lang.c (objc_language_data): Likewise.
6599 * opencl-lang.c (opencl_language_data): Likewise.
6600 * p-lang.c (pascal_language_data): Likewise.
6601 * rust-lang.c (rust_language_data): Likewise.
6602
c9debfb9
AB
66032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6604
6605 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6606 (ada_language_data): Delete la_get_symbol_name_matcher
6607 initializer.
6608 (language_defn::get_symbol_name_matcher_inner): New member
6609 function.
6610 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6611 initializer.
6612 (cplus_language_data): Likewise.
6613 (cplus_language::get_symbol_name_matcher_inner): New member
6614 function.
6615 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6616 (minimal_language_data): Likewise.
6617 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6618 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6619 initializer.
6620 * dictionary.c (iter_match_first_hashed): Update call to
6621 get_symbol_name_matcher.
6622 (iter_match_next_hashed): Likewise.
6623 (iter_match_next_linear): Likewise.
6624 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6625 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6626 initializer.
6627 (f_language::get_symbol_name_matcher_inner): New member function.
6628 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6629 initializer.
6630 * language.c (default_symbol_name_matcher): Update header comment,
6631 make static.
6632 (language_defn::get_symbol_name_matcher): New definition.
6633 (language_defn::get_symbol_name_matcher_inner): Likewise.
6634 (get_symbol_name_matcher): Delete.
6635 (unknown_language_data): Delete la_get_symbol_name_matcher
6636 initializer.
6637 (auto_language_data): Likewise.
6638 * language.h (language_data): Delete la_get_symbol_name_matcher
6639 field.
6640 (language_defn::get_symbol_name_matcher): New member function.
6641 (language_defn::get_symbol_name_matcher_inner): Likewise.
6642 (default_symbol_name_matcher): Delete declaration.
6643 * linespec.c (find_methods): Update call to
6644 get_symbol_name_matcher.
6645 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6646 initializer.
6647 * minsyms.c (lookup_minimal_symbol): Update call to
6648 get_symbol_name_matcher.
6649 (iterate_over_minimal_symbols): Likewise.
6650 * objc-lang.c (objc_language_data): Delete
6651 la_get_symbol_name_matcher initializer.
6652 * opencl-lang.c (opencl_language_data): Likewise.
6653 * p-lang.c (pascal_language_data): Likewise.
6654 * psymtab.c (psymbol_name_matches): Update call to
6655 get_symbol_name_matcher.
6656 * rust-lang.c (rust_language_data): Delete
6657 la_get_symbol_name_matcher initializer.
6658 * symtab.c (symbol_matches_search_name): Update call to
6659 get_symbol_name_matcher.
6660 (compare_symbol_name): Likewise.
6661
9a49ad8c
AB
66622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6663
6664 * ada-lang.c (ada_language_data): Delete la_compute_program
6665 initializer.
6666 * c-lang.c (c_language_data): Likewise.
6667 (c_language::compute_program): New member function.
6668 (cplus_language_data): Delete la_compute_program initializer.
6669 (cplus_language::compute_program): New member function.
6670 (asm_language_data): Delete la_compute_program initializer.
6671 (minimal_language_data): Likewise.
6672 * c-lang.h (c_compute_program): Update comment.
6673 (cplus_compute_program): Likewise.
6674 * compile/compile-c-support.c (c_compute_program): Likewise.
6675 (cplus_compute_program): Likewise.
6676 * compile/compile.c (compile_to_object): Update call to
6677 la_compute_program.
6678 * d-lang.c (d_language_data): Delete la_compute_program
6679 initializer.
6680 * f-lang.c (f_language_data): Likewise.
6681 * go-lang.c (go_language_data): Likewise.
6682 * language.c (unknown_language_data): Likewise.
6683 (auto_language_data): Likewise.
6684 * language.h (language_data): Delete la_compute_program field.
6685 (language_defn::compute_program): New member function.
6686 * m2-lang.c (m2_language_data): Delete la_compute_program
6687 initializer.
6688 * objc-lang.c (objc_language_data): Likewise.
6689 * opencl-lang.c (opencl_language_data): Likewise.
6690 * p-lang.c (pascal_language_data): Likewise.
6691 * rust-lang.c (rust_language_data): Likewise.
6692
eff93b4d
AB
66932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6694
6695 * ada-lang.c (ada_language_data) Delete
6696 la_class_name_from_physname initializer.
6697 * c-lang.c (c_language_data): Likewise.
6698 (cplus_language_data): Likewise.
6699 (cplus_language::class_name_from_physname): New member function.
6700 (asm_language_data): Delete la_class_name_from_physname
6701 initializer.
6702 (minimal_language_data): Likewise.
6703 * d-lang.c (d_language_data): Likewise.
6704 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6705 method on language_defn class.
6706 (guess_full_die_structure_name): Likewise.
6707 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6708 initializer.
6709 * go-lang.c (go_language_data): Likewise.
6710 * language.c (language_class_name_from_physname): Delete.
6711 (unk_lang_class_name): Delete.
6712 (unknown_language_data): Delete la_class_name_from_physname
6713 initializer.
6714 (auto_language_data): Likewise.
6715 * language.h (language_data): Delete la_class_name_from_physname
6716 field.
6717 (language_defn::class_name_from_physname): New function.
6718 (language_class_name_from_physname): Delete declaration.
6719 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6720 initializer.
6721 * objc-lang.c (objc_language_data): Likewise.
6722 * opencl-lang.c (opencl_language_data): Likewise.
6723 * p-lang.c (pascal_language_data): Likewise.
6724 * rust-lang.c (rust_language_data): Likewise.
6725
de543742
TT
67262020-06-16 Tom Tromey <tom@tromey.com>
6727
6728 * tui/tui-data.h (STATUS_NAME): New macro.
6729 * tui/tui-layout.c (tui_remove_some_windows)
6730 (initialize_known_windows, tui_register_window)
6731 (tui_layout_split::remove_windows, initialize_layouts)
6732 (tui_new_layout_command): Don't use hard-coded window names.
6733
a350efd4
TT
67342020-06-16 Tom Tromey <tom@tromey.com>
6735
6736 PR tui/25348:
6737 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6738 tui_initialize_readline. Only run once. Call rl_initialize.
6739 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6740 tui_initialize_readline.
6741 * tui/tui-io.c (tui_setup_io): Call
6742 tui_ensure_readline_initialized.
6743 * tui/tui-interp.c (tui_interp::init): Update.
6744
39ec0490
TT
67452020-06-16 Tom Tromey <tom@tromey.com>
6746
6747 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6748 Also preserve the status window.
6749
d2d1ea20
TT
67502020-06-16 Tom Tromey <tom@tromey.com>
6751
6752 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6753 where m_window==nullptr.
6754
66920317
TT
67552020-06-15 Tom Tromey <tromey@adacore.com>
6756
6757 * windows-nat.c (windows_nat::handle_output_debug_string):
6758 Update.
6759 (windows_nat::handle_ms_vc_exception): Update.
6760 * target.h (target_read_string): Change API.
6761 * target.c (target_read_string): Change API.
6762 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6763 Update.
6764 * solib-frv.c (frv_current_sos): Update.
6765 * solib-dsbt.c (dsbt_current_sos): Update.
6766 * solib-darwin.c (darwin_current_sos): Update.
6767 * linux-thread-db.c (inferior_has_bug): Update.
6768 * expprint.c (print_subexp_standard): Update.
6769 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6770 (ada_exception_message_1): Update.
6771
a5d871dd
TT
67722020-06-15 Tom Tromey <tromey@adacore.com>
6773
6774 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6775
670e35fa
TT
67762020-06-15 Tom Tromey <tromey@adacore.com>
6777
6778 * valprint.c (read_string): Update comment.
6779 * target.c (MIN): Remove.
6780 (target_read_string): Rewrite.
6781
f5272a3b
TT
67822020-06-15 Tom Tromey <tromey@adacore.com>
6783
6784 * corefile.c (read_memory_string): Remove.
6785 * ada-valprint.c (ada_value_print_ptr): Update.
6786 * ada-lang.h (ada_tag_name): Change return type.
6787 * ada-lang.c (type_from_tag): Update.
6788 (ada_tag_name_from_tsd): Change return type. Use
6789 target_read_string.
6790 (ada_tag_name): Likewise.
6791 * gdbcore.h (read_memory_string): Don't declare.
6792
2c074f49
HD
67932020-06-14 Hannes Domani <ssbssa@yahoo.de>
6794
6795 * symtab.c (rbreak_command): Ignore Windows drive colon.
6796
6a17d503
SM
67972020-06-12 Simon Marchi <simon.marchi@efficios.com>
6798
6799 * NEWS: Mention removed GDBserver host support.
6800
453c733f
NC
68012020-06-12 Nelson Chu <nelson.chu@sifive.com>
6802
6803 * features/riscv/rebuild-csr-xml.sh: Updated.
6804
2b4e6a3f
TT
68052020-06-11 Tom Tromey <tom@tromey.com>
6806
6807 PR gdb/18318:
6808 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6809
4412332f
JG
68102020-06-09 Jonny Grant <jg@jguk.org>
68112020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6812
6813 * main.c (captured_main_1): Don't print new line after help.
6814 (print_gdb_help): add mailing list and IRC channel information
6815 to --help. Add new lines between items in the footer. Remove
6816 quotes around bug url.
6817
2f33032a
KS
68182020-06-11 Keith Seitz <keiths@redhat.com>
6819
6820 PR gdb/21356
6821 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6822 Resolve typedefs for type length calculations.
6823
7ab96794
TV
68242020-06-10 Tom de Vries <tdevries@suse.de>
6825
6826 PR ada/24713
6827 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6828 (write_psymbols): Enable .gdb_index for ada.
6829 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6830 ada.
6831
e5f3ece2
TV
68322020-06-10 Tom de Vries <tdevries@suse.de>
6833
6834 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6835 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6836 namei" instead of "const char *name" argument.
6837 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6838 dw2_symtab_iter_init.
6839
940da03e
SM
68402020-06-08 Simon Marchi <simon.marchi@efficios.com>
6841
6842 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6843 to use type::field and field::type instead.
6844
b6cdac4b
SM
68452020-06-08 Simon Marchi <simon.marchi@efficios.com>
6846
6847 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6848 to use field::type instead.
6849
5d14b6e5
SM
68502020-06-08 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * gdbtypes.h (struct field) <type, set_type>: New methods.
6853 Rename `type` field to...
6854 <m_type>: ... this. Change references throughout to use type or
6855 set_type methods.
6856 (FIELD_TYPE): Use field::type. Change call sites that modify
6857 the field's type to use field::set_type instead.
6858
3d967001
SM
68592020-06-08 Simon Marchi <simon.marchi@efficios.com>
6860
6861 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6862 to use type::index_type instead.
6863
262abc0d
SM
68642020-06-08 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6867 methods.
6868 (TYPE_INDEX_TYPE): Use type::index_type.
6869 * gdbtypes.c (create_array_type_with_stride): Likewise.
6870
82836c92
TT
68712020-06-07 Tom Tromey <tom@tromey.com>
6872
6873 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6874 parameter.
6875 (generic_value_print): Update.
6876
940dace9
AB
68772020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6878
6879 Revert commit 982a38f60b0.
6880 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6881
982a38f6
AB
68822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6883
6884 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6885 avoid use after free.
6886
82f06518
TV
68872020-06-05 Tom de Vries <tdevries@suse.de>
6888
6889 * NEWS: Fix typos.
6890
f8c41851
SM
68912020-06-04 Simon Marchi <simon.marchi@efficios.com>
6892
6893 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6894 the per_bfd object.
6895 (dwarf2_read_debug_names): Likewise.
6896 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6897 object when re-using a per_bfd object with an index.
6898
f9b5d5ea
TV
68992020-06-03 Tom de Vries <tdevries@suse.de>
6900
6901 PR symtab/26046
6902 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6903 children for C++.
6904 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6905 DW_TAG_subprogram.
6906
f6eee2d0
AB
69072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6908
6909 * ada-lang.c (ada_language_data): Delete skip_trampoline
6910 initializer.
6911 * c-lang.c (c_language_data): Likewise.
6912 (cplus_language_data): Likewise.
6913 (cplus_language::skip_trampoline): New member function.
6914 (asm_language_data): Delete skip_trampoline initializer.
6915 (minimal_language_data): Likewise.
6916 * d-lang.c (d_language_data): Likewise.
6917 * f-lang.c (f_language_data): Likewise.
6918 * go-lang.c (go_language_data): Likewise.
6919 * language.c (unk_lang_trampoline): Delete function.
6920 (skip_language_trampoline): Update.
6921 (unknown_language_data): Delete skip_trampoline initializer.
6922 (auto_language_data): Likewise.
6923 * language.h (language_data): Delete skip_trampoline field.
6924 (language_defn::skip_trampoline): New function.
6925 * m2-lang.c (m2_language_data): Delete skip_trampoline
6926 initializer.
6927 * objc-lang.c (objc_skip_trampoline): Delete function, move
6928 implementation to objc_language::skip_trampoline.
6929 (objc_language_data): Delete skip_trampoline initializer.
6930 (objc_language::skip_trampoline): New member function with
6931 implementation from objc_skip_trampoline.
6932 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6933 initializer.
6934 * p-lang.c (pascal_language_data): Likewise.
6935 * rust-lang.c (rust_language_data): Likewise.
6936
0a50df5d
AB
69372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6940 (ada_language::demangle): New member function.
6941 * c-lang.c (c_language_data): Delete la_demangle initializer.
6942 (cplus_language_data): Delete la_demangle initializer.
6943 (cplus_language::demangle): New member function.
6944 (asm_language_data): Delete la_demangle initializer.
6945 (minimal_language_data): Delete la_demangle initializer.
6946 * d-lang.c (d_language_data): Delete la_demangle initializer.
6947 (d_language::demangle): New member function.
6948 * f-lang.c (f_language_data): Delete la_demangle initializer.
6949 (f_language::demangle): New member function.
6950 * go-lang.c (go_language_data): Delete la_demangle initializer.
6951 (go_language::demangle): New member function.
6952 * language.c (language_demangle): Update.
6953 (unk_lang_demangle): Delete.
6954 (unknown_language_data): Delete la_demangle initializer.
6955 (unknown_language::demangle): New member function.
6956 (auto_language_data): Delete la_demangle initializer.
6957 (auto_language::demangle): New member function.
6958 * language.h (language_data): Delete la_demangle field.
6959 (language_defn::demangle): New function.
6960 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6961 * objc-lang.c (objc_language_data): Delete la_demangle
6962 initializer.
6963 (objc_language::demangle): New member function.
6964 * opencl-lang.c (opencl_language_data): Delete la_demangle
6965 initializer.
6966 * p-lang.c (pascal_language_data): Likewise.
6967 * rust-lang.c (rust_language_data): Likewise.
6968 (rust_language::demangle): New member function.
6969
fbfb0a46
AB
69702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * ada-lang.c (ada_language_data): Delete la_print_type
6973 initializer.
6974 (ada_language::print_type): New member function.
6975 * c-lang.c (c_language_data): Delete la_print_type initializer.
6976 (c_language::print_type): New member function.
6977 (cplus_language_data): Delete la_print_type initializer.
6978 (cplus_language::print_type): New member function.
6979 (asm_language_data): Delete la_print_type initializer.
6980 (asm_language::print_type): New member function.
6981 (minimal_language_data): Delete la_print_type initializer.
6982 (minimal_language::print_type): New member function.
6983 * d-lang.c (d_language_data): Delete la_print_type initializer.
6984 (d_language::print_type): New member function.
6985 * f-lang.c (f_language_data): Delete la_print_type initializer.
6986 (f_language::print_type): New member function.
6987 * go-lang.c (go_language_data): Delete la_print_type initializer.
6988 (go_language::print_type): New member function.
6989 * language.c (unk_lang_print_type): Delete.
6990 (unknown_language_data): Delete la_print_type initializer.
6991 (unknown_language::print_type): New member function.
6992 (auto_language_data): Delete la_print_type initializer.
6993 (auto_language::print_type): New member function.
6994 * language.h (language_data): Delete la_print_type field.
6995 (language_defn::print_type): New function.
6996 (LA_PRINT_TYPE): Update.
6997 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6998 (m2_language::print_type): New member function.
6999 * objc-lang.c (objc_language_data): Delete la_print_type
7000 initializer.
7001 (objc_language::print_type): New member function.
7002 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7003 to opencl_language::print_type.
7004 (opencl_language_data): Delete la_print_type initializer.
7005 (opencl_language::print_type): New member function, implementation
7006 from opencl_print_type.
7007 * p-lang.c (pascal_language_data): Delete la_print_type
7008 initializer.
7009 (pascal_language::print_type): New member function.
7010 * rust-lang.c (rust_print_type): Delete, implementation moved to
7011 rust_language::print_type.
7012 (rust_language_data): Delete la_print_type initializer.
7013 (rust_language::print_type): New member function, implementation
7014 from rust_print_type.
7015
6f827019
AB
70162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7017
7018 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7019 implementation moves to...
7020 (ada_language::sniff_from_mangled_name): ...here. Update return
7021 type.
7022 (ada_language_data): Delete la_sniff_from_mangled_name
7023 initializer.
7024 * c-lang.c (c_language_data): Likewise.
7025 (cplus_language_data): Likewise.
7026 (cplus_language::sniff_from_mangled_name): New member function,
7027 implementation taken from gdb_sniff_from_mangled_name.
7028 (asm_language_data): Delete la_sniff_from_mangled_name
7029 initializer.
7030 (minimal_language_data): Likewise.
7031 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7032 implementation moves to cplus_language::sniff_from_mangled_name.
7033 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7034 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7035 moves to...
7036 (d_language::sniff_from_mangled_name): ...here.
7037 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7038 * f-lang.c (f_language_data): Likewise.
7039 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7040 moves to...
7041 (go_language::sniff_from_mangled_name): ...here.
7042 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7043 * language.c (language_sniff_from_mangled_name): Delete.
7044 (unknown_language_data): Delete la_sniff_from_mangled_name
7045 initializer.
7046 (auto_language_data): Likewise.
7047 * language.h (language_data): Delete la_sniff_from_mangled_name
7048 field.
7049 (language_defn::sniff_from_mangled_name): New function.
7050 (language_sniff_from_mangled_name): Delete declaration.
7051 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7052 field.
7053 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7054 implementation moves to...
7055 (objc_language::sniff_from_mangled_name): ...here.
7056 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7057 * opencl-lang.c (opencl_language_data): Likewise.
7058 * p-lang.c (pascal_language_data): Likewise.
7059 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7060 implementation moves to...
7061 (rust_language::sniff_from_mangled_name): ...here.
7062 (rust_language_data): Delete la_sniff_from_mangled_name
7063 initializer.
7064 * symtab.c (symbol_find_demangled_name): Call
7065 sniff_from_mangled_name member function.
7066
fb8006fd
AB
70672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7068
7069 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7070 initializer.
7071 * c-lang.c (c_language_data): Likewise.
7072 (cplus_language_data): Likewise.
7073 (cplus_language::search_name_hash): New member function.
7074 (asm_language_data): Delete la_search_name_hash initializer.
7075 (minimal_language_data): Likewise.
7076 * d-lang.c (d_language_data): Likewise.
7077 * dictionary.c (default_search_name_hash): Rename to...
7078 (language_defn::search_name_hash): ...this.
7079 * f-lang.c (f_language_data): Likewise.
7080 (f_language::search_name_hash): New member function.
7081 * go-lang.c (go_language_data): Delete la_search_name_hash
7082 initializer.
7083 * language.c (unknown_language_data): Likewise.
7084 (auto_language_data): Likewise.
7085 * language.h (struct language_data): Delete la_search_name_hash
7086 field.
7087 (language_defn::search_name_hash): Declare new member function.
7088 (default_search_name_hash): Delete declaration.
7089 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7090 initializer.
7091 * objc-lang.c (objc_language_data): Likewise.
7092 * opencl-lang.c (opencl_language_data): Likewise.
7093 * p-lang.c (pascal_language_data): Likewise.
7094 * rust-lang.c (rust_language_data): Likewise.
7095 * symtab.c (search_name_hash): Update call.
7096
8e25bafe
AB
70972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7100 initializer.
7101 * c-lang.c (class compile_instance): Declare.
7102 (c_language_data): Delete la_get_compile_instance initializer.
7103 (c_language::get_compile_instance): New member function.
7104 (cplus_language_data): Delete la_get_compile_instance initializer.
7105 (cplus_language::get_compile_instance): New member function.
7106 (asm_language_data): Delete la_get_compile_instance initializer.
7107 (minimal_language_data): Likewise.
7108 * c-lang.h (c_get_compile_context): Update comment.
7109 (cplus_get_compile_context): Update comment.
7110 * compile/compile.c (compile_to_object): Update calls, don't rely
7111 on function pointer being NULL.
7112 * d-lang.c (d_language_data): Delete la_get_compile_instance
7113 initializer.
7114 * f-lang.c (f_language_data): Likewise.
7115 * go-lang.c (go_language_data): Likewise.
7116 * language.c (unknown_language_data): Likewise.
7117 (auto_language_data): Likewise.
7118 * language.h (language_data): Delete la_get_compile_instance field.
7119 (language_defn::get_compile_instance): New member function.
7120 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7121 initializer.
7122 * objc-lang.c (objc_language_data): Likewise.
7123 * opencl-lang.c (opencl_language_data): Likewise.
7124 * p-lang.c (pascal_language_data): Likewise.
7125 * rust-lang.c (rust_language_data): Likewise.
7126
4009ee92
AB
71272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7128
7129 * ada-lang.c (ada_add_all_symbols): Update comment.
7130 (ada_iterate_over_symbols): Delete, move implementation to...
7131 (ada_language::iterate_over_symbols): ...here, a new member
7132 function, rewrite to use range based for loop.
7133 (ada_language_data): Delete la_iterate_over_symbols initializer.
7134 * c-lang.c (c_language_data): Likewise.
7135 (cplus_language_data): Likewise.
7136 (asm_language_data): Likewise.
7137 (minimal_language_data): Likewise.
7138 * d-lang.c (d_language_data): Likewise.
7139 * f-lang.c (f_language_data): Likewise.
7140 * go-lang.c (go_language_data): Likewise.
7141 * language.c (unknown_language_data): Likewise.
7142 (auto_language_data): Likewise.
7143 * language.h (language_data): Delete la_iterate_over_symbols field.
7144 (language_defn::iterate_over_symbols): New member function.
7145 (LA_ITERATE_OVER_SYMBOLS): Update.
7146 * linespec.c (iterate_over_all_matching_symtabs): Update.
7147 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7148 initializer.
7149 * objc-lang.c (objc_language_data): Likewise.
7150 * opencl-lang.c (opencl_language_data): Likewise.
7151 * p-lang.c (pascal_language_data): Likewise.
7152 * rust-lang.c (rust_language_data): Likewise.
7153
54f4ca46
AB
71542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7155
7156 * ada-lang.c (ada_language_data): Delete
7157 la_lookup_transparent_type initializer.
7158 * c-lang.c (c_language_data): Likewise.
7159 (cplus_language_data): Likewise.
7160 (cplus_language::lookup_transparent_type): New member function.
7161 (asm_language_data): Delete la_lookup_transparent_type
7162 initializer.
7163 (minimal_language_data): Likewise.
7164 * d-lang.c (d_language_data): Likewise.
7165 * f-lang.c (f_language_data): Likewise.
7166 * go-lang.c (go_language_data): Likewise.
7167 * language.c (unknown_language_data): Likewise.
7168 (auto_language_data): Likewise.
7169 * language.h (struct language_data): Delete
7170 la_lookup_transparent_type field.
7171 (language_defn::lookup_transparent_type): New member function.
7172 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7173 initializer.
7174 * objc-lang.c (objc_language_data): Likewise.
7175 * opencl-lang.c (opencl_language_data): Likewise.
7176 * p-lang.c (pascal_language_data): Likewise.
7177 * rust-lang.c (rust_language_data): Likewise.
7178 * symtab.c (symbol_matches_domain): Update call.
7179
1fb314aa
AB
71802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7181
7182 * ada-lang.c (ada_language_arch_info): Delete function, move
7183 implementation to...
7184 (ada_language::language_arch_info): ...here, a new member
7185 function.
7186 (ada_language_data): Delete la_language_arch_info.
7187 * c-lang.c (c_language_data): Likewise.
7188 (c_language::language_arch_info): New member function.
7189 (cplus_language_arch_info): Delete function, move
7190 implementation to...
7191 (cplus_language::language_arch_info): ...here, a new member
7192 function.
7193 (cplus_language_data): Delete la_language_arch_info.
7194 (asm_language_data): Likewise.
7195 (asm_language::language_arch_info): New member function.
7196 (minimal_language_data): Delete la_language_arch_info.
7197 (minimal_language::language_arch_info): New member function.
7198 * d-lang.c (d_language_arch_info): Delete function, move
7199 implementation to...
7200 (d_language::language_arch_info): ...here, a new member
7201 function.
7202 (d_language_data): Delete la_language_arch_info.
7203 * f-lang.c (f_language_arch_info): Delete function, move
7204 implementation to...
7205 (f_language::language_arch_info): ...here, a new member
7206 function.
7207 (f_language_data): Delete la_language_arch_info.
7208 * go-lang.c (go_language_arch_info): Delete function, move
7209 implementation to...
7210 (go_language::language_arch_info): ...here, a new member
7211 function.
7212 (go_language_data): Delete la_language_arch_info.
7213 * language.c (unknown_language_data): Likewise.
7214 (unknown_language::language_arch_info): New member function.
7215 (auto_language_data): Delete la_language_arch_info.
7216 (auto_language::language_arch_info): New member function.
7217 (language_gdbarch_post_init): Update call to
7218 la_language_arch_info.
7219 * language.h (language_data): Delete la_language_arch_info
7220 function pointer.
7221 (language_defn::language_arch_info): New function.
7222 * m2-lang.c (m2_language_arch_info): Delete function, move
7223 implementation to...
7224 (m2_language::language_arch_info): ...here, a new member
7225 function.
7226 (m2_language_data): Delete la_language_arch_info.
7227 * objc-lang.c (objc_language_arch_info): Delete function, move
7228 implementation to...
7229 (objc_language::language_arch_info): ...here, a new member
7230 function.
7231 (objc_language_data): Delete la_language_arch_info.
7232 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7233 implementation to...
7234 (opencl_language::language_arch_info): ...here, a new member
7235 function.
7236 (opencl_language_data): Delete la_language_arch_info.
7237 * p-lang.c (pascal_language_arch_info): Delete function, move
7238 implementation to...
7239 (pascal_language::language_arch_info): ...here, a new member
7240 function.
7241 (pascal_language_data): Delete la_language_arch_info.
7242 * rust-lang.c (rust_language_arch_info): Delete function, move
7243 implementation to...
7244 (rust_language::language_arch_info): ...here, a new member
7245 function.
7246 (rust_language_data): Delete la_language_arch_info.
7247
48448202
AB
72482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7251 initializer.
7252 * c-lang.c (c_language_data): Likewise.
7253 (cplus_language_data): Likewise.
7254 (cplus_language::pass_by_reference_info): New method.
7255 (asm_language_data): Delete la_pass_by_reference initializer.
7256 (minimal_language_data): Likewise.
7257 * cp-abi.c (cp_pass_by_reference): Remove use of
7258 default_pass_by_reference.
7259 * d-lang.c (d_language_data): Likewise.
7260 * f-lang.c (f_language_data): Likewise.
7261 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7262 default_pass_by_reference.
7263 * go-lang.c (go_language_data): Likewise.
7264 * language.c (language_pass_by_reference): Update.
7265 (default_pass_by_reference): Delete.
7266 (unknown_language_data): Delete la_pass_by_reference
7267 initializer.
7268 (auto_language_data): Likewise.
7269 * language.h (struct language_data): Delete la_pass_by_reference
7270 field.
7271 (language_defn::pass_by_reference_info): New member function.
7272 (default_pass_by_reference): Delete declaration.
7273 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7274 initializer.
7275 * objc-lang.c (objc_language_data): Likewise.
7276 * opencl-lang.c (opencl_language_data): Likewise.
7277 * p-lang.c (pascal_language_data): Likewise.
7278 * rust-lang.c (rust_language_data): Likewise.
7279
15e5fd35
AB
72802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7281
7282 * ada-lang.c (ada_read_var_value): Delete function, move
7283 implementation to...
7284 (ada_language::read_var_value): ...here.
7285 (ada_language_data): Delete la_read_var_value initializer.
7286 * c-lang.c (c_language_data): Likewise.
7287 (cplus_language_data): Likewise.
7288 (minimal_language_data): Likewise.
7289 * d-lang.c (d_language_data): Likewise.
7290 * f-lang.c (f_language_data): Likewise.
7291 * findvar.c (default_read_var_value): Rename to...
7292 (language_defn::read_var_value): ...this.
7293 * findvar.c (read_var_value): Update header comment, and change to
7294 call member function instead of function pointer.
7295 * go-lang.c (go_language_data): Likewise.
7296 * language.c (unknown_language_data): Delete la_read_var_value
7297 initializer.
7298 (auto_language_data): Likewise.
7299 * language.h (struct language_data): Delete la_read_var_value
7300 field.
7301 (language_defn::read_var_value): New member function.
7302 (default_read_var_value): Delete declaration.
7303 * m2-lang.c (m2_language_data): Delete la_read_var_value
7304 initializer.
7305 * objc-lang.c (objc_language_data): Likewise.
7306 * opencl-lang.c (opencl_language_data): Likewise.
7307 * p-lang.c (pascal_language_data): Likewise.
7308 * rust-lang.c (rust_language_data): Likewise.
7309 * value.h (default_read_var_value): Delete declaration.
7310
5bd40f2a
AB
73112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7312
7313 * ada-lang.c (ada_print_array_index): Delete function, move
7314 implementation to...
7315 (ada_language::print_array_index): ...here.
7316 (ada_language_data): Delete la_print_array_index initializer.
7317 * c-lang.c (c_language_data): Likewise.
7318 (cplus_language_data): Likewise.
7319 (minimal_language_data): Likewise.
7320 * d-lang.c (d_language_data): Likewise.
7321 * f-lang.c (f_language_data): Likewise.
7322 * go-lang.c (go_language_data): Likewise.
7323 * language.c (default_print_array_index): Delete function, move
7324 implementation to...
7325 (language_defn::print_array_index): ...here.
7326 (unknown_language_data): Delete la_print_array_index initializer.
7327 (auto_language_data): Likewise.
7328 * language.h (struct language_data): Delete la_print_array_index
7329 field.
7330 (language_defn::print_array_index): New member function.
7331 (LA_PRINT_ARRAY_INDEX): Update.
7332 (default_print_array_index): Delete declaration.
7333 * m2-lang.c (m2_language_data): Delete la_print_array_index
7334 initializer.
7335 * objc-lang.c (objc_language_data): Likewise.
7336 * opencl-lang.c (opencl_language_data): Likewise.
7337 * p-lang.c (pascal_language_data): Likewise.
7338 * rust-lang.c (rust_language_data): Likewise.
7339
0874fd07
AB
73402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7341
7342 * gdb/ada-lang.c (ada_language_defn): Convert to...
7343 (ada_language_data): ...this.
7344 (class ada_language): New class.
7345 (ada_language_defn): New static global.
7346 * gdb/c-lang.c (c_language_defn): Convert to...
7347 (c_language_data): ...this.
7348 (class c_language): New class.
7349 (c_language_defn): New static global.
7350 (cplus_language_defn): Convert to...
7351 (cplus_language_data): ...this.
7352 (class cplus_language): New class.
7353 (cplus_language_defn): New static global.
7354 (asm_language_defn): Convert to...
7355 (asm_language_data): ...this.
7356 (class asm_language): New class.
7357 (asm_language_defn): New static global.
7358 (minimal_language_defn): Convert to...
7359 (minimal_language_data): ...this.
7360 (class minimal_language): New class.
7361 (minimal_language_defn): New static global.
7362 * gdb/d-lang.c (d_language_defn): Convert to...
7363 (d_language_data): ...this.
7364 (class d_language): New class.
7365 (d_language_defn): New static global.
7366 * gdb/f-lang.c (f_language_defn): Convert to...
7367 (f_language_data): ...this.
7368 (class f_language): New class.
7369 (f_language_defn): New static global.
7370 * gdb/go-lang.c (go_language_defn): Convert to...
7371 (go_language_data): ...this.
7372 (class go_language): New class.
7373 (go_language_defn): New static global.
7374 * gdb/language.c (unknown_language_defn): Remove declaration.
7375 (current_language): Initialize to nullptr, real initialization is
7376 moved to _initialize_language.
7377 (languages): Delete global.
7378 (language_defn::languages): Define.
7379 (set_language_command): Use language_defn::languages.
7380 (set_language): Likewise.
7381 (range_error): Likewise.
7382 (language_enum): Likewise.
7383 (language_def): Likewise.
7384 (add_set_language_command): Use language_def::languages for the
7385 language list, and language_def to lookup language pointers.
7386 (skip_language_trampoline): Use language_defn::languages.
7387 (unknown_language_defn): Convert to...
7388 (unknown_language_data): ...this.
7389 (class unknown_language): New class.
7390 (unknown_language_defn): New static global.
7391 (auto_language_defn): Convert to...
7392 (auto_language_data): ...this.
7393 (class auto_language): New class.
7394 (auto_language_defn): New static global.
7395 (language_gdbarch_post_init): Use language_defn::languages.
7396 (_initialize_language): Initialize current_language.
7397 * gdb/language.h (struct language_defn): Rename to...
7398 (struct language_data): ...this.
7399 (struct language_defn): New.
7400 (auto_language_defn): Delete.
7401 (unknown_language_defn): Delete.
7402 (minimal_language_defn): Delete.
7403 (ada_language_defn): Delete.
7404 (asm_language_defn): Delete.
7405 (c_language_defn): Delete.
7406 (cplus_language_defn): Delete.
7407 (d_language_defn): Delete.
7408 (f_language_defn): Delete.
7409 (go_language_defn): Delete.
7410 (m2_language_defn): Delete.
7411 (objc_language_defn): Delete.
7412 (opencl_language_defn): Delete.
7413 (pascal_language_defn): Delete.
7414 (rust_language_defn): Delete.
7415 * gdb/m2-lang.c (m2_language_defn): Convert to...
7416 (m2_language_data): ...this.
7417 (class m2_language): New class.
7418 (m2_language_defn): New static global.
7419 * gdb/objc-lang.c (objc_language_defn): Convert to...
7420 (objc_language_data): ...this.
7421 (class objc_language): New class.
7422 (objc_language_defn): New static global.
7423 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7424 (opencl_language_data): ...this.
7425 (class opencl_language): New class.
7426 (opencl_language_defn): New static global.
7427 * gdb/p-lang.c (pascal_language_defn): Convert to...
7428 (pascal_language_data): ...this.
7429 (class pascal_language): New class.
7430 (pascal_language_defn): New static global.
7431 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7432 language pointer, update comment format.
7433 * gdb/rust-lang.c (rust_language_defn): Convert to...
7434 (rust_language_data): ...this.
7435 (class rust_language): New class.
7436 (rust_language_defn): New static global.
7437
1313c56e
AB
74382020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7441 member variable.
7442 <m_stmt_at_address>: New member variable.
7443 (lnp_state_machine::record_line): Don't record some lines, update
7444 tracking of is_stmt at the same address.
7445 (lnp_state_machine::lnp_state_machine): Initialise new member
7446 variables.
7447
b7ed9f3d
ST
74482020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7449
7450 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7451 "-include gnu-nat-mig.h".
7452 * gnu-nat-mig.h: New file.
7453 * gnu-nat.c: Include "gnu-nat-mig.h".
7454 (exc_server, msg_reply_server, notify_server,
7455 process_reply_server): Remove declarations.
7456
14a8ad62
ST
74572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7458
7459 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7460 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7461 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7462 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7463 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7464 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7465 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7466 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7467 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7468 to gnu_nat_target class.
7469 * gnu-nat.c: Likewise.
7470 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7471 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7472 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7473 object.
7474 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7475 instead of `gnu_target'.
7476
0af5e106
ST
74772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7478
7479 * i386-gnu-tdep.c: Include "gdbcore.h"
7480 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7481 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7482 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7483 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7484 i386_gnu_sigcontext_addr): New functions
7485 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7486 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7487 tdep.
7488
078f2fc9
ST
74892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7490
7491 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7492 before fork_inferior call. Avoid calling it if target_is_pushed returns
7493 true.
7494
53dff92c
ST
74952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7496
7497 * gnu-nat.h (gnu_target): New variable declaration.
7498 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7499 gnu_target.
7500 * gnu-nat.c (gnu_target): New variable.
7501 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7502 add_thread_silent, and add_thread calls.
7503 (gnu_nat_target::create_inferior): Pass gnu_target to
7504 add_thread_silent, thread_change_ptid call.
7505 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7506 call.
7507
5a8b8627
ST
75082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7509
7510 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7511 (gnu_nat_target::find_memory_regions): Remove unused
7512 `old_address' variable.
7513
366f550a
ST
75142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7515
7516 * gnu-nat.c: Include "gdbarch.h".
7517
f14871bf
ST
75182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7519
7520 * reply_mig_hack.awk (Error return): Cast function through
7521 void *, to bypass compiler function call check.
7522
c6887cfb
ST
75232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7524
7525 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7526 $(srcdir)/reply_mig_hack.awk.
7527
6930bffe
ST
75282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7529
7530 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7531
112c22ed
JG
75322020-05-30 Jonny Grant <jg@jguk.org>
7533
7534 * configure.ac (ACX_BUGURL): change bug URL to https.
7535
f68f85b5
PA
75362020-05-30 Pedro Alves <palves@redhat.com>
7537
7538 * cp-support.c (replace_typedefs_template): New.
7539 (replace_typedefs_qualified_name): Handle
7540 DEMANGLE_COMPONENT_TEMPLATE.
7541
976ca316
SM
75422020-05-29 Simon Marchi <simon.marchi@efficios.com>
7543
7544 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7545 dwarf2/index-cache.h, dwarf2/index-write.c,
7546 dwarf2/index-write.h, dwarf2/line-header.c,
7547 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7548 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7549 variables and fields from `dwarf2_per_objfile` to just
7550 `per_objfile` throughout.
7551
989ade05
SM
75522020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7553
7554 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7555 <push_dwarf_reg_entry_value>: Add comment.
7556
c47bae85
KB
75572020-05-28 Kevin Buettner <kevinb@redhat.com>
7558 Keith Seitz <keiths@redhat.com>
7559
7560 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7561 instead of PyEval_ReleaseLock.
7562 (class gdbpy_gil): Move to earlier in file.
7563 (finalize_python): Set gdb_python_initialized.
7564 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7565 when not initialized.
7566
44486dcf
SM
75672020-05-28 Simon Marchi <simon.marchi@efficios.com>
7568
7569 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7570 <push_dwarf_reg_entry_value>: Remove assert. Override
7571 per_objfile with caller_per_objfile.
7572
f030440d
TV
75732020-05-28 Tom de Vries <tdevries@suse.de>
7574
7575 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7576 PR gold/15646 workaround to symbol kind "type".
7577
f0fbb768
TT
75782020-05-27 Tom Tromey <tromey@adacore.com>
7579
7580 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7581
af0b2a3e
TT
75822020-05-27 Tom Tromey <tromey@adacore.com>
7583
7584 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7585 Use htab_find_with_hash.
7586 <add_abbrev>: Remove "abbrev_number" parameter.
7587 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7588 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7589 (hash_abbrev): Add comment.
7590 (abbrev_table::lookup_abbrev): Move to header file.
7591 (abbrev_table::read): Update.
7592
7d00ffec
TT
75932020-05-27 Tom Tromey <tromey@adacore.com>
7594
7595 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7596 method.
7597 <canonical_name>: New member.
7598 <raw_name>: Rename from "name".
7599 (partial_die_info): Initialize canonical_name.
7600 (scan_partial_symbols): Check raw_name.
7601 (partial_die_parent_scope, partial_die_full_name)
7602 (add_partial_symbol, add_partial_subprogram)
7603 (add_partial_enumeration, load_partial_dies): Use "name" method.
7604 (partial_die_info::name): New method.
7605 (partial_die_info::read, guess_partial_die_structure_name)
7606 (partial_die_info::fixup): Update.
7607
697bba18
TT
76082020-05-27 Tom Tromey <tromey@adacore.com>
7609
7610 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7611 <get_ref_die_offset>: Inline.
7612 <get_ref_die_offset_complaint>: New method.
7613 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7614 (attribute::get_ref_die_offset_complaint): Rename from
7615 get_ref_die_offset. Just issue complaint.
7616
c17ace43
HD
76172020-05-27 Hannes Domani <ssbssa@yahoo.de>
7618
7619 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7620
96445f0b
HD
76212020-05-27 Hannes Domani <ssbssa@yahoo.de>
7622
7623 * exec.c (exec_file_attach): Use errno value of first openp failure.
7624
ac637ec3
HD
76252020-05-27 Hannes Domani <ssbssa@yahoo.de>
7626
7627 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7628 Don't close thread handle.
7629
17ee85fc
TT
76302020-05-27 Tom Tromey <tom@tromey.com>
7631 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7634 shared_ptr.
7635 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7636 member.
7637 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7638 dwarf2_per_bfd_objfile_data_key>: New globals.
7639 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7640 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7641 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7642 shared.
7643 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7644 short-circuit when sharing.
7645 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7646 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7647
39b16f87
SM
76482020-05-27 Simon Marchi <simon.marchi@efficios.com>
7649
7650 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7651 to...
7652 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7653 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7654
fcf23d5b
SM
76552020-05-27 Simon Marchi <simon.marchi@efficios.com>
7656
7657 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7658 build_name_components, find_name_components_bounds>:
7659 Add per_objfile parameter.
7660 (struct mapped_index) <symbol_name_at>: Likewise.
7661 (struct mapped_debug_names): Remove constructor.
7662 <dwarf2_per_objfile>: Remove field.
7663 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7664 (mapped_index_base::find_name_components_bounds,
7665 mapped_index_base::build_name_components,
7666 dw2_expand_symtabs_matching_symbol): Likewise.
7667 (class mock_mapped_index) <symbol_name_at>: Likewise.
7668 (check_match): Likewise.
7669 (check_find_bounds_finds): Likewise.
7670 (test_mapped_index_find_name_component_bounds): Update.
7671 (CHECK_MATCH): Update.
7672 (dw2_expand_symtabs_matching): Update.
7673 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7674 per_objfile parameter.
7675 <find_vec_in_debug_names>: Likewise.
7676 <m_per_objfile>: New field.
7677 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7678 parameter.
7679 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7680 (dw2_debug_names_iterator::next): Update.
7681 (dw2_debug_names_lookup_symbol): Update.
7682 (dw2_debug_names_expand_symtabs_for_function): Update.
7683 (dw2_debug_names_map_matching_symbols): Update.
7684 (dw2_debug_names_expand_symtabs_matching): Update.
7685 (dwarf2_read_debug_names): Update.
7686
7188ed02
SM
76872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7688
7689 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7690 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7691 move to dwarf2_per_objfile.
7692 <read_in_chain>: Remove.
7693 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7694 remove_all_cus, age_comp_units>: New methods.
7695 <m_dwarf2_cus>: New member.
7696 (struct dwarf2_per_cu_data) <cu>: Remove.
7697 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7698 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7699 moved to methods of dwarf2_per_objfile.
7700 (dwarf2_clear_marks): Remove.
7701 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7702 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7703 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7704 (dwarf2_per_objfile::remove_all_cus): New.
7705 (class free_cached_comp_units) <~free_cached_comp_units>:
7706 Update.
7707 (load_cu): Update.
7708 (dw2_do_instantiate_symtab): Adjust.
7709 (fill_in_sig_entry_from_dwo_entry): Adjust.
7710 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7711 (cutu_reader::cutu_reader): Likewise.
7712 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7713 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7714 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7715 and dwarf2_per_objfile::age_comp_units.
7716 (load_partial_comp_unit): Update.
7717 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7718 (process_queue): Likewise.
7719 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7720 backlink.
7721 (dwarf2_read_addr_index): Likewise.
7722 (follow_die_offset): Likewise.
7723 (dwarf2_fetch_die_loc_sect_off): Likewise.
7724 (dwarf2_fetch_constant_bytes): Likewise.
7725 (dwarf2_fetch_die_type_sect_off): Likewise.
7726 (follow_die_sig_1): Likewise.
7727 (load_full_type_unit): Likewise.
7728 (read_signatured_type): Likewise.
7729 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7730 (dwarf2_cu::~dwarf2_cu): Remove.
7731 (dwarf2_per_objfile::get_cu): New.
7732 (dwarf2_per_objfile::set_cu): New.
7733 (age_cached_comp_units): Rename to...
7734 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7735 to std::unordered_map.
7736 (free_one_cached_comp_unit): Rename to...
7737 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7738 to std::unordered_map.
7739 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7740 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7741 a dwarf2_per_objfile in data.
7742 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7743 (dwarf2_clear_marks): Remove.
7744
2e671100
SM
77452020-05-27 Simon Marchi <simon.marchi@efficios.com>
7746
7747 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7748 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7749 (init_tu_and_read_dwo_dies): Likewise.
7750 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7751 (cutu_reader::cutu_reader): Likewise.
7752 (load_partial_comp_unit): Likewise.
7753 (process_psymtab_comp_unit): Update.
7754 (build_type_psymtabs_1): Update.
7755 (process_skeletonless_type_unit): Update.
7756 (load_full_comp_unit): Update.
7757 (find_partial_die): Update.
7758 (dwarf2_read_addr_index): Update.
7759 (read_signatured_type): Update.
7760
2e6a9f79
SM
77612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7762
7763 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7764 m_header_read_in>: New fields.
7765 <get_header>: New method.
7766 * dwarf2/read.c (per_cu_header_read_in): Remove.
7767 (dwarf2_per_cu_data::get_header): New.
7768 (dwarf2_per_cu_data::addr_size): Update.
7769 (dwarf2_per_cu_data::offset_size): Update.
7770 (dwarf2_per_cu_data::ref_addr_size): Update.
7771
1b555f17
SM
77722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7773
7774 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7775 (dw2_do_instantiate_symtab): Update.
7776 (queue_and_load_all_dwo_tus): Change parameter from
7777 dwarf2_per_cu_data to dwarf2_cu.
7778 (dwarf2_fetch_die_loc_sect_off): Update.
7779 (dwarf2_fetch_constant_bytes): Update.
7780 (dwarf2_fetch_die_type_sect_off): Update.
7781
8fc0b21d
SM
77822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7783
7784 * dwarf2/read.c (process_full_comp_unit,
7785 process_full_type_unit): Remove per_cu, per_objfile paramters.
7786 Add dwarf2_cu parameter.
7787 (process_queue): Update.
7788
168c9250
SM
77892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7790
7791 * dwarf2/read.c (create_cu_from_index_list): Replace
7792 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7793 (create_cus_from_index_list): Likewise.
7794 (create_cus_from_index): Likewise.
7795 (create_signatured_type_table_from_index): Likewise.
7796 (create_cus_from_debug_names_list): Likewise.
7797 (create_cus_from_debug_names): Likewise.
7798 (dwarf2_read_gdb_index): Update.
7799 (dwarf2_read_debug_names): Update.
7800
e286671b
TT
78012020-05-27 Tom Tromey <tom@tromey.com>
7802 Simon Marchi <simon.marchi@efficios.com>
7803
7804 * dwarf2/read.h (struct dwarf2_per_objfile)
7805 <get_type_for_signatured_type, set_type_for_signatured_type>:
7806 New methods.
7807 <m_type_map>: New member.
7808 (struct signatured_type) <type>: Remove.
7809 * dwarf2/read.c
7810 (dwarf2_per_objfile::get_type_for_signatured_type,
7811 dwarf2_per_objfile::set_type_for_signatured_type): New.
7812 (get_signatured_type): Use new methods.
7813
8adb8487
TT
78142020-05-27 Tom Tromey <tom@tromey.com>
7815 Simon Marchi <simon.marchi@efficios.com>
7816
7817 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7818 (struct dwarf2_per_objfile) <type_units>: New member.
7819 <get_type_unit_group_unshareable>: New method.
7820 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7821 num_symtabs, symtabs>: Remove; move to
7822 type_unit_group_unshareable.
7823 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7824 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7825 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7826
127bbf4b
SM
78272020-05-27 Simon Marchi <simon.marchi@efficios.com>
7828
7829 * dwarf2/read.h (struct dwarf2_per_cu_data):
7830 <dwarf2_per_objfile>: Remove.
7831 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7832 dwarf2_per_objfile.
7833 (create_signatured_type_table_from_index): Likewise.
7834 (create_signatured_type_table_from_debug_names): Likewise.
7835 (create_debug_type_hash_table): Likewise.
7836 (fill_in_sig_entry_from_dwo_entry): Likewise.
7837 (create_type_unit_group): Likewise.
7838 (read_comp_units_from_section): Likewise.
7839 (create_cus_hash_table): Likewise.
7840
f6e649dd
SM
78412020-05-27 Simon Marchi <simon.marchi@efficios.com>
7842
7843 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7844 dwarf2_per_cu_data::dwarf2_per_objfile.
7845 (compute_compunit_symtab_includes): Likewise.
7846 (dwarf2_cu::start_symtab): Likewise.
7847
aa66c379
SM
78482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7849
7850 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7851 parameter.
7852 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7853 (read_namespace_alias): Update.
7854 (lookup_die_type): Update.
7855 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7856 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7857 Update.
7858 (disassemble_dwarf_expression): Update.
7859
120ce1b5
SM
78602020-05-27 Simon Marchi <simon.marchi@efficios.com>
7861
7862 * dwarf2/read.h (struct dwarf2_queue_item): Add
7863 dwarf2_per_objfile parameter, assign new parameter.
7864 <per_objfile>: New field.
7865 * dwarf2/read.c (free_one_cached_comp_unit): Add
7866 dwarf2_per_objfile parameter.
7867 (queue_comp_unit): Likewise.
7868 (dw2_do_instantiate_symtab): Update.
7869 (process_psymtab_comp_unit): Update.
7870 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7871 (process_imported_unit_die): Update.
7872 (queue_and_load_dwo_tu): Update.
7873 (follow_die_offset): Update.
7874 (follow_die_sig_1): Update.
7875
9f47c707
SM
78762020-05-27 Simon Marchi <simon.marchi@efficios.com>
7877
7878 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7879 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7880 (read_call_site_scope): Assign per_objfile.
7881 (dwarf2_per_cu_data::objfile): Remove.
7882 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7883 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7884 dwarf2_per_objfile parameter.
7885 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7886 dwarf2_per_objfile parameter.
7887 (dwarf_expr_reg_to_entry_parameter): Add output
7888 dwarf2_per_objfile parameter.
7889 (locexpr_get_frame_base): Update.
7890 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7891 <push_dwarf_reg_entry_value>: Update.
7892 <call_site_to_target_addr>: Update.
7893 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7894 parameter.
7895 (value_of_dwarf_reg_entry): Update.
7896 (rw_pieced_value): Update.
7897 (indirect_synthetic_pointer): Update.
7898 (dwarf2_evaluate_property): Update.
7899 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7900 parameter.
7901 (locexpr_read_variable): Update.
7902 (locexpr_get_symbol_read_needs): Update.
7903 (loclist_read_variable): Update.
7904
14095eb3
SM
79052020-05-27 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7908 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7909 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7910 parameter.
7911 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7912 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7913 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7914 parameter.
7915 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7916 sect_variable_value): Add dwarf2_per_objfile parameter.
7917 (class dwarf_evaluate_loc_desc) <dwarf_call,
7918 dwarf_variable_value>: Update.
7919 (fetch_const_value_from_synthetic_pointer): Add
7920 dwarf2_per_objfile parameter.
7921 (fetch_const_value_from_synthetic_pointer): Update.
7922 (coerced_pieced_ref): Update.
7923 (class symbol_needs_eval_context) <dwarf_call,
7924 dwarf_variable_value>: Update.
7925 (dwarf2_compile_expr_to_ax): Update.
7926
3c3cd3d4
SM
79272020-05-27 Simon Marchi <simon.marchi@efficios.com>
7928
7929 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7930 parameter.
7931 (dwarf2_evaluate_loc_desc_full): Update.
7932
82ca3f51
SM
79332020-05-27 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7936 parameter.
7937 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7938 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7939 dwarf2_per_objfile parameter.
7940 (decode_debug_loc_dwo_addresses): Likewise.
7941 (dwarf2_find_location_expression): Update.
7942 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7943 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7944 parameter.
7945 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7946 parameter.
7947 (locexpr_describe_location_1): Likewise.
7948 (locexpr_describe_location): Update.
7949
4b167ea1
SM
79502020-05-27 Simon Marchi <simon.marchi@efficios.com>
7951
7952 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7953 Remove.
7954 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7955 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7956 (dwarf2_compile_property_to_c): Update.
7957 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7958 use text offset from objfile.
7959 (locexpr_tracepoint_var_ref): Update.
7960 (locexpr_generate_c_location): Update.
7961 (loclist_describe_location): Update.
7962 (loclist_tracepoint_var_ref): Update.
7963 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7964 dwarf2_per_objfile parameter.
7965 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7966 use text offset from objfile.
7967 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7968
89b07335
SM
79692020-05-27 Simon Marchi <simon.marchi@efficios.com>
7970
7971 * dwarf2/expr.h (struct dwarf_expr_context)
7972 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7973 <offset>: Remove.
7974 <per_objfile>: New member.
7975 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7976 dwarf2_per_objfile parameter. Don't set offset, set
7977 per_objfile.
7978 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7979 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7980 a dwarf2_per_objfile object instead of an offset.
7981 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7982 constructor.
7983 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7984 to dwarf2_expr_executor constructor. Don't set offset.
7985 (dwarf2_fetch_cfa_info): Update.
7986 (struct dwarf2_frame_cache) <text_offset>: Remove.
7987 <per_objfile>: New field.
7988 (dwarf2_frame_cache): Update.
7989 (dwarf2_frame_prev_register): Update.
7990 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7991 <dwarf_evaluate_loc_desc>: Add constructor.
7992 (dwarf2_evaluate_loc_desc_full): Update.
7993 (dwarf2_locexpr_baton_eval): Update.
7994 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7995 Add constructor.
7996 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7997
293e7e51
SM
79982020-05-27 Simon Marchi <simon.marchi@efficios.com>
7999
8000 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8001 addr_sized_int_type>: Move to dwarf2_cu.
8002 <int_type>: Move to dwarf2_per_objfile.
8003 (struct dwarf2_per_objfile) <int_type>: Move here.
8004 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8005 addr_sized_int_type>: Move here.
8006 (read_func_scope): Update.
8007 (read_array_type): Update.
8008 (read_tag_string_type): Update.
8009 (attr_to_dynamic_prop): Update.
8010 (dwarf2_per_cu_data::int_type): Rename to...
8011 (dwarf2_per_objfile::int_type): ... this.
8012 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8013 (dwarf2_cu::addr_sized_int_type): ... this.
8014 (read_subrange_type): Update.
8015 (dwarf2_per_cu_data::addr_type): Rename to...
8016 (dwarf2_cu::addr_type): ... this.
8017 (set_die_type): Update.
8018
64874a40
SM
80192020-05-27 Simon Marchi <simon.marchi@efficios.com>
8020
8021 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8022 data through per_cu->cu.
8023
4ab09049
SM
80242020-05-27 Simon Marchi <simon.marchi@efficios.com>
8025
8026 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8027 dwarf2_per_cu_data parameter fo dwarf2_cu.
8028 (lookup_dwo_type_unit): Likewise.
8029 (read_cutu_die_from_dwo): Likewise.
8030 (lookup_dwo_unit): Likewise.
8031 (open_and_init_dwo_file): Likewise.
8032 (lookup_dwo_cutu): Likewise.
8033 (lookup_dwo_comp_unit): Likewise.
8034 (lookup_dwo_type_unit): Likewise.
8035 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8036 (cutu_reader::cutu_reader): Update.
8037
47b14e86
SM
80382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8039
8040 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8041 parameter.
8042 (process_full_type_unit): Likewise.
8043 (process_queue): Update.
8044
43182c09
SM
80452020-05-27 Simon Marchi <simon.marchi@efficios.com>
8046
8047 * dwarf2/read.c (recursively_compute_inclusions): Add
8048 dwarf2_per_objfile parameter.
8049 (compute_compunit_symtab_includes): Likewise.
8050 (process_cu_includes): Update.
8051
7aa104c4
SM
80522020-05-27 Simon Marchi <simon.marchi@efficios.com>
8053
8054 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8055 parameter.
8056 (create_type_unit_group): Update.
8057 (process_psymtab_comp_unit_reader): Update.
8058 (build_type_psymtabs_reader): Update.
8059
e3beb21d
SM
80602020-05-27 Simon Marchi <simon.marchi@efficios.com>
8061
8062 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8063 object through m_this_cu->cu.
8064
d460f660
SM
80652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8066
8067 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8068 the info parameter.
8069 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8070
ab432490
SM
80712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8072
8073 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8074 per_objfile parameter.
8075 (load_full_type_unit): Add per_objfile parameter.
8076 (read_signatured_type): Likewise.
8077 (load_full_comp_unit): Likewise.
8078 (load_cu): Likewise.
8079 (dw2_do_instantiate_symtab): Likewise.
8080 (dw2_get_file_names): Likewise.
8081 (dw2_map_symtabs_matching_filename): Update.
8082 (dw_expand_symtabs_matching_file_matcher): Update.
8083 (dw2_map_symbol_filenames): Update.
8084 (process_psymtab_comp_unit): Add per_objfile parameter.
8085 (build_type_psymtabs_1): Update.
8086 (process_skeletonless_type_unit): Update.
8087 (dwarf2_build_psymtabs_hard): Update.
8088 (load_partial_comp_unit): Add per_objfile parameter.
8089 (scan_partial_symbols): Update.
8090 (load_full_comp_unit): Add per_objfile parameter.
8091 (process_imported_unit_die): Update.
8092 (create_cus_hash_table): Update.
8093 (find_partial_die): Update.
8094 (dwarf2_read_addr_index): Update.
8095 (follow_die_offset): Update.
8096 (dwarf2_fetch_die_loc_sect_off): Update.
8097 (dwarf2_fetch_constant_bytes): Update.
8098 (dwarf2_fetch_die_type_sect_off): Update.
8099 (follow_die_sig_1): Update.
8100 (load_full_type_unit): Add per_objfile parameter.
8101 (read_signatured_type): Likewise.
8102
313bad1b
SM
81032020-05-27 Simon Marchi <simon.marchi@efficios.com>
8104
8105 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8106 of objfile_name.
8107
c3699833
SM
81082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8109
8110 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8111 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8112 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8113 field.
8114 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8115 (create_cus_from_index): Update.
8116 (dwarf2_read_gdb_index): Update.
8117 (create_cus_from_debug_names): Update.
8118 (dwarf2_read_debug_names): Update.
8119 (get_abbrev_section_for_cu): Update.
8120 (create_all_comp_units): Update.
8121 (read_attribute_value): Update.
8122 (get_debug_line_section): Update.
8123 * dwarf2/index-cache.c (index_cache::store): Update.
8124 * dwarf2/index-write.c (save_gdb_index_command): Update.
8125 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8126
1859c670
SM
81272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8128
8129 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8130 member.
8131 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8132 dwarf2_per_cu_data::per_bfd.
8133 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8134 (create_type_unit_group): Likewise.
8135 (queue_comp_unit): Remove reference to
8136 per_cu->dwarf2_per_objfile.
8137 (maybe_queue_comp_unit): Likewise.
8138 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8139 (create_cus_hash_table): Assign new field.
8140
5e22e966
SM
81412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8142
8143 * dwarf2/read.c: Replace
8144 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8145 dwarf2_cu->per_objfile throughout.
8146
97a1449a
SM
81472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8148
8149 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8150 parameter, don't use per_cu->dwarf2_per_objfile.
8151 (dw2_instantiate_symtab): Likewise.
8152 (dw2_find_last_source_symtab): Update.
8153 (dw2_map_expand_apply): Update.
8154 (dw2_lookup_symbol): Update.
8155 (dw2_expand_symtabs_for_function): Update.
8156 (dw2_expand_all_symtabs): Update.
8157 (dw2_expand_symtabs_with_fullname): Update.
8158 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8159 don't use per_cu->dwarf2_per_objfile.
8160 (dw2_expand_marked_cus): Update.
8161 (dw2_find_pc_sect_compunit_symtab): Update.
8162 (dw2_debug_names_lookup_symbol): Update.
8163 (dw2_debug_names_expand_symtabs_for_function): Update.
8164 (dw2_debug_names_map_matching_symbols): Update.
8165 (dwarf2_psymtab::expand_psymtab): Update.
8166
9e021579
SM
81672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8170 <per_objfile>: New member.
8171 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8172 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8173 call to dwarf2_cu.
8174 (cutu_reader::cutu_reader): Update.
8175 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8176
ae090bdb
SM
81772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8178
8179 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8180 struct dwarf2_per_objfile.
8181 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8182 dwarf2_per_bfd.
8183 * dwarf2/read.c (set_die_type): Update.
8184 (get_die_type_at_offset): Update.
8185
af758d11
SM
81862020-05-27 Tom Tromey <tom@tromey.com>
8187 Simon Marchi <simon.marchi@efficios.com>
8188
8189 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8190 method.
8191 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8192 get_symtab, set_symtab>: New methods.
8193 <m_symtabs>: New field.
8194 (struct dwarf2_psymtab): Derive from partial_symtab.
8195 <readin_p, get_compunit_symtab>: Declare methods.
8196 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8197 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8198 New methods.
8199 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8200 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8201 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8202 (dw2_symtab_iter_next, dw2_print_stats)
8203 (dw2_expand_symtabs_with_fullname)
8204 (dw2_expand_symtabs_matching_one)
8205 (dw_expand_symtabs_matching_file_matcher)
8206 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8207 (dw2_debug_names_iterator::next)
8208 (dw2_debug_names_map_matching_symbols)
8209 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8210 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8211 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8212 New methods.
8213 (get_compunit_symtab, process_full_comp_unit)
8214 (process_full_type_unit): Update.
8215 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8216
5989a64e
SM
82172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8218
8219 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8220 then introduce a new dwarf2_per_objfile type.
8221 <read_line_string>: Move to the new dwarf2_per_objfile type.
8222 <objfile>: Likewise.
8223 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8224 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8225 dwarf2_per_objfile->per_bfd.
8226 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8227 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8228 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8229 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8230 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8231 (dwarf2_per_objfile::locate_sections): Rename to...
8232 (dwarf2_per_bfd::locate_sections): ... this.
8233 (dwarf2_per_objfile::get_cutu): Rename to...
8234 (dwarf2_per_bfd::get_cutu): ... this.
8235 (dwarf2_per_objfile::get_cu): Rename to...
8236 (dwarf2_per_bfd::get_cu): ... this.
8237 (dwarf2_per_objfile::get_tu): Rename to...
8238 (dwarf2_per_bfd::get_tu): ... this.
8239 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8240 (dwarf2_per_bfd::allocate_per_cu): ... this.
8241 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8242 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8243 (get_gdb_index_contents_ftype): Change parameter from
8244 dwarf2_per_objfile to dwarf2_per_bfd.
8245 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8246 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8247
a50264ba
TT
82482020-05-27 Tom Tromey <tom@tromey.com>
8249 Simon Marchi <simon.marchi@efficios.com>
8250
8251 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8252 (allocate_piece_closure): Set "per_objfile" member.
8253 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8254 (locexpr_describe_location, loclist_describe_location): Use new
8255 member.
8256 * dwarf2/read.c (read_call_site_scope)
8257 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8258 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8259 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8260 handle_data_member_location): Set per_objfile member.
8261 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8262 member.
8263 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8264
d3473f0c
TT
82652020-05-27 Tom Tromey <tom@tromey.com>
8266
8267 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8268 allocate_signatured_type>: Declare new methods.
8269 <m_num_psymtabs>: New member.
8270 (struct dwarf2_per_cu_data) <index>: New member.
8271 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8272 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8273 (create_cu_from_index_list): Use allocate_per_cu.
8274 (create_signatured_type_table_from_index)
8275 (create_signatured_type_table_from_debug_names)
8276 (create_debug_type_hash_table, add_type_unit)
8277 (read_comp_units_from_section): Use allocate_signatured_type.
8278
5717c425
TT
82792020-05-27 Tom Tromey <tom@tromey.com>
8280
8281 * psymtab.c (partial_map_expand_apply)
8282 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8283 (psym_lookup_global_symbol_language)
8284 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8285 (psym_print_stats, psym_expand_symtabs_for_function)
8286 (psym_map_symbol_filenames, psym_map_matching_symbols)
8287 (psym_expand_symtabs_matching)
8288 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8289 (maintenance_check_psymtabs): Update.
8290 * psympriv.h (struct partial_symtab) <readin_p,
8291 get_compunit_symtab>: Add objfile parameter.
8292 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8293 Likewise.
8294 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8295 get_compunit_symtab>: Likewise.
8296 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8297
45940949
TT
82982020-05-27 Tom Tromey <tom@tromey.com>
8299
8300 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8301 member.
8302 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8303 (create_cu_from_index_list)
8304 (create_signatured_type_table_from_index)
8305 (create_signatured_type_table_from_debug_names)
8306 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8307 (dwarf2_create_include_psymtab)
8308 (create_debug_type_hash_table, add_type_unit)
8309 (create_type_unit_group, read_comp_units_from_section)
8310 (dwarf2_compute_name, create_cus_hash_table)
8311 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8312 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8313 obstack.
8314 (dw2_get_real_path): Likewise. Change argument to
8315 dwarf2_per_objfile.
8316
f8c6d152
LM
83172020-05-27 Luis Machado <luis.machado@linaro.org>
8318
8319 PR tdep/26000
8320 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8321 for ldrd (immediate).
8322
e98d2e6d
PW
83232020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8324
8325 * command.h: Add comment giving the name of class_tui.
8326 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8327 create the fake command for the help for class_tui.
8328
53a47a3e
TT
83292020-05-26 Tom Tromey <tromey@adacore.com>
8330
8331 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8332 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8333 (val_atr): New function.
8334 (value_val_atr): Use it.
8335 * ada-valprint.c (print_optional_low_bound): Change low bound
8336 handling for enums.
8337 (val_print_packed_array_elements): Don't call discrete_position.
8338 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8339 discrete_position for enum types.
8340 * language.c (default_print_array_index): Change type.
8341 * language.h (struct language_defn) <la_print_array_index>: Add
8342 index_type parameter, change type of index_value.
8343 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8344 (default_print_array_index): Update.
8345 * valprint.c (maybe_print_array_index): Don't call
8346 value_from_longest. Update.
8347 (value_print_array_elements): Don't call discrete_position.
8348
0bc2354b
TT
83492020-05-26 Tom Tromey <tromey@adacore.com>
8350
8351 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8352 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8353
1218a4bf
CDA
83542020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8355
8356 PR gdb/13519
8357 * avr-tdep.c (avr_integer_to_address): Return data or code
8358 address accordingly to the second 'type' argument of the
8359 function.
8360
92651b1d
MW
83612020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8362
8363 * infcmd.c, inferior.h: (construct_inferior_arguments):
8364 Moved function from here to gdbsupport/common-inferior.{h,cc}
8365
0a4f5f8c
TT
83662020-05-23 Tom Tromey <tom@tromey.com>
8367
8368 Revert commit eca1f90c:
8369 * NEWS: Remove entry for completion styling.
8370 * completer.c (_rl_completion_prefix_display_length): Move
8371 declaration later.
8372 (gdb_fnprint): Revert.
8373 (gdb_display_match_list_1): Likewise.
8374 * cli/cli-style.c (completion_prefix_style)
8375 (completion_difference_style, completion_suffix_style): Remove.
8376 (_initialize_cli_style): Revert.
8377 * cli/cli-style.h (completion_prefix_style)
8378 (completion_difference_style, completion_suffix_style): Don't
8379 declare.
8380
e08bd6c5
PA
83812020-05-24 Pedro Alves <palves@redhat.com>
8382
8383 * symtab.c (completion_list_add_name): Return boolean indication
8384 of whether the symbol matched.
8385 (completion_list_add_symbol): Don't try to remove C++ aliases if
8386 the symbol didn't match in the first place.
8387 * symtab.h (completion_list_add_name): Return bool.
8388
ceacbf6e
SM
83892020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8390
8391 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8392 type::field.
8393
26f16254
JB
83942020-05-23 Joel Brobecker <brobecker@adacore.com>
8395
8396 GDB 9.2 released.
8397
eca1f90c
TT
83982020-05-23 Tom Tromey <tom@tromey.com>
8399
8400 * NEWS: Add entry for completion styling.
8401 * completer.c (_rl_completion_prefix_display_length): Move
8402 declaration earlier.
8403 (gdb_fnprint): Use completion_style.
8404 (gdb_display_match_list_1): Likewise.
8405 * cli/cli-style.c (completion_prefix_style)
8406 (completion_difference_style, completion_suffix_style): New
8407 globals.
8408 (_initialize_cli_style): Register new globals.
8409 * cli/cli-style.h (completion_prefix_style)
8410 (completion_difference_style, completion_suffix_style): Declare.
8411
51e2cfa2
PA
84122020-05-23 Pedro Alves <palves@redhat.com>
8413
8414 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8415 (parse_escape): Use ISDIGIT instead of isdigit.
8416 (puts_debug): Use gdb_isprint instead of isprint.
8417 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8418 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8419 ISSPACE instead of isspace.
8420 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8421 instead of isspace.
8422 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8423 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8424 instead of isxdigit and ISDIGIT instead of isdigit.
8425
80fc5e77
SM
84262020-05-22 Simon Marchi <simon.marchi@efficios.com>
8427
8428 * gdbtypes.h (struct type) <field>: New method.
8429 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8430 or type::field.
8431
3cabb6b0
SM
84322020-05-22 Simon Marchi <simon.marchi@efficios.com>
8433
8434 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8435 (TYPE_FIELDS): Use type::fields. Change all call sites that
8436 modify the propery to use type::set_fields instead.
8437
1f704f76
SM
84382020-05-22 Simon Marchi <simon.marchi@efficios.com>
8439
8440 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8441 type::num_fields instead.
8442
5e33d5f4
SM
84432020-05-22 Simon Marchi <simon.marchi@efficios.com>
8444
8445 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8446 methods.
8447 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8448 that modify the number of fields to use type::set_num_fields
8449 instead.
8450
9392ebb3
TT
84512020-05-22 Tom Tromey <tromey@adacore.com>
8452
8453 * compile/compile-object-load.h (munmap_list_free): Don't
8454 declare.
8455
7c13f4e8
AB
84562020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8457
8458 * annotate.c (annotate_source_line): Update return type, add call
8459 to update current symtab and line.
8460 * annotate.h (annotate_source_line): Update return type, and
8461 extend header comment.
8462 * source.c (info_line_command): Check annotation_level before
8463 calling annotate_source_line.
8464 * stack.c (print_frame_info): If calling annotate_source_line
8465 returns true, then don't print any other source line information.
8466
aa370940
SM
84672020-05-21 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8470
84d53fa9
SM
84712020-05-21 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * coffread.c (patch_type): Remove NULL check before xfree.
8474 * corefile.c (set_gnutarget): Likewise.
8475 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8476 * exec.c (build_section_table): Likewise.
8477 * remote.c (remote_target::pass_signals): Likewise.
8478 * utils.c (n_spaces): Likewise.
8479 * cli/cli-script.c (document_command): Likewise.
8480 * i386-windows-tdep.c (core_process_module_section): Likewise.
8481 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8482
9d428aae
SM
84832020-05-20 Simon Marchi <simon.marchi@efficios.com>
8484
8485 * symfile.c (reread_symbols): Clear objfile's section_offsets
8486 vector and section indices, re-compute them by calling
8487 sym_offsets.
8488
250106a7
TT
84892020-05-20 Tom Tromey <tromey@adacore.com>
8490
8491 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8492 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8493
9a0bacfb
TV
84942020-05-20 Tom de Vries <tdevries@suse.de>
8495
8496 PR symtab/25833
8497 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8498
7b958a48
AM
84992020-05-20 Alan Modra <amodra@gmail.com>
8500
8501 PR 25993
8502 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8503 bfd_set_filename.
8504 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8505 passed to bfd_set_filename.
8506 * symfile-mem.c (add_vsyscall_page): Likewise for string
8507 passed to symbol_file_add_from_memory.
8508 (symbol_file_add_from_memory): Make name param a const char* and
8509 don't strdup.
8510
c7e97679
AM
85112020-05-20 Alan Modra <amodra@gmail.com>
8512
8513 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8514 rather than accessing bfd->filename directly.
8515 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8516 and use bfd_section_name.
8517 * dwarf2/frame.c (decode_frame_entry): Likewise.
8518 * exec.c (exec_set_section_address): Likewise.
8519 * solib-aix.c (solib_aix_bfd_open): Likewise.
8520 * stap-probe.c (get_stap_base_address): Likewise.
8521 * symfile.c (reread_symbols): Likewise.
8522
563c591b
TT
85232020-05-19 Tom Tromey <tromey@adacore.com>
8524
8525 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8526
f408d82c
SM
85272020-05-19 Simon Marchi <simon.marchi@efficios.com>
8528
8529 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8530
98c59b52
PA
85312020-05-19 Pedro Alves <palves@redhat.com>
8532
8533 * NEWS (set exec-file-mismatch): Adjust entry.
8534 * exec.c: Include "build-id.h".
8535 (validate_exec_file): Try to match build IDs instead of filenames.
8536 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8537 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8538 and pass down 'warn_if_slow'.
8539 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8540 gdb_bfd_open_closure to pass it down.
8541 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8542
4111f652
PA
85432020-05-19 Pedro Alves <palves@redhat.com>
8544
8545 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8546 * target.c (target_fileio_open_1): Rename to target_fileio_open
8547 and make extern. Use bool.
8548 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8549 (target_fileio_read_alloc_1): Adjust.
8550 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8551 (target_fileio_open_warn_if_slow): Delete declaration.
8552
ad80db5b
PA
85532020-05-19 Pedro Alves <palves@redhat.com>
8554
8555 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8556 Adjust all callers.
8557
1d6ce4d3
YS
85582020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8559
8560 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8561 whether disp is negative.
8562
9005fbbb
SM
85632020-05-19 Simon Marchi <simon.marchi@efficios.com>
8564
8565 * symfile.h (struct symfile_segment_data)
8566 <~symfile_segment_data>: Remove.
8567 <segment_info>: Change to std::vector.
8568 * symfile.c (default_symfile_segments): Update.
8569 * elfread.c (elf_symfile_segments): Update.
8570
68b888ff
SM
85712020-05-19 Simon Marchi <simon.marchi@efficios.com>
8572
8573 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8574 <segments>: New.
8575 <segment_bases, segment_sizes>: Remove.
8576 * symfile.c (default_symfile_segments): Update.
8577 * elfread.c (elf_symfile_segments): Update.
8578 * remote.c (remote_target::get_offsets): Update.
8579 * solib-target.c (solib_target_relocate_section_addresses):
8580 Update.
8581
62982abd
SM
85822020-05-19 Simon Marchi <simon.marchi@efficios.com>
8583
8584 * symfile.h (struct symfile_segment_data): Initialize fields.
8585 <~symfile_segment_data>: Add.
8586 (symfile_segment_data_up): New.
8587 (struct sym_fns) <sym_segments>: Return a
8588 symfile_segment_data_up.
8589 (default_symfile_segments): Return a symfile_segment_data_up.
8590 (free_symfile_segment_data): Remove.
8591 (get_symfile_segment_data): Return a symfile_segment_data_up.
8592 * symfile.c (default_symfile_segments): Likewise.
8593 (get_symfile_segment_data): Likewise.
8594 (free_symfile_segment_data): Remove.
8595 (symfile_find_segment_sections): Update.
8596 * elfread.c (elf_symfile_segments): Return a
8597 symfile_segment_data_up.
8598 * remote.c (remote_target::get_offsets): Update.
8599 * solib-target.c (solib_target_relocate_section_addresses):
8600 Update.
8601 * symfile-debug.c (debug_sym_segments): Return a
8602 symfile_segment_data_up.
8603
7f204339
RO
86042020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8605
e52a0f1b
RO
8606 PR build/25981
8607 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8608 Hardcode register numbers.
8609
7f204339
RO
8610 PR build/25981
8611 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8612 procfs_find_LDT_entry): Remove.
8613 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8614 procfs_find_LDT_entry): Remove.
8615 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8616 Remove.
8617
7f32a4d5
PA
86182020-05-17 Pedro Alves <palves@redhat.com>
8619 Andrew Burgess <andrew.burgess@embecosm.com>
8620 Keno Fischer <keno@juliacomputing.com>
8621
8622 PR gdb/25741
8623 * breakpoint.c (build_target_condition_list): Update comments.
8624 (build_target_command_list): Update comments and skip matching
8625 locations.
8626 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8627 a separate function. Simplify "set breakpoint auto-hw off"
8628 handling.
8629 (insert_breakpoints): Update comment.
8630 (tracepoint_locations_match): New parameter. For breakpoints,
8631 compare location types too, if the caller wants to.
8632 (handle_automatic_hardware_breakpoints): New functions.
8633 (bp_location_is_less_than): Also sort by location type and
8634 hardware breakpoint length.
8635 (update_global_location_list): Handle "set breakpoint auto-hw on"
8636 here.
8637 (update_breakpoint_locations): Ask breakpoint_locations_match to
8638 ignore location types.
8639
7d93a1e0
SM
86402020-05-16 Simon Marchi <simon.marchi@efficios.com>
8641
8642 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8643 type::name instead.
8644
d0e39ea2
SM
86452020-05-16 Simon Marchi <simon.marchi@efficios.com>
8646
8647 * gdbtypes.h (struct type) <name, set_name>: New methods.
8648 (TYPE_CODE): Use type::name. Change all call sites used to set
8649 the name to use type::set_name instead.
8650
2dab0c7b
TT
86512020-05-16 Tom Tromey <tom@tromey.com>
8652
8653 * top.c (quit_force): Update.
8654 * infrun.c (handle_no_resumed): Update.
8655 * top.h (all_uis): New function.
8656 (ALL_UIS): Remove.
8657
59f7bd8d
SM
86582020-05-16 Simon Marchi <simon.marchi@efficios.com>
8659
8660 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8661
9bf058f0
PA
86622020-05-16 Pedro Alves <palves@redhat.com>
8663
8664 * ia64-linux-nat.c
8665 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8666 Declare method.
8667 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8668
8f86ae1a
SM
86692020-05-15 Simon Marchi <simon.marchi@efficios.com>
8670
8671 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8672 (sparc64_adi_info): Likewise.
8673
d6bc0792
TT
86742020-05-15 Tom Tromey <tom@tromey.com>
8675
8676 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8677 block_objfile.
8678 (lookup_objfile_from_block): Remove.
8679 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8680 (lookup_global_symbol): Use block_objfile.
8681 * symtab.h (lookup_objfile_from_block): Don't declare.
8682 * printcmd.c (clear_dangling_display_expressions): Use
8683 block_objfile.
8684 * parse.c (operator_check_standard): Use block_objfile.
8685
8c14c3a3
TT
86862020-05-15 Tom Tromey <tom@tromey.com>
8687
8688 * language.c (language_alloc_type_symbol): Set
8689 SYMBOL_SECTION.
8690 * symtab.c (initialize_objfile_symbol): Remove.
8691 (allocate_symbol): Remove.
8692 (allocate_template_symbol): Remove.
8693 * dwarf2/read.c (fixup_go_packaging): Use "new".
8694 (new_symbol): Use "new".
8695 (read_variable): Don't call initialize_objfile_symbol. Use
8696 "new".
8697 (read_func_scope): Use "new".
8698 * xcoffread.c (process_xcoff_symbol): Don't call
8699 initialize_objfile_symbol.
8700 (SYMBOL_DUP): Remove.
8701 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8702 "new".
8703 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8704 (allocate_template_symbol): Don't declare.
8705 (struct symbol): Add copy constructor. Change defaults.
8706 * jit.c (finalize_symtab): Use "new".
8707 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8708 Use "new".
8709 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8710 (common_block_end): Use "new".
8711 * mdebugread.c (parse_symbol): Use "new".
8712 (new_symbol): Likewise.
8713
5b4a1a8d
PW
87142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8715
8716 * NEWS: Mention changes to help and apropos.
8717
57b4f16e
PW
87182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8719
8720 * command.h (enum command_class): Improve comments, document
8721 that class_alias is for user-defined aliases, give the class
8722 name for each class, remove unused class_xdb.
8723 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8724 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8725 by a precise class.
8726 * infcmd.c (_initialize_infcmd): Likewise.
8727 * reverse.c (_initialize_reverse): Likewise.
8728 * stack.c (_initialize_stack): Likewise.
8729 * symfile.c (_initialize_symfile): Likewise.
8730 * tracepoint.c (_initialize_tracepoint): Likewise.
8731
7c05caf7
PW
87322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8733
8734 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8735 when their aliased command is traversed.
8736 (help_cmd): Add fput_command_names_styled call to
8737 output command name and aliases when command has an alias.
8738
3b3aaacb
PW
87392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8740
8741 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8742 * cli/cli-decode.c (help_cmd_list): Declare as static,
8743 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8744 a command together with the command.
8745 (fput_command_name_styled, fput_command_names_styled): New functions.
8746 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8747 fput_command_name_styled.
8748 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8749 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8750
7aa1b46f
PW
87512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8752
8753 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8754 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8755 * command.h (cmd_show_list): Likewise.
8756 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8757 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8758
89bcba74
PW
87592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8760
8761 * unittests/command-def-selftests.c (traverse_command_structure):
8762 Verify all commands of a list have the same prefix command and
8763 that only the top cmdlist commands have a null prefix.
8764
3f4d92eb
PW
87652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8766
8767 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8768 as prefix, not one of its aliases.
8769 (set_cmd_prefix): Remove.
8770 (do_add_cmd): Centralize the setting of the prefix of a command, when
8771 command is defined after its full chain of prefix commands.
8772 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8773 (add_setshow_cmd_full): Likewise.
8774 (update_prefix_field_of_prefixed_commands): New function.
8775 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8776 update_prefix_field_of_prefixed_commands.
8777 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8778 addresses of remote_set_cmdlist and remote_show_cmdlist given
8779 as argument, not the address of an argument.
8780 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8781 * gdb/remote.c (_initialize_remote): Likewise.
8782
0605465f
PW
87832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8784
8785 * cli/cli-cmds.c (alias_command): Check for an existing alias
8786 using lookup_cmd_composition, as valid_command_p is too strict
8787 and forbids aliases that are the prefix of an existing alias
8788 or command.
8789 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8790 command is properly recognised as a valid command.
8791
58e6ac70
PW
87922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8793
8794 * unittests/help-doc-selftests.c: Rename to
8795 unittests/command-def-selftests.c
8796 * unittests/command-def-selftests.c (help_doc_tests): Update some
8797 comments.
8798 (command_structure_tests, traverse_command_structure): New namespace
8799 and function.
8800 (command_structure_invariants_tests): New function.
8801 (_initialize_command_def_selftests) Renamed from
8802 _initialize_help_doc_selftests, register command_structure_invariants
8803 selftest.
8804
a7b9ceb8
PW
88052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8806
8807 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8808 an alias of 'show'.
8809
b2188a06
JB
88102020-05-15 Joel Brobecker <brobecker@adacore.com>
8811
8812 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8813 ada_is_fixed_point_type. Update all callers.
8814 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8815 all callers.
8816 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8817 Update all callers.
8818 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8819 print_fixed_point_type. Update all callers.
8820 * ada-valprint.c (ada_value_print_num): Replace call to
8821 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8822
a51951c2
KB
88232020-05-14 Kevin Buettner <kevinb@redhat.com>
8824
8825 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8826 processors.
8827 (cpu_supports_bts): Add CV_AMD case.
8828
29d6859f
LM
88292020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8830 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * infrun.c (stop_all_threads): Collect multiple wait events at
8833 each pass.
8834
78134374
SM
88352020-05-14 Simon Marchi <simon.marchi@efficios.com>
8836
8837 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8838 type::code instead.
8839
67607e24
SM
88402020-05-14 Simon Marchi <simon.marchi@efficios.com>
8841
8842 * gdbtypes.h (struct type) <code, set_code>: New methods.
8843 (TYPE_CODE): Use type::code. Change all call sites used to set
8844 the code to use type::set_code instead.
8845
a05575d3
TBA
88462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8847 Tom de Vries <tdevries@suse.de>
8848 Pedro Alves <palves@redhat.com>
8849
8850 PR threads/25478
8851 * infrun.c (stop_all_threads): Do NOT ignore
8852 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8853 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8854 received.
8855 (handle_no_resumed): Remove code handling a live inferior with no
8856 threads.
8857 * remote.c (has_single_non_exited_thread): New.
8858 (remote_target::update_thread_list): Do not delete a thread if is
8859 the last thread of the process.
8860 * thread.c (thread_select): Call delete_exited_threads instead of
8861 prune_threads.
8862
6ad82919
TBA
88632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8864
8865 * infrun.c (stop_all_threads): Enable/disable thread events of all
8866 targets. Move a debug message denoting the end of the function
8867 into the SCOPED_EXIT block.
8868
d890404b
TBA
88692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8870
8871 * process-stratum-target.h: Include <set>.
8872 (all_non_exited_process_targets, switch_to_target_no_thread): New
8873 function declarations.
8874 * process-stratum-target.c (all_non_exited_process_targets)
8875 (switch_to_target_no_thread): New function implementations.
8876
293b3ebc
TBA
88772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8878
8879 * infrun.c (handle_inferior_event): Extract out a piece of code
8880 into...
8881 (mark_non_executing_threads): ...this new function.
8882
7ca9b62a
TBA
88832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8884
8885 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8886 use.
8887
fc75c28b
TBA
88882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8889
8890 * regcache.c (regcache_read_pc_protected): New function
8891 implementation that returns 0 if the PC cannot read via
8892 'regcache_read_pc'.
8893 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8894 instead of 'regcache_read_pc'.
8895 (keep_going_pass_signal): Ditto.
8896
a89febbd
TT
88972020-05-13 Tom Tromey <tromey@adacore.com>
8898
8899 * ada-lang.c (align_value): Remove.
8900 (ada_template_to_fixed_record_type_1): Use align_up.
8901
f7e23710
TBA
89022020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8903
8904 * async-event.c: Update the copyright year.
8905 * async-event.h: Update the copyright year.
8906
02ff80c2
SM
89072020-05-12 Simon Marchi <simon.marchi@efficios.com>
8908
8909 * objfiles.h (is_addr_in_objfile,
8910 shared_objfile_contains_address_p): Return bool.
8911 * objfile.c (is_addr_in_objfile,
8912 shared_objfile_contains_address_p): Return bool.
8913
4fd6c7e8
TT
89142020-05-11 Tom Tromey <tromey@adacore.com>
8915
8916 * cli/cli-cmds.c (info_command): Restore.
8917 (_initialize_cli_cmds): Use add_prefix_command for "info".
8918 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8919
5eb68a39
TT
89202020-05-11 Tom Tromey <tromey@adacore.com>
8921
8922 * ada-lang.c (ada_value_primitive_field): Now public.
8923 * ada-lang.h (ada_value_primitive_field): Declare.
8924 * ada-valprint.c (print_field_values): Use
8925 ada_value_primitive_field for wrapper fields.
8926
7666722f
TV
89272020-05-11 Tom de Vries <tdevries@suse.de>
8928
8929 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8930 MODULE_DOMAIN.
8931
3ee6bb11
TV
89322020-05-11 Tom de Vries <tdevries@suse.de>
8933
8934 PR symtab/25941
8935 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8936 with length 0, if not gdb-produced.
8937 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8938
43434996
TV
89392020-05-09 Tom de Vries <tdevries@suse.de>
8940
8941 PR gdb/25955
8942 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8943 calculation.
8944
2f78cffc
TT
89452020-05-09 Tom Tromey <tom@tromey.com>
8946
8947 * top.c (server_command): Now bool.
8948 * top.h (server_command): Now bool.
8949
4f7bc5ed
TT
89502020-05-08 Tom Tromey <tromey@adacore.com>
8951
8952 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8953 already being processed.
8954
8be4b118
TT
89552020-05-08 Tom Tromey <tom@tromey.com>
8956
8957 * printcmd.c (struct display) <next>: Remove.
8958 <display>: New constructor.
8959 <exp_string>: Now a std::string.
8960 <enabled_p>: Now a bool.
8961 (display_number): Move definition earlier.
8962 (displays): Rename from display_chain. Now a std::vector.
8963 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8964 (display_command): Update.
8965 (do_one_display, disable_display)
8966 (enable_disable_display_command, do_enable_disable_display):
8967 Update.
8968 (free_display): Remove.
8969 (clear_displays): Rewrite.
8970 (delete_display): Update.
8971 (map_display_numbers): Use function_view. Remove "data"
8972 parameter. Update.
8973 (do_delete_display): Remove.
8974 (undisplay_command): Update.
8975 (do_one_display, do_displays, disable_display)
8976 (info_display_command): Update.
8977 (do_enable_disable_display): Remove.
8978 (enable_disable_display_command)
8979 (clear_dangling_display_expressions): Update.
8980
94c93c35
TT
89812020-05-08 Tom Tromey <tom@tromey.com>
8982
8983 * symtab.c (set_symbol_cache_size)
8984 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8985 (maintenance_print_symbol_cache_statistics): Update.
8986 * symmisc.c (print_symbol_bcache_statistics)
8987 (print_objfile_statistics, maintenance_print_objfiles)
8988 (maintenance_info_symtabs, maintenance_check_symtabs)
8989 (maintenance_expand_symtabs, maintenance_info_line_tables):
8990 Update.
8991 * symfile-debug.c (set_debug_symfile): Update.
8992 * source.c (forget_cached_source_info): Update.
8993 * python/python.c (gdbpy_progspaces): Update.
8994 * psymtab.c (maintenance_info_psymtabs): Update.
8995 * probe.c (parse_probes): Update.
8996 * linespec.c (iterate_over_all_matching_symtabs)
8997 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8998 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8999 * exec.c (exec_target::close): Update.
9000 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9001 * breakpoint.c (print_one_breakpoint_location)
9002 (create_longjmp_master_breakpoint)
9003 (create_std_terminate_master_breakpoint): Update.
9004 * progspace.c (program_spaces): Now a std::vector.
9005 (maybe_new_address_space): Update.
9006 (add_program_space): Remove.
9007 (program_space::program_space): Update.
9008 (remove_program_space): Update.
9009 (number_of_program_spaces): Remove.
9010 (print_program_space, update_address_spaces): Update.
9011 * progspace.h (program_spaces): Change type.
9012 (ALL_PSPACES): Remove.
9013 (number_of_program_spaces): Don't declare.
9014 (struct program_space) <next>: Remove.
9015
a1fd1ac9
TT
90162020-05-08 Tom Tromey <tom@tromey.com>
9017
9018 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9019 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9020 (enable_break): Update.
9021 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9022 (frv_fdpic_find_canonical_descriptor): Update.
9023 (frv_fetch_objfile_link_map): Update.
9024 * progspace.c (program_space::free_all_objfiles): Update.
9025 (program_space::solibs): New method.
9026 * progspace.h (struct program_space) <solibs>: New method.
9027 * solist.h (master_so_list): Don't declare.
9028 (ALL_SO_LIBS): Remove.
9029 * solib.h (so_list_head): Remove.
9030 (update_solib_list): Update comment.
9031 * solib.c (master_so_list): Remove.
9032 (solib_used, update_solib_list, solib_add)
9033 (info_sharedlibrary_command, clear_solib)
9034 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9035
38eae084
TT
90362020-05-08 Tom Tromey <tom@tromey.com>
9037
9038 * extension.c (extension_languages): Now a std::array.
9039 (ALL_EXTENSION_LANGUAGES): Remove.
9040 (get_ext_lang_defn, get_ext_lang_of_file)
9041 (eval_ext_lang_from_control_command): Update.
9042 (finish_ext_lang_initialization)
9043 (auto_load_ext_lang_scripts_for_objfile)
9044 (ext_lang_type_printers::ext_lang_type_printers)
9045 (apply_ext_lang_type_printers)
9046 (ext_lang_type_printers::~ext_lang_type_printers)
9047 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9048 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9049 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9050 (get_matching_xmethod_workers, ext_lang_colorize)
9051 (ext_lang_before_prompt): Update.
9052 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9053
596dc4ad
TT
90542020-05-08 Tom Tromey <tom@tromey.com>
9055
9056 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9057 overload.
9058 <swap_string, m_string>: Remove.
9059 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9060 Update.
9061 * stabsread.c (define_symbol, read_type): Update.
9062 * linespec.c (find_linespec_symbols): Update.
9063 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9064 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9065 * dbxread.c (read_dbx_symtab): Update.
9066 * cp-support.h (cp_canonicalize_string_full)
9067 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9068 Return unique_xmalloc_ptr.
9069 * cp-support.c (inspect_type): Update.
9070 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9071 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9072 Likewise.
9073 * c-typeprint.c (print_name_maybe_canonical): Update.
9074 * break-catch-throw.c (check_status_exception_catchpoint):
9075 Update.
9076
bf4cb9be
TV
90772020-05-08 Tom de Vries <tdevries@suse.de>
9078
9079 * infrun.c (follow_fork): Copy current_line and current_symtab to
9080 child thread.
9081
a1b68f28
SM
90822020-05-07 Simon Marchi <simon.marchi@efficios.com>
9083
9084 * async-event.c (struct async_signal_handler, struct
9085 async_event_handler): Reformat, remove typedef.
9086
98d48915
SM
90872020-05-07 Simon Marchi <simon.marchi@efficios.com>
9088
9089 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9090 access thistype->main_type->dyn_prop_list directly.
9091
7aa91313
SM
90922020-05-07 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9095 (remove_dyn_prop): Remove. Update all users to use
9096 type::remove_dyn_prop.
9097 * gdbtypes.c (remove_dyn_prop): Rename to...
9098 (type::remove_dyn_prop): ... this.
9099
5c54719c
SM
91002020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9101
9102 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9103 (add_dyn_prop): Remove. Update all users to use
9104 type::add_dyn_prop.
9105 * gdbtypes.c (add_dyn_prop): Rename to...
9106 (type::add_dyn_prop): ... this.
9107
24e99c6c
SM
91082020-05-07 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9111 (get_dyn_prop): Remove. Update all users to use
9112 type::dyn_prop.
9113 * gdbtypes.c (get_dyn_prop): Rename to...
9114 (type::dyn_prop): ... this.
9115
0d4bf016
SM
91162020-05-06 Simon Marchi <simon.marchi@efficios.com>
9117
9118 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9119
ac4a4f1c
SM
91202020-05-06 Simon Marchi <simon.marchi@efficios.com>
9121
9122 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9123 instruction, skip it if it's there.
9124
a3bbacc1
SM
91252020-05-05 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9128
c3236f84
SM
91292020-05-04 Simon Marchi <simon.marchi@efficios.com>
9130
9131 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9132 * gdbtypes.c (recursive_dump_type): Remove use of
9133 TYPE_INCOMPLETE.
9134
3b6acaee
TT
91352020-05-03 Tom Tromey <tom@tromey.com>
9136
9137 * breakpoint.c (catch_command, tcatch_command): Remove.
9138 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9139 add_show_prefix_cmd.
9140 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9141 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9142 Remove.
9143 (add_internal_problem_command): Use add_basic_prefix_cmd,
9144 add_show_prefix_cmd.
9145 * mips-tdep.c (set_mipsfpu_command): Remove.
9146 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9147 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9148 (_initialize_index_cache): Use add_basic_prefix_cmd.
9149 * memattr.c (dummy_cmd): Remove.
9150 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9151 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9152 (_initialize_tui_win): Use add_basic_prefix_cmd,
9153 add_show_prefix_cmd.
9154 * cli/cli-logging.c (set_logging_command): Remove.
9155 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9156 add_show_prefix_cmd.
9157 (show_logging_command): Remove.
9158 * target.c (target_command): Remove.
9159 (add_target): Use add_basic_prefix_cmd.
9160
a51119cd
HD
91612020-05-02 Hannes Domani <ssbssa@yahoo.de>
9162
9163 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9164
652fc23a 91652020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9166
652fc23a
PW
9167 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9168 info_command.
9169
117539e6
KR
91702020-04-30 Kamil Rytarowski <n54@gmx.com>
9171
9172 * nbsd-nat.c (nbsd_enable_proc_events)
9173 (nbsd_nat_target::post_startup_inferior): Add.
9174 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9175 (nbsd_nat_target::update_thread_list): Rewrite.
9176 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9177 "PTRACE_LWP_CREATE".
9178 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9179
102e38eb 91802020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9181
102e38eb
PW
9182 * stack.c (_initialize_stack): Remove duplicated creation
9183 of "frame" command and "f" alias.
9184
ee9d1e5f
HD
91852020-04-30 Hannes Domani <ssbssa@yahoo.de>
9186
9187 PR gdb/18706
9188 * gdbtypes.c (check_typedef): Calculate size of array of
9189 stubbed type.
9190
627c7fb8
HD
91912020-04-30 Hannes Domani <ssbssa@yahoo.de>
9192
9193 PR gdb/15559
9194 * i386-tdep.c (i386_push_dummy_call): Call
9195 i386_thiscall_push_dummy_call.
9196 (i386_thiscall_push_dummy_call): New function.
9197 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9198 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9199 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9200
ffc2844e
SM
92012020-04-29 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * gdbarch.sh (do_read): Add shellcheck disable directive for
9204 warning SC2162.
9205
1207375d
SM
92062020-04-29 Simon Marchi <simon.marchi@efficios.com>
9207
9208 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9209 "referenced but not assigned" warning.
9210
9fdb2916
SM
92112020-04-29 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * gdbarch.sh: Remove code that sets fallbackdefault.
9214
759cea5e
SM
92152020-04-29 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * gdbarch.sh: Use shell operators && and || instead of
9218 -a and -o.
9219
cb02ab24
SM
92202020-04-29 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * gdbarch.sh: Use $(...) instead of `...`.
9223
a6fc5ffc
SM
92242020-04-29 Simon Marchi <simon.marchi@efficios.com>
9225
9226 * gdbarch.sh: Use double quotes around variables.
9227
8d113d13
SM
92282020-04-29 Simon Marchi <simon.marchi@efficios.com>
9229
9230 * gdbarch.sh: Use %s with printf, instead of variables in the
9231 format string.
9232
ed6acedd
TT
92332020-04-29 Tom Tromey <tromey@adacore.com>
9234
9235 PR ada/25875:
9236 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9237 type fields here.
9238 (read_enumeration_type): Call
9239 update_enumeration_type_from_children later. Update comments.
9240 (process_enumeration_scope): Don't create type fields.
9241
b68b1b58
KR
92422020-04-29 Kamil Rytarowski <n54@gmx.com>
9243
9244 * nbsd-tdep.c: Include "xml-syscall.h".
9245 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9246
f94b2e03
KR
92472020-04-29 Kamil Rytarowski <n54@gmx.com>
9248
9249 * nbsd-nat.c: Include "sys/wait.h".
9250 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9251 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9252 (nbsd_nat_target::remove_exec_catchpoint)
9253 (nbsd_nat_target::set_syscall_catchpoint): Add.
9254 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9255 (nbsd_nat_target::insert_exec_catchpoint)
9256 (nbsd_nat_target::remove_exec_catchpoint)
9257 (nbsd_nat_target::set_syscall_catchpoint): Add.
9258 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9259 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9260 `nbsd_get_syscall_number'.
9261
fc49bc72
TT
92622020-04-29 Tom Tromey <tom@tromey.com>
9263
9264 * stack.c (print_block_frame_labels): Remove.
9265
d642b692
HD
92662020-04-29 Hannes Domani <ssbssa@yahoo.de>
9267
9268 PR gdb/17320
9269 * ada-valprint.c (val_print_packed_array_elements): Move array
9270 end bracket to new line.
9271 (ada_val_print_string): Remove extra spaces before first array
9272 element.
9273 * c-valprint.c (c_value_print_array): Likewise.
9274 * m2-valprint.c (m2_print_array_contents): Likewise.
9275 (m2_value_print_inner): Likewise.
9276 * p-valprint.c (pascal_value_print_inner): Likewise.
9277 * valprint.c (generic_val_print_array): Likewise.
9278 (value_print_array_elements): Move first array element and array
9279 end bracket to new line.
9280
ea90f227
TV
92812020-04-29 Tom de Vries <tdevries@suse.de>
9282
9283 PR symtab/25889
9284 * linespec.c (find_method): Fix ix calculation.
9285
4498ef4f
KR
92862020-04-28 Kamil Rytarowski <n54@gmx.com>
9287
9288 * syscalls/update-netbsd.sh: New file.
9289 * syscalls/netbsd.xml: Regenerate.
9290 * data-directory/Makefile.in: Register `netbsd.xml' in
9291 `SYSCALLS_FILES'.
9292
a55e30b5
SM
92932020-04-28 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * syscalls/update-freebsd.sh: Add double quotes.
9296
2b2fbab8
TT
92972020-04-28 Tom Tromey <tom@tromey.com>
9298
9299 * NEWS: Update.
9300 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9301 (cmdpy_init): Allow class_tui.
9302
a65189c9
TV
93032020-04-28 Mark Williams <mark@myosotissp.com>
9304
9305 PR gdb/24480
9306 * dwarf2read.c: Add missing assingments to list_in_scope when
9307 start_symtab was already called.
9308
1b95cdb7
SM
93092020-04-28 Simon Marchi <simon.marchi@efficios.com>
9310
9311 PR gdb/25881
9312 * dwarf2/read.c (offset_map_type): Use
9313 gdb:hash_enum<sect_offset> as hash function.
9314
15cd93d0
TV
93152020-04-28 Tom de Vries <tdevries@suse.de>
9316
9317 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9318 with DW_AT_signature.
9319
1eb39914
SM
93202020-04-27 Simon Marchi <simon.marchi@efficios.com>
9321
9322 * configure.ac: Remove check for fs_base/gs_base in
9323 user_regs_struct.
9324 * configure: Re-generate.
9325 * config.in: Re-generate.
9326 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9327 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9328 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9329
991a3e2e
LM
93302020-04-27 Luis Machado <luis.machado@linaro.org>
9331
9332 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9333 problematic inline frame unwinding situation.
9334 * frame.c (frame_id_computed_p): New function.
9335 * frame.h (frame_id_computed_p): New prototype.
9336
361ba0e8
TT
93372020-04-26 Tom Tromey <tom@tromey.com>
9338
9339 * command.h (enum command_class) <class_pseudo>: Remove.
9340
bc3609fd
PW
93412020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9342
9343 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9344 and whitespace.
9345
b9771db7
KR
93462020-04-25 Kamil Rytarowski <n54@gmx.com>
9347
ec16513e
SM
9348 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9349 `PT_GET_PROCESS_STATE' block.
b9771db7 9350
7151c1af
TT
93512020-04-24 Tom Tromey <tom@tromey.com>
9352
9353 * symtab.h (symbol_get_demangled_name): Don't declare.
9354 * symtab.c (symbol_get_demangled_name): Remove.
9355 (general_symbol_info::natural_name)
9356 (general_symbol_info::demangled_name): Update.
9357
906bb4c5
TT
93582020-04-24 Tom Tromey <tom@tromey.com>
9359
9360 PR rust/25025:
9361 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9362
bcfe6157
TT
93632020-04-24 Tom Tromey <tom@tromey.com>
9364
9365 PR symtab/12707:
9366 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9367 exists.
9368 (new_symbol): Likewise.
9369 * compile/compile-object-load.c (get_out_value_type): Use
9370 symbol_matches_search_name.
9371
f049a313
TT
93722020-04-24 Tom Tromey <tom@tromey.com>
9373
9374 * dwarf2/read.c (add_partial_symbol): Do not call
9375 compute_and_set_names.
9376
76e288d1
TT
93772020-04-24 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9380 overload.
9381
2467f4f6
TT
93822020-04-24 Tom Tromey <tom@tromey.com>
9383
9384 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9385 (add_psymbol_to_list): New overload. Make old overload call new
9386 one.
9387 * psympriv.h (add_psymbol_to_list): New overload.
9388
e61108c9
TT
93892020-04-24 Tom Tromey <tom@tromey.com>
9390
9391 * dwarf2/read.c (partial_die_info::read) <case
9392 DW_AT_linkage_name>: Use value_as_string.
9393 (dwarf2_string_attr): Use value_as_string.
9394 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9395 method.
9396 * dwarf2/attribute.c (attribute::value_as_string): New method.
9397
8c87a452
TT
93982020-04-24 Tom Tromey <tom@tromey.com>
9399
9400 * symtab.c (general_symbol_info::natural_name)
9401 (general_symbol_info::demangled_name): Check for language_rust.
9402
787de330
TT
94032020-04-24 Tom Tromey <tom@tromey.com>
9404
9405 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9406 (dwarf2_physname): ... from here.
9407 (partial_die_info::read): Add Rust "{" hack.
9408
ff985671
TT
94092020-04-24 Tom Tromey <tom@tromey.com>
9410
9411 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9412 method.
9413 (symbol_set_demangled_name): Don't declare.
9414 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9415 symbol_set_demangled_name.
9416 (general_symbol_info::set_language)
9417 (general_symbol_info::compute_and_set_names): Update.
9418 * minsyms.c (minimal_symbol_reader::install): Update.
9419 * dwarf2/read.c (new_symbol): Update.
9420
1acda803
TT
94212020-04-24 Tom Tromey <tromey@adacore.com>
9422
9423 PR python/23662:
9424 * python/py-type.c (convert_field): Handle
9425 FIELD_LOC_KIND_DWARF_BLOCK.
9426 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9427 (typy_get_dynamic): Nw function.
9428 (type_object_getset): Add "dynamic".
9429 * NEWS: Add entry.
9430
d656f129
TT
94312020-04-24 Tom Tromey <tromey@adacore.com>
9432
9433 * ada-typeprint.c (print_choices, print_variant_part)
9434 (print_record_field_types_dynamic): New functions.
9435 (print_record_field_types): Use print_record_field_types_dynamic.
9436
7d79de9a
TT
94372020-04-24 Tom Tromey <tromey@adacore.com>
9438
9439 * dwarf2/read.c (handle_data_member_location): New overload.
9440 (dwarf2_add_field): Use it.
9441 (decode_locdesc): Add "computed" parameter. Update comment.
9442 * gdbtypes.c (is_dynamic_type_internal): Also look for
9443 FIELD_LOC_KIND_DWARF_BLOCK.
9444 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9445 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9446 virtual base classes.
9447 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9448 FIELD_LOC_KIND_DWARF_BLOCK.
9449
f8e89861
TT
94502020-04-24 Tom Tromey <tromey@adacore.com>
9451
9452 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9453 * gdbtypes.c (is_dynamic_type_internal): Check
9454 TYPE_HAS_DYNAMIC_LENGTH.
9455 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9456 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9457 New macros.
9458 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9459 constant.
9460
9c6a1327
TT
94612020-04-24 Tom Tromey <tromey@adacore.com>
9462
9463 * dwarf2/read.c (struct variant_field): Rewrite.
9464 (struct variant_part_builder): New.
9465 (struct nextfield): Remove "variant" field. Add "offset".
9466 (struct field_info): Add "current_variant_part" and
9467 "variant_parts".
9468 (alloc_discriminant_info): Remove.
9469 (alloc_rust_variant): New function.
9470 (quirk_rust_enum): Update.
9471 (dwarf2_add_field): Set "offset" member. Don't handle
9472 DW_TAG_variant_part.
9473 (offset_map_type): New typedef.
9474 (convert_variant_range, create_one_variant)
9475 (create_one_variant_part, create_variant_parts)
9476 (add_variant_property): New functions.
9477 (dwarf2_attach_fields_to_type): Call add_variant_property.
9478 (read_structure_type): Don't handle DW_TAG_variant_part.
9479 (handle_variant_part, handle_variant): New functions.
9480 (handle_struct_member_die): Use them.
9481 (process_structure_scope): Don't handle variant parts.
9482 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9483 (struct discriminant_info): Remove.
9484 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9485 (struct main_type) <flag_discriminated_union>: Remove.
9486 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9487 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9488 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9489 Update.
9490 * valops.c (value_union_variant): Remove.
9491 * value.h (value_union_variant): Don't declare.
9492
b249d2c2
TT
94932020-04-24 Tom Tromey <tromey@adacore.com>
9494
9495 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9496 (ada_value_primitive_packed_val): Update.
9497 * ada-valprint.c (ada_value_print_1): Update.
9498 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9499 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9500 just an address. Use evaluate_for_locexpr_baton.
9501 (dwarf2_evaluate_property): Update.
9502 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9503 array_view.
9504 * findvar.c (default_read_var_value): Update.
9505 * gdbtypes.c (compute_variant_fields_inner)
9506 (resolve_dynamic_type_internal): Update.
9507 (resolve_dynamic_type): Change type of valaddr parameter.
9508 * gdbtypes.h (resolve_dynamic_type): Update.
9509 * valarith.c (value_subscripted_rvalue): Update.
9510 * value.c (value_from_contents_and_address): Update.
9511
61122aa9
TT
95122020-04-24 Tom Tromey <tromey@adacore.com>
9513
9514 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9515 "push_initial_value" parameter.
9516 (dwarf2_evaluate_property): Likewise.
9517 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9518
ef83a141
TT
95192020-04-24 Tom Tromey <tromey@adacore.com>
9520
9521 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9522 (variant::matches, compute_variant_fields_recurse)
9523 (compute_variant_fields_inner, compute_variant_fields): New
9524 functions.
9525 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9526 Use resolved_type after type is made.
9527 (operator==): Add new cases.
9528 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9529 (struct discriminant_range, struct variant, struct variant_part):
9530 New.
9531 (union dynamic_prop_data) <variant_parts, original_type>: New
9532 members.
9533 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9534 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9535 constants.
9536 * value.c (unpack_bits_as_long): Now public.
9537 * value.h (unpack_bits_as_long): Declare.
9538
675127ec
TT
95392020-04-24 Tom Tromey <tromey@adacore.com>
9540
9541 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9542 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9543
9852ceef
HD
95442020-04-24 Hannes Domani <ssbssa@yahoo.de>
9545
9546 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9547
7632c6ce
KR
95482020-04-24 Kamil Rytarowski <n54@gmx.com>
9549
9550 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9551 (remove_fork_catchpoint, post_startup_inferior)
9552 (post_attach): Move...
9553 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9554 (remove_fork_catchpoint, post_startup_inferior)
9555 (post_attach): ...here.
9556 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9557 (remove_fork_catchpoint, post_startup_inferior)
9558 (post_attach): Move...
9559 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9560 (remove_fork_catchpoint, post_startup_inferior)
9561 (post_attach): ...here.
9562
7be2bb4f
TT
95632020-04-24 Tom Tromey <tromey@adacore.com>
9564
9565 * nat/windows-nat.h (struct windows_thread_info)
9566 <pc_adjusted>: New member.
9567 * windows-nat.c (windows_fetch_one_register): Check
9568 pc_adjusted.
9569 (windows_nat_target::get_windows_debug_event)
9570 (windows_nat_target::wait): Set pc_adjusted.
9571
f80cb3b4
TV
95722020-04-24 Tom de Vries <tdevries@suse.de>
9573
9574 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9575 Run gdb-add-index inside temp dir.
9576
29514b87
TT
95772020-04-23 Tom Tromey <tromey@adacore.com>
9578
9579 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9580 in loop.
9581
5939967b
LM
95822020-04-23 Luis Machado <luis.machado@linaro.org>
9583
9584 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9585 get_frame_register instead of gdbarch_unwind_pc.
9586
70bc38f5
TV
95872020-04-23 Tom de Vries <tdevries@suse.de>
9588
9589 * symtab.c (lookup_global_symbol): Prefer def over decl.
9590
de82891c
TV
95912020-04-23 Tom de Vries <tdevries@suse.de>
9592
9593 PR symtab/25807
9594 * block.c (best_symbol, better_symbol): Promote to external.
9595 * block.h (best_symbol, better_symbol): Declare.
9596 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9597 decl.
9598
ecc6c606
TT
95992020-04-23 Tom Tromey <tromey@adacore.com>
9600
9601 PR ada/25837:
9602 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9603 "const char *", not a "const std::string &".
9604 <name_and_matcher::operator==>: Update.
9605 * unittests/lookup_name_info-selftests.c: Change type of
9606 "result".
9607
740480b8
TT
96082020-04-23 Tom Tromey <tom@tromey.com>
9609
9610 * inferior.h (iterate_over_inferiors): Don't declare.
9611 * inferior.c (iterate_over_inferiors): Remove.
9612 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9613 Remove.
9614 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9615 use iterate_over_inferiors.
9616 (darwin_resume_inferior_it)
9617 (struct resume_inferior_threads_param)
9618 (darwin_resume_inferior_threads_it): Remove.
9619 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9620
ae3ab1f0
TV
96212020-04-23 Tom de Vries <tdevries@suse.de>
9622
9623 * blockframe.c (find_pc_partial_function): Use
9624 find_pc_sect_compunit_symtab rather than
9625 objfile->sf->qf->find_pc_sect_compunit_symtab.
9626
317d2668
TV
96272020-04-22 Tom de Vries <tdevries@suse.de>
9628
9629 PR symtab/25764
9630 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9631 in psymtabs.
9632
eea9e357
TV
96332020-04-22 Tom de Vries <tdevries@suse.de>
9634
9635 PR symtab/25801
9636 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9637 symtabs.
9638
3d5afab3
TV
96392020-04-22 Tom de Vries <tdevries@suse.de>
9640
9641 PR symtab/25700
9642 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9643 CU if already created.
9644
d43b7a2d
TBA
96452020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9646
9647 * infrun.c (displaced_step_fixup): Switch to the event_thread
9648 before calling displaced_step_restore, not after.
9649
d89edf9b
MM
96502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9651
9652 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9653 its inferior is not recorded by us.
9654 (record_btrace_target_open): Replace call to
9655 all_non_exited_threads () with call to current_inferior
9656 ()->non_exited_threads ().
9657 (record_btrace_target::stop_recording): Likewise.
9658 (record_btrace_target::close): Likewise.
9659 (record_btrace_target::wait): Likewise.
9660 (record_btrace_target::record_stop_replaying): Likewise.
9661
5897fd49
MM
96622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9663
9664 * btrace.c (btrace_enable): Throw an error on double enables and
9665 when enabling recording fails.
9666 (btrace_disable): Throw an error if the thread is not recorded.
9667
1a476b6d
MM
96682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9669
9670 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9671 request if we do not have a thread_info.
9672
4778a5f8
TV
96732020-04-21 Tom de Vries <tdevries@suse.de>
9674
9675 PR gdb/25471
9676 * thread.c
9677 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9678 exception in get_frame_id.
9679
0fa7617d
TT
96802020-04-20 Tom Tromey <tromey@adacore.com>
9681
9682 * python/python.c (struct gdbpy_event): Mark move constructor as
9683 noexcept.
9684 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9685 constructor as noexcept.
9686 * completer.h (struct completion_result): Mark move constructor as
9687 noexcept.
9688 * completer.c (completion_result::completion_result): Use
9689 initialization style. Don't call reset_match_list.
9690
ad23bda0
MS
96912020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9692
9693 * MAINTAINERS (Write After Approval): Add myself.
9694
45e1f031
TT
96952020-04-18 Tom Tromey <tom@tromey.com>
9696
9697 * windows-tdep.c (init_w32_command_list)
9698 (w32_prefix_command_valid): Restore.
9699 (_initialize_windows_tdep): Call init_w32_command_list.
9700
08feed99
TT
97012020-04-18 Tom Tromey <tom@tromey.com>
9702
9703 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9704 * value.c (value_fn_field): Update.
9705 * valops.c (find_function_in_inferior)
9706 (value_allocate_space_in_inferior): Update.
9707 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9708 Update.
9709 * tui/tui-source.c (tui_source_window::set_contents): Update.
9710 * symtab.c (lookup_global_or_static_symbol)
9711 (find_function_start_sal_1, skip_prologue_sal)
9712 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9713 * symmisc.c (dump_msymbols, dump_symtab_1)
9714 (maintenance_print_one_line_table): Update.
9715 * symfile.c (init_entry_point_info, section_is_mapped)
9716 (list_overlays_command, simple_read_overlay_table)
9717 (simple_overlay_update_1): Update.
9718 * stap-probe.c (handle_stap_probe): Update.
9719 * stabsread.c (dbx_init_float_type, define_symbol)
9720 (read_one_struct_field, read_enum_type, read_range_type): Update.
9721 * source.c (info_line_command): Update.
9722 * python/python.c (gdbpy_source_objfile_script)
9723 (gdbpy_execute_objfile_script): Update.
9724 * python/py-type.c (save_objfile_types): Update.
9725 * python/py-objfile.c (py_free_objfile): Update.
9726 * python/py-inferior.c (python_new_objfile): Update.
9727 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9728 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9729 (maintenance_check_psymtabs): Update.
9730 * printcmd.c (info_address_command): Update.
9731 * objfiles.h (struct objfile) <arch>: New method, from
9732 get_objfile_arch.
9733 (get_objfile_arch): Don't declare.
9734 * objfiles.c (get_objfile_arch): Remove.
9735 (filter_overlapping_sections): Update.
9736 * minsyms.c (msymbol_is_function): Update.
9737 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9738 (output_nondebug_symbol): Update.
9739 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9740 (mdebug_expand_psymtab): Update.
9741 * machoread.c (macho_add_oso_symfile): Update.
9742 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9743 Update.
9744 * linux-fork.c (checkpoint_command): Update.
9745 * linespec.c (convert_linespec_to_sals): Update.
9746 * jit.c (finalize_symtab): Update.
9747 * infrun.c (insert_exception_resume_from_probe): Update.
9748 * ia64-tdep.c (ia64_find_unwind_table): Update.
9749 * hppa-tdep.c (internalize_unwinds): Update.
9750 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9751 Update.
9752 * gcore.c (call_target_sbrk): Update.
9753 * elfread.c (record_minimal_symbol, elf_symtab_read)
9754 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9755 (elf_gnu_ifunc_resolve_by_got): Update.
9756 * dwarf2/read.c (create_addrmap_from_index)
9757 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9758 (read_debug_names_from_section)
9759 (process_psymtab_comp_unit_reader, add_partial_symbol)
9760 (add_partial_subprogram, process_full_comp_unit)
9761 (read_file_scope, read_func_scope, read_lexical_block_scope)
9762 (read_call_site_scope, dwarf2_ranges_read)
9763 (dwarf2_record_block_ranges, dwarf2_add_field)
9764 (mark_common_block_symbol_computed, read_tag_pointer_type)
9765 (read_tag_string_type, dwarf2_init_float_type)
9766 (dwarf2_init_complex_target_type, read_base_type)
9767 (partial_die_info::read, partial_die_info::read)
9768 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9769 (dwarf2_fetch_die_loc_sect_off): Update.
9770 * dwarf2/loc.c (dwarf2_find_location_expression)
9771 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9772 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9773 (dwarf2_loc_desc_get_symbol_read_needs)
9774 (locexpr_describe_location_piece, locexpr_describe_location_1)
9775 (loclist_describe_location): Update.
9776 * dwarf2/index-write.c (write_debug_names): Update.
9777 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9778 * dtrace-probe.c (dtrace_process_dof): Update.
9779 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9780 (process_one_symbol): Update.
9781 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9782 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9783 (coff_read_enum_type): Update.
9784 * cli/cli-cmds.c (edit_command, list_command): Update.
9785 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9786 * breakpoint.c (create_overlay_event_breakpoint)
9787 (create_longjmp_master_breakpoint)
9788 (create_std_terminate_master_breakpoint)
9789 (create_exception_master_breakpoint, get_sal_arch): Update.
9790 * block.c (block_gdbarch): Update.
9791 * annotate.c (annotate_source_line): Update.
9792
0743fc83
TT
97932020-04-17 Tom Tromey <tromey@adacore.com>
9794
9795 * auto-load.c (show_auto_load_cmd): Remove.
9796 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9797 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9798 (maintenance_print_arc_command): Remove.
9799 * tui/tui-win.c (tui_command): Remove.
9800 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9801 * tui/tui-layout.c (tui_layout_command): Remove.
9802 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9803 * python/python.c (user_set_python, user_show_python): Remove.
9804 (_initialize_python): Use add_basic_prefix_cmd,
9805 add_show_prefix_cmd.
9806 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9807 (install_gdb_commands): Use add_basic_prefix_cmd,
9808 add_show_prefix_cmd.
9809 (info_guile_command): Remove.
9810 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9811 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9812 add_show_prefix_cmd.
9813 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9814 Remove do_set and do_show parameters.
9815 * cli/cli-style.c (set_style, show_style): Remove.
9816 (_initialize_cli_style): Use add_basic_prefix_cmd,
9817 add_show_prefix_cmd.
9818 (cli_style_option::add_setshow_commands): Remove do_set and
9819 do_show parameters.
9820 (cli_style_option::add_setshow_commands): Use
9821 add_basic_prefix_cmd, add_show_prefix_cmd.
9822 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9823 (set_style_name): Remove.
9824 * cli/cli-dump.c (dump_command, append_command): Remove.
9825 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9826 (tekhex_dump_command, binary_dump_command)
9827 (binary_append_command): Remove.
9828 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9829 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9830 (init_w32_command_list): Remove; move into ...
9831 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9832 * valprint.c (set_print, show_print, set_print_raw)
9833 (show_print_raw): Remove.
9834 (_initialize_valprint): Use add_basic_prefix_cmd,
9835 add_show_prefix_cmd.
9836 * typeprint.c (set_print_type, show_print_type): Remove.
9837 (_initialize_typeprint): Use add_basic_prefix_cmd,
9838 add_show_prefix_cmd.
9839 * record.c (set_record_command, show_record_command): Remove.
9840 (_initialize_record): Use add_basic_prefix_cmd,
9841 add_show_prefix_cmd.
9842 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9843 add_show_prefix_cmd.
9844 (info_command, show_command, set_debug, show_debug): Remove.
9845 * top.h (set_history, show_history): Don't declare.
9846 * top.c (set_history, show_history): Remove.
9847 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9848 (unset_tdesc_cmd): Remove.
9849 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9850 add_show_prefix_cmd.
9851 * symtab.c (info_module_command): Remove.
9852 (_initialize_symtab): Use add_basic_prefix_cmd.
9853 * symfile.c (overlay_command): Remove.
9854 (_initialize_symfile): Use add_basic_prefix_cmd.
9855 * sparc64-tdep.c (info_adi_command): Remove.
9856 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9857 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9858 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9859 add_show_prefix_cmd.
9860 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9861 (_initialize_serial): Use add_basic_prefix_cmd,
9862 add_show_prefix_cmd.
9863 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9864 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9865 add_show_prefix_cmd.
9866 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9867 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9868 add_show_prefix_cmd.
9869 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9870 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9871 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9872 add_show_prefix_cmd.
9873 * remote.c (remote_command, set_remote_cmd): Remove.
9874 (_initialize_remote): Use add_basic_prefix_cmd.
9875 * record-full.c (set_record_full_command)
9876 (show_record_full_command): Remove.
9877 (_initialize_record_full): Use add_basic_prefix_cmd,
9878 add_show_prefix_cmd.
9879 * record-btrace.c (cmd_set_record_btrace)
9880 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9881 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9882 (cmd_show_record_btrace_pt): Remove.
9883 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9884 add_show_prefix_cmd.
9885 * ravenscar-thread.c (set_ravenscar_command)
9886 (show_ravenscar_command): Remove.
9887 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9888 add_show_prefix_cmd.
9889 * mips-tdep.c (show_mips_command, set_mips_command)
9890 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9891 add_show_prefix_cmd.
9892 * maint.c (maintenance_command, maintenance_info_command)
9893 (maintenance_check_command, maintenance_print_command)
9894 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9895 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9896 add_show_prefix_cmd.
9897 (show_per_command_cmd): Remove.
9898 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9899 Remove.
9900 (maintenance_show_test_settings_cmd): Remove.
9901 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9902 add_show_prefix_cmd.
9903 * maint-test-options.c (maintenance_test_options_command):
9904 Remove.
9905 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9906 * macrocmd.c (macro_command): Remove
9907 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9908 * language.c (set_check, show_check): Remove.
9909 (_initialize_language): Use add_basic_prefix_cmd,
9910 add_show_prefix_cmd.
9911 * infcmd.c (unset_command): Remove.
9912 (_initialize_infcmd): Use add_basic_prefix_cmd.
9913 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9914 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9915 add_show_prefix_cmd.
9916 * go32-nat.c (go32_info_dos_command): Remove.
9917 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9918 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9919 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9920 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9921 (_initialize_frame): Use add_basic_prefix_cmd,
9922 add_show_prefix_cmd.
9923 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9924 (_initialize_dcache): Use add_basic_prefix_cmd,
9925 add_show_prefix_cmd.
9926 * cp-support.c (maint_cplus_command): Remove.
9927 (_initialize_cp_support): Use add_basic_prefix_cmd.
9928 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9929 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9930 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9931 add_basic_prefix_cmd, add_show_prefix_cmd.
9932 * breakpoint.c (save_command): Remove.
9933 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9934 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9935 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9936 add_show_prefix_cmd.
9937 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9938 (set_ada_command, show_ada_command): Remove.
9939 (_initialize_ada_language): Use add_basic_prefix_cmd,
9940 add_show_prefix_cmd.
9941 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9942
3557f442
KR
99432020-04-16 Kamil Rytarowski <n54@gmx.com>
9944
9945 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9946 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9947
16197208
SM
99482020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9949
9950 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9951 warning messages.
9952
00ac85d3
SM
99532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9954
9955 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9956 import table is not at beginning of .idata section.
9957
381ce63f
PA
99582020-04-16 Pedro Alves <palves@redhat.com>
9959
9960 * inferior.c (delete_inferior): Use delete operator directly
9961 instead of delete_program_space.
9962 * progspace.c (add_program_space): New, factored out from
9963 program_space::program_space.
9964 (remove_program_space): New, factored out from
9965 delete_program_space.
9966 (program_space::program_space): Remove intro comment. Rewrite.
9967 (program_space::~program_space): Remove intro comment. Call
9968 remove_program_space.
9969 (delete_program_space): Delete.
9970 * progspace.h (program_space::program_space): Make explicit. Move
9971 intro comment here, adjusted.
9972 (program_space::~program_space): Move intro comment here,
9973 adjusted.
9974 (delete_program_space): Remove.
9975
a010605f
TT
99762020-04-16 Tom Tromey <tromey@adacore.com>
9977
9978 * windows-nat.c (windows_nat::handle_access_violation): New
9979 function.
9980 * nat/windows-nat.h (handle_access_violation): Declare.
9981 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9982 windows-nat.c. Call handle_access_violation.
9983
efba5c23
TV
99842020-04-16 Tom de Vries <tdevries@suse.de>
9985
9986 PR symtab/25791
9987 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9988 CUs without psymtab.
9989
97ed802d
KB
99902020-04-16 Kevin Buettner <kevinb@redhat.com>
9991
9992 * python/python.c (do_start_initialization): Don't call
9993 PyEval_InitThreads for Python 3.9 and beyond.
9994
c7d64809
KR
99952020-04-15 Kamil Rytarowski <n54@gmx.com>
9996
9997 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9998 thread functions.
9999 (obsd_nat_target::wait): Likewise.
10000
ce127a96
TT
100012020-04-15 Tom Tromey <tromey@adacore.com>
10002
10003 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10004 (DEBUG_EXCEPT): Use debug_printf.
10005
99f1bc6a
AB
100062020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10007
10008 * completer.c (class completion_tracker::completion_hash_entry)
10009 <hash_name>: New member function.
10010 (completion_tracker::discard_completions): New callback to hash a
10011 completion_hash_entry, pass this to htab_create_alloc.
10012
a0e9b532
JT
100132016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10014
10015 * windows-nat.c (windows_make_so): Warn rather than stopping with
10016 an error if realpath() fails.
10017
06ca5dd4
KR
100182020-04-14 Kamil Rytarowski <n54@gmx.com>
10019
10020 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10021 (nbsd_nat_target::info_proc): Add do_status.
10022
194d088f
TV
100232020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10024 Tom de Vries <tdevries@suse.de>
10025
10026 PR symtab/25718
10027 * psympriv.h (struct partial_symtab::read_symtab)
10028 (struct partial_symtab::expand_psymtab)
10029 (struct partial_symtab::read_dependencies): Update comments.
10030 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10031 read_symtab for includer.
10032 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10033 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10034 (struct dwarf2_include_psymtab::m_readin): Remove.
10035 (struct dwarf2_include_psymtab::includer): New member function.
10036 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10037
c1a66c06
TV
100382020-04-14 Tom de Vries <tdevries@suse.de>
10039
10040 PR symtab/25720
10041 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10042 with NULL symbol_matcher and lookup_name.
10043 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10044 and lookup_name.
10045 * dwarf2/read.c (dw2_expand_symtabs_matching)
10046 (dw2_debug_names_expand_symtabs_matching): Same.
10047 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10048 Make lookup_name a pointer. Update comment.
10049 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10050 lookup_name being a pointer.
10051 * symfile.c (expand_symtabs_matching): Same.
10052 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10053 * linespec.c (iterate_over_all_matching_symtabs): Same.
10054
400b5eca
TT
100552020-04-13 Tom Tromey <tom@tromey.com>
10056
10057 * run-on-main-thread.c: Update include.
10058 * unittests/main-thread-selftests.c: Update include.
10059 * tui/tui-win.c: Update include.
10060 * tui/tui-io.c: Update include.
10061 * tui/tui-interp.c: Update include.
10062 * tui/tui-hooks.c: Update include.
10063 * top.h: Update include.
10064 * top.c: Update include.
10065 * ser-base.c: Update include.
10066 * remote.c: Update include.
10067 * remote-notif.c: Update include.
10068 * remote-fileio.c: Update include.
10069 * record-full.c: Update include.
10070 * record-btrace.c: Update include.
10071 * python/python.c: Update include.
10072 * posix-hdep.c: Update include.
10073 * mingw-hdep.c: Update include.
10074 * mi/mi-main.c: Update include.
10075 * mi/mi-interp.c: Update include.
10076 * main.c: Update include.
10077 * linux-nat.c: Update include.
10078 * interps.c: Update include.
10079 * infrun.c: Update include.
10080 * inf-loop.c: Update include.
10081 * event-top.c: Update include.
10082 * event-loop.c: Move to ../gdbsupport/.
10083 * event-loop.h: Move to ../gdbsupport/.
10084 * async-event.h: Update include.
10085 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10086
93b54c8e
TT
100872020-04-13 Tom Tromey <tom@tromey.com>
10088
10089 * tui/tui-win.c: Include async-event.h.
10090 * remote.c: Include async-event.h.
10091 * remote-notif.c: Include async-event.h.
10092 * record-full.c: Include async-event.h.
10093 * record-btrace.c: Include async-event.h.
10094 * infrun.c: Include async-event.h.
10095 * event-top.c: Include async-event.h.
10096 * event-loop.h: Move some declarations to async-event.h.
10097 * event-loop.c: Don't include ser-event.h or top.h. Move some
10098 code to async-event.c.
10099 * async-event.h: New file.
10100 * async-event.c: New file.
10101 * Makefile.in (COMMON_SFILES): Add async-event.c.
10102 (HFILES_NO_SRCDIR): Add async-event.h.
10103
c1cd3163
TT
101042020-04-13 Tom Tromey <tom@tromey.com>
10105
10106 * utils.c (flush_streams): New function.
10107 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10108
29f2bf4f
TT
101092020-04-13 Tom Tromey <tom@tromey.com>
10110
10111 * event-loop.c (handle_file_event): Use warning, not
10112 printf_unfiltered.
10113
98029d02
TT
101142020-04-13 Tom Tromey <tom@tromey.com>
10115
10116 * event-loop.c: Include <chrono>.
10117
06cc9596
TT
101182020-04-13 Tom Tromey <tom@tromey.com>
10119
10120 * gdb_select.h: Move to ../gdbsupport/.
10121 * event-loop.c: Update include path.
10122 * top.c: Update include path.
10123 * ser-base.c: Update include path.
10124 * ui-file.c: Update include path.
10125 * ser-tcp.c: Update include path.
10126 * guile/scm-ports.c: Update include path.
10127 * posix-hdep.c: Update include path.
10128 * ser-unix.c: Update include path.
10129 * gdb_usleep.c: Update include path.
10130 * mingw-hdep.c: Update include path.
10131 * inflow.c: Update include path.
10132 * infrun.c: Update include path.
10133 * event-top.c: Update include path.
10134
8ae8e197
TT
101352020-04-13 Tom Tromey <tom@tromey.com>
10136
10137 * configure: Rebuild.
10138 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10139
58cf28e8
TT
101402020-04-13 Tom Tromey <tom@tromey.com>
10141
10142 * event-loop.h (start_event_loop): Don't declare.
10143 * event-loop.c (start_event_loop): Move...
10144 * main.c (start_event_loop): ...here. Now static.
10145
b7f999ae
SDJ
101462020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10147
10148 * MAINTAINERS: Update my email address.
10149
1085dfd4
KR
101502020-04-12 Kamil Rytarowski <n54@gmx.com>
10151
10152 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10153 IP_ALL.
10154
49d1d1f5
KR
101552020-04-12 Kamil Rytarowski <n54@gmx.com>
10156
10157 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10158 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10159
b4848d2a
KR
101602020-04-12 Kamil Rytarowski <n54@gmx.com>
10161
10162 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10163 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10164
51c133d5
KR
101652020-04-12 Kamil Rytarowski <n54@gmx.com>
10166
10167 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10168
54b8cbd0
KR
101692020-04-11 Kamil Rytarowski <n54@gmx.com>
10170
10171 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10172 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10173 (nbsd_nat_target::info_proc): New functions.
10174 * nbsd-nat.c (kinfo_get_vmmap): New function.
10175 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10176 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10177 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10178 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10179 functions.
10180 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10181 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10182 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10183 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10184 (KINFO_VME_FLAG_GROWS_DOWN): New.
10185
cf83625d
AS
101862020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10187
10188 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10189 bit shift.
10190
0c4311ab
TT
101912020-04-10 Tom Tromey <tromey@adacore.com>
10192
10193 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10194
3e65b3e9
TT
101952020-04-10 Tom Tromey <tromey@adacore.com>
10196
10197 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10198 separate debug files.
10199
13302e95
HD
102002020-04-10 Hannes Domani <ssbssa@yahoo.de>
10201
10202 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10203 Move to...
10204 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10205 ... here.
10206 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10207 Check for STATUS_WX86_BREAKPOINT.
10208 (windows_nat_target::wait): Same.
10209
bdfc1e8a
TV
102102020-04-10 Tom de Vries <tdevries@suse.de>
10211
10212 PR cli/25808
10213 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10214
f4460aec
SM
102152020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10216
10217 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10218 (Write After Approval): Remove Tom de Vries.
10219
a25198bb
BE
102202020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10221
10222 revert partially:
10223 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10224
aac66a4c
SM
10225 * buildsym.c (record_line): Fix undefined behavior and preserve
10226 lines at eof.
a25198bb 10227
206c98a6
KR
102282020-04-09 Kamil Rytarowski <n54@gmx.com>
10229
10230 * auxv.h (svr4_auxv_parse): New.
10231 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10232 and generic_auxv_parse.
10233 (svr4_auxv_parse): Add.
10234 * obsd-tdep.c: Include "auxv.h".
10235 (obsd_auxv_parse): Remove.
10236 (obsd_init_abi): Remove comment.
10237 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10238 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10239 * nbsd-tdep.c: Include "auxv.h".
10240 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10241
71fbdbaf
TT
102422020-04-08 Tom Tromey <tromey@adacore.com>
10243
10244 * nat/windows-nat.h (last_wait_event): Don't declare.
10245 (wait_for_debug_event): Update comment.
10246 * nat/windows-nat.c (last_wait_event): Now static.
10247
2c1d95e8
TT
102482020-04-08 Tom Tromey <tromey@adacore.com>
10249
10250 * windows-nat.c (wait_for_debug_event): Move to
10251 nat/windows-nat.c.
10252 * nat/windows-nat.h (wait_for_debug_event): Declare.
10253 * nat/windows-nat.c (wait_for_debug_event): Move from
10254 windows-nat.c. No longer static.
10255
d2977bc4
TT
102562020-04-08 Tom Tromey <tromey@adacore.com>
10257
10258 * windows-nat.c (get_windows_debug_event): Use
10259 fetch_pending_stop.
10260 * nat/windows-nat.h (fetch_pending_stop): Declare.
10261 * nat/windows-nat.c (fetch_pending_stop): New function.
10262
e758e19c
TT
102632020-04-08 Tom Tromey <tromey@adacore.com>
10264
10265 * windows-nat.c (windows_continue): Use matching_pending_stop and
10266 continue_last_debug_event.
10267 * nat/windows-nat.h (matching_pending_stop)
10268 (continue_last_debug_event): Declare.
10269 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10270 (matching_pending_stop, continue_last_debug_event): New
10271 functions.
10272
8d30e395
TT
102732020-04-08 Tom Tromey <tromey@adacore.com>
10274
10275 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10276 (handle_exception_result): Move to nat/windows-nat.h.
10277 (DEBUG_EXCEPTION_SIMPLE): Remove.
10278 (windows_nat::handle_ms_vc_exception): New function.
10279 (handle_exception): Move to nat/windows-nat.c.
10280 (get_windows_debug_event): Update.
10281 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10282 nat/windows-nat.c.
10283 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10284 (handle_exception_result): Move from windows-nat.c.
10285 (handle_exception): Declare.
10286 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10287 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10288 windows-nat.c.
10289
29de418d
TT
102902020-04-08 Tom Tromey <tromey@adacore.com>
10291
10292 * windows-nat.c (exception_count, event_count): Remove.
10293 (handle_exception, get_windows_debug_event)
10294 (do_initial_windows_stuff): Update.
10295
a816ba18
TT
102962020-04-08 Tom Tromey <tromey@adacore.com>
10297
10298 * windows-nat.c (windows_nat::handle_load_dll)
10299 (windows_nat::handle_unload_dll): Rename. No longer static.
10300 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10301 Declare.
10302
a00caa12
TT
103032020-04-08 Tom Tromey <tromey@adacore.com>
10304
10305 * complaints.h (stop_whining): Declare at top-level.
10306 (complaint): Don't declare stop_whining.
10307
d41b524f
TT
103082020-04-08 Tom Tromey <tromey@adacore.com>
10309
10310 * windows-nat.c (windows_nat::handle_output_debug_string):
10311 Rename. No longer static.
10312 * nat/windows-nat.h (handle_output_debug_string): Declare.
10313
3c76026d
TT
103142020-04-08 Tom Tromey <tromey@adacore.com>
10315
10316 * windows-nat.c (current_process_handle, current_process_id)
10317 (main_thread_id, last_sig, current_event, last_wait_event)
10318 (current_windows_thread, desired_stop_thread_id, pending_stops)
10319 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10320 (display_selectors, fake_create_process)
10321 (get_windows_debug_event): Update.
10322 * nat/windows-nat.h (current_process_handle, current_process_id)
10323 (main_thread_id, last_sig, current_event, last_wait_event)
10324 (current_windows_thread, desired_stop_thread_id, pending_stops)
10325 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10326 * nat/windows-nat.c (current_process_handle, current_process_id)
10327 (main_thread_id, last_sig, current_event, last_wait_event)
10328 (current_windows_thread, desired_stop_thread_id, pending_stops)
10329 (siginfo_er): New globals. Move from windows-nat.c.
10330
9d8679cc
TT
103312020-04-08 Tom Tromey <tromey@adacore.com>
10332
10333 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10334 (handle_load_dll): Update.
10335 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10336
28688adf
TT
103372020-04-08 Tom Tromey <tromey@adacore.com>
10338
10339 * windows-nat.c (enum thread_disposition_type): Move to
10340 nat/windows-nat.h.
10341 (windows_nat::thread_rec): Rename from thread_rec. No longer
10342 static.
10343 (windows_add_thread, windows_nat_target::fetch_registers)
10344 (windows_nat_target::store_registers, handle_exception)
10345 (windows_nat_target::resume, get_windows_debug_event)
10346 (windows_nat_target::get_tib_address)
10347 (windows_nat_target::thread_name)
10348 (windows_nat_target::thread_alive): Update.
10349 * nat/windows-nat.h (enum thread_disposition_type): Move from
10350 windows-nat.c.
10351 (thread_rec): Declare.
10352
4834dad0
TT
103532020-04-08 Tom Tromey <tromey@adacore.com>
10354
10355 * windows-nat.c: Add "using namespace".
10356 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10357 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10358
65bafd5b
TT
103592020-04-08 Tom Tromey <tromey@adacore.com>
10360
10361 * nat/windows-nat.h (struct windows_thread_info): Declare
10362 destructor.
10363 * nat/windows-nat.c (~windows_thread_info): New.
10364
0a4afda3
TT
103652020-04-08 Tom Tromey <tromey@adacore.com>
10366
10367 PR gdb/22992
10368 * windows-nat.c (current_event): Update comment.
10369 (last_wait_event, desired_stop_thread_id): New globals.
10370 (struct pending_stop): New.
10371 (pending_stops): New global.
10372 (windows_nat_target) <stopped_by_sw_breakpoint>
10373 <supports_stopped_by_sw_breakpoint>: New methods.
10374 (windows_fetch_one_register): Add assertions. Adjust PC.
10375 (windows_continue): Handle pending stops. Suspend other threads
10376 when stepping. Use last_wait_event
10377 (wait_for_debug_event): New function.
10378 (get_windows_debug_event): Use wait_for_debug_event. Handle
10379 pending stops. Queue spurious stops.
10380 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10381 (windows_nat_target::kill): Use wait_for_debug_event.
10382 * nat/windows-nat.h (struct windows_thread_info)
10383 <stopped_at_software_breakpoint>: New field.
10384 * nat/windows-nat.c (windows_thread_info::resume): Clear
10385 stopped_at_software_breakpoint.
10386
8e61ebec
TT
103872020-04-08 Tom Tromey <tromey@adacore.com>
10388
10389 * windows-nat.c (enum thread_disposition_type): New.
10390 (thread_rec): Replace "get_context" parameter with "disposition";
10391 change type.
10392 (windows_add_thread, windows_nat_target::fetch_registers)
10393 (windows_nat_target::store_registers, handle_exception)
10394 (windows_nat_target::resume, get_windows_debug_event)
10395 (windows_nat_target::get_tib_address)
10396 (windows_nat_target::thread_name)
10397 (windows_nat_target::thread_alive): Update.
10398
98a03287
TT
103992020-04-08 Tom Tromey <tromey@adacore.com>
10400
10401 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10402 (windows_continue): Use windows_continue::resume.
10403 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10404 resume>: Declare new methods.
10405 * nat/windows-nat.c: New file.
10406 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10407
7c7411bc
TT
104082020-04-08 Tom Tromey <tromey@adacore.com>
10409
10410 * windows-nat.c (windows_add_thread, windows_delete_thread)
10411 (windows_nat_target::fetch_registers)
10412 (windows_nat_target::store_registers, fake_create_process)
10413 (windows_nat_target::resume, windows_nat_target::resume)
10414 (get_windows_debug_event, windows_nat_target::wait)
10415 (windows_nat_target::pid_to_str)
10416 (windows_nat_target::get_tib_address)
10417 (windows_nat_target::get_ada_task_ptid)
10418 (windows_nat_target::thread_name)
10419 (windows_nat_target::thread_alive): Use lwp, not tid.
10420
2950fdf7
TT
104212020-04-08 Tom Tromey <tromey@adacore.com>
10422
10423 * windows-nat.c (handle_exception)
10424 (windows_nat_target::thread_name): Update.
10425 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10426 <name>: Now unique_xmalloc_ptr.
10427
62fe396b
TT
104282020-04-08 Tom Tromey <tromey@adacore.com>
10429
10430 * windows-nat.c (thread_rec)
10431 (windows_nat_target::fetch_registers): Update.
10432 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10433 Update comment.
10434 <debug_registers_changed, reload_context>: Now bool.
10435
e9534bd2
TT
104362020-04-08 Tom Tromey <tromey@adacore.com>
10437
10438 * windows-nat.c (windows_add_thread): Use new.
10439 (windows_init_thread_list, windows_delete_thread): Use delete.
10440 (get_windows_debug_event): Update.
10441 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10442 destructor, and initializers.
10443
ae1f8880
TT
104442020-04-08 Tom Tromey <tromey@adacore.com>
10445
10446 * windows-nat.c (struct windows_thread_info): Remove.
10447 * nat/windows-nat.h: New file.
10448
55a1e039
TT
104492020-04-08 Tom Tromey <tromey@adacore.com>
10450
10451 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10452 (thread_rec, windows_add_thread, windows_delete_thread)
10453 (windows_continue): Update.
10454
93366324
TT
104552020-04-08 Tom Tromey <tromey@adacore.com>
10456
10457 * windows-nat.c (struct windows_thread_info): Remove typedef.
10458 (thread_head): Remove.
10459 (thread_list): New global.
10460 (thread_rec, windows_add_thread, windows_init_thread_list)
10461 (windows_delete_thread, windows_continue): Update.
10462
0f2265e2
SM
104632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10464
10465 * windows-tdep.h (windows_init_abi): Add comment.
10466 (cygwin_init_abi): New declaration.
10467 * windows-tdep.c: Split signal enumeration in two, one for
10468 Windows and one for Cygwin.
10469 (windows_gdb_signal_to_target): Only deal with signal of the
10470 Windows OS ABI.
10471 (cygwin_gdb_signal_to_target): New function.
10472 (windows_init_abi): Rename to windows_init_abi_common, don't set
10473 gdb_signal_to_target gdbarch method. Add new new function with
10474 this name.
10475 (cygwin_init_abi): New function.
10476 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10477 comment. Don't call windows_init_abi.
10478 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10479 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10480 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10481 i386_windows_init_abi_common, don't call windows_init_abi. Add
10482 a new function of this name.
10483 (i386_cygwin_init_abi): New function.
10484 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10485 OS ABI Cygwin.
10486
3810f182
SM
104872020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10488
10489 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10490 parameter.c.
10491 (dwarf2_read_gdb_index): Update.
10492
063f8e80
KR
104932020-04-07 Kamil Rytarowski <n54@gmx.com>
10494
10495 * nbsd-tdep.c: Include "objfiles.h".
10496 (nbsd_skip_solib_resolver): New.
10497 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10498
85a9510c 104992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10500
10501 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10502 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10503 with DW_LLE_base_addressx are being emitted in DWARFv5.
10504 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10505 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10506 unsigned integer.
10507
9fc3eaae 105082020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10509
10510 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10511 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10512 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10513 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10514 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10515 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10516 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10517
10518
41144253 105192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10520
10521 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10522 (read_loclist_index): New function definition.
10523 (lookup_loclist_base): New function definition.
10524 (read_loclist_header): New function definition.
10525 (dwarf2_cu): Add loclist_base and loclist_header field.
10526 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10527 (read_full_die_1): Read the value of DW_AT_loclists_base.
10528 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10529 (read_attribute_value): Handle DW_FORM_loclistx.
10530 (skip_one_die): Handle DW_FORM_loclistx.
10531 (loclist_header): New structure declaration.
10532 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10533
9f4e76a4
SM
105342020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10535
10536 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10537 constructor. Remove `addr` parameter from other constructor and
10538 add `per_cu` parameter.
10539 * dwarf2/read.c (create_partial_symtab): Update.
10540
25c11aca
TV
105412020-04-07 Tom de Vries <tdevries@suse.de>
10542
10543 PR symtab/25796
10544 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10545 (partial_die_info::fixup): Inherit has_const_value.
10546
5707e24b
TV
105472020-04-07 Tom de Vries <tdevries@suse.de>
10548
10549 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10550 symbols without address.
10551
05f00e22
KR
105522020-04-06 Kamil Rytarowski <n54@gmx.com>
10553
10554 * nbsd-nat.h (struct thread_info): Add forward declaration.
10555 (nbsd_nat_target::thread_alive): Add.
10556 (nbsd_nat_target::thread_name): Likewise.
10557 (nbsd_nat_target::update_thread_list): Likewise.
10558 (update_thread_list::post_attach): Likewise.
10559 (post_attach::pid_to_str): Likewise.
10560 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10561 (nbsd_thread_lister): Add.
10562 (nbsd_nat_target::thread_alive): Likewise.
10563 (nbsd_nat_target::thread_name): Likewise.
10564 (nbsd_add_threads): Likewise.
10565 (update_thread_list::post_attach): Likewise.
10566 (nbsd_nat_target::update_thread_list): Likewise.
10567 (post_attach::pid_to_str): Likewise.
10568
6ee448cc
TT
105692020-04-06 Tom Tromey <tromey@adacore.com>
10570
10571 * ada-valprint.c (print_variant_part): Extract the variant field.
10572 (print_field_values): Use the field as the outer value when
10573 recursing.
10574
dea34e8c
TT
105752020-04-06 Tom Tromey <tromey@adacore.com>
10576
10577 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10578 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10579 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10580 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10581 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10582
93689ce9
TT
105832020-04-06 Tom Tromey <tromey@adacore.com>
10584
10585 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10586 TYPE_CODE_ERROR.
10587
79743962
KR
105882020-04-06 Kamil Rytarowski <n54@gmx.com>
10589
10590 * nbsd-tdep.c: Include "gdbarch.h".
10591 Define enum with NetBSD signal numbers.
10592 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10593 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10594 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10595 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10596 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10597 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10598 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10599 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10600 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10601 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10602 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10603 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10604
9e7c9a03
HD
106052020-04-03 Hannes Domani <ssbssa@yahoo.de>
10606
10607 PR gdb/25325
10608 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10609
d9e49b61
TT
106102020-04-03 Tom Tromey <tromey@adacore.com>
10611
10612 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10613 Read constant block.
10614
e0fc5c3f
SM
106152020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10616
10617 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10618 (gdb_bfd_get_full_section_contents): New declaration.
10619 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10620 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10621 gdb_bfd_get_full_section_contents.
10622
e2ff18a0
SM
106232020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10624
10625 * exec.c (build_section_table): Replace internal_error with
10626 gdb_assert.
10627 (section_table_xfer_memory_partial): Likewise.
10628 * mdebugread.c (parse_partial_symbols): Likewise.
10629 * psymtab.c (lookup_partial_symbol): Likewise.
10630 * utils.c (wrap_here): Likewise.
10631
0830d301
TT
106322020-04-02 Tom Tromey <tromey@adacore.com>
10633
10634 * f-lang.c (build_fortran_types): Use arch_type to initialize
10635 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10636
e7da7f8f
TT
106372020-04-02 Tom Tromey <tromey@adacore.com>
10638
10639 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10640 of attributes.
10641
c90d28ac
AB
106422020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10643 Bernd Edlinger <bernd.edlinger@hotmail.de>
10644 Tom Tromey <tromey@adacore.com>
10645
10646 * buildsym.c (buildsym_compunit::record_line): Remove
10647 deduplication code.
10648
1aa98955
TV
106492020-04-02 Tom de Vries <tdevries@suse.de>
10650
10651 PR ada/24671
10652 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10653
d3214198
TV
106542020-04-02 Tom de Vries <tdevries@suse.de>
10655
10656 * dwarf2/read.c (dwarf2_gdb_index_functions,
10657 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10658 NULL.
10659 * psymtab.c (psym_lookup_global_symbol_language): New function.
10660 (psym_functions): Init psym_lookup_global_symbol_language with
10661 psym_lookup_global_symbol_language.
10662 * symfile-debug.c (debug_sym_quick_functions): Init
10663 lookup_global_symbol_language with NULL.
10664 * symfile.c (set_initial_language): Remove fixme comment.
10665 * symfile.h (struct quick_symbol_functions): Add
10666 lookup_global_symbol_language.
10667 * symtab.c (find_quick_global_symbol_language): New function.
10668 (find_main_name): Use find_quick_global_symbol_language.
10669
2836752f
SM
106702020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10671
10672 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10673
64dc2d4b
BE
106742020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10675
10676 * buildsym.c (record_line): Fix undefined behavior and preserve
10677 lines at eof.
10678
bbe3dc41
BE
106792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10680
10681 * buildsym.c (record_line): Fix the resizing condition.
10682
6b4a335b
TT
106832020-04-01 Tom Tromey <tom@tromey.com>
10684
10685 * value.h (value_literal_complex): Add comment.
10686 * valops.c (value_literal_complex): Refer to value.h.
10687
3638a098
TT
106882020-04-01 Tom Tromey <tom@tromey.com>
10689
10690 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10691 (scalar_type): New rule, from typebase.
10692 (typebase): Use scalar_type. Recognize complex types.
10693 (field_name): Handle FLOAT_KEYWORD.
10694 (ident_tokens): Add _Complex and __complex__.
10695
c34e8714
TT
106962020-04-01 Tom Tromey <tom@tromey.com>
10697
10698 PR exp/25299:
10699 * valarith.c (promotion_type, complex_binop): New functions.
10700 (scalar_binop): Handle complex numbers. Use promotion_type.
10701 (value_pos, value_neg, value_complement): Handle complex numbers.
10702
fa649bb7
TT
107032020-04-01 Tom Tromey <tom@tromey.com>
10704
10705 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10706 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10707 (parse_number): Handle complex numbers.
10708
981c08ce
TT
107092020-04-01 Tom Tromey <tom@tromey.com>
10710
10711 * c-valprint.c (c_decorations): Change complex suffix to "i".
10712
4c99290d
TT
107132020-04-01 Tom Tromey <tom@tromey.com>
10714
10715 * valprint.c (generic_value_print_complex): Use accessors.
10716 * value.h (value_real_part, value_imaginary_part): Declare.
10717 * valops.c (value_real_part, value_imaginary_part): New
10718 functions.
10719 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10720
5b930b45
TT
107212020-04-01 Tom Tromey <tom@tromey.com>
10722
10723 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10724 (read_range_type): Update.
10725 * mdebugread.c (basic_type): Update.
10726 * go-lang.c (build_go_types): Use init_complex_type.
10727 * gdbtypes.h (struct main_type) <complex_type>: New member.
10728 (init_complex_type): Update.
10729 (arch_complex_type): Don't declare.
10730 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10731 Make name if none given. Use alloc_type_copy. Look for cached
10732 complex type.
10733 (arch_complex_type): Remove.
10734 (gdbtypes_post_init): Use init_complex_type.
10735 * f-lang.c (build_fortran_types): Use init_complex_type.
10736 * dwarf2/read.c (read_base_type): Update.
10737 * d-lang.c (build_d_types): Use init_complex_type.
10738 * ctfread.c (read_base_type): Update.
10739
53cccef1
TBA
107402020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10741
10742 * infrun.c (stop_all_threads): Update assertion, plus when
10743 stopping threads, take into account that we might be trying
10744 to stop an all-stop target.
10745 (stop_waiting): Call 'stop_all_threads' if there exists a
10746 non-stop target.
10747
a0714d30
TBA
107482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10749
10750 * target.h (exists_non_stop_target): New function declaration.
10751 * target.c (exists_non_stop_target): New function.
10752
60e22c1e
HD
107532020-04-01 Hannes Domani <ssbssa@yahoo.de>
10754
10755 PR gdb/24789
10756 * eval.c (is_integral_or_integral_reference): New function.
10757 (evaluate_subexp_standard): Allow integer references in
10758 pointer arithmetic.
10759
e139a727
TBA
107602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10761
10762 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10763 check for no ptid in the stop reply when the target is non-stop.
10764
e0802d59
TT
107652020-04-01 Tom Tromey <tromey@adacore.com>
10766
10767 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10768 "name" parameter to rvalue reference. Initialize m_name_holder.
10769 <lookup_name_info>: New overloads.
10770 <name>: Return gdb::string_view.
10771 <c_str>: New method.
10772 <make_ignore_params>: Update.
10773 <search_name_hash>: Update.
10774 <language_lookup_name>: Return const char *.
10775 <m_name>: Change type.
10776 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10777 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10778 (lookup_name_info::match_any): Update.
10779 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10780 Update.
10781 * minsyms.c (linkage_name_str): Update.
10782 * language.c (default_symbol_name_matcher): Update.
10783 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10784 Update.
10785 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10786 (ada_lookup_name_info::ada_lookup_name_info): Update.
10787 (literal_symbol_name_matcher): Update.
10788
8c072cb6
TT
107892020-04-01 Tom Tromey <tromey@adacore.com>
10790
10791 * psymtab.c (psymtab_search_name): Remove function.
10792 (psym_lookup_symbol): Create search name and lookup name here.
10793 (lookup_partial_symbol): Remove "name" parameter; add
10794 lookup_name.
10795 (psym_expand_symtabs_for_function): Update.
10796
6f29a534
TT
107972020-03-31 Joel Jones <joelkevinjones@gmail.com>
10798
10799 PR tui/25597:
10800 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10801
af62665e
TT
108022020-03-31 Tom Tromey <tromey@adacore.com>
10803
10804 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10805 memcpy.
10806
d1a89da5
NC
108072020-03-30 Nelson Chu <nelson.chu@sifive.com>
10808
10809 * features/riscv/32bit-csr.xml: Regenerated.
10810 * features/riscv/64bit-csr.xml: Regenerated.
10811
d8af9068
TT
108122020-03-30 Tom Tromey <tromey@adacore.com>
10813
10814 * ada-valprint.c (print_variant_part): Update.
10815 * ada-lang.h (ada_which_variant_applies): Update.
10816 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10817 outer_valaddr parameters; replace with "outer" value parameter.
10818 (to_fixed_variant_branch_type): Update.
10819
227c0bf4
PFC
108202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10821
10822 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10823 <list>. Remove inclusion of observable.h.
10824 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10825 (struct arch_lwp_info): New struct.
10826 (class ppc_linux_dreg_interface): New class.
10827 (struct ppc_linux_process_info): New struct.
10828 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10829 <low_new_clone, low_forget_process, low_prepare_to_resume>
10830 <copy_thread_dreg_state, mark_thread_stale>
10831 <mark_debug_registers_changed, register_hw_breakpoint>
10832 <clear_hw_breakpoint, register_wp, clear_wp>
10833 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10834 <num_memory_accesses, get_trigger_type>
10835 <create_watchpoint_request, hwdebug_point_cmp>
10836 <init_arch_lwp_info, get_arch_lwp_info>
10837 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10838 methods.
10839 <struct ptid_hash>: New inner struct.
10840 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10841 members.
10842 (saved_dabr_value, hwdebug_info, max_slots_number)
10843 (struct hw_break_tuple, struct thread_points, ppc_threads)
10844 (have_ptrace_hwdebug_interface)
10845 (hwdebug_find_thread_points_by_tid)
10846 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10847 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10848 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10849 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10850 use m_dreg_interface.
10851 (hwdebug_point_cmp): Change to...
10852 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10853 reference arguments instead of pointers.
10854 (ppc_linux_nat_target::ranged_break_num_registers): Use
10855 m_dreg_interface.
10856 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10857 m_dreg_interface. Call register_hw_breakpoint.
10858 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10859 m_dreg_interface. Call clear_hw_breakpoint.
10860 (get_trigger_type): Change to...
10861 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10862 comment.
10863 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10864 use m_dreg_interface. Call register_hw_breakpoint.
10865 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10866 use m_dreg_interface. Call clear_hw_breakpoint.
10867 (can_use_watchpoint_cond_accel): Change to...
10868 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10869 method. Update comment, use m_dreg_interface and
10870 m_process_info.
10871 (calculate_dvc): Change to...
10872 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10873 m_dreg_interface.
10874 (num_memory_accesses): Change to...
10875 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10876 (check_condition): Change to...
10877 (ppc_linux_nat_target::check_condition): ...this method.
10878 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10879 comment, use m_dreg_interface.
10880 (create_watchpoint_request): Change to...
10881 (ppc_linux_nat_target::create_watchpoint_request): ...this
10882 method. Use m_dreg_interface.
10883 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10884 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10885 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10886 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10887 (ppc_linux_nat_target::low_forget_process)
10888 (ppc_linux_nat_target::low_new_fork)
10889 (ppc_linux_nat_target::low_new_clone)
10890 (ppc_linux_nat_target::low_delete_thread)
10891 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10892 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10893 only call mark_thread_stale.
10894 (ppc_linux_thread_exit): Remove.
10895 (ppc_linux_nat_target::stopped_data_address): Change to...
10896 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10897 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10898 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10899 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10900 comment. Call low_stopped_data_address.
10901 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10902 m_dreg_interface.
10903 (ppc_linux_nat_target::masked_watch_num_registers): Use
10904 m_dreg_interface.
10905 (ppc_linux_nat_target::copy_thread_dreg_state)
10906 (ppc_linux_nat_target::mark_thread_stale)
10907 (ppc_linux_nat_target::mark_debug_registers_changed)
10908 (ppc_linux_nat_target::register_hw_breakpoint)
10909 (ppc_linux_nat_target::clear_hw_breakpoint)
10910 (ppc_linux_nat_target::register_wp)
10911 (ppc_linux_nat_target::clear_wp)
10912 (ppc_linux_nat_target::init_arch_lwp_info)
10913 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10914 (_initialize_ppc_linux_nat): Remove observer callback.
10915
4db10d8f
PFC
109162020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10917
10918 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10919 (ppc_linux_nat_target::auxv_parse)
10920 (ppc_linux_nat_target::read_description)
10921 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10922 Move up.
10923
1310c1b0
PFC
109242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10925
10926 * linux-nat.h (low_new_clone): New method.
10927 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10928
69b037c3
SM
109292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10930
10931 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10932 (dbx_expand_psymtab): ... this.
10933 (start_psymtab): Update.
10934 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10935 (mdebug_expand_psymtab): ... this.
10936 (parse_partial_symbols): Update.
10937 (new_psymtab): Update.
10938 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10939 (xcoff_expand_psymtab): ... this.
10940 (xcoff_start_psymtab): Update.
10941
48993951
SM
109422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10943
10944 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10945 <expand_dependencies>: ... this.
10946 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10947 (partial_symtab::expand_dependencies): ... this.
10948 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10949 Update.
10950 (dwarf2_psymtab::expand_psymtab): Update.
10951 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10952 * mdebugread.c (psymtab_to_symtab_1): Update.
10953 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10954
3ad83046
SM
109552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10956
10957 * psympriv.h (discard_psymtab): Remove.
10958 * dbxread.c (dbx_end_psymtab): Update.
10959 * xcoffread.c (xcoff_end_psymtab): Update.
10960
4d1b9ab6
TT
109612020-03-28 Tom Tromey <tom@tromey.com>
10962
10963 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10964 comment.
10965
f1749218
TT
109662020-03-28 Tom Tromey <tom@tromey.com>
10967
10968 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10969
ebea7626
HD
109702020-03-27 Hannes Domani <ssbssa@yahoo.de>
10971
10972 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10973
a879b4d5
JB
109742020-03-26 John Baldwin <jhb@FreeBSD.org>
10975
10976 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10977
0826b30a
TT
109782020-03-26 Tom Tromey <tom@tromey.com>
10979
10980 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10981 (mark_common_block_symbol_computed, read_tag_string_type)
10982 (attr_to_dynamic_prop, read_subrange_type): Update.
10983 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10984 to be methods on struct attribute.
10985 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10986 (read_call_site_scope, partial_die_info::read)
10987 (partial_die_info::read, lookup_die_type, follow_die_ref):
10988 Update.
10989 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10990 from dwarf2_get_ref_die_offset.
10991 (attribute::constant_value): New method, from
10992 dwarf2_get_attr_constant_value.
10993 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10994 Declare method.
10995 <constant_value>: New method.
10996
2b2558bf
TT
109972020-03-26 Tom Tromey <tom@tromey.com>
10998
10999 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11000 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11001 (dwarf_type_encoding_name): Move to stringify.c.
11002 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11003 * dwarf2/stringify.c: New file.
11004 * dwarf2/stringify.h: New file.
11005
eeb64781
TT
110062020-03-26 Tom Tromey <tom@tromey.com>
11007
11008 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11009 Rewrite.
11010
a39fdb41
TT
110112020-03-26 Tom Tromey <tom@tromey.com>
11012
11013 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11014 methods.
11015 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11016 (lookup_ranges_base): Likewise.
11017 (read_cutu_die_from_dwo, read_full_die_1): Update.
11018
436c571c
TT
110192020-03-26 Tom Tromey <tom@tromey.com>
11020
11021 * dwarf2/read.c (read_import_statement, read_file_scope)
11022 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11023 (read_lexical_block_scope, read_call_site_scope)
11024 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11025 (handle_struct_member_die, process_structure_scope)
11026 (update_enumeration_type_from_children)
11027 (process_enumeration_scope, read_array_type, read_common_block)
11028 (read_namespace, read_module, read_subroutine_type): Update.
11029 (sibling_die): Remove.
11030
052c8bb8
TT
110312020-03-26 Tom Tromey <tom@tromey.com>
11032
11033 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11034 (build_type_psymtabs_reader, read_structure_type)
11035 (read_enumeration_type, read_full_die_1): Update.
11036 (dwarf2_attr_no_follow): Move to die.h.
11037 * dwarf2/die.h (struct die_info) <attr>: New method.
11038
2b24b6e4
TT
110392020-03-26 Tom Tromey <tom@tromey.com>
11040
11041 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11042 <base_address>: Now an optional.
11043 (dwarf2_find_base_address, dwarf2_rnglists_process)
11044 (dwarf2_ranges_process, fill_in_loclist_baton)
11045 (dwarf2_symbol_mark_computed): Update.
11046
c2d50fd0
TT
110472020-03-26 Tom Tromey <tom@tromey.com>
11048
11049 * dwarf2/read.c (struct die_info): Move to die.h.
11050 * dwarf2/die.h: New file.
11051
0df7ad3a
TT
110522020-03-26 Tom Tromey <tom@tromey.com>
11053
11054 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11055 * dwarf2/read.c
11056 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11057 Move to line-header.c.
11058 (read_checked_initial_length_and_offset, read_formatted_entries):
11059 Likewise.
11060 (dwarf_decode_line_header): Split into two.
11061 * dwarf2/line-header.c
11062 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11063 Move from read.c.
11064 (read_checked_initial_length_and_offset, read_formatted_entries):
11065 Likewise.
11066 (dwarf_decode_line_header): New function, split from read.c.
11067
86c0bb4c
TT
110682020-03-26 Tom Tromey <tom@tromey.com>
11069
11070 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11071 Declare method.
11072 * dwarf2/read.c (read_attribute_value): Update.
11073 (dwarf2_per_objfile::read_line_string): Rename from
11074 read_indirect_line_string.
11075 (read_formatted_entries): Update.
11076
2ef46c2f
TT
110772020-03-26 Tom Tromey <tom@tromey.com>
11078
11079 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11080 variable.
11081
4f9c1eda
TT
110822020-03-26 Tom Tromey <tom@tromey.com>
11083
11084 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11085 const.
11086 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11087 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11088 parameter const.
11089
5a0e026f
TT
110902020-03-26 Tom Tromey <tom@tromey.com>
11091
11092 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11093 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11094 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11095 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11096
8844c11b
TT
110972020-03-26 Tom Tromey <tom@tromey.com>
11098
11099 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11100 file_names_size, file_full_name, file_file_name>: Use const.
11101 <file_name_at, file_names>: Add const overload.
11102 * dwarf2/line-header.c (line_header::file_file_name)
11103 (line_header::file_full_name): Update.
11104
c90ec28a
TT
111052020-03-26 Tom Tromey <tom@tromey.com>
11106
11107 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11108 (macro_start_file, consume_improper_spaces)
11109 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11110 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11111 (dwarf_decode_macros): Move to macro.c.
11112 * dwarf2/macro.c: New file.
11113 * dwarf2/macro.h: New file.
11114 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11115
4f44ae6c
TT
111162020-03-26 Tom Tromey <tom@tromey.com>
11117
11118 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11119 method.
11120 * dwarf2/section.c: New method. From
11121 read_indirect_string_at_offset_from.
11122 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11123 (read_indirect_string_at_offset_from): Move to section.c.
11124 (read_indirect_string_at_offset): Rewrite.
11125 (read_indirect_line_string_at_offset): Remove.
11126 (read_indirect_string, read_indirect_line_string)
11127 (dwarf_decode_macro_bytes): Update.
11128
a0194fa8
TT
111292020-03-26 Tom Tromey <tom@tromey.com>
11130
11131 * dwarf2/section.h (struct dwarf2_section_info)
11132 <overload_complaint>: Declare.
11133 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11134 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11135 Rename from dwarf2_section_buffer_overflow_complaint.
11136 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11137 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11138
3d27bbdb
TT
111392020-03-26 Tom Tromey <tom@tromey.com>
11140
11141 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11142 Declare.
11143 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11144 Move from read.c.
11145 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11146 to section.c.
11147
9eac9650
TT
111482020-03-26 Tom Tromey <tom@tromey.com>
11149
11150 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11151
bf80d710
TT
111522020-03-26 Tom Tromey <tom@tromey.com>
11153
11154 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11155 "builder".
11156 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11157 parameter.
11158 (dwarf_decode_macros): Update.
11159
0314b390
TT
111602020-03-26 Tom Tromey <tom@tromey.com>
11161
11162 * dwarf2/read.c (read_attribute_value): Update.
11163 (read_indirect_string_from_dwz): Move to dwz.c; change into
11164 method.
11165 (dwarf_decode_macro_bytes): Update.
11166 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11167 * dwarf2/dwz.c: New file.
11168 * Makefile.in (COMMON_SFILES): Add dwz.c.
11169
9fda78b6
TT
111702020-03-26 Tom Tromey <tom@tromey.com>
11171
11172 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11173 * dwarf2/read.c: Add include.
11174 * dwarf2/index-write.c: Add include.
11175 * dwarf2/index-cache.c: Add include.
11176 * dwarf2/dwz.h: New file.
11177
33aa3c10
TT
111782020-03-25 Tom Tromey <tom@tromey.com>
11179
11180 * compile/compile-object-load.c (get_out_value_type): Mention
11181 correct symbol name in error message.
11182
d503b685
HD
111832020-03-25 Hannes Domani <ssbssa@yahoo.de>
11184
11185 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11186
7b1eff95
TV
111872020-03-25 Tom de Vries <tdevries@suse.de>
11188
11189 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11190 * symmisc.c (dump_symtab_1): Print user and includes fields.
11191 (maintenance_info_symtabs): Same.
11192
dd895392
AB
111932020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11194
11195 PR gdb/25534
11196 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11197 (riscv_regcache_cooked_write): New function.
11198 (riscv_push_dummy_call): Use new function.
11199 (riscv_return_value): Likewise.
11200
5ab2fbf1
SM
112012020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11202
11203 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11204 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11205 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11206 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11207 * infrun.c (follow_fork): Likewise.
11208 (follow_fork_inferior): Likewise.
11209 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11210 * linux-nat.h (class linux_nat_target): Likewise.
11211 * remote.c (class remote_target) <follow_fork>: Likewise.
11212 (remote_target::follow_fork): Likewise.
11213 * target-delegates.c: Re-generate.
11214 * target.c (default_follow_fork): Likewise.
11215 (target_follow_fork): Likewise.
11216 * target.h (struct target_ops) <follow_fork>: Likewise.
11217 (target_follow_fork): Likewise.
11218
a64fafb5
TV
112192020-03-24 Tom de Vries <tdevries@suse.de>
11220
11221 * psymtab.c (maintenance_info_psymtabs): Print user field.
11222
fe26d3a3
TT
112232020-03-20 Tom Tromey <tromey@adacore.com>
11224
11225 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11226 const.
11227 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11228 const.
11229
c884cc46
SM
112302020-03-20 Simon Marchi <simon.marchi@efficios.com>
11231
11232 * ptrace.m4: Don't check for ptrace declaration.
11233 * config.in: Re-generate.
11234 * configure: Re-generate.
11235 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11236 not defined.
11237
1ff700c2
KR
112382020-03-20 Kamil Rytarowski <n54@gmx.com>
11239
11240 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11241 `PTRACE_TYPE_RET'.
11242 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11243 * sparc-nat.c (gdb_ptrace): Likewise.
11244 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11245
f7d4f0b1
TT
112462020-03-20 Tom Tromey <tromey@adacore.com>
11247
11248 * c-exp.y (lex_one_token): Fix assert.
11249
f67210ff
TT
112502020-03-20 Tom Tromey <tromey@adacore.com>
11251
11252 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11253 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11254 strncpy call.
11255
1773be9e
TT
112562020-03-20 Tom Tromey <tromey@adacore.com>
11257
11258 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11259
70304be9
TT
112602020-03-20 Tom Tromey <tromey@adacore.com>
11261
11262 * ada-valprint.c (print_variant_part): Remove parameters; switch
11263 to value-based API.
11264 (print_field_values): Likewise.
11265 (ada_val_print_struct_union): Likewise.
11266 (ada_value_print_1): Update.
11267
9faa006d
KR
112682020-03-20 Kamil Rytarowski <n54@gmx.com>
11269
11270 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11271 nbsd_nat_target instead of inf_ptrace_target.
11272 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11273 nbsd_nat_target.
11274
4a90f062
KR
112752020-03-20 Kamil Rytarowski <n54@gmx.com>
11276
11277 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11278 it to the ptrace call.
11279 * (store_registers): Likewise.
11280
112812020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11282
11283 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11284 it to the ptrace call.
11285 * (store_registers): Likewise.
11286
2d07da27
LM
112872020-03-19 Luis Machado <luis.machado@linaro.org>
11288
11289 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11290 valid, fetch vg value from ptrace.
11291
f09db380
KR
112922020-03-19 Kamil Rytarowski <n54@gmx.com>
11293 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11294 * inf-ptrace.c: Likewise.
11295 * (gdb_ptrace): Add.
11296 * (inf_ptrace_target::resume): Update.
11297 * (inf_ptrace_target::xfer_partial): Likewise.
11298 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11299 * (inf_ptrace_peek_poke): Update.
11300
fcc7376e
KR
113012020-03-19 Kamil Rytarowski <n54@gmx.com>
11302
11303 * x86-bsd-nat.c (gdb_ptrace): New.
11304 * (x86bsd_dr_set): Add new argument `ptid'.
11305 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11306 x86bsd_dr_set_addr): Update.
11307
cada5fc9
AB
113082020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11309
11310 * remote.c (remote_target::process_stop_reply): Handle events for
11311 all threads differently.
11312
19a2740f
AB
113132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11314
11315 * completer.c (completion_tracker::remove_completion): Define new
11316 function.
11317 * completer.h (completion_tracker::remove_completion): Declare new
11318 function.
11319 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11320 when adding a C++ function symbol.
11321
724fd9ba
AB
113222020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11323
11324 * completer.c (completion_tracker::completion_hash_entry): Define
11325 new class.
11326 (advance_to_filename_complete_word_point): Call
11327 recompute_lowest_common_denominator.
11328 (completion_tracker::completion_tracker): Call discard_completions
11329 to setup the hash table.
11330 (completion_tracker::discard_completions): Allow for being called
11331 from the constructor, pass new equal function, and element deleter
11332 when constructing the hash table. Initialise new class member
11333 variables.
11334 (completion_tracker::maybe_add_completion): Remove use of
11335 m_entries_vec, and store more information into m_entries_hash.
11336 (completion_tracker::recompute_lcd_visitor): New function, most
11337 content taken from...
11338 (completion_tracker::recompute_lowest_common_denominator):
11339 ...here, this now just visits each item in the hash calling the
11340 above visitor.
11341 (completion_tracker::build_completion_result): Remove use of
11342 m_entries_vec, call recompute_lowest_common_denominator.
11343 * completer.h (completion_tracker::have_completions): Remove use
11344 of m_entries_vec.
11345 (completion_tracker::completion_hash_entry): Declare new class.
11346 (completion_tracker::recompute_lowest_common_denominator): Change
11347 function signature.
11348 (completion_tracker::recompute_lcd_visitor): Declare new function.
11349 (completion_tracker::m_entries_vec): Delete.
11350 (completion_tracker::m_entries_hash): Initialize to NULL.
11351 (completion_tracker::m_lowest_common_denominator_valid): New
11352 member variable.
11353 (completion_tracker::m_lowest_common_denominator_max_length): New
11354 member variable.
11355
5a82b8a1
KR
113562020-03-17 Kamil Rytarowski <n54@gmx.com>
11357
11358 * regformats/regdef.h: Put reg in gdb namespace.
11359
fb516a69
KR
113602020-03-17 Kamil Rytarowski <n54@gmx.com>
11361
11362 * i386-bsd-nat.c (gdb_ptrace): New.
11363 * (i386bsd_fetch_inferior_registers,
11364 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11365 * (i386bsd_fetch_inferior_registers,
11366 i386bsd_store_inferior_registers) Use gdb_ptrace.
11367
1c0aa1fb
KR
113682020-03-17 Kamil Rytarowski <n54@gmx.com>
11369
11370 * amd64-bsd-nat.c (gdb_ptrace): New.
11371 * (amd64bsd_fetch_inferior_registers,
11372 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11373 * (amd64bsd_fetch_inferior_registers,
11374 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11375
5ccd2fb7
KR
113762020-03-17 Kamil Rytarowski <n54@gmx.com>
11377
11378 * user-regs.c (user_reg::read): Rename to...
11379 (user_reg::xread): ...this.
11380 * (append_user_reg): Rename argument `read' to `xread'.
11381 * (user_reg_add_builtin): Likewise.
11382 * (user_reg_add): Likewise.
11383 * (value_of_user_reg): Likewise.
11384
2108a63a
KR
113852020-03-17 Kamil Rytarowski <n54@gmx.com>
11386
11387 * sparc-nat.c (gdb_ptrace): New.
11388 * sparc-nat.c (sparc_fetch_inferior_registers)
11389 (sparc_store_inferior_registers) Remove obsolete comment.
11390 * sparc-nat.c (sparc_fetch_inferior_registers)
11391 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11392 * sparc-nat.c (sparc_fetch_inferior_registers)
11393 (sparc_store_inferior_registers) Use gdb_ptrace.
11394
a225c9a8
KR
113952020-03-17 Kamil Rytarowski <n54@gmx.com>
11396
11397 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11398 it to the ptrace call.
11399 * sh-nbsd-nat.c (store_registers): Likewise.
11400
98097623
KR
114012020-03-17 Kamil Rytarowski <n54@gmx.com>
11402
11403 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11404 nbsd_nat_target instead of inf_ptrace_target.
11405 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11406 nbsd_nat_target.
11407
9e38d619
KR
114082020-03-17 Kamil Rytarowski <n54@gmx.com>
11409
11410 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11411
a2ecbe9f
KR
114122020-03-17 Kamil Rytarowski <n54@gmx.com>
11413
11414 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11415 <sys/sysctl.h>.
11416 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11417
58990295
TV
114182020-03-17 Tom de Vries <tdevries@suse.de>
11419
11420 PR gdb/23710
11421 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11422 fields.
11423 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11424 fields.
11425 (process_imported_unit_die): Skip import of c++ CUs.
11426
771dd3a8
TT
114272020-03-16 Tom Tromey <tom@tromey.com>
11428
11429 * p-valprint.c (pascal_object_print_value): Initialize
11430 base_value.
11431
817a7585
AK
114322020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11433 Shahab Vahedi <shahab@synopsys.com>
11434
11435 * Makefile.in: Add arch/arc.o
11436 * configure.tgt: Likewise.
11437 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11438 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11439 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11440 * arc-tdep.h (arc_read_description): Add proto type.
11441 * arch/arc.c: New file.
11442 * arch/arc.h: Likewise.
11443 * features/Makefile: Replace old target descriptions with new.
11444 * features/arc-arcompact.c: Remove.
11445 * features/arc-arcompact.xml: Likewise.
11446 * features/arc-v2.c: Likewise
11447 * features/arc-v2.xml: Likewise
11448 * features/arc/aux-arcompact.xml: New file.
11449 * features/arc/aux-v2.xml: Likewise.
11450 * features/arc/core-arcompact.xml: Likewise.
11451 * features/arc/core-v2.xml: Likewise.
11452 * features/arc/aux-arcompact.c: Generate.
11453 * features/arc/aux-v2.c: Likewise.
11454 * features/arc/core-arcompact.c: Likewise.
11455 * features/arc/core-v2.c: Likewise.
11456 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11457
67430cd0
TT
114582020-03-16 Tom Tromey <tromey@adacore.com>
11459
11460 PR gdb/25663:
11461 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11462 putting value into bcache.
11463
30efb6c7
SM
114642020-03-16 Simon Marchi <simon.marchi@efficios.com>
11465
11466 PR gdb/21500
11467 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11468 to...
11469 (amd64_windows_init_abi_common): ... this. Don't set size of
11470 long type.
11471 (amd64_windows_init_abi): New function.
11472 (amd64_cygwin_init_abi): New function.
11473 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11474 the Cygwin OS ABI.
11475 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11476 comment.
11477
8db52437
SM
114782020-03-16 Simon Marchi <simon.marchi@efficios.com>
11479
11480 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11481 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11482 (pe_import_directory_entry): New struct type.
11483 (is_linked_with_cygwin_dll): New function.
11484 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11485 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11486 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11487
5982a56a
SM
114882020-03-16 Simon Marchi <simon.marchi@efficios.com>
11489
11490 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11491 i386_cygwin_core_osabi_sniffer.
11492
7a1998df
SM
114932020-03-16 Simon Marchi <simon.marchi@efficios.com>
11494
11495 * i386-cygwin-tdep.c: Rename to...
11496 * i386-windows-tdep.c: ... this.
11497 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11498 i386-windows-tdep.c.
11499 * configure.tgt: Likewise.
11500
053205cc
SM
115012020-03-16 Simon Marchi <simon.marchi@efficios.com>
11502
11503 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11504 * osabi.c (gdb_osabi_names): Add "Windows".
11505 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11506 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11507 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11508 i386_cygwin_osabi_sniffer.
11509 (_initialize_i386_cygwin_tdep): Register OS ABI
11510 GDB_OSABI_WINDOWS for i386.
11511 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11512 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11513 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11514 for x86-64.
11515 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11516 when the target matches '*-*-mingw*'.
11517
fe4b2ee6
SM
115182020-03-16 Simon Marchi <simon.marchi@efficios.com>
11519
11520 * defs.h (enum gdb_osabi): Move to...
11521 * osabi.h (enum gdb_osabi): ... here.
11522 * gdbarch.sh: Include osabi.h in gdbarch.h.
11523 * gdbarch.h: Re-generate.
11524
cb9b645d
SM
115252020-03-16 Simon Marchi <simon.marchi@efficios.com>
11526
11527 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11528 function.
11529 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11530
3293bbaf
TT
115312020-03-14 Tom Tromey <tom@tromey.com>
11532
11533 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11534 for C++.
11535 (c_type_print_modifier): Likewise. Add "language" parameter.
11536 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11537 (c_type_print_base_1): Update.
11538 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11539 constants.
11540 * type-stack.c (type_stack::insert): Handle tp_atomic and
11541 tp_restrict.
11542 (type_stack::follow_type_instance_flags): Likewise.
11543 (type_stack::follow_types): Likewise. Merge type-following code.
11544 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11545 (space_identifier, cv_with_space_id)
11546 (const_or_volatile_or_space_identifier_noopt)
11547 (const_or_volatile_or_space_identifier): Remove.
11548 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11549 rules.
11550 (ptr_operator, typebase): Update.
11551 (enum token_flag) <FLAG_C>: New constant.
11552 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11553 "_Atomic".
11554 (lex_one_token): Handle FLAG_C.
11555
154151a6
KR
115562020-03-14 Kamil Rytarowski <n54@gmx.com>
11557
11558 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11559 it to the ptrace call.
11560 * m68k-bsd-nat.c (store_registers): Likewise.
11561
bc107784
KR
115622020-03-14 Kamil Rytarowski <n54@gmx.com>
11563
11564 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11565 gdb_byte *.
11566 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11567 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11568 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11569
01a80117
KR
115702020-03-14 Kamil Rytarowski <n54@gmx.com>
11571
11572 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11573 nbsd_nat_target instead of inf_ptrace_target.
11574 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11575 nbsd_nat_target.
11576
f90280ca
KR
115772020-03-14 Kamil Rytarowski <n54@gmx.com>
11578
11579 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11580 register_t.
11581
6def66f1
KR
115822020-03-14 Kamil Rytarowski <n54@gmx.com>
11583
11584 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11585 it to the ptrace call.
11586 * alpha-bsd-nat.c (store_registers): Likewise.
11587
66eaca97
KR
115882020-03-14 Kamil Rytarowski <n54@gmx.com>
11589
11590 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11591 includes.
11592 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11593 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11594 fill_fpregset): Likewise.
11595
4fed520b
KR
115962020-03-14 Kamil Rytarowski <n54@gmx.com>
11597
11598 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11599 nbsd_nat_target instead of inf_ptrace_target.
11600 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11601 nbsd_nat_target.
11602
2190cf06
KR
116032020-03-14 Kamil Rytarowski <n54@gmx.com>
11604
11605 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11606 register_t.
11607
75c56d3d
KR
116082020-03-14 Kamil Rytarowski <n54@gmx.com>
11609
11610 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11611 it to the ptrace call.
11612 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11613 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11614 * arm-nbsd-nat.c (store_register): Likewise.
11615 * arm-nbsd-nat.c (store_regs): Likewise.
11616 * arm-nbsd-nat.c (store_fp_register): Likewise.
11617 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11618
6018d381
KR
116192020-03-14 Kamil Rytarowski <n54@gmx.com>
11620
11621 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11622 nbsd_nat_target instead of inf_ptrace_target.
11623 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11624 nbsd_nat_target.
11625
013f99f0
KR
116262020-03-14 Kamil Rytarowski <n54@gmx.com>
11627
11628 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11629 it to the ptrace call.
11630 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11631
12753073
KR
116322020-03-14 Kamil Rytarowski <n54@gmx.com>
11633
6227b330
KR
11634 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11635 it to the ptrace call.
11636 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11637
116382020-03-14 Kamil Rytarowski <n54@gmx.com>
11639
11640 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11641 gdb_byte *.
12753073
KR
11642 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11643
d5be5fa4
KR
116442020-03-14 Kamil Rytarowski <n54@gmx.com>
11645
11646 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11647 instead of inf_ptrace_target.
11648 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11649 nbsd_nat_target.
11650
8110f842
KR
116512020-03-14 Kamil Rytarowski <n54@gmx.com>
11652
11653 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11654 register_t.
11655
52feded7
KR
116562020-03-14 Kamil Rytarowski <n54@gmx.com>
11657
11658 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11659 register_t.
11660
25567eee
KR
116612020-03-14 Kamil Rytarowski <n54@gmx.com>
11662
11663 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11664 register_t.
11665
426a9c18
TT
116662020-03-13 Tom Tromey <tom@tromey.com>
11667
11668 * value.h (val_print): Don't declare.
11669 * valprint.h (val_print_array_elements)
11670 (val_print_scalar_formatted, generic_val_print): Don't declare.
11671 * valprint.c (generic_val_print_array): Take a struct value.
11672 (generic_val_print_ptr, generic_val_print_memberptr)
11673 (generic_val_print_bool, generic_val_print_int)
11674 (generic_val_print_char, generic_val_print_complex)
11675 (generic_val_print): Remove.
11676 (generic_value_print): Update.
11677 (do_val_print): Remove unused parameters. Don't call
11678 la_val_print.
11679 (val_print): Remove.
11680 (common_val_print): Update. Don't call value_check_printable.
11681 (val_print_scalar_formatted, val_print_array_elements): Remove.
11682 * rust-lang.c (rust_val_print): Remove.
11683 (rust_language_defn): Update.
11684 * p-valprint.c (pascal_val_print): Remove.
11685 (pascal_value_print_inner): Update.
11686 (pascal_object_print_val_fields, pascal_object_print_val):
11687 Remove.
11688 (pascal_object_print_static_field): Update.
11689 * p-lang.h (pascal_val_print): Don't declare.
11690 * p-lang.c (pascal_language_defn): Update.
11691 * opencl-lang.c (opencl_language_defn): Update.
11692 * objc-lang.c (objc_language_defn): Update.
11693 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11694 * m2-lang.h (m2_val_print): Don't declare.
11695 * m2-lang.c (m2_language_defn): Update.
11696 * language.h (struct language_defn) <la_val_print>: Remove.
11697 * language.c (unk_lang_value_print_inner): Rename. Change
11698 argument types.
11699 (unknown_language_defn, auto_language_defn): Update.
11700 * go-valprint.c (go_val_print): Remove.
11701 * go-lang.h (go_val_print): Don't declare.
11702 * go-lang.c (go_language_defn): Update.
11703 * f-valprint.c (f_val_print): Remove.
11704 * f-lang.h (f_value_print): Don't declare.
11705 * f-lang.c (f_language_defn): Update.
11706 * d-valprint.c (d_val_print): Remove.
11707 * d-lang.h (d_value_print): Don't declare.
11708 * d-lang.c (d_language_defn): Update.
11709 * cp-valprint.c (cp_print_value_fields)
11710 (cp_print_value_fields_rtti, cp_print_value): Remove.
11711 (cp_print_static_field): Update.
11712 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11713 (c_val_print_struct, c_val_print_union, c_val_print_int)
11714 (c_val_print_memberptr, c_val_print): Remove.
11715 * c-lang.h (c_val_print_array, cp_print_value_fields)
11716 (cp_print_value_fields_rtti): Don't declare.
11717 * c-lang.c (c_language_defn, cplus_language_defn)
11718 (asm_language_defn, minimal_language_defn): Update.
11719 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11720 (ada_val_print_enum): Take a struct value.
11721 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11722 (ada_val_print): Remove.
11723 (ada_value_print_1): Update.
11724 (printable_val_type): Remove.
11725 * ada-lang.h (ada_val_print): Don't declare.
11726 * ada-lang.c (ada_language_defn): Update.
11727
42331a1e
TT
117282020-03-13 Tom Tromey <tom@tromey.com>
11729
11730 * valprint.c (do_val_print): Update.
11731 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11732 a struct value.
11733 (value_to_value_object_no_release): Declare.
11734 * python/py-value.c (value_to_value_object_no_release): New
11735 function.
11736 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11737 struct value.
11738 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11739 function.
11740 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11741 a struct value.
11742 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11743 Declare.
11744 (gdbscm_apply_val_pretty_printer): Take a struct value.
11745 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11746 value.
11747 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11748 value.
11749 * extension-priv.h (struct extension_language_ops)
11750 <apply_val_pretty_printer>: Take a struct value.
11751 * cp-valprint.c (cp_print_value): Create a struct value.
11752 (cp_print_value): Update.
11753
3a916a97
TT
117542020-03-13 Tom Tromey <tom@tromey.com>
11755
11756 * ada-valprint.c (print_field_values): Call common_val_print.
11757
b59eac37
TT
117582020-03-13 Tom Tromey <tom@tromey.com>
11759
11760 * ada-valprint.c (val_print_packed_array_elements): Remove
11761 bitoffset and val parameters. Call common_val_print.
11762 (ada_val_print_string): Remove offset, address, and original_value
11763 parameters.
11764 (ada_val_print_array): Update.
11765 (ada_value_print_array): New function.
11766 (ada_value_print_1): Call it.
11767
03371129
TT
117682020-03-13 Tom Tromey <tom@tromey.com>
11769
11770 * ada-valprint.c (ada_value_print): Use common_val_print.
11771
2e088f8b
TT
117722020-03-13 Tom Tromey <tom@tromey.com>
11773
11774 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11775
39ef85a8
TT
117762020-03-13 Tom Tromey <tom@tromey.com>
11777
11778 * ada-valprint.c (ada_value_print_num): New function.
11779 (ada_value_print_1): Use it.
11780
b9fa6e07
TT
117812020-03-13 Tom Tromey <tom@tromey.com>
11782
11783 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11784
416595d6
TT
117852020-03-13 Tom Tromey <tom@tromey.com>
11786
11787 * ada-valprint.c (ada_value_print_ptr): New function.
11788 (ada_value_print_1): Use it.
11789
5b5e15ec
TT
117902020-03-13 Tom Tromey <tom@tromey.com>
11791
11792 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11793 call common_val_print.
11794 (ada_val_print_1): Update.
11795 (ada_value_print_1): New function.
11796 (ada_value_print_inner): Rewrite.
11797
fbf54e75
TT
117982020-03-13 Tom Tromey <tom@tromey.com>
11799
11800 * cp-valprint.c (cp_print_value_fields): Update.
11801 (cp_print_value): New function.
11802
64b653ca
TT
118032020-03-13 Tom Tromey <tom@tromey.com>
11804
11805 * m2-valprint.c (m2_value_print_inner): Use
11806 cp_print_value_fields.
11807 * cp-valprint.c (cp_print_value_fields): New function.
11808 * c-valprint.c (c_value_print_struct): New function.
11809 (c_value_print_inner): Use c_value_print_struct.
11810 * c-lang.h (cp_print_value_fields): Declare.
11811
6999f067
TT
118122020-03-13 Tom Tromey <tom@tromey.com>
11813
11814 * c-valprint.c (c_value_print_array): New function.
11815 (c_value_print_inner): Use it.
11816
ce80b8bd
TT
118172020-03-13 Tom Tromey <tom@tromey.com>
11818
11819 * c-valprint.c (c_value_print_memberptr): New function.
11820 (c_value_print_inner): Use it.
11821
2faac269
TT
118222020-03-13 Tom Tromey <tom@tromey.com>
11823
11824 * c-valprint.c (c_value_print_int): New function.
11825 (c_value_print_inner): Use it.
11826
da3e2c29
TT
118272020-03-13 Tom Tromey <tom@tromey.com>
11828
11829 * c-valprint.c (c_value_print_ptr): New function.
11830 (c_value_print_inner): Use it.
11831
50836231
TT
118322020-03-13 Tom Tromey <tom@tromey.com>
11833
11834 * c-valprint.c (c_value_print_inner): Rewrite.
11835
4f412b6e
TT
118362020-03-13 Tom Tromey <tom@tromey.com>
11837
11838 * valprint.c (generic_value_print_complex): New function.
11839 (generic_value_print): Use it.
11840
f5354008
TT
118412020-03-13 Tom Tromey <tom@tromey.com>
11842
11843 * valprint.c (generic_val_print_float): Don't call
11844 val_print_scalar_formatted.
11845 (generic_val_print, generic_value_print): Update.
11846
3eec3b05
TT
118472020-03-13 Tom Tromey <tom@tromey.com>
11848
11849 * valprint.c (generic_value_print_char): New function
11850 (generic_value_print): Use it.
11851
fdddfccb
TT
118522020-03-13 Tom Tromey <tom@tromey.com>
11853
11854 * valprint.c (generic_value_print_int): New function.
11855 (generic_value_print): Use it.
11856
6dde7521
TT
118572020-03-13 Tom Tromey <tom@tromey.com>
11858
11859 * valprint.c (generic_value_print_bool): New function.
11860 (generic_value_print): Use it.
11861
4112d2e6
TT
118622020-03-13 Tom Tromey <tom@tromey.com>
11863
11864 * valprint.c (generic_val_print_func): Simplify.
11865 (generic_val_print, generic_value_print): Update.
11866
65786af6
TT
118672020-03-13 Tom Tromey <tom@tromey.com>
11868
11869 * valprint.c (generic_val_print_flags): Remove.
11870 (generic_val_print, generic_value_print): Update.
11871 (val_print_type_code_flags): Add original_value parameter.
11872
40f3ce18
TT
118732020-03-13 Tom Tromey <tom@tromey.com>
11874
11875 * valprint.c (generic_val_print): Update.
11876 (generic_value_print): Update.
11877 * valprint.c (generic_val_print_enum): Don't call
11878 val_print_scalar_formatted.
11879
2a5b130b
TT
118802020-03-13 Tom Tromey <tom@tromey.com>
11881
11882 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11883 * valprint.c (generic_value_print_ptr): New function.
11884
abc66ce9
TT
118852020-03-13 Tom Tromey <tom@tromey.com>
11886
11887 * valprint.c (generic_value_print): Rewrite.
11888
07a32858
TT
118892020-03-13 Tom Tromey <tom@tromey.com>
11890
11891 * p-valprint.c (pascal_object_print_value_fields)
11892 (pascal_object_print_value): New functions.
11893
64d64d3a
TT
118942020-03-13 Tom Tromey <tom@tromey.com>
11895
11896 * p-valprint.c (pascal_value_print_inner): Rewrite.
11897
6a95a1f5
TT
118982020-03-13 Tom Tromey <tom@tromey.com>
11899
11900 * f-valprint.c (f_value_print_innner): Rewrite.
11901
59fcdac6
TT
119022020-03-13 Tom Tromey <tom@tromey.com>
11903
11904 * m2-valprint.c (m2_print_unbounded_array): New overload.
11905 (m2_print_unbounded_array): Update.
11906 (m2_print_array_contents): Take a struct value.
11907 (m2_value_print_inner): Rewrite.
11908
d133c3e1
TT
119092020-03-13 Tom Tromey <tom@tromey.com>
11910
11911 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11912 (d_value_print_inner): New function.
11913 * d-lang.h (d_value_print_inner): Declare.
11914 * d-lang.c (d_language_defn): Use d_value_print_inner.
11915
23b0f06b
TT
119162020-03-13 Tom Tromey <tom@tromey.com>
11917
11918 * go-valprint.c (go_value_print_inner): New function.
11919 * go-lang.h (go_value_print_inner): Declare.
11920 * go-lang.c (go_language_defn): Use go_value_print_inner.
11921
5f56f7cb
TT
119222020-03-13 Tom Tromey <tom@tromey.com>
11923
11924 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11925 API.
11926 (rust_val_print): Rewrite.
11927 (rust_value_print_inner): New function, from rust_val_print.
11928 (rust_language_defn): Use rust_value_print_inner.
11929
26792ee0
TT
119302020-03-13 Tom Tromey <tom@tromey.com>
11931
11932 * ada-valprint.c (ada_value_print_inner): New function.
11933 * ada-lang.h (ada_value_print_inner): Declare.
11934 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11935
24051bbe
TT
119362020-03-13 Tom Tromey <tom@tromey.com>
11937
11938 * f-valprint.c (f_value_print_innner): New function.
11939 * f-lang.h (f_value_print_innner): Declare.
11940 * f-lang.c (f_language_defn): Use f_value_print_innner.
11941
c0941be6
TT
119422020-03-13 Tom Tromey <tom@tromey.com>
11943
11944 * p-valprint.c (pascal_value_print_inner): New function.
11945 * p-lang.h (pascal_value_print_inner): Declare.
11946 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11947
62c4663d
TT
119482020-03-13 Tom Tromey <tom@tromey.com>
11949
11950 * m2-valprint.c (m2_value_print_inner): New function.
11951 * m2-lang.h (m2_value_print_inner): Declare.
11952 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11953
62182190
TT
119542020-03-13 Tom Tromey <tom@tromey.com>
11955
11956 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11957 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11958 * c-valprint.c (c_value_print_inner): New function.
11959 * c-lang.h (c_value_print_inner): Declare.
11960 * c-lang.c (c_language_defn, cplus_language_defn)
11961 (asm_language_defn, minimal_language_defn): Use
11962 c_value_print_inner.
11963
1e592a8a
TT
119642020-03-13 Tom Tromey <tom@tromey.com>
11965
11966 * p-valprint.c (pascal_object_print_value_fields): Now static.
11967 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11968
7fe471e9
TT
119692020-03-13 Tom Tromey <tom@tromey.com>
11970
11971 * c-valprint.c (c_val_print_array): Simplify.
11972
d121c6ce
TT
119732020-03-13 Tom Tromey <tom@tromey.com>
11974
11975 * valprint.c (value_print_array_elements): New function.
11976 * valprint.h (value_print_array_elements): Declare.
11977
4dba70ee
TT
119782020-03-13 Tom Tromey <tom@tromey.com>
11979
11980 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11981 * mips-tdep.c (mips_print_register): Use
11982 value_print_scalar_formatted.
11983
4f9ae810
TT
119842020-03-13 Tom Tromey <tom@tromey.com>
11985
11986 * valprint.h (value_print_scalar_formatted): Declare.
11987 * valprint.c (value_print_scalar_formatted): New function.
11988
156bfec9
TT
119892020-03-13 Tom Tromey <tom@tromey.com>
11990
11991 * valprint.h (generic_value_print): Declare.
11992 * valprint.c (generic_value_print): New function.
11993
2b4e573d
TT
119942020-03-13 Tom Tromey <tom@tromey.com>
11995
11996 * valprint.c (do_val_print): Call la_value_print_inner, if
11997 available.
11998 * rust-lang.c (rust_language_defn): Update.
11999 * p-lang.c (pascal_language_defn): Update.
12000 * opencl-lang.c (opencl_language_defn): Update.
12001 * objc-lang.c (objc_language_defn): Update.
12002 * m2-lang.c (m2_language_defn): Update.
12003 * language.h (struct language_defn) <la_value_print_inner>: New
12004 member.
12005 * language.c (unknown_language_defn, auto_language_defn): Update.
12006 * go-lang.c (go_language_defn): Update.
12007 * f-lang.c (f_language_defn): Update.
12008 * d-lang.c (d_language_defn): Update.
12009 * c-lang.c (c_language_defn, cplus_language_defn)
12010 (asm_language_defn, minimal_language_defn): Update.
12011 * ada-lang.c (ada_language_defn): Update.
12012
a1f6a07c
TT
120132020-03-13 Tom Tromey <tom@tromey.com>
12014
12015 * c-valprint.c (c_value_print): Use common_val_print.
12016
410cf315
TT
120172020-03-13 Tom Tromey <tom@tromey.com>
12018
12019 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12020
72a45c93
TT
120212020-03-13 Tom Tromey <tom@tromey.com>
12022
12023 * f-valprint.c (f77_print_array_1, f_val_print): Use
12024 common_val_print.
12025
040f66bd
TT
120262020-03-13 Tom Tromey <tom@tromey.com>
12027
12028 * riscv-tdep.c (riscv_print_one_register_info): Use
12029 common_val_print.
12030
a6e05a6c
TT
120312020-03-13 Tom Tromey <tom@tromey.com>
12032
12033 * mi/mi-main.c (output_register): Use common_val_print.
12034
3444c526
TT
120352020-03-13 Tom Tromey <tom@tromey.com>
12036
12037 * infcmd.c (default_print_one_register_info): Use
12038 common_val_print.
12039
c2a44efe
TT
120402020-03-13 Tom Tromey <tom@tromey.com>
12041
12042 * valprint.h (common_val_print_checked): Declare.
12043 * valprint.c (common_val_print_checked): New function.
12044 * stack.c (print_frame_arg): Use common_val_print_checked.
12045
b0c26e99
TT
120462020-03-13 Tom Tromey <tom@tromey.com>
12047
12048 * valprint.c (do_val_print): New function, from val_print.
12049 (val_print): Use do_val_print.
12050 (common_val_print): Use do_val_print.
12051
ce3acbe9
TT
120522020-03-13 Tom Tromey <tom@tromey.com>
12053
12054 * valprint.c (value_print): Use scoped_value_mark.
12055
96c7f873
TV
120562020-03-13 Tom de Vries <tdevries@suse.de>
12057
12058 PR symtab/25646
12059 * psymtab.c (partial_symtab::partial_symtab): Don't set
12060 globals_offset and statics_offset. Push element onto
12061 current_global_psymbols and current_static_psymbols stacks.
12062 (concat): New function.
12063 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12064 element from current_global_psymbols and current_static_psymbols
12065 stacks. Concat popped elements to global_psymbols and
12066 static_symbols.
12067 (add_psymbol_to_list): Use current_global_psymbols and
12068 current_static_psymbols stacks.
12069 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12070 current_static_psymbols fields.
12071
6ba0a321
CB
120722020-03-12 Christian Biesinger <cbiesinger@google.com>
12073
12074 * corelow.c (sniff_core_bfd): Remove.
12075 (class core_target) <m_core_vec>: Remove.
12076 (core_target::core_target): Update.
12077 (core_file_fns): Remove.
12078 (deprecated_add_core_fns): Remove.
12079 (default_core_sniffer): Remove.
12080 (sniff_core_bfd): Remove.
12081 (default_check_format): Remove.
12082 (gdb_check_format): Remove.
12083 (core_target_open): Update.
12084 (core_target::get_core_register_section): Update.
12085 (get_core_registers_cb): Update.
12086 (core_target::fetch_registers): Update.
12087 * gdbcore.h (struct core_fns): Remove.
12088 (deprecated_add_core_fns): Remove.
12089 (default_core_sniffer): Remove.
12090 (default_check_format): Remove.
12091
227031b2
TT
120922020-03-12 Tom Tromey <tom@tromey.com>
12093
12094 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12095 CORE_ADDR.
12096 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12097
53807e9f
TT
120982020-03-12 Tom Tromey <tom@tromey.com>
12099
12100 * remote.c (remote_target::download_tracepoint)
12101 (remote_target::enable_tracepoint)
12102 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12103 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12104 sprintf_vma.
12105
64f25102
TT
121062020-03-12 Tom Tromey <tom@tromey.com>
12107
12108 * symfile-mem.c: Update CORE_ADDR size assert.
12109
272cd5a3
SM
121102020-03-12 Simon Marchi <simon.marchi@efficios.com>
12111
12112 * selftest.m4: Move to gdbsupport/.
12113 * acinclude.m4: Update path to selftest.m4.
12114
74cd3f9d
SM
121152020-03-12 Simon Marchi <simon.marchi@efficios.com>
12116
12117 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12118 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12119 gdbarch-selfselftests.c and selftest-arch.c.
12120 (SUBDIR_UNITTESTS_OBS): Rename to...
12121 (SELFTESTS_OBS): ... this.
12122 (COMMON_SFILES): Remove disasm-selftests.c and
12123 gdbarch-selftests.c.
12124 * configure.ac: Don't add selftest-arch.{c,o} to
12125 CONFIG_{SRCS,OBS}.
12126 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12127 preprocessor conditions.
12128
db6878ac
SM
121292020-03-12 Simon Marchi <simon.marchi@efficios.com>
12130
12131 * configure.ac: Don't source bfd/development.sh.
12132 * selftest.m4: Modify comment.
12133 * configure: Re-generate.
12134
4d696a5c
SM
121352020-03-12 Simon Marchi <simon.marchi@efficios.com>
12136
12137 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12138 not "true" or "false".
12139 * configure: Re-generate.
12140
8dd8e1c7
CB
121412020-03-12 Christian Biesinger <cbiesinger@google.com>
12142
12143 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12144 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12145 renamed to arm_nbsd_supply_gregset.
12146 (fetch_register): Update to call arm_nbsd_supply_gregset.
12147 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12148 (arm_netbsd_nat_target::fetch_registers): Update.
12149 (fetch_elfcore_registers): Removed.
12150 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12151 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12152 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12153 not require NetBSD system headers.
12154 (arm_nbsd_regset): New struct.
12155 (arm_nbsd_iterate_over_regset_sections): New function.
12156 (arm_netbsd_init_abi_common): Updated to call
12157 set_gdbarch_iterate_over_regset_sections.
12158 * arm-nbsd-tdep.h: New file.
12159
dd69bf7a
KB
121602020-03-11 Kevin Buettner <kevinb@redhat.com>
12161
12162 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12163 recursion.
12164
a0761e34
SM
121652020-03-11 Simon Marchi <simon.marchi@efficios.com>
12166
12167 * configure: Re-generate.
12168
e7a82140
TT
121692020-03-11 Tom Tromey <tromey@adacore.com>
12170
12171 * ada-typeprint.c (print_choices): Fix comment.
12172
dcc050c8
AB
121732020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12174
12175 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12176 previous item in the list, when the list has no items.
12177
1c33af77
TV
121782020-03-11 Tom de Vries <tdevries@suse.de>
12179
12180 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12181 PROP_LOCLIST handling code.
12182
8c95582d
AB
121832020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12184
12185 * buildsym-legacy.c (record_line): Pass extra parameter to
12186 record_line.
12187 * buildsym.c (buildsym_compunit::record_line): Take an extra
12188 parameter, reduce duplication in the line table, and record the
12189 is_stmt flag in the line table.
12190 * buildsym.h (buildsym_compunit::record_line): Add extra
12191 parameter.
12192 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12193 non-statement lines.
12194 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12195 this to the symtab builder.
12196 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12197 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12198 through to dwarf_record_line_1.
12199 * infrun.c (process_event_stop_test): When stepping, don't stop at
12200 a non-statement instruction, and only refresh the step info when
12201 we land in the middle of a line's range. Also add an extra
12202 comment.
12203 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12204 field.
12205 * record-btrace.c (btrace_find_line_range): Only record lines
12206 marked as is-statement.
12207 * stack.c (frame_show_address): Show the frame address if we are
12208 in a non-statement sal.
12209 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12210 (maintenance_print_one_line_table): Print a header for the is_stmt
12211 column, and include is_stmt information in the output.
12212 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12213 preference to non-statements.
12214 (find_pcs_for_symtab_line): Prefer is-statement entries.
12215 (find_line_common): Likewise.
12216 * symtab.h (struct linetable_entry): Add is_stmt field.
12217 (struct symtab_and_line): Likewise.
12218 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12219 arranging the line table.
12220
e4003a34
TV
122212020-03-07 Tom de Vries <tdevries@suse.de>
12222
12223 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12224 DIE.
12225
e8932576
TT
122262020-03-07 Tom Tromey <tom@tromey.com>
12227
12228 * valops.c (value_literal_complex): Remove obsolete comment.
12229 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12230 comment.
12231
29734269
SM
122322020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12233
12234 * infrun.h: Forward-declare thread_info.
12235 (set_step_info): Add thread_info parameter, add doc.
12236 * infrun.c (set_step_info): Add thread_info parameter, move doc
12237 to header.
12238 * infrun.c (process_event_stop_test): Pass thread to
12239 set_step_info call.
12240 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12241 set_step_info.
12242 (prepare_one_step): Add thread_info parameter, pass it to
12243 set_step_frame and prepare_one_step (recursive) call.
12244 (step_1): Pass thread to prepare_one_step call.
12245 (step_command_fsm::should_stop): Pass thread to
12246 prepare_one_step.
12247 (until_next_fsm): Pass thread to set_step_frame call.
12248 (finish_command): Pass thread to set_step_info call.
12249
b7d64b29
HD
122502020-03-06 Hannes Domani <ssbssa@yahoo.de>
12251
12252 * windows-tdep.c (windows_solib_create_inferior_hook):
12253 Check if inferior is running.
12254
09f2921c
TV
122552020-03-06 Tom de Vries <tdevries@suse.de>
12256
12257 * NEWS: Fix "the the".
12258 * ctfread.c: Same.
12259
fd760e79
TV
122602020-03-06 Tom de Vries <tdevries@suse.de>
12261
12262 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12263
20ea4a60
AB
122642020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12265
12266 * .dir-locals.el: Add a comment referencing the other copies of
12267 this file.
12268
0afbabf0
JB
122692020-03-05 John Baldwin <jhb@FreeBSD.org>
12270
12271 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12272 psargs.
12273
842806cb
TBA
122742020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12275
12276 * .gitattributes: New file.
12277
be1e3d3e
TT
122782020-03-04 Tom Tromey <tom@tromey.com>
12279
12280 * symmisc.c (print_symbol_bcache_statistics)
12281 (print_objfile_statistics): Update.
12282 * symfile.c (allocate_symtab): Use intern.
12283 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12284 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12285 macro_cache>: Remove.
12286 <string_cache>: New member.
12287 (struct objfile) <intern>: New methods.
12288 * elfread.c (elf_symtab_read): Use intern.
12289 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12290 (dwarf2_compute_name, dwarf2_physname)
12291 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12292 names.
12293 (guess_partial_die_structure_name): Update.
12294 (partial_die_info::fixup): Intern name.
12295 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12296 name.
12297 (dwarf2_name): Intern name. Update.
12298 * buildsym.c (buildsym_compunit::get_macro_table): Use
12299 string_cache.
12300
4e7625fd
TT
123012020-03-04 Tom Tromey <tom@tromey.com>
12302
12303 * jit.c (bfd_open_from_target_memory): Make "target" const.
12304 * corefile.c (gnutarget): Now const.
12305 * gdbcore.h (gnutarget): Now const.
12306
46f9f931
HD
123072020-03-04 Hannes Domani <ssbssa@yahoo.de>
12308
12309 * NEWS: Mention support for WOW64 processes.
12310 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12311 (amd64_windows_segment_register_p): Remove static.
12312 (_initialize_amd64_windows_nat): Update.
12313 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12314 * i386-windows-nat.c (context_offset): Update.
12315 (i386_mappings): Rename and remove static.
12316 (i386_windows_segment_register_p): Remove static.
12317 (_initialize_i386_windows_nat): Update.
12318 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12319 (STATUS_WX86_SINGLE_STEP): New macro.
12320 (EnumProcessModulesEx): New macro.
12321 (Wow64SuspendThread): New macro.
12322 (Wow64GetThreadContext): New macro.
12323 (Wow64SetThreadContext): New macro.
12324 (Wow64GetThreadSelectorEntry): New macro.
12325 (windows_set_context_register_offsets): Add static.
12326 (windows_set_segment_register_p): Likewise.
12327 (windows_add_thread): Adapt for WOW64 processes.
12328 (windows_fetch_one_register): Likewise.
12329 (windows_nat_target::fetch_registers): Likewise.
12330 (windows_store_one_register): Likewise.
12331 (display_selector): Likewise.
12332 (display_selectors): Likewise.
12333 (handle_exception): Likewise.
12334 (windows_continue): Likewise.
12335 (windows_nat_target::resume): Likewise.
12336 (windows_add_all_dlls): Likewise.
12337 (do_initial_windows_stuff): Likewise.
12338 (windows_nat_target::attach): Likewise.
12339 (windows_get_exec_module_filename): Likewise.
12340 (windows_nat_target::create_inferior): Likewise.
12341 (windows_xfer_siginfo): Likewise.
12342 (_initialize_loadable): Initialize Wow64SuspendThread,
12343 Wow64GetThreadContext, Wow64SetThreadContext,
12344 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12345 * windows-nat.h (windows_set_context_register_offsets):
12346 Remove declaration.
12347 (windows_set_segment_register_p): Likewise.
12348 (i386_windows_segment_register_p): Add declaration.
12349 (amd64_windows_segment_register_p): Likewise.
12350
440cf44e
LM
123512020-03-04 Luis Machado <luis.machado@linaro.org>
12352
12353 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12354 in "info registers" for AArch64/ARM.
12355
12356 The change caused "info registers" to not print GPR's.
12357
12358 gdb/ChangeLog:
12359
12360 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12361
12362 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12363 when reg->group is empty and reggroup is not.
12364
1009d92f
TT
123652020-03-03 Tom Tromey <tromey@adacore.com>
12366
12367 * dwarf2/frame.c (struct dwarf2_frame_cache)
12368 <checked_tailcall_bottom, entry_cfa_sp_offset,
12369 entry_cfa_sp_offset_p>: Remove members.
12370 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12371 (dwarf2_frame_prev_register): Don't call
12372 dwarf2_tailcall_sniffer_first.
12373 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12374 * frame-unwind.c (add_unwinder): New fuction.
12375 (frame_unwind_init): Use it. Add tailcall unwinder.
12376
5e5d66b6
AB
123772020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12378 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12379
12380 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12381 value should be printed as true.
12382
584cf46d
HD
123832020-03-03 Hannes Domani <ssbssa@yahoo.de>
12384
12385 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12386 (windows_init_abi): Set and use windows_so_ops.
12387
7b973adc
SDJ
123882020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12389
12390 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12391 when verifying if dealing with a convenience variable.
12392
bb7b70ab
LM
123932020-03-03 Luis Machado <luis.machado@linaro.org>
12394
12395 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12396
9822cb57
SM
123972020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12398
12399 * infrun.c (gdbarch_supports_displaced_stepping): New.
12400 (use_displaced_stepping): Break up conditions in smaller pieces.
12401 Use gdbarch_supports_displaced_stepping.
12402 (displaced_step_prepare_throw): Use
12403 gdbarch_supports_displaced_stepping.
12404
63e163f2
AB
124052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12406
12407 * NEWS: Mention new behaviour of the history filename.
12408 * top.c (write_history_p): Add comment.
12409 (show_write_history_p): Add header comment, give a different
12410 message when history writing is on, but the history filename is
12411 empty.
12412 (history_filename): Add comment.
12413 (history_filename_empty): New function.
12414 (show_history_filename): Add header comment, give a different
12415 message when the filename is empty.
12416 (init_history): Compare history_filename against nullptr, and only
12417 read history if the filename is not empty.
12418 (set_history_filename): Add header comment, and only make
12419 non-empty filenames absolute.
12420 (init_main): Make the filename argument to 'set history filename'
12421 optional.
12422
81b86b97
CB
124232020-03-02 Christian Biesinger <cbiesinger@google.com>
12424
12425 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12426 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12427 (fetch_fp_register): Update.
12428 (fetch_fp_regs): Update.
12429 (store_fp_register): Update.
12430 (store_fp_regs): Update.
12431 (arm_netbsd_nat_target::read_description): New function.
12432 (fetch_elfcore_registers): Update.
12433
24ed6739
AB
124342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12435
12436 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12437 general_thread if the stop reply is missing a thread-id.
12438 (remote_target::process_stop_reply): Use the first non-exited
12439 thread if the target didn't pass a thread-id.
12440 * infrun.c (do_target_wait): Move call to
12441 switch_to_inferior_no_thread to ....
12442 (do_target_wait_1): ... here.
12443
a84bb2a0
JT
124442020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12445
12446 * debuginfod-support.c: Include defs.h first.
12447
658dadf0
TV
124482020-02-28 Tom de Vries <tdevries@suse.de>
12449
12450 * symfile.c (set_initial_language): Use default language for lookup.
12451
4ebe4877
SM
124522020-02-28 Simon Marchi <simon.marchi@efficios.com>
12453
12454 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12455 reader variable, pass `this` to read_cutu_die_from_dwo.
12456
e5da1139
AM
124572020-02-27 Aaron Merey <amerey@redhat.com>
12458
12459 * source.c (open_source_file): Check for nullptr when computing
12460 srcpath.
12461
317f7127
TT
124622020-02-27 Tom Tromey <tromey@adacore.com>
12463
12464 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12465 member.
12466 (dwarf2_add_field): Don't update nfields.
12467 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12468
3104d9ee
AB
124692020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12470
12471 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12472 abs.
12473
b83470bf
TT
124742020-02-26 Tom Tromey <tom@tromey.com>
12475
12476 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12477 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12478 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12479 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12480 per_cu_data.
12481
edfe0a0c
TT
124822020-02-26 Tom Tromey <tom@tromey.com>
12483
12484 * dwarf2/index-write.c (psym_index_map): Change type.
12485 (add_address_entry_worker, write_one_signatured_type)
12486 (recursively_count_psymbols, recursively_write_psymbols)
12487 (class debug_names, psyms_seen_size, write_gdbindex)
12488 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12489
0d79cdc4
AM
124902020-02-26 Aaron Merey <amerey@redhat.com>
12491
12492 * Makefile.in: Handle optional debuginfod support.
12493 * NEWS: Update.
12494 * README: Add --with-debuginfod summary.
12495 * config.in: Regenerate.
12496 * configure: Regenerate.
12497 * configure.ac: Handle optional debuginfod support.
12498 * debuginfod-support.c: debuginfod helper functions.
12499 * debuginfod-support.h: Ditto.
12500 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12501 summary.
12502 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12503 when a dwz file cannot be found.
12504 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12505 debuginfo file cannot be found.
12506 * source.c (open_source_file): Query debuginfod servers when a
12507 source file cannot be found.
12508 * top.c (print_gdb_configuration): Include
12509 --{with,without}-debuginfod in the output.
12510
b65ce565
JG
125112020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12512
12513 * thread.c (thr_try_catch_cmd): Print thread name.
12514
d4c9a4f8
SM
125152020-02-26 Simon Marchi <simon.marchi@efficios.com>
12516
12517 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12518 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12519 dwarf2_fetch_die_type_sect_off): Move to...
12520 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12521 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12522 dwarf2_fetch_die_type_sect_off): ... here.
12523 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12524 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12525 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12526
0dce4280
TV
125272020-02-26 Tom de Vries <tdevries@suse.de>
12528
12529 PR gdb/25603
12530 * symfile.c (set_initial_language): Exit-early if
12531 language_mode == language_mode_manual.
12532
450a1bfc
SM
125332020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12534
12535 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12536 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12537 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12538
9e80cfa1
AB
125392020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12540
12541 * gdbtypes.c (create_array_type_with_stride): Handle negative
12542 array strides.
12543 * valarith.c (value_subscripted_rvalue): Likewise.
12544
09624f1f
LM
125452020-02-25 Luis Machado <luis.machado@linaro.org>
12546
12547 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12548
8cb5117c
SM
125492020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12550
12551 * loc.h (dwarf2_get_die_type): Move to...
12552 * read.h (dwarf2_get_die_type): ... here.
12553 * read.c (dwarf2_get_die_type): Move doc to header.
12554
c325c44e
JB
125552020-02-25 Joel Brobecker <brobecker@adacore.com>
12556
12557 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12558 'gnulib/Makefile.in' to the list.
12559
4ac93832
TT
125602020-02-24 Tom Tromey <tom@tromey.com>
12561
12562 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12563 Remove.
12564 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12565 XOBNEWVEC.
12566
197400e8
TT
125672020-02-24 Tom Tromey <tom@tromey.com>
12568
12569 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12570 New method.
12571 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12572 (dw2_do_instantiate_symtab, dw2_get_file_names)
12573 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12574
76935768
TT
125752020-02-24 Tom Tromey <tom@tromey.com>
12576
12577 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12578 make_scoped_restore.
12579 (dwarf2_psymtab::read_symtab): Don't clear
12580 reading_partial_symbols.
12581
a88ef40d
TV
125822020-02-24 Tom de Vries <tdevries@suse.de>
12583
12584 PR gdb/25592
12585 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12586
c9af6521
TV
125872020-02-24 Tom de Vries <tdevries@suse.de>
12588
12589 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12590 commands layout next/prev/regs.
12591
5707a07a
TT
125922020-02-22 Tom Tromey <tom@tromey.com>
12593
12594 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12595 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12596
3b0fb49e
TT
125972020-02-22 Tom Tromey <tom@tromey.com>
12598
12599 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12600
283be8bf
TT
126012020-02-22 Tom Tromey <tom@tromey.com>
12602
12603 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12604 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12605 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12606 * tui/tui.c (_initialize_tui): Add usage text.
12607
ca793b96
TT
126082020-02-22 Tom Tromey <tom@tromey.com>
12609
12610 * tui/tui-win.c (tui_set_focus_command)
12611 (tui_set_win_height_command): Use error_no_arg.
12612 (_initialize_tui_win): Update help text.
12613 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12614
432b5c40
TT
126152020-02-22 Tom Tromey <tom@tromey.com>
12616
12617 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12618 * tui/tui-disasm.h (struct tui_disasm_window)
12619 <display_start_addr>: Declare.
12620 * tui/tui-source.h (struct tui_source_window)
12621 <display_start_addr>: Declare.
12622 * tui/tui-winsource.h (struct tui_source_window_base)
12623 <show_source_line, display_start_addr>: New methods.
12624 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12625 Rename and move to protected section.
12626 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12627 (tui_source_window_base::do_erase_source_content): Update.
12628 (tui_source_window_base::show_source_line): Now a method.
12629 (tui_source_window_base::show_source_content)
12630 (tui_source_window_base::tui_source_window_base)
12631 (tui_source_window_base::rerender)
12632 (tui_source_window_base::refill)
12633 (tui_source_window_base::do_scroll_horizontal)
12634 (tui_source_window_base::set_is_exec_point_at)
12635 (tui_source_window_base::update_breakpoint_info)
12636 (tui_source_window_base::update_exec_info): Update.
12637 * tui/tui-source.c (tui_source_window::set_contents)
12638 (tui_source_window::showing_source_p)
12639 (tui_source_window::do_scroll_vertical)
12640 (tui_source_window::location_matches_p)
12641 (tui_source_window::line_is_displayed): Update.
12642 (tui_source_window::display_start_addr): New method.
12643 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12644 (tui_disasm_window::do_scroll_vertical)
12645 (tui_disasm_window::location_matches_p): Update.
12646 (tui_disasm_window::display_start_addr): New method.
12647
01b1af32
TT
126482020-02-22 Tom Tromey <tom@tromey.com>
12649
12650 * NEWS: Add entry for gdb.register_window_type.
12651 * tui/tui-layout.h (window_factory): New typedef.
12652 (tui_register_window): Declare.
12653 * tui/tui-layout.c (saved_tui_windows): New global.
12654 (tui_apply_current_layout): Use it.
12655 (tui_register_window): New function.
12656 * python/python.c (do_start_initialization): Call
12657 gdbpy_initialize_tui.
12658 (python_GdbMethods): Add "register_window_type" function.
12659 * python/python-internal.h (gdbpy_register_tui_window)
12660 (gdbpy_initialize_tui): Declare.
12661 * python/py-tui.c: New file.
12662 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12663
fc96d20b
TT
126642020-02-22 Tom Tromey <tom@tromey.com>
12665
12666 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12667
935c78c0
TT
126682020-02-22 Tom Tromey <tom@tromey.com>
12669
12670 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12671 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12672 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12673 (tui_set_win_focus_to): Move from tui-win.c.
12674
0240c8f1
TT
126752020-02-22 Tom Tromey <tom@tromey.com>
12676
12677 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12678 functions.
12679 (known_window_types): New global.
12680 (tui_get_window_by_name): Reimplement.
12681 (initialize_known_windows): New function.
12682 (validate_window_name): Rewrite.
12683 (_initialize_tui_layout): Call initialize_known_windows.
12684
fdb01f0c
TT
126852020-02-22 Tom Tromey <tom@tromey.com>
12686
12687 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12688 Remove constants.
12689 * tui/tui-winsource.h (struct tui_source_window_base)
12690 <tui_source_window_base>: Remove parameter.
12691 * tui/tui-winsource.c
12692 (tui_source_window_base::tui_source_window_base): Remove
12693 parameter.
12694 (tui_source_window_base::refill): Update.
12695 * tui/tui-stack.h (struct tui_locator_window)
12696 <tui_locator_window>: Update.
12697 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12698 Default the constructor.
12699 * tui/tui-regs.h (struct tui_data_item_window)
12700 <tui_data_item_window>: Default the constructor.
12701 (struct tui_data_window) <tui_data_window>: Likewise.
12702 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12703 Default the constructor.
12704 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12705 Default the constructor.
12706 <type>: Remove.
12707 (struct tui_win_info) <tui_win_info>: Default the constructor.
12708 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12709 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12710 Default the constructor.
12711
865a5aec
TT
127122020-02-22 Tom Tromey <tom@tromey.com>
12713
12714 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12715 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12716 * tui/tui-win.c (tui_resize_all): Don't call
12717 tui_delete_invisible_windows.
12718 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12719 done.
12720 (tui_set_layout): Update.
12721 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12722 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12723 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12724
e098d18c
TT
127252020-02-22 Tom Tromey <tom@tromey.com>
12726
12727 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12728 correctly.
12729
eb9c8874
TT
127302020-02-22 Tom Tromey <tom@tromey.com>
12731
12732 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12733
7eed1a8e
TT
127342020-02-22 Tom Tromey <tom@tromey.com>
12735
12736 * tui/tui-winsource.h (struct tui_source_window_iterator)
12737 <inner_iterator>: New etytypedef.
12738 <tui_source_window_iterator>: Take "end" parameter.
12739 <tui_source_window_iterator>: Take iterator.
12740 <operator*, advance>: Update.
12741 <m_iter>: Change type.
12742 <m_end>: New field.
12743 (struct tui_source_windows) <begin, end>: Update.
12744 * tui/tui-layout.c (tui_windows): New global.
12745 (tui_apply_current_layout): Clear tui_windows.
12746 (tui_layout_window::apply): Update tui_windows.
12747 * tui/tui-data.h (tui_windows): Declare.
12748 (all_tui_windows): Now inline function.
12749 (class tui_window_iterator, struct all_tui_windows): Remove.
12750
7c043ba6
TT
127512020-02-22 Tom Tromey <tom@tromey.com>
12752
12753 PR tui/17850:
12754 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12755 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12756 "height" argument.
12757 (class tui_layout_window) <get_sizes>: Likewise.
12758 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12759 argument.
12760 <get_sizes>: Add "height" argument.
12761 <m_vertical>: New field.
12762 * tui/tui-layout.c (tui_layout_split::clone): Update.
12763 (tui_layout_split::get_sizes): Add "height" argument.
12764 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12765 (tui_new_layout_command): Parse "-horizontal".
12766 (_initialize_tui_layout): Update help string.
12767 (tui_layout_split::specification): Add "-horizontal" when needed.
12768 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12769 argument.
12770 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12771 New methods.
12772
6bc56648
TT
127732020-02-22 Tom Tromey <tom@tromey.com>
12774
12775 * tui/tui-layout.h (enum tui_adjust_result): New.
12776 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12777 (class tui_layout_window) <adjust_size>: Return
12778 tui_adjust_result. Rewrite.
12779 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12780 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12781
c22fef7e
TT
127822020-02-22 Tom Tromey <tom@tromey.com>
12783
12784 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12785 parameter and return types.
12786 (class tui_layout_base) <specification>: Add "depth".
12787 (class tui_layout_window) <specification>: Add "depth".
12788 (class tui_layout_split) <specification>: Add "depth".
12789 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12790 and return types.
12791 (tui_new_layout_command): Parse sub-layouts.
12792 (_initialize_tui_layout): Update help string.
12793 (tui_layout_window::specification): Add "depth".
12794 (add_layout_command): Update.
12795
ee325b61
TT
127962020-02-22 Tom Tromey <tom@tromey.com>
12797
12798 * NEWS: Add "tui new-layout" item.
12799 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12800 Add new-layout command to help text.
12801 (validate_window_name): New function.
12802 (tui_new_layout_command): New function.
12803 (_initialize_tui_layout): Register "new-layout".
12804 (tui_layout_window::specification): New method.
12805 (tui_layout_window::specification): New method.
12806 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12807 method.
12808 (class tui_layout_window) <specification>: New method.
12809 (class tui_layout_split) <specification>: New method.
12810
416eb92d
TT
128112020-02-22 Tom Tromey <tom@tromey.com>
12812
12813 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12814 * tui/tui-win.c (window_name_completer): Update comment.
12815 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12816 Declare method.
12817 (class tui_layout_window) <replace_window>: Likewise.
12818 (class tui_layout_split) <replace_window>: Likewise.
12819 (tui_set_layout): Don't declare.
12820 (tui_set_initial_layout): Declare function.
12821 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12822 (asm_regs_layout): New globals.
12823 (tui_current_layout, show_layout): Remove.
12824 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12825 (find_layout, tui_apply_layout): New function.
12826 (layout_completer): Remove.
12827 (tui_next_layout): Reimplement.
12828 (tui_next_layout_command): New function.
12829 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12830 (tui_regs_layout): Reimplement.
12831 (tui_regs_layout_command): New function.
12832 (extract_display_start_addr): Rewrite.
12833 (next_layout, prev_layout): Remove.
12834 (tui_layout_window::replace_window): New method.
12835 (tui_layout_split::replace_window): New method.
12836 (destroy_layout): New function.
12837 (layout_list): New global.
12838 (add_layout_command): New function.
12839 (initialize_layouts): Update.
12840 (tui_layout_command): New function.
12841 (_initialize_tui_layout): Install "layout" commands.
12842 * tui/tui-data.h (enum tui_layout_type): Remove.
12843 (tui_current_layout): Don't declare.
12844
0dbc2fc7
TT
128452020-02-22 Tom Tromey <tom@tromey.com>
12846
12847 * tui/tui-regs.c (tui_reg_layout): Remove.
12848 (tui_reg_command): Use tui_regs_layout.
12849 * tui/tui-layout.h (tui_reg_command): Declare.
12850 * tui/tui-layout.c (tui_reg_command): New function.
12851
5afe342e
TT
128522020-02-22 Tom Tromey <tom@tromey.com>
12853
12854 * tui/tui.c (tui_rl_delete_other_windows): Call
12855 tui_remove_some_windows.
12856 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12857 Declare method.
12858 (class tui_layout_window) <remove_windows>: New method.
12859 (class tui_layout_split) <remove_windows>: Declare.
12860 (tui_remove_some_windows): Declare.
12861 * tui/tui-layout.c (tui_remove_some_windows): New function.
12862 (tui_layout_split::remove_windows): New method.
12863
427326a8
TT
128642020-02-22 Tom Tromey <tom@tromey.com>
12865
12866 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12867 * tui/tui-layout.h (tui_next_layout): Declare.
12868 * tui/tui-layout.c (tui_next_layout): New function.
12869
3fe12b6d
TT
128702020-02-22 Tom Tromey <tom@tromey.com>
12871
12872 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12873 correct coordinates.
12874
59b8b5d2
TT
128752020-02-22 Tom Tromey <tom@tromey.com>
12876
12877 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12878 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12879 DATA_WIN case.
12880
2a3d458b
TT
128812020-02-22 Tom Tromey <tom@tromey.com>
12882
12883 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12884 TUI_DISASM_WIN, not tui_win_list.
12885
3f0cbb04
TT
128862020-02-22 Tom Tromey <tom@tromey.com>
12887
12888 * valprint.c (generic_val_print_enum_1)
12889 (val_print_type_code_flags): Style member names.
12890 * rust-lang.c (val_print_struct, rust_print_enum)
12891 (rust_print_struct_def, rust_internal_print_type): Style member
12892 names.
12893 * p-valprint.c (pascal_object_print_value_fields): Style member
12894 names. Only call fprintf_symbol_filtered for static members.
12895 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12896 * f-valprint.c (f_val_print): Style member names.
12897 * f-typeprint.c (f_type_print_base): Style member names.
12898 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12899 call fprintf_symbol_filtered for static members.
12900 (cp_print_class_member): Style member names.
12901 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12902 member names.
12903 * ada-valprint.c (ada_print_scalar): Style enum names.
12904 (ada_val_print_enum): Likewise.
12905 * ada-typeprint.c (print_enum_type): Style enum names.
12906
d4d947ae
TT
129072020-02-21 Tom Tromey <tom@tromey.com>
12908
12909 * psympriv.h (struct partial_symtab): Update comment.
12910
e94e944b
TT
129112020-02-21 Tom Tromey <tromey@adacore.com>
12912
12913 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12914 type is CORE_ADDR.
12915
1eb73179
TV
129162020-02-21 Tom de Vries <tdevries@suse.de>
12917
12918 PR gdb/25534
12919 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12920 if dependencies[i]->user != NULL.
12921
4f180d53
AT
129222020-02-21 Ali Tamur <tamur@google.com>
12923
12924 * dwarf2/read.c (dwarf2_name): Add null check.
12925
22b6cd70
TT
129262020-02-20 Tom Tromey <tom@tromey.com>
12927
12928 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12929 ">=", in binary search.
12930 (dwarf2_find_containing_comp_unit): New overload.
12931 (run_test): New self-test.
12932 (_initialize_dwarf2_read): Register new test.
12933
bd0cf5a6
NC
129342020-02-20 Nelson Chu <nelson.chu@sifive.com>
12935
12936 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12937 * riscv-tdep.h: Likewise.
12938 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12939 rv32-only CSR.
12940 * features/riscv/64bit-csr.xml: Regenerated.
12941
3f702acd
SDJ
129422020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12943 Tom Tromey <tom@tromey.com>
12944
12945 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12946 of 'fputc_unfiltered'.
12947 (putchar_unfiltered): Call 'fputc_unfiltered'.
12948 (fputc_unfiltered): Call 'fputs_unfiltered'.
12949
d13c7322
AB
129502020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12951
12952 * config.in: Regenerate.
12953 * configure: Regenerate.
12954 * configure.ac: Add --with-python-libdir option.
12955 * main.c: Use WITH_PYTHON_LIBDIR.
12956
869d8950
TT
129572020-02-19 Tom Tromey <tom@tromey.com>
12958
12959 * symtab.c (general_symbol_info::compute_and_set_names): Use
12960 obstack_strndup. Simplify call to symbol_set_demangled_name.
12961
298e9637
SM
129622020-02-19 Simon Marchi <simon.marchi@efficios.com>
12963
12964 * dwarf2/read.c (allocate_signatured_type_table,
12965 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12966 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12967 Remove objfile parameter, update all callers.
12968
08410482
DE
129692020-02-19 Doug Evans <dje@google.com>
12970
12971 PR rust/25535
12972 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12973 rust_enum_variant calculation.
12974
dfdeeca1
TT
129752020-02-19 Tom Tromey <tromey@adacore.com>
12976
12977 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12978
2ef5453b
TT
129792020-02-19 Tom Tromey <tromey@adacore.com>
12980
12981 * ada-lang.c (cache_symbol): Use obstack_strdup.
12982
9f1528a1
AB
129832020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12984
12985 * configure: Regenerate.
12986
d3c22fa8
TT
129872020-02-19 Tom Tromey <tromey@adacore.com>
12988
12989 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12990 NULL check.
12991
bf84f706
MR
129922020-02-19 Maciej W. Rozycki <macro@wdc.com>
12993
12994 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12995
d1c9b20f
AB
129962020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12997
12998 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12999 if GDBSERVER is not defined.
13000 (riscv_tdesc_cache): Likewise, also store const target_desc.
13001 (STATIC_IN_GDB): Define.
13002 (riscv_create_target_description): Update declaration with
13003 STATIC_IN_GDB.
13004 (riscv_lookup_target_description): New function, only define if
13005 GDBSERVER is not defined.
13006 * arch/riscv.h (riscv_create_target_description): Declare only
13007 when GDBSERVER is defined.
13008 (riscv_lookup_target_description): New declaration when GDBSERVER
13009 is not defined.
13010 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13011 (riscv_linux_read_features): ...this, and return
13012 riscv_gdbarch_features instead of target_desc.
13013 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13014 (riscv_linux_read_description): Rename to...
13015 (riscv_linux_read_features): ...this.
13016 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13017 Update to use riscv_gdbarch_features and
13018 riscv_lookup_target_description.
13019 * riscv-tdep.c (riscv_find_default_target_description): Use
13020 riscv_lookup_target_description instead of
13021 riscv_create_target_description.
13022
373d7ac0
SM
130232020-02-18 Simon Marchi <simon.marchi@efficios.com>
13024
13025 * valprint.c (generic_val_print_enum_1): When printing a flag
13026 enum with value 0 and there is no enumerator with value 0, print
13027 just "0" instead of "(unknown: 0x0)".
13028
b29a2df0
SM
130292020-02-18 Simon Marchi <simon.marchi@efficios.com>
13030
13031 * valprint.c (generic_val_print_enum_1): Print unknown part of
13032 flag enum in hex.
13033
6740f0cc
SM
130342020-02-18 Simon Marchi <simon.marchi@efficios.com>
13035
13036 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13037 flag enums to contain duplicate enumerators.
13038 * valprint.c (generic_val_print_enum_1): Update comment.
13039
edd45eb0
SM
130402020-02-18 Simon Marchi <simon.marchi@efficios.com>
13041
13042 * dwarf2/read.c: Include "count-one-bits.h".
13043 (update_enumeration_type_from_children): If an enumerator has
13044 multiple bits set, don't treat the enumeration as a "flag enum".
13045 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13046 of flag enums have 0 or 1 bit set.
13047
6d0cf446
BE
130482020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13049
13050 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13051 conversion.
13052 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13053 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13054 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13055 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13056 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13057
7001c1b7
SM
130582020-02-18 Simon Marchi <simon.marchi@efficios.com>
13059
13060 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13061
fdb61c6c
SM
130622020-02-14 Simon Marchi <simon.marchi@efficios.com>
13063
13064 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13065 displaced_step_closure_up.
13066 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13067 (struct displaced_step_closure_up):
13068 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13069 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13070 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13071 Likewise.
13072 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13073 * gdbarch.c, gdbarch.h: Re-generate.
13074 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13075 displaced_step_closure_up.
13076 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13077 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13078 * infrun.h (displaced_step_closure_up): New type alias.
13079 (struct displaced_step_inferior_state) <step_closure>: Change
13080 type to displaced_step_closure_up.
13081 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13082 displaced_step_closure_up.
13083 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13084
a4a38eb4
TT
130852020-02-14 Tom Tromey <tom@tromey.com>
13086
13087 * minidebug.c (gnu_debug_key): New global.
13088 (find_separate_debug_file_in_section): Use it.
13089
e8217e61
SM
130902020-02-14 Simon Marchi <simon.marchi@efficios.com>
13091
13092 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13093 std::unique_ptr.
13094 * gdbarch.c: Re-generate.
13095 * gdbarch.h: Re-generate.
13096 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13097 change.
13098 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13099 type to std::unique_ptr.
13100 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13101 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13102 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13103 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13104 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13105 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13106 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13107 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13108 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13109
d8d83535
SM
131102020-02-14 Simon Marchi <simon.marchi@efficios.com>
13111
13112 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13113 std::unique_ptr.
13114 (displaced_step_clear): Rename to...
13115 (displaced_step_reset): ... this. Just call displaced->reset ().
13116 (displaced_step_clear_cleanup): Rename to...
13117 (displaced_step_reset_cleanup): ... this.
13118 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13119 (displaced_step_fixup): Likewise.
13120 (resume_1): Likewise.
13121 (handle_inferior_event): Restore child's memory before calling
13122 displaced_step_fixup on the parent.
13123 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13124 to std::unique_ptr.
13125 <step_closure>: Change type to std::unique_ptr.
13126
5f661e03
SM
131272020-02-14 Simon Marchi <simon.marchi@efficios.com>
13128
13129 * arm-tdep.c: Include count-one-bits.h.
13130 (cleanup_block_store_pc): Use count_one_bits.
13131 (cleanup_block_load_pc): Use count_one_bits.
13132 (arm_copy_block_xfer): Use count_one_bits.
13133 (thumb2_copy_block_xfer): Use count_one_bits.
13134 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13135 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13136 (thumb_get_next_pcs_raw): Use count_one_bits.
13137 (arm_get_next_pcs_raw): Use count_one_bits_l.
13138 * arch/arm.c (bitcount): Remove.
13139 * arch/arm.h (bitcount): Remove.
13140
8084e579
TT
131412020-02-14 Tom Tromey <tromey@adacore.com>
13142
13143 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13144 Update.
13145 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13146 * dwarf2/loc.c (call_site_find_chain_1): Return
13147 unique_xmalloc_ptr.
13148 (call_site_find_chain): Likewise.
13149
258bf0ee
RB
131502020-02-14 Richard Biener <rguenther@suse.de>
13151
13152 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13153 on expression with division operators.
13154
f98a8458
AKS
131552020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13156
13157 * MAINTAINERS (Write After Approval): Adding myself.
13158
d1437c0e
TT
131592020-02-12 Tom Tromey <tom@tromey.com>
13160
13161 * event-loop.c (event_data, gdb_event, event_handler_func):
13162 Remove.
13163
3d4560f7
TT
131642020-02-12 Tom Tromey <tom@tromey.com>
13165
13166 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13167 (dwarf2_frame_objfile_data): Add comment.
13168 (find_comp_unit, set_comp_unit): New functions.
13169 (dwarf2_frame_find_fde): Use find_comp_unit.
13170 (dwarf2_build_frame_info): Use set_comp_unit.
13171
21982304
TT
131722020-02-12 Tom Tromey <tom@tromey.com>
13173
13174 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13175 (comp_unit): Don't initialize objfile.
13176 (execute_cfa_program): Add text_offset parameter.
13177 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13178 (dwarf2_frame_cache): Update.
13179 (dwarf2_build_frame_info): Don't set "objfile" member.
13180
4debb237
TT
131812020-02-12 Tom Tromey <tom@tromey.com>
13182
13183 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13184 (decode_frame_entry): Likewise.
13185 (dwarf2_build_frame_info): Update.
13186
0d404d44
TT
131872020-02-12 Tom Tromey <tom@tromey.com>
13188
13189 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13190 (decode_frame_entry_1): Use the comp_unit obstack.
13191
a7a3ae5c
TT
131922020-02-12 Tom Tromey <tom@tromey.com>
13193
13194 * dwarf2/frame.c (struct comp_unit): Add initializers and
13195 constructor.
13196 (dwarf2_frame_objfile_data): Store a comp_unit.
13197 (dwarf2_frame_find_fde): Update.
13198 (dwarf2_build_frame_info): Use "new".
13199
a9d65418
TT
132002020-02-12 Tom Tromey <tom@tromey.com>
13201
13202 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13203 (dwarf2_fde_table): Typedef for std::vector.
13204 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13205 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13206 (decode_frame_entry): Update.
13207 (dwarf2_build_frame_info): Use "new".
13208
7559c217
CB
132092020-02-12 Christian Biesinger <cbiesinger@google.com>
13210
13211 * arm-tdep.c (arm_gdbarch_init): Update.
13212 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13213 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13214 have_neon, is_m>: Change to bool.
13215
aeefc73c
CB
132162020-02-12 Christian Biesinger <cbiesinger@google.com>
13217
13218 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13219
d27b8e5f
TT
132202020-02-12 Tom Tromey <tom@tromey.com>
13221
13222 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13223
cd5900f3
HD
132242020-02-12 Hannes Domani <ssbssa@yahoo.de>
13225
13226 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13227 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13228
f056b22b
TT
132292020-02-11 Tom Tromey <tom@tromey.com>
13230
13231 * psymtab.h: Update comment.
13232
f92ff6b5
TT
132332020-02-11 Tom Tromey <tom@tromey.com>
13234
13235 * gdb_obstack.h (struct auto_obstack): Use
13236 DISABLE_COPY_AND_ASSIGN.
13237
3fd6912b
TT
132382020-02-11 Tom Tromey <tom@tromey.com>
13239
13240 * dwarf2/frame.h (struct objfile): Don't forward declare.
13241
69ed9b74
CB
132422020-02-11 Christian Biesinger <cbiesinger@google.com>
13243
13244 * cris-tdep.c (cris_supply_gregset): Change signature to match
13245 what struct regset expects.
13246 (cris_regset): New struct.
13247 (fetch_core_registers): Remove.
13248 (cris_iterate_over_regset_sections): New function.
13249 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13250 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13251
bda874f6
CB
132522020-02-11 Christian Biesinger <cbiesinger@google.com>
13253
13254 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13255 registers.
13256
754e1564
CB
132572020-02-11 Christian Biesinger <cbiesinger@google.com>
13258
13259 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13260
8ddd8e0e
SM
132612020-02-11 Simon Marchi <simon.marchi@efficios.com>
13262
13263 * configure: Re-generate.
13264
898e7f60
SM
132652020-02-11 Simon Marchi <simon.marchi@efficios.com>
13266
13267 * configure: Re-generate.
13268
58df732b
SM
132692020-02-11 Simon Marchi <simon.marchi@efficios.com>
13270
13271 * acinclude: Update warning.m4 path.
13272 * warning.m4: Move to gdbsupport.
13273
da5bd37e
TT
132742020-02-11 Tom Tromey <tromey@adacore.com>
13275
13276 * remote.c (remote_console_output): Update.
13277 * printcmd.c (printf_command): Update.
13278 * event-loop.c (gdb_wait_for_event): Update.
13279 * linux-nat.c (sigchld_handler): Update.
13280 * remote-sim.c (gdb_os_write_stdout): Update.
13281 (gdb_os_flush_stdout): Update.
13282 (gdb_os_flush_stderr): Update.
13283 (gdb_os_write_stderr): Update.
13284 * exceptions.c (print_exception): Update.
13285 * remote-fileio.c (remote_fileio_func_read): Update.
13286 (remote_fileio_func_write): Update.
13287 * tui/tui.c (tui_enable): Update.
13288 * tui/tui-interp.c (tui_interp::init): Update.
13289 * utils.c (init_page_info): Update.
13290 (putchar_unfiltered, fputc_unfiltered): Update.
13291 (gdb_flush): Update.
13292 (emit_style_escape): Update.
13293 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13294 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13295 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13296 (stderr_file::write): Update.
13297 (stderr_file::puts): Update.
13298 * ui-file.h (ui_file_isatty, ui_file_write)
13299 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13300 (ui_file_puts): Don't declare.
13301
85f0dd3c
TV
133022020-02-10 Tom de Vries <tdevries@suse.de>
13303
13304 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13305 sentinel to char *.
13306
2e927613
TV
133072020-02-09 Tom de Vries <tdevries@suse.de>
13308
13309 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13310 filename if it matches "<artificial>".
13311
6bafc845
HD
133122020-02-09 Hannes Domani <ssbssa@yahoo.de>
13313
13314 * windows-tdep.c (struct enum_value_name): New struct.
13315 (create_enum): New function.
13316 (windows_get_siginfo_type): Create and use enum types.
13317
7928d571
HD
133182020-02-09 Hannes Domani <ssbssa@yahoo.de>
13319
13320 * NEWS: Mention $_siginfo support for Windows.
13321 * windows-nat.c (handle_exception): Set siginfo_er.
13322 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13323 (windows_xfer_siginfo): New function.
13324 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13325 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13326 (init_windows_gdbarch_data): New function.
13327 (get_windows_gdbarch_data): New function.
13328 (windows_get_siginfo_type): New function.
13329 (windows_init_abi): Register windows_get_siginfo_type.
13330 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13331
6751ebae
TT
133322020-02-08 Tom Tromey <tom@tromey.com>
13333
13334 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13335 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13336 <keep>: Declare method.
13337 <m_keep>: Remove member.
13338 <~cutu_reader>: Remove.
13339 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13340 (cutu_reader::cutu_reader): Update.
13341 (cutu_reader::keep): Rename from ~cutu_reader.
13342 (process_psymtab_comp_unit, build_type_psymtabs_1)
13343 (process_skeletonless_type_unit, load_partial_comp_unit)
13344 (load_full_comp_unit, dwarf2_read_addr_index)
13345 (read_signatured_type): Update.
13346
135f5437
TT
133472020-02-08 Tom Tromey <tom@tromey.com>
13348
13349 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13350 "want_partial_unit" parameter.
13351 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13352 Inline check for DW_TAG_partial_unit.
13353 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13354
9f66ff1c
TT
133552020-02-08 Tom Tromey <tom@tromey.com>
13356
13357 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13358 read.c.
13359 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13360 read.c.
13361
c8a7a66f
TT
133622020-02-08 Tom Tromey <tom@tromey.com>
13363
13364 * dwarf2/read.c (read_address): Move to comp-unit.c.
13365 (dwarf2_rnglists_process, dwarf2_ranges_process)
13366 (read_attribute_value, dwarf_decode_lines_1)
13367 (var_decode_location, decode_locdesc): Update.
13368 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13369 read.c. Remove "cu" parameter.
13370 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13371 method.
13372
8266302d
TT
133732020-02-08 Tom Tromey <tom@tromey.com>
13374
13375 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13376 (read_indirect_line_string): Update.
13377 * dwarf2/comp-unit.c (read_offset): Remove.
13378 (read_comp_unit_head): Update.
13379 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13380 method.
13381 (read_offset): Don't declare.
13382
4057dfde
TT
133832020-02-08 Tom Tromey <tom@tromey.com>
13384
13385 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13386 * dwarf2/read.c (struct comp_unit_head): Move to
13387 dwarf2/comp-unit.h.
13388 (enum class rcuh_kind): Move to comp-unit.h.
13389 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13390 (read_comp_unit_head, error_check_comp_unit_head)
13391 (read_and_check_comp_unit_head): Move to comp-unit.c.
13392 (read_offset, dwarf_unit_type_name): Likewise.
13393 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13394 (cutu_reader::cutu_reader, read_call_site_scope)
13395 (find_partial_die, follow_die_offset): Update.
13396 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13397
24aa364d
TT
133982020-02-08 Tom Tromey <tom@tromey.com>
13399
13400 * dwarf2/read.c (read_offset_1): Move to leb.c.
13401 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13402 (dwarf_decode_macro_bytes): Update.
13403 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13404 * dwarf2/leb.h (read_offset): Declare.
13405
2c7d5afc
TT
134062020-02-08 Tom Tromey <tom@tromey.com>
13407
13408 * dwarf2/read.c (dwarf2_section_size): Remove.
13409 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13410 Update.
13411 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13412
4075cb26
TT
134132020-02-08 Tom Tromey <tom@tromey.com>
13414
13415 * dwarf2/read.c (read_initial_length): Move to leb.c.
13416 * dwarf2/leb.h (read_initial_length): Declare.
13417 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13418 handle_nonstd parameter.
13419 * dwarf2/frame.c (read_initial_length): Remove.
13420 (decode_frame_entry_1): Update.
13421
09ba997f
TT
134222020-02-08 Tom Tromey <tom@tromey.com>
13423
13424 * dwarf2/loc.c (dwarf2_find_location_expression)
13425 (dwarf_evaluate_loc_desc::get_tls_address)
13426 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13427 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13428 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13429 (dwarf2_compile_property_to_c)
13430 (dwarf2_loc_desc_get_symbol_read_needs)
13431 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13432 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13433 (loclist_describe_location, loclist_tracepoint_var_ref)
13434 (loclist_generate_c_location): Update.
13435 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13436 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13437 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13438 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13439 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13440 (dwarf2_per_cu_data::addr_size)
13441 (dwarf2_per_cu_data::ref_addr_size)
13442 (dwarf2_per_cu_data::text_offset)
13443 (dwarf2_per_cu_data::addr_type): Now methods.
13444 (per_cu_header_read_in): Make per_cu "const".
13445 (dwarf2_version): Remove.
13446 (dwarf2_per_cu_data::int_type): Now a method.
13447 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13448 (set_die_type, read_array_type, read_subrange_index_type)
13449 (read_tag_string_type, read_subrange_type): Update.
13450 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13451 offset_size, ref_addr_size, text_offset, addr_type, version,
13452 objfile, int_type, addr_sized_int_type>: Declare methods.
13453
96c738c0
TT
134542020-02-08 Tom Tromey <tom@tromey.com>
13455
13456 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13457 Move earlier.
13458
8fdd972c
TT
134592020-02-08 Tom Tromey <tom@tromey.com>
13460
13461 * dwarf2/read.h (dwarf_line_debug): Declare.
13462 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13463 * dwarf2/read.c: Move line_header code to new files.
13464 (dwarf_line_debug): No longer static.
13465 * dwarf2/line-header.c: New file.
13466 * dwarf2/line-header.h: New file.
13467
03075812
TT
134682020-02-08 Tom Tromey <tom@tromey.com>
13469
13470 * dwarf2/read.c (struct line_header) <file_full_name,
13471 file_file_name>: Return unique_xmalloc_ptr.
13472 (line_header::file_file_name): Update.
13473 (line_header::file_full_name): Update.
13474 (dw2_get_file_names_reader): Update.
13475 (macro_start_file): Update.
13476
bb822404
TT
134772020-02-08 Tom Tromey <tom@tromey.com>
13478
13479 * dwarf2/read.c (struct line_header) <file_full_name,
13480 file_file_name>: Declare methods.
13481 (dw2_get_file_names_reader): Update.
13482 (file_file_name): Now a method.
13483 (file_full_name): Likewise.
13484 (macro_start_file): Update.
13485
009b64fc
TT
134862020-02-08 Tom Tromey <tom@tromey.com>
13487
13488 * dwarf2/read.c (dwarf_always_disassemble)
13489 (show_dwarf_always_disassemble): Move to loc.c.
13490 (_initialize_dwarf2_read): Move "always-disassemble" registration
13491 to loc.c.
13492 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13493 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13494 static.
13495 (show_dwarf_always_disassemble): Move from read.c.
13496 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13497
5895093f
TT
134982020-02-08 Tom Tromey <tom@tromey.com>
13499
13500 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13501 (create_quick_file_names_table): Return htab_up.
13502 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13503 Update.
13504 * dwarf2/read.h (struct dwarf2_per_objfile)
13505 <quick_file_names_table>: Now htab_up.
13506
b3b32279
TT
135072020-02-08 Tom Tromey <tom@tromey.com>
13508
13509 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13510
1d33d811
TT
135112020-02-08 Tom Tromey <tom@tromey.com>
13512
13513 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13514 Rewrite.
13515 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13516 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13517 (abbrev_table::abbrev_table): No longer inline.
13518 (ABBREV_HASH_SIZE): Remove.
13519 (abbrev_table::m_abbrevs): Now an htab_up.
13520
86de1d91
TT
135212020-02-08 Tom Tromey <tom@tromey.com>
13522
13523 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13524 (cutu_reader): Update.
13525 (build_type_psymtabs_1): Update.
13526 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13527 (abbrev_table::alloc_abbrev): Update.
13528 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13529 (abbrev_table::read): New static method, renamed from
13530 abbrev_table_read_table.
13531 (abbrev_table::alloc_abbrev)
13532 (abbrev_table::add_abbrev): Now private.
13533 (abbrev_table::abbrev_table): Now private.
13534 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13535
0335378b
TT
135362020-02-08 Tom Tromey <tom@tromey.com>
13537
13538 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13539 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13540 htab_up.
13541
48b490f2
TT
135422020-02-08 Tom Tromey <tom@tromey.com>
13543
13544 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13545 htab_up.
13546 (lookup_dwo_unit_in_dwp): Update.
13547 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13548 on obstack.
13549
bc68fb19
TT
135502020-02-08 Tom Tromey <tom@tromey.com>
13551
13552 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13553 obstack.
13554
d15acc42
TT
135552020-02-08 Tom Tromey <tom@tromey.com>
13556
13557 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13558 line_header_hash.
13559 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13560 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13561 Change type to htab_up.
13562
eaa5fa8b
TT
135632020-02-08 Tom Tromey <tom@tromey.com>
13564
13565 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13566 htab_up. Don't allocate on obstack.
13567 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13568 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13569 Change type to htab_up.
13570
b0b6a987
TT
135712020-02-08 Tom Tromey <tom@tromey.com>
13572
13573 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13574 Change type to htab_up.
13575 * dwarf2/read.c (create_signatured_type_table_from_index)
13576 (create_signatured_type_table_from_debug_names)
13577 (create_all_type_units, add_type_unit)
13578 (lookup_dwo_signatured_type, lookup_signatured_type)
13579 (process_skeletonless_type_unit): Update.
13580 (create_debug_type_hash_table, create_debug_types_hash_table):
13581 Change type of types_htab.
13582 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13583 htab_up. Don't allocate on obstack.
13584 (create_cus_hash_table): Change type of cus_htab parameter.
13585 (struct dwo_file) <cus, tus>: Now htab_up.
13586 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13587 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13588 (queue_and_load_all_dwo_tus): Update.
13589 * dwarf2/index-write.c (write_gdbindex): Update.
13590 (write_debug_names): Update.
13591
39856def
TT
135922020-02-08 Tom Tromey <tom@tromey.com>
13593
13594 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13595 dwarf2/read.c. Remove "next" member. Add constructor ntad
13596 destructor.
13597 (struct dwarf2_per_objfile) <queue>: New member.
13598 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13599 dwarf2/read.h.
13600 (dwarf2_queue, dwarf2_queue_tail): Remove.
13601 (class dwarf2_queue_guard): Add parameter to constructor. Use
13602 DISABLE_COPY_AND_ASSIGN.
13603 <m_per_objfile>: New member.
13604 <~dwarf2_queue_guard>: Rewrite.
13605 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13606 Update.
13607 (~dwarf2_queue_item): New.
13608
3e225074
TT
136092020-02-08 Tom Tromey <tom@tromey.com>
13610
13611 * dwarf2/read.c (struct die_info) <has_children>: New member.
13612 (dw2_get_file_names_reader): Remove has_children.
13613 (dw2_get_file_names): Update.
13614 (read_cutu_die_from_dwo): Remove has_children.
13615 (cutu_reader::init_tu_and_read_dwo_dies)
13616 (cutu_reader::cutu_reader): Update.
13617 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13618 Remove has_children.
13619 (build_type_psymtabs_1, process_skeletonless_type_unit)
13620 (load_partial_comp_unit, load_full_comp_unit): Update.
13621 (create_dwo_cu_reader): Remove has_children.
13622 (create_cus_hash_table, read_die_and_children): Update.
13623 (read_full_die_1,read_full_die): Remove has_children.
13624 (read_signatured_type): Update.
13625 (class cutu_reader) <has_children>: Remove.
13626
82ca8957
TT
136272020-02-08 Tom Tromey <tom@tromey.com>
13628
13629 * dwarf2/expr.c: Rename from dwarf2expr.c.
13630 * dwarf2/expr.h: Rename from dwarf2expr.h.
13631 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13632 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13633 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13634 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13635 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13636 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13637 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13638 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13639 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13640 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13641 * dwarf2/loc.c: Rename from dwarf2loc.c.
13642 * dwarf2/loc.h: Rename from dwarf2loc.h.
13643 * dwarf2/read.c: Rename from dwarf2read.c.
13644 * dwarf2/read.h: Rename from dwarf2read.h.
13645 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13646 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13647 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13648 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13649 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13650 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13651 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13652 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13653 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13654 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13655 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13656 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13657 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13658 Update.
13659 * Makefile.in (COMMON_SFILES): Update.
13660 (HFILES_NO_SRCDIR): Update.
13661
9e35d499
TT
136622020-02-08 Tom Tromey <tom@tromey.com>
13663
13664 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13665 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13666
1eba2311
TT
136672020-02-08 Tom Tromey <tom@tromey.com>
13668
13669 * dwarf2read.h (struct die_info): Don't declare.
13670
e41c2da2
TT
136712020-02-08 Tom Tromey <tom@tromey.com>
13672
13673 * dwarf2read.h (die_info_ptr): Remove typedef.
13674
4fc6c0d5
TT
136752020-02-08 Tom Tromey <tom@tromey.com>
13676
13677 * dwarf2read.c (read_call_site_scope)
13678 (handle_data_member_location, dwarf2_add_member_fn)
13679 (mark_common_block_symbol_computed, read_common_block)
13680 (attr_to_dynamic_prop, partial_die_info::read)
13681 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13682 (dwarf2_symbol_mark_computed, set_die_type): Update.
13683 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13684 method.
13685 (attr_form_is_block): Don't declare.
13686 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13687
cd6c91b4
TT
136882020-02-08 Tom Tromey <tom@tromey.com>
13689
13690 * dwarf2read.c (dwarf2_find_base_address, )
13691 (read_call_site_scope, rust_containing_type)
13692 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13693 (handle_data_member_location, dwarf2_add_member_fn)
13694 (get_alignment, read_structure_type, process_structure_scope)
13695 (mark_common_block_symbol_computed, read_common_block)
13696 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13697 (partial_die_info::read, read_attribute_value, new_symbol)
13698 (lookup_die_type, dwarf2_get_ref_die_offset)
13699 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13700 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13701 (dwarf2_symbol_mark_computed): Update.
13702 * dwarf2/attribute.h (struct attribute) <value_as_address,
13703 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13704 methods.
13705 (value_as_address, attr_form_is_section_offset)
13706 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13707 * dwarf2/attribute.c (attribute::value_as_address)
13708 (attribute::form_is_section_offset, attribute::form_is_constant)
13709 (attribute::form_is_ref): Now methods.
13710
162dce55
TT
137112020-02-08 Tom Tromey <tom@tromey.com>
13712
13713 * dwarf2read.c (struct attribute, DW_STRING)
13714 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13715 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13716 (attr_form_is_block, attr_form_is_section_offset)
13717 (attr_form_is_constant, attr_form_is_ref): Move.
13718 * dwarf2/attribute.h: New file.
13719 * dwarf2/attribute.c: New file, from dwarf2read.c.
13720 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13721
3054dd54
TT
137222020-02-08 Tom Tromey <tom@tromey.com>
13723
13724 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13725 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13726 Move.
13727 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13728 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13729 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13730 abbrev.c.
13731 * dwarf2/abbrev.h: New file.
13732 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13733 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13734
96b79293
TT
137352020-02-08 Tom Tromey <tom@tromey.com>
13736
13737 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13738 (dwarf2_section_size, dwarf2_get_section_info)
13739 (create_signatured_type_table_from_debug_names)
13740 (create_addrmap_from_aranges, read_debug_names_from_section)
13741 (get_gdb_index_contents_from_section, read_comp_unit_head)
13742 (error_check_comp_unit_head, read_abbrev_offset)
13743 (create_debug_type_hash_table, init_cu_die_reader)
13744 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13745 (read_comp_units_from_section, create_cus_hash_table)
13746 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13747 (create_dwp_v2_section, dwarf2_rnglists_process)
13748 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13749 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13750 (read_indirect_string_from_dwz, read_addr_index_1)
13751 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13752 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13753 (fill_in_loclist_baton): Update.
13754 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13755 get_containing_section, get_bfd_owner, get_bfd_section,
13756 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13757 (dwarf2_read_section, get_section_name, get_section_file_name)
13758 (get_containing_section, get_section_bfd_owner)
13759 (get_section_bfd_section, get_section_name, get_section_file_name)
13760 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13761 declare.
13762 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13763 (dwarf2_section_info::get_bfd_owner)
13764 (dwarf2_section_info::get_bfd_section)
13765 (dwarf2_section_info::get_name)
13766 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13767 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13768 (dwarf2_section_info::read): Now methods.
13769 * dwarf-index-write.c (class debug_names): Update.
13770
2c86cff9
TT
137712020-02-08 Tom Tromey <tom@tromey.com>
13772
13773 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13774 Move to dwarf2/section.h.
13775 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13776 (get_section_bfd_section, get_section_name)
13777 (get_section_file_name, get_section_id, get_section_flags)
13778 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13779 dwarf2/section.c.
13780 * dwarf2/section.h: New file.
13781 * dwarf2/section.c: New file, from dwarf2read.c.
13782 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13783
f4382c45
TT
137842020-02-08 Tom Tromey <tom@tromey.com>
13785
13786 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13787 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13788 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13789 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13790 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13791 * dwarf2/leb.h: New file, from dwarf2read.c.
13792 * dwarf2/leb.c: New file, from dwarf2read.c.
13793 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13794 Remove.
13795 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13796 (COMMON_SFILES): Add dwarf2/leb.c.
13797
01840b7a
JB
137982020-02-08 Joel Brobecker <brobecker@adacore.com>
13799
13800 GDB 9.1 released.
13801
dfcb27e4
IB
138022020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13803
13804 PR gdb/25190:
aac66a4c
SM
13805 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13806 * gdb/remote.c (remote_console_output): Update.
13807 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13808 (ui_file_puts): ...this.
13809 * gdb/ui-file.h (ui_file_puts): Add declaration.
13810 * gdb/utils.c (emit_style_escape): Update.
13811 (flush_wrap_buffer): Update.
13812 (fputs_maybe_filtered): Update.
13813 (fputs_unfiltered): Add function.
dfcb27e4 13814
faa17681
IB
138152020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13816
aac66a4c
SM
13817 * gdb/event-loop.c (gdb_wait_for_event): Update.
13818 * gdb/printcmd.c (printf_command): Update.
13819 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13820 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13821 (gdb_os_flush_stderr): Update.
13822 * gdb/remote.c (remote_console_output): Update.
13823 * gdb/ui-file.c (gdb_flush): Rename to...
13824 (ui_file_flush): ...this.
13825 (stderr_file::write): Update.
13826 (stderr_file::puts): Update.
13827 * gdb/ui-file.h (gdb_flush): Rename to...
13828 (ui_file_flush): ...this.
13829 * gdb/utils.c (gdb_flush): Add function.
13830 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13831
5abbbe1d
TT
138322020-02-07 Tom Tromey <tromey@adacore.com>
13833
13834 PR breakpoints/24915:
13835 * source.c (find_and_open_source): Do not check basenames_may_differ.
13836
919adfe8
TT
138372020-02-07 Tom Tromey <tom@tromey.com>
13838
13839 * README: Update gdbserver documentation.
13840 * gdbserver: Move to top level.
13841 * configure.tgt (build_gdbserver): Remove.
13842 * configure.ac: Remove --enable-gdbserver.
13843 * configure: Rebuild.
13844 * Makefile.in (distclean): Don't mention gdbserver.
13845
1d5d29e7
SV
138462020-02-06 Shahab Vahedi <shahab@synopsys.com>
13847
13848 * source-cache.c (source_cache::ensure): Surround
13849 get_plain_source_lines with a try/catch.
13850 (source_cache::get_line_charpos): Get rid of try/catch
13851 and only check for the return value of "ensure".
13852 * tui/tui-source.c (tui_source_window::set_contents):
13853 Simplify "nlines" calculation.
13854
6eb1129c
SV
138552020-02-06 Shahab Vahedi <shahab@synopsys.com>
13856
13857 * MAINTAINERS (Write After Approval): Add myself.
13858
c6a42d11
CB
138592020-02-05 Christian Biesinger <cbiesinger@google.com>
13860
13861 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13862 function call.
13863
c8ecdda6
CB
138642020-02-05 Christian Biesinger <cbiesinger@google.com>
13865
13866 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13867
f6480e70
MR
138682020-02-05 Maciej W. Rozycki <macro@wdc.com>
13869
13870 * nat/riscv-linux-tdesc.h: New file.
13871 * nat/riscv-linux-tdesc.c: New file, taking code from...
13872 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13873 ... here.
13874 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13875 NATDEPFILES.
13876
dcc9fbc6
AB
138772020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13878
13879 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13880 we don't set the fake simulator ptid to the null_ptid.
13881
719546c4
SM
138822020-02-03 Simon Marchi <simon.marchi@efficios.com>
13883
13884 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13885 * gdbthread.h (class thread_info) <resumed>: Likewise.
13886 * infrun.c (resume_1): Likewise.
13887 (proceed): Likewise.
13888 (infrun_thread_stop_requested): Likewise.
13889 (stop_all_threads): Likewise.
13890 (handle_inferior_event): Likewise.
13891 (restart_threads): Likewise.
13892 (finish_step_over): Likewise.
13893 (keep_going_stepped_thread): Likewise.
13894 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13895 (linux_handle_extended_wait): Likewise.
13896 * record-btrace.c (get_thread_current_frame_id): Likewise.
13897 * record-full.c (record_full_wait_1): Likewise.
13898 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13899 * target.c (target_resume): Likewise.
13900 * thread.c (set_running_thread): Likewise.
13901
e409c542
AKS
139022020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13903
13904 * f-valprint.c (f77_print_array_1): Changed datatype of index
13905 variable to LONGEST from int to enable it to contain bound
13906 values correctly.
13907
ee98c0da
MR
139082020-02-03 Maciej W. Rozycki <macro@wdc.com>
13909
13910 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13911 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13912 offsets according to FLEN determined.
13913 (riscv_linux_nat_target::read_description): Determine FLEN
13914 dynamically.
13915 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13916 according to FLEN determined.
13917 (riscv_linux_nat_target::store_registers): Likewise.
13918
aa66aac4
SV
139192020-02-01 Shahab Vahedi <shahab@synopsys.com>
13920
13921 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13922 when reg->group is empty and reggroup is not.
13923
fd9faca8
TT
139242020-01-31 Tom Tromey <tromey@adacore.com>
13925
13926 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13927 Call beneath target's mourn_inferior after unpushing.
13928
42330a68
AB
139292020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13930
13931 PR tui/9765
13932 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13933 have enough lines to fill the screen, still return the lowest
13934 address we found.
13935
7a27a45b
AB
139362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13937
13938 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13939 '-', '<', and '>' commands.
13940
c47f70e2
PA
139412020-01-29 Pedro Alves <palves@redhat.com>
13942 Sergio Durigan Junior <sergiodj@redhat.com>
13943
13944 * infcmd.c (construct_inferior_arguments): Assert that
13945 'argc' is greater than 0.
13946
5133a315
LM
139472020-01-29 Luis Machado <luis.machado@linaro.org>
13948
13949 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13950 (BRK_INSN_MASK): Define to 0xd4200000.
13951 (aarch64_program_breakpoint_here_p): New function.
13952 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13953 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13954 breakpoint.c.
13955 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13956 breakpoint.h
13957 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13958 call gdbarch_program_breakpoint_here_p.
13959 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13960 default_program_breakpoint_here_p, changed return type to bool and
13961 simplified.
13962 * breakpoint.h (program_breakpoint_here): Moved prototype to
13963 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13964 return type to bool.
13965 * gdbarch.c: Regenerate.
13966 * gdbarch.h: Regenerate.
13967 * gdbarch.sh (program_breakpoint_here_p): New method.
13968 * infrun.c (handle_signal_stop): Call
13969 gdbarch_program_breakpoint_here_p.
13970
168f8c6b
TT
139712020-01-26 Tom Tromey <tom@tromey.com>
13972
13973 * ctfread.c (struct ctf_fp_info): Reindent.
13974 (_initialize_ctfread): Remove.
13975
128a391f
TT
139762020-01-26 Tom Tromey <tom@tromey.com>
13977
13978 * psymtab.c (partial_map_expand_apply)
13979 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13980 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13981 (psym_print_stats, psym_expand_symtabs_for_function)
13982 (psym_map_symbol_filenames, psym_map_matching_symbols)
13983 (psym_expand_symtabs_matching)
13984 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13985 (maintenance_check_psymtabs): Use new methods.
13986 * psympriv.h (struct partial_symtab) <readin_p,
13987 get_compunit_symtab>: New methods.
13988 <readin, compunit_symtab>: Remove members.
13989 (struct standard_psymtab): New.
13990 (struct legacy_psymtab): Derive from standard_psymtab.
13991 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13992 standard_psymtab.
13993 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13994
0494dbec
TT
139952020-01-26 Tom Tromey <tom@tromey.com>
13996
13997 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13998 read_dependencies. Add assert.
13999 * psymtab.c (partial_symtab::read_dependencies): New method.
14000 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14001 method.
14002 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14003 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14004 read_dependencies.
14005 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14006 Add assert.
14007
8566b89b
TT
140082020-01-26 Tom Tromey <tom@tromey.com>
14009
14010 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14011 Call expand_psymtab.
14012 (xcoff_read_symtab): Call expand_psymtab.
14013 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14014 legacy_expand_psymtab.
14015 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14016 method.
14017 (struct legacy_psymtab) <expand_psymtab>: Implement.
14018 <legacy_expand_psymtab>: New member.
14019 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14020 (parse_partial_symbols): Set legacy_expand_psymtab.
14021 (psymtab_to_symtab_1): Change argument order. Call
14022 expand_psymtab.
14023 (new_psymtab): Set legacy_expand_psymtab.
14024 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14025 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14026 expand_psymtab.
14027 (dwarf2_psymtab::expand_psymtab): Rename from
14028 psymtab_to_symtab_1. Call expand_psymtab.
14029 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14030 (dbx_end_psymtab): Likewise.
14031 (dbx_psymtab_to_symtab_1): Change argument order. Call
14032 expand_psymtab.
14033 (dbx_read_symtab): Call expand_psymtab.
14034 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14035 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14036 (ctf_psymtab::read_symtab): Call expand_psymtab.
14037
077cbab2
TT
140382020-01-26 Tom Tromey <tom@tromey.com>
14039
14040 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14041 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14042 messages.
14043 * mdebugread.c (mdebug_read_symtab): Remove prints.
14044 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14045 assert.
14046 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14047
891813be
TT
140482020-01-26 Tom Tromey <tom@tromey.com>
14049
14050 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14051 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14052 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14053 legacy_symtab.
14054 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14055 * psymtab.c (psymtab_to_symtab): Call method.
14056 (dump_psymtab): Update.
14057 * psympriv.h (struct partial_symtab): Add virtual destructor.
14058 <read_symtab>: New method.
14059 (struct legacy_symtab): New.
14060 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14061 (struct pst_map) <pst>: Now a legacy_psymtab.
14062 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14063 (new_psymtab): Use legacy_psymtab.
14064 * dwarf2read.h (struct dwarf2_psymtab): New.
14065 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14066 * dwarf2read.c (dwarf2_create_include_psymtab)
14067 (dwarf2_build_include_psymtabs, create_type_unit_group)
14068 (create_partial_symtab, process_psymtab_comp_unit_reader)
14069 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14070 (set_partial_user): Use dwarf2_psymtab.
14071 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14072 (psymtab_to_symtab_1, process_full_comp_unit)
14073 (process_full_type_unit, dwarf2_ranges_read)
14074 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14075 (dwarf_decode_lines): Use dwarf2_psymtab.
14076 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14077 (add_address_entry_worker, write_one_signatured_type)
14078 (recursively_count_psymbols, recursively_write_psymbols)
14079 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14080 (write_debug_names): Likewise.
14081 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14082 <pst>: Now a legacy_psymtab.
14083 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14084 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14085 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14086 * ctfread.c (struct ctf_psymtab): New.
14087 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14088 ctf_psymtab.
14089 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14090 (create_partial_symtab): Return a ctf_psymtab.
14091 (scan_partial_symbols): Update.
14092
c3693a1d
TT
140932020-01-26 Tom Tromey <tom@tromey.com>
14094
14095 * xcoffread.c (xcoff_start_psymtab): Use new.
14096 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14097 renamed from start_psymtab_common.
14098 * psympriv.h (struct partial_symtab): Add new constructor.
14099 (start_psymtab_common): Don't declare.
14100 * mdebugread.c (parse_partial_symbols): Use new.
14101 * dwarf2read.c (create_partial_symtab): Use new.
14102 * dbxread.c (start_psymtab): Use new.
14103 * ctfread.c (create_partial_symtab): Use new.
14104
32caafd0
TT
141052020-01-26 Tom Tromey <tom@tromey.com>
14106
14107 * xcoffread.c (xcoff_end_psymtab): Use new.
14108 * psymtab.c (start_psymtab_common): Use new.
14109 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14110 Update.
14111 * psympriv.h (struct partial_symtab): Add parameters to
14112 constructor. Don't inline.
14113 (allocate_psymtab): Don't declare.
14114 * mdebugread.c (new_psymtab): Use new.
14115 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14116 * dbxread.c (dbx_end_psymtab): Use new.
14117
abaa2f23
TT
141182020-01-26 Tom Tromey <tom@tromey.com>
14119
14120 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14121 allocate_psymtab. Update documentation.
14122 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14123 allocate_psymtab. Do not use new.
14124 (allocate_psymtab): Use new. Update.
14125
6d94535f
TT
141262020-01-26 Tom Tromey <tom@tromey.com>
14127
14128 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14129 * psymtab.c (psym_print_stats): Update.
14130 * psympriv.h (struct partial_symtab) <readin,
14131 psymtabs_addrmap_supported, anonymous>: Now bool.
14132 * mdebugread.c (psymtab_to_symtab_1): Update.
14133 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14134 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14135 (process_full_comp_unit, process_full_type_unit): Update.
14136 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14137 * ctfread.c (psymtab_to_symtab): Update.
14138
6f17252b
TT
141392020-01-26 Tom Tromey <tom@tromey.com>
14140
14141 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14142 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14143 * psymtab.c (psymtab_storage): Delete psymtabs.
14144 (psymtab_storage::allocate_psymtab): Use new.
14145 (psymtab_storage::discard_psymtab): Use delete.
14146 * psympriv.h (struct partial_symtab): Add constructor and
14147 initializers.
14148
f6f1cebc
TT
141492020-01-26 Tom Tromey <tom@tromey.com>
14150
14151 * machoread.c: Do not include psympriv.h.
14152
e47e48f6
PW
141532020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14154
14155 * NEWS: Mention the new option and the set/show commands.
14156
a2fedca9
PW
141572020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14158
14159 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14160 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14161 (validate_exec_file): New variables, enums, functions.
14162 (exec_file_locate_attach, print_section_info): Style the filenames.
14163 (_initialize_exec): Install show_exec_file_mismatch_command and
14164 set_exec_file_mismatch_command.
14165 * gdbcore.h (validate_exec_file): Declare.
14166 * infcmd.c (attach_command): Call validate_exec_file.
14167 * remote.c ( remote_target::remote_add_inferior): Likewise.
14168
7ffa82e1
AB
141692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14170
14171 * frame.c (find_frame_sal): Move call to get_next_frame into more
14172 inner scope.
14173 * inline-frame.c (inilne_state) <inline_state>: Update argument
14174 types.
14175 (inilne_state) <skipped_symbol>: Rename to...
14176 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14177 (skip_inline_frames): Build vector of skipped symbols and use this
14178 to reate the inline_state.
14179 (inline_skipped_symbol): Add a comment and some assertions, fetch
14180 skipped symbol from the list.
14181
3d92a3e3
AB
141822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14183
14184 * buildsym.c (lte_is_less_than): Delete.
14185 (buildsym_compunit::end_symtab_with_blockvector): Create local
14186 lambda function to sort line table entries, and use
14187 std::stable_sort instead of std::sort.
14188 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14189 markers when looking for a previous line.
14190
94a72be7
AB
141912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14192
14193 * dwarf2read.c (lnp_state_machine::record_line): Include
14194 end_sequence parameter in debug print out. Record the line if we
14195 are at an end_sequence marker even if it's not the start of a
14196 statement.
14197 * symmisc.c (maintenance_print_one_line_table): Print end of
14198 sequence markers with 'END' not '0'.
14199
53af73bf
PA
142002020-01-24 Pedro Alves <palves@redhat.com>
14201
14202 PR gdb/25410
14203 * thread.c (scoped_restore_current_thread::restore): Use
14204 switch_to_inferior_no_thread.
14205 * exec.c: Include "progspace-and-thread.h".
14206 (add_target_sections, remove_target_sections):
14207 scoped_restore_current_pspace_and_thread instead of
14208 scoped_restore_current_thread.
14209 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14210 and aspace to the inferior before calling clone_program_space.
14211 Remove stale comment.
14212
3050c6f4
CB
142132020-01-24 Christian Biesinger <cbiesinger@google.com>
14214
14215 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14216 (arm_netbsd_nat_target::fetch_registers): ...this.
14217 (arm_nbsd_nat_target::store_registers): Rename to...
14218 (arm_netbsd_nat_target::store_registers): ...this.
14219
73685c7e
CB
142202020-01-24 Christian Biesinger <cbiesinger@google.com>
14221
14222 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14223 register_t.
14224
89203d40
CB
142252020-01-24 Christian Biesinger <cbiesinger@google.com>
14226
14227 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14228 Update comment.
14229 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14230 Likewise.
14231 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14232 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14233 the correct replacement (iterate_over_regset_sections).
14234 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14235 Update comment.
14236
1ba1ac88
AB
142372020-01-24 Graham Markall <graham.markall@embecosm.com>
14238
14239 PR gdb/23718
14240 * gdb/python/python.c (execute_gdb_command): Call
14241 async_enable_stdin in catch block.
14242
f3364a6d
AB
142432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14244
14245 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14246 SWITCH_THRU_ALL_UIS.
14247
733d0a67
AB
142482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14249
14250 PR tui/9765
14251 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14252 comment, add extra parameter, and update to store previous symbol
14253 when appropriate.
14254 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14255 add extra parameter.
14256 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14257 remove unneeded parameter, add try/catch around gdb_print_insn,
14258 rewrite to add items to asm_lines vector.
14259 (tui_find_backward_disassembly_start_address): New function.
14260 (tui_find_disassembly_address): Updated throughout.
14261 (tui_disasm_window::set_contents): Update for changes to
14262 tui_disassemble.
14263 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14264 number of lines to scroll.
14265
b3b3bada
SM
142662020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14267
14268 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14269 (SECT_OFF_DATA): Likewise.
14270 (SECT_OFF_RODATA): Likewise.
14271 (SECT_OFF_TEXT): Likewise.
14272 (SECT_OFF_BSS): Likewise.
14273 (struct objfile) <text_section_offset, data_section_offset>: New
14274 methods.
14275 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14276 objfile::text_section_offset.
14277 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14278 * coffread.c (coff_symtab_read): Likewise.
14279 (enter_linenos): Likewise.
14280 (process_coff_symbol): Likewise.
14281 * ctfread.c (get_objfile_text_range): Likewise.
14282 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14283 Use objfile::data_section_offset.
14284 * dwarf2-frame.c (execute_cfa_program): Use
14285 objfile::text_section_offset.
14286 (dwarf2_frame_find_fde): Likewise.
14287 * dwarf2read.c (create_addrmap_from_index): Likewise.
14288 (create_addrmap_from_aranges): Likewise.
14289 (dw2_find_pc_sect_compunit_symtab): Likewise.
14290 (process_psymtab_comp_unit_reader): Likewise.
14291 (add_partial_symbol): Likewise.
14292 (add_partial_subprogram): Likewise.
14293 (process_full_comp_unit): Likewise.
14294 (read_file_scope): Likewise.
14295 (read_func_scope): Likewise.
14296 (read_lexical_block_scope): Likewise.
14297 (read_call_site_scope): Likewise.
14298 (dwarf2_rnglists_process): Likewise.
14299 (dwarf2_ranges_process): Likewise.
14300 (dwarf2_ranges_read): Likewise.
14301 (dwarf_decode_lines_1): Likewise.
14302 (new_symbol): Likewise.
14303 (dwarf2_fetch_die_loc_sect_off): Likewise.
14304 (dwarf2_per_cu_text_offset): Likewise.
14305 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14306 * hppa-tdep.c (read_unwind_info): Likewise.
14307 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14308 * psympriv.h (struct partial_symtab): Likewise.
14309 * psymtab.c (find_pc_sect_psymtab): Likewise.
14310 * solib-svr4.c (enable_break): Likewise.
14311 * stap-probe.c (relocate_address): Use
14312 objfile::data_section_offset.
14313 * xcoffread.c (enter_line_range): Use
14314 objfile::text_section_offset.
14315 (read_xcoff_symtab): Likewise.
14316
ab53f382
SM
143172020-01-23 Simon Marchi <simon.marchi@efficios.com>
14318
14319 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14320 declaration to narrower scopes.
14321
e7eee665
SM
143222020-01-23 Simon Marchi <simon.marchi@efficios.com>
14323
14324 * darwin-nat.h (struct darwin_exception_msg, enum
14325 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14326 Move up.
14327 (class darwin_nat_target) <wait_1, check_new_threads,
14328 decode_exception_message, decode_message, stop_inferior,
14329 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14330 * darwin-nat.c (darwin_check_new_threads): Rename to...
14331 (darwin_nat_target::check_new_threads): ... this.
14332 (darwin_suspend_inferior_it): Remove.
14333 (darwin_decode_exception_message): Rename to...
14334 (darwin_nat_target::decode_exception_message): ... this.
14335 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14336 (darwin_decode_message): Rename to...
14337 (darwin_nat_target::decode_message): ... this.
14338 (cancel_breakpoint): Rename to...
14339 (darwin_nat_target::cancel_breakpoint): ... this.
14340 (darwin_wait): Rename to...
14341 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14342 instead of iterate_over_inferiors.
14343 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14344 (darwin_stop_inferior): Rename to...
14345 (darwin_nat_target::stop_inferior): ... this.
14346 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14347 (darwin_init_thread_list): Rename to...
14348 (darwin_nat_target::init_thread_list): ... this.
14349 (darwin_ptrace_him): Rename to...
14350 (darwin_nat_target::ptrace_him): ... this.
14351 (darwin_nat_target::create_inferior): Pass lambda function to
14352 fork_inferior.
14353 (darwin_nat_target::detach): Call stop_inferior instead of
14354 darwin_stop_inferior.
14355 * fork-inferior.h (fork_inferior): Change init_trace_fun
14356 parameter to gdb::function_view.
14357 * fork-inferior.c (fork_inferior): Likewise.
14358
c162ed3e
HD
143592020-01-23 Hannes Domani <ssbssa@yahoo.de>
14360
14361 * i386-cygwin-tdep.c (core_process_module_section): Update.
14362 * windows-nat.c (struct lm_info_windows): Add text_offset.
14363 (windows_xfer_shared_libraries): Update.
14364 * windows-tdep.c (windows_xfer_shared_library):
14365 Add text_offset_cached argument.
14366 * windows-tdep.h (windows_xfer_shared_library): Update.
14367
a1237872
SM
143682020-01-21 Simon Marchi <simon.marchi@efficios.com>
14369
14370 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14371
b3ee6dd9
SM
143722020-01-21 Simon Marchi <simon.marchi@efficios.com>
14373
14374 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14375 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14376 replace with range-based for.
14377 (gdbsim_interrupt_inferior): Remove.
14378 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14379 with a range-based for. Inline code from
14380 gdbsim_interrupt_inferior.
14381
f9fac3c8
SM
143822020-01-21 Simon Marchi <simon.marchi@efficios.com>
14383
14384 * infrun.c (proceed): Fix indentation.
14385
f6474de9
TT
143862020-01-21 Tom Tromey <tromey@adacore.com>
14387
14388 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14389 * python/python.c (python_extension_ops): Update.
14390 (gdbpy_colorize): New function.
14391 * python/lib/gdb/__init__.py (colorize): New function.
14392 * extension.h (ext_lang_colorize): Declare.
14393 * extension.c (ext_lang_colorize): New function.
14394 * extension-priv.h (struct extension_language_ops) <colorize>: New
14395 member.
14396 * cli/cli-style.c (_initialize_cli_style): Update help text.
14397
f0c702d4
LM
143982020-01-21 Luis Machado <luis.machado@linaro.org>
14399
14400 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14401 <cond>: Change type to bool.
14402 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14403 (aarch64_displaced_step_cb): Likewise.
14404 (aarch64_displaced_step_tb): Likewise.
14405
1ab139e5
LM
144062020-01-21 Luis Machado <luis.machado@linaro.org>
14407
14408 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14409 output.
14410
0c271889
LM
144112020-01-21 Luis Machado <luis.machado@linaro.org>
14412
14413 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14414 <pc_adjust>: Adjust the documentation.
14415 (aarch64_displaced_step_fixup): Check if PC really moved before
14416 adjusting it.
14417
4d89c1c7
TT
144182020-01-19 Tom Tromey <tom@tromey.com>
14419
14420 * disasm.c (~gdb_disassembler): New destructor.
14421 (gdb_buffered_insn_length): Call disassemble_free_target.
14422 * disasm.h (class gdb_disassembler): Declare destructor. Use
14423 DISABLE_COPY_AND_ASSIGN.
14424
c0ab21c2
TT
144252020-01-19 Tom Tromey <tom@tromey.com>
14426
14427 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14428 (die_reader_func_ftype): Remove.
14429 (cutu_reader): New class.
14430 (dw2_get_file_names_reader): Remove "data" parameter.
14431 (dw2_get_file_names): Use cutu_reader.
14432 (create_debug_type_hash_table): Update.
14433 (read_cutu_die_from_dwo): Update comment.
14434 (lookup_dwo_unit): Add dwo_name parameter.
14435 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14436 die_reader_func_ftype and data parameters.
14437 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14438 Remove die_reader_func_ftype and data parameters.
14439 (~cutu_reader): New; from init_cutu_and_read_dies.
14440 (cutu_reader::cutu_reader): Rename from
14441 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14442 and data parameters.
14443 (init_cutu_and_read_dies_simple): Remove.
14444 (struct process_psymtab_comp_unit_data): Remove.
14445 (process_psymtab_comp_unit_reader): Remove data parameter; add
14446 want_partial_unit and pretend_language parameters.
14447 (process_psymtab_comp_unit): Use cutu_reader.
14448 (build_type_psymtabs_reader): Remove data parameter.
14449 (build_type_psymtabs_1): Use cutu_reader.
14450 (process_skeletonless_type_unit): Likewise.
14451 (load_partial_comp_unit_reader): Remove.
14452 (load_partial_comp_unit): Use cutu_reader.
14453 (load_full_comp_unit_reader): Remove.
14454 (load_full_comp_unit): Use cutu_reader.
14455 (struct create_dwo_cu_data): Remove.
14456 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14457 dwo_unit parameters.
14458 (create_cus_hash_table): Use cutu_reader.
14459 (struct dwarf2_read_addr_index_data): Remove.
14460 (dwarf2_read_addr_index_reader): Remove.
14461 (dwarf2_read_addr_index): Use cutu_reader.
14462 (read_signatured_type_reader): Remove.
14463 (read_signatured_type): Use cutu_reader.
14464
45bbae5c
TT
144652020-01-19 Tom Tromey <tom@tromey.com>
14466
14467 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14468 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14469 (tui_wrefresh): Declare.
14470 * tui/tui-wingeneral.c (suppress_output): New global.
14471 (tui_suppress_output, ~tui_suppress_output): New constructor and
14472 destructor.
14473 (tui_wrefresh): New function.
14474 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14475 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14476 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14477 method.
14478 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14479 tui_wrefresh.
14480 (tui_data_window::no_refresh): New method.
14481 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14482 (tui_reg_command): Use tui_suppress_output
14483 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14484 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14485 method.
14486 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14487
4f13c1c0
TT
144882020-01-19 Tom Tromey <tom@tromey.com>
14489
14490 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14491 Handle case where symtab is null.
14492
fa47e446
SM
144932020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14494
14495 * linux-fork.c (one_fork_p): Simplify.
14496
26f42329
SM
144972020-01-17 Simon Marchi <simon.marchi@efficios.com>
14498
14499 * top.c (struct qt_args): Remove.
14500 (kill_or_detach): Change return type to void, replace `void *`
14501 parameter with a proper one.
14502 (print_inferior_quit_action): Likewise.
14503 (quit_confirm): Use range-based for loop to iterate over inferiors.
14504 (quit_force): Likewise.
14505
a9ac81b1
SM
145062020-01-17 Simon Marchi <simon.marchi@efficios.com>
14507
14508 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14509 `void *` parameter with proper parameters.
14510 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14511 (print_one_inferior): Change return type to void, replace `void *`
14512 parameter with proper parameters.
14513 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14514 inferiors.
14515 (get_other_inferior): Remove.
14516 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14517 inferiors.
14518
788eca49
SM
145192020-01-17 Simon Marchi <simon.marchi@efficios.com>
14520
14521 * mi/mi-interp.c (report_initial_inferior): Remove.
14522 (mi_interp::init): Use range-based for to iterate over inferiors.
14523
d9bc85b6
SM
145242020-01-17 Simon Marchi <simon.marchi@efficios.com>
14525
14526 * python/py-inferior.c (build_inferior_list): Remove.
14527 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14528
40c94099
CB
145292020-01-16 Christian Biesinger <cbiesinger@google.com>
14530
14531 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14532 (btrace_stitch_trace): Likewise.
14533 * charset.c (intermediate_encoding): Likewise (vaild).
14534 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14535 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14536 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14537
e0cdfe3c
HD
145382020-01-16 Hannes Domani <ssbssa@yahoo.de>
14539
14540 * windows-tdep.c (windows_get_tlb_type):
14541 Add rtl_user_process_parameters type.
14542
790f1718 145432020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14544 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14545
14546 PR build/24805
14547 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14548 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14549 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14550 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14551 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14552 (ps_plog): Redeclare exported functions with default visibility.
14553
3112ed97
NA
145542020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14555
14556 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14557 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14558
8dc3273e
SM
145592020-01-15 Simon Marchi <simon.marchi@efficios.com>
14560
14561 * infcmd.c (post_create_inferior): Use get_thread_regcache
14562 instead of get_current_regcache.
14563
ff47f4f0
TT
145642020-01-14 Tom Tromey <tom@tromey.com>
14565
14566 PR symtab/12535:
14567 * python/python.c (gdbpy_decode_line): Treat empty string the same
14568 as no argument.
14569
975f45b7
TT
145702020-01-14 Tom Tromey <tom@tromey.com>
14571
14572 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14573
25e57356
TT
145742020-01-14 Tom Tromey <tom@tromey.com>
14575
14576 * nat/linux-btrace.c: Don't include <config.h>.
14577 * nat/linux-ptrace.c: Don't include <config.h>.
14578 * nat/x86-linux-dregs.c: Don't include <config.h>.
14579
05ea2a05
TT
145802020-01-14 Tom Tromey <tom@tromey.com>
14581
14582 * configure: Rebuild.
14583 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14584
01027315
TT
145852020-01-14 Tom Tromey <tom@tromey.com>
14586
14587 * nat/x86-linux-dregs.c: Include configh.h.
14588 * nat/linux-ptrace.c: Include configh.h.
14589 * nat/linux-btrace.c: Include configh.h.
14590 * defs.h: Include config.h, bfd.h.
14591 * configure.ac: Don't source common.host.
14592 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14593 * configure: Rebuild.
14594 * acinclude.m4: Update path.
14595 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14596 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14597 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14598 (CLIBS): Add LIBSUPPORT.
14599 (CDEPS): Likewise.
14600 (COMMON_SFILES): Remove gdbsupport files.
14601 (HFILES_NO_SRCDIR): Likewise.
14602 (stamp-version): Update path to create-version.sh.
14603 (ALLDEPFILES): Remove gdbsupport files.
14604
b2ceabe8
TT
146052020-01-14 Tom Tromey <tom@tromey.com>
14606
14607 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14608 USE_WIN32API when needed.
14609 * configure.ac (USE_WIN32API): Don't define.
14610 (WIN32LIBS): Use WIN32APILIBS.
14611 * configure: Rebuild.
14612
25c51f71
TT
146132020-01-14 Tom Tromey <tom@tromey.com>
14614
14615 * configure: Rebuild.
14616 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14617
717c684d
BE
146182020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14619
14620 * skip.c (skip_function_command): Make skip w/o arguments use the
14621 name of the inlined function if pc is inside any inlined function.
14622
7da6a5b9
LM
146232020-01-14 Luis Machado <luis.machado@linaro.org>
14624
14625 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14626 * infrun.c (resume_1): Likewise.
14627 (handle_inferior_event): Remove stale comment.
14628 * linux-nat.c (linux_nat_target::resume): Update comments.
14629 (save_stop_reason): Likewise.
14630 (linux_nat_filter_event): Likewise.
14631 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14632
44e4c775
AB
146332020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14634
14635 * elfread.c (record_minimal_symbol): Set section index to 0 for
14636 non-allocatable sections.
14637
18a8505e
AT
14638
146392020-01-13 Ali Tamur <tamur@google.com>
14640
14641 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14642 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14643 to gdb::optional. Update comments.
14644 (dwo_file): Update comments.
14645 (read_attribute): Update API to take an additional out parameter,
14646 need_reprocess. This is used to mark attributes that need other
14647 attributes (e.g. str_offsets_base) for correct computation which may not
14648 have been read yet.
14649 (read_attribute_reprocess): New function declaration.
14650 (read_addr_index): Likewise.
14651 (read_dwo_str_index): Likewise.
14652 (read_stub_str_index): Likewise.
14653 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14654 (lookup_addr_base): New function definition.
14655 (lookup_ranges_base): Likewise.
14656 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14657 lookup_ranges_base.
14658 (init_cutu_and_read_dies): Update comments.
14659 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14660 unit. This is used to inherit parent's str_offsets_base and addr_base.
14661 Update comments.
14662 (init_cutu_and_read_dies_simple): Reflect API changes.
14663 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14664 (create_cus_hash_table): Change API to take parent compile unit.
14665 Reflect API changes.
14666 (open_and_init_dwo_file): Reflect API changes.
14667 (dwarf2_get_pc_bounds): Update comments.
14668 (dwarf2_record_block_ranges): Likewise.
14669 (read_full_die_1): Change implementation to reprocess attributes that
14670 need str_offsets_base and addr_base.
14671 (partial_die_info::read): Likewise.
14672 (read_attribute_reprocess): New function definition.
14673 (read_attribute_value): Change API to take an additional out parameter,
14674 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14675 when a non-dwo compile unit has index based attributes.
14676 (read_attribute): Reflect API changes.
14677 (read_addr_index_1): Reflect API changes. Update comments.
14678 (dwarf2_read_addr_index_data): Reflect API changes.
14679 (dwarf2_read_addr_index): Likewise.
14680 (read_str_index): Change API and implementation. This becomes a helper
14681 to be used by the new string index related methods. Update error
14682 message and comments.
14683 (read_dwo_str_index): New function definition.
14684 (read_stub_str_index): Likewise.
14685 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14686 * symfile.h (dwarf2_debug_sections): Likewise.
14687 * xcoffread.c (dwarf2_debug_sections): Likewise.
14688
0cac9354
SM
146892020-01-13 Simon Marchi <simon.marchi@efficios.com>
14690
14691 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14692 core_reg_sect type to gdb_byte *.
14693 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14694 * cris-tdep.c (fetch_core_registers): Likewise.
14695 * corelow.c (core_target::get_core_register_section): Change
14696 type of `contents` to gdb::byte_vector.
14697
9a6d629c
AB
146982020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14699
14700 * tui/tui-wingeneral.c (box_win): Position the title in the center
14701 of the border.
14702
d8b2f9e3
SM
147032020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14704
14705 * corelow.c (core_target::get_core_register_section): Use
14706 std::vector instead of alloca.
14707
bb564c58
SM
147082020-01-13 Simon Marchi <simon.marchi@efficios.com>
14709
14710 * warning.m4: Add -Wmissing-declarations to build_warnings.
14711 * configure: Re-generate.
14712
6b366111
SM
147132020-01-13 Simon Marchi <simon.marchi@efficios.com>
14714
14715 * python/python.c (init__gdb_module): Add declaration.
14716
6c265988
SM
147172020-01-13 Simon Marchi <simon.marchi@efficios.com>
14718
14719 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14720 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14721 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14722 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14723 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14724 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14725 * ada-exp.y (_initialize_ada_exp): Add declaration.
14726 * ada-lang.c (_initialize_ada_language): Add declaration.
14727 * ada-tasks.c (_initialize_tasks): Add declaration.
14728 * agent.c (_initialize_agent): Add declaration.
14729 * aix-thread.c (_initialize_aix_thread): Add declaration.
14730 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14731 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14732 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14733 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14734 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14735 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14736 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14737 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14738 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14739 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14740 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14741 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14742 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14743 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14744 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14745 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14746 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14747 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14748 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14749 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14750 * annotate.c (_initialize_annotate): Add declaration.
14751 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14752 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14753 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14754 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14755 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14756 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14757 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14758 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14759 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14760 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14761 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14762 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14763 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14764 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14765 * auto-load.c (_initialize_auto_load): Add declaration.
14766 * auxv.c (_initialize_auxv): Add declaration.
14767 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14768 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14769 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14770 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14771 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14772 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14773 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14774 * breakpoint.c (_initialize_breakpoint): Add declaration.
14775 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14776 * btrace.c (_initialize_btrace): Add declaration.
14777 * charset.c (_initialize_charset): Add declaration.
14778 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14779 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14780 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14781 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14782 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14783 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14784 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14785 * coffread.c (_initialize_coffread): Add declaration.
14786 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14787 * compile/compile.c (_initialize_compile): Add declaration.
14788 * complaints.c (_initialize_complaints): Add declaration.
14789 * completer.c (_initialize_completer): Add declaration.
14790 * copying.c (_initialize_copying): Add declaration.
14791 * corefile.c (_initialize_core): Add declaration.
14792 * corelow.c (_initialize_corelow): Add declaration.
14793 * cp-abi.c (_initialize_cp_abi): Add declaration.
14794 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14795 * cp-support.c (_initialize_cp_support): Add declaration.
14796 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14797 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14798 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14799 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14800 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14801 * ctfread.c (_initialize_ctfread): Add declaration.
14802 * d-lang.c (_initialize_d_language): Add declaration.
14803 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14804 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14805 * dbxread.c (_initialize_dbxread): Add declaration.
14806 * dcache.c (_initialize_dcache): Add declaration.
14807 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14808 * disasm.c (_initialize_disasm): Add declaration.
14809 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14810 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14811 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14812 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14813 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14814 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14815 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14816 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14817 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14818 * elfread.c (_initialize_elfread): Add declaration.
14819 * exec.c (_initialize_exec): Add declaration.
14820 * extension.c (_initialize_extension): Add declaration.
14821 * f-lang.c (_initialize_f_language): Add declaration.
14822 * f-valprint.c (_initialize_f_valprint): Add declaration.
14823 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14824 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14825 * filesystem.c (_initialize_filesystem): Add declaration.
14826 * findcmd.c (_initialize_mem_search): Add declaration.
14827 * findvar.c (_initialize_findvar): Add declaration.
14828 * fork-child.c (_initialize_fork_child): Add declaration.
14829 * frame-base.c (_initialize_frame_base): Add declaration.
14830 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14831 * frame.c (_initialize_frame): Add declaration.
14832 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14833 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14834 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14835 * gcore.c (_initialize_gcore): Add declaration.
14836 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14837 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14838 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14839 * gdbarch.c (_initialize_gdbarch): Add declaration.
14840 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14841 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14842 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14843 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14844 * go-lang.c (_initialize_go_language): Add declaration.
14845 * go32-nat.c (_initialize_go32_nat): Add declaration.
14846 * guile/guile.c (_initialize_guile): Add declaration.
14847 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14848 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14849 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14850 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14851 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14852 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14853 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14854 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14855 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14856 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14857 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14858 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14859 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14860 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14861 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14862 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14863 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14864 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14865 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14866 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14867 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14868 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14869 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14870 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14871 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14872 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14873 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14874 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14875 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14876 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14877 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14878 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14879 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14880 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14881 * infcall.c (_initialize_infcall): Add declaration.
14882 * infcmd.c (_initialize_infcmd): Add declaration.
14883 * inflow.c (_initialize_inflow): Add declaration.
14884 * infrun.c (_initialize_infrun): Add declaration.
14885 * interps.c (_initialize_interpreter): Add declaration.
14886 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14887 * jit.c (_initialize_jit): Add declaration.
14888 * language.c (_initialize_language): Add declaration.
14889 * linux-fork.c (_initialize_linux_fork): Add declaration.
14890 * linux-nat.c (_initialize_linux_nat): Add declaration.
14891 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14892 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14893 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14894 * m2-lang.c (_initialize_m2_language): Add declaration.
14895 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14896 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14897 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14898 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14899 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14900 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14901 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14902 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14903 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14904 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14905 * machoread.c (_initialize_machoread): Add declaration.
14906 * macrocmd.c (_initialize_macrocmd): Add declaration.
14907 * macroscope.c (_initialize_macroscope): Add declaration.
14908 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14909 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14910 * maint.c (_initialize_maint_cmds): Add declaration.
14911 * mdebugread.c (_initialize_mdebugread): Add declaration.
14912 * memattr.c (_initialize_mem): Add declaration.
14913 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14914 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14915 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14916 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14917 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14918 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14919 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14920 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14921 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14922 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14923 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14924 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14925 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14926 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14927 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14928 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14929 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14930 * mipsread.c (_initialize_mipsread): Add declaration.
14931 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14932 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14933 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14934 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14935 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14936 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14937 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14938 * nto-procfs.c (_initialize_procfs): Add declaration.
14939 * objc-lang.c (_initialize_objc_language): Add declaration.
14940 * observable.c (_initialize_observer): Add declaration.
14941 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14942 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14943 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14944 * osabi.c (_initialize_gdb_osabi): Add declaration.
14945 * osdata.c (_initialize_osdata): Add declaration.
14946 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14947 * parse.c (_initialize_parse): Add declaration.
14948 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14949 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14950 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14951 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14952 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14953 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14954 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14955 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14956 * printcmd.c (_initialize_printcmd): Add declaration.
14957 * probe.c (_initialize_probe): Add declaration.
14958 * proc-api.c (_initialize_proc_api): Add declaration.
14959 * proc-events.c (_initialize_proc_events): Add declaration.
14960 * proc-service.c (_initialize_proc_service): Add declaration.
14961 * procfs.c (_initialize_procfs): Add declaration.
14962 * producer.c (_initialize_producer): Add declaration.
14963 * psymtab.c (_initialize_psymtab): Add declaration.
14964 * python/python.c (_initialize_python): Add declaration.
14965 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14966 * record-btrace.c (_initialize_record_btrace): Add declaration.
14967 * record-full.c (_initialize_record_full): Add declaration.
14968 * record.c (_initialize_record): Add declaration.
14969 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14970 * regcache.c (_initialize_regcache): Add declaration.
14971 * reggroups.c (_initialize_reggroup): Add declaration.
14972 * remote-notif.c (_initialize_notif): Add declaration.
14973 * remote-sim.c (_initialize_remote_sim): Add declaration.
14974 * remote.c (_initialize_remote): Add declaration.
14975 * reverse.c (_initialize_reverse): Add declaration.
14976 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14977 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14978 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14979 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14980 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14981 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14982 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14983 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14984 Add declaration.
14985 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14986 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14987 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14988 * rust-exp.y (_initialize_rust_exp): Add declaration.
14989 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14990 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14991 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14992 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14993 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14994 * score-tdep.c (_initialize_score_tdep): Add declaration.
14995 * ser-go32.c (_initialize_ser_dos): Add declaration.
14996 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14997 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14998 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14999 * ser-uds.c (_initialize_ser_socket): Add declaration.
15000 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15001 * serial.c (_initialize_serial): Add declaration.
15002 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15003 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15004 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15005 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15006 * skip.c (_initialize_step_skip): Add declaration.
15007 * sol-thread.c (_initialize_sol_thread): Add declaration.
15008 * solib-aix.c (_initialize_solib_aix): Add declaration.
15009 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15010 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15011 * solib-frv.c (_initialize_frv_solib): Add declaration.
15012 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15013 * solib-target.c (_initialize_solib_target): Add declaration.
15014 * solib.c (_initialize_solib): Add declaration.
15015 * source-cache.c (_initialize_source_cache): Add declaration.
15016 * source.c (_initialize_source): Add declaration.
15017 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15018 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15019 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15020 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15021 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15022 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15023 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15024 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15025 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15026 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15027 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15028 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15029 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15030 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15031 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15032 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15033 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15034 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15035 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15036 * stabsread.c (_initialize_stabsread): Add declaration.
15037 * stack.c (_initialize_stack): Add declaration.
15038 * stap-probe.c (_initialize_stap_probe): Add declaration.
15039 * std-regs.c (_initialize_frame_reg): Add declaration.
15040 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15041 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15042 * symfile.c (_initialize_symfile): Add declaration.
15043 * symmisc.c (_initialize_symmisc): Add declaration.
15044 * symtab.c (_initialize_symtab): Add declaration.
15045 * target.c (_initialize_target): Add declaration.
15046 * target-connection.c (_initialize_target_connection): Add
15047 declaration.
15048 * target-dcache.c (_initialize_target_dcache): Add declaration.
15049 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15050 * thread.c (_initialize_thread): Add declaration.
15051 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15052 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15053 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15054 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15055 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15056 * tracectf.c (_initialize_ctf): Add declaration.
15057 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15058 * tracefile.c (_initialize_tracefile): Add declaration.
15059 * tracepoint.c (_initialize_tracepoint): Add declaration.
15060 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15061 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15062 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15063 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15064 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15065 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15066 * tui/tui.c (_initialize_tui): Add declaration.
15067 * typeprint.c (_initialize_typeprint): Add declaration.
15068 * ui-style.c (_initialize_ui_style): Add declaration.
15069 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15070 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15071 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15072 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15073 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15074 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15075 * unittests/filtered_iterator-selftests.c
15076 (_initialize_filtered_iterator_selftests): Add declaration.
15077 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15078 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15079 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15080 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15081 * unittests/main-thread-selftests.c
15082 (_initialize_main_thread_selftests): Add declaration.
15083 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15084 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15085 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15086 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15087 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15088 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15089 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15090 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15091 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15092 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15093 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15094 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15095 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15096 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15097 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15098 declaration.
15099 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15100 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15101 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15102 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15103 * user-regs.c (_initialize_user_regs): Add declaration.
15104 * utils.c (_initialize_utils): Add declaration.
15105 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15106 * valops.c (_initialize_valops): Add declaration.
15107 * valprint.c (_initialize_valprint): Add declaration.
15108 * value.c (_initialize_values): Add declaration.
15109 * varobj.c (_initialize_varobj): Add declaration.
15110 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15111 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15112 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15113 * windows-nat.c (_initialize_windows_nat): Add declaration.
15114 (_initialize_check_for_gdb_ini): Add declaration.
15115 (_initialize_loadable): Add declaration.
15116 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15117 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15118 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15119 * xcoffread.c (_initialize_xcoffread): Add declaration.
15120 * xml-support.c (_initialize_xml_support): Add declaration.
15121 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15122 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15123 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15124 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15125
e2de1eec
SM
151262020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15127
15128 * regformats/regdat.sh: Generate declaration for init function.
15129
e0037b4c
SM
151302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15131
15132 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15133 up.
15134 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15135 close_one_inferior>: New methods.
15136 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15137 pass down target to find_inferior_pid.
15138 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15139 Pass down target to find_inferior_ptid.
15140 (gdbsim_target::create_inferior): Pass down target to
15141 add_thread_silent.
15142 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15143 target down to find_inferior_ptid and switch_to_thread.
15144 (gdbsim_target::close): Update to call close_one_inferior.
15145 (struct resume_data): Remove.
15146 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15147 directly, rather than through a void pointer.
15148 (gdbsim_target::resume): Update to call resume_one_inferior.
15149
58920b5b
SM
151502020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15151
15152 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15153
4ec89149
PA
151542020-01-12 Pedro Alves <palves@redhat.com>
15155
15156 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15157 directly for the current inferior instead of
15158 discard_all_inferiors.
15159 (discard_all_inferiors): Delete.
15160
7c392d1d
TT
151612020-01-11 Tom Tromey <tom@tromey.com>
15162
15163 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15164 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15165 deprecated_safe_get_selected_frame.
15166
d9ebdab7
TBA
151672020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15168
15169 * inferior.c (print_inferior): Switch inferior before printing it.
15170
f3c469b9
PA
151712020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15172 Pedro Alves <palves@redhat.com>
15173
15174 * progspace-and-thread.c (switch_to_program_space_and_thread):
15175 Assert there's an inferior for PSPACE. Use
15176 switch_to_inferior_no_thread to switch the inferior too.
15177 * progspace.c (program_space::~program_space): Call
15178 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15179 (program_space::free_all_objfiles): Don't call clear_symtab_users
15180 here.
15181 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15182
65c574f6
PA
151832020-01-10 Pedro Alves <palves@redhat.com>
15184
15185 * NEWS: Mention multi-target debugging, "info connections", and
15186 "add-inferior -no-connection".
15187
2f4fcf00
PA
151882020-01-10 Pedro Alves <palves@redhat.com>
15189
15190 * infrun.c: Include "target-connection.h".
15191 (check_multi_target_resumption): New.
15192 (proceed): Call it.
15193 * target-connection.c (make_target_connection_string): Make
15194 extern.
15195 * target-connection.h (make_target_connection_string): Declare.
15196
121b3efd
PA
151972020-01-10 Pedro Alves <palves@redhat.com>
15198
15199 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15200 * inferior.c (uiout_field_connection): New function.
15201 (print_inferior): Add new "connection-id" column.
15202 (add_inferior_command): Show connection number/string of added
15203 inferior.
15204 * process-stratum-target.h
15205 (process_stratum_target::connection_string): New virtual method.
15206 (process_stratum_target::connection_number): New field.
15207 * remote.c (remote_target::connection_string): New override.
15208 * target-connection.c: New file.
15209 * target-connection.h: New file.
15210 * target.c (decref_target): Remove process_stratum targets from
15211 the connection list.
15212 (target_stack::push): Add process_stratum targets to the
15213 connection list.
15214
4f837581
PA
152152020-01-10 Pedro Alves <palves@redhat.com>
15216
15217 Revert:
15218 2016-04-12 Pedro Alves <palves@redhat.com>
15219 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15220 Remove references to name.
15221 * serial.h (struct serial) <name>: Delete.
15222
f4ec508e
PA
152232020-01-10 Pedro Alves <palves@redhat.com>
15224
15225 * gdbarch-selftests.c (register_to_value_test): Remove "target
15226 already pushed" check.
15227
5b6d1e4f
PA
152282020-01-10 Pedro Alves <palves@redhat.com>
15229 John Baldwin <jhb@FreeBSD.org>
15230
15231 * aarch64-linux-nat.c
15232 (aarch64_linux_nat_target::thread_architecture): Adjust.
15233 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15234 (task_command_1): Likewise.
15235 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15236 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15237 (aix_thread_target::store_registers)
15238 (aix_thread_target::thread_alive): Adjust.
15239 * amd64-fbsd-tdep.c: Include "inferior.h".
15240 (amd64fbsd_get_thread_local_address): Pass down target.
15241 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15242 thread's gdbarch instead of target_gdbarch.
15243 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15244 get_last_target_status.
15245 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15246 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15247 inferiors.
15248 (update_inserted_breakpoint_locations): Skip if inferiors with no
15249 execution.
15250 (update_global_location_list): When handling moribund locations,
15251 find representative inferior for location's pspace, and use thread
15252 count of its process_stratum target.
15253 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15254 * bsd-uthread.c (bsd_uthread_target::wait): Use
15255 as_process_stratum_target and adjust thread_change_ptid and
15256 add_thread calls.
15257 (bsd_uthread_target::update_thread_list): Use
15258 as_process_stratum_target and adjust find_thread_ptid,
15259 thread_change_ptid and add_thread calls.
15260 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15261 find_thread_ptid call.
15262 * corelow.c (add_to_thread_list): Adjust add_thread call.
15263 (core_target_open): Adjust add_thread_silent and thread_count
15264 calls.
15265 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15266 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15267 * event-top.c (async_disconnect): Pop targets from all inferiors.
15268 * exec.c (add_target_sections): Push exec target on all inferiors
15269 sharing the program space.
15270 (remove_target_sections): Remove the exec target from all
15271 inferiors sharing the program space.
15272 (exec_on_vfork): New.
15273 * exec.h (exec_on_vfork): Declare.
15274 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15275 Pass it down.
15276 (fbsd_nat_target::update_thread_list): Adjust.
15277 (fbsd_nat_target::resume): Adjust.
15278 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15279 down.
15280 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15281 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15282 get_thread_arch_regcache call.
15283 * fork-child.c (gdb_startup_inferior): Pass target down to
15284 startup_inferior and set_executing.
15285 * gdbthread.h (struct process_stratum_target): Forward declare.
15286 (add_thread, add_thread_silent, add_thread_with_info)
15287 (in_thread_list): Add process_stratum_target parameter.
15288 (find_thread_ptid(inferior*, ptid_t)): New overload.
15289 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15290 parameter.
15291 (all_threads()): Delete overload.
15292 (all_threads, all_non_exited_threads): Add process_stratum_target
15293 parameter.
15294 (all_threads_safe): Use brace initialization.
15295 (thread_count): Add process_stratum_target parameter.
15296 (set_resumed, set_running, set_stop_requested, set_executing)
15297 (threads_are_executing, finish_thread_state): Add
15298 process_stratum_target parameter.
15299 (switch_to_thread): Use is_current_thread.
15300 * i386-fbsd-tdep.c: Include "inferior.h".
15301 (i386fbsd_get_thread_local_address): Pass down target.
15302 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15303 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15304 have_inferiors check.
15305 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15306 (inf_ptrace_target::attach): Adjust.
15307 * infcall.c (run_inferior_call): Adjust.
15308 * infcmd.c (run_command_1): Pass target to
15309 scoped_finish_thread_state.
15310 (proceed_thread_callback): Skip inferiors with no execution.
15311 (continue_command): Rename 'all_threads' local to avoid hiding
15312 'all_threads' function. Adjust get_last_target_status call.
15313 (prepare_one_step): Adjust set_running call.
15314 (signal_command): Use user_visible_resume_target. Compare thread
15315 pointers instead of inferior_ptid.
15316 (info_program_command): Adjust to pass down target.
15317 (attach_command): Mark target's 'thread_executing' flag.
15318 (stop_current_target_threads_ns): New, factored out from ...
15319 (interrupt_target_1): ... this. Switch inferior before making
15320 target calls.
15321 * inferior-iter.h
15322 (struct all_inferiors_iterator, struct all_inferiors_range)
15323 (struct all_inferiors_safe_range)
15324 (struct all_non_exited_inferiors_range): Filter on
15325 process_stratum_target too. Remove explicit.
15326 * inferior.c (inferior::inferior): Push dummy target on target
15327 stack.
15328 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15329 Add process_stratum_target parameter, and pass it down.
15330 (have_live_inferiors): Adjust.
15331 (switch_to_inferior_and_push_target): New.
15332 (add_inferior_command, clone_inferior_command): Handle
15333 "-no-connection" parameter. Use
15334 switch_to_inferior_and_push_target.
15335 (_initialize_inferior): Mention "-no-connection" option in
15336 the help of "add-inferior" and "clone-inferior" commands.
15337 * inferior.h: Include "process-stratum-target.h".
15338 (interrupt_target_1): Use bool.
15339 (struct inferior) <push_target, unpush_target, target_is_pushed,
15340 find_target_beneath, top_target, process_target, target_at,
15341 m_stack>: New.
15342 (discard_all_inferiors): Delete.
15343 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15344 (all_inferiors, all_non_exited_inferiors): Add
15345 process_stratum_target parameter.
15346 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15347 (target_last_proc_target): New global.
15348 (follow_fork_inferior): Push target on new inferior. Pass target
15349 to add_thread_silent. Call exec_on_vfork. Handle target's
15350 reference count.
15351 (follow_fork): Adjust get_last_target_status call. Also consider
15352 target.
15353 (follow_exec): Push target on new inferior.
15354 (struct execution_control_state) <target>: New field.
15355 (user_visible_resume_target): New.
15356 (do_target_resume): Call target_async.
15357 (resume_1): Set target's threads_executing flag. Consider resume
15358 target.
15359 (commit_resume_all_targets): New.
15360 (proceed): Also consider resume target. Skip threads of inferiors
15361 with no execution. Commit resumtion in all targets.
15362 (start_remote): Pass current inferior to wait_for_inferior.
15363 (infrun_thread_stop_requested): Consider target as well. Pass
15364 thread_info pointer to clear_inline_frame_state instead of ptid.
15365 (infrun_thread_thread_exit): Consider target as well.
15366 (random_pending_event_thread): New inferior parameter. Use it.
15367 (do_target_wait): Rename to ...
15368 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15369 down.
15370 (threads_are_resumed_pending_p, do_target_wait): New.
15371 (prepare_for_detach): Adjust calls.
15372 (wait_for_inferior): New inferior parameter. Handle it. Use
15373 do_target_wait_1 instead of do_target_wait.
15374 (fetch_inferior_event): Adjust. Switch to representative
15375 inferior. Pass target down.
15376 (set_last_target_status): Add process_stratum_target parameter.
15377 Save target in global.
15378 (get_last_target_status): Add process_stratum_target parameter and
15379 handle it.
15380 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15381 (context_switch): Check inferior_ptid == null_ptid before calling
15382 inferior_thread().
15383 (get_inferior_stop_soon): Pass down target.
15384 (wait_one): Rename to ...
15385 (poll_one_curr_target): ... this.
15386 (struct wait_one_event): New.
15387 (wait_one): New.
15388 (stop_all_threads): Adjust.
15389 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15390 event's target.
15391 (switch_back_to_stepped_thread): Also consider target.
15392 (print_stop_event): Update.
15393 (normal_stop): Update. Also consider the resume target.
15394 * infrun.h (wait_for_inferior): Remove declaration.
15395 (user_visible_resume_target): New declaration.
15396 (get_last_target_status, set_last_target_status): New
15397 process_stratum_target parameter.
15398 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15399 process_stratum_target parameter, and use it.
15400 (clear_inline_frame_state (thread_info*)): New.
15401 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15402 process_stratum_target parameter.
15403 (clear_inline_frame_state (thread_info*)): Declare.
15404 * linux-fork.c (delete_checkpoint_command): Pass target down to
15405 find_thread_ptid.
15406 (checkpoint_command): Adjust.
15407 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15408 instead of just tweaking inferior_ptid.
15409 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15410 (exit_lwp): Pass target down to find_thread_ptid.
15411 (attach_proc_task_lwp_callback): Pass target down to
15412 add_thread/set_running/set_executing.
15413 (linux_nat_target::attach): Pass target down to
15414 thread_change_ptid.
15415 (get_detach_signal): Pass target down to find_thread_ptid.
15416 Consider last target status's target.
15417 (linux_resume_one_lwp_throw, resume_lwp)
15418 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15419 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15420 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15421 (linux_nat_target::async_wait_fd): New.
15422 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15423 target down.
15424 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15425 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15426 * linux-thread-db.c (struct thread_db_info::process_target): New
15427 field.
15428 (add_thread_db_info): Save target.
15429 (get_thread_db_info): New process_stratum_target parameter. Also
15430 match target.
15431 (delete_thread_db_info): New process_stratum_target parameter.
15432 Also match target.
15433 (thread_from_lwp): Adjust to pass down target.
15434 (thread_db_notice_clone): Pass down target.
15435 (check_thread_db_callback): Pass down target.
15436 (try_thread_db_load_1): Always push the thread_db target.
15437 (try_thread_db_load, record_thread): Pass target down.
15438 (thread_db_target::detach): Pass target down. Always unpush the
15439 thread_db target.
15440 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15441 target down. Always unpush the thread_db target.
15442 (find_new_threads_callback, thread_db_find_new_threads_2)
15443 (thread_db_target::update_thread_list): Pass target down.
15444 (thread_db_target::pid_to_str): Pass current inferior down.
15445 (thread_db_target::get_thread_local_address): Pass target down.
15446 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15447 target down.
15448 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15449 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15450 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15451 (procfs_init_inferior): Rename to ...
15452 (procfs_target::procfs_init_inferior): ... this and adjust.
15453 (procfs_target::create_inferior, procfs_notice_thread)
15454 (procfs_do_thread_registers): Adjust.
15455 * ppc-fbsd-tdep.c: Include "inferior.h".
15456 (ppcfbsd_get_thread_local_address): Pass down target.
15457 * proc-service.c (ps_xfer_memory): Switch current inferior and
15458 program space as well.
15459 (get_ps_regcache): Pass target down.
15460 * process-stratum-target.c
15461 (process_stratum_target::thread_address_space)
15462 (process_stratum_target::thread_architecture): Pass target down.
15463 * process-stratum-target.h
15464 (process_stratum_target::threads_executing): New field.
15465 (as_process_stratum_target): New.
15466 * ravenscar-thread.c
15467 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15468 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15469 down.
15470 * record-btrace.c (record_btrace_target::info_record): Adjust.
15471 (record_btrace_target::record_method)
15472 (record_btrace_target::record_is_replaying)
15473 (record_btrace_target::fetch_registers)
15474 (get_thread_current_frame_id, record_btrace_target::resume)
15475 (record_btrace_target::wait, record_btrace_target::stop): Pass
15476 target down.
15477 * record-full.c (record_full_wait_1): Switch to event thread.
15478 Pass target down.
15479 * regcache.c (regcache::regcache)
15480 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15481 process_stratum_target parameter and handle it.
15482 (current_thread_target): New global.
15483 (get_thread_regcache): Add process_stratum_target parameter and
15484 handle it. Switch inferior before calling target method.
15485 (get_thread_regcache): Pass target down.
15486 (get_thread_regcache_for_ptid): Pass target down.
15487 (registers_changed_ptid): Add process_stratum_target parameter and
15488 handle it.
15489 (registers_changed_thread, registers_changed): Pass target down.
15490 (test_get_thread_arch_aspace_regcache): New.
15491 (current_regcache_test): Define a couple local test_target_ops
15492 instances and use them for testing.
15493 (readwrite_regcache): Pass process_stratum_target parameter.
15494 (cooked_read_test, cooked_write_test): Pass mock_target down.
15495 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15496 (get_thread_arch_aspace_regcache): Add process_stratum_target
15497 parameter.
15498 (regcache::target): New method.
15499 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15500 (regcache::registers_changed_ptid): Add process_stratum_target
15501 parameter.
15502 (regcache::m_target): New field.
15503 (registers_changed_ptid): Add process_stratum_target parameter.
15504 * remote.c (remote_state::supports_vCont_probed): New field.
15505 (remote_target::async_wait_fd): New method.
15506 (remote_unpush_and_throw): Add remote_target parameter.
15507 (get_current_remote_target): Adjust.
15508 (remote_target::remote_add_inferior): Push target.
15509 (remote_target::remote_add_thread)
15510 (remote_target::remote_notice_new_inferior)
15511 (get_remote_thread_info): Pass target down.
15512 (remote_target::update_thread_list): Skip threads of inferiors
15513 bound to other targets. (remote_target::close): Don't discard
15514 inferiors. (remote_target::add_current_inferior_and_thread)
15515 (remote_target::process_initial_stop_replies)
15516 (remote_target::start_remote)
15517 (remote_target::remote_serial_quit_handler): Pass down target.
15518 (remote_target::remote_unpush_target): New remote_target
15519 parameter. Unpush the target from all inferiors.
15520 (remote_target::remote_unpush_and_throw): New remote_target
15521 parameter. Pass it down.
15522 (remote_target::open_1): Check whether the current inferior has
15523 execution instead of checking whether any inferior is live. Pass
15524 target down.
15525 (remote_target::remote_detach_1): Pass down target. Use
15526 remote_unpush_target.
15527 (extended_remote_target::attach): Pass down target.
15528 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15529 (remote_target::append_resumption): Pass down target.
15530 (remote_target::append_pending_thread_resumptions)
15531 (remote_target::remote_resume_with_hc, remote_target::resume)
15532 (remote_target::commit_resume): Pass down target.
15533 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15534 (remote_target::interrupt_query)
15535 (remote_target::remove_new_fork_children)
15536 (remote_target::check_pending_events_prevent_wildcard_vcont)
15537 (remote_target::remote_parse_stop_reply)
15538 (remote_target::process_stop_reply): Pass down target.
15539 (first_remote_resumed_thread): New remote_target parameter. Pass
15540 it down.
15541 (remote_target::wait_as): Pass down target.
15542 (unpush_and_perror): New remote_target parameter. Pass it down.
15543 (remote_target::readchar, remote_target::remote_serial_write)
15544 (remote_target::getpkt_or_notif_sane_1)
15545 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15546 down target.
15547 (remote_target::mourn_inferior): Pass down target. Use
15548 remote_unpush_target.
15549 (remote_target::core_of_thread)
15550 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15551 (remote_target::pid_to_exec_file)
15552 (remote_target::thread_handle_to_thread_info): Pass down target.
15553 (remote_target::async_wait_fd): New.
15554 * riscv-fbsd-tdep.c: Include "inferior.h".
15555 (riscv_fbsd_get_thread_local_address): Pass down target.
15556 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15557 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15558 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15559 Adjust.
15560 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15561 * solib-svr4.c (enable_break): Pass down target.
15562 * spu-multiarch.c (parse_spufs_run): Pass down target.
15563 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15564 * target-delegates.c: Regenerate.
15565 * target.c (g_target_stack): Delete.
15566 (current_top_target): Return the current inferior's top target.
15567 (target_has_execution_1): Refer to the passed-in inferior's top
15568 target.
15569 (target_supports_terminal_ours): Check whether the initial
15570 inferior was already created.
15571 (decref_target): New.
15572 (target_stack::push): Incref/decref the target.
15573 (push_target, push_target, unpush_target): Adjust.
15574 (target_stack::unpush): Defref target.
15575 (target_is_pushed): Return bool. Adjust to refer to the current
15576 inferior's target stack.
15577 (dispose_inferior): Delete, and inline parts ...
15578 (target_preopen): ... here. Only dispose of the current inferior.
15579 (target_detach): Hold strong target reference while detaching.
15580 Pass target down.
15581 (target_thread_name): Add assertion.
15582 (target_resume): Pass down target.
15583 (target_ops::beneath, find_target_at): Adjust to refer to the
15584 current inferior's target stack.
15585 (get_dummy_target): New.
15586 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15587 has a thread running.
15588 (initialize_targets): Rename to ...
15589 (_initialize_target): ... this.
15590 * target.h: Include "gdbsupport/refcounted-object.h".
15591 (struct target_ops): Inherit refcounted_object.
15592 (target_ops::shortname, target_ops::longname): Make const.
15593 (target_ops::async_wait_fd): New method.
15594 (decref_target): Declare.
15595 (struct target_ops_ref_policy): New.
15596 (target_ops_ref): New typedef.
15597 (get_dummy_target): Declare function.
15598 (target_is_pushed): Return bool.
15599 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15600 (all_matching_threads_iterator::all_matching_threads_iterator):
15601 Handle filter target.
15602 * thread-iter.h (struct all_matching_threads_iterator, struct
15603 all_matching_threads_range, class all_non_exited_threads_range):
15604 Filter by target too. Remove explicit.
15605 * thread.c (threads_executing): Delete.
15606 (inferior_thread): Pass down current inferior.
15607 (clear_thread_inferior_resources): Pass down thread pointer
15608 instead of ptid_t.
15609 (add_thread_silent, add_thread_with_info, add_thread): Add
15610 process_stratum_target parameter. Use it for thread and inferior
15611 searches.
15612 (is_current_thread): New.
15613 (thread_info::deletable): Use it.
15614 (find_thread_ptid, thread_count, in_thread_list)
15615 (thread_change_ptid, set_resumed, set_running): New
15616 process_stratum_target parameter. Pass it down.
15617 (set_executing): New process_stratum_target parameter. Pass it
15618 down. Adjust reference to 'threads_executing'.
15619 (threads_are_executing): New process_stratum_target parameter.
15620 Adjust reference to 'threads_executing'.
15621 (set_stop_requested, finish_thread_state): New
15622 process_stratum_target parameter. Pass it down.
15623 (switch_to_thread): Also match inferior.
15624 (switch_to_thread): New process_stratum_target parameter. Pass it
15625 down.
15626 (update_threads_executing): Reimplement.
15627 * top.c (quit_force): Pop targets from all inferior.
15628 (gdb_init): Don't call initialize_targets.
15629 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15630 Declare.
15631 (windows_add_thread, windows_delete_thread): Adjust.
15632 (get_windows_debug_event): Rename to ...
15633 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15634 * tracefile-tfile.c (tfile_target_open): Pass down target.
15635 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15636 Forward declare.
15637 (switch_to_thread): Add process_stratum_target parameter.
15638 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15639 parameter. Use it.
15640 (mi_on_resume): Pass target down.
15641 * nat/fork-inferior.c (startup_inferior): Add
15642 process_stratum_target parameter. Pass it down.
15643 * nat/fork-inferior.h (startup_inferior): Add
15644 process_stratum_target parameter.
15645 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15646
75c6c844
PA
156472020-01-10 Pedro Alves <palves@redhat.com>
15648
15649 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15650 directly. Instead find the first thread in the thread list and
15651 use switch_to_thread.
15652
78f2c40a
PA
156532020-01-10 Pedro Alves <palves@redhat.com>
15654
15655 * remote.c (remote_target::remote_add_inferior): Don't bind a
15656 process to the current inferior if the current inferior is already
15657 bound to a process.
15658
e7af6c70
TBA
156592020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15660 Pedro Alves <palves@redhat.com>
15661
15662 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15663 If no process is specified, return null_ptid instead of
15664 inferior_ptid.
15665 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15666 TARGET_WAITKIND_SIGNALLED with no pid.
15667
31ba933e
PA
156682020-01-10 Pedro Alves <palves@redhat.com>
15669
15670 * remote.c (first_remote_resumed_thread): New.
15671 (remote_target::wait_as): Use it as default event_ptid instead of
15672 inferior_ptid.
15673
735fc2ca
PA
156742020-01-10 Pedro Alves <palves@redhat.com>
15675
15676 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15677
c17e02e1
PA
156782020-01-10 Pedro Alves <palves@redhat.com>
15679
15680 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15681 not -1.
15682
ab1ddbcf
PA
156832020-01-10 Pedro Alves <palves@redhat.com>
15684
15685 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15686 ptid to get_last_target_status.
15687 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15688 ptid to get_last_target_status.
15689 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15690 get_last_target_status.
15691 (info_program_command): Don't pass a target_waitstatus to
15692 get_last_target_status.
15693 * infrun.c (init_wait_for_inferior): Use
15694 nullify_last_target_wait_ptid.
15695 (get_last_target_status): Handle nullptr arguments.
15696 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15697 (print_stop_event): Don't pass a ptid to get_last_target_status.
15698 (normal_stop): Don't pass a ptid to get_last_target_status.
15699 * infrun.h (get_last_target_status, set_last_target_status): Move
15700 comments here and update.
15701 (nullify_last_target_wait_ptid): Declare.
15702 * linux-fork.c (fork_load_infrun_state): Remove local extern
15703 declaration of nullify_last_target_wait_ptid.
15704 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15705 to get_last_target_status.
15706
f3f8ece4
PA
157072020-01-10 Pedro Alves <palves@redhat.com>
15708
15709 * gdbthread.h (scoped_restore_current_thread)
15710 <dont_restore, restore, m_dont_restore>: Declare.
15711 * thread.c (thread_alive): Add assertion. Return bool.
15712 (switch_to_thread_if_alive): New.
15713 (prune_threads): Switch inferior/thread.
15714 (print_thread_info_1): Switch thread before calling target methods.
15715 (scoped_restore_current_thread::restore): New, factored out from
15716 ...
15717 (scoped_restore_current_thread::~scoped_restore_current_thread):
15718 ... this.
15719 (scoped_restore_current_thread::scoped_restore_current_thread):
15720 Add assertion.
15721 (thread_apply_all_command, thread_select): Use
15722 switch_to_thread_if_alive.
15723 * infrun.c (proceed, restart_threads, handle_signal_stop)
15724 (switch_back_to_stepped_thread): Switch current thread before
15725 calling target methods.
15726
db2d40f7
PA
157272020-01-10 Pedro Alves <palves@redhat.com>
15728
15729 * inferior.c (switch_to_inferior_no_thread): New function,
15730 factored out from ...
15731 (inferior_command): ... here.
15732 * inferior.h (switch_to_inferior_no_thread): Declare.
15733 * mi/mi-main.c (run_one_inferior): Use
15734 switch_to_inferior_no_thread.
15735
bd420a2d
PA
157362020-01-10 Pedro Alves <palves@redhat.com>
15737
15738 * infcmd.c (kill_command): Remove dead code.
15739
ddf5db90
PA
157402020-01-10 Pedro Alves <palves@redhat.com>
15741
15742 * remote.c (remote_target::mourn_inferior): No longer check
15743 whether the target is running.
15744
5018ce90
PA
157452020-01-10 Pedro Alves <palves@redhat.com>
15746
15747 * corelow.c (core_target::has_execution): Change parameter type to
15748 inferior pointer.
15749 * inferior.c (number_of_live_inferiors): Use
15750 inferior::has_execution instead of target_has_execution_1.
15751 * inferior.h (inferior::has_execution): New.
15752 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15753 inferior::has_execution instead of target_has_execution_1.
15754 * process-stratum-target.c
15755 (process_stratum_target::has_execution): Change parameter type to
15756 inferior pointer. Check the inferior's PID instead of
15757 inferior_ptid.
15758 * process-stratum-target.h
15759 (process_stratum_target::has_execution): Change parameter type to
15760 inferior pointer.
15761 * record-full.c (record_full_core_target::has_execution): Change
15762 parameter type to inferior pointer.
15763 * target.c (target_has_execution_1): Change parameter type to
15764 inferior pointer.
15765 (target_has_execution_current): Adjust.
15766 * target.h (target_ops::has_execution): Change parameter type to
15767 inferior pointer.
15768 (target_has_execution_1): Change parameter type to inferior
15769 pointer. Change return type to bool.
15770 * tracefile.h (tracefile_target::has_execution): Change parameter
15771 type to inferior pointer.
15772
74375d18
PA
157732020-01-10 Pedro Alves <palves@redhat.com>
15774
15775 * exceptions.c (print_flush): Remove current_top_target() check.
15776
acdf84a6
PA
157772020-01-10 Pedro Alves <palves@redhat.com>
15778
15779 * remote.c (show_remote_exec_file): Show the current inferior's
15780 exec-file instead of the command variable's value.
15781
ec506636
PA
157822020-01-10 Pedro Alves <palves@redhat.com>
15783
15784 * record-full.c (record_full_resume_ptid): New global.
15785 (record_full_target::resume): Set it.
15786 (record_full_wait_1): Use record_full_resume_ptid instead of
15787 inferior_ptid.
15788
873657b9
PA
157892020-01-10 Pedro Alves <palves@redhat.com>
15790
15791 * gdbthread.h (scoped_restore_current_thread)
15792 <dont_restore, restore, m_dont_restore>: Declare.
15793 * thread.c (thread_alive): Add assertion. Return bool.
15794 (switch_to_thread_if_alive): New.
15795 (prune_threads): Switch inferior/thread.
15796 (print_thread_info_1): Switch thread before calling target methods.
15797 (scoped_restore_current_thread::restore): New, factored out from
15798 ...
15799 (scoped_restore_current_thread::~scoped_restore_current_thread):
15800 ... this.
15801 (scoped_restore_current_thread::scoped_restore_current_thread):
15802 Add assertion.
15803 (thread_apply_all_command, thread_select): Use
15804 switch_to_thread_if_alive.
15805
7f0ae84c
GB
158062020-01-10 George Barrett <bob@bob131.so>
15807
15808 * stap-probe.c (stap_modify_semaphore): Don't check for null
15809 semaphores.
15810 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15811 for null semaphores.
15812
f5a7c406
AB
158132020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15814
15815 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15816 all source windows, and maintain horizontal scroll status while
15817 doing so.
15818
9ae6bf64
TT
158192020-01-09 Tom Tromey <tom@tromey.com>
15820
15821 PR tui/18932:
15822 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15823 update_source_window, not print_source_lines.
15824
b2efe70c
AB
158252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15826
15827 * tui/tui.c (tui_enable): Register tui hooks after calling
15828 tui_display_main.
15829
5f23a082
CB
158302020-01-09 Christian Biesinger <cbiesinger@google.com>
15831
15832 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15833
3061113b
SM
158342020-01-08 Simon Marchi <simon.marchi@efficios.com>
15835
15836 * thread.c (print_thread_info_1): Fix indentation.
15837
57d75002
CB
158382020-01-09 Christian Biesinger <cbiesinger@google.com>
15839
15840 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15841 unique_xmalloc_ptr outside the if to always free the demangled name.
15842
6a053cb1
TT
158432020-01-08 Tom Tromey <tromey@adacore.com>
15844
15845 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15846 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15847 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15848 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15849 Remove.
15850 (section_offsets): New typedef.
15851 * symtab.c (fixup_section, get_msymbol_address): Update.
15852 * symmisc.c (dump_msymbols): Update.
15853 * symfile.h (relative_addr_info_to_section_offsets)
15854 (symfile_map_offsets_to_segments): Update.
15855 * symfile.c (build_section_addr_info_from_objfile)
15856 (init_objfile_sect_indices): Update.
15857 (struct place_section_arg): Change type of "offsets".
15858 (place_section): Update.
15859 (relative_addr_info_to_section_offsets): Change type of
15860 "section_offsets". Remove "num_sections" parameter.
15861 (default_symfile_offsets, syms_from_objfile_1)
15862 (set_objfile_default_section_offset): Update.
15863 (reread_symbols): No need to preserve section offsets by hand.
15864 (symfile_map_offsets_to_segments): Change type of "offsets".
15865 * stap-probe.c (relocate_address): Update.
15866 * stabsread.h (process_one_symbol): Update.
15867 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15868 (solib_target_relocate_section_addresses): Update.
15869 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15870 Update.
15871 * solib-frv.c (frv_relocate_main_executable): Update.
15872 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15873 * solib-aix.c (solib_aix_get_section_offsets): Change return
15874 type.
15875 (solib_aix_solib_create_inferior_hook): Update.
15876 * remote.c (remote_target::get_offsets): Update.
15877 * psymtab.c (find_pc_sect_psymtab): Update.
15878 * psympriv.h (struct partial_symbol) <address, text_low,
15879 text_high>: Update.
15880 * objfiles.h (obj_section_offset): Update.
15881 (struct objfile) <section_offsets>: Change type.
15882 <num_sections>: Remove.
15883 (objfile_relocate): Update.
15884 * objfiles.c (entry_point_address_query): Update
15885 (relocate_one_symbol): Change type of "section_offsets".
15886 (objfile_relocate1, objfile_relocate1): Change type of
15887 "new_offsets".
15888 (objfile_rebase1): Update.
15889 * mipsread.c (mipscoff_symfile_read): Update.
15890 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15891 parameter.
15892 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15893 (parse_external, psymtab_to_symtab_1): Update.
15894 * machoread.c (macho_symfile_offsets): Update.
15895 * ia64-tdep.c (ia64_find_unwind_table): Update.
15896 * hppa-tdep.c (read_unwind_info): Update.
15897 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15898 * dwarf2read.c (create_addrmap_from_index)
15899 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15900 (process_psymtab_comp_unit_reader, add_partial_symbol)
15901 (add_partial_subprogram, process_full_comp_unit)
15902 (read_file_scope, read_func_scope, read_lexical_block_scope)
15903 (read_call_site_scope, dwarf2_rnglists_process)
15904 (dwarf2_ranges_process, dwarf2_ranges_read)
15905 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15906 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15907 Update.
15908 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15909 Update.
15910 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15911 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15912 (process_one_symbol): Change type of "section_offsets".
15913 * ctfread.c (get_objfile_text_range): Update.
15914 * coffread.c (coff_symtab_read, enter_linenos)
15915 (process_coff_symbol): Update.
15916 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15917 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15918
456e800a
TT
159192020-01-08 Tom Tromey <tromey@adacore.com>
15920
15921 * dwarf2read.c (parse_macro_definition): Use std::string.
15922 (parse_macro_definition): Likewise.
15923
6dfa2fc2
TT
159242020-01-08 Tom Tromey <tromey@adacore.com>
15925
15926 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15927 (ATTR_ALLOC_CHUNK): Remove.
15928
421d1616
TT
159292020-01-08 Tom Tromey <tromey@adacore.com>
15930
15931 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15932
43816ebc
TT
159332020-01-08 Tom Tromey <tromey@adacore.com>
15934
15935 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15936 (dwarf2_compute_name, open_dwo_file): Likewise.
15937 (process_enumeration_scope): Use std::vector.
15938 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15939 (partial_die_info::fixup, dwarf2_start_subfile)
15940 (guess_full_die_structure_name, dwarf2_name): Likewise.
15941 (determine_prefix): Update.
15942 (guess_full_die_structure_name): Make return type const.
15943 (partial_die_full_name): Return unique_xmalloc_ptr.
15944 (DW_FIELD_ALLOC_CHUNK): Remove.
15945
4212d509
TT
159462020-01-07 Tom Tromey <tromey@adacore.com>
15947
15948 PR build/24937:
15949 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15950
06a6207a
JT
159512020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15952
15953 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15954
153d79c4
AB
159552020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15956
15957 * stack.c (print_frame_info): Move disassemble_next_line code
15958 inside source_print block.
15959
66182876
EZ
159602020-01-06 Eli Zaretskii <eliz@gnu.org>
15961
15962 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15963 gdb/signals.h, as we are now using native signal symbols.
15964
cbfa8581
SV
159652020-01-06 Shahab Vahedi <shahab@synopsys.com>
15966
15967 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15968 overflow by an early check of content vs threshold.
aac66a4c 15969 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15970 Likewise.
15971
3f602821
EZ
159722020-01-06 Eli Zaretskii <eliz@gnu.org>
15973
15974 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15975
a08c904d
JT
159762020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15977
15978 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15979 export table if no section contains it's RVA.
15980
89a65580
EZ
159812020-01-06 Eli Zaretskii <eliz@gnu.org>
15982
15983 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15984
8b7fcda2
HD
159852020-01-06 Hannes Domani <ssbssa@yahoo.de>
15986
15987 * source.c (print_source_lines_base): Set last_line_listed.
15988
a61b4f69
SV
159892020-01-06 Shahab Vahedi <shahab@synopsys.com>
15990
15991 * tui/tui-disasm.c: Remove trailing spaces.
15992
559e7e50
EZ
159932020-01-06 Eli Zaretskii <eliz@gnu.org>
15994 Pedro Alves <palves@redhat.com>
15995
15996 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15997 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15998 (windows_gdb_signal_to_target): New function, uses the above
15999 enumeration to convert GDB internal signal codes to equivalent
16000 Windows codes.
16001 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16002 * windows-nat.c: Include "gdb_wait.h".
16003 (get_windows_debug_event): Extract the fatal exception from the
16004 exit status and convert to the equivalent Posix signal number.
16005 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16006 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16007 * gdbsupport/gdb_wait.c: New file, implements
16008 windows_status_to_termsig.
16009 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16010 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16011
f2302a34
AB
160122020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16013
16014 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16015 show_layout.
16016
6a5206eb
LM
160172020-01-05 Luis Machado <luis.machado@linaro.org>
16018
16019 * aarch64-linux-nat.c
16020 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16021 and bfd_mach_aarch64.
16022
6ec1d75e
PW
160232020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16024
16025 * ui-file.c (stdio_file::can_emit_style_escape)
16026 (tee_file::can_emit_style_escape): Ensure style is used also on
16027 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16028 to gdb_stdout.
16029 * main.c (set_gdb_data_directory): Use file style to output the
16030 warning that the given pathname is not a directory.
16031 * top.c (show_history_filename, gdb_safe_append_history)
16032 (show_gdb_datadir): Use file style.
16033
44f81a76
HD
160342020-01-03 Hannes Domani <ssbssa@yahoo.de>
16035
16036 * solib-target.c (struct lm_info_target):
16037 Change offsets to be a unique_xmalloc_ptr.
16038 (solib_target_relocate_section_addresses): Update.
16039
25057eb0
HD
160402020-01-03 Hannes Domani <ssbssa@yahoo.de>
16041
16042 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16043
6e2118f5
BE
160442020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16045
16046 * MAINTAINERS (Write After Approval): Add myself.
16047
8133c7dc
LM
160482020-01-02 Luis Machado <luis.machado@linaro.org>
16049
16050 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16051 Cell BE architecture.
16052 * target.h (struct target_ops) <thread_architecture>: Likewise.
16053
48189bec
HD
160542020-01-01 Hannes Domani <ssbssa@yahoo.de>
16055
16056 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16057
ead1063b
HD
160582020-01-01 Hannes Domani <ssbssa@yahoo.de>
16059
16060 * MAINTAINERS (Write After Approval): Add myself.
16061
e5d78223
JB
160622020-01-01 Joel Brobecker <brobecker@adacore.com>
16063
16064 * gdbarch.sh: Update copyright year range of generated files.
16065
b811d2c2
JB
160662020-01-01 Joel Brobecker <brobecker@adacore.com>
16067
16068 Update copyright year range in all GDB files.
16069
5f4def5c
JB
160702020-01-01 Joel Brobecker <brobecker@adacore.com>
16071
16072 * copyright.py: Convert to Python 3.
16073
51fd4002
JB
160742020-01-01 Joel Brobecker <brobecker@adacore.com>
16075
16076 * copyright.py: Adapt after move of gnulib directory from gdb
16077 directory to toplevel directory.
16078
5fb651f2
JB
160792020-01-01 Joel Brobecker <brobecker@adacore.com>
16080
16081 * copyright.py (main): Exit if run from the wrong directory.
16082
5dd8bf88
JB
160832020-01-01 Joel Brobecker <brobecker@adacore.com>
16084
16085 * top.c (print_gdb_version): Change copyright year to 2020.
16086
9f71dacb 160872020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16088
9f71dacb 16089 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16090
9f71dacb 16091For older changes see ChangeLog-2019.
c906108c
SS
16092\f
16093Local Variables:
16094mode: change-log
16095left-margin: 8
16096fill-column: 74
16097version-control: never
57da7796 16098coding: utf-8
c906108c 16099End:
This page took 3.123624 seconds and 4 git commands to generate.