Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
58103c33
SM
12020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
4 documentation.
5 * gdbarch.h: Re-generate.
6
40a53766
SM
72020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
10 parameter.
11 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
12 Likewise.
13 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
14 Likewise.
15 * arch-utils.c (default_displaced_step_hw_singlestep):
16 Likewise.
17 * arch-utils.h (default_displaced_step_hw_singlestep):
18 Likewise.
19 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
20 Likewise.
21 * s390-tdep.c (s390_displaced_step_hw_singlestep):
22 Likewise.
23 * gdbarch.c: Re-generate.
24 * gdbarch.h: Re-generate.
25 * infrun.c (resume_1): Adjust.
26
8407f91b
TT
272020-10-29 Tom Tromey <tom@tromey.com>
28
29 * progspace.c (program_space::~program_space): Don't call
30 exec_close.
31
5008b3b2
TT
322020-10-29 Tom Tromey <tom@tromey.com>
33
34 * exec.c (exec_target::close): Don't change current program
35 space.
36
d9eebde0
TT
372020-10-29 Tom Tromey <tom@tromey.com>
38
39 * symfile.c (add_symbol_file_command): Update.
40 * exec.c (program_space::add_target_sections): Rename.
41 * symfile-mem.c (symbol_file_add_from_memory): Update.
42 * progspace.h (struct program_space) <add_target_sections>:
43 Declare new overload.
44 * exec.h (add_target_sections_of_objfile): Don't declare.
45
3769e227
TT
462020-10-29 Tom Tromey <tom@tromey.com>
47
48 * solib.c (solib_map_sections): Update.
49 * exec.c (program_space::add_target_sections): Now a method.
50 (exec_file_attach): Update.
51 * exec.h (add_target_sections): Don't declare.
52 * progspace.h (struct program_space) <add_target_sections>:
53 Declare.
54
2a3f84af
TT
552020-10-29 Tom Tromey <tom@tromey.com>
56
57 * progspace.h (struct program_space) <remove_target_sections>:
58 Declare.
59 * exec.c (program_space::remove_target_sections): Now a method.
60 * exec.h (remove_target_sections): Don't declare.
61
004eecfd
TT
622020-10-29 Tom Tromey <tom@tromey.com>
63
64 * inferior.c (delete_inferior): Update.
65 * progspace.c (program_space::empty): Rename from
66 program_space_empty_p. Return bool.
67 * progspace.h (struct program_space) <empty>: New method.
68 (program_space_empty_p): Don't declare.
69
e39fb971
TT
702020-10-29 Tom Tromey <tom@tromey.com>
71
72 * progspace.c (program_space::~program_space): Don't call
73 clear_program_space_solib_cache.
74 (program_space::clear_solib_cache): Rename from
75 clear_solib_cache.
76 * solib.c (handle_solib_event): Update.
77 * progspace.h (struct program_space) <clear_solib_cache>: New
78 method.
79 (clear_program_space_solib_cache): Don't declare.
80
a42d7dd8
TT
812020-10-29 Tom Tromey <tom@tromey.com>
82
83 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
84 * target.c (info_target_command): Update.
85 * symfile.c (syms_from_objfile_1, finish_new_objfile)
86 (symbol_file_clear, reread_symbols): Update.
87 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
88 * stabsread.c (scan_file_globals): Update.
89 * solib.c (update_solib_list): Update.
90 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
91 (svr4_fetch_objfile_link_map, enable_break)
92 (svr4_relocate_main_executable)
93 (svr4_iterate_over_objfiles_in_search_order): Update.
94 * solib-frv.c (lm_base, enable_break)
95 (frv_relocate_main_executable): Update.
96 (main_got, frv_fdpic_find_canonical_descriptor): Update.
97 (frv_fetch_objfile_link_map): Update.
98 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
99 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
100 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
101 * remote.c (remote_target::get_offsets): Update.
102 (remote_target::start_remote)
103 (extended_remote_target::post_attach): Update.
104 * objfiles.c (entry_point_address_query): Update.
105 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
106 * minsyms.c (get_symbol_leading_char): Update.
107 * frame.c (inside_main_func): Update.
108 * progspace.h (symfile_objfile): Remove macro.
109
19f6550e
TT
1102020-10-29 Tom Tromey <tom@tromey.com>
111
112 * exec.c (exec_file_attach): Update.
113 * progspace.c (program_space::exec_close): Update.
114 * progspace.h (struct program_space) <ebfd>: Now a
115 gdb_bfd_ref_ptr.
116 <set_exec_bfd>: Change argument type.
117 <exec_bfd>: Update.
118
7e10abd1
TT
1192020-10-29 Tom Tromey <tom@tromey.com>
120
121 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
122 * symfile.c (reread_symbols): Update.
123 * symfile-mem.c (add_symbol_file_from_memory_command)
124 (add_vsyscall_page): Update.
125 * source-cache.c (source_cache::get_plain_source_lines): Update.
126 * solib-svr4.c (find_program_interpreter, elf_locate_base)
127 (svr4_current_sos_direct, svr4_exec_displacement)
128 (svr4_relocate_main_executable): Update.
129 (svr4_iterate_over_objfiles_in_search_order): Update.
130 * solib-frv.c (enable_break2, enable_break): Update.
131 * solib-dsbt.c (lm_base, enable_break): Update.
132 * solib-darwin.c (find_program_interpreter)
133 (darwin_solib_create_inferior_hook): Update.
134 * sol-thread.c (rw_common, ps_pdmodel): Update.
135 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
136 * remote.c (compare_sections_command)
137 (remote_target::trace_set_readonly_regions): Update.
138 * remote-sim.c (get_sim_inferior_data)
139 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
140 (gdbsim_target_open, gdbsim_target::files_info): Update.
141 * exec.h (exec_bfd): Remove macro.
142 * progspace.c (initialize_progspace): Update.
143 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
144 Update.
145 * nto-procfs.c (nto_procfs_target::post_attach)
146 (nto_procfs_target::create_inferior): Update.
147 * maint.c (maintenance_info_sections): Update.
148 * linux-thread-db.c (thread_db_target::get_thread_local_address):
149 Update.
150 * infcmd.c (post_create_inferior): Update.
151 * gcore.c (default_gcore_arch, default_gcore_target): Update.
152 (objfile_find_memory_regions): Update.
153 * exec.c (validate_exec_file, exec_file_attach)
154 (exec_read_partial_read_only, print_section_info): Update.
155 * corelow.c (core_target_open): Update.
156 * corefile.c (reopen_exec_file, validate_files): Update.
157 * arm-tdep.c (gdb_print_insn_arm): Update.
158 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
159 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
160 methods.
161
b55221ab
TT
1622020-10-29 Tom Tromey <tom@tromey.com>
163
164 * progspace.h (current_target_sections): Remove macro.
165 * solib-svr4.c (scan_dyntag): Update.
166 * solib-dsbt.c (scan_dyntag): Update.
167 * exec.c (exec_target::close): Update.
168 (add_target_sections, add_target_sections_of_objfile)
169 (remove_target_sections, exec_target::get_section_table)
170 (exec_target::files_info, set_section_command)
171 (exec_set_section_address, exec_target::has_memory)
172 (exec_target::has_memory): Update.
173
5a36e715
TT
1742020-10-29 Tom Tromey <tom@tromey.com>
175
176 * source-cache.c (source_cache::get_plain_source_lines): Use
177 current_program_space.
178 * corefile.c (reopen_exec_file): Use current_program_space.
179 * exec.c (exec_file_attach): Use current_program_space.
180 * exec.h (exec_bfd_mtime): Remove.
181
784c8592
TT
1822020-10-29 Tom Tromey <tom@tromey.com>
183
184 * gcore.c (default_gcore_mach): Remove.
185 (create_gcore_bfd): Update.
186
8a4f1402
TT
1872020-10-29 Tom Tromey <tom@tromey.com>
188
189 * progspace.c (program_space::exec_close): New method, from
190 exec_close in exec.c.
191 * exec.c (exec_close): Move to progspace.c.
192 (exec_target::close, exec_file_attach): Update.
193 * progspace.h (struct program_space) <exec_close>: Declare
194 method.
195
c20cb686
TT
1962020-10-29 Tom Tromey <tom@tromey.com>
197
198 * progspace.h (struct program_space) <exec_filename>: Rename from
199 pspace_exec_filename. Now a unique_xmalloc_ptr.
200 * inferior.c (print_selected_inferior): Update.
201 (print_inferior): Update.
202 * mi/mi-main.c (print_one_inferior): Update.
203 * exec.h (exec_filename): Remove macro.
204 * corefile.c (get_exec_file): Update.
205 * exec.c (exec_close): Update.
206 (exec_file_attach): Update.
207 * progspace.c (clone_program_space): Update.
208 (print_program_space): Update.
209
6be2a9ab
TT
2102020-10-29 Tom Tromey <tom@tromey.com>
211
212 * target-section.h (struct target_section): Add constructor.
213 * exec.c (build_section_table, add_target_sections_of_objfile):
214 Update.
215 * corelow.c (core_target::build_file_mappings): Update.
216
cfaa8f76
TBA
2172020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
218
219 PR gdb/19318
220 * inferior.c (detach_inferior_command): Restore the current thread.
221 (kill_inferior_command): Ditto.
222
1b00ef06
TV
2232020-10-28 Tom de Vries <tdevries@suse.de>
224
225 PR symtab/26772
226 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
227 map, check it in the "best match" loop.
228
7f40ce1a
SM
2292020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * m32c-tdep.c: Remove unused includes.
232
5eb9e3f5
SM
2332020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
234
235 * xtensa-tdep.c: Remove includes.
236
b1d4d8d1
TBA
2372020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
238
239 * breakpoint.c (struct condition_command_opts): New struct.
240 (condition_command_option_defs): New static global.
241 (make_condition_command_options_def_group): New function.
242 (condition_completer): Update to consider the '-force' flag.
243 (condition_command): Use gdb::option for the '-force' flag.
244
bd24c5d6
TV
2452020-10-27 Tom de Vries <tdevries@suse.de>
246
247 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
248 symbols in section check.
249
61eb46a4
TV
2502020-10-27 Tom de Vries <tdevries@suse.de>
251
252 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
253
733d554a
TBA
2542020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
255
256 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
257 * breakpoint.c: Update the help text of the 'condition' and 'break'
258 commands.
259 (set_breakpoint_condition): Take a new bool parameter
260 to control whether condition definition should be forced even when
261 the condition expression is invalid in all of the current locations.
262 (condition_command): Update the call to 'set_breakpoint_condition'.
263 (find_condition_and_thread): Take the "-force-condition" flag into
264 account.
265 * linespec.c (linespec_keywords): Add "-force-condition" as an
266 element.
267 (FORCE_KEYWORD_INDEX): New #define.
268 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
269 as a keyword.
270 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
271 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
272 * python/py-breakpoint.c (bppy_set_condition): Ditto.
273 * NEWS: Mention the changes to the 'break' and 'condition' commands.
274
b5fa468f
TBA
2752020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
276
277 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
278 * breakpoint.c (set_breakpoint_location_condition): New function.
279 (set_breakpoint_condition): Disable a breakpoint location if parsing
280 the condition string gives an error.
281 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
282 (build_target_condition_list): Ditto.
283 (build_target_command_list): Ditto.
284 (build_bpstat_chain): Ditto.
285 (print_one_breakpoint_location): Ditto.
286 (print_one_breakpoint): Ditto.
287 (breakpoint_1): Ditto.
288 (bp_location::bp_location): Ditto.
289 (locations_are_equal): Ditto.
290 (update_breakpoint_locations): Ditto.
291 (enable_disable_bp_num_loc): Ditto.
292 (init_breakpoint_sal): Use set_breakpoint_location_condition.
293 (find_condition_and_thread_for_sals): New static function.
294 (create_breakpoint): Call find_condition_and_thread_for_sals.
295 (location_to_sals): Call find_condition_and_thread_for_sals instead
296 of find_condition_and_thread.
297
1c47ec3e
TV
2982020-10-26 Tom de Vries <tdevries@suse.de>
299
300 * dwarf2/read.c (process_full_comp_unit): Call
301 dwarf2_find_base_address.
302
6390859c
TT
3032020-10-26 Tom Tromey <tromey@adacore.com>
304
305 * gdbtypes.c (create_range_type): Revert previous patch. Add
306 comment.
307
d744f0f9
PA
3082020-10-26 Pedro Alves <pedro@palves.net>
309
310 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
311 (my_waitpid): Use gdb::handle_eintr.
312
006811bc
SM
3132020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * acinclude.m4: Update ptrace.m4 path.
316 * ptrace.m4: Moved to gdbsupport.
317
c75e31a1
SM
3182020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
319
320 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
321 instead of target_gdbarch.
322
32495661
SM
3232020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * jit.c (jit_reader_load_command): Pass current inferior.
326 (jit_inferior_init): Change parameter type to inferior, use it.
327 (jit_inferior_created): Remove.
328 (jit_inferior_created_hook): Pass inferior parameter down.
329 (_initialize_jit): Use jit_inferior_created_hook instead of
330 jit_inferior_created.
331 * jit.h (jit_inferior_created_hook): Add inferior parameter.
332 * infrun.c (follow_exec): Pass inferior to
333 jit_inferior_created_hook.
334
3f66685e
SM
3352020-10-24 Simon Marchi <simon.marchi@efficios.com>
336
337 * linux-thread-db.c (check_pid_namespace_match): Add inferior
338 parameter and use it.
339 (thread_db_inferior_created): Pass inferior argument.
340
a0ff652f
SM
3412020-10-24 Simon Marchi <simon.marchi@efficios.com>
342
343 * aix-thread.c (aix_thread_inferior_created): Add inferior
344 parameter.
345 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
346 * dummy-frame.c (cleanup_dummy_frames): Likewise.
347 * jit.c (jit_inferior_created): Likewise.
348 * linux-thread-db.c (thread_db_inferior_created): Likewise.
349 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
350 * observable.h (inferior_created): Likewise.
351 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
352 * symfile-mem.c (add_vsyscall_page): Likewise.
353 * infcmd.c (post_create_inferior): Pass inferior argument.
354
3c67532c
JB
3552020-10-24 Joel Brobecker <brobecker@adacore.com>
356
357 GDB 10.1 released.
358
8747316e
JB
3592020-10-23 Joel Brobecker <brobecker@adacore.com>
360
361 * ada-typeprint.c (ada_print_type): Remove superfluous second call
362 to ada_check_typedef.
363
1a0ea399
AB
3642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
365
366 * f-exp.y (f_parse): Rename to...
367 (f_language::parser): ...this.
368 * f-lang.c (f_get_encoding): Rename to...
369 (f_language::get_encoding): ...this.
370 (f_op_print_tab): Rename to...
371 (f_language::op_print_tab): ...this.
372 (exp_descriptor_f): Rename to...
373 (f_language::exp_descriptor_tab): ...this.
374 (class f_language): Moved to f-lang.h.
375 (f_language::language_arch_info): New function, moved out of class
376 declaration.
377 (f_language::search_name_hash): Likewise.
378 (f_language::lookup_symbol_nonlocal): Likewise.
379 (f_language::get_symbol_name_matcher_inner): Likewise.
380 * f-lang.h: Add 'valprint.h' include.
381 (class f_language): Moved here from f-lang.c.
382 * f-typeprint.c (f_type_print_args): Delete commented out
383 declaration.
384 (f_print_typedef): Rename to...
385 (f_language::print_typedef): ...this.
386 (f_print_type): Rename to...
387 (f_language::print_type): ...this.
388 (f_type_print_varspec_prefix): Delete declaration and rename to...
389 (f_language::f_type_print_varspec_prefix): ...this.
390 (f_type_print_varspec_suffix): Delete declaration and rename to...
391 (f_language::f_type_print_varspec_suffix): ...this.
392 (f_type_print_base): Delete declaration and rename to...
393 (f_language::f_type_print_base): ...this.
394 * f-valprint.c (f_value_print_inner): Rename to...
395 (f_language::value_print_inner): ...this.
396 * parse.c: Delete 'f-lang.h' include.
397
88cefd9b
AB
3982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * language.h (language_defn::print_type): Add variable names in
401 declaration, and update header comment.
402
5399db93
AB
4032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
404
405 * ada-lang.c (ada_language::demangle): Rename to...
406 (ada_language::demangle_symbol): ...this.
407 * c-lang.c (cplus_language::demangle): Rename to...
408 (cplus_language::demangle_symbol): ...this.
409 * d-lang.c (d_language::demangle): Rename to...
410 (d_language::demangle_symbol): ...this.
411 * f-lang.c (f_language::demangle): Rename to...
412 (f_language::demangle_symbol): ...this.
413 * go-lang.c (go_language::demangle): Rename to...
414 (go_language::demangle_symbol): ...this.
415 * language.c (language_demangle): Update call to demangle_symbol.
416 (auto_or_unknown_language::demangle): Rename to...
417 (auto_or_unknown_language::demangle_symbol): ...this.
418 * language.h (language_defn::demangle): Rename to...
419 (language_defn::demangle_symbol): ...this.
420 * objc-lang.c (objc_language::demangle): Rename to...
421 (objc_language::demangle_symbol): ...this.
422 * rust-lang.c (rust_language::demangle): Rename to...
423 (rust_language::demangle_symbol): ...this.
424
4b2f86ef
AB
4252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
426
427 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
428 (iterate_over_file_blocks): Replace use of macro with the macros
429 definition.
430
e74b39de
AB
4312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
432
433 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
434 * valprint.c (maybe_print_array_index): Replace use of macro with
435 the macros definition.
436
00c696a6
AB
4372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * ada-lang.c (ada_language::print_array_index): Call value_print
440 directly.
441 * language.c (language_defn::print_array_index): Likewise.
442 * language.h (LA_VALUE_PRINT): Delete.
443 * valprint.c (value_print): Call value_print on the
444 current_language directly.
445
d3b67c56
AB
4462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * language.h (LA_PRINT_TYPEDEF): Delete.
449 * typeprint.c (typedef_print): Call print_typedef directly on the
450 current_language object.
451
790e2a12
AB
4522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * m2-exp.y (m2_parse): Rename to...
455 (m2_language::parser): ...this. Update function signature.
456 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
457 (m2_op_print): Rename to...
458 (m2_language::op_print_tab): ...this, and make const.
459 (exp_descriptor_modula2): Rename to...
460 (m2_language::exp_descriptor_modula2): ...this.
461 (class m2_language): Move to m2-lang.h.
462 (m2_language::language_arch_info): New function, moved out of
463 class declaration.
464 (m2_language::printchar): New function, body from m2_printchar.
465 (m2_language::printstr): New function, moved out of class
466 declaration.
467 (m2_language::emitchar): Likewise.
468 * m2-lang.h (m2_parse): Delete declaration.
469 (m2_print_typedef): Delete declaration.
470 (m2_value_print_inner): Delete declaration.
471 (class m2_language): Class declaration moved from m2-lang.c,
472 larger functions are left in m2-lang.c.
473 * m2-typeprint.c (m2_print_typedef): Rename to...
474 (m2_language::print_typedef): ...this, and update function
475 signature.
476 * m2-valprint.c (m2_value_print_inner): Rename to...
477 (m2_language::value_print_inner): ...this, replace use of
478 LA_PRINT_STRING with a direct call to printstr member function,
479 and update recursive call.
480
b01175fc
AB
4812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
482
483 * language.c (default_is_string_type_p): Delete, implementation
484 moved into auto_or_unknown_language::is_string_type_p.
485 (unk_op_print_tab): Moved into
486 auto_or_unknown_language::opcode_print_table.
487 (unknown_language_arch_info): Delete, implementation moved into
488 auto_or_unknown_language::language_arch_info.
489 (class auto_or_unknown_language): New class, member functions
490 copied from unknown_language class, with some updates.
491 (class unknown_language): Most member functions moved into
492 auto_or_unknown_language class. Inherit from
493 auto_or_unknown_language class.
494 (class auto_language): Inherit from auto_or_unknown_language.
495 Delete most member functions.
496
1a97fe8c
HD
4972020-10-22 Hannes Domani <ssbssa@yahoo.de>
498
499 * stabsread.c (read_member_functions): Remove gdb_assert.
500
6b9d0dfd
HD
5012020-10-22 Hannes Domani <ssbssa@yahoo.de>
502
503 * gdbtypes.c (init_complex_type): Check target type name.
504
4b4bb603
SM
5052020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
506
507 * target-debug.h (target_debug_print_struct_target_ops_p):
508 Remove.
509 (target_debug_print_async_callback_ftype_p): Remove.
510 (target_debug_print_struct_trace_state_variable_p): Remove.
511 (target_debug_print_struct_traceframe_info_p): Remove.
512 (target_debug_print_VEC__btrace_block_s__pp): Remove.
513 (target_debug_print_enum_btrace_format): Remove.
514 (target_debug_print_enum_info_proc_what): Remove.
515 (target_debug_print_thread_info_pp): Remove.
516
24f5300a
SM
5172020-10-22 Simon Marchi <simon.marchi@efficios.com>
518
519 * target.h (struct target_ops) <make_corefile_notes>:
520 Change return type to unique pointer.
521 * target.c (dummy_make_corefile_notes): Likewise.
522 * exec.c (struct exec_target) <make_corefile_notes>:
523 Likewise.
524 (exec_target::make_corefile_notes): Likewise.
525 * procfs.c (class procfs_target) <make_corefile_notes>:
526 Likewise.
527 (procfs_do_thread_registers): Adjust to unique pointer.
528 (struct procfs_corefile_thread_data): Add constructor.
529 <note_data>: Change type to unique pointer.
530 (procfs_corefile_thread_callback): Adjust to unique pointer.
531 (procfs_target::make_corefile_notes): Change return type to
532 unique pointer.
533 * target-delegates.c: Re-generate.
534 * gcore.c (write_gcore_file_1): Adjust.
535 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
536 New.
537
5fb4027f
TV
5382020-10-22 Tom de Vries <tdevries@suse.de>
539
540 * block.c (find_block_in_blockvector): Make sure the returned block
541 contains pc.
542
4a636814
SM
5432020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
544
545 PR gdb/26693
546 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
547 parameter.
548 (load_cu): Pass existing CU.
549 (process_imported_unit_die): Likewise.
550 (follow_die_offset): Likewise.
551
1bd57575
LM
5522020-10-22 Luis Machado <luis.machado@linaro.org>
553
554 * corelow.c (core_target::xfer_partial): Also check for an empty
555 m_core_unavailable_mappings vector.
556
6b4c676c
AB
5572020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
560 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
561 * f-exp.y (arglist): Allow for a series of subranges.
562 (subrange): Add cases for subranges with strides.
563 * f-lang.c (value_f90_subarray): Catch use of array strides and
564 throw an error.
565 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
566
f2d8e4c5
AB
5672020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
568
569 * expprint.c (print_subexp_standard): Change enum range_type to
570 range_flag and rename variables to match.
571 (dump_subexp_body_standard): Likewise.
572 * expression.h (enum range_type): Rename to...
573 (enum range_flag): ...this.
574 (range_types): Rename to...
575 (range_flags): ...this.
576 * f-lang.c (value_f90_subarray): Change enum range_type to
577 range_flag and rename variables to match.
578 * parse.c (operator_length_standard): Likewise.
579 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
580 range_type to range_flag.
581 * rust-lang.c (rust_evaluate_funcall): Likewise.
582 (rust_range): Likewise.
583 (rust_compute_range): Likewise.
584 (rust_subscript): Likewise.
585
2f1b18db
AB
5862020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * expprint.c (print_subexp_standard): Update to reflect changes to
589 enum range_type.
590 (dump_subexp_body_standard): Likewise.
591 * expression.h (enum range_type): Convert to a bit field enum, and
592 make the enum unsigned.
593 * f-exp.y (subrange): Update to reflect changes to enum
594 range_type.
595 * f-lang.c (value_f90_subarray): Likewise.
596 * parse.c (operator_length_standard): Likewise.
597 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
598 * rust-lang.c (rust_range): Likewise.
599 (rust_compute_range): Likewise.
600 (rust_subscript): Likewise.
601
a46d1843
SM
6022020-10-21 Simon Marchi <simon.marchi@efficios.com>
603
604 * infrun.c (displaced_step_in_progress_thread): Fix comment.
605 (displaced_step_in_progress): Fix comment.
606
c21f37a8
SM
6072020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
608
609 * gdbarch.sh (make_corefile_notes): Return unique pointer.
610 * gdbarch.c: Re-generate.
611 * gdbarch.h: Re-generate.
612 * gcore.c (write_gcore_file_1): Adjust.
613 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
614 constructor.
615 <note_data>: Change type to unique pointer.
616 <abort_iteration>: Change type to bool.
617 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
618 (fbsd_collect_thread_registers): Return void, adjust.
619 (struct fbsd_corefile_thread_data): Add construtor.
620 <note_data>: Change type to unique pointer.
621 (fbsd_corefile_thread): Adjust.
622 (fbsd_make_corefile_notes): Return unique pointer, adjust.
623 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
624 to unique pointer, adjust.
625 (struct linux_collect_regset_section_cb_data): Add constructor.
626 <note_data>: Change type to unique pointer.
627 <abort_iteration>: Change type to bool.
628 (linux_collect_thread_registers): Return void, adjust.
629 (struct linux_corefile_thread_data): Add constructor.
630 <note_data>: Change type to unique pointer.
631 (linux_corefile_thread): Adjust.
632 (linux_make_corefile_notes): Return unique pointer, adjust.
633
07fbbd01
SM
6342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
637 * gdbarch.c: Re-generate.
638 * gdbarch.h: Re-generate.
639 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
640 bool.
641 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
642 Likewise.
643 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
644 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
645 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
646 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
647
39535193
SM
6482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
649
650 * gdbarch.sh: Make generated predicates return bool.
651 * gdbarch.c: Re-generate.
652 * gdbarch.h: Re-generate.
653
ad523d01
TT
6542020-10-20 Tom Tromey <tom@tromey.com>
655
656 * varobj-iter.h (struct varobj_item): Remove typedef.
657
c4464ade
SM
6582020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
659
660 * infrun.c (currently_stepping): Change int to bool
661 (maybe_software_singlestep): Likewise.
662 (show_stop_on_solib_events): Likewise.
663 (stepping_past_nonsteppable_watchpoint): Likewise.
664 (displaced_step_in_progress_any_inferior): Likewise.
665 (displaced_step_in_progress_thread): Likewise.
666 (keep_going_stepped_thread): Likewise.
667 (thread_still_needs_step_over): Likewise.
668 (start_step_over): Likewise.
669 (do_target_resume): Likewise.
670 (resume_1): Likewise.
671 (clear_proceed_status): Likewise.
672 (thread_still_needs_step_over_bp): Likewise.
673 (proceed): Likewise.
674 (switch_back_to_stepped_thread): Likewise.
675 (adjust_pc_after_break): Likewise.
676 (stepped_in_from): Likewise.
677 (handle_stop_requested): Likewise.
678 (handle_syscall_event): Likewise.
679 (handle_no_resumed): Likewise.
680 (handle_inferior_event): Likewise.
681 (finish_step_over): Likewise.
682 (handle_signal_stop): Likewise.
683 (process_event_stop_test): Likewise.
684
2eb20436
SM
6852020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
686
687 * infrun.c (get_displaced_stepping_state): Fix comment.
688
e0c45ded
AS
6892020-10-20 Andreas Schwab <schwab@linux-m68k.org>
690
691 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
692
22cc388e
TT
6932020-10-19 Tom Tromey <tromey@adacore.com>
694
695 PR tui/26719
696 * tui/tui-winsource.h (struct tui_source_window_base)
697 <refresh_window>: Rename from refresh_pad.
698 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
699 Rename from refresh_pad.
700 (tui_source_window_base::show_source_content)
701 (tui_source_window_base::do_scroll_horizontal): Update.
702
3c6eb4d4
TBA
7032020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
704
705 * thread.c (_initialize_thread): Fine-tune the help text of
706 'info threads'.
707
26703721
TBA
7082020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
709
710 * frame.c: Remove the unused 'uinteger_option_def' type alias.
711
61c26be8
MS
7122020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
713
714 * breakpoint.c (handle_jit_event): Add an argument, change how
715 `jit_event_handler` is called.
716
932539d7
TT
7172020-10-17 Tom Tromey <tom@tromey.com>
718
719 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
720 (scan_xcoff_symtab): Update.
721 * psymtab.h (class psymtab_storage) <global_psymbols,
722 static_psymbols, current_global_psymbols,
723 current_static_psymbols>: Remove.
724 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
725 (match_partial_symbol, lookup_partial_symbol): Update.
726 (print_partial_symbols): Change parameters.
727 (dump_psymtab, recursively_search_psymtabs)
728 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
729 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
730 (concat): Remove.
731 (end_psymtab_common): Simplify.
732 (append_psymbol_to_list): Change parameters.
733 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
734 (init_psymbol_list): Simplify.
735 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
736 * psympriv.h (struct partial_symtab) <empty>: New method.
737 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
738 Remove.
739 <global_psymbols, static_psymbols>: New members.
740 <add_psymbol>: New methods.
741 (add_psymbol_to_list): Don't declare.
742 (psymbol_placement): Move earlier.
743 * mdebugread.c (parse_partial_symbols): Update.
744 (handle_psymbol_enumerators): Change parameters.
745 (mdebug_expand_psymtab): Update.
746 * dwarf2/read.c (process_psymtab_comp_unit_reader)
747 (add_partial_symbol): Update.
748 * dwarf2/index-write.c (write_psymbols): Change parameters.
749 (write_one_signatured_type): Update.
750 (recursively_count_psymbols): Update.
751 (recursively_write_psymbols): Update.
752 (class debug_names) <recursively_write_psymbols>: Update.
753 <write_psymbols>: Change parameters.
754 <write_one_signatured_type>: Update.
755 * dbxread.c (read_dbx_symtab): Update.
756 (dbx_end_psymtab): Use partial_symtab::empty.
757 * ctfread.c (struct ctf_context) <pst>: New member.
758 (create_partial_symtab): Set it.
759 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
760 (scan_partial_symbols): Use the psymtab's context. Update.
761
cfabbd35
TT
7622020-10-17 Tom Tromey <tom@tromey.com>
763
764 * valprint.c (generic_value_print): Remove comment.
765 * m2-valprint.c (m2_value_print_inner): Remove comment.
766 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
767 type.
768
520596f2
TV
7692020-10-17 Tom de Vries <tdevries@suse.de>
770
771 PR symtab/26317
772 * source.c (select_source_symtab): Handling sal.symtab == NULL for
773 symbol main.
774
76547ab3
TV
7752020-10-14 Tom de Vries <tdevries@suse.de>
776
777 PR gdb/26733
778 * solib.c (solib_contains_address_p): Handle
779 'solib->sections == nullptr'.
780
d3a07122
SM
7812020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
782
783 PR gdb/26642
784 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
785 target can't do async.
786 * target.c (target_wait): Assert that we don't pass
787 TARGET_WNOHANG to a target that can't async.
788
1b71cfcf
KR
7892020-10-13 Kamil Rytarowski <n54@gmx.com>
790
791 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
792 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
793 * alpha-bsd-nat.c: Adjust include.
794 * alpha-bsd-tdep.h: Adjust comment.
795 * alpha-nbsd-tdep.c: Rename to ...
796 * alpha-netbsd-tdep.c: ... this, adjust include.
797 * amd64-nbsd-nat.c: Rename to ...
798 * amd64-netbsd-nat.c: ... this, adjust include.
799 * amd64-nbsd-tdep.c: Rename to ...
800 * amd64-netbsd-tdep.c: ... this, adjust include.
801 * amd64-tdep.h: Adjust include.
802 * arm-nbsd-nat.c: Rename to ...
803 * arm-netbsd-nat.c: ... this, adjust include.
804 * arm-nbsd-tdep.c: Rename to ...
805 * arm-netbsd-tdep.c: ... this, adjust include.
806 * arm-nbsd-tdep.h: Rename to ...
807 * arm-netbsd-tdep.h: ... this, adjust include.
808 * configure.nat: Adjust file lists.
809 * configure.tgt: Likewise.
810 * hppa-nbsd-nat.c: Rename to ...
811 * hppa-netbsd-nat.c: ... this, adjust include.
812 * hppa-nbsd-tdep.c: Rename to ...
813 * hppa-netbsd-tdep.c: ... this, adjust include.
814 * i386-nbsd-nat.c: Rename to ...
815 * i386-netbsd-nat.c: ... this, adjust include.
816 * i386-nbsd-tdep.c: Rename to ...
817 * i386-netbsd-tdep.c: ... this, adjust include.
818 * m68k-bsd-nat.c: Adjust include.
819 * mips-nbsd-nat.c: Rename to ...
820 * mips-netbsd-nat.c: ... this, adjust include.
821 * mips-nbsd-tdep.c: Rename to ...
822 * mips-netbsd-tdep.c: ... this, adjust include.
823 * mips-nbsd-tdep.h: Rename to ...
824 * mips-netbsd-tdep.h: ... this.
825 * nbsd-nat.c: Rename to ...
826 * netbsd-nat.c: ... this, adjust include.
827 * nbsd-nat.h: Rename to ...
828 * netbsd-nat.h: ... this, adjust include.
829 * nbsd-tdep.c: Rename to ...
830 * netbsd-tdep.c: ... this, adjust include.
831 * nbsd-tdep.h: Rename to ...
832 * netbsd-tdep.h: ... this.
833 * ppc-nbsd-nat.c: Rename to ...
834 * ppc-netbsd-nat.c: ... this, adjust include.
835 * ppc-nbsd-tdep.c: Rename to ...
836 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
837 * ppc-nbsd-tdep.h: Rename to ...
838 * ppc-netbsd-tdep.h: ... this.
839 * sh-nbsd-nat.c: Rename to ...
840 * sh-netbsd-nat.c: ... this, adjust include.
841 * sh-nbsd-tdep.c: Rename to ...
842 * sh-netbsd-tdep.c: ... this, adjust include.
843 * sparc-nbsd-nat.c: Rename to ...
844 * sparc-netbsd-nat.c: ... this.
845 * sparc-nbsd-tdep.c: Rename to ...
846 * sparc-netbsd-tdep.c: ... this, adjust include.
847 * sparc64-nbsd-nat.c: Rename to ...
848 * sparc64-netbsd-nat.c: ... this.
849 * sparc64-nbsd-tdep.c: Rename to ...
850 * sparc64-netbsd-tdep.c: ... this, adjust include.
851 * sparc64-tdep.h: Adjust comment.
852 * vax-bsd-nat.c: Adjust include.
853 * vax-nbsd-tdep.c: Rename to ...
854 * vax-netbsd-tdep.c: ... this, adjust include.
855
d7a78e5c
TT
8562020-10-12 Tom Tromey <tom@tromey.com>
857
858 * target.h (struct target_ops) <get_section_table>: Update.
859 (target_get_section_table): Update.
860 * target.c (target_get_section_table, target_section_by_addr)
861 (memory_xfer_partial_1): Update.
862 * target-section.h (target_section_table): Now an alias.
863 * target-delegates.c: Rebuild.
864 * target-debug.h (target_debug_print_target_section_table_p):
865 Rename from target_debug_print_struct_target_section_table_p.
866 * symfile.c (build_section_addr_info_from_section_table): Update.
867 * solib.c (solib_map_sections, solib_contains_address_p): Update.
868 * solib-svr4.c (scan_dyntag): Update.
869 * solib-dsbt.c (scan_dyntag): Update.
870 * remote.c (remote_target::remote_xfer_live_readonly_partial):
871 Update.
872 * record-full.c (record_full_core_target::xfer_partial): Update.
873 * progspace.h (struct program_space) <target_sections>: Update.
874 * exec.h (print_section_info): Update.
875 * exec.c (exec_target::close, build_section_table)
876 (add_target_sections, add_target_sections_of_objfile)
877 (remove_target_sections, exec_on_vfork)
878 (section_table_available_memory)
879 (section_table_xfer_memory_partial)
880 (exec_target::get_section_table, exec_target::xfer_partial)
881 (print_section_info, set_section_command)
882 (exec_set_section_address, exec_target::has_memory): Update.
883 * corelow.c (core_target::build_file_mappings)
884 (core_target::xfer_partial, core_target::info_proc_mappings)
885 (core_target::info_proc_mappings): Update.
886 * bfd-target.c (class target_bfd): Update
887
eda214ce
TT
8882020-10-12 Tom Tromey <tom@tromey.com>
889
890 * progspace.c (program_space::~program_space): Don't call
891 clear_section_table.
892 * exec.h (clear_section_table): Don't declare.
893 * exec.c (exec_target::close): Update.
894 (clear_section_table): Remove.
895
91840ee3
TT
8962020-10-12 Tom Tromey <tom@tromey.com>
897
898 * exec.c (add_target_sections_of_objfile): Simplify.
899
2d128614
TT
9002020-10-12 Tom Tromey <tom@tromey.com>
901
902 * solib.c (solib_map_sections): Update.
903 * record-full.c (record_full_core_open_1): Update.
904 * exec.h (build_section_table): Return a target_section_table.
905 * exec.c (exec_file_attach): Update.
906 (build_section_table): Return a target_section_table.
907 * corelow.c (core_target::core_target): Update.
908 * bfd-target.c (target_bfd::target_bfd): Update.
909
bb2a6777
TT
9102020-10-12 Tom Tromey <tom@tromey.com>
911
912 * target.c (target_section_by_addr, memory_xfer_partial_1):
913 Update.
914 * target-section.h (struct target_section_table): Use
915 std::vector.
916 * symfile.h (build_section_addr_info_from_section_table): Take a
917 target_section_table.
918 * symfile.c (build_section_addr_info_from_section_table): Take a
919 target_section_table.
920 * solist.h (struct so_list) <sections>: Change type.
921 <sections_end>: Remove.
922 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
923 (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_start, record_full_core_end):
929 Remove.
930 (record_full_core_sections): New global.
931 (record_full_core_open_1, record_full_core_target::xfer_partial):
932 Update.
933 * exec.h (build_section_table, section_table_xfer_memory_partial)
934 (add_target_sections): Take a target_section_table.
935 * exec.c (exec_file_attach, clear_section_table): Update.
936 (resize_section_table): Remove.
937 (build_section_table, add_target_sections): Take a
938 target_section_table.
939 (add_target_sections_of_objfile, remove_target_sections)
940 (exec_on_vfork): Update.
941 (section_table_available_memory): Take a target_section_table.
942 (section_table_read_available_memory): Update.
943 (section_table_xfer_memory_partial): Take a target_section_table.
944 (print_section_info, set_section_command)
945 (exec_set_section_address, exec_target::has_memory): Update.
946 * corelow.c (class core_target) <m_core_section_table,
947 m_core_file_mappings>: Remove braces.
948 <~core_target>: Remove.
949 (core_target::core_target): Update.
950 (core_target::~core_target): Remove.
951 (core_target::build_file_mappings)
952 (core_target::xfer_memory_via_mappings)
953 (core_target::xfer_partial, core_target::info_proc_mappings):
954 Update.
955 * bfd-target.c (target_bfd::xfer_partial): Update.
956 (target_bfd::target_bfd): Update.
957 (target_bfd::~target_bfd): Remove.
958
7b466b10
TT
9592020-10-12 Tom Tromey <tom@tromey.com>
960
961 * target.h (struct target_section, struct target_section_table):
962 Move to target-section.h.
963 * target-section.h: New file.
964
87a37e5e
PA
9652020-10-12 Pedro Alves <pedro@palves.net>
966
967 PR exp/26602
968 * valops.c (struct struct_field_searcher): New.
969 (update_search_result): Rename to ...
970 (struct_field_searcher::update_result): ... this. Simplify
971 prototype. Record all found fields.
972 (do_search_struct_field): Rename to ...
973 (struct_field_searcher::search): ... this. Simplify prototype.
974 Maintain stack of visited baseclass path. Call update_result for
975 fields too. Keep searching fields in baseclasses instead of
976 stopping at the first found field.
977 (search_struct_field): Use struct_field_searcher. When looking
978 for fields, report ambiguous access attempts.
979
9370fd51
AB
9802020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * frame.c (inside_main_func): Check full symbols as well as
983 minimal symbols.
984
59c8a30b
JB
9852020-10-09 Joel Brobecker <brobecker@adacore.com>
986
987 * ada-lang.c (advance_wild_match): Rewrite the function's
988 description. Change the type of target0, t0 and t1 to char.
989
7c184d33
TT
9902020-10-09 Tom Tromey <tromey@adacore.com>
991
992 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
993
5c4258f4
TT
9942020-10-09 Tom Tromey <tromey@adacore.com>
995
996 * ada-lang.h (ada_encode): Return std::string.
997 * ada-lang.c (ada_encode_1): Return std::string.
998 (ada_encode): Likewise.
999 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1000 Update.
1001 * ada-exp.y (block_lookup, write_var_or_type): Update.
1002
3d87245c
HD
10032020-10-09 Hannes Domani <ssbssa@yahoo.de>
1004
1005 PR exp/26714
1006 * printcmd.c (print_formatted): Handle void results as
1007 unformatted prints.
1008
bbb826f5
AB
10092020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * arch/aarch32.c (aarch32_create_target_description): Release the
1012 target_desc_up as late as possible.
1013 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1014 * arch/amd64.c (amd64_create_target_description): Likewise.
1015 * arch/arc.c (arc_create_target_description): Return a
1016 target_desc_up, don't release it.
1017 * arch/arc.h (arc_create_target_description): Update declaration.
1018 (arc_lookup_target_description): Move target_desc_up into the
1019 cache, and return a borrowed pointer.
1020 * arch/arm.c (arm_create_target_description): Release the
1021 target_desc_up as late as possible.
1022 * arch/i386.c (i386_create_target_description): Likewise.
1023 * arch/riscv.h (riscv_create_target_description): Update
1024 declaration to match definition.
1025 * arch/tic6x.c (tic6x_create_target_description): Release the
1026 target_desc_up as late as possible.
1027
361cb219
AB
10282020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1031 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1032
f5c4b229
JV
10332020-10-09 Jan Vrany <jan.vrany@labware.com>
1034
1035 * source.c (directory_command): Notify observers that "directories"
1036 parameter has changed.
1037
b2701685
TT
10382020-10-08 Tom Tromey <tom@tromey.com>
1039
1040 * cli/cli-cmds.c (print_disassembly): Style function name and
1041 addresses. Add _() wrappers.
1042
ada508b6
SV
10432020-10-08 Shahab Vahedi <shahab@synopsys.com>
1044
1045 * NEWS: Mention ARC support in GDBserver.
1046
51a948fd
AB
10472020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1048
1049 * arch/aarch32.c (aarch32_create_target_description): Release
1050 unique_ptr returned from allocate_target_description.
1051 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1052 * arch/amd64.c (amd64_create_target_description): Likewise.
1053 * arch/arc.c (arc_create_target_description): Likewise.
1054 * arch/arm.c (arm_create_target_description): Likewise.
1055 * arch/i386.c (i386_create_target_description): Likewise.
1056 * arch/riscv.c (riscv_create_target_description): Update return
1057 type. Handle allocate_target_description returning a unique_ptr.
1058 (riscv_lookup_target_description): Update to handle unique_ptr.
1059 * arch/tic6x.c (tic6x_create_target_description): Release
1060 unique_ptr returned from allocate_target_description.
1061 * features/microblaze-with-stack-protect.c: Regenerate.
1062 * features/microblaze.c: Regenerate.
1063 * features/mips-dsp-linux.c: Regenerate.
1064 * features/mips-linux.c: Regenerate.
1065 * features/mips64-dsp-linux.c: Regenerate.
1066 * features/mips64-linux.c: Regenerate.
1067 * features/nds32.c: Regenerate.
1068 * features/nios2.c: Regenerate.
1069 * features/or1k.c: Regenerate.
1070 * features/rs6000/powerpc-32.c: Regenerate.
1071 * features/rs6000/powerpc-32l.c: Regenerate.
1072 * features/rs6000/powerpc-403.c: Regenerate.
1073 * features/rs6000/powerpc-403gc.c: Regenerate.
1074 * features/rs6000/powerpc-405.c: Regenerate.
1075 * features/rs6000/powerpc-505.c: Regenerate.
1076 * features/rs6000/powerpc-601.c: Regenerate.
1077 * features/rs6000/powerpc-602.c: Regenerate.
1078 * features/rs6000/powerpc-603.c: Regenerate.
1079 * features/rs6000/powerpc-604.c: Regenerate.
1080 * features/rs6000/powerpc-64.c: Regenerate.
1081 * features/rs6000/powerpc-64l.c: Regenerate.
1082 * features/rs6000/powerpc-7400.c: Regenerate.
1083 * features/rs6000/powerpc-750.c: Regenerate.
1084 * features/rs6000/powerpc-860.c: Regenerate.
1085 * features/rs6000/powerpc-altivec32.c: Regenerate.
1086 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1087 * features/rs6000/powerpc-altivec64.c: Regenerate.
1088 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1089 * features/rs6000/powerpc-e500.c: Regenerate.
1090 * features/rs6000/powerpc-e500l.c: Regenerate.
1091 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1092 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1093 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1094 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1095 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1096 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1097 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1098 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1099 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1100 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1101 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1102 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1103 * features/rs6000/powerpc-vsx32.c: Regenerate.
1104 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1105 * features/rs6000/powerpc-vsx64.c: Regenerate.
1106 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1107 * features/rs6000/rs6000.c: Regenerate.
1108 * features/rx.c: Regenerate.
1109 * features/s390-gs-linux64.c: Regenerate.
1110 * features/s390-linux32.c: Regenerate.
1111 * features/s390-linux32v1.c: Regenerate.
1112 * features/s390-linux32v2.c: Regenerate.
1113 * features/s390-linux64.c: Regenerate.
1114 * features/s390-linux64v1.c: Regenerate.
1115 * features/s390-linux64v2.c: Regenerate.
1116 * features/s390-te-linux64.c: Regenerate.
1117 * features/s390-tevx-linux64.c: Regenerate.
1118 * features/s390-vx-linux64.c: Regenerate.
1119 * features/s390x-gs-linux64.c: Regenerate.
1120 * features/s390x-linux64.c: Regenerate.
1121 * features/s390x-linux64v1.c: Regenerate.
1122 * features/s390x-linux64v2.c: Regenerate.
1123 * features/s390x-te-linux64.c: Regenerate.
1124 * features/s390x-tevx-linux64.c: Regenerate.
1125 * features/s390x-vx-linux64.c: Regenerate.
1126 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1127 from allocate_target_description.
1128 * target-descriptions.c (allocate_target_description): Update
1129 return type.
1130 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1131 allocate_target_description.
1132
485c47e5
TT
11332020-10-07 Tom Tromey <tromey@adacore.com>
1134
1135 * unittests/search-memory-selftests.c: New file.
1136 * Makefile.in (SELFTESTS_SRCS): Add
1137 unittests/search-memory-selftests.c.
1138
3a135a91
TT
11392020-10-07 Tom Tromey <tromey@adacore.com>
1140
1141 PR gdb/16930:
1142 * findcmd.c (_initialize_mem_search): Mention that the range is
1143 inclusive.
1144
4a72de73
TT
11452020-10-07 Tom Tromey <tromey@adacore.com>
1146
1147 * target.h (simple_search_memory): Don't declare.
1148 * target.c (simple_search_memory): Move to gdbsupport.
1149 (default_search_memory): Update.
1150 * remote.c (remote_target::search_memory): Update.
1151
a038ffd8
SM
11522020-10-07 Simon Marchi <simon.marchi@efficios.com>
1153
1154 * Makefile.in (COMPILE): Add CXXFLAGS.
1155 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1156 (check-headers): Add CXXFLAGS.
1157
cc463201
AK
11582020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1159
1160 * arc-linux-tdep.h: New file.
1161 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1162 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1163 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1164 arc_linux_gregset, arc_linux_v2_regset,
1165 arc_linux_iterate_over_regset_sections,
1166 arc_linux_core_read_description): Implement.
1167 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1168 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1169 (arc_gdbarch_features_create): Add.
1170 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1171
e4bd363f
SV
11722020-10-07 Shahab Vahedi <shahab@synopsys.com>
1173
1174 * arch/arc.h: Rename "arc_gdbarch_features" to
1175 "arc_arch_features".
1176 * arc-tdep.h: Likewise.
1177 * arc-tdep.c: Likewise.
1178
b68bef99
TBA
11792020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1180
1181 * infcmd.c (attach_command): Remove the redundant call to
1182 `clear_proceed_status`.
1183
4641551a
KR
11842020-10-07 Kamil Rytarowski <n54@gmx.com>
1185
1186 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1187
91e5e8db
KR
11882020-10-07 Kamil Rytarowski <n54@gmx.com>
1189
1190 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1191 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1192 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1193
64c03bdb
SM
11942020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1195
1196 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1197 (_initialize_break_catch_sig): Don't allocate array.
1198
31a8f60f
AB
11992020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * symtab.c (find_pc_line): Return unmapped addresses when the
1202 requested address is also unmapped.
1203
9e6dbd8b
SM
12042020-10-05 Simon Marchi <simon.marchi@efficios.com>
1205
1206 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1207 tui/tui-out.h.
1208
a1d217e8
SM
12092020-10-05 Simon Marchi <simon.marchi@efficios.com>
1210
1211 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1212 type::is_vector instead of TYPE_VECTOR.
1213
7d144117
SM
12142020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1215
1216 * auto-load.c (auto_load_objfile_script_1): Don't use
1217 debugfile_holder as temporary variable when stripping drive
1218 letter.
1219
cd096ec8
HD
12202020-10-05 Hannes Domani <ssbssa@yahoo.de>
1221
1222 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1223 Add TYPE_CODE_COMPLEX.
1224 (amd64_windows_return_value): Fix types returned via XMM0.
1225
b58e7f72
AH
12262020-10-05 Alan Hayward <alan.hayward@arm.com>
1227
1228 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1229 AArch64/ARM maintainers.
1230
8d378f27
SM
12312020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * NEWS: Mention set/show debug event-loop.
1234
d5519913
TT
12352020-10-02 Tom Tromey <tromey@adacore.com>
1236
1237 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1238 REG_EXTENDED.
1239
18b67edc
SM
12402020-10-02 Simon Marchi <simon.marchi@efficios.com>
1241
1242 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1243 * procfs.c (procfs_inferior_created): Remove.
1244 (_initialize_procfs): Don't register procfs_inferior_created.
1245
6b01403b
SM
12462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * async-event.c (invoke_async_signal_handlers): Add debug
1249 print.
1250 (check_async_event_handlers): Likewise.
1251 * event-top.c (show_debug_event_loop): New function.
1252 (_initialize_event_top): Register "set debug event-loop"
1253 setting.
1254
ba988419
SM
12552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1256
1257 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1258 * debug.h: Remove.
1259 * infrun.c: Include gdbsupport/common-debug.h.
1260 * linux-nat.c: Likewise.
1261
db20ebdf
SM
12622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1263
1264 * async-event.h (create_async_signal_handler): Add name
1265 parameter.
1266 (create_async_event_handler): Likewise.
1267 * async-event.c (struct async_signal_handler) <name>: New field.
1268 (struct async_event_handler) <name>: New field.
1269 (create_async_signal_handler): Assign name.
1270 (create_async_event_handler): Assign name.
1271 * event-top.c (async_init_signals): Pass name when creating
1272 handler.
1273 * infrun.c (_initialize_infrun): Likewise.
1274 * record-btrace.c (record_btrace_push_target): Likewise.
1275 * record-full.c (record_full_open): Likewise.
1276 * remote-notif.c (remote_notif_state_allocate): Likewise.
1277 * remote.c (remote_target::open_1): Likewise.
1278 * tui/tui-win.c (tui_initialize_win): Likewise.
1279
2554f6f5
SM
12802020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * async-event.c (initialize_async_signal_handlers): Pass name to
1283 add_file_handler
1284 * event-top.c (ui_register_input_event_handler): Likewise.
1285 * linux-nat.c (linux_nat_target::async): Likewise.
1286 * run-on-main-thread.c (_initialize_run_on_main_thread):
1287 Likewise
1288 * ser-base.c (reschedule): Likewise.
1289 (ser_base_async): Likewise.
1290 * tui/tui-io.c: Likewise.
1291 * top.h (struct ui) <num>: New field.
1292 * top.c (highest_ui_num): New variable.
1293 (ui::ui): Initialize num.
1294
a7aba266
SM
12952020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * observable.h <inferior_created>: Remove parameters. Update all
1298 listeners.
1299 * inferior.h (post_create_inferior): Remove target parameter.
1300 Update all callers.
1301
048fde1e 13022020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1303
1304 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1305 and DW_MACRO_undef_strx.
1306 (dwarf_decode_macros): Likewise
1307 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1308 which is the value of DW_AT_str_offsets_base.
1309 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1310 str_offsets_base.
1311
064280be
KR
13122020-10-01 Kamil Rytarowski <n54@gmx.com>
1313
1314 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1315
6ff33035
KR
13162020-10-01 Kamil Rytarowski <n54@gmx.com>
1317
1318 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1319 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1320
1eb6eb79
KR
13212020-10-01 Kamil Rytarowski <n54@gmx.com>
1322
1323 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1324
95eb9e54
TV
13252020-09-30 Tom de Vries <tdevries@suse.de>
1326
1327 PR symtab/26683
1328 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1329
cae21f8e
TT
13302020-09-30 Tom Tromey <tromey@adacore.com>
1331
1332 * dwarf2/read.c (handle_variant): Use constant_value.
1333
529908cb
TT
13342020-09-29 Tom Tromey <tom@tromey.com>
1335
1336 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1337 (read_file_scope, dwarf2_get_pc_bounds)
1338 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1339 (read_structure_type, handle_struct_member_die)
1340 (read_enumeration_type, read_array_type, read_set_type)
1341 (read_tag_pointer_type, read_tag_reference_type)
1342 (read_subroutine_type, read_base_type, read_subrange_type)
1343 (read_full_die_1, partial_die_info::read)
1344 (partial_die_info::read, by, new_symbol)
1345 (dwarf2_const_value_data, dwarf2_const_value_attr)
1346 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1347 (prepare_one_comp_unit): Update.
1348 * dwarf2/attribute.h (DW_UNSND): Remove.
1349
c45bc3f8
TT
13502020-09-29 Tom Tromey <tom@tromey.com>
1351
1352 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1353 (read_subroutine_type, partial_die_info::read)
1354 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1355 (dwarf2_add_member_fn): Update.
1356 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1357 * dwarf2/attribute.c (attribute::as_boolean): New method.
1358
23dca5c3
TT
13592020-09-29 Tom Tromey <tom@tromey.com>
1360
1361 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1362 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1363 method.
1364 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1365
52c14d11
TT
13662020-09-29 Tom Tromey <tom@tromey.com>
1367
1368 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1369 the attribute's form.
1370
e8e5c158
TT
13712020-09-29 Tom Tromey <tom@tromey.com>
1372
1373 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1374 (dwarf2_add_member_fn): Update.
1375 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1376 * dwarf2/attribute.c (attribute::defaulted): New method, from
1377 is_valid_DW_AT_defaulted.
1378
d4df075e
TT
13792020-09-29 Tom Tromey <tom@tromey.com>
1380
1381 * dwarf2/read.c (dw2_get_file_names_reader)
1382 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1383 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1384 (dwarf2_symbol_mark_computed): Use as_unsigned.
1385 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1386 method.
1387 <form_is_section_offset>: Update comment.
1388
bf23a268
TT
13892020-09-29 Tom Tromey <tom@tromey.com>
1390
1391 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1392 dwarf2_default_access_attribute. Look up attribute.
1393 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1394 Update.
1395
7a5f294d
TT
13962020-09-29 Tom Tromey <tom@tromey.com>
1397
1398 * dwarf2/read.c (skip_one_die): Update.
1399 (read_full_die_1): Change how reprocessing is done.
1400 (partial_die_info::read): Update.
1401 (read_attribute_value): Remove need_reprocess parameter.
1402 (read_attribute): Likewise.
1403 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1404 New method.
1405
36d378cf
TT
14062020-09-29 Tom Tromey <tom@tromey.com>
1407
1408 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1409 (dwarf2_const_value_attr, dump_die_shallow)
1410 (dwarf2_fetch_constant_bytes): Update.
1411 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1412 comment.
1413 <set_address>: New method.
1414 (DW_ADDR): Remove.
1415 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1416 (attribute::as_string, attribute::as_address): Add assert.
1417
fe56917a
TT
14182020-09-29 Tom Tromey <tom@tromey.com>
1419
1420 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1421 (read_attribute_reprocess, read_attribute_value): Update.
1422 (read_attribute): Clear requires_reprocessing.
1423 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1424 form_requires_reprocessing>: New methods.
1425 <string_init>: Clear requires_reprocessing.
1426 <set_unsigned_reprocess>: New method.
1427 <name>: Shrink by one bit.
1428 <requires_reprocessing>: New member.
1429 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1430 method.
1431
414ad644
TT
14322020-09-29 Tom Tromey <tom@tromey.com>
1433
1434 * dwarf2/read.c (read_attribute_value): Update.
1435 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1436 set_unsigned>: New methods.
1437 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1438
1bc397c5
TT
14392020-09-29 Tom Tromey <tom@tromey.com>
1440
1441 * dwarf2/read.c (get_alignment, read_array_order)
1442 (read_attribute_value, dwarf2_const_value_attr)
1443 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1444 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1445 New methods.
1446 (DW_SND): Remove.
1447
630ed6b9
TT
14482020-09-29 Tom Tromey <tom@tromey.com>
1449
1450 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1451 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1452 Update.
1453 * dwarf2/attribute.h (struct attribute) <as_signature,
1454 set_signature>: New methods.
1455 (DW_SIGNATURE): Remove.
1456
9d2246fc
TT
14572020-09-29 Tom Tromey <tom@tromey.com>
1458
1459 * dwarf2/read.c (read_call_site_scope)
1460 (handle_data_member_location, dwarf2_add_member_fn)
1461 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1462 (partial_die_info::read, read_attribute_value)
1463 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1464 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1465 (dwarf2_symbol_mark_computed): Update.
1466 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1467 methods.
1468 (DW_BLOCK): Remove.
1469 * dwarf2/attribute.c (attribute::form_is_block): Add
1470 DW_FORM_data16.
1471
c6481205
TT
14722020-09-29 Tom Tromey <tom@tromey.com>
1473
1474 * dwarf2/read.c (read_cutu_die_from_dwo)
1475 (read_attribute_reprocess, read_attribute_value, read_attribute)
1476 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1477 (dwarf2_fetch_constant_bytes): Update.
1478 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1479 <set_string_noncanonical, set_string_canonical>: New methods.
1480 <string_is_canonical>: Update comment.
1481 <canonical_string_p>: Add assert.
1482 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1483 * dwarf2/attribute.c (attribute::form_is_string): New method.
1484 (attribute::string): Use it.
1485
3b64bf15
TT
14862020-09-29 Tom Tromey <tom@tromey.com>
1487
1488 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1489 (dump_die_shallow): Use canonical_string_p.
1490 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1491 method.
1492
2c830f54
TT
14932020-09-29 Tom Tromey <tom@tromey.com>
1494
1495 * dwarf2/read.c (partial_die_info::read)
1496 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1497 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1498 attribute::as_string.
1499
6c412691
TT
15002020-09-29 Tom Tromey <tom@tromey.com>
1501
1502 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1503 DW_ADDR.
1504 (attribute::string): Don't use DW_STRING.
1505 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1506 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1507
95f982e5
TT
15082020-09-29 Tom Tromey <tom@tromey.com>
1509
1510 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1511 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1512 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1513 * dwarf2/attribute.h (struct attribute): Rename methods.
1514 * dwarf2/attribute.c (attribute::as_address): Rename from
1515 value_as_address.
1516 (attribute::as_string): Rename from value_as_string.
1517
f800b00e
TT
15182020-09-29 Tom Tromey <tom@tromey.com>
1519
1520 * dwarf2/read.c (partial_die_info::read) <case
1521 DW_AT_linkage_name>: Use value_as_string.
1522 (dwarf2_string_attr): Use value_as_string.
1523 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1524 method.
1525 * dwarf2/attribute.c (attribute::value_as_string): New method.
1526
de38d64a
PA
15272020-09-29 Pedro Alves <pedro@palves.net>
1528
1529 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1530 defined before using '#pragma GCC diagnostic' instead of checking
1531 __clang__.
1532
9aed480c
TT
15332020-09-28 Tom Tromey <tom@tromey.com>
1534
1535 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1536 (handle_signal_stop): Update.
1537 * procfs.c (procfs_target::insert_watchpoint): Update.
1538 * target.h (target_have_steppable_watchpoint): Now a function.
1539
8a3ecb79
TT
15402020-09-28 Tom Tromey <tom@tromey.com>
1541
1542 * infrun.c (set_schedlock_func): Update.
1543 * target.h (target_can_lock_scheduler): Now a function.
1544
55f6301a
TT
15452020-09-28 Tom Tromey <tom@tromey.com>
1546
1547 * inferior.h (class inferior) <has_execution>: Update.
1548 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1549 * valops.c (find_function_in_inferior)
1550 (value_allocate_space_in_inferior): Update.
1551 * top.c (kill_or_detach): Update.
1552 * target.c (target_preopen, set_target_permissions): Update.
1553 (target_has_execution_current): Remove.
1554 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1555 Update.
1556 * solib.c (update_solib_list, reload_shared_libraries): Update.
1557 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1558 * solib-dsbt.c (enable_break): Update.
1559 * score-tdep.c (score7_fetch_inst): Update.
1560 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1561 Update.
1562 * remote.c (remote_target::start_remote)
1563 (remote_target::remote_check_symbols, remote_target::open_1)
1564 (remote_target::remote_detach_1, remote_target::verify_memory)
1565 (remote_target::xfer_partial, remote_target::read_description)
1566 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1567 * record-full.c (record_full_open_1): Update.
1568 * record-btrace.c (record_btrace_target_open): Update.
1569 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1570 (value_nsstring): Update.
1571 * linux-thread-db.c (add_thread_db_info)
1572 (thread_db_find_new_threads_silently, check_thread_db_callback)
1573 (try_thread_db_load_1, record_thread): Update.
1574 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1575 Update.
1576 * linux-fork.c (checkpoint_command): Update.
1577 * infrun.c (set_non_stop, set_observer_mode)
1578 (check_multi_target_resumption, for_each_just_stopped_thread)
1579 (maybe_remove_breakpoints, normal_stop)
1580 (class infcall_suspend_state): Update.
1581 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1582 (info_program_command, attach_command): Update.
1583 * infcall.c (call_function_by_hand_dummy): Update.
1584 * inf-loop.c (inferior_event_handler): Update.
1585 * gcore.c (gcore_command, derive_heap_segment): Update.
1586 * exec.c (exec_file_command): Update.
1587 * eval.c (evaluate_subexp): Update.
1588 * compile/compile.c (compile_to_object): Update.
1589 * cli/cli-dump.c (restore_command): Update.
1590 * breakpoint.c (update_watchpoint)
1591 (update_inserted_breakpoint_locations)
1592 (insert_breakpoint_locations, get_bpstat_thread): Update.
1593 * target.h (target_has_execution): Remove macro.
1594 (target_has_execution_current): Don't declare.
1595 (target_has_execution): Rename from target_has_execution_1. Add
1596 argument default.
1597
05374cfd
TT
15982020-09-28 Tom Tromey <tom@tromey.com>
1599
1600 * mi/mi-main.c (exec_reverse_continue)
1601 (mi_cmd_list_target_features): Update.
1602 * infrun.c (set_exec_direction_func): Update.
1603 * target.c (default_execution_direction): Update.
1604 * reverse.c (exec_reverse_once): Update.
1605 * target.h (target_can_execute_reverse): Now a function.
1606
9dccd06e
TT
16072020-09-28 Tom Tromey <tom@tromey.com>
1608
1609 * tui/tui-regs.c (tui_get_register)
1610 (tui_data_window::show_registers): Update.
1611 * thread.c (scoped_restore_current_thread::restore)
1612 (scoped_restore_current_thread::scoped_restore_current_thread):
1613 Update.
1614 * regcache-dump.c (regcache_print): Update.
1615 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1616 Update.
1617 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1618 * mep-tdep.c (current_me_module, current_options): Update.
1619 * linux-thread-db.c (thread_db_load): Update.
1620 * infcmd.c (registers_info, info_vector_command)
1621 (info_float_command): Update.
1622 * ia64-tdep.c (ia64_frame_prev_register)
1623 (ia64_sigtramp_frame_prev_register): Update.
1624 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1625 * gcore.c (derive_stack_segment): Update.
1626 * frame.c (get_current_frame, has_stack_frames): Update.
1627 * findvar.c (language_defn::read_var_value): Update.
1628 * arm-tdep.c (arm_pc_is_thumb): Update.
1629 * target.c (target_has_registers): Rename from
1630 target_has_registers_1.
1631 * target.h (target_has_registers): Remove macro.
1632 (target_has_registers): Rename from target_has_registers_1.
1633
841de120
TT
16342020-09-28 Tom Tromey <tom@tromey.com>
1635
1636 * windows-tdep.c (tlb_make_value): Update.
1637 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1638 * thread.c (scoped_restore_current_thread::restore)
1639 (scoped_restore_current_thread::scoped_restore_current_thread)
1640 (thread_command): Update.
1641 * stack.c (backtrace_command_1, frame_apply_level_command)
1642 (frame_apply_all_command, frame_apply_command): Update.
1643 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1644 Update.
1645 * gcore.c (derive_stack_segment): Update.
1646 * frame.c (get_current_frame, has_stack_frames): Update.
1647 * auxv.c (info_auxv_command): Update.
1648 * ada-tasks.c (ada_build_task_list): Update.
1649 * target.c (target_has_stack): Rename from target_has_stack_1.
1650 * target.h (target_has_stack): Remove macro.
1651 (target_has_stack): Rename from target_has_stack_1.
1652
a739972c
TT
16532020-09-28 Tom Tromey <tom@tromey.com>
1654
1655 * target.c (target_has_memory): Rename from target_has_memory_1.
1656 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1657 * thread.c (scoped_restore_current_thread::restore)
1658 (scoped_restore_current_thread::scoped_restore_current_thread):
1659 Update.
1660 * frame.c (get_current_frame, has_stack_frames): Update.
1661 * target.h (target_has_memory): Remove macro.
1662 (target_has_memory): Rename from target_has_memory_1.
1663
5b8a4776
TT
16642020-09-28 Tom Tromey <tom@tromey.com>
1665
1666 * target.c (target_has_all_memory_1): Remove.
1667 * target.h (target_has_all_memory): Remove define.
1668 (target_has_all_memory_1): Don't declare.
1669
bd356ec6
SM
16702020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1671
1672 * ser-base.c: Adjust comments formatting.
1673
2c72d5e5
TT
16742020-09-27 Tom Tromey <tom@tromey.com>
1675
1676 PR tui/25342:
1677 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1678
35a98237
TT
16792020-09-27 Tom Tromey <tom@tromey.com>
1680
1681 PR tui/25342:
1682 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1683
9e820dec
TT
16842020-09-27 Tom Tromey <tom@tromey.com>
1685
1686 * unittests/tui-selftests.c: Update.
1687 * tui/tui-winsource.h (struct tui_source_window_base)
1688 <extra_margin, show_line_number, refresh_pad>: New methods.
1689 <m_max_length, m_pad>: New members.
1690 (tui_copy_source_line): Update.
1691 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1692 first_col, line_width, ndigits parameters. Add length.
1693 (tui_source_window_base::show_source_line): Write to pad. Line
1694 number now 0-based.
1695 (tui_source_window_base::refresh_pad): New method.
1696 (tui_source_window_base::show_source_content): Write to pad. Call
1697 refresh_pad.
1698 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1699 not refill.
1700 (tui_source_window_base::update_exec_info): Call
1701 show_line_number.
1702 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1703 method.
1704 <m_digits>: New member.
1705 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1706 and m_max_length.
1707 (tui_source_window::show_line_number): New method.
1708 * tui/tui-io.h (tui_puts): Fix comment.
1709 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1710 m_max_length.
1711
c15c15c8
TT
17122020-09-27 Tom Tromey <tom@tromey.com>
1713
1714 * tui/tui-winsource.c
1715 (tui_source_window_base::set_is_exec_point_at): Don't call
1716 show_source_line.
1717
149830c1
TT
17182020-09-27 Tom Tromey <tom@tromey.com>
1719
1720 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1721 method.
1722 <erase>: Update.
1723 <cursor_x, cursor_y>: Remove.
1724 <m_inner_window>: New member.
1725 (tui_py_window::rerender): Create inner window.
1726 (tui_py_window::output): Write to inner window.
1727
8f9929bb
GR
17282020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1729
1730 PR python/26586
1731 * cli/cli-script.c (execute_control_commands): don't set
1732 instream to nullptr here as this breaks the from_tty argument
1733 to gdb.execute in Python.
1734 (execute_user_command): set instream to nullptr here instead.
1735
956bdb59
SM
17362020-09-25 Simon Marchi <simon.marchi@efficios.com>
1737
1738 * infrun.h (infrun_debug_printf): Fix formatting.
1739 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1740
3b93626b
SJ
17412020-09-25 Saagar Jha <saagar@saagarjha.com>
1742
1743 * compile/compile-object-load.h (struct munmap_list): Add
1744 explicitly-defined move constructor.
1745
b551a89f
TT
17462020-09-24 Tom Tromey <tromey@adacore.com>
1747
1748 PR tui/26638:
1749 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1750 method.
1751 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1752 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1753 (tui_prev_win): Rewrite.
1754
99bb393f
HD
17552020-09-23 Hannes Domani <ssbssa@yahoo.de>
1756
1757 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1758 in WOW64 processes as SIGINT.
1759 * nat/windows-nat.h: Make wow64_process a shared variable.
1760 * windows-nat.c: Remove static wow64_process variable.
1761
20a5fcbd
TT
17622020-09-23 Tom Tromey <tom@tromey.com>
1763
1764 PR symtab/25470:
1765 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1766 offset and bit size.
1767 * printcmd.c (print_scalar_formatted): Handle zero-length
1768 integer.
1769 (print_scalar_formatted): Use bit_size_differs_p.
1770 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1771 constant.
1772 (union type_specific): <int_stuff>: New member.
1773 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1774 methods.
1775 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1776 TYPE_SPECIFIC_FIELD.
1777 (recursive_dump_type, copy_type_recursive): Update.
1778 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1779 DW_AT_data_bit_offset.
1780
bac51ab7
TT
17812020-09-23 Tom Tromey <tom@tromey.com>
1782
1783 * utils.h (class gdb_argv): Add move operators.
1784 <append>: New methods.
1785 * compile/compile.c (build_argc_argv): Remove.
1786 (compile_args_argc): Remove.
1787 (compile_args_argv): Change type.
1788 (set_compile_args): Simplify.
1789 (append_args): Remove.
1790 (filter_args): Remove argcp parameter.
1791 (get_args): Return gdb_argv. Simplify.
1792 (compile_to_object): Update.
1793
92677124
TT
17942020-09-23 Tom Tromey <tom@tromey.com>
1795
1796 * compile/compile-object-run.c (do_module_cleanup)
1797 <~do_module_cleanup> :Remove.
1798 (do_module_cleanup): Update.
1799 * compile/compile-object-load.h (struct munmap_list): Add move
1800 assignment operator.
1801 <source_file>: Now a std::string.
1802 <munmap_list>: Rename. No longer a pointer.
1803 * compile/compile-object-load.c (struct setup_sections_data): Add
1804 constructor.
1805 <setup_one_section>: Declare.
1806 <munmap_list>: Move earlier.
1807 <m_bfd>: New member.
1808 <m_last_size, m_last_section_first, m_last_prot,
1809 m_last_max_alignment>: Rename, add initializers where needed.
1810 (setup_sections_data::setup_one_section): Rename from
1811 setup_sections. Update.
1812 (compile_object_load): Update. Don't use bfd_map_over_sections.
1813
e616f60a
TT
18142020-09-23 Tom Tromey <tom@tromey.com>
1815
1816 * compile/compile-object-run.c (struct do_module_cleanup): Add
1817 parameters to constructor. Update destructor.
1818 <source_file, scope, scope_data, out_value_type, out_value_addr,
1819 munmap_list_head, objfile_name_string>: Remove.
1820 <module>: New member.
1821 (do_module_cleanup): Update.
1822 (compile_object_run): Update.
1823
e947a848
TT
18242020-09-23 Tom Tromey <tom@tromey.com>
1825
1826 * compile/compile.c (eval_compile_command): Update.
1827 * compile/compile-object-run.h (compile_object_run): Take a
1828 compile_module_up.
1829 * compile/compile-object-run.c (compile_object_run): Take a
1830 compile_module_up.
1831 * compile/compile-object-load.h (struct compile_module): Add
1832 constructor, destructor.
1833 (compile_module_up): New typedef.
1834 (compile_object_load): Return compile_object_up.
1835 * compile/compile-object-load.c (compile_object_load): Return
1836 compile_module_up.
1837
0dbf6ee6
TT
18382020-09-23 Tom Tromey <tom@tromey.com>
1839
1840 * compile/compile-object-run.c (struct do_module_cleanup): Add
1841 constructor, destructor.
1842 <objfile_name_string>: Don't use struct hack.
1843 (do_module_cleanup): Use delete.
1844 (compile_object_run): Use new.
1845
ebe824f5
TT
18462020-09-23 Tom Tromey <tom@tromey.com>
1847
1848 * compile/compile-cplus-types.c
1849 (compile_cplus_convert_struct_or_union): Use std::vector.
1850 (compile_cplus_convert_func): Likewise.
1851 * compile/compile-c-types.c (convert_func): Use std::vector.
1852
5dd918d9
TT
18532020-09-21 Tom Tromey <tromey@adacore.com>
1854
1855 * sparc-tdep.c (sparc32_skip_prologue): Use
1856 skip_prologue_using_sal.
1857
5486c517
TT
18582020-09-19 Tom Tromey <tom@tromey.com>
1859
1860 * symfile.c (add_section_size_callback): Remove.
1861 (load_one_section): Rename from load_section_callback. Change
1862 parameters.
1863 (generic_load): Use foreach.
1864
8a6bb1d1
TT
18652020-09-19 Tom Tromey <tom@tromey.com>
1866
1867 * exec.c (add_to_section_table): Remove.
1868 (build_section_table): Use foreach.
1869
08f93a1a
TT
18702020-09-19 Tom Tromey <tom@tromey.com>
1871
1872 * elfread.c (elf_locate_sections): Change parameters.
1873 (elf_symfile_read): Use foreach.
1874
03cd72b8
TT
18752020-09-19 Tom Tromey <tom@tromey.com>
1876
1877 * cli/cli-dump.c (struct callback_data): Remove.
1878 (restore_one_section): Rename from restore_section_callback.
1879 Change parameters.
1880 (restore_binary_file): Change parameters.
1881 (restore_command): Use foreach.
1882
f4f2b85f
TT
18832020-09-19 Tom Tromey <tom@tromey.com>
1884
1885 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1886 (gcore_copy_callback): Likewise.
1887 (gcore_memory_sections): Use foreach.
1888
b35c1d1c
TT
18892020-09-19 Tom Tromey <tom@tromey.com>
1890
1891 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1892 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1893 parameters.
1894 (generic_elf_osabi_sniffer): Use foreach.
1895 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1896 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1897
5bb6e9dd
TT
18982020-09-19 Tom Tromey <tom@tromey.com>
1899
1900 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1901 (dwarf2_get_dwz_file): Use foreach.
1902 (dwarf2_locate_dwo_sections): Change parameters.
1903 (open_and_init_dwo_file): Use foreach.
1904 (dwarf2_locate_common_dwp_sections): Change parameters.
1905 (open_and_init_dwp_file): Use foreach.
1906
ad7277da
TT
19072020-09-19 Tom Tromey <tom@tromey.com>
1908
1909 * symfile.h: (find_lowest_section): Don't declare.
1910 * symfile.c (find_lowest_section): Now static. Change
1911 parameters.
1912 (struct place_section_arg): Remove.
1913 (place_section): Change parameters.
1914 (addr_info_make_relative): Use foreach.
1915 (symfile_dummy_outputs): Remove.
1916 (default_symfile_relocate): Use foreach.
1917
cb814f2e
TT
19182020-09-19 Tom Tromey <tom@tromey.com>
1919
1920 * objfiles.c (add_to_objfile_sections): Rename from
1921 add_to_objfile_sections_full.
1922 (add_to_objfile_sections): Remove.
1923 (build_objfile_section_table): Use foreach.
1924
3cabfd26
TT
19252020-09-19 Tom Tromey <tom@tromey.com>
1926
1927 * stap-probe.c (get_stap_base_address_1): Remove.
1928 (get_stap_base_address): Use foreach.
1929
1ce51eb5
TT
19302020-09-19 Tom Tromey <tom@tromey.com>
1931
1932 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1933 parameters.
1934 (gdb_bfd_close_or_warn): Use foreach.
1935
a190fabb
TT
19362020-09-19 Tom Tromey <tom@tromey.com>
1937
1938 * corelow.c (add_to_thread_list): Change parameters.
1939 (core_target_open): Use foreach.
1940
cafb0d81
TT
19412020-09-19 Tom Tromey <tom@tromey.com>
1942
1943 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1944 existing function.
1945
c8d5abea
AB
19462020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1947
1948 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1949 for arrays.
1950
6d816919
AB
19512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * eval.c: Remove 'f-lang.h' include.
1954 (value_f90_subarray): Moved to f-lang.c.
1955 (eval_call): Renamed to...
1956 (evaluate_subexp_do_call): ...this, is no longer static, header
1957 comment moved into header file.
1958 (evaluate_funcall): Update call to eval_call.
1959 (skip_undetermined_arglist): Moved to f-lang.c.
1960 (fortran_value_subarray): Likewise.
1961 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1962 moved to evaluate_subexp_f.
1963 (calc_f77_array_dims): Moved to f-lang.c
1964 * expprint.c (print_subexp_funcall): New function.
1965 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1966 moved to print_subexp_f, OP_FUNCALL uses new function.
1967 (dump_subexp_body_funcall): New function.
1968 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1969 moved to dump_subexp_f, OP_FUNCALL uses new function.
1970 * expression.h (evaluate_subexp_do_call): Declare.
1971 * f-lang.c (value_f90_subarray): Moved from eval.c.
1972 (skip_undetermined_arglist): Likewise.
1973 (calc_f77_array_dims): Likewise.
1974 (fortran_value_subarray): Likewise.
1975 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1976 (operator_length_f): Likewise.
1977 (print_subexp_f): Likewise.
1978 (dump_subexp_body_f): Likewise.
1979 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1980 declaration of this operation to here.
1981 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1982 support moved to operator_length_f.
1983 * parser-defs.h (dump_subexp_body_funcall): Declare.
1984 (print_subexp_funcall): Declare.
1985 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1986 fortran-operator.def.
1987
8c37706a
AB
19882020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * eval.c (fortran_value_subarray): New function, content is taken
1991 from...
1992 (evaluate_subexp_standard): ...here, in two places. Now arrays
1993 and strings both call the new function.
1994 (calc_f77_array_dims): Add header comment, handle strings.
1995
14f9473c
VC
19962020-09-18 Victor Collod <vcollod@nvidia.com>
1997
1998 PR gdb/26635
1999 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2000 (i386_analyze_prologue): Call i386_skip_endbr.
2001
b60cea74
TT
20022020-09-18 Tom Tromey <tromey@adacore.com>
2003
2004 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2005 (windows_nat_target::wait): Update.
2006 * target/wait.h (enum target_wait_flag): New. Use
2007 DEF_ENUM_FLAGS_TYPE.
2008 * target/target.h (target_wait): Change type of options.
2009 * target.h (target_options_to_string, default_target_wait):
2010 Update.
2011 (struct target_ops) <wait>: Change type of options.
2012 * target.c (target_wait, default_target_wait, do_option): Change
2013 type of "options".
2014 (target_options_to_string): Likewise.
2015 * target-delegates.c: Rebuild.
2016 * target-debug.h (target_debug_print_target_wait_flags): Rename
2017 from target_debug_print_options.
2018 * sol-thread.c (class sol_thread_target) <wait>: Update.
2019 (sol_thread_target::wait): Update.
2020 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2021 (rs6000_nat_target::wait): Update.
2022 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2023 Update.
2024 (remote_target::wait_ns, remote_target::wait_as): Change type of
2025 "options".
2026 (remote_target::wait): Update.
2027 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2028 (gdbsim_target::wait): Update.
2029 * record-full.c (class record_full_base_target) <wait>: Update.
2030 (record_full_wait_1): Change type of "options".
2031 (record_full_base_target::wait): Update.
2032 * record-btrace.c (class record_btrace_target) <wait>: Update.
2033 (record_btrace_target::wait): Update.
2034 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2035 Update.
2036 (ravenscar_thread_target::wait): Update.
2037 * procfs.c (class procfs_target) <wait>: Update.
2038 (procfs_target::wait): Update.
2039 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2040 * obsd-nat.c (obsd_nat_target::wait): Update.
2041 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2042 (nto_procfs_target::wait): Update.
2043 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2044 * nbsd-nat.c (nbsd_wait): Change type of "options".
2045 (nbsd_nat_target::wait): Update.
2046 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2047 (thread_db_target::wait): Update.
2048 * linux-nat.h (class linux_nat_target) <wait>: Update.
2049 * linux-nat.c (linux_nat_target::wait): Update.
2050 (linux_nat_wait_1): Update.
2051 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2052 "options".
2053 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2054 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2055 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2056 (go32_nat_target::wait): Update.
2057 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2058 * gnu-nat.c (gnu_nat_target::wait): Update.
2059 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2060 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2061 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2062 * darwin-nat.c (darwin_nat_target::wait): Update.
2063 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2064 (bsd_uthread_target::wait): Update.
2065 * aix-thread.c (class aix_thread_target) <wait>: Update.
2066 (aix_thread_target::wait): Update.
2067
0295dde6
AB
20682020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2069
2070 * compile/compile-object-run.c (create_copied_type_recursive): New
2071 function.
2072 (compile_object_run): Use new function.
2073
d3483b43
JT
20742020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2075
2076 * NEWS: Mention x86_64 Cygwin core file support.
2077
e7d612ad
JT
20782020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2079
2080 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2081 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2082
aff9d387
JT
20832020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2084
62a5151b
JT
2085 * windows-tdep.h: Add prototypes.
2086 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2087 (i386_windows_core_pid_to_str): Move and rename ...
2088 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2089 (windows_core_pid_to_str): ... and here.
2090 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2091
20922020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2093 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2094 (amd64_windows_init_abi_common): ... and register.
2095
7d155da3
JT
20962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2097
2098 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2099 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2100
e8ef12b9
PA
21012020-09-18 Pedro Alves <pedro@palves.net>
2102
2103 PR gdb/26631
2104 * thread.c (thread_find_command): Switch inferior before calling
2105 target methods.
2106
c1e1314d
TT
21072020-09-17 Tom Tromey <tromey@adacore.com>
2108
2109 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2110 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2111 (tdesc_arch_data_up): New typedef.
2112 (tdesc_use_registers, tdesc_data_alloc): Update.
2113 (tdesc_data_cleanup): Don't declare.
2114 * target-descriptions.c (tdesc_data_alloc): Return a
2115 tdesc_arch_data_up.
2116 (tdesc_arch_data_deleter::operator()): Rename from
2117 tdesc_data_cleanup. Change argument type.
2118 (tdesc_use_registers): Change early_data to an rvalue reference.
2119 (tdesc_use_registers): Don't use delete.
2120 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2121 * s390-tdep.c (s390_gdbarch_init): Update.
2122 * rx-tdep.c (rx_gdbarch_init): Update.
2123 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2124 * riscv-tdep.c (riscv_gdbarch_init): Update.
2125 * or1k-tdep.c (or1k_gdbarch_init): Update.
2126 * nios2-tdep.c (nios2_gdbarch_init): Update.
2127 * nds32-tdep.c (nds32_gdbarch_init): Update.
2128 * mips-tdep.c (mips_gdbarch_init): Update.
2129 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2130 * m68k-tdep.c (m68k_gdbarch_init): Update.
2131 * i386-tdep.c (i386_gdbarch_init): Update.
2132 * arm-tdep.c (arm_gdbarch_init): Update.
2133 * arc-tdep.c (arc_tdesc_init): Update.
2134 (arc_gdbarch_init): Update.
2135 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2136
0363df3d
HD
21372020-09-17 Hannes Domani <ssbssa@yahoo.de>
2138
2139 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2140 for WOW64 processes.
2141
280a9412
TT
21422020-09-17 Tom Tromey <tom@tromey.com>
2143
2144 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2145
6108fd18
TT
21462020-09-17 Tom Tromey <tom@tromey.com>
2147
2148 * value.c (preserve_values): Update.
2149 * python/py-type.c (save_objfile_types): Update.
2150 * guile/scm-type.c (save_objfile_types): Update.
2151 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2152 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2153 * compile/compile-object-run.c (compile_object_run): Update.
2154
fa9b1164
TT
21552020-09-17 Tom Tromey <tom@tromey.com>
2156
2157 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2158 Remove.
2159 <m_table>: Now htab_up.
2160 * typeprint.c (typedef_hash_table::recursively_update)
2161 (typedef_hash_table::add_template_parameters)
2162 (typedef_hash_table::typedef_hash_table): Update.
2163 (typedef_hash_table::~typedef_hash_table): Remove.
2164 (typedef_hash_table::typedef_hash_table)
2165 (typedef_hash_table::find_global_typedef)
2166 (typedef_hash_table::find_typedef): Update.
2167
eb53f105
TT
21682020-09-17 Tom Tromey <tom@tromey.com>
2169
2170 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2171
7a8a5d47
TT
21722020-09-17 Tom Tromey <tom@tromey.com>
2173
2174 * linespec.c (class decode_compound_collector)
2175 <~decode_compound_collector>: Remove.
2176 <m_unique_syms>: Now htab_up.
2177 (decode_compound_collector::operator ()): Update.
2178 (class symtab_collector) <~symtab_collector>: Remove.
2179 <m_symtab_table>: Now htab_up.
2180 (symtab_collector::operator ()): Update.
2181
99032cfc
TT
21822020-09-17 Tom Tromey <tom@tromey.com>
2183
2184 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2185 (filename_seen_cache::clear): Update.
2186 (~filename_seen_cache): Remove.
2187 (filename_seen_cache::seen): Update.
2188 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2189 htab_up.
2190 <~filename_seen_cache>: Remove.
2191 <traverse>: Update.
2192
32580f6d
TT
21932020-09-17 Tom Tromey <tom@tromey.com>
2194
2195 * completer.c (completion_tracker::discard_completions)
2196 (completion_tracker::~completion_tracker)
2197 (completion_tracker::maybe_add_completion)
2198 (completion_tracker::remove_completion)
2199 (completion_tracker::recompute_lowest_common_denominator)
2200 (completion_tracker::build_completion_result): Update.
2201 * completer.h (class completion_tracker) <have_completions>:
2202 Update.
2203 <m_entries_hash>: Now htab_up.
2204
c1fb9836
TT
22052020-09-17 Tom Tromey <tom@tromey.com>
2206
2207 * breakpoint.c (ambiguous_names_p): Use htab_up.
2208
88f07206
TT
22092020-09-17 Tom Tromey <tom@tromey.com>
2210
2211 * auto-load.c (struct auto_load_pspace_info)
2212 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2213 <loaded_script_files, loaded_script_texts>: Change type to
2214 htab_up.
2215 (~auto_load_pspace_info) Remove.
2216 (init_loaded_scripts_info, maybe_add_script_file)
2217 (maybe_add_script_text, auto_load_info_scripts): Update.
2218
9519b2ee
TT
22192020-09-17 Tom Tromey <tromey@adacore.com>
2220
2221 * c-exp.y (name_obstack): Now static.
2222
d2cd4113
CC
22232020-09-17 Chungyi Chi <demonic@csie.io>
2224
2225 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2226
b650a282
SM
22272020-09-16 Simon Marchi <simon.marchi@efficios.com>
2228
2229 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2230 (add_solib_catchpoint): Likewise.
2231 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2232 to bool.
2233 (add_solib_catchpoint): Change int parameter/variable to bool.
2234 (catch_load_or_unload): Likewise.
2235 (init_catchpoint): Likewise.
2236 (create_fork_vfork_event_catchpoint): Likewise.
2237 (catch_fork_command_1): Likewise.
2238 (catch_exec_command_1): Likewise.
2239
4d0bcfcf
SM
22402020-09-16 Simon Marchi <simon.marchi@efficios.com>
2241
2242 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2243 Change instance_flags to m_instance_flags.
2244
fe830662
TT
22452020-09-16 Tom Tromey <tromey@adacore.com>
2246
2247 PR gdb/26598:
2248 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2249
fe5ddfc3
JB
22502020-09-16 John Baldwin <jhb@FreeBSD.org>
2251
2252 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2253 PL_FLAG_EXEC.
2254 (fbsd_nat_target::insert_exec_catchpoint)
2255 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2256 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2257 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2258
e911c666
JB
22592020-09-16 John Baldwin <jhb@FreeBSD.org>
2260
2261 * configure.ac: Remove check for kinfo_getvmmap().
2262 * configure, config.in: Regenerate.
2263 * fbsd-nat.c (fbsd_read_mapping): Remove
2264 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2265 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2266 kinfo_get_vmmap() are always present.
2267
1f17d372
JB
22682020-09-16 John Baldwin <jhb@FreeBSD.org>
2269
2270 * fbsd-nat.c: Always include support for
2271 TARGET_OBJECT_SIGNAL_INFO.
2272
bcb1da7f
JB
22732020-09-16 John Baldwin <jhb@FreeBSD.org>
2274
2275 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2276 sysctl and remove procfs fallback.
2277
5515f729
JB
22782020-09-16 John Baldwin <jhb@FreeBSD.org>
2279
2280 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2281 * fbsd-nat.h: Likewise.
2282
da1df1db
TBA
22832020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2284
2285 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2286 argument.
2287
0e25e767
AB
22882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2289
2290 * ada-lang.c (ada_language_data): Delete.
2291 (ada_language): Remove references to ada_language_data.
2292 * c-lang.c (c_language_data): Delete.
2293 (c_language): Remove references to c_language_data.
2294 (cplus_language_data): Delete.
2295 (cplus_language): Remove references to cplus_language_data.
2296 (asm_language_data): Delete.
2297 (asm_language): Remove references to asm_language_data.
2298 (minimal_language_data): Delete.
2299 (minimal_language): Remove references to minimal_language_data.
2300 * d-lang.c (d_language_data): Delete.
2301 (d_language): Remove references to d_language_data.
2302 * f-lang.c (f_language_data): Delete.
2303 (f_language): Remove references to f_language_data.
2304 * go-lang.c (go_language_data): Delete.
2305 (go_language): Remove references to go_language_data.
2306 * language.c (unknown_language_data): Delete.
2307 (unknown_language): Remove references to unknown_language_data.
2308 (auto_language_data): Delete.
2309 (auto_language): Remove references to auto_language_data.
2310 * language.h (language_data): Delete struct.
2311 (language_defn): No longer inherit from language_data.
2312 * m2-lang.c (m2_language_data): Delete.
2313 (m2_language): Remove references to m2_language_data.
2314 * objc-lang.c (objc_language_data): Delete.
2315 (objc_language): Remove references to objc_language_data.
2316 * opencl-lang.c (opencl_language_data): Delete.
2317 (opencl_language): Remove references to opencl_language_data.
2318 * p-lang.c (pascal_language_data): Delete.
2319 (pascal_language): Remove references to pascal_language_data.
2320 * rust-lang.c (rust_language_data): Delete.
2321 (rust_language): Remove references to rust_language_data.
2322
b7c6e27d
AB
23232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2324
2325 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2326 initializer.
2327 (ada_language::opcode_print_table): New member function.
2328 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2329 (c_language::opcode_print_table): New member function.
2330 (cplus_language_data): Remove la_op_print_tab initializer.
2331 (cplus_language::opcode_print_table): New member function.
2332 (asm_language_data): Remove la_op_print_tab initializer.
2333 (asm_language::opcode_print_table): New member function.
2334 (minimal_language_data): Remove la_op_print_tab initializer.
2335 (minimal_language::opcode_print_table): New member function.
2336 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2337 (d_language::opcode_print_table): New member function.
2338 * expprint.c (print_subexp_standard): Update call to
2339 opcode_print_table.
2340 (op_string): Likewise.
2341 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2342 (f_language::opcode_print_table): New member function.
2343 * go-lang.c (go_language_data): Remove la_op_print_tab
2344 initializer.
2345 (go_language::opcode_print_table): New member function.
2346 * language.c (unknown_language_data): Remove la_op_print_tab
2347 initializer.
2348 (unknown_language::opcode_print_table): New member function.
2349 (auto_language_data): Remove la_op_print_tab initializer.
2350 (auto_language::opcode_print_table): New member function.
2351 * language.h (language_data): Remove la_op_print_tab field.
2352 (language_defn::opcode_print_table): Declare new member function.
2353 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2354 initializer.
2355 (m2_language::opcode_print_table): New member function.
2356 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2357 initializer.
2358 (objc_language::opcode_print_table): New member function.
2359 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2360 initializer.
2361 (opencl_language::opcode_print_table): New member function.
2362 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2363 initializer.
2364 (pascal_language::opcode_print_table): New member function.
2365 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2366 initializer.
2367 (rust_language::opcode_print_table): New member function.
2368
5aba6ebe
AB
23692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2372 (ada_language::expression_ops): New member function.
2373 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2374 (c_language::expression_ops): New member function.
2375 (cplus_language_data): Remove la_exp_desc initializer.
2376 (cplus_language::expression_ops): New member function.
2377 (asm_language_data): Remove la_exp_desc initializer.
2378 (asm_language::expression_ops): New member function.
2379 (minimal_language_data): Remove la_exp_desc initializer.
2380 (minimal_language::expression_ops): New member function.
2381 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2382 (d_language::expression_ops): New member function.
2383 * eval.c (evaluate_subexp): Update call to expression_ops.
2384 * expprint.c (print_subexp): Likewise.
2385 (op_name): Likewise.
2386 (dump_subexp_body): Likewise.
2387 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2388 (f_language::expression_ops): New member function.
2389 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2390 (go_language::expression_ops): New member function.
2391 * language.c (language_defn::expression_ops): New function.
2392 (unknown_language_data): Remove la_exp_desc initializer.
2393 (auto_language_data): Likewise.
2394 * language.h (language_data): Remove la_exp_desc field.
2395 (language_defn::expression_ops): Declare new member function.
2396 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2397 (m2_language::expression_ops): New member function.
2398 * objc-lang.c (objc_language_data): Remove la_exp_desc
2399 initializer.
2400 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2401 initializer.
2402 (opencl_language::expression_ops): New member function.
2403 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2404 * parse.c (operator_length): Update call to expression_ops.
2405 (exp_iterate): Likewise.
2406 * rust-lang.c (rust_language_data): Remove la_exp_desc
2407 initializer.
2408 (ruse_language::expression_ops): New member function.
2409
b63a3f3f
AB
24102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2413 initializer.
2414 (ada_language::varobj_ops): New member function.
2415 * c-lang.c (c_language_data): Remove la_varobj_ops
2416 initializer.
2417 (cplus_language_data): Likewise.
2418 (cplus_language::varobj_ops): New member function.
2419 (asm_language_data): Remove la_varobj_ops initializer.
2420 (minimal_language_data): Likewise.
2421 * d-lang.c (d_language_data): Likewise.
2422 * f-lang.c (f_language_data): Likewise.
2423 * go-lang.c (go_language_data): Likewise.
2424 * language.c (language_defn::varobj_ops): New function.
2425 (unknown_language_data): Remove la_varobj_ops
2426 initializer.
2427 (auto_language_data): Likewise.
2428 * language.h (language_data): Remove la_varobj_ops field.
2429 (language_defn::varobj_ops): Declare new member function.
2430 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2431 * objc-lang.c (objc_language_data): Likewise.
2432 * opencl-lang.c (opencl_language_data): Likewise.
2433 * p-lang.c (pascal_language_data): Likewise.
2434 * rust-lang.c (rust_language_data): Likewise.
2435 * varobj.c (varobj_create): Update call to varobj_ops.
2436 * varobj.h (default_varobj_ops): Delete define.
2437
1ac14a04
AB
24382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2441 initializer.
2442 * c-lang.c (c_language_data): Likewise.
2443 (c_language::macro_expansion): New member function.
2444 (cplus_language_data): Likewise.
2445 (cplus_language::macro_expansion): New member function.
2446 (asm_language_data): Likewise.
2447 (asm_language::macro_expansion): New member function.
2448 (minimal_language_data): Likewise.
2449 (minimal_language::macro_expansion): New member function.
2450 * d-lang.c (d_language_data): Remove la_macro_expansion
2451 initializer.
2452 * f-lang.c (f_language_data): Likewise.
2453 * go-lang.c (go_language_data): Likewise.
2454 * language.c (unknown_language_data): Likewise.
2455 (auto_language_data): Likewise.
2456 * language.h (language_data): Remove la_macro_expansion field.
2457 (language_defn::macro_expansion): New member function.
2458 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2459 initializer.
2460 * objc-lang.c (objc_language_data): Likewise.
2461 (objc_language::macro_expansion): New member function.
2462 * opencl-lang.c (opencl_language_data): Likewise.
2463 (opencl_language::macro_expansion): New member function.
2464 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2465 initializer.
2466 * rust-lang.c (rust_language_data): Likewise.
2467 * symtab.c (default_collect_symbol_completion_matches_break_on):
2468 Update call to macro_expansion.
2469
3a3440fb
AB
24702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2471
2472 * ada-lang.c (ada_language_data): Remove la_array_ordering
2473 initializer.
2474 * c-lang.c (c_language_data): Likewise.
2475 (cplus_language_data): Likewise.
2476 (asm_language_data): Likewise.
2477 (minimal_language_data): Likewise.
2478 * d-lang.c (d_language_data): Likewise.
2479 * dwarf2/read.c (read_array_order): Update for call to
2480 array_ordering.
2481 * f-lang.c (f_language_data): Remove la_array_ordering
2482 initializer.
2483 (f_language::array_ordering): New member function.
2484 * go-lang.c (go_language_data): Remove la_array_ordering
2485 initializer.
2486 * language.c (unknown_language_data): Likewise.
2487 (auto_language_data): Likewise.
2488 * language.h (language_data): Delete la_array_ordering field.
2489 (language_defn::array_ordering): New member function.
2490 * m2-lang.c (m2_language_data): Remove la_array_ordering
2491 initializer.
2492 * objc-lang.c (objc_language_data): Likewise.
2493 * opencl-lang.c (opencl_language_data): Likewise.
2494 * p-lang.c (pascal_language_data): Likewise.
2495 * rust-lang.c (rust_language_data): Likewise.
2496
0d201fa4
AB
24972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2498
2499 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2500 initializer.
2501 * c-lang.c (c_language_data): Likewise.
2502 (cplus_language_data): Likewise.
2503 (asm_language_data): Likewise.
2504 (minimal_language_data): Likewise.
2505 * d-lang.c (d_language_data): Likewise.
2506 * f-lang.c (f_language_data): Likewise.
2507 (f_language::case_sensitivity): New member function.
2508 * go-lang.c (go_language_data): Remove la_case_sensitivity
2509 initializer.
2510 * language.c (enum case_mode): Moved here from language.h.
2511 (case_mode): Make static.
2512 (show_case_command): Update for case_sensitivity being a method.
2513 (set_case_command): Likewise.
2514 (set_range_case): Likewise.
2515 (unknown_language_data): Remove la_case_sensitivity initializer.
2516 (auto_language_data): Likewise.
2517 * language.h (case_mode): Delete, move enum declaration to
2518 language.c.
2519 (language_data): Delete la_case_sensitivity field.
2520 (language_defn::case_sensitivity): New member function.
2521 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2522 initializer.
2523 * objc-lang.c (objc_language_data): Likewise.
2524 * opencl-lang.c (opencl_language_data): Likewise.
2525 * p-lang.c (pascal_language_data): Likewise.
2526 * rust-lang.c (rust_language_data): Likewise.
2527
efdf6a73
AB
25282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2529
2530 * ada-lang.c (ada_language_data): Remove la_range_check
2531 initializer.
2532 * c-lang.c (c_language_data): Likewise.
2533 (cplus_language_data): Likewise.
2534 (asm_language_data): Likewise.
2535 (minimal_language_data): Likewise.
2536 * d-lang.c (d_language_data): Likewise.
2537 * f-lang.c (f_language_data): Likewise.
2538 (f_language::range_checking_on_by_default): New member function.
2539 * go-lang.c (go_language_data): Remove la_range_check initializer.
2540 * language.c (enum range_mode): Moved here from language.h.
2541 (range_mode): Made static.
2542 (show_range_command): Update to use
2543 range_checking_on_by_default.
2544 (set_range_command): Likewise.
2545 (set_range_case): Likewise.
2546 (unknown_language_data): Remove la_range_check initializer.
2547 (auto_language_data): Likewise.
2548 * language.h (range_mode): Delete. Enum definition moved to
2549 language.c.
2550 (language_data): Remove la_range_check field.
2551 (language_defn::range_checking_on_by_default): New member
2552 function.
2553 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2554 (m2_language::range_checking_on_by_default): New member function.
2555 * objc-lang.c (objc_language_data): Remove la_range_check
2556 initializer.
2557 * opencl-lang.c (opencl_language_data): Likewise.
2558 * p-lang.c (pascal_language_data): Likewise.
2559 (pascal_language::range_checking_on_by_default): New member
2560 function.
2561 * rust-lang.c (rust_language_data): Remove la_range_check
2562 initializer.
2563 (rust_language::range_checking_on_by_default): New member
2564 function.
2565
bf92aec5
AB
25662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2567
2568 * dwarf2/read.c (dwarf2_physname): Remove special case for
2569 language_go.
2570 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2571 member function.
2572
d3355e4d
AB
25732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2574
2575 * ada-lang.c (ada_language_data): Remove
2576 la_store_sym_names_in_linkage_form_p initializer.
2577 (ada_language::store_sym_names_in_linkage_form_p): New member
2578 function.
2579 * c-lang.c (c_language_data): Remove
2580 la_store_sym_names_in_linkage_form_p initializer.
2581 (c_language::store_sym_names_in_linkage_form_p): New member
2582 function.
2583 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2584 initializer.
2585 (asm_language_data): Likewise.
2586 (asm_language::store_sym_names_in_linkage_form_p): New member
2587 function.
2588 (minimal_language_data): Remove
2589 la_store_sym_names_in_linkage_form_p initializer.
2590 (minimal_language::store_sym_names_in_linkage_form_p): New member
2591 function.
2592 * d-lang.c (d_language_data): Remove
2593 la_store_sym_names_in_linkage_form_p initializer.
2594 * dwarf2/read.c (dwarf2_physname): Update call to
2595 store_sym_names_in_linkage_form_p.
2596 * f-lang.c (f_language_data): Remove
2597 la_store_sym_names_in_linkage_form_p initializer.
2598 * go-lang.c (go_language_data): Remove
2599 la_store_sym_names_in_linkage_form_p initializer.
2600 * language.c (unknown_language_data): Remove
2601 la_store_sym_names_in_linkage_form_p initializer.
2602 (unknown_language::store_sym_names_in_linkage_form_p): New member
2603 function.
2604 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2605 initializer.
2606 (auto_language::store_sym_names_in_linkage_form_p): New member
2607 function.
2608 * language.h (language_data): Remove
2609 la_store_sym_names_in_linkage_form_p member variable.
2610 (language_defn::store_sym_names_in_linkage_form_p): New member
2611 function.
2612 * m2-lang.c (m2_language_data): Remove
2613 la_store_sym_names_in_linkage_form_p initializer.
2614 * objc-lang.c (objc_language_data): Likewise.
2615 * opencl-lang.c (opencl_language_data): Likewise.
2616 * p-lang.c (pascal_language_data): Likewise.
2617 * rust-lang.c (rust_language_data): Likewise.
2618
22c12a6c
AB
26192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 * ada-lang.c (ada_language_data): Remove string_lower_bound
2622 initializer.
2623 * c-lang.c (c_language_data): Likewise.
2624 (cplus_language_data): Likewise.
2625 (asm_language_data): Likewise.
2626 (minimal_language_data): Likewise.
2627 * d-lang.c (d_language_data): Likewise.
2628 * f-lang.c (f_language_data): Likewise.
2629 * go-lang.c (go_language_data): Likewise.
2630 * language.c (unknown_language_data): Likewise.
2631 (auto_language_data): Likewise.
2632 * language.h (language_data): Remove string_lower_bound field.
2633 (language_defn::string_lower_bound): New member function.
2634 * m2-lang.c (m2_language_data): Remove string_lower_bound
2635 initializer.
2636 (m2_language::string_lower_bound): New member function.
2637 * objc-lang.c (objc_language_data): Remove string_lower_bound
2638 initializer.
2639 * opencl-lang.c (opencl_language_data): Likewise.
2640 * p-lang.c (pascal_language_data): Likewise.
2641 * rust-lang.c (rust_language_data): Likewise.
2642 * valops.c (value_cstring): Update call to string_lower_bound.
2643 (value_string): Likewise.
2644 * value.c (allocate_repeated_value): Likewise.
2645
1c236ddd
AB
26462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2647
2648 * valops.c (value_repeat): Fix incorrect argument name in comment.
2649
67bd3fd5
AB
26502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2651
2652 * ada-lang.c (ada_language_data): Remove c_style_arrays
2653 initializer.
2654 (ada_language::c_style_arrays_p): New member fuction.
2655 * c-lang.c (c_language_data): Remove c_style_arrays
2656 initializer.
2657 (cplus_language_data): Likewise.
2658 (asm_language_data): Likewise.
2659 (minimal_language_data): Likewise.
2660 * d-lang.c (d_language_data): Likewise.
2661 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2662 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2663 (f_language::c_style_arrays_p): New member function.
2664 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2665 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2666 * language.c (unknown_language_data): Remove c_style_arrays
2667 initializer.
2668 (auto_language_data): Likewise.
2669 * language.h (language_data): Remove c_style_arrays field.
2670 (language_defn::c_style_arrays_p): New member function.
2671 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2672 (m2_language::c_style_arrays_p): New member function.
2673 * objc-lang.c (objc_language_data): Remove c_style_arrays
2674 initializer.
2675 * opencl-lang.c (opencl_language_data): Likewise.
2676 * p-lang.c (pascal_language_data): Likewise.
2677 * rust-lang.c (rust_language_data): Likewise.
2678 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2679 and update local variable to a bool.
2680 * valops.c (value_cast): Update call to c_style_arrays_p.
2681 (value_array): Likewise.
2682 * value.c (coerce_array): Likewise.
2683
85967615
AB
26842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * ada-lang.c (ada_language_data): Remove la_language initializer.
2687 * c-lang.c (c_language_data): Likewise.
2688 (cplus_language_data): Likewise.
2689 (asm_language_data): Likewise.
2690 (minimal_language_data): Likewise.
2691 * d-lang.c (d_language_data): Likewise.
2692 * f-lang.c (f_language_data): Likewise.
2693 * go-lang.c (go_language_data): Likewise.
2694 * language.c (unknown_language_data): Likewise.
2695 (auto_language_data): Likewise.
2696 * language.h (language_data): Remove la_language field.
2697 (language_defn::language_defn): Initialise la_language field.
2698 (language_defn::la_language): New member variable.
2699 * m2-lang.c (m2_language_data): Remove la_language field.
2700 * objc-lang.c (objc_language_data): Likewise.
2701 * opencl-lang.c (opencl_language_data): Likewise.
2702 * p-lang.c (pascal_language_data): Likewise.
2703 * rust-lang.c (rust_language_data): Likewise.
2704
e171d6f1
AB
27052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2706
2707 * ada-lang.c (ada_extensions): Delete, moved into
2708 ada_language::filename_extensions.
2709 (ada_language_data): Remove la_filename_extensions initializer.
2710 (ada_language::filename_extensions): New member function.
2711 * c-lang.c (c_extensions): Delete, moved into
2712 c_language::filename_extensions.
2713 (c_language_data): Remove la_filename_extensions initializer.
2714 (c_language::filename_extensions): New member function.
2715 (cplus_extensions): Delete, moved into
2716 cplus_language::filename_extensions.
2717 (cplus_language_data): Remove la_filename_extensions initializer.
2718 (cplus_language::filename_extensions): New member function.
2719 (asm_extensions): Delete, moved into
2720 asm_language::filename_extensions.
2721 (asm_language_data): Remove la_filename_extensions initializer.
2722 (asm_language::filename_extensions): New member function.
2723 (minimal_language_data): Remove la_filename_extensions
2724 initializer.
2725 * d-lang.c (d_extensions): Delete, moved into
2726 d_language::filename_extensions.
2727 (d_language_data): Remove la_filename_extensions initializer.
2728 (d_language::filename_extensions): New member function.
2729 * f-lang.c (f_extensions): Delete, moved into
2730 f_language::filename_extensions.
2731 (f_language_data): Remove la_filename_extensions initializer.
2732 (f_language::filename_extensions): New member function.
2733 * go-lang.c (go_language_data): Remove la_filename_extensions
2734 initializer.
2735 * language.c (add_set_language_command): Update now that
2736 filename_extensions returns a vector.
2737 (unknown_language_data): Remove la_filename_extensions
2738 initializer.
2739 (auto_language_data): Likewise.
2740 * language.h (language_data): Remove la_filename_extensions field.
2741 (language_defn::filename_extensions): New member function.
2742 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2743 initializer.
2744 * objc-lang.c (objc_extensions): Delete, moved into
2745 objc_language::filename_extensions.
2746 (objc_language_data): Remove la_filename_extensions initializer.
2747 (objc_language::filename_extensions): New member function.
2748 * opencl-lang.c (opencl_language_data): Remove
2749 la_filename_extensions initializer.
2750 * p-lang.c (pascal_extensions): Delete, moved into
2751 pascal_language::filename_extensions.
2752 (pascal_language_data): Remove la_filename_extensions initializer.
2753 (pascal_language::filename_extensions): New member function.
2754 * rust-lang.c (rust_extensions): Delete, moved into
2755 rust_language::filename_extensions.
2756 (rust_language_data): Remove la_filename_extensions initializer.
2757 (rust_language::filename_extensions): New member function.
2758 * symfile.c (add_filename_language): Add new assert.
2759
6f7664a9
AB
27602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * ada-lang.c (ada_language_data): Remove la_name and
2763 la_natural_name initializers.
2764 (ada_language::name): New member function.
2765 (ada_language::natural_name): New member function.
2766 * c-lang.c (c_language_data): Remove la_name and
2767 la_natural_name initializers.
2768 (c_language::name): New member function.
2769 (c_language::natural_name): New member function.
2770 (cplus_language_data): Remove la_name and
2771 la_natural_name initializers.
2772 (cplus_language::name): New member function.
2773 (cplus_language::natural_name): New member function.
2774 (asm_language_data): Remove la_name and
2775 la_natural_name initializers.
2776 (asm_language::name): New member function.
2777 (asm_language::natural_name): New member function.
2778 (minimal_language_data): Remove la_name and
2779 la_natural_name initializers.
2780 (minimal_language::name): New member function.
2781 (minimal_language::natural_name): New member function.
2782 * compile/compile.c (compile_to_object): Update call to
2783 lanugage_defn::name.
2784 * d-lang.c (d_language_data): Remove la_name and
2785 la_natural_name initializers.
2786 (d_language::name): New member function.
2787 (d_language::natural_name): New member function.
2788 * expprint.c (print_subexp_standard): Update call to
2789 language_defn::name.
2790 (dump_raw_expression): Likewise
2791 (dump_prefix_expression): Likewise.
2792 * f-lang.c (f_language_data): Remove la_name and
2793 la_natural_name initializers.
2794 (f_language::name): New member function.
2795 (f_language::natural_name): New member function.
2796 * go-lang.c (go_language_data): Remove la_name and
2797 la_natural_name initializers.
2798 (go_language::name): New member function.
2799 (go_language::natural_name): New member function.
2800 * language.c (show_language_command): Update call to
2801 language_defn::name.
2802 (set_language_command): Likewise.
2803 (language_enum): Likewise.
2804 (language_str): Likewise.
2805 (add_set_language_command): Likewise, use
2806 language_defn::natural_name in the doc string.
2807 (unknown_language_data): Remove la_name and
2808 la_natural_name initializers.
2809 (unknown_language::name): New member function.
2810 (unknown_language::natural_name): New member function.
2811 (auto_language_data): Remove la_name and
2812 la_natural_name initializers.
2813 (auto_language::name): New member function.
2814 (auto_language::natural_name): New member function.
2815 (language_lookup_primitive_type_as_symbol): Update call to
2816 language_defn::name.
2817 * language.h (language_data): Remove la_name and la_natural_name
2818 member variables.
2819 (language_defn::name): New member function.
2820 (language_defn::natural_name): New member function.
2821 * m2-lang.c (m2_language_data): Remove la_name and
2822 la_natural_name initializers.
2823 (m2_language::name): New member function.
2824 (m2_language::natural_name): New member function.
2825 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2826 language_defn::natural_name.
2827 * objc-lang.c (objc_language_data): Remove la_name and
2828 la_natural_name initializers.
2829 (objc_language::name): New member function.
2830 (objc_language::natural_name): New member function.
2831 * opencl-lang.c (opencl_language_data): Remove la_name and
2832 la_natural_name initializers.
2833 (opencl_language::name): New member function.
2834 (opencl_language::natural_name): New member function.
2835 * p-lang.c (pascal_language_data): Remove la_name and
2836 la_natural_name initializers.
2837 (pascal_language::name): New member function.
2838 (pascal_language::natural_name): New member function.
2839 * rust-lang.c (rust_language_data): Remove la_name and
2840 la_natural_name initializers.
2841 (rust_language::name): New member function.
2842 (rust_language::natural_name): New member function.
2843 * symtab.c (lookup_language_this): Update call to
2844 language_defn::name.
2845
5bae7c4e
AB
28462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * ada-lang.c (ada_language_data): Remove la_name_of_this
2849 initializer.
2850 * ax-gdb.c (gen_expr): Update call to name_of_this.
2851 * c-exp.y (classify_name): Likewise.
2852 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2853 (cplus_language_data): Likewise.
2854 (cplus_language::name_of_this): New member function.
2855 (asm_language_data): Remove la_name_of_this initializer.
2856 (minimal_language_data): Likewise.
2857 * d-lang.c (d_language_data): Likewise.
2858 (d_language::name_of_this): New member function.
2859 * expprint.c (print_subexp_standard): Update call to name_of_this.
2860 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2861 * go-lang.c (go_language_data): Likewise.
2862 * language.c (unknown_language_data): Likewise.
2863 (unknown_language::name_of_this): New member function.
2864 (auto_language_data): Remove la_name_of_this initializer.
2865 (auto_language::name_of_this): New member function.
2866 * language.h (language_data): Delete la_name_of_this member
2867 variable.
2868 (language_defn::name_of_this): New member function.
2869 * m2-lang.c (m2_language_data): Remove la_name_of_this
2870 initializer.
2871 * objc-lang.c (objc_language_data): Likewise.
2872 (objc_language::name_of_this): New member function.
2873 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2874 initializer.
2875 * p-lang.c (pascal_language_data): Likewise.
2876 (pascal_language::name_of_this): New member function.
2877 * rust-lang.c (rust_language_data): Remove la_name_of_this
2878 initializer.
2879 * symtab.c (lookup_language_this): Update call to name_of_this.
2880 (lookup_symbol_aux): Likewise.
2881 * valops.c (value_of_this): Likewise.
2882
22e3f3ed
AB
28832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2884
2885 * ada-lang.c (ada_language_data): Remove
2886 la_struct_too_deep_ellipsis initializer.
2887 (ada_language::struct_too_deep_ellipsis): New member function.
2888 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2889 initializer.
2890 (cplus_language_data): Likewise.
2891 (asm_language_data): Likewise.
2892 (minimal_language_data): Likewise.
2893 * cp-valprint.c (cp_print_value): Update call to
2894 struct_too_deep_ellipsis.
2895 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2896 initializer.
2897 * f-lang.c (f_language_data): Likewise.
2898 (f_language::struct_too_deep_ellipsis): New member function.
2899 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2900 initializer.
2901 * language.c (unknown_language_data): Likewise.
2902 (auto_language_data): Likewise.
2903 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2904 member variable.
2905 (language_defn::struct_too_deep_ellipsis): New member function.
2906 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2907 initializer.Q
2908 * objc-lang.c (objc_language_data): Likewise.
2909 * opencl-lang.c (opencl_language_data): Likewise.
2910 * p-lang.c (pascal_language_data): Likewise.
2911 * rust-lang.c (rust_language_data): Likewise.
2912 * valprint.c (val_print_check_max_depth): Update call to
2913 struct_too_deep_ellipsis.
2914
ed29e1c7
FW
29152020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2916
2917 * MAINTAINERS (Write After Approval): Add myself.
2918
12d8f940
TT
29192020-09-15 Tom Tromey <tom@tromey.com>
2920
2921 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2922 Remove.
2923
6b5a7bc7
TT
29242020-09-15 Tom Tromey <tom@tromey.com>
2925
2926 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2927 and TYPE_CODE_METHODPTR cases.
2928 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2929 (c_value_print_inner): Update.
2930 * valprint.c (generic_value_print_memberptr): New function, from
2931 c_value_print_memberptr.
2932 (generic_value_print): Use it. Call cplus_print_method_ptr.
2933
47f0e2ff
TT
29342020-09-15 Tom Tromey <tromey@adacore.com>
2935
2936 * python/python-internal.h (PyInt_FromLong): Remove define.
2937 * python/py-value.c (convert_value_from_python): Use
2938 gdb_py_object_from_longest.
2939 * python/py-type.c (typy_get_code): Use
2940 gdb_py_object_from_longest.
2941 * python/py-symtab.c (salpy_get_line): Use
2942 gdb_py_object_from_longest.
2943 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2944 gdb_py_object_from_longest.
2945 * python/py-record.c (recpy_gap_reason_code): Use
2946 gdb_py_object_from_longest.
2947 * python/py-record-btrace.c (recpy_bt_insn_size)
2948 (recpy_bt_func_level, btpy_list_count): Use
2949 gdb_py_object_from_longest.
2950 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2951 gdb_py_object_from_longest. Fix error handling.
2952 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2953 gdb_py_object_from_longest.
2954 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2955 gdb_py_object_from_longest.
2956 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2957 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2958 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2959
512116ce
TT
29602020-09-15 Tom Tromey <tromey@adacore.com>
2961
2962 * python/python.c (gdbpy_parameter_value): Use
2963 gdb_py_object_from_ulongest.
2964
4ab1029c
TT
29652020-09-15 Tom Tromey <tromey@adacore.com>
2966
2967 * python/py-infevents.c (create_register_changed_event_object):
2968 Use gdb_py_object_from_longest.
2969 * python/py-exitedevent.c (create_exited_event_object): Use
2970 gdb_py_object_from_longest.
2971
062534d4
TT
29722020-09-15 Tom Tromey <tromey@adacore.com>
2973
2974 * python/python.c (gdbpy_parameter_value): Use
2975 gdb_py_object_from_longest.
2976 * python/py-type.c (convert_field, typy_range): Use
2977 gdb_py_object_from_longest.
2978 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2979 gdb_py_object_from_longest.
2980 * python/py-lazy-string.c (stpy_get_length): Use
2981 gdb_py_object_from_longest.
2982 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2983 gdb_py_object_from_longest.
2984 * python/py-infevents.c (create_memory_changed_event_object): Use
2985 gdb_py_object_from_longest.
2986 * python/py-inferior.c (infpy_get_num): Use
2987 gdb_py_object_from_longest.
2988 (infpy_get_pid): Likewise.
2989
d1cab987
TT
29902020-09-15 Tom Tromey <tromey@adacore.com>
2991
2992 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2993 defines.
2994 * python/py-value.c (valpy_long): Use
2995 gdb_py_object_from_ulongest.
2996 * python/py-symtab.c (salpy_get_pc): Use
2997 gdb_py_object_from_ulongest.
2998 (salpy_get_last): Likewise.
2999 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3000 gdb_py_object_from_ulongest.
3001 * python/py-lazy-string.c (stpy_get_address): Use
3002 gdb_py_object_from_ulongest.
3003 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3004 * python/py-arch.c (archpy_disassemble): Use
3005 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3006 error handling.
3007
4bde49dc
TT
30082020-09-15 Tom Tromey <tromey@adacore.com>
3009
3010 * python/python-internal.h (gdb_py_long_from_longest): Remove
3011 defines.
3012 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3013 * python/py-type.c (convert_field, typy_get_sizeof): Use
3014 gdb_py_object_from_longest.
3015 * python/py-record-btrace.c (btpy_list_index): Use
3016 gdb_py_object_from_longest.
3017
37431074
TT
30182020-09-15 Tom Tromey <tromey@adacore.com>
3019
3020 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3021 * python/py-record.c (recpy_element_number): Use
3022 gdb_py_object_from_longest.
3023 (recpy_gap_number): Likewise.
3024
cbe25684
TT
30252020-09-15 Tom Tromey <tromey@adacore.com>
3026
3027 * top.c (ui::ui): Update.
3028 (highest_ui_num): Remove.
3029 * top.h (struct ui) <num>: Remove.
3030
db92ac45
TT
30312020-09-15 Tom Tromey <tromey@adacore.com>
3032
3033 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3034 * ui-style.c (ansi_regex_text): Now array.
3035 * rust-exp.y (number_regex_text): Now array.
3036 * linespec.c (linespec_quote_characters): Now array.
3037 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3038 Now arrays.
3039
d2b31b67
SM
30402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3041
3042 * debuginfod-support.c (debuginfod_client_deleter): New.
3043 (debuginfod_client_up): New.
3044 (debuginfod_init): Return debuginfod_client_up.
3045 (debuginfod_source_query): Adjust.
3046 (debuginfod_debuginfo_query): Adjust.
3047
3246bd8e
SM
30482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3049
3050 * debuginfod-support.c (debuginfod_source_query): Use
3051 make_unique_xstrdup.
3052
10242f36
SM
30532020-09-14 Simon Marchi <simon.marchi@efficios.com>
3054
3055 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3056 with `type::instance_flags`.
3057
e1044e6a
MM
30582020-09-14 Michael Mullin <masmullin@gmail.com>
3059
3060 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3061 Remove baton parameter.
3062
04902b09
PA
30632020-09-14 Pedro Alves <pedro@palves.net>
3064
3065 * Makefile.in (SELFTESTS_SRCS): Add
3066 unittests/enum-flags-selftests.c.
3067 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3068 btrace_function_flags instead of enum btrace_function_flag.
3069 * compile/compile-c-types.c (convert_qualified): Use
3070 enum_flags::raw.
3071 * compile/compile-cplus-symbols.c (convert_one_symbol)
3072 (convert_symbol_bmsym):
3073 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3074 (compile_cplus_convert_struct_or_union_methods)
3075 (compile_cplus_instance::convert_qualified_base):
3076 * go-exp.y (parse_string_or_char): Add cast to int.
3077 * unittests/enum-flags-selftests.c: New file.
3078 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3079 type to btrace_thread_flags from btrace_thread_flag.
3080 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3081 local's type to btrace_thread_flags from btrace_thread_flag. Add
3082 cast in DEBUG call.
3083
69896a2c
PA
30842020-09-14 Pedro Alves <pedro@palves.net>
3085
3086 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3087 * gdbtypes.c (address_space_name_to_int): Rename to ...
3088 (address_space_name_to_type_instance_flags): ... this.
3089 (address_space_int_to_name): Rename to ...
3090 (address_space_type_instance_flags_to_name): ... this.
3091 * gdbtypes.h (address_space_name_to_int): Rename to ...
3092 (address_space_name_to_type_instance_flags): ... this.
3093 (address_space_int_to_name): Rename to ...
3094 (address_space_type_instance_flags_to_name): ... this.
3095 * type-stack.c (type_stack::insert): Adjust to rename.
3096 * type-stack.h (type_stack::insert): Likewise.
3097
314ad88d
PA
30982020-09-14 Pedro Alves <pedro@palves.net>
3099 Andrew Burgess <andrew.burgess@embecosm.com>
3100
3101 * avr-tdep.c (avr_address_class_type_flags): Return
3102 type_instance_flags.
3103 (avr_address_class_type_flags_to_name): Take a
3104 type_instance_flags.
3105 (avr_address_class_name_to_type_flags): Return bool and take a
3106 type_instance_flags.
3107 * d-lang.c (build_d_types): Use type::set_instance_flags.
3108 * ft32-tdep.c (ft32_address_class_type_flags): Return
3109 type_instance_flags.
3110 (ft32_address_class_type_flags_to_name): Take a
3111 type_instance_flags.
3112 (ft32_address_class_name_to_type_flags): Return bool and take a
3113 type_instance_flags.
3114 (ft32_gdbarch_init): Use type::set_instance_flags.
3115 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3116 * gdbarch.h, gdbarch.c: Regenerate.
3117 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3118 (address_class_name_to_type_flags): Use type_instance_flags and
3119 bool.
3120 * gdbtypes.c (address_space_name_to_int)
3121 (address_space_int_to_name, make_qualified_type): Use
3122 type_instance_flags.
3123 (make_qualified_type): Use type_instance_flags and
3124 type::set_instance_flags.
3125 (make_type_with_address_space, make_cv_type, make_vector_type)
3126 (check_typedef): Use type_instance_flags.
3127 (recursive_dump_type): Cast type_instance_flags to unsigned for
3128 printing.
3129 (copy_type_recursive): Use type::set_instance_flags.
3130 (gdbtypes_post_init): Use type::set_instance_flags.
3131 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3132 <m_instance_flags>: ... this.
3133 <instance_flags, set_instance_flags>: New methods.
3134 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3135 (SET_TYPE_INSTANCE_FLAGS): New.
3136 (address_space_name_to_int, address_space_int_to_name)
3137 (make_type_with_address_space): Pass flags using
3138 type_instance_flags instead of int.
3139 * stabsread.c (cleanup_undefined_types_noname): Use
3140 type::set_instance_flags.
3141 * s390-tdep.c (s390_address_class_type_flags): Return
3142 type_instance_flags.
3143 (s390_address_class_type_flags_to_name): Take a
3144 type_instance_flags.
3145 (s390_address_class_name_to_type_flags): Return bool and take a
3146 type_instance_flags.
3147 * type-stack.c (type_stack::follow_types): Use
3148 type_instance_flags.
3149 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3150
27087b7f
TT
31512020-09-14 Tom Tromey <tromey@adacore.com>
3152
3153 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3154 * x86-tdep.c (x86_is_thunk_register_name)
3155 (x86_in_indirect_branch_thunk): Update.
3156 * sparc64-tdep.c (sparc64_fpu_register_names)
3157 (sparc64_cp0_register_names, sparc64_register_names)
3158 (sparc64_pseudo_register_names): Now const.
3159 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3160 cp0_registers_num>: Now const.
3161 * sparc-tdep.c (sparc_core_register_names)
3162 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3163 (sparc32_pseudo_register_names): Now const.
3164 (validate_tdesc_registers): Update.
3165 * rust-lang.c (rust_extensions): Now const.
3166 * p-lang.c (p_extensions): Now const.
3167 * objc-lang.c (objc_extensions): Now const.
3168 * nto-tdep.c (nto_thread_state_str): Now const.
3169 * moxie-tdep.c (moxie_register_names): Now const.
3170 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3171 Now const.
3172 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3173 (mips_linux_reg_names): Now const.
3174 (mips_gdbarch_init): Update.
3175 * microblaze-tdep.c (microblaze_register_names): Now const.
3176 * m68k-tdep.c (m68k_register_names): Now const.
3177 * m32r-tdep.c (m32r_register_names): Now const.
3178 * ia64-tdep.c (ia64_register_names): Now const.
3179 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3180 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3181 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3182 ymm_avx512_register_names, pkeys_register_names>: Now const.
3183 * i386-tdep.c (i386_register_names, i386_zmm_names)
3184 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3185 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3186 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3187 * f-lang.c (f_extensions): Now const.
3188 * d-lang.c (d_extensions): Now const.
3189 * csky-tdep.c (csky_register_names): Now const.
3190 * charset.c (default_charset_names, charset_enum): Now const.
3191 (_initialize_charset): Update.
3192 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3193 const.
3194 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3195 (bsd_uthread_solib_loaded): Update.
3196 (bsd_uthread_state): Now const.
3197 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3198 (amd64_ymm_avx512_names, amd64_ymmh_names)
3199 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3200 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3201 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3202 (amd64_dword_names): Now const.
3203 * agent.c (can_use_agent_enum): Now const.
3204 * ada-tasks.c (task_states, long_task_states): Now const.
3205 * ada-lang.c (known_runtime_file_name_patterns)
3206 (known_auxiliary_function_name_patterns, attribute_names)
3207 (standard_exc, ada_extensions): Now const.
3208
89806626
SM
32092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * bcache.h (struct bcache) <bcache>: Remove constructor.
3212 <m_hash_function, m_compare_function>: Remove.
3213 <~bcache>: Make virtual.
3214 <compare>: Remove static method, introduce virtual method.
3215 <default_hash>: Remove.
3216 <hash>: New virtual method.
3217 * bcache.c (bcache::expand_hash_table): Update.
3218 (bcache::insert): Update.
3219 (bcache::hash): New.
3220 (bcache::compare): Update comment and parameter names.
3221 * gdbtypes.c (types_deeply_equal): Update.
3222 * psymtab.h (struct psymbol_bcache): New struct.
3223 (class psymtab_storage) <psymtab_storage>: Make default.
3224 <psymbol_cache>: Change type to psymbol_bcache.
3225 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3226 (psymbol_hash): Change to...
3227 (psymbol_bcache::hash): ... this.
3228 (psymbol_compare): Change to...
3229 (psymbol_bcache::compare): ... this.
3230
677c92fe
SM
32312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3232
3233 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3234 checking for initial lwp.
3235
3eba3a01
TT
32362020-09-14 Tom Tromey <tromey@adacore.com>
3237
3238 * m68k-tdep.c (m68k_extract_return_value): Use
3239 pointer_result_regnum.
3240 (m68k_store_return_value): Likewise.
3241 (m68k_reg_struct_return_p): Handle vectors and arrays.
3242 (m68k_return_value): Handle arrays.
3243 (m68k_svr4_return_value): Fix single-element aggregate handling.
3244 Handle long double. Adjust for embedded ABI.
3245 (m68k_svr4_init_abi): Set pointer_result_regnum.
3246 (m68k_embedded_init_abi): New function.
3247 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3248 (m68k_osabi_sniffer): New function.
3249 (_initialize_m68k_tdep): Register osabi sniffer.
3250 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3251 member.
3252
33f4dd48
SM
32532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3254
3255 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3256 with gdb::unique_xmalloc_ptr<char>.
3257
8400a90d
SM
32582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * xml-support.h (xml_fetch_another): Change type to be a
3261 function_view.
3262 (xml_process_xincludes): Remove baton parameter.
3263 (xml_fetch_content_from_file): Change baton parameter to
3264 dirname.
3265 * xml-support.c (struct xinclude_parsing_data)
3266 <xinclude_parsing_data>: Remove baton parameter.
3267 <fetcher_baton>: Remove.
3268 (xinclude_start_include): Adjust.
3269 (xml_process_xincludes): Adjust.
3270 (xml_fetch_content_from_file): Replace baton parameter with
3271 dirname.
3272 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3273 (xml_init_syscalls_info): Use a lambda.
3274 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3275 (file_read_description_xml): Use a lambda.
3276 (fetch_available_features_from_target): Change baton parameter
3277 to target_ops.
3278 (target_read_description_xml): Use a lambda.
3279 (target_fetch_description_xml): Use a lambda.
3280 (string_read_description_xml): Update.
3281
04f5bab2
SM
32822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3285 uses with type::endianity_is_not_default.
3286
db558e34
SM
32872020-09-14 Simon Marchi <simon.marchi@efficios.com>
3288
3289 * gdbtypes.h (struct type) <endianity_is_not_default,
3290 set_endianity_is_not_default>: New methods.
3291 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3292 type::endianity_is_not_default, change all write call sites to
3293 use type::set_endianity_is_not_default.
3294
22c4c60c
SM
32952020-09-14 Simon Marchi <simon.marchi@efficios.com>
3296
3297 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3298 uses with type::is_fixed_instance.
3299
9cdd0d12
SM
33002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * gdbtypes.h (struct type) <is_fixed_instance,
3303 set_is_fixed_instance>: New methods.
3304 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3305 write call sites to use type::set_is_fixed_instance.
3306
0becda7a
SM
33072020-09-14 Simon Marchi <simon.marchi@efficios.com>
3308
3309 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3310 uses with type::is_gnu_ifunc.
3311
03cc7249
SM
33122020-09-14 Simon Marchi <simon.marchi@efficios.com>
3313
3314 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3315 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3316 use type::set_is_gnu_ifunc.
3317
3f46044c
SM
33182020-09-14 Simon Marchi <simon.marchi@efficios.com>
3319
3320 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3321 uses with type::stub_is_supported.
3322
9baccff6
SM
33232020-09-14 Simon Marchi <simon.marchi@efficios.com>
3324
3325 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3326 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3327 use type::set_stub_is_supported.
3328
bd63c870
SM
33292020-09-14 Simon Marchi <simon.marchi@efficios.com>
3330
3331 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3332 uses with type::is_vector.
3333
2062087b
SM
33342020-09-14 Simon Marchi <simon.marchi@efficios.com>
3335
3336 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3337 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3338 use type::set_is_vector.
3339
a409645d
SM
33402020-09-14 Simon Marchi <simon.marchi@efficios.com>
3341
3342 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3343 uses with type::has_varargs.
3344
1d6286ed
SM
33452020-09-14 Simon Marchi <simon.marchi@efficios.com>
3346
3347 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3348 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3349 use type::set_has_varargs.
3350
7f9f399b
SM
33512020-09-14 Simon Marchi <simon.marchi@efficios.com>
3352
3353 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3354 uses with type::is_prototyped.
3355
27e69b7a
SM
33562020-09-14 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3359 New methods.
3360 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3361 call sites to use type::set_is_prototyped.
3362
d2183968
SM
33632020-09-14 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3366 uses with type::target_is_stub.
3367
8f53807e
SM
33682020-09-14 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3371 New methods.
3372 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3373 sites to use type::set_target_is_stub.
3374
e46d3488
SM
33752020-09-14 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * gdbtypes.h (TYPE_STUB): Remove, replace all
3378 uses with type::is_stub.
3379
b4b73759
SM
33802020-09-14 Simon Marchi <simon.marchi@efficios.com>
3381
3382 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3383 (TYPE_STUB): Use type::is_stub, change all write call sites to
3384 use type::set_is_stub.
3385
20ce4123
SM
33862020-09-14 Simon Marchi <simon.marchi@efficios.com>
3387
3388 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3389 type::has_no_signedness.
3390
15152a54
SM
33912020-09-14 Simon Marchi <simon.marchi@efficios.com>
3392
3393 * gdbtypes.h (struct type) <has_no_signedness,
3394 set_has_no_signedness>: New methods.
3395 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3396 call sites to use type::set_has_no_signedness.
3397
c6d940a9
SM
33982020-09-14 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3401 type::is_unsigned.
3402
653223d3
SM
34032020-09-14 Simon Marchi <simon.marchi@efficios.com>
3404
3405 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3406 methods.
3407 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3408 sites to use type::set_is_unsigned.
3409
55ea94da 34102020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3411 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3412
e851246a
SM
3413 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3414 pointer and stack frame offset when unwinding.
55ea94da 3415
6791b117
PA
34162020-09-13 Pedro Alves <pedro@palves.net>
3417
3418 * NEWS: Document "-break-insert --qualified".
3419 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3420
77f2120b
PA
34212020-09-13 Pedro Alves <pedro@palves.net>
3422
3423 * linespec.c (classify_mtype, compare_msyms): Delete.
3424 (search_minsyms_for_name): Remove classification logic. Instead
3425 filter out trampoline symbols if we also found an external
3426 function of the same name.
3427
ed6a896c
JB
34282020-09-13 Joel Brobecker <brobecker@adacore.com>
3429
3430 * NEWS: Create a new section for the next release branch.
3431 Rename the section of the current branch, now that it has
3432 been cut.
3433
32aea73e
JB
34342020-09-13 Joel Brobecker <brobecker@adacore.com>
3435
3436 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3437 * version.in: Bump version to 11.0.50.DATE-git.
3438
8087c3fa
JB
34392020-09-12 Joel Brobecker <brobecker@adacore.com>
3440
3441 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3442
2a67f09d
FW
34432020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3444 Felix Willgerodt <Felix.Willgerodt@intel.com>
3445
3446 * gdbarch.sh: Added bfloat16 type.
3447 * gdbarch.c: Regenerated.
3448 * gdbarch.h: Regenerated.
3449 * gdbtypes.c (floatformats_bfloat16): New struct.
3450 (gdbtypes_post_init): Add builtin_bfloat16.
3451 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3452 (floatformats_bfloat16): New struct.
3453 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3454 (i386_ymm_type): Add field "v16_bfloat16"
3455 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3456 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3457 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3458 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3459 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3460 * features/i386/64bit-avx512.c: Regenerated.
3461 * features/i386/64bit-sse.xml: Add bfloat16 type.
3462 * features/i386/64bit-sse.c: Regenerated.
3463
1347d111
FW
34642020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3465
3466 * i386-tdep.c (i386_zmm_type): Fix field names.
3467 (i386_ymm_type): Fix field names.
3468
7a4e8e7d
TBA
34692020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3470
3471 * breakpoint.c: Fix typo in the help message of the
3472 "set breakpoint condition-evaluation" command.
3473
cf4ac4be
KR
34742020-09-10 Kamil Rytarowski <n54@gmx.com>
3475
3476 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3477 * (nbsd_nat_target::pid_to_exec_file)
3478 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3479 (nbsd_nat_target::post_startup_inferior)
3480 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3481 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3482 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3483 * (nbsd_thread_lister): Remove.
3484
f404573e
KR
34852020-09-10 Kamil Rytarowski <n54@gmx.com>
3486
3487 * fork-inferior.c (startup_inferior): Avoid double free.
3488
1ccb2c17
KR
34892020-09-10 Kamil Rytarowski <n54@gmx.com>
3490
3491 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3492 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3493
feedfcc7
KR
34942020-09-10 Kamil Rytarowski <n54@gmx.com>
3495
3496 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3497 * netbsd-nat.c: Include <sys/ptrace.h>.
3498 * (netbsd_nat::enable_proc_events): Add.
3499
c489f8c6
KR
35002020-09-10 Kamil Rytarowski <n54@gmx.com>
3501
3502 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3503 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3504 (netbsd_nat::for_each_thread): Add.
3505 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3506 "gdbsupport/common-debug.h".
3507 * (netbsd_nat::netbsd_thread_lister)
3508 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3509 (netbsd_nat::for_each_thread): Add.
3510
330662f6
KR
35112020-09-10 Kamil Rytarowski <n54@gmx.com>
3512
3513 * netbsd-nat.h: Include <unistd.h>.
3514 * (netbsd_nat::pid_to_exec_file): Add.
3515 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3516 * (netbsd_nat::pid_to_exec_file) Add.
3517
70b67307
KR
35182020-09-10 Kamil Rytarowski <n54@gmx.com>
3519
3520 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3521
99cf6da6
KR
35222020-09-10 Kamil Rytarowski <n54@gmx.com>
3523
3524 * netbsd-nat.h: New file.
3525 * netbsd-nat.c: Likewise.
3526
1b788fb6
TT
35272020-09-09 Tom Tromey <tromey@adacore.com>
3528
3529 * ada-lang.c (remove_extra_symbols): Do not increment when
3530 removing an element
3531
03b0a45f
TT
35322020-09-08 Tom Tromey <tromey@adacore.com>
3533
3534 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3535
3cae4447
TT
35362020-09-08 Tom Tromey <tromey@adacore.com>
3537
3538 PR win32/25302:
3539 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3540 (gdb_bfd_init_data): New function.
3541 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3542
7f08fd51
TBA
35432020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3544
3545 * infrun.c (fetch_inferior_event): Use
3546 `switch_to_target_no_thread` to switch the target.
3547
3e6ff933
TT
35482020-09-06 Tom Tromey <tom@tromey.com>
3549
3550 * symfile.h (dwarf2_free_objfile): Don't declare.
3551
e56798df
AKS
35522020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3553
3554 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3555 to match 16 byte real/complex type generated by Flang compiler.
3556
8f5c6526
TV
35572020-09-03 Tom de Vries <tdevries@suse.de>
3558
3559 PR breakpoint/26546
3560 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3561 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3562
c5065df0
SM
35632020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3564
3565 * maint.c (index_digits): New function.
3566 (struct maint_print_section_data): Remove.
3567 (print_bfd_section_info): Remove print_data parameter, add arg
3568 and index_digits.
3569 (print_objfile_section_info): Likewise.
3570 (print_bfd_section_info_maybe_relocated): Likewise (plus
3571 objfile).
3572 (maintenance_info_sections): Adjust calls.
3573
02c6f3f1
TT
35742020-09-02 Tom Tromey <tromey@adacore.com>
3575
3576 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3577 for null pointers.
3578 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3579
ef5e5b0b
SM
35802020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3581
3582 * bcache.h (struct bcache) <insert>: Change type of `added` to
3583 pointer to bool.
3584 * bcache.c (bcache::insert): Likewise.
3585 * gdbtypes.c (check_types_worklist): Adjust.
3586 * psymtab.c (add_psymbol_to_bcache): Adjust.
3587
973695d6
KB
35882020-08-31 Kevin Buettner <kevinb@redhat.com>
3589
3590 * corelow.c (unordered_set): Include.
3591 (class core_target): Add field 'm_core_unavailable_mappings'.
3592 (core_target::build_file_mappings): Print only one warning
3593 per inaccessible file. Add unavailable/broken mappings
3594 to m_core_unavailable_mappings.
3595 (core_target::xfer_partial): Call...
3596 (core_target::xfer_memory_via_mappings): New method.
3597
264fc0e2
SM
35982020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3599
3600 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3601 type to bool.
3602
2de01bdb
SM
36032020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3604
3605 * dwarf2/read.c (struct field_info): Fix indentation.
3606
f3bd50f1
SM
36072020-08-31 Simon Marchi <simon.marchi@efficios.com>
3608
3609 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3610 ordering in comment.
3611 * frame.c (frame_id_eq): Fix indentation.
3612
22b9b4b0
SL
36132020-08-31 Scott Linder <scott@scottlinder.com>
3614 Simon Marchi <simon.marchi@efficios.com>
3615
3616 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3617 inline frame ids in outer frame.
3618
84154d16
SM
36192020-08-31 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3622 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3623 (outer_frame_id): Use FID_STACK_OUTER instead of
3624 FID_STACK_INVALID.
3625 (frame_id_p): Don't check for outer_frame_id.
3626
8efaf6b3
SM
36272020-08-31 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3630 regnum/frame in value. Call allocate_value_lazy.
3631 * frame.c (frame_unwind_register_value): Use
3632 val_print_not_saved.
3633
fe1fe7ea
SM
36342020-08-31 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3637
f7c7700d
PA
36382020-08-29 Pedro Alves <pedro@palves.net>
3639
3640 * progspace.c (print_program_space): Use all_inferiors. Switch to
3641 the inferior before calling target_pid_to_str.
3642
e0814aae
TT
36432020-08-28 Tom Tromey <tom@tromey.com>
3644
3645 * xcoffread.c (xcoff_end_psymtab): Update comment.
3646 * dbxread.c (dbx_end_psymtab): Update comment.
3647
626d2320
TV
36482020-08-28 Tom de Vries <tdevries@suse.de>
3649
3650 PR breakpoint/26544
3651 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3652 event_location.
3653 (create_breakpoint): Same.
3654 (base_breakpoint_decode_location): Same.
3655 (bkpt_create_sals_from_location): Same.
3656 (bkpt_decode_location): Same.
3657 (bkpt_probe_create_sals_from_location): Same.
3658 (bkpt_probe_decode_location): Same.
3659 (tracepoint_create_sals_from_location): Same.
3660 (tracepoint_decode_location): Same.
3661 (tracepoint_probe_decode_location): Same.
3662 (strace_marker_create_sals_from_location): Same.
3663 (strace_marker_decode_location): Same.
3664 (create_sals_from_location_default): Same.
3665 (decode_location_default): Same.
3666 * breakpoint.h (struct breakpoint_ops): Same.
3667 (create_breakpoint): Same.
3668 * linespec.h (decode_line_full): Same.
3669 * linespec.c (decode_line_full): Same. Throw error if
3670 result.size () == 0.
3671
df631783
PA
36722020-08-27 Pedro Alves <pedro@palves.net>
3673
3674 PR gdb/26524
3675 * breakpoint.c (until_break_fsm) <location_breakpoint,
3676 caller_breakpoint>: Delete fields.
3677 <breakpoints>: New field.
3678 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3679 two individual breakpoints.
3680 (until_break_fsm::should_stop): Loop over breakpoints in the
3681 breakpoint vector.
3682 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3683 vector.
3684 (until_break_command): Handle location expanding into multiple
3685 sals.
3686
b2b38aa4
PA
36872020-08-27 Pedro Alves <pedro@palves.net>
3688
3689 PR gdb/26523
3690 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3691 bp_until breakpoints user-specified locations. Update intro
3692 comment.
3693
b886559f
SM
36942020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3697 gdb_bfd_sections): New.
3698 * maint.c (print_bfd_section_info): Change param type to
3699 maint_print_section_data.
3700 (print_objfile_section_info): Likewise.
3701 (print_bfd_section_info_maybe_relocated): Likewise.
3702 (maintenance_info_sections): Use gdb_bfd_sections.
3703
4c6e63bf
SV
37042020-08-25 Shahab Vahedi <shahab@synopsys.com>
3705
3706 * MAINTAINERS: Add ARC target and maintainer.
3707
8d7f0635
AK
37082020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3709
3710 * configure.tgt: ARC support for GNU/Linux.
3711 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3712 * arc-linux-tdep.c: New file.
3713 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3714 * arc-tdep.c (arc_write_pc): Use it.
3715
fdd8731b
SV
37162020-08-25 Shahab Vahedi <shahab@synopsys.com>
3717
3718 * arc-tdep.c (arc_check_for_hardware_loop): New.
3719 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3720
22459524
SV
37212020-08-25 Shahab Vahedi <shahab@synopsys.com>
3722
3723 * arc-tdep.h: Include "gdbarch.h".
3724
995d3a19
SV
37252020-08-25 Shahab Vahedi <shahab@synopsys.com>
3726
3727 * arch/arc.h
3728 (arc_gdbarch_features): New class to stir the selection of target XML.
3729 (arc_create_target_description): Use FEATURES to choose XML target.
3730 (arc_lookup_target_description): Use arc_create_target_description
3731 to create _new_ target descriptions or return the already created
3732 ones if the FEATURES is the same.
3733 * arch/arc.c: Implementation of prototypes described above.
3734 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3735 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3736 * arc-tdep.c (*_feature_name): Make feature names consistent.
3737 (arc_register_feature): A new struct to hold information about
3738 registers of a particular target/feature.
3739 (arc_check_tdesc_feature): Check if XML provides registers in
3740 compliance with ARC_REGISTER_FEATURE structs.
3741 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3742 (determine_*_reg_feature_set): Which feature name to look for.
3743 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3744 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3745 to expected ISA enums to be used in arc_gdbarch_features structs.
3746 * features/Makefile (FEATURE_XMLFILES): Add new files.
3747 * gdb/features/arc/v1-aux.c: New file.
3748 * gdb/features/arc/v1-aux.xml: Likewise.
3749 * gdb/features/arc/v1-core.c: Likewise.
3750 * gdb/features/arc/v1-core.xml: Likewise.
3751 * gdb/features/arc/v2-aux.c: Likewise.
3752 * gdb/features/arc/v2-aux.xml: Likewise.
3753 * gdb/features/arc/v2-core.c: Likewise.
3754 * gdb/features/arc/v2-core.xml: Likewise.
3755 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3756
3945d2d7
GM
37572020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3758 Andrew Burgess <andrew.burgess@embecosm.com>
3759
3760 PR m2/26372
fc5d6901 3761 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3762 an assert. Remove single element array indexing pattern as the
3763 MULTI_SUBSCRIPT support will handle this case too.
3764
2677f2d3
SM
37652020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3766
3767 * value.h (valprint_check_validity): Move declaration from
3768 here...
3769 * valprint.h (valprint_check_validity): ... to here.
3770
c426fddb
SM
37712020-08-24 Simon Marchi <simon.marchi@efficios.com>
3772
3773 * debug.h: New file.
3774 * debug.c (debug_prefixed_vprintf): New function.
3775 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3776 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3777
1eb8556f
SM
37782020-08-24 Simon Marchi <simon.marchi@efficios.com>
3779
3780 * infrun.h (infrun_debug_printf_1): New function declaration.
3781 (infrun_debug_printf): New macro.
3782 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3783 throughout.
3784 (infrun_debug_printf): New function.
3785 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3786 (handle_jit_event): Likewise.
3787
b8fff44e
MW
37882020-08-21 Mark Wielaard <mark@klomp.org>
3789
3790 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3791
d19c3068
SM
37922020-08-22 Simon Marchi <simon.marchi@efficios.com>
3793
3794 * frame.c (enum class frame_id_status): New.
3795 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3796 (fprintf_frame): Update.
3797 (compute_frame_id): Set frame id status to "computing" on entry.
3798 Set it back to "not_computed" on failure and to "computed" on
3799 success.
3800 (get_frame_id): Assert the frame id is not being computed.
3801 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3802 (create_new_frame): Likewise.
3803 (frame_cleanup_after_sniffer): Update assert.
3804
b70e516e
SM
38052020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3806
3807 * regcache.c (pid_ptid_regcache_map): New type.
3808 (target_ptid_regcache_map): Remove.
3809 (target_pid_ptid_regcache_map): New type.
3810 (regcaches): Change type to target_pid_ptid_regcache_map.
3811 (get_thread_arch_aspace_regcache): Update.
3812 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3813 case.
3814 (regcaches_size): Update.
3815 (regcache_count): Update.
3816 (registers_changed_ptid_target_pid_test): New.
3817 (_initialize_regcache): Register new test.
3818
cdd9148a
SM
38192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3820
3821 * regcache.c (regcache_count): New.
3822 (struct regcache_test_data): New.
3823 (regcache_test_data_up): New.
3824 (populate_regcaches_for_test): New.
3825 (regcaches_test): Remove.
3826 (get_thread_arch_aspace_regcache_test): New.
3827 (registers_changed_ptid_all_test): New.
3828 (registers_changed_ptid_target_test): New.
3829 (registers_changed_ptid_target_ptid_test): New.
3830 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3831 (_initialize_regcache): Register new tests.
3832
dd125343
SM
38332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3834
3835 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3836 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3837 gdbarch and aspace parameter. Use current inferior's aspace.
3838 Validate regcache's arch value.
3839 (regcaches_test): Update.
3840
3ee93972
SM
38412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3842
3843 * regcache.c (regcaches_test): Call registers_changed.
3844
33bf4c5c
TBA
38452020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3846
3847 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3848
c2fd7fae
AKS
38492020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3850
3851 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3852 to find the end of prologue for flang compiled binaries.
3853 * arm-tdep.c (arm_skip_prologue): Likewise.
3854 * i386-tdep.c (i386_skip_prologue): Likewise.
3855 * producer.c (producer_is_llvm): New function.
3856 (producer_parsing_tests): Added new tests for clang/flang.
3857 * producer.h (producer_is_llvm): New declaration.
3858
9327494e
SM
38592020-08-18 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * linux-nat.c (linux_nat_debug_printf): New function.
3862 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3863
d138725a
AM
38642020-08-18 Aaron Merey <amerey@redhat.com>
3865
3866 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3867 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3868 (CLIBS): Add DEBUGINFOD_LIBS.
3869
f9b11e6b
ST
38702020-08-17 Sergei Trofimovich <siarheit@google.com>
3871
3872 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3873 'gdbarch_num_regs'.
3874
3ae7ab99
TT
38752020-08-17 Tom Tromey <tromey@adacore.com>
3876
3877 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3878 ada_get_decoded_value returns NULL.
3879
b017825f
TT
38802020-08-17 Tom Tromey <tromey@adacore.com>
3881
3882 * python/py-inferior.c (infpy_search_memory): Use
3883 gdb_py_object_from_ulongest.
3884 * python/py-infevents.c (create_inferior_call_event_object)
3885 (create_memory_changed_event_object): Use
3886 gdb_py_object_from_ulongest.
3887 * python/py-linetable.c (ltpy_entry_get_pc): Use
3888 gdb_py_object_from_ulongest.
3889
7635cf79
SM
38902020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3891
3892 * loc.c (class symbol_needs_eval_context): Fix indentation.
3893
f54be24b
SM
38942020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3897 bool.
3898
53d5a2a5
TV
38992020-08-17 Tom de Vries <tdevries@suse.de>
3900
3901 PR gdb/26393
3902 * gdbtypes.c (dump_dynamic_prop): New function.
3903 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3904
547ce8f0
TV
39052020-08-15 Tom de Vries <tdevries@suse.de>
3906
3907 PR backtrace/26390
3908 * stack.c (print_frame_args): Temporarily set the selected
3909 frame to FRAME while printing the frame's arguments.
3910
6ea815e7
PFC
39112020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3912
3913 PR breakpoints/26385
3914 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3915 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3916
6e562fa3
PFC
39172020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3918
3919 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3920 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3921 and >= to check return value instead of == -1 and != -1.
3922
d369b608
SM
39232020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3924
3925 * utils.h (class gdb_argv) <as_array_view>: New method.
3926 * utils.c (gdb_argv_as_array_view_test): New.
3927 (_initialize_utils): Register selftest.
3928 * maint.c (maintenance_selftest): Use the new method.
3929
b31488a3
KR
39302020-08-13 Kamil Rytarowski <n54@gmx.com>
3931
3932 * target.h (supports_dumpcore, dumpcore): New
3933 function declarations.
3934 * target.c (supports_dumpcore, dumpcore): New
3935 functions.
3936 * target-delegates.c: Rebuild.
3937 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3938 and target_dumpcore ().
3939
002a3166
AM
39402020-08-13 Aaron Merey <amerey@redhat.com>
3941
3942 * debuginfod-support.c: Replace global variables with user_data.
3943
ece5bc8a
SM
39442020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3945
3946 * maint.c (maintenance_selftest): Split args and pass array_view
3947 to run_tests.
3948
6d8a0a5e
LM
39492020-08-12 Luis Machado <luis.machado@linaro.org>
3950
3951 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3952 type's length.
3953 Use %s and pulongest to print the length.
3954
7cf663a9
PA
39552020-08-12 Pedro Alves <palves@redhat.com>
3956
3957 * NEWS: Move "Multi-target debugging support" item to the
3958 "Changes since GDB 9" section.
3959
27c7b875
PA
39602020-08-12 Pedro Alves <palves@redhat.com>
3961
3962 PR gdb/26336
3963 * progspace.c (program_space::remove_objfile): Invalidate the
3964 frame cache.
3965
1796a2a1
TV
39662020-08-11 Tom de Vries <tdevries@suse.de>
3967
3968 * MAINTAINERS: Mark ms1 as deleted.
3969
f8e3fe0d
LM
39702020-08-10 Luis Machado <luis.machado@linaro.org>
3971
3972 PR gdb/26310
3973
3974 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3975 act accordingly.
3976 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3977 movz/str/stur/stp skipping behavior.
3978
cc308722
LM
39792020-08-10 Luis Machado <luis.machado@linaro.org>
3980
3981 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3982 struct user_sve_header instead of struct sve_context.
3983
041d9819
SM
39842020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3985
3986 * read.h (dwarf2_fetch_die_loc_sect_off,
3987 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3988 `void *` parameter with function_view.
3989 * read.c (dwarf2_fetch_die_loc_sect_off,
3990 dwarf2_fetch_die_loc_cu_off): Likewise.
3991 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3992 (per_cu_dwarf_call): Adjust.
3993 (get_frame_address_in_block_wrapper): Remove.
3994 (indirect_synthetic_pointer): Adjust.
3995 (get_ax_pc): Remove.
3996 (dwarf2_compile_expr_to_ax): Adjust.
3997
38f8aa06
TV
39982020-08-08 Tom de Vries <tdevries@suse.de>
3999
4000 PR build/26344
4001 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4002 constructor.
4003 * regcache.c (get_thread_arch_aspace_regcache): Same.
4004
a52b3ae2
TT
40052020-08-07 Tom Tromey <tromey@adacore.com>
4006
4007 * ravenscar-thread.c
4008 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4009 New method.
4010 (ravenscar_thread_target::wait): Check
4011 runtime_initialized.
4012 (ravenscar_thread_target::prepare_to_store)
4013 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4014 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4015 (ravenscar_thread_target::stopped_by_watchpoint)
4016 (ravenscar_thread_target::stopped_data_address)
4017 (ravenscar_thread_target::core_of_thread): Use
4018 scoped_restore_current_thread and
4019 set_base_thread_from_ravenscar_task.
4020
0e29517d
TT
40212020-08-07 Tom Tromey <tromey@adacore.com>
4022
4023 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4024
592f9bd7
TT
40252020-08-07 Tom Tromey <tromey@adacore.com>
4026
4027 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4028 update_inferior_ptid before update_thread_list.
4029 (temporarily_change_regcache_ptid): New class.
4030 (ravenscar_thread_target::fetch_registers)
4031 (ravenscar_thread_target::store_registers)
4032 (ravenscar_thread_target::prepare_to_store): Use base thread when
4033 forwarding operation.
4034
39e2018a
TT
40352020-08-07 Tom Tromey <tromey@adacore.com>
4036
4037 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4038 "is_pid" case.
4039
2080266b
TT
40402020-08-07 Tom Tromey <tromey@adacore.com>
4041
4042 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4043 New methods.
4044 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4045 first.
4046 (ravenscar_thread_target::add_thread): Rename from
4047 ravenscar_add_thread.
4048 (ravenscar_thread_target::update_thread_list): Use a lambda.
4049 (ravenscar_thread_target::xfer_partial): New method.
4050
78c02f21
TT
40512020-08-07 Tom Tromey <tromey@adacore.com>
4052
4053 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4054 gdb::function_view.
4055 (iterate_over_live_ada_tasks): Change type of argument.
4056 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4057 of argument.
4058
d5d833af
TT
40592020-08-07 Tom Tromey <tromey@adacore.com>
4060
4061 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4062 Remove.
4063 (ravenscar_thread_target::extra_thread_info): Remove.
4064 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4065 defer to target beneath for non-Ravenscar threads.
4066
a8ac85bb
TT
40672020-08-07 Tom Tromey <tromey@adacore.com>
4068
4069 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4070 get_base_thread_from_ravenscar_task>: Now methods.
4071 <m_cpu_map>: New member.
4072 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4073 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4074 (ravenscar_thread_target::task_is_currently_active): Update.
4075 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4076 Now a method.
4077 (ravenscar_thread_target::add_active_thread): Put initial thread
4078 into the m_cpu_map.
4079
550ab58d
TT
40802020-08-07 Tom Tromey <tromey@adacore.com>
4081
4082 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4083 event_ptid.
4084
e9546579
TT
40852020-08-07 Tom Tromey <tromey@adacore.com>
4086
4087 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4088 runtime_initialized.
4089
3d4470e5
TT
40902020-08-07 Tom Tromey <tromey@adacore.com>
4091
4092 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4093 add_active_thread.
4094 (ravenscar_thread_target::add_active_thread): Now public.
4095 (ravenscar_inferior_created): Call add_active_thread after pushing
4096 the target.
4097
888bdb2b
SM
40982020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * regcache.c (ptid_regcache_map): New type.
4101 (target_ptid_regcache_map): New type.
4102 (regcaches): Change type to target_ptid_regcache_map.
4103 (get_thread_arch_aspace_regcache): Update to regcaches' new
4104 type.
4105 (regcache_thread_ptid_changed): Likewise.
4106 (registers_changed_ptid): Likewise.
4107 (regcaches_size): Likewise.
4108 (regcaches_test): Update.
4109 (regcache_thread_ptid_changed): Update.
4110 * regcache.h (regcache_up): New type.
4111 * gdbsupport/ptid.h (hash_ptid): New struct.
4112
b161a60d
SM
41132020-08-07 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * observable.h (thread_ptid_changed): Add parameter
4116 `process_stratum_target *`.
4117 * infrun.c (infrun_thread_ptid_changed): Add parameter
4118 `process_stratum_target *` and use it.
4119 (selftests): New namespace.
4120 (infrun_thread_ptid_changed): New function.
4121 (_initialize_infrun): Register selftest.
4122 * regcache.c (regcache_thread_ptid_changed): Add parameter
4123 `process_stratum_target *` and use it.
4124 (regcache_thread_ptid_changed): New function.
4125 (_initialize_regcache): Register selftest.
4126 * thread.c (thread_change_ptid): Pass target to
4127 thread_ptid_changed observable.
4128
d2854d8d
CT
41292020-08-06 Caroline Tice <cmtice@google.com>
4130
fe4c3d43
SM
4131 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4132 (struct dwp_sections): Update field comments. Add loclists and
4133 rnglists fields.
4134 (struct virtual_v2_dwo_sections): Rename struct to
4135 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4136 size & offset fields for loclists and rnglists.
4137 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4138 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4139 skipping dummy type units.
4140 (create_dwp_hash_table): Update the large comment above the function to
4141 discuss Version 5 DWP files as well, with references. Update all the
4142 version checks in the function to check for version 5 as well. Add new
4143 section at the end to create dwp hash table for version 5.
4144 (create_dwp_v2_section): Rename function to
4145 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4146 Add V5 to error message text.
4147 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4148 into calls to create_dwp_v2_or_v5_section.
4149 (create_dwo_unit_in_dwp_v5): New function.
4150 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4151 check for version2; add else clause to handle version 5.
4152 (open_and_init_dwo_file): Add code to check dwarf version & only call
4153 create_debug_types_hash_table (with sections.types) if version is not 5;
4154 else call create_debug_type_hash_table, with sections.info.
4155 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4156 version 5.
4157 (dwarf2_locate_v5_dwp_sections): New function.
4158 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4159 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4160
159ed7d9
SM
41612020-08-06 Simon Marchi <simon.marchi@efficios.com>
4162
4163 * regcache.h (class regcache): Remove friend
4164 registers_changed_ptid.
4165 <regcache_thread_ptid_changed>: Remove.
4166 <regcaches>: Remove.
4167 * regcache.c (regcache::regcaches): Rename to...
4168 (regcaches): ... this. Make static.
4169 (get_thread_arch_aspace_regcache): Update.
4170 (regcache::regcache_thread_ptid_changed): Rename to...
4171 (regcache_thread_ptid_changed): ... this. Update.
4172 (class regcache_access): Remove.
4173 (regcaches_test): Update.
4174 (_initialize_regcache): Update.
4175 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4176 <forward_list>.
4177
174981ae
SM
41782020-08-06 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * regcache.h (class regcache) <current_regcache>: Rename to...
4181 <regcaches>: ... this. Move doc here.
4182 * regcache.c (regcache::current_regcache) Rename to...
4183 (regcache::regcaches): ... this. Move doc to header.
4184 (get_thread_arch_aspace_regcache): Update.
4185 (regcache::regcache_thread_ptid_changed): Update.
4186 (registers_changed_ptid): Update.
4187 (class regcache_access) <current_regcache_size>: Rename to...
4188 <regcaches_size>: ... this.
4189 (current_regcache_test): Rename to...
4190 (regcaches_test): ... this.
4191 (_initialize_regcache): Update.
4192
ed908db6
VC
41932020-08-06 Victor Collod <vcollod@nvidia.com>
4194
4195 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4196
b5582ab7
KB
41972020-08-05 Kevin Buettner <kevinb@redhat.com>
4198
4199 * corelow.c (core_target::build_file_mappings): Don't output
4200 null pathname in warning.
4201
ea946b86
SM
42022020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4203
4204 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4205 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4206 gdb.dwarf2/dw2-single-line-discriminators.exp,
4207 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4208
57d02173
TT
42092020-08-05 Tom Tromey <tromey@adacore.com>
4210
4211 PR rust/26197:
4212 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4213 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4214 Fix off-by-one and type size errors in ordinary case.
4215
5555c86d
TV
42162020-08-05 Tom de Vries <tdevries@suse.de>
4217
4218 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4219 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4220
97916bfe
SM
42212020-08-04 Simon Marchi <simon.marchi@efficios.com>
4222
4223 * frame.h (frame_id_p): Return bool.
4224 (frame_id_artificial_p): Return bool.
4225 (frame_id_eq): Return bool.
4226 (has_stack_frames): Return bool.
4227 (get_selected_frame): Fix typo in comment.
4228 (get_frame_pc_if_available): Return bool.
4229 (get_frame_address_in_block_if_available): Return bool.
4230 (get_frame_func_if_available): Return bool.
4231 (read_frame_register_unsigned): Return bool.
4232 (get_frame_register_bytes): Return bool.
4233 (safe_frame_unwind_memory): Return bool.
4234 (deprecated_frame_register_read): Return bool.
4235 (frame_unwinder_is): Return bool.
4236 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4237 bool.
4238 <this_id::p>: Likewise.
4239 <prev_p>: Likewise.
4240 (frame_stash_add): Return bool.
4241 (get_frame_id): Use bool.
4242 (frame_id_build_special) Use bool.
4243 (frame_id_build_unavailable_stack): Use bool.
4244 (frame_id_build): Use bool.
4245 (frame_id_p): Return bool, use true/false instead of 1/0.
4246 (frame_id_artificial_p): Likewise.
4247 (frame_id_eq): Likewise.
4248 (frame_id_inner): Likewise.
4249 (get_frame_func_if_available): Likewise.
4250 (read_frame_register_unsigned): Likewise.
4251 (deprecated_frame_register_read): Likewise.
4252 (get_frame_register_bytes): Likewise.
4253 (has_stack_frames): Likewise.
4254 (inside_main_func): Likewise.
4255 (inside_entry_func): Likewise.
4256 (get_frame_pc_if_available): Likewise.
4257 (get_frame_address_in_block_if_available): Likewise.
4258 (frame_unwinder_is): Likewise.
4259 (safe_frame_unwind_memory): Likewise.
4260 (frame_unwind_arch): Likewise.
4261
fedfee88
SM
42622020-08-04 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4265 type to cached_copy_status.
4266 (fprintf_frame): Adjust.
4267 (get_frame_func_if_available): Adjust.
4268 (frame_cleanup_after_sniffer): Adjust.
4269
6cfa9b59
MW
42702020-08-04 Mark Wielaard <mark@klomp.org>
4271
4272 * MAINTAINERS (Write After Approval): Update email address.
4273
66d6346b
SM
42742020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4275
4276 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4277 dynamic_prop::const_val.
4278
8a6d5e35
SM
42792020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4280
4281 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4282 dynamic_prop::kind.
4283
51d6067d
SM
42842020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4285
4286 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4287
b26e2ae7
JM
42882020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4289
4290 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4291
39791af2
JM
42922020-08-04 Weimin Pan <weimin.pan@oracle.com>
4293 Jose E. Marchesi <jose.marchesi@oracle.com>
4294
4295 * configure.tgt: Add entry for bpf-*-*.
4296 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4297 (ALLDEPFILES): Add bpf-tdep.c.
4298 * bpf-tdep.c: New file.
4299 * MAINTAINERS: Add bpf target and maintainer.
4300 * NEWS: Mention the support for the new target.
4301
521894aa
TV
43022020-08-04 Tom de Vries <tdevries@suse.de>
4303
4304 PR symtab/23270
4305 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4306 Error.
4307
5d6356e9
JB
43082020-08-03 John Baldwin <jhb@FreeBSD.org>
4309
4310 * syscalls/freebsd.xml: Regenerate.
4311
0cf82b81
JB
43122020-08-03 John Baldwin <jhb@FreeBSD.org>
4313
4314 * syscalls/update-freebsd.sh: Fix usage and year range.
4315
8f34b746
TV
43162020-08-03 Tom de Vries <tdevries@suse.de>
4317
4318 PR symtab/26333
4319 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4320 DW_LNE_lo_user/DW_LNE_hi_user range.
4321
5e500d33
SM
43222020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4323
4324 PR ada/26318
4325 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4326 kind.
4327
78319c15
TBA
43282020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4329
4330 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4331
4c55e970
TBA
43322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4333
4334 * breakpoint.c (set_breakpoint_condition): Update the condition
4335 expressions after checking that the input condition string parses
4336 successfully and does not contain junk at the end.
4337
1e620590
TBA
43382020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4339
4340 * breakpoint.c (set_breakpoint_condition): Update the
4341 condition string after parsing the new condition successfully.
4342
c8693053
RO
43432020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4344
4345 * proc-api.c (_STRUCTURED_PROC): Don't define.
4346 * proc-events.c: Likewise.
4347 * proc-flags.c: Likewise.
4348 * proc-why.c: Likewise.
4349 * procfs.c: Likewise.
4350
4351 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4352 * configure, config.in: Regenerate.
4353
5a99adb8
TV
43542020-07-30 Tom de Vries <tdevries@suse.de>
4355
4356 PR build/26320
4357 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4358 m_red/m_green/m_blue in a union.
4359
8ba83e91
TV
43602020-07-29 Tom de Vries <tdevries@suse.de>
4361
4362 PR tdep/26280
4363 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4364
f75a0693
AB
43652020-07-28 Tom Tromey <tromey@adacore.com>
4366
4367 PR symtab/26270:
4368 * symtab.h (find_pc_partial_function_sym): Declare.
4369 * cli/cli-cmds.c (disassemble_command): Use
4370 find_pc_partial_function_sym. Check asm_demangle.
4371 * blockframe.c (cache_pc_function_sym): New global.
4372 (cache_pc_function_name): Remove.
4373 (clear_pc_function_cache): Update.
4374 (find_pc_partial_function_sym): New function, from
4375 find_pc_partial_function.
4376 (find_pc_partial_function): Rewrite using
4377 find_pc_partial_function_sym.
4378
16f3242c
TT
43792020-07-28 Tom Tromey <tromey@adacore.com>
4380
4381 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4382 help. Add usage.
4383
4888741a
TT
43842020-07-28 Tom Tromey <tromey@adacore.com>
4385
4386 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4387 <DW_OP_GNU_variable_value>: Cast to address type.
4388
4d46f402
KR
43892020-07-28 Kamil Rytarowski <n54@gmx.com>
4390
4391 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4392 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4393 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4394 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4395 (nbsd_get_siginfo_type): New.
4396 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4397 (_initialize_nbsd_tdep): New.
4398
d70f978b
L
43992020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4400
4401 PR binutils/26301
4402 * configure: Regenerated.
4403
377170fa
L
44042020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4405
4406 PR binutils/26301
4407 * configure: Regenerated.
4408
43d5901d
AB
44092020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4410
4411 * python/py-frame.c: Remove 'user-regs.h' include.
4412 (frapy_read_register): Rewrite to make use of
4413 gdbpy_parse_register_id.
4414 * python/py-registers.c (gdbpy_parse_register_id): New function,
4415 moved here from python/py-unwind.c. Updated the return type, and
4416 also accepts register descriptor objects.
4417 * python/py-unwind.c: Remove 'user-regs.h' include.
4418 (pyuw_parse_register_id): Moved to python/py-registers.c.
4419 (unwind_infopy_add_saved_register): Update to use
4420 gdbpy_parse_register_id.
4421 (pending_framepy_read_register): Likewise.
4422 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4423
14fa8fb3
AB
44242020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4425
4426 * python/py-registers.c: Add 'user-regs.h' include.
4427 (register_descriptor_iter_find): New function.
4428 (register_descriptor_iterator_object_methods): New static global
4429 methods array.
4430 (register_descriptor_iterator_object_type): Add pointer to methods
4431 array.
4432
ddce1758
JB
44332020-07-27 John Baldwin <jhb@FreeBSD.org>
4434
4435 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4436 for all architectures on FreeBSD 11.3 and later.
4437
a4089f52
TT
44382020-07-27 Tom Tromey <tromey@adacore.com>
4439
4440 * gcore.h (load_corefile): Don't declare.
4441
95420d30
TV
44422020-07-27 Tom de Vries <tdevries@suse.de>
4443
4444 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4445 * config.in: Regenerate.
4446 * configure: Regenerate.
4447
05a6b8c2
EZ
44482020-07-26 Eli Zaretskii <eliz@gnu.org>
4449
4450 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4451 ws2tcpip.h. When checking whether socklen_t type is defined, use
4452 ws2tcpip.h if it is available and sys/socket.h isn't.
4453 * configure: Regenerate.
4454 * config.in: Regenerate.
4455
e79eb02f
AB
44562020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4457
4458 PR fortran/23051
4459 PR fortran/26139
4460 * valops.c (value_ind): Pass address to
4461 readjust_indirect_value_type.
4462 * value.c (readjust_indirect_value_type): Make parameter
4463 non-const, and add extra address parameter. Resolve original type
4464 before using it.
4465 * value.h (readjust_indirect_value_type): Update function
4466 signature and comment.
4467
876518dd
TV
44682020-07-25 Tom de Vries <tdevries@suse.de>
4469
4470 PR symtab/26243
4471 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4472 entries.
4473
f6720b1c
AM
44742020-07-24 Aaron Merey <amerey@redhat.com>
4475
4476 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4477 * configure: Rebuild.
4478
513487e1
KB
44792020-07-23 Kevin Buettner <kevinb@redhat.com>
4480
4481 PR corefiles/26294
4482 * corelow.c (_initialize_corelow): Add period to help text
4483 for "maintenance print core-file-backed-mappings".
4484
e7bc9db8
PA
44852020-07-23 Pedro Alves <pedro@palves.net>
4486
4487 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4488 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4489 meanwhile.
4490 * frame.c (frame_cache_generation, get_frame_cache_generation):
4491 New.
4492 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4493 (get_prev_frame_if_no_cycle): On exception, don't touch
4494 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4495 * frame.h (get_frame_cache_generation): Declare.
4496
90fcc466
TV
44972020-07-23 Tom de Vries <tdevries@suse.de>
4498
4499 PR tui/26282
4500 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4501 New default constructor.
4502
78344df7
AB
45032020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4504
4505 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4506 exclude non-statement entries.
4507
b089853a
KB
45082020-07-22 Kevin Buettner <kevinb@redhat.com>
4509
4510 * NEWS (New commands): Mention new command
4511 "maintenance print core-file-backed-mappings".
4512
09c2f5d4
KB
45132020-07-22 Kevin Buettner <kevinb@redhat.com>
4514
4515 * corelow.c (gdbcmd.h): Include.
4516 (core_target::info_proc_mappings): New method.
4517 (get_current_core_target): New function.
4518 (maintenance_print_core_file_backed_mappings): New function.
4519 (_initialize_corelow): Add core-file-backed-mappings to
4520 "maint print" commands.
4521
9c5ec5c2 45222020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4523
9c5ec5c2
KB
4524 * linux-tdep.c (dump_note_entry_p): New function.
4525 (linux_dump_mapping_p_ftype): New typedef.
4526 (linux_find_memory_regions_full): Add new parameter,
4527 should_dump_mapping_p.
4528 (linux_find_memory_regions): Adjust call to
4529 linux_find_memory_regions_full.
4530 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4531 call to linux_find_memory_regions_full.
4532
db082f59
KB
45332020-07-22 Kevin Buettner <kevinb@redhat.com>
4534
4535 * corelow.c (solist.h, unordered_map): Include.
4536 (class core_target): Add field m_core_file_mappings and
4537 method build_file_mappings.
4538 (core_target::core_target): Call build_file_mappings.
4539 (core_target::~core_target): Free memory associated with
4540 m_core_file_mappings.
4541 (core_target::build_file_mappings): New method.
4542 (core_target::xfer_partial): Use m_core_file_mappings
4543 for memory transfers.
4544 * linux-tdep.c (linux_read_core_file_mappings): New
4545 function.
4546 (linux_core_info_proc_mappings): Rewrite to use
4547 linux_read_core_file_mappings.
4548 (linux_init_abi): Register linux_read_core_file_mappings.
4549
7e183d27
KB
45502020-07-22 Kevin Buettner <kevinb@redhat.com>
4551
4552 * arch-utils.c (default_read_core_file_mappings): New function.
4553 * arch-utils.c (default_read_core_file_mappings): Declare.
4554 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4555 * gdbarch.h, gdbarch.c: Regenerate.
4556
2735d421
KB
45572020-07-22 Kevin Buettner <kevinb@redhat.com>
4558
4559 PR corefiles/25631
4560 * corelow.c (core_target:xfer_partial): Revise
4561 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4562 case after first checking the stratum beneath the core
4563 target.
4564 (has_all_memory): Return true.
4565 * target.c (raw_memory_xfer_partial): Revise comment
4566 regarding use of has_all_memory.
4567
e56cb451
KB
45682020-07-22 Kevin Buettner <kevinb@redhat.com>
4569
4570 * exec.h (section_table_xfer_memory): Revise declaration,
4571 replacing section name parameter with an optional callback
4572 predicate.
4573 * exec.c (section_table_xfer_memory): Likewise.
4574 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4575 of section_table_xfer_memory.
4576
32fa152e
TT
45772020-07-22 Tom Tromey <tromey@adacore.com>
4578
4579 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4580 lookup_symbol_search_name.
4581
a67a1c41
AB
45822020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4583
4584 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4585 redundant local variable.
4586 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4587 reference, not pointer, update code accordingly.
4588
a7b4ff4f
SM
45892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4590 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4591
4592 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4593 * jit.c (jit_breakpoint_re_set_internal): Use the
4594 `skip_jit_symbol_lookup` field.
4595
2340e834
SM
45962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4597 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4598
4599 * jit.c (jit_read_descriptor): Define the descriptor address once,
4600 use twice.
4601 (jit_breakpoint_deleted): Move the declaration of the loop variable
4602 `iter` into the loop header.
4603 (jit_breakpoint_re_set_internal): Move the declaration of the local
4604 variable `objf_data` to the first point of definition.
4605 (jit_event_handler): Move the declaration of local variables
4606 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4607 Rename `objf` to `jited`.
4608
c1072906
SM
46092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4610
4611 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4612 Remove.
4613 * jit.c (get_jiter_objfile_data): Update.
4614
c8474dc3
TBA
46152020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4616 Simon Marchi <simon.marchi@polymtl.ca>
4617
4618 * jit.c (struct jit_program_space_data): Remove.
4619 (jit_program_space_key): Remove.
4620 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4621 stuff.
4622 (get_jit_program_space_data): Remove.
4623 (jit_breakpoint_deleted): Iterate on all of the program space's
4624 objfiles.
4625 (jit_inferior_init): Likewise.
4626 (jit_breakpoint_re_set_internal): Likewise. Also change return
4627 type to void.
4628 (jit_breakpoint_re_set): Pass current_program_space to
4629 jit_breakpoint_re_set_internal.
4630
77208eb7
SM
46312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4632
4633 * jit.h (struct jiter_objfile_data) <cached_code_address,
4634 jit_breakpoint>: Move to here from ...
4635 * jit.c (jit_program_space_data): ... here.
4636 (jiter_objfile_data::~jiter_objfile_data): Update.
4637 (jit_breakpoint_deleted): Update.
4638 (jit_breakpoint_re_set_internal): Update.
4639
8c1c720f
SM
46402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4641
4642 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4643 checks.
4644 (jit_read_descriptor): Remove NULL check.
4645 (jit_event_handler): Add an assertion.
4646
0e74a041
SM
46472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4648
4649 * jit.h (struct jit_objfile_data): Split into...
4650 (struct jiter_objfile_data): ... this ...
4651 (struct jited_objfile_data): ... and this.
4652 * objfiles.h (struct objfile) <jit_data>: Remove.
4653 <jiter_data, jited_data>: New fields.
4654 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4655 (jiter_objfile_data::~jiter_objfile_data): ... this.
4656 (get_jit_objfile_data): Rename to ...
4657 (get_jiter_objfile_data): ... this.
4658 (add_objfile_entry): Update.
4659 (jit_read_descriptor): Use get_jiter_objfile_data.
4660 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4661 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4662 (jit_inferior_exit_hook): Use objfile's jited_data field.
4663
238b5c9f
SM
46642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4665
4666 * jit.h: Forward-declare `struct minimal_symbol`.
4667 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4668 constructor, destructor, and an objfile* field.
4669 * jit.c (jit_objfile_data): Remove.
4670 (struct jit_objfile_data): Migrate from here to jit.h.
4671 (jit_objfile_data::~jit_objfile_data): New destructor
4672 implementation with code moved from free_objfile_data.
4673 (free_objfile_data): Delete.
4674 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4675 (jit_find_objf_with_entry_addr): Ditto.
4676 (jit_inferior_exit_hook): Ditto.
4677 (_initialize_jit): Remove the call to
4678 register_objfile_data_with_cleanup.
4679 * objfiles.h (struct objfile) <jit_data>: New field.
4680
fe053b9e
TBA
46812020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4682
4683 * jit.h: Forward-declare `struct objfile`.
4684 (jit_event_handler): Add a second parameter, the JITer objfile.
4685 * jit.c (jit_read_descriptor): Change the signature to take the
4686 JITer objfile as an argument instead of the jit_program_space_data.
4687 (jit_inferior_init): Update the call to jit_read_descriptor.
4688 (jit_event_handler): Use the new JITer objfile argument when calling
4689 jit_read_descriptor.
4690 * breakpoint.c (handle_jit_event): Update the call to
4691 jit_event_handler to pass the JITer objfile.
4692
4cec0c66
JB
46932020-07-21 John Baldwin <jhb@FreeBSD.org>
4694
4695 * gdbarch.c: Regenerate.
4696 * gdbarch.h: Regenerate.
4697 * gdbarch.sh (handle_segmentation_fault): Remove method.
4698 * infrun.c (handle_segmentation_fault): Remove.
4699 (print_signal_received_reason): Remove call to
4700 handle_segmentation_fault.
4701
0e42f66a
JB
47022020-07-21 John Baldwin <jhb@FreeBSD.org>
4703
4704 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4705 Rename to sparc64_linux_report_signal_info and add siggnal
4706 argument.
4707 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4708 instead of sparc64_linux_handle_segmentation_fault.
4709
77bdfeb2
JB
47102020-07-21 John Baldwin <jhb@FreeBSD.org>
4711
4712 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4713 i386_linux_report_signal_info instead of
4714 i386_linux_handle_segmentation_fault.
4715 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4716 to i386_linux_report_signal_info and add siggnal argument.
4717 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4718 of i386_linux_handle_segmentation_fault.
4719 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4720 to i386_linux_report_signal_info and add siggnal argument.
4721
ad97bfc5
JB
47222020-07-21 John Baldwin <jhb@FreeBSD.org>
4723
4724 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4725 hook if present.
4726
272bb05c
JB
47272020-07-21 John Baldwin <jhb@FreeBSD.org>
4728
4729 * gdbarch.c: Regenerate.
4730 * gdbarch.h: Regenerate.
4731 * gdbarch.sh (report_signal_info): New method.
4732 * infrun.c (print_signal_received_reason): Invoke gdbarch
4733 report_signal_info hook if present.
4734
baf8791e
AB
47352020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4736
4737 * python/py-registers.c : Add 'unordered_map' include.
4738 (gdbpy_new_reggroup): Renamed to...
4739 (gdbpy_get_reggroup): ...this. Update to only create register
4740 group descriptors when needed.
4741 (gdbpy_reggroup_iter_next): Update.
4742
f7306dac
AB
47432020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4744
4745 * python/py-registers.c (gdbpy_register_object_data): New static
4746 global.
4747 (gdbpy_register_object_data_init): New function.
4748 (gdbpy_new_register_descriptor): Renamed to...
4749 (gdbpy_get_register_descriptor): ...this, and update to reuse
4750 existing register descriptors where possible.
4751 (gdbpy_register_descriptor_iter_next): Update.
4752 (gdbpy_initialize_registers): Register new gdbarch data.
4753
05c309a8
SM
47542020-07-21 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * linux-nat.c (stopped_pids): Make static.
4757
d1fd641e
SM
47582020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4759
4760 PR ada/26235
4761 * gdbtypes.c (ada_discrete_type_low_bound,
4762 ada_discrete_type_high_bound): Handle undefined bounds.
4763
1de14d77
KR
47642020-07-21 Kamil Rytarowski <n54@gmx.com>
4765
4766 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4767 declaration.
4768 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4769 function.
4770
ed810cc7
JB
47712020-07-20 John Baldwin <jhb@FreeBSD.org>
4772
4773 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4774 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4775 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4776 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4777 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4778 method.
4779
ae5369e7
LC
47802020-07-20 Ludovic Courtès <ludo@gnu.org>
4781
4782 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4783 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4784 which are deprecated in Guile 3.0.
4785 * configure.ac (try_guile_versions): Add "guile-3.0".
4786 * configure (try_guile_versions): Regenerate.
4787 * NEWS: Update entry.
4788
68cf161c
LC
47892020-07-20 Ludovic Courtès <ludo@gnu.org>
4790 Doug Evans <dje@google.com>
4791
4792 PR gdb/21104
4793 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4794 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4795 USING_GUILE_BEFORE_2_2.
4796 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4797 Change type to 'scm_t_port_type *'.
4798 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4799 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4800 parameter and honor it. Update callers.
4801 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4802 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4803 functions.
4804 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4805 USING_GUILE_BEFORE_2_2.
4806 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4807 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4808 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4809 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4810 and 'SCM_PORT_TYPE'.
4811 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4812 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4813 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4814 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4815 [!USING_GUILE_BEFORE_2_2]: New functions.
4816 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4817 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4818 'gdbscm_memory_port_read'.
4819 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4820 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4821 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4822 function.
4823 (ioscm_init_memory_port): Remove.
4824 (ioscm_init_memory_port_stream): New function
4825 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4826 function.
4827 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4828 Return scm_from_uint (0).
4829 (gdbscm_set_memory_port_read_buffer_size_x)
4830 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4831 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4832 Return scm_from_uint (0).
4833 (gdbscm_set_memory_port_write_buffer_size_x)
4834 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4835 * configure.ac (try_guile_versions): Add "guile-2.2".
4836 * configure: Regenerate.
4837 * NEWS: Add entry.
4838
aee91db3
TT
48392020-07-18 Tom Tromey <tom@tromey.com>
4840
4841 * linux-nat.c (linux_multi_process): Remove.
4842 (linux_nat_target::supports_multi_process): Return true.
4843
0e267416
AB
48442020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4845
4846 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4847 (riscv_lookup_target_description): Return pointer out of
4848 unique_ptr.
4849 * target-descriptions.c (allocate_target_description): Add
4850 comment.
4851 (target_desc_deleter::operator()): Likewise.
4852 * target-descriptions.h (struct target_desc_deleter): Moved to
4853 gdbsupport/tdesc.h.
4854 (target_desc_up): Likewise.
4855
f80c8ec4
TT
48562020-07-17 Tom Tromey <tromey@adacore.com>
4857
4858 * linux-nat.c (linux_nat_target::supports_non_stop)
4859 (linux_nat_target::always_non_stop_p): Use "true".
4860 (linux_nat_target::supports_disable_randomization): Use "true" and
4861 "false".
4862
d0ce17d8
CT
48632020-07-16 Caroline Tice <cmtice@google.com>
4864
4865 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4866 (RNGLIST_HEADER_SIZE64): New constant definition.
4867 (struct dwop_section_names): Add rnglists_dwo.
4868 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4869 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4870 (struct dwo_sections): Add rnglists field.
4871 (read_attribut_reprocess): Add tag parameter.
4872 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4873 (cu_debug_rnglists_section): New function (decl & definition).
4874 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4875 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4876 die whose range is being checked; get rnglist section from
4877 cu_debug_rnglists_section, to get from either objfile or dwo file as
4878 appropriate. Add cases for DW_RLE_base_addressx,
4879 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4880 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4881 test inside if-condition and updating complaint message.
4882 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4883 dwarf2_rnglists_process.
4884 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4885 dwarf2_ranges_process.
4886 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4887 need_ranges_base and update comment appropriately. Also pass die tag
4888 to dwarf2_ranges_read.
4889 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4890 need_ranges_base and update comment appropriately. Also pass die tag
4891 to dwarf2_ranges_process.
4892 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4893 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4894 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4895 need_ranges_base and update comment appropriately. Also pass die tag
4896 to read_attribute_reprocess and dwarf2_ranges_read.
4897 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4898 and update function comment appropriately.
4899 (read_loclist_index): Call read_loclists_rnglists_header instead of
4900 read_loclist_header.
4901 (read_rnglist_index): New function.
4902 (read_attribute_reprocess): Add tag parameter. Add code for
4903 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4904 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4905
3dcc261c
AB
49062020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4907
4908 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4909 being resolved.
4910
ccb9eba6
AB
49112020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4912
4913 * arch-utils.c (show_architecture): Update formatting of messages.
4914
cf88be68
SM
49152020-07-12 Simon Marchi <simon.marchi@efficios.com>
4916
4917 * gdbtypes.h (struct type) <bounds>: Handle array and string
4918 types.
4919 * ada-lang.c (assign_aggregate): Use type::bounds on
4920 array/string type.
4921 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4922 * c-varobj.c (c_number_of_children): Likewise.
4923 (c_describe_child): Likewise.
4924 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4925 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4926 (f_type_print_base): Likewise.
4927 * f-valprint.c (f77_array_offset_tbl): Likewise.
4928 (f77_get_upperbound): Likewise.
4929 (f77_print_array_1): Likewise.
4930 * guile/scm-type.c (gdbscm_type_range): Likewise.
4931 * m2-typeprint.c (m2_array): Likewise.
4932 (m2_is_long_set_of_type): Likewise.
4933 * m2-valprint.c (get_long_set_bounds): Likewise.
4934 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4935 * python/py-type.c (typy_range): Likewise.
4936 * rust-lang.c (rust_internal_print_type): Likewise.
4937 * type-stack.c (type_stack::follow_types): Likewise.
4938 * valarith.c (value_subscripted_rvalue): Likewise.
4939 * valops.c (value_cast): Likewise.
4940
509971ae
SM
49412020-07-12 Simon Marchi <simon.marchi@efficios.com>
4942
4943 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4944 callers to use the equivalent accessor methods.
4945
107406b7
SM
49462020-07-12 Simon Marchi <simon.marchi@efficios.com>
4947
4948 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4949 (struct type) <bit_stride>: New method.
4950 (TYPE_BIT_STRIDE): Remove.
4951 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4952
bb789949
SM
49532020-07-12 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4956 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4957 callers to use the equivalent accessor methods instead.
4958
39498edb
SM
49592020-07-12 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4962 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4963 callers to use the equivalent accessor methods instead.
4964
3b606f38
SM
49652020-07-12 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4968 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4969 to use dynamic_prop::kind.
4970
064d9cb9
SM
49712020-07-12 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4974 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4975 to get the bound property's kind and check against
4976 PROP_UNDEFINED.
4977
5537ddd0
SM
49782020-07-12 Simon Marchi <simon.marchi@efficios.com>
4979
4980 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4981 all callers to use type::range_bounds followed by
4982 dynamic_prop::{low,high}.
4983
8c2e4e06
SM
49842020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4985
4986 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4987 const_val, set_const_val, baton, set_locexpr, set_loclist,
4988 set_addr_offset, variant_parts, set_variant_parts,
4989 original_type, set_original_type>: New methods.
4990 <kind>: Rename to...
4991 <m_kind>: ... this. Update all users to use the new methods
4992 instead.
4993 <data>: Rename to...
4994 <m_data>: ... this. Update all users to use the new methods
4995 instead.
4996
7c6f2712
SM
49972020-07-12 Simon Marchi <simon.marchi@efficios.com>
4998
4999 * gdbtypes.c (get_discrete_bounds): Return failure if
5000 the range type's bounds are not both defined and constant
5001 values.
5002 (get_array_bounds): Update comment. Remove undefined bound check.
5003
599088e3
SM
50042020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5005
5006 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5007 the type::bounds method directly.
5008
c4dfcb36
SM
50092020-07-12 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5012 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5013 are used to set the range type's bounds to use set_bounds.
5014
0a278aa7
PW
50152020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5016
5017 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5018
cce20f10
PA
50192020-07-10 Pedro Alves <pedro@palves.net>
5020
5021 * gdbthread.h (inferior_ref): Define.
5022 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5023 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5024 * thread.c
5025 (scoped_restore_current_thread::restore):
5026 Adjust to gdb::ref_ptr.
5027 (scoped_restore_current_thread::~scoped_restore_current_thread):
5028 Remove manual decref handling.
5029 (scoped_restore_current_thread::scoped_restore_current_thread):
5030 Adjust to use
5031 inferior_ref::new_reference/thread_info_ref::new_reference.
5032 Incref the thread before calling get_frame_id instead of after.
5033 Let TARGET_CLOSE_ERROR propagate.
5034
6d7aa592
PA
50352020-07-10 Pedro Alves <pedro@palves.net>
5036
5037 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5038 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5039 NOT_AVAILABLE_ERROR.
5040 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5041 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5042
b3e3a4c1
SM
50432020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5044 Pedro Alves <pedro@palves.net>
5045
5046 PR gdb/26199
5047 * infrun.c (threads_are_resumed_pending_p): Delete.
5048 (do_target_wait): Remove threads_are_executing and
5049 threads_are_resumed_pending_p checks from the inferior_matches
5050 lambda. Update comments.
5051
d6cc5d98
PA
50522020-07-10 Pedro Alves <pedro@palves.net>
5053
5054 PR gdb/26199
5055 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5056 executing threads.
5057
7d3badc6
PA
50582020-07-10 Pedro Alves <pedro@palves.net>
5059
5060 PR gdb/26199
5061 * infrun.c (handle_no_resumed): Handle multiple targets.
5062
42bd97a6
PA
50632020-07-10 Pedro Alves <pedro@palves.net>
5064
5065 PR gdb/26199
5066 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5067 target_is_async_p.
5068
43667cc6
PA
50692020-07-10 Pedro Alves <pedro@palves.net>
5070
5071 PR gdb/26199
5072 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5073 threads, not all threads.
5074
96118d11
PA
50752020-07-10 Pedro Alves <pedro@palves.net>
5076
5077 PR gdb/26199
5078 * remote.c (remote_target::open_1): Pass remote target pointer as
5079 data to create_async_event_handler.
5080 (remote_async_inferior_event_handler): Mark async event handler
5081 before returning if the remote target still has either pending
5082 events or unacknowledged notifications.
5083
54904d81
JB
50842020-07-10 John Baldwin <jhb@FreeBSD.org>
5085
5086 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5087 declaration.
5088 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5089 function.
5090
f37e5866
JB
50912020-07-09 John Baldwin <jhb@FreeBSD.org>
5092
5093 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5094 inferior_ptid.
5095
fc238d4a
JB
50962020-07-09 John Baldwin <jhb@FreeBSD.org>
5097
5098 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5099 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5100 AT_FREEBSD_PS_STRINGS.
5101
6e2469ff
HD
51022020-07-08 Hannes Domani <ssbssa@yahoo.de>
5103
5104 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5105 of debugfile path on Windows.
5106
d1076c41
JB
51072020-07-08 John Baldwin <jhb@FreeBSD.org>
5108
5109 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5110 argument to 'data'.
5111
15f3b077
TT
51122020-07-08 Tom Tromey <tromey@adacore.com>
5113
5114 * ada-lang.c (ada_exception_message_1): Use read_memory.
5115
9fc501fd
AB
51162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5117
5118 PR python/22748
5119 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5120 special handling for inline frames.
5121 * findvar.c (value_of_register_lazy): Skip inline frames when
5122 creating lazy register values.
5123 * frame.c (frame_id_computed_p): Delete definition.
5124 * frame.h (frame_id_computed_p): Delete declaration.
5125
64cb3757
AB
51262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5127
5128 * NEWS: Mention additions to Python API.
5129 * python/py-arch.c (archpy_register_groups): New function.
5130 (arch_object_methods): Add 'register_groups' method.
5131 * python/py-registers.c (reggroup_iterator_object): New struct.
5132 (reggroup_object): New struct.
5133 (gdbpy_new_reggroup): New function.
5134 (gdbpy_reggroup_to_string): New function.
5135 (gdbpy_reggroup_name): New function.
5136 (gdbpy_reggroup_iter): New function.
5137 (gdbpy_reggroup_iter_next): New function.
5138 (gdbpy_new_reggroup_iterator): New function
5139 (gdbpy_initialize_registers): Register new types.
5140 (reggroup_iterator_object_type): Define new Python type.
5141 (gdbpy_reggroup_getset): New static global.
5142 (reggroup_object_type): Define new Python type.
5143 * python/python-internal.h
5144
0f767f94
AB
51452020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5146
5147 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5148 * python/py-arch.c (archpy_registers): New function.
5149 (arch_object_methods): Add 'registers' method.
5150 * python/py-registers.c: New file.
5151 * python/python-internal.h
5152 (gdbpy_new_register_descriptor_iterator): Declare.
5153 (gdbpy_initialize_registers): Declare.
5154 * python/python.c (do_start_initialization): Call
5155 gdbpy_initialize_registers.
5156 * NEWS: Mention additions to the Python API.
5157
87dbc774
AB
51582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5159
5160 * NEWS: Mention new Python API method.
5161 * python/py-unwind.c (pending_framepy_architecture): New function.
5162 (pending_frame_object_methods): Add architecture method.
5163
3bc98c0c
AB
51642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5165
5166 * gdbarch.c: Regenerate.
5167 * gdbarch.h: Regenerate.
5168 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5169 (gdbarch_data): Use internal_error for the case where
5170 deprecated_set_gdbarch_data was originally needed.
5171 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5172 and use passed in obstack.
5173 (libunwind_frame_set_descr): Should no longer get back NULL from
5174 gdbarch_data.
5175 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5176 type.
5177 * user-regs.c (user_regs_init): Update parameters, and use passed
5178 in obstack.
5179 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5180 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5181
d8cc8af6
TV
51822020-07-06 Tom de Vries <tdevries@suse.de>
5183
5184 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5185 End-Of-Sequence in lte_is_less_than.
5186 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5187 "gdb: Don't reorder line table entries too much when sorting".
5188
947f7597
TV
51892020-07-06 Tom de Vries <tdevries@suse.de>
5190
5191 PR tui/26205
5192 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5193
1e7c1b22
TV
51942020-07-05 Tom de Vries <tdevries@suse.de>
5195
5196 PR build/26187
5197 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5198 std::uncaught_exceptions instead of deprecated
5199 std::uncaught_exception.
5200
a36158ec
SM
52012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5202
5203 * macroexp.h (macro_stringify): Return
5204 gdb::unique_xmalloc_ptr<char>.
5205 * macroexp.c (macro_stringify): Likewise.
5206 * macrotab.c (fixup_definition): Update.
5207
14d960c8
SM
52082020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5209
5210 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5211 (lex_one_token): Update.
5212 * macroexp.c (struct macro_buffer) <release>: Return
5213 gdb::unique_xmalloc_ptr<char>.
5214 (macro_stringify): Update.
5215 (macro_expand): Update.
5216 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5217 * macroexp.h (macro_expand_next): Likewise.
5218
211d5b1c
SM
52192020-07-02 Simon Marchi <simon.marchi@efficios.com>
5220
5221 * macroexp.h (macro_lookup_ftype): Remove.
5222 (macro_expand, macro_expand_once, macro_expand_next): Remove
5223 lookup function parameters, add scope parameter.
5224 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5225 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5226 * macroscope.h (standard_macro_lookup): Change parameter type
5227 to macro_scope.
5228 * macroscope.c (standard_macro_lookup): Likewise.
5229 * c-exp.y (lex_one_token): Update.
5230 * macrocmd.c (macro_expand_command): Likewise.
5231 (macro_expand_once_command): Likewise.
5232
b1a35af2
SM
52332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5234
5235 * inf-loop.c (inferior_event_handler): Remove client_data param.
5236 * inf-loop.h (inferior_event_handler): Likewise.
5237 * infcmd.c (step_1): Adjust.
5238 * infrun.c (proceed): Adjust.
5239 (fetch_inferior_event): Remove client_data param.
5240 (infrun_async_inferior_event_handler): Adjust.
5241 * infrun.h (fetch_inferior_event): Remove `void *` param.
5242 * linux-nat.c (handle_target_event): Adjust.
5243 * record-btrace.c (record_btrace_handle_async_inferior_event):
5244 Adjust.
5245 * record-full.c (record_full_async_inferior_event_handler):
5246 Adjust.
5247 * remote.c (remote_async_inferior_event_handler): Adjust.
5248
1cdf9e33
TT
52492020-07-01 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5252 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5253
32c1e210
TT
52542020-07-01 Tom Tromey <tom@tromey.com>
5255
5256 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5257 tui_gen_win_info.
5258 (tui_win_info::make_window): Merge with
5259 tui_gen_win_info::make_window.
5260 (tui_win_info::make_visible): Move from tui_gen_win_info.
5261 * tui/tui-win.c (tui_win_info::max_width): Move from
5262 tui_gen_win_info.
5263 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5264 type.
5265 <window_factory>: Likewise.
5266 * tui/tui-layout.c (tui_win_info::resize): Move from
5267 tui_gen_win_info.
5268 (make_standard_window): Change return type.
5269 (get_locator_window, tui_get_window_by_name): Likewise.
5270 (tui_layout_window::apply): Remove a cast.
5271 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5272 (struct tui_win_info): Merge with tui_gen_win_info.
5273 (struct tui_gen_win_info): Remove.
5274
a30cb6da
TT
52752020-07-01 Tom Tromey <tom@tromey.com>
5276
5277 * tui/tui-stack.h (struct tui_locator_window): Derive from
5278 tui_win_info.
5279 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5280 <can_box>: New method.
5281
1eb2161f
TT
52822020-07-01 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5285
7134f2eb
TT
52862020-07-01 Tom Tromey <tom@tromey.com>
5287
5288 * tui/tui-regs.c (tui_data_window::display_registers_from)
5289 (tui_data_window::display_registers_from)
5290 (tui_data_window::first_data_item_displayed)
5291 (tui_data_window::delete_data_content_windows): Update.
5292 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5293 Remove.
5294 (tui_data_window::check_register_values): Update.
5295 (tui_data_item_window::rerender): Add parameters. Update.
5296 (tui_data_item_window::refresh_window): Remove.
5297 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5298 virtual.
5299 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5300 tui_gen_win_info.
5301 <refresh_window, max_height, min_height>: Remove.
5302 <rerender>: Add parameters.
5303 <x, y, visible>: New members.
5304 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5305 <m_item_width>: New member.
5306
22b7b041
TT
53072020-07-01 Tom Tromey <tom@tromey.com>
5308
5309 * tui/tui-regs.c (tui_data_window::show_register_group)
5310 (tui_data_window::check_register_values): Update.
5311 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5312 from item_no.
5313
c9753adb
TT
53142020-07-01 Tom Tromey <tom@tromey.com>
5315
5316 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5317 useless "if".
5318
9ab26b4a
TT
53192020-07-01 Tom Tromey <tom@tromey.com>
5320
5321 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5322 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5323
e555083f
TT
53242020-07-01 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5327 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5328 (struct tui_line_or_address): Move from tui-data.h.
5329 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5330 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5331 (tui_cmd_window, tui_source_window_base, tui_source_window)
5332 (tui_disasm_window): Don't declare.
5333 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5334 to tui-winsource.h.
5335 (SINGLE_KEY): Move to tui-stack.c.
5336
7a02bab7
TT
53372020-07-01 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5340 std::string.
5341 * tui/tui-regs.c (class tab_expansion_file): New.
5342 (tab_expansion_file::write): New method.
5343 (tui_register_format): Change return type. Use
5344 tab_expansion_file.
5345 (tui_get_register, tui_data_window::display_registers_from)
5346 (tui_data_item_window::rerender): Update.
5347 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5348 * tui/tui-io.c (tui_expand_tabs): Remove.
5349
ea68593b
TT
53502020-07-01 Tom Tromey <tom@tromey.com>
5351
5352 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5353
a8caed5d
FS
53542020-07-01 Fangrui Song <maskray@google.com>
5355
5356 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5357
9cdf9820
AKS
53582020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5359
5360 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5361 forms for DW_AT_associated and DW_AT_allocated attributes,
5362 which is already checked in function attr_to_dynamic_prop.
5363
a1520ad8
TT
53642020-06-30 Tom Tromey <tromey@adacore.com>
5365
5366 * dwarf2/read.c (quirk_rust_enum): Correctly call
5367 alloc_rust_variant for default-less enum.
5368
5ac58899
TT
53692020-06-30 Tom Tromey <tromey@adacore.com>
5370
5371 PR build/26183:
5372 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5373 gdb::to_string.
5374
19b187a9
SM
53752020-06-29 Simon Marchi <simon.marchi@efficios.com>
5376
5377 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5378 * gdbarch.h: Re-generate.
5379
cd4c4c07
TT
53802020-06-28 Tom Tromey <tom@tromey.com>
5381
5382 * command.h (cmd_types): Remove.
5383 (cmd_type): Don't declare.
5384 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5385 typedef.
5386 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5387 * cli/cli-decode.c (cmd_type): Remove.
5388
05779d57
PA
53892020-06-27 Pedro Alves <palves@redhat.com>
5390
5391 * fork-child.c (prefork_hook): Adjust.
5392 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5393 Delete.
5394 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5395 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5396 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5397 Remove declarations.
5398 (struct inferior) <set_tty, tty>: New methods.
5399 (struct inferior) <terminal>: Rename to ...
5400 (struct inferior) <m_terminal>: ... this and make private.
5401 * main.c (captured_main_1): Adjust.
5402 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5403 (mi_cmd_inferior_tty_show): Adjust.
5404 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5405 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5406
1776e3e5
NA
54072020-06-26 Nick Alcock <nick.alcock@oracle.com>
5408
5409 * configure.ac: Add --enable-libctf: handle --disable-static
5410 properly.
5411 * acinclude.m4: sinclude ../config/enable.m4.
5412 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5413 (LIBCTF): Substitute in.
5414 (CTF_DEPS): New, likewise.
5415 (CLIBS): libctf needs symbols from libbfd: move earlier.
5416 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5417 flags.
5418 * ctfread.c: Surround in ENABLE_LIBCTF.
5419 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5420 * configure: Regenerate.
5421 * config.in: Likewise.
5422
58373b80
SM
54232020-06-25 Simon Marchi <simon.marchi@efficios.com>
5424
5425 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5426
277474ee
SM
54272020-06-25 Simon Marchi <simon.marchi@efficios.com>
5428
5429 * inferior.h (struct inferior) <terminal>: Change type to
5430 gdb::unique_xmalloc_ptr<char>.
5431 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5432 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5433 field, adjust to unique pointer.
5434 (get_inferior_io_terminal): Adjust to unique pointer.
5435
6d74da72
AB
54362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5437
5438 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5439 registers, not just the known core set of registers.
5440
2e52d038
AB
54412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5442
5443 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5444 fflags, frm, and fcsr registers.
5445 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5446 restore groups.
5447 (riscv_tdesc_unknown_reg): New function.
5448 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5449 tdesc_use_registers.
5450 * riscv-tdep.h (struct gdbarch_tdep): Add
5451 unknown_csrs_first_regnum, unknown_csrs_count,
5452 duplicate_fflags_regnum, duplicate_frm_regnum, and
5453 duplicate_fcsr_regnum fields.
5454
be64fd07
AB
54552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5456
5457 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5458 callback, use the callback (when not null) to help number unknown
5459 registers.
5460 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5461 (tdesc_use_registers): Add extra parameter to declaration.
5462
3b9fce96
AB
54632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5466 in the file.
5467 (class riscv_pending_register_alias): Likewise.
5468 (riscv_register_feature::register_info): Change 'required_p' field
5469 to 'required', and change its type. Add 'check' member function.
5470 (riscv_register_feature::register_info::check): Define new member
5471 function.
5472 (riscv_xreg_feature): Change initialisation of 'required' field.
5473 (riscv_freg_feature): Likewise.
5474 (riscv_virtual_feature): Likewise.
5475 (riscv_csr_feature): Likewise.
5476 (riscv_check_tdesc_feature): Take extra parameter, the csr
5477 tdesc_feature, rewrite the function to use the new
5478 riscv_register_feature::register_info::check function.
5479 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5480
865bad26
AB
54812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5482
5483 * features/Makefile: Remove all references to the deleted files
5484 below.
5485 * features/riscv/32bit-csr.c: Deleted.
5486 * features/riscv/32bit-csr.xml: Deleted.
5487 * features/riscv/64bit-csr.c: Deleted.
5488 * features/riscv/64bit-csr.xml: Deleted.
5489 * features/riscv/rebuild-csr-xml.sh: Deleted.
5490
ed69cbc8
AB
54912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5492
5493 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5494 whitespace error for declaration of names member variable.
5495 (struct riscv_register_feature): Add new prefer_first_name member
5496 variable, and fix whitespace error in declaration of registers.
5497 (riscv_xreg_feature): Initialize prefer_first_name field.
5498 (riscv_freg_feature): Likewise.
5499 (riscv_virtual_feature): Likewise.
5500 (riscv_csr_feature): Likewise.
5501 (riscv_register_name): Expand on comments. Remove register name
5502 modifications for CSR and virtual registers.
5503
4445e8f5
AB
55042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5505
5506 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5507 errors.
5508
767a879e
AB
55092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5510
5511 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5512 riscv-opc.h.
5513 (class riscv_pending_register_alias): New class.
5514 (riscv_check_tdesc_feature): Take vector of pending aliases and
5515 populate it as appropriate.
5516 (riscv_setup_register_aliases): Delete.
5517 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5518 to riscv_check_tdesc_feature in all cases. Use the vector to
5519 create the register aliases.
5520
bb6e55f3
RO
55212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5522
5523 * sol2-tdep.c (sol2_static_transform_name): Remove.
5524 (sol2_init_abi): Don't register it.
5525 * gdbarch.sh (static_transform_name): Remove.
5526 * gdbarch.c, gdbarch.h: Regenerate.
5527
5528 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5529 gdbarch_static_transform_name.
5530 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5531 * stabsread.c (define_symbol) <'X'>: Remove.
5532 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5533 handling.
5534 <'V'>: Likewise.
5535 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5536 <'S'>: Remove call to gdbarch_static_transform_name.
5537
c6d36836
RO
55382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5539
5540 * procfs.c (procfs_pre_trace): New function.
5541 (procfs_target::create_inferior): Pass it to fork_inferior.
5542
a7e6196b
RO
55432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5544
5545 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5546 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5547 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5548 sol2-tdep.o, sparc-sol2-tdep.o.
5549 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5550 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5551 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5552 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5553
d412e696
RO
55542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5555
5556 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5557 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5558 Call sol2_init_abi.
5559 Remove calls to set_gdbarch_skip_solib_resolver,
5560 set_gdbarch_core_pid_to_str.
5561 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5562 (i386_sol2_static_transform_name): Remove.
5563 (i386_sol2_init_abi): Call sol2_init_abi.
5564 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5565 set_gdbarch_static_transform_name,
5566 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5567 Use sol2_sigtramp_p.
5568 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5569 (sol2_sigtramp_p): New function.
5570 (sol2_static_transform_name): New function.
5571 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5572 (sol2_init_abi): New function.
5573 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5574 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5575 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5576 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5577 (sparc_sol2_static_transform_name): Remove.
5578 (sparc32_sol2_init_abi): Call sol2_init_abi.
5579 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5580 set_gdbarch_static_transform_name,
5581 set_gdbarch_skip_solib_resolver,
5582 set_gdbarch_core_pid_to_str.
5583 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5584 (sparc_sol2_static_transform_name): Remove
5585 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5586 call sol2_sigtramp_p.
5587 (sparc64_sol2_init_abi): Call sol2_init_abi.
5588 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5589 set_gdbarch_static_transform_name,
5590 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5591
a8654e7d
PW
55922020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5593
5594 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5595 * exec.c (validate_exec_file): If from_tty, set both
5596 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5597 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5598 and from_tty, unconditionally ask a confirmation.
5599
caa7fd04
AB
56002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5601
5602 * target-descriptions.c (tdesc_architecture_name): Protect against
5603 NULL pointer dereference.
5604 (maint_print_xml_tdesc_cmd): New function.
5605 (_initialize_target_descriptions): Register new 'maint print
5606 xml-tdesc' command and give it the filename completer.
5607 * NEWS: Mention new 'maint print xml-tdesc' command.
5608
fbf42f4e
AB
56092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5610
5611 * target-descriptions.c (class tdesc_compatible_info): New class.
5612 (struct target_desc): Change type of compatible vector.
5613 (tdesc_compatible_p): Update for change in type of
5614 target_desc::compatible.
5615 (tdesc_compatible_info_list): New function.
5616 (tdesc_compatible_info_arch_name): New function.
5617 (tdesc_add_compatible): Update for change in type of
5618 target_desc::compatible.
5619 (print_c_tdesc::visit_pre): Likewise.
5620
20821f4e
AB
56212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5622
5623 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5624 whitespace to underscore.
5625 (maint_print_c_tdesc_cmd): Use fake filename for target
5626 descriptions that came from the target.
5627 (_initialize_target_descriptions): Add filename command completion
5628 for 'maint print c-tdesc'.
5629
1fb5ee62
SM
56302020-06-23 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5633 lines.
5634
fc3ecb3e
SM
56352020-06-23 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5638 lines.
5639 (dwarf2_find_location_expression): Likewise.
5640 (call_site_parameter_matches): Likewise.
5641 (dwarf2_compile_expr_to_ax): Likewise.
5642 (disassemble_dwarf_expression): Likewise.
5643 (loclist_describe_location): Likewise.
5644
236ef034
PA
56452020-06-23 Pedro Alves <palves@redhat.com>
5646
5647 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5648 progspace-and-thread.h. Include scoped-mock-context.h instead.
5649 (register_to_value_test): Use scoped_mock_context.
5650 * regcache.c: Include "scoped-mock-context.h".
5651 (cooked_read_test): Don't error out if a target is already pushed.
5652 Use scoped_mock_context. Adjust.
5653 * scoped-mock-context.h: New file.
5654
39e7ecca
AB
56552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5656
5657 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5658 initializer.
5659 (ada_language::is_string_type_p): New member function.
5660 * c-lang.c (c_language_data): Delete la_is_string_type_p
5661 initializer.
5662 (cplus_language_data): Likewise.
5663 (asm_language_data): Likewise.
5664 (minimal_language_data): Likewise.
5665 * d-lang.c (d_language_data): Likewise.
5666 * f-lang.c (f_is_string_type_p): Delete function, implementation
5667 moved to f_language::is_string_type_p.
5668 (f_language_data): Delete la_is_string_type_p initializer.
5669 (f_language::is_string_type_p): New member function,
5670 implementation from f_is_string_type_p.
5671 * go-lang.c (go_is_string_type_p): Delete function, implementation
5672 moved to go_language::is_string_type_p.
5673 (go_language_data): Delete la_is_string_type_p initializer.
5674 (go_language::is_string_type_p): New member function,
5675 implementation from go_is_string_type_p.
5676 * language.c (language_defn::is_string_type_p): Define new member
5677 function.
5678 (default_is_string_type_p): Make static, add comment copied from
5679 header file.
5680 (unknown_language_data): Delete la_is_string_type_p initializer.
5681 (unknown_language::is_string_type_p): New member function.
5682 (auto_language_data): Delete la_is_string_type_p initializer.
5683 (auto_language::is_string_type_p): New member function.
5684 * language.h (language_data): Delete la_is_string_type_p field.
5685 (language_defn::is_string_type_p): Declare new function.
5686 (default_is_string_type_p): Delete desclaration, move comment to
5687 definition.
5688 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5689 moved to m2_language::is_string_type_p.
5690 (m2_language_data): Delete la_is_string_type_p initializer.
5691 (m2_language::is_string_type_p): New member function,
5692 implementation from m2_is_string_type_p.
5693 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5694 initializer.
5695 * opencl-lang.c (opencl_language_data): Likewise.
5696 * p-lang.c (pascal_is_string_type_p): Delete function,
5697 implementation moved to pascal_language::is_string_type_p.
5698 (pascal_language_data): Delete la_is_string_type_p initializer.
5699 (pascal_language::is_string_type_p): New member function,
5700 implementation from pascal_is_string_type_p.
5701 * rust-lang.c (rust_is_string_type_p): Delete function,
5702 implementation moved to rust_language::is_string_type_p.
5703 (rust_language_data): Delete la_is_string_type_p initializer.
5704 (rust_language::is_string_type_p): New member function,
5705 implementation from rust_is_string_type_p.
5706 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5707 is_string_type_p.
5708
4ffc13fb
AB
57092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5710
5711 * ada-lang.c (ada_language_data): Delete la_print_typedef
5712 initializer.
5713 (ada_language::print_typedef): New member function.
5714 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5715 (cplus_language_data): Likewise.
5716 (asm_language_data): Likewise.
5717 (minimal_language_data): Likewise.
5718 * d-lang.c (d_language_data): Likewise.
5719 * f-lang.c (f_language_data): Likewise.
5720 (f_language::print_typedef): New member function.
5721 * go-lang.c (go_language_data): Delete la_print_typedef
5722 initializer.
5723 * language.c (language_defn::print_typedef): Define member
5724 function.
5725 (unknown_language_data): Delete la_print_typedef initializer.
5726 (unknown_language::print_typedef): New member function.
5727 (auto_language_data): Delete la_print_typedef initializer.
5728 (auto_language::print_typedef): New member function.
5729 * language.h (language_data): Delete la_print_typedef field.
5730 (language_defn::print_typedef): Declare new member function.
5731 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5732 (default_print_typedef): Delete declaration.
5733 * m2-lang.c (m2_language_data): Delete la_print_typedef
5734 initializer.
5735 (m2_language::print_typedef): New member function.
5736 * objc-lang.c (objc_language_data): Delete la_print_typedef
5737 initializer.
5738 * opencl-lang.c (opencl_language_data): Likewise.
5739 * p-lang.c (pascal_language_data): Likewise.
5740 (pascal_language::print_typedef): New member function.
5741 * rust-lang.c (rust_print_typedef): Delete function,
5742 implementation moved to rust_language::print_typedef.
5743 (rust_language): Delete la_print_typedef initializer.
5744 (rust_language::print_typedef): New member function,
5745 implementation from rust_print_typedef.
5746 * typeprint.c (default_print_typedef): Delete.
5747
d711ee67
AB
57482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5749
5750 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5751 (ada_language::printstr): New member function.
5752 * c-lang.c (c_language_data): Delete la_printstr initializer.
5753 (cplus_language_data): Likewise.
5754 (asm_language_data): Likewise.
5755 (minimal_language_data): Likewise.
5756 * d-lang.c (d_language_data): Likewise.
5757 * f-lang.c (f_printstr): Rename to f_language::printstr.
5758 (f_language_data): Delete la_printstr initializer.
5759 (f_language::printstr): New member function, implementation from
5760 f_printstr.
5761 * go-lang.c (go_language_data): Delete la_printstr initializer.
5762 * language.c (language_defn::printstr): Define new member
5763 function.
5764 (unk_lang_printstr): Delete.
5765 (unknown_language_data): Delete la_printstr initializer.
5766 (unknown_language::printstr): New member function.
5767 (auto_language_data): Delete la_printstr initializer.
5768 (auto_language::printstr): New member function.
5769 * language.h (language_data): Delete la_printstr field.
5770 (language_defn::printstr): Declare new member function.
5771 (LA_PRINT_STRING): Update call to printstr.
5772 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5773 (m2_language_data): Delete la_printstr initializer.
5774 (m2_language::printstr): New member function, implementation from
5775 m2_printstr.
5776 * objc-lang.c (objc_language_data): Delete la_printstr
5777 initializer.
5778 * opencl-lang.c (opencl_language_data): Likewise.
5779 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5780 (pascal_language_data): Delete la_printstr initializer.
5781 (pascal_language::printstr): New member function, implementation
5782 from pascal_printstr.
5783 * p-lang.h (pascal_printstr): Delete declaration.
5784 * rust-lang.c (rust_printstr): Update header comment.
5785 (rust_language_data): Delete la_printstr initializer.
5786 (rust_language::printstr): New member function.
5787
52b50f2c
AB
57882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5789
5790 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5791 (ada_language::printchar): New member function.
5792 * c-lang.c (c_language_data): Delete la_printchar initializer.
5793 (cplus_language_data): Likewise.
5794 (asm_language_data): Likewise.
5795 (minimal_language_data): Likewise.
5796 * d-lang.c (d_language_data): Likewise.
5797 * f-lang.c (f_printchar): Rename to f_language::printchar.
5798 (f_language_data): Delete la_printchar initializer.
5799 (f_language::printchar): New member function, implementation from
5800 f_printchar.
5801 * go-lang.c (go_language_data): Delete la_printchar initializer.
5802 * language.c (unk_lang_printchar): Delete.
5803 (language_defn::printchar): Define new member function.
5804 (unknown_language_data): Delete la_printchar initializer.
5805 (unknown_language::printchar): New member function.
5806 (auto_language_data): Delete la_printchar initializer.
5807 (auto_language::printchar): New member function.
5808 * language.h (language_data): Delete la_printchar field.
5809 (language_defn::printchar): Declare new member function.
5810 (LA_PRINT_CHAR): Update call to printchar.
5811 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5812 (m2_language::printchar): New member function.
5813 * objc-lang.c (objc_language_data): Delete la_printchar
5814 initializer.
5815 * opencl-lang.c (opencl_language_data): Likewise.
5816 * p-lang.c (pascal_language_data): Delete la_printchar
5817 initializer.
5818 (pascal_language::printchar): New member function.
5819 * rust-lang.c (rust_printchar): Rename to
5820 rust_language::printchar.
5821 (rust_language_data): Delete la_printchar initializer.
5822 (rust_language::printchar): New member function, implementation
5823 from rust_printchar.
5824
ec8cec5b
AB
58252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5826
5827 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5828 (ada_language_data): Delete la_emitchar initializer.
5829 (ada_language::emitchar): New member function, implementation from
5830 emit_char.
5831 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5832 (cplus_language_data): Likewise.
5833 (asm_language_data): Likewise.
5834 (minimal_language_data): Likewise.
5835 * d-lang.c (d_language_data): Likewise.
5836 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5837 (f_language_data): Delete la_emitchar initializer.
5838 (f_language::emitchar): New member function, implementation from
5839 f_emit_char.
5840 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5841 * language.c (unk_lang_emit_char): Delete.
5842 (language_defn::emitchar): New member function definition.
5843 (unknown_language_data): Delete la_emitchar initializer.
5844 (unknown_language::emitchar): New member function.
5845 (auto_language_data): Delete la_emitchar initializer.
5846 (auto_language::emitchar): New member function.
5847 * language.h (language_data): Delete la_emitchar field.
5848 (language_defn::emitchar): New member field declaration.
5849 (LA_EMIT_CHAR): Update call to emitchar.
5850 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5851 (m2_language_data): Delete la_emitchar initializer.
5852 (m2_language::emitchar): New member function, implementation from
5853 m2_emit_char.
5854 * objc-lang.c (objc_language_data): Delete la_emitchar
5855 initializer.
5856 * opencl-lang.c (opencl_language_data): Likewise.
5857 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5858 (pascal_language_data): Delete la_emitchar initializer.
5859 (pascal_language::emitchar): New member function, implementation
5860 from pascal_emit_char.
5861 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5862 (rust_language_data): Delete la_emitchar initializer.
5863 (rust_language::emitchar): New member function, implementation
5864 from rust_emitchar.
5865
1bf9c363
AB
58662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5867
5868 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5869 (ada_language_data): Delete la_post_parser initializer.
5870 (ada_language::post_parser): New member function.
5871 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5872 (cplus_language_data): Likewise.
5873 (asm_language_data): Likewise.
5874 (minimal_language_data): Likewise.
5875 * d-lang.c (d_language_data): Likewise.
5876 * f-lang.c (f_language_data): Likewise.
5877 * go-lang.c (go_language_data): Likewise.
5878 * language.c (unknown_language_data): Likewise.
5879 (auto_language_data): Likewise.
5880 * language.h (language_data): Delete la_post_parser field.
5881 (language_defn::post_parser): New member function.
5882 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5883 * objc-lang.c (objc_language_data): Likewise.
5884 * opencl-lang.c (opencl_language_data): Likewise.
5885 * p-lang.c (pascal_language_data): Likewise.
5886 * parse.c (parse_exp_in_context): Update call to post_parser.
5887 (null_post_parser): Delete definition.
5888 * parser-defs.h (null_post_parser): Delete declaration.
5889 * rust-lang.c (rust_language_data): Delete la_post_parser
5890 initializer.
5891
87afa652
AB
58922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5893
5894 * ada-lang.c (parse): Rename to ada_language::parser.
5895 (ada_language_data): Delete la_parser initializer.
5896 (ada_language::parser): New member function, implementation from
5897 parse.
5898 * c-lang.c (c_language_data): Delete la_parser initializer.
5899 (cplus_language_data): Likewise.
5900 (asm_language_data): Likewise.
5901 (minimal_language_data): Likewise.
5902 * d-lang.c (d_language_data): Likewise.
5903 (d_language::parser): New member function.
5904 * f-lang.c (f_language_data): Delete la_parser initializer.
5905 (f_language::parser): New member function.
5906 * go-lang.c (go_language_data): Delete la_parser initializer.
5907 (go_language::parser): New member function.
5908 * language.c (unk_lang_parser): Delete.
5909 (language_defn::parser): Define new member function.
5910 (unknown_language_data): Delete la_parser initializer.
5911 (unknown_language::parser): New member function.
5912 (auto_language_data): Delete la_parser initializer.
5913 (auto_language::parser): New member function.
5914 * language.h (language_data): Delete la_parser field.
5915 (language_defn::parser): Declare new member function.
5916 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5917 (m2_language::parser): New member function.
5918 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5919 * opencl-lang.c (opencl_language_data): Likewise.
5920 * p-lang.c (pascal_language_data): Likewise.
5921 (pascal_language::parser): New member function.
5922 * parse.c (parse_exp_in_context): Update call to parser.
5923 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5924 (rust_language::parser): New member function.
5925
37825800
AB
59262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * top.c (print_gdb_configuration): Print --with-python-libdir
5929 configuration value.
5930
5b860c93
PW
59312020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5932
5933 * NEWS: Mention change to the alias command.
5934
cf00cd6f
PW
59352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5936
5937 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5938 (alias_command_completer)
5939 (make_alias_options_def_group): New functions.
5940 (alias_opts, alias_option_defs): New struct and array.
5941 (alias_usage_error): Update usage.
5942 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5943 Use option framework.
5944 (_initialize_cli_cmds): Update alias command help.
5945 Update aliases command help.
5946 (show_user):
5947 Add NULL for new default_args lookup_cmd argument.
5948 (valid_command_p): Rename to validate_aliased_command.
5949 Add NULL for new default_args lookup_cmd argument. Verify that the
5950 aliased_command has no default args.
5951 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5952 (lookup_cmd_1, lookup_cmd): New argument default_args.
5953 (add_alias_cmd):
5954 Add NULL for new default_args lookup_cmd argument.
5955 (print_help_for_command): Show default args under the layout
5956 alias some_alias = some_aliased_cmd some_alias_default_arg.
5957 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5958 xfree default_args in destructor.
5959 * cli/cli-script.c (process_next_line, do_define_command):
5960 Add NULL for new default_args lookup_cmd argument.
5961 * command.h: Declare new default_args argument in lookup_cmd
5962 and lookup_cmd_1.
5963 * completer.c (complete_line_internal_1):
5964 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5965 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5966 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5967 Likewise.
5968 * infcmd.c (_initialize_infcmd): Likewise.
5969 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5970 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5971 * python/py-param.c (add_setshow_generic): Likewise.
5972 * remote.c (_initialize_remote): Likewise.
5973 * top.c (execute_command): Prepend default_args if command has some.
5974 (set_verbose):
5975 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5976 * tracepoint.c (validate_actionline, encode_actions_1):
5977 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5978
bd920864
TBA
59792020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5980
5981 * jit.c (jit_read_descriptor): Use bool as the return type.
5982 (jit_breakpoint_re_set_internal): Use bool as the return type.
5983 Invert the return value logic; return true if the jit breakpoint
5984 has been successfully initialized.
5985 (jit_inferior_init): Update the call to
5986 jit_breakpoint_re_set_internal.
5987
f8098322
PA
59882020-06-22 Pedro Alves <palves@redhat.com>
5989
5990 PR gdb/25939
5991 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5992 Use the current inferior instead. Don't return
5993 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5994 wait again.
5995 * sol-thread.c (sol_thread_target::wait): Don't reference
5996 inferior_ptid.
5997 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5998 (sol_update_thread_list_callback): Use the current inferior's pid
5999 instead of inferior_ptid.
6000
196535a6
RO
60012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6002
6003 * procfs.c: Cleanup many comments.
6004
6005 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6006 (AFTER_WATCHFLAG): Replace by value.
6007
6008 (MAIN_PROC_NAME_FORMAT): Inline ...
6009 (create_procinfo): ... here.
6010
6011 (procfs_debug_inferior): Remove SYS_exec handling.
6012 (syscall_is_exec): Likewise.
6013 (procfs_set_exec_trap): Likewise.
6014
6015 (syscall_is_lwp_exit): Inline in callers.
6016 (syscall_is_exit): Likewise.
6017 (syscall_is_exec): Likewise.
6018 (syscall_is_lwp_create): Likewise.
6019
6020 (invalidate_cache): Remove #if 0 code.
6021
6022 (make_signal_thread_runnable): Remove.
6023 (procfs_target::resume): Remove #if 0 code.
6024
cf6f3e86
RO
60252020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6026
6027 PR gdb/25939
6028 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6029 call ...
6030 (procfs_target::create_inferior): ... here.
6031
48e9cc84
PW
60322020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6033
6034 * exec.c (validate_exec_file): Ensure the build-id is up to
6035 date by calling reopen_exec_file (that checks file timestamp
6036 to decide to re-read the file).
6037
3922b302
PA
60382020-06-18 Pedro Alves <palves@redhat.com>
6039
6040 PR gdb/25412
6041 * gdbthread.h (delete_thread, delete_thread_silent)
6042 (find_thread_ptid): Update comments.
6043 * thread.c (current_thread_): New global.
6044 (is_current_thread): Move higher, and reimplement.
6045 (inferior_thread): Reimplement.
6046 (set_thread_exited): Use bool. Add assertions.
6047 (add_thread_silent): Simplify thread-reuse handling by always
6048 calling delete_thread.
6049 (delete_thread): Remove intro comment.
6050 (find_thread_ptid): Skip exited threads.
6051 (switch_to_thread_no_regs): Write to current_thread_.
6052 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6053 INFERIOR_PTID. Clear current_thread_.
6054
6dbdab44
PA
60552020-06-18 Pedro Alves <palves@redhat.com>
6056
6057 * aix-thread.c (pd_update): Use switch_to_thread.
6058
2da4b788
PA
60592020-06-18 Pedro Alves <palves@redhat.com>
6060
6061 * ravenscar-thread.c (ravenscar_thread_target): Update.
6062 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6063 (ravenscar_thread_target::add_active_thread): ... this. Don't
6064 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6065 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6066
50838d1b
PA
60672020-06-18 Pedro Alves <palves@redhat.com>
6068
6069 * nat/windows-nat.c (current_windows_thread): Remove.
6070 * nat/windows-nat.h (current_windows_thread): Remove.
6071 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6072 Adjust.
6073 (display_selectors): Adjust to fetch the current
6074 windows_thread_info based on inferior_ptid.
6075 (fake_create_process): No longer write to current_windows_thread.
6076 (windows_nat_target::get_windows_debug_event):
6077 Don't set inferior_ptid or current_windows_thread.
6078 (windows_nat_target::wait): Adjust to not rely on
6079 current_windows_thread.
6080 (do_initial_windows_stuff): Now a method of windows_nat_target.
6081 Switch to the last_ptid thread.
6082 (windows_nat_target::attach): Adjust.
6083 (windows_nat_target::detach): Use switch_to_no_thread instead of
6084 writing to inferior_ptid directly.
6085 (windows_nat_target::create_inferior): Adjust.
6086
31ce04e9
PA
60872020-06-18 Pedro Alves <palves@redhat.com>
6088
6089 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6090
1ee1a363
PA
60912020-06-18 Pedro Alves <palves@redhat.com>
6092
6093 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6094 after creating it, instead of writing to inferior_ptid. Don't
6095 write to inferior_ptid.
6096
6d350754
PA
60972020-06-18 Pedro Alves <palves@redhat.com>
6098
6099 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6100
5d971d48
PA
61012020-06-18 Pedro Alves <palves@redhat.com>
6102
6103 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6104 it, instead of writing to inferior_ptid.
6105
86e57d1b
PA
61062020-06-18 Pedro Alves <palves@redhat.com>
6107
6108 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6109 to inferior_ptid.
6110
f2e1c129
PA
61112020-06-18 Pedro Alves <palves@redhat.com>
6112
6113 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6114 instead of writing to inferior_ptid directly.
6115
60db1b85
PA
61162020-06-18 Pedro Alves <palves@redhat.com>
6117
6118 * corelow.c (core_target::close): Use switch_to_no_thread instead
6119 of writing to inferior_ptid directly.
6120 (add_to_thread_list, core_target_open): Use switch_to_thread
6121 instead of writing to inferior_ptid directly.
6122
fe7d6a8d
PA
61232020-06-18 Pedro Alves <palves@redhat.com>
6124
6125 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6126 inferior_ptid.
6127 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6128 inferior_ptid.
6129 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6130 inferior_ptid directly.
6131 (darwin_nat_target::init_thread_list): Switch to thread, instead
6132 of writing to inferior_ptid.
6133 (darwin_nat_target::attach): Don't write to inferior_ptid.
6134 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6135
975f8708
PA
61362020-06-18 Pedro Alves <palves@redhat.com>
6137
6138 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6139 thread.
6140 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6141 Instead use switch_to_thread.
6142 (gnu_nat_target::detach): Use switch_to_no_thread
6143 instead of writing to inferior_ptid directly. Used passed-in
6144 inferior instead of looking up the inferior by pid.
6145
1a204730
PA
61462020-06-18 Pedro Alves <palves@redhat.com>
6147
6148 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6149 inferior_ptid.
6150
ebe84f23
PA
61512020-06-18 Pedro Alves <palves@redhat.com>
6152
6153 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6154 inferior_ptid.
6155 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6156 thread.
6157 (nto_procfs_target::detach): Avoid referencing
6158 inferior_ptid. Use switch_to_no_thread instead of writing to
6159 inferior_ptid directly.
6160 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6161 instead of writing to inferior_ptid directly.
6162 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6163 to thread.
6164
191f02e5
PA
61652020-06-18 Pedro Alves <palves@redhat.com>
6166
6167 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6168 after creating it, instead of writing to inferior_ptid.
6169 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6170 to inferior_ptid directly.
6171 (gdbsim_target::wait): Don't write to inferior_ptid.
6172
0ac55310
PA
61732020-06-18 Pedro Alves <palves@redhat.com>
6174
6175 * remote.c (remote_target::remote_notice_new_inferior): Use
6176 switch_to_thread instead of writing to inferior_ptid directly.
6177 (remote_target::add_current_inferior_and_thread): Use
6178 switch_to_no_thread instead of writing to inferior_ptid directly.
6179 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6180 and switch_to_thread instead of using set_current_inferior or
6181 writing to inferior_ptid directly.
6182
5233f39b
PA
61832020-06-18 Pedro Alves <palves@redhat.com>
6184
6185 * tracectf.c (ctf_target_open): Switch to added thread instead of
6186 writing to inferior_ptid directly.
6187 (ctf_target::close): Use switch_to_no_thread instead of writing to
6188 inferior_ptid directly.
6189
087e161b
PA
61902020-06-18 Pedro Alves <palves@redhat.com>
6191
6192 * tracefile-tfile.c (tfile_target_open): Don't write to
6193 inferior_ptid directly, instead switch to added thread.
6194 (tfile_target::close): Use switch_to_no_thread instead of writing
6195 to inferior_ptid directly.
6196
7fb43e53
PA
61972020-06-18 Pedro Alves <palves@redhat.com>
6198
6199 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6200 (procfs_target::detach): Use switch_to_no_thread
6201 instead of writing to inferior_ptid directly.
6202 (do_attach): Change return type to void. Switch to the added
6203 thread.
6204 (procfs_target::create_inferior): Switch to the added thread.
6205 (procfs_do_thread_registers): Don't write to inferior_ptid.
6206
18493a00
PA
62072020-06-18 Pedro Alves <palves@redhat.com>
6208
6209 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6210 of writing to inferior_ptid.
6211 (scoped_restore_exited_inferior): Delete.
6212 (handle_vfork_child_exec_or_exit): Simplify using
6213 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6214 instead of writing to inferior_ptid.
6215 (THREAD_STOPPED_BY): Delete.
6216 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6217 (thread_stopped_by_hw_breakpoint): Delete.
6218 (save_waitstatus): Use
6219 scoped_restore_current_thread+switch_to_thread, and call
6220 target_stopped_by_watchpoint instead of
6221 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6222 instead of thread_stopped_by_sw_breakpoint, and
6223 target_stopped_by_hw_breakpoint instead of
6224 thread_stopped_by_hw_breakpoint.
6225 (handle_inferior_event)
6226 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6227 inferior_ptid directly, nor
6228 set_current_inferior/set_current_program_space. Use
6229 switch_to_thread / switch_to_inferior_no_thread instead.
6230
a0776b13
PA
62312020-06-18 Pedro Alves <palves@redhat.com>
6232
6233 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6234 instead of writing to inferior_ptid.
6235
6155c136
PA
62362020-06-18 Pedro Alves <palves@redhat.com>
6237
6238 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6239 added thread.
6240 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6241 to the added thread.
6242 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6243 instead of writing to inferior_ptid.
6244
c5316fc6
PA
62452020-06-18 Pedro Alves <palves@redhat.com>
6246
6247 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6248 (register_to_value_test): Mock a program_space too. Heap-allocate
6249 the address space. Don't write to inferior_ptid. Use
6250 switch_to_thread instead.
6251
8df01799
PA
62522020-06-18 Pedro Alves <palves@redhat.com>
6253
6254 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6255 Delete.
6256 (find_signalled_thread()): New, factored out from
6257 linux_make_corefile_notes and adjusted to handle exited threads.
6258 (linux_make_corefile_notes): Adjust to use the new
6259 find_signalled_thread.
6260
41792d68
PA
62612020-06-18 Pedro Alves <palves@redhat.com>
6262
6263 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6264 of saving/restoring inferior_ptid.
6265
612f258a
TT
62662020-06-17 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6269 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6270 declare.
6271 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6272
efb763a5
SM
62732020-06-15 Simon Marchi <simon.marchi@efficios.com>
6274
6275 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6276 of partial symtabs.
6277
2951f6c0
SM
62782020-06-17 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * regformats/reg-arm.dat: Remove.
6281 * regformats/reg-bfin.dat: Remove.
6282 * regformats/reg-cris.dat: Remove.
6283 * regformats/reg-crisv32.dat: Remove.
6284 * regformats/reg-m32r.dat: Remove.
6285 * regformats/reg-tilegx.dat: Remove.
6286 * regformats/reg-tilegx32.dat: Remove.
6287
7d458ea5
SM
62882020-06-17 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * features/Makefile (WHICH): Remove arm files.
6291 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6292 * regformats/arm/arm-with-neon.dat: Remove.
6293 * regformats/arm/arm-with-vfpv2.dat: Remove.
6294 * regformats/arm/arm-with-vfpv3.dat: Remove.
6295
3af96c0d
SM
62962020-06-17 Simon Marchi <simon.marchi@efficios.com>
6297
6298 * features/Makefile (XMLTOC): Remove rx.xml.
6299
b25e22fd
PA
63002020-06-17 Pedro Alves <palves@redhat.com>
6301
6302 * gdbthread.h (thread_control_state) <trap_expected> Update
6303 comments.
6304
a78a19b1
AB
63052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6306
6307 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6308 ada_language::lookup_symbol_nonlocal.
6309 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6310 (ada_language::lookup_symbol_nonlocal): New member function,
6311 implementation from ada_lookup_symbol_nonlocal.
6312 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6313 initializer.
6314 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6315 initializer.
6316 (cplus_language::lookup_symbol_nonlocal): New member function.
6317 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6318 (minimal_language_data) Likewise.
6319 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6320 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6321 initializer.
6322 (d_language::lookup_symbol_nonlocal): New member function.
6323 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6324 initializer.
6325 (f_language::lookup_symbol_nonlocal): New member function.
6326 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6327 initializer.
6328 * language.c (unknown_language_data): Likewise.
6329 (auto_language_data): Likewise.
6330 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6331 field.
6332 (language_defn::lookup_symbol_nonlocal): New member function.
6333 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6334 initializer.
6335 * objc-lang.c (objc_language_data): Likewise.
6336 * opencl-lang.c (opencl_language_data): Likewise.
6337 * p-lang.c (pascal_language_data): Likewise.
6338 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6339 rust_language::lookup_symbol_nonlocal.
6340 (rust_language_data): Delete la_lookup_symbol_nonlocal
6341 initializer.
6342 (rust_language::lookup_symbol_nonlocal): New member function,
6343 implementation from rust_lookup_symbol_nonlocal.
6344 * symtab.c (lookup_symbol_aux): Update call to
6345 lookup_symbol_nonlocal.
6346 (basic_lookup_symbol_nonlocal): Rename to...
6347 (language_defn::lookup_symbol_nonlocal): ...this, and update
6348 header comment. Remove language_defn parameter, and replace with
6349 uses of `this'.
6350 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6351
ebe2334e
AB
63522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6353
6354 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6355 initializer.
6356 (ada_language::value_print_inner): New member function.
6357 * c-lang.c (c_language_data): Delete la_value_print_inner
6358 initializer.
6359 (cplus_language_data): Likewise.
6360 (asm_language_data): Likewise.
6361 (minimal_language_data): Likewise.
6362 * d-lang.c (d_language_data): Likewise.
6363 (d_language::value_print_inner): New member function.
6364 * f-lang.c (f_language_data): Delete la_value_print_inner
6365 initializer.
6366 (f_language::value_print_inner): New member function.
6367 * f-lang.h (f_value_print_innner): Rename to...
6368 (f_value_print_inner): ...this (note spelling of 'inner').
6369 * f-valprint.c (f_value_print_innner): Rename to...
6370 (f_value_print_inner): ...this (note spelling of 'inner').
6371 * go-lang.c (go_language_data): Delete la_value_print_inner
6372 initializer.
6373 (go_language::value_print_inner): New member function.
6374 * language.c (language_defn::value_print_inner): Define new member
6375 function.
6376 (unk_lang_value_print_inner): Delete.
6377 (unknown_language_data): Delete la_value_print_inner initializer.
6378 (unknown_language::value_print_inner): New member function.
6379 (auto_language_data): Delete la_value_print_inner initializer.
6380 (auto_language::value_print_inner): New member function.
6381 * language.h (language_data): Delete la_value_print_inner field.
6382 (language_defn::value_print_inner): Delcare new member function.
6383 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6384 initializer.
6385 (m2_language::value_print_inner): New member function.
6386 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6387 initializer.
6388 * opencl-lang.c (opencl_language_data): Likewise.
6389 * p-lang.c (pascal_language_data): Likewise.
6390 (pascal_language::value_print_inner): New member function.
6391 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6392 initializer.
6393 (rust_language::value_print_inner): New member function.
6394 * valprint.c (do_val_print): Update call to value_print_inner.
6395
a1d1fa3e
AB
63962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6397
6398 * ada-lang.c (ada_language_data): Delete la_value_print
6399 initializer.
6400 (ada_language::value_print): New member function.
6401 * c-lang.c (c_language_data): Delete la_value_print initializer.
6402 (cplus_language_data): Likewise.
6403 (asm_language_data): Likewise.
6404 (minimal_language_data): Likewise.
6405 * d-lang.c (d_language_data): Likewise.
6406 * f-lang.c (f_language_data): Likewise.
6407 * go-lang.c (go_language_data): Likewise.
6408 * language.c (unk_lang_value_print): Delete.
6409 (language_defn::value_print): Define new member function.
6410 (unknown_language_data): Delete la_value_print initializer.
6411 (unknown_language::value_print): New member function.
6412 (auto_language_data): Delete la_value_print initializer.
6413 (auto_language::value_print): New member function.
6414 * language.h (language_data): Delete la_value_print field.
6415 (language_defn::value_print): Declare new member function.
6416 (LA_VALUE_PRINT): Update call to value_print.
6417 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6418 * objc-lang.c (objc_language_data): Likewise.
6419 * opencl-lang.c (opencl_language_data): Likewise.
6420 * p-lang.c (pascal_language_data): Likewise.
6421 (pascal_language::value_print): New member function.
6422 * rust-lang.c (rust_language_data): Delete la_value_print
6423 initializer.
6424
f16a9f57
AB
64252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6426
6427 * ada-lang.c (ada_watch_location_expression): Rename to
6428 ada_language::watch_location_expression.
6429 (ada_language_data): Delete la_watch_location_expression
6430 initializer.
6431 (ada_language::watch_location_expression): New member function,
6432 implementation from ada_watch_location_expression.
6433 * breakpoint.c (watch_command_1): Update call to
6434 watch_location_expression.
6435 * c-lang.c (c_watch_location_expression): Rename to
6436 language_defn::watch_location_expression.
6437 (c_language_data): Delete la_watch_location_expression
6438 initializer.
6439 (cplus_language_data): Likewise.
6440 (asm_language_data): Likewise.
6441 (minimal_language_data): Likewise.
6442 * c-lang.h (c_watch_location_expression): Delete declaration.
6443 * d-lang.c (d_language_data): Delete la_watch_location_expression
6444 initializer.
6445 * f-lang.c (f_language_data): Likewise.
6446 * go-lang.c (go_language_data): Likewise.
6447 * language.c (language_defn::watch_location_expression): Member
6448 function implementation from c_watch_location_expression.
6449 (unknown_language_data): Delete la_watch_location_expression
6450 initializer.
6451 (auto_language_data): Likewise.
6452 * language.h (language_data): Delete la_watch_location_expression
6453 field.
6454 (language_defn::watch_location_expression): Declare new member
6455 function.
6456 * m2-lang.c (m2_language_data): Delete
6457 la_watch_location_expression initializer.
6458 * objc-lang.c (objc_language_data): Likewise.
6459 * opencl-lang.c (opencl_language_data): Likewise.
6460 * p-lang.c (pascal_language_data): Likewise.
6461 * rust-lang.c (rust_watch_location_expression): Rename to
6462 rust_language::watch_location_expression.
6463 (rust_language_data): Delete la_watch_location_expression
6464 initializer.
6465 (rust_language::watch_location_expression): New member function,
6466 implementation from rust_watch_location_expression.
6467
7e56227d
AB
64682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6469
6470 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6471 ada_language::collect_symbol_completion_matches.
6472 (ada_language_data): Delete la_collect_symbol_completion_matches
6473 initializer.
6474 (ada_language::collect_symbol_completion_matches): New member
6475 function, implementation from
6476 ada_collect_symbol_completion_matches.
6477 * c-lang.c (c_language_data): Delete
6478 la_collect_symbol_completion_matches initializer.
6479 (cplus_language_data): Likewise.
6480 (asm_language_data): Likewise.
6481 (minimal_language_data): Likewise.
6482 * d-lang.c (d_language_data): Likewise.
6483 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6484 f_language::collect_symbol_completion_matches.
6485 (f_language_data): Delete la_collect_symbol_completion_matches
6486 initializer.
6487 (f_language::collect_symbol_completion_matches) New member
6488 function, implementation from f_collect_symbol_completion_matches.
6489 * go-lang.c (go_language_data): Delete
6490 la_collect_symbol_completion_matches initializer.
6491 * language.c (unknown_language_data): Likewise.
6492 (auto_language_data): Likewise.
6493 * language.h (language_data): Delete
6494 la_collect_symbol_completion_matches field.
6495 (language_defn::collect_symbol_completion_matches): New member
6496 function.
6497 * m2-lang.c (m2_language_data): Delete
6498 la_collect_symbol_completion_matches initializer.
6499 * objc-lang.c (objc_language_data): Likewise.
6500 * opencl-lang.c (opencl_language_data): Likewise.
6501 * p-lang.c (pascal_language_data): Likewise.
6502 * rust-lang.c (rust_language_data): Likewise.
6503 * symtab.c (default_collect_symbol_completion_matches): Delete.
6504 (collect_symbol_completion_matches): Update call to
6505 collect_symbol_completion_matches.
6506 (collect_symbol_completion_matches_type): Likewise.
6507 * symtab.h (default_collect_symbol_completion_matches): Delete
6508 declaration.
6509
53fc67f8
AB
65102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6511
6512 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6513 (ada_language_data): Delete la_word_break_characters initializer.
6514 (ada_language::word_break_characters): New member function.
6515 * c-lang.c (c_language_data): Delete la_word_break_characters
6516 initializer.
6517 (cplus_language_data): Likewise.
6518 (asm_language_data): Likewise.
6519 (minimal_language_data): Likewise.
6520 * completer.c: Update global comment.
6521 (advance_to_expression_complete_word_point): Update call to
6522 word_break_characters.
6523 (complete_files_symbols): Likewise.
6524 (complete_line_internal_1): Likewise.
6525 (default_completer_handle_brkchars): Likewise.
6526 (skip_quoted_chars): Likewise.
6527 * d-lang.c (d_language_data): Delete la_word_break_characters
6528 initializer.
6529 * f-lang.c (f_word_break_characters): Delete.
6530 (f_language_data): Delete la_word_break_characters initializer.
6531 (f_language::word_break_characters): New member function.
6532 * go-lang.c (go_language_data): Delete la_word_break_characters
6533 initializer.
6534 * language.c (unknown_language_data): Likewise.
6535 (auto_language_data): Likewise.
6536 * language.h (default_word_break_characters): Move declaration to
6537 earlier in the file.
6538 (language_data): Delete la_word_break_characters field.
6539 (language_defn::word_break_characters): New member function.
6540 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6541 initializer.
6542 * objc-lang.c (objc_language_data): Likewise.
6543 * opencl-lang.c (opencl_language_data): Likewise.
6544 * p-lang.c (pascal_language_data): Likewise.
6545 * rust-lang.c (rust_language_data): Likewise.
6546
c9debfb9
AB
65472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6548
6549 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6550 (ada_language_data): Delete la_get_symbol_name_matcher
6551 initializer.
6552 (language_defn::get_symbol_name_matcher_inner): New member
6553 function.
6554 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6555 initializer.
6556 (cplus_language_data): Likewise.
6557 (cplus_language::get_symbol_name_matcher_inner): New member
6558 function.
6559 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6560 (minimal_language_data): Likewise.
6561 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6562 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6563 initializer.
6564 * dictionary.c (iter_match_first_hashed): Update call to
6565 get_symbol_name_matcher.
6566 (iter_match_next_hashed): Likewise.
6567 (iter_match_next_linear): Likewise.
6568 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6569 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6570 initializer.
6571 (f_language::get_symbol_name_matcher_inner): New member function.
6572 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6573 initializer.
6574 * language.c (default_symbol_name_matcher): Update header comment,
6575 make static.
6576 (language_defn::get_symbol_name_matcher): New definition.
6577 (language_defn::get_symbol_name_matcher_inner): Likewise.
6578 (get_symbol_name_matcher): Delete.
6579 (unknown_language_data): Delete la_get_symbol_name_matcher
6580 initializer.
6581 (auto_language_data): Likewise.
6582 * language.h (language_data): Delete la_get_symbol_name_matcher
6583 field.
6584 (language_defn::get_symbol_name_matcher): New member function.
6585 (language_defn::get_symbol_name_matcher_inner): Likewise.
6586 (default_symbol_name_matcher): Delete declaration.
6587 * linespec.c (find_methods): Update call to
6588 get_symbol_name_matcher.
6589 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6590 initializer.
6591 * minsyms.c (lookup_minimal_symbol): Update call to
6592 get_symbol_name_matcher.
6593 (iterate_over_minimal_symbols): Likewise.
6594 * objc-lang.c (objc_language_data): Delete
6595 la_get_symbol_name_matcher initializer.
6596 * opencl-lang.c (opencl_language_data): Likewise.
6597 * p-lang.c (pascal_language_data): Likewise.
6598 * psymtab.c (psymbol_name_matches): Update call to
6599 get_symbol_name_matcher.
6600 * rust-lang.c (rust_language_data): Delete
6601 la_get_symbol_name_matcher initializer.
6602 * symtab.c (symbol_matches_search_name): Update call to
6603 get_symbol_name_matcher.
6604 (compare_symbol_name): Likewise.
6605
9a49ad8c
AB
66062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6607
6608 * ada-lang.c (ada_language_data): Delete la_compute_program
6609 initializer.
6610 * c-lang.c (c_language_data): Likewise.
6611 (c_language::compute_program): New member function.
6612 (cplus_language_data): Delete la_compute_program initializer.
6613 (cplus_language::compute_program): New member function.
6614 (asm_language_data): Delete la_compute_program initializer.
6615 (minimal_language_data): Likewise.
6616 * c-lang.h (c_compute_program): Update comment.
6617 (cplus_compute_program): Likewise.
6618 * compile/compile-c-support.c (c_compute_program): Likewise.
6619 (cplus_compute_program): Likewise.
6620 * compile/compile.c (compile_to_object): Update call to
6621 la_compute_program.
6622 * d-lang.c (d_language_data): Delete la_compute_program
6623 initializer.
6624 * f-lang.c (f_language_data): Likewise.
6625 * go-lang.c (go_language_data): Likewise.
6626 * language.c (unknown_language_data): Likewise.
6627 (auto_language_data): Likewise.
6628 * language.h (language_data): Delete la_compute_program field.
6629 (language_defn::compute_program): New member function.
6630 * m2-lang.c (m2_language_data): Delete la_compute_program
6631 initializer.
6632 * objc-lang.c (objc_language_data): Likewise.
6633 * opencl-lang.c (opencl_language_data): Likewise.
6634 * p-lang.c (pascal_language_data): Likewise.
6635 * rust-lang.c (rust_language_data): Likewise.
6636
eff93b4d
AB
66372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6638
6639 * ada-lang.c (ada_language_data) Delete
6640 la_class_name_from_physname initializer.
6641 * c-lang.c (c_language_data): Likewise.
6642 (cplus_language_data): Likewise.
6643 (cplus_language::class_name_from_physname): New member function.
6644 (asm_language_data): Delete la_class_name_from_physname
6645 initializer.
6646 (minimal_language_data): Likewise.
6647 * d-lang.c (d_language_data): Likewise.
6648 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6649 method on language_defn class.
6650 (guess_full_die_structure_name): Likewise.
6651 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6652 initializer.
6653 * go-lang.c (go_language_data): Likewise.
6654 * language.c (language_class_name_from_physname): Delete.
6655 (unk_lang_class_name): Delete.
6656 (unknown_language_data): Delete la_class_name_from_physname
6657 initializer.
6658 (auto_language_data): Likewise.
6659 * language.h (language_data): Delete la_class_name_from_physname
6660 field.
6661 (language_defn::class_name_from_physname): New function.
6662 (language_class_name_from_physname): Delete declaration.
6663 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6664 initializer.
6665 * objc-lang.c (objc_language_data): Likewise.
6666 * opencl-lang.c (opencl_language_data): Likewise.
6667 * p-lang.c (pascal_language_data): Likewise.
6668 * rust-lang.c (rust_language_data): Likewise.
6669
de543742
TT
66702020-06-16 Tom Tromey <tom@tromey.com>
6671
6672 * tui/tui-data.h (STATUS_NAME): New macro.
6673 * tui/tui-layout.c (tui_remove_some_windows)
6674 (initialize_known_windows, tui_register_window)
6675 (tui_layout_split::remove_windows, initialize_layouts)
6676 (tui_new_layout_command): Don't use hard-coded window names.
6677
a350efd4
TT
66782020-06-16 Tom Tromey <tom@tromey.com>
6679
6680 PR tui/25348:
6681 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6682 tui_initialize_readline. Only run once. Call rl_initialize.
6683 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6684 tui_initialize_readline.
6685 * tui/tui-io.c (tui_setup_io): Call
6686 tui_ensure_readline_initialized.
6687 * tui/tui-interp.c (tui_interp::init): Update.
6688
39ec0490
TT
66892020-06-16 Tom Tromey <tom@tromey.com>
6690
6691 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6692 Also preserve the status window.
6693
d2d1ea20
TT
66942020-06-16 Tom Tromey <tom@tromey.com>
6695
6696 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6697 where m_window==nullptr.
6698
66920317
TT
66992020-06-15 Tom Tromey <tromey@adacore.com>
6700
6701 * windows-nat.c (windows_nat::handle_output_debug_string):
6702 Update.
6703 (windows_nat::handle_ms_vc_exception): Update.
6704 * target.h (target_read_string): Change API.
6705 * target.c (target_read_string): Change API.
6706 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6707 Update.
6708 * solib-frv.c (frv_current_sos): Update.
6709 * solib-dsbt.c (dsbt_current_sos): Update.
6710 * solib-darwin.c (darwin_current_sos): Update.
6711 * linux-thread-db.c (inferior_has_bug): Update.
6712 * expprint.c (print_subexp_standard): Update.
6713 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6714 (ada_exception_message_1): Update.
6715
a5d871dd
TT
67162020-06-15 Tom Tromey <tromey@adacore.com>
6717
6718 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6719
670e35fa
TT
67202020-06-15 Tom Tromey <tromey@adacore.com>
6721
6722 * valprint.c (read_string): Update comment.
6723 * target.c (MIN): Remove.
6724 (target_read_string): Rewrite.
6725
f5272a3b
TT
67262020-06-15 Tom Tromey <tromey@adacore.com>
6727
6728 * corefile.c (read_memory_string): Remove.
6729 * ada-valprint.c (ada_value_print_ptr): Update.
6730 * ada-lang.h (ada_tag_name): Change return type.
6731 * ada-lang.c (type_from_tag): Update.
6732 (ada_tag_name_from_tsd): Change return type. Use
6733 target_read_string.
6734 (ada_tag_name): Likewise.
6735 * gdbcore.h (read_memory_string): Don't declare.
6736
2c074f49
HD
67372020-06-14 Hannes Domani <ssbssa@yahoo.de>
6738
6739 * symtab.c (rbreak_command): Ignore Windows drive colon.
6740
6a17d503
SM
67412020-06-12 Simon Marchi <simon.marchi@efficios.com>
6742
6743 * NEWS: Mention removed GDBserver host support.
6744
453c733f
NC
67452020-06-12 Nelson Chu <nelson.chu@sifive.com>
6746
6747 * features/riscv/rebuild-csr-xml.sh: Updated.
6748
2b4e6a3f
TT
67492020-06-11 Tom Tromey <tom@tromey.com>
6750
6751 PR gdb/18318:
6752 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6753
4412332f
JG
67542020-06-09 Jonny Grant <jg@jguk.org>
67552020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6756
6757 * main.c (captured_main_1): Don't print new line after help.
6758 (print_gdb_help): add mailing list and IRC channel information
6759 to --help. Add new lines between items in the footer. Remove
6760 quotes around bug url.
6761
2f33032a
KS
67622020-06-11 Keith Seitz <keiths@redhat.com>
6763
6764 PR gdb/21356
6765 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6766 Resolve typedefs for type length calculations.
6767
7ab96794
TV
67682020-06-10 Tom de Vries <tdevries@suse.de>
6769
6770 PR ada/24713
6771 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6772 (write_psymbols): Enable .gdb_index for ada.
6773 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6774 ada.
6775
e5f3ece2
TV
67762020-06-10 Tom de Vries <tdevries@suse.de>
6777
6778 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6779 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6780 namei" instead of "const char *name" argument.
6781 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6782 dw2_symtab_iter_init.
6783
940da03e
SM
67842020-06-08 Simon Marchi <simon.marchi@efficios.com>
6785
6786 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6787 to use type::field and field::type instead.
6788
b6cdac4b
SM
67892020-06-08 Simon Marchi <simon.marchi@efficios.com>
6790
6791 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6792 to use field::type instead.
6793
5d14b6e5
SM
67942020-06-08 Simon Marchi <simon.marchi@efficios.com>
6795
6796 * gdbtypes.h (struct field) <type, set_type>: New methods.
6797 Rename `type` field to...
6798 <m_type>: ... this. Change references throughout to use type or
6799 set_type methods.
6800 (FIELD_TYPE): Use field::type. Change call sites that modify
6801 the field's type to use field::set_type instead.
6802
3d967001
SM
68032020-06-08 Simon Marchi <simon.marchi@efficios.com>
6804
6805 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6806 to use type::index_type instead.
6807
262abc0d
SM
68082020-06-08 Simon Marchi <simon.marchi@efficios.com>
6809
6810 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6811 methods.
6812 (TYPE_INDEX_TYPE): Use type::index_type.
6813 * gdbtypes.c (create_array_type_with_stride): Likewise.
6814
82836c92
TT
68152020-06-07 Tom Tromey <tom@tromey.com>
6816
6817 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6818 parameter.
6819 (generic_value_print): Update.
6820
940dace9
AB
68212020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6822
6823 Revert commit 982a38f60b0.
6824 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6825
982a38f6
AB
68262020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6827
6828 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6829 avoid use after free.
6830
82f06518
TV
68312020-06-05 Tom de Vries <tdevries@suse.de>
6832
6833 * NEWS: Fix typos.
6834
f8c41851
SM
68352020-06-04 Simon Marchi <simon.marchi@efficios.com>
6836
6837 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6838 the per_bfd object.
6839 (dwarf2_read_debug_names): Likewise.
6840 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6841 object when re-using a per_bfd object with an index.
6842
f9b5d5ea
TV
68432020-06-03 Tom de Vries <tdevries@suse.de>
6844
6845 PR symtab/26046
6846 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6847 children for C++.
6848 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6849 DW_TAG_subprogram.
6850
f6eee2d0
AB
68512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6852
6853 * ada-lang.c (ada_language_data): Delete skip_trampoline
6854 initializer.
6855 * c-lang.c (c_language_data): Likewise.
6856 (cplus_language_data): Likewise.
6857 (cplus_language::skip_trampoline): New member function.
6858 (asm_language_data): Delete skip_trampoline initializer.
6859 (minimal_language_data): Likewise.
6860 * d-lang.c (d_language_data): Likewise.
6861 * f-lang.c (f_language_data): Likewise.
6862 * go-lang.c (go_language_data): Likewise.
6863 * language.c (unk_lang_trampoline): Delete function.
6864 (skip_language_trampoline): Update.
6865 (unknown_language_data): Delete skip_trampoline initializer.
6866 (auto_language_data): Likewise.
6867 * language.h (language_data): Delete skip_trampoline field.
6868 (language_defn::skip_trampoline): New function.
6869 * m2-lang.c (m2_language_data): Delete skip_trampoline
6870 initializer.
6871 * objc-lang.c (objc_skip_trampoline): Delete function, move
6872 implementation to objc_language::skip_trampoline.
6873 (objc_language_data): Delete skip_trampoline initializer.
6874 (objc_language::skip_trampoline): New member function with
6875 implementation from objc_skip_trampoline.
6876 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6877 initializer.
6878 * p-lang.c (pascal_language_data): Likewise.
6879 * rust-lang.c (rust_language_data): Likewise.
6880
0a50df5d
AB
68812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6882
6883 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6884 (ada_language::demangle): New member function.
6885 * c-lang.c (c_language_data): Delete la_demangle initializer.
6886 (cplus_language_data): Delete la_demangle initializer.
6887 (cplus_language::demangle): New member function.
6888 (asm_language_data): Delete la_demangle initializer.
6889 (minimal_language_data): Delete la_demangle initializer.
6890 * d-lang.c (d_language_data): Delete la_demangle initializer.
6891 (d_language::demangle): New member function.
6892 * f-lang.c (f_language_data): Delete la_demangle initializer.
6893 (f_language::demangle): New member function.
6894 * go-lang.c (go_language_data): Delete la_demangle initializer.
6895 (go_language::demangle): New member function.
6896 * language.c (language_demangle): Update.
6897 (unk_lang_demangle): Delete.
6898 (unknown_language_data): Delete la_demangle initializer.
6899 (unknown_language::demangle): New member function.
6900 (auto_language_data): Delete la_demangle initializer.
6901 (auto_language::demangle): New member function.
6902 * language.h (language_data): Delete la_demangle field.
6903 (language_defn::demangle): New function.
6904 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6905 * objc-lang.c (objc_language_data): Delete la_demangle
6906 initializer.
6907 (objc_language::demangle): New member function.
6908 * opencl-lang.c (opencl_language_data): Delete la_demangle
6909 initializer.
6910 * p-lang.c (pascal_language_data): Likewise.
6911 * rust-lang.c (rust_language_data): Likewise.
6912 (rust_language::demangle): New member function.
6913
fbfb0a46
AB
69142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 * ada-lang.c (ada_language_data): Delete la_print_type
6917 initializer.
6918 (ada_language::print_type): New member function.
6919 * c-lang.c (c_language_data): Delete la_print_type initializer.
6920 (c_language::print_type): New member function.
6921 (cplus_language_data): Delete la_print_type initializer.
6922 (cplus_language::print_type): New member function.
6923 (asm_language_data): Delete la_print_type initializer.
6924 (asm_language::print_type): New member function.
6925 (minimal_language_data): Delete la_print_type initializer.
6926 (minimal_language::print_type): New member function.
6927 * d-lang.c (d_language_data): Delete la_print_type initializer.
6928 (d_language::print_type): New member function.
6929 * f-lang.c (f_language_data): Delete la_print_type initializer.
6930 (f_language::print_type): New member function.
6931 * go-lang.c (go_language_data): Delete la_print_type initializer.
6932 (go_language::print_type): New member function.
6933 * language.c (unk_lang_print_type): Delete.
6934 (unknown_language_data): Delete la_print_type initializer.
6935 (unknown_language::print_type): New member function.
6936 (auto_language_data): Delete la_print_type initializer.
6937 (auto_language::print_type): New member function.
6938 * language.h (language_data): Delete la_print_type field.
6939 (language_defn::print_type): New function.
6940 (LA_PRINT_TYPE): Update.
6941 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6942 (m2_language::print_type): New member function.
6943 * objc-lang.c (objc_language_data): Delete la_print_type
6944 initializer.
6945 (objc_language::print_type): New member function.
6946 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6947 to opencl_language::print_type.
6948 (opencl_language_data): Delete la_print_type initializer.
6949 (opencl_language::print_type): New member function, implementation
6950 from opencl_print_type.
6951 * p-lang.c (pascal_language_data): Delete la_print_type
6952 initializer.
6953 (pascal_language::print_type): New member function.
6954 * rust-lang.c (rust_print_type): Delete, implementation moved to
6955 rust_language::print_type.
6956 (rust_language_data): Delete la_print_type initializer.
6957 (rust_language::print_type): New member function, implementation
6958 from rust_print_type.
6959
6f827019
AB
69602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6961
6962 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6963 implementation moves to...
6964 (ada_language::sniff_from_mangled_name): ...here. Update return
6965 type.
6966 (ada_language_data): Delete la_sniff_from_mangled_name
6967 initializer.
6968 * c-lang.c (c_language_data): Likewise.
6969 (cplus_language_data): Likewise.
6970 (cplus_language::sniff_from_mangled_name): New member function,
6971 implementation taken from gdb_sniff_from_mangled_name.
6972 (asm_language_data): Delete la_sniff_from_mangled_name
6973 initializer.
6974 (minimal_language_data): Likewise.
6975 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6976 implementation moves to cplus_language::sniff_from_mangled_name.
6977 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6978 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6979 moves to...
6980 (d_language::sniff_from_mangled_name): ...here.
6981 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6982 * f-lang.c (f_language_data): Likewise.
6983 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6984 moves to...
6985 (go_language::sniff_from_mangled_name): ...here.
6986 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6987 * language.c (language_sniff_from_mangled_name): Delete.
6988 (unknown_language_data): Delete la_sniff_from_mangled_name
6989 initializer.
6990 (auto_language_data): Likewise.
6991 * language.h (language_data): Delete la_sniff_from_mangled_name
6992 field.
6993 (language_defn::sniff_from_mangled_name): New function.
6994 (language_sniff_from_mangled_name): Delete declaration.
6995 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6996 field.
6997 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6998 implementation moves to...
6999 (objc_language::sniff_from_mangled_name): ...here.
7000 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7001 * opencl-lang.c (opencl_language_data): Likewise.
7002 * p-lang.c (pascal_language_data): Likewise.
7003 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7004 implementation moves to...
7005 (rust_language::sniff_from_mangled_name): ...here.
7006 (rust_language_data): Delete la_sniff_from_mangled_name
7007 initializer.
7008 * symtab.c (symbol_find_demangled_name): Call
7009 sniff_from_mangled_name member function.
7010
fb8006fd
AB
70112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7014 initializer.
7015 * c-lang.c (c_language_data): Likewise.
7016 (cplus_language_data): Likewise.
7017 (cplus_language::search_name_hash): New member function.
7018 (asm_language_data): Delete la_search_name_hash initializer.
7019 (minimal_language_data): Likewise.
7020 * d-lang.c (d_language_data): Likewise.
7021 * dictionary.c (default_search_name_hash): Rename to...
7022 (language_defn::search_name_hash): ...this.
7023 * f-lang.c (f_language_data): Likewise.
7024 (f_language::search_name_hash): New member function.
7025 * go-lang.c (go_language_data): Delete la_search_name_hash
7026 initializer.
7027 * language.c (unknown_language_data): Likewise.
7028 (auto_language_data): Likewise.
7029 * language.h (struct language_data): Delete la_search_name_hash
7030 field.
7031 (language_defn::search_name_hash): Declare new member function.
7032 (default_search_name_hash): Delete declaration.
7033 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7034 initializer.
7035 * objc-lang.c (objc_language_data): Likewise.
7036 * opencl-lang.c (opencl_language_data): Likewise.
7037 * p-lang.c (pascal_language_data): Likewise.
7038 * rust-lang.c (rust_language_data): Likewise.
7039 * symtab.c (search_name_hash): Update call.
7040
8e25bafe
AB
70412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7042
7043 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7044 initializer.
7045 * c-lang.c (class compile_instance): Declare.
7046 (c_language_data): Delete la_get_compile_instance initializer.
7047 (c_language::get_compile_instance): New member function.
7048 (cplus_language_data): Delete la_get_compile_instance initializer.
7049 (cplus_language::get_compile_instance): New member function.
7050 (asm_language_data): Delete la_get_compile_instance initializer.
7051 (minimal_language_data): Likewise.
7052 * c-lang.h (c_get_compile_context): Update comment.
7053 (cplus_get_compile_context): Update comment.
7054 * compile/compile.c (compile_to_object): Update calls, don't rely
7055 on function pointer being NULL.
7056 * d-lang.c (d_language_data): Delete la_get_compile_instance
7057 initializer.
7058 * f-lang.c (f_language_data): Likewise.
7059 * go-lang.c (go_language_data): Likewise.
7060 * language.c (unknown_language_data): Likewise.
7061 (auto_language_data): Likewise.
7062 * language.h (language_data): Delete la_get_compile_instance field.
7063 (language_defn::get_compile_instance): New member function.
7064 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7065 initializer.
7066 * objc-lang.c (objc_language_data): Likewise.
7067 * opencl-lang.c (opencl_language_data): Likewise.
7068 * p-lang.c (pascal_language_data): Likewise.
7069 * rust-lang.c (rust_language_data): Likewise.
7070
4009ee92
AB
70712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * ada-lang.c (ada_add_all_symbols): Update comment.
7074 (ada_iterate_over_symbols): Delete, move implementation to...
7075 (ada_language::iterate_over_symbols): ...here, a new member
7076 function, rewrite to use range based for loop.
7077 (ada_language_data): Delete la_iterate_over_symbols initializer.
7078 * c-lang.c (c_language_data): Likewise.
7079 (cplus_language_data): Likewise.
7080 (asm_language_data): Likewise.
7081 (minimal_language_data): Likewise.
7082 * d-lang.c (d_language_data): Likewise.
7083 * f-lang.c (f_language_data): Likewise.
7084 * go-lang.c (go_language_data): Likewise.
7085 * language.c (unknown_language_data): Likewise.
7086 (auto_language_data): Likewise.
7087 * language.h (language_data): Delete la_iterate_over_symbols field.
7088 (language_defn::iterate_over_symbols): New member function.
7089 (LA_ITERATE_OVER_SYMBOLS): Update.
7090 * linespec.c (iterate_over_all_matching_symtabs): Update.
7091 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7092 initializer.
7093 * objc-lang.c (objc_language_data): Likewise.
7094 * opencl-lang.c (opencl_language_data): Likewise.
7095 * p-lang.c (pascal_language_data): Likewise.
7096 * rust-lang.c (rust_language_data): Likewise.
7097
54f4ca46
AB
70982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7099
7100 * ada-lang.c (ada_language_data): Delete
7101 la_lookup_transparent_type initializer.
7102 * c-lang.c (c_language_data): Likewise.
7103 (cplus_language_data): Likewise.
7104 (cplus_language::lookup_transparent_type): New member function.
7105 (asm_language_data): Delete la_lookup_transparent_type
7106 initializer.
7107 (minimal_language_data): Likewise.
7108 * d-lang.c (d_language_data): Likewise.
7109 * f-lang.c (f_language_data): Likewise.
7110 * go-lang.c (go_language_data): Likewise.
7111 * language.c (unknown_language_data): Likewise.
7112 (auto_language_data): Likewise.
7113 * language.h (struct language_data): Delete
7114 la_lookup_transparent_type field.
7115 (language_defn::lookup_transparent_type): New member function.
7116 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7117 initializer.
7118 * objc-lang.c (objc_language_data): Likewise.
7119 * opencl-lang.c (opencl_language_data): Likewise.
7120 * p-lang.c (pascal_language_data): Likewise.
7121 * rust-lang.c (rust_language_data): Likewise.
7122 * symtab.c (symbol_matches_domain): Update call.
7123
1fb314aa
AB
71242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7125
7126 * ada-lang.c (ada_language_arch_info): Delete function, move
7127 implementation to...
7128 (ada_language::language_arch_info): ...here, a new member
7129 function.
7130 (ada_language_data): Delete la_language_arch_info.
7131 * c-lang.c (c_language_data): Likewise.
7132 (c_language::language_arch_info): New member function.
7133 (cplus_language_arch_info): Delete function, move
7134 implementation to...
7135 (cplus_language::language_arch_info): ...here, a new member
7136 function.
7137 (cplus_language_data): Delete la_language_arch_info.
7138 (asm_language_data): Likewise.
7139 (asm_language::language_arch_info): New member function.
7140 (minimal_language_data): Delete la_language_arch_info.
7141 (minimal_language::language_arch_info): New member function.
7142 * d-lang.c (d_language_arch_info): Delete function, move
7143 implementation to...
7144 (d_language::language_arch_info): ...here, a new member
7145 function.
7146 (d_language_data): Delete la_language_arch_info.
7147 * f-lang.c (f_language_arch_info): Delete function, move
7148 implementation to...
7149 (f_language::language_arch_info): ...here, a new member
7150 function.
7151 (f_language_data): Delete la_language_arch_info.
7152 * go-lang.c (go_language_arch_info): Delete function, move
7153 implementation to...
7154 (go_language::language_arch_info): ...here, a new member
7155 function.
7156 (go_language_data): Delete la_language_arch_info.
7157 * language.c (unknown_language_data): Likewise.
7158 (unknown_language::language_arch_info): New member function.
7159 (auto_language_data): Delete la_language_arch_info.
7160 (auto_language::language_arch_info): New member function.
7161 (language_gdbarch_post_init): Update call to
7162 la_language_arch_info.
7163 * language.h (language_data): Delete la_language_arch_info
7164 function pointer.
7165 (language_defn::language_arch_info): New function.
7166 * m2-lang.c (m2_language_arch_info): Delete function, move
7167 implementation to...
7168 (m2_language::language_arch_info): ...here, a new member
7169 function.
7170 (m2_language_data): Delete la_language_arch_info.
7171 * objc-lang.c (objc_language_arch_info): Delete function, move
7172 implementation to...
7173 (objc_language::language_arch_info): ...here, a new member
7174 function.
7175 (objc_language_data): Delete la_language_arch_info.
7176 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7177 implementation to...
7178 (opencl_language::language_arch_info): ...here, a new member
7179 function.
7180 (opencl_language_data): Delete la_language_arch_info.
7181 * p-lang.c (pascal_language_arch_info): Delete function, move
7182 implementation to...
7183 (pascal_language::language_arch_info): ...here, a new member
7184 function.
7185 (pascal_language_data): Delete la_language_arch_info.
7186 * rust-lang.c (rust_language_arch_info): Delete function, move
7187 implementation to...
7188 (rust_language::language_arch_info): ...here, a new member
7189 function.
7190 (rust_language_data): Delete la_language_arch_info.
7191
48448202
AB
71922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7195 initializer.
7196 * c-lang.c (c_language_data): Likewise.
7197 (cplus_language_data): Likewise.
7198 (cplus_language::pass_by_reference_info): New method.
7199 (asm_language_data): Delete la_pass_by_reference initializer.
7200 (minimal_language_data): Likewise.
7201 * cp-abi.c (cp_pass_by_reference): Remove use of
7202 default_pass_by_reference.
7203 * d-lang.c (d_language_data): Likewise.
7204 * f-lang.c (f_language_data): Likewise.
7205 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7206 default_pass_by_reference.
7207 * go-lang.c (go_language_data): Likewise.
7208 * language.c (language_pass_by_reference): Update.
7209 (default_pass_by_reference): Delete.
7210 (unknown_language_data): Delete la_pass_by_reference
7211 initializer.
7212 (auto_language_data): Likewise.
7213 * language.h (struct language_data): Delete la_pass_by_reference
7214 field.
7215 (language_defn::pass_by_reference_info): New member function.
7216 (default_pass_by_reference): Delete declaration.
7217 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7218 initializer.
7219 * objc-lang.c (objc_language_data): Likewise.
7220 * opencl-lang.c (opencl_language_data): Likewise.
7221 * p-lang.c (pascal_language_data): Likewise.
7222 * rust-lang.c (rust_language_data): Likewise.
7223
15e5fd35
AB
72242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7225
7226 * ada-lang.c (ada_read_var_value): Delete function, move
7227 implementation to...
7228 (ada_language::read_var_value): ...here.
7229 (ada_language_data): Delete la_read_var_value initializer.
7230 * c-lang.c (c_language_data): Likewise.
7231 (cplus_language_data): Likewise.
7232 (minimal_language_data): Likewise.
7233 * d-lang.c (d_language_data): Likewise.
7234 * f-lang.c (f_language_data): Likewise.
7235 * findvar.c (default_read_var_value): Rename to...
7236 (language_defn::read_var_value): ...this.
7237 * findvar.c (read_var_value): Update header comment, and change to
7238 call member function instead of function pointer.
7239 * go-lang.c (go_language_data): Likewise.
7240 * language.c (unknown_language_data): Delete la_read_var_value
7241 initializer.
7242 (auto_language_data): Likewise.
7243 * language.h (struct language_data): Delete la_read_var_value
7244 field.
7245 (language_defn::read_var_value): New member function.
7246 (default_read_var_value): Delete declaration.
7247 * m2-lang.c (m2_language_data): Delete la_read_var_value
7248 initializer.
7249 * objc-lang.c (objc_language_data): Likewise.
7250 * opencl-lang.c (opencl_language_data): Likewise.
7251 * p-lang.c (pascal_language_data): Likewise.
7252 * rust-lang.c (rust_language_data): Likewise.
7253 * value.h (default_read_var_value): Delete declaration.
7254
5bd40f2a
AB
72552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7256
7257 * ada-lang.c (ada_print_array_index): Delete function, move
7258 implementation to...
7259 (ada_language::print_array_index): ...here.
7260 (ada_language_data): Delete la_print_array_index initializer.
7261 * c-lang.c (c_language_data): Likewise.
7262 (cplus_language_data): Likewise.
7263 (minimal_language_data): Likewise.
7264 * d-lang.c (d_language_data): Likewise.
7265 * f-lang.c (f_language_data): Likewise.
7266 * go-lang.c (go_language_data): Likewise.
7267 * language.c (default_print_array_index): Delete function, move
7268 implementation to...
7269 (language_defn::print_array_index): ...here.
7270 (unknown_language_data): Delete la_print_array_index initializer.
7271 (auto_language_data): Likewise.
7272 * language.h (struct language_data): Delete la_print_array_index
7273 field.
7274 (language_defn::print_array_index): New member function.
7275 (LA_PRINT_ARRAY_INDEX): Update.
7276 (default_print_array_index): Delete declaration.
7277 * m2-lang.c (m2_language_data): Delete la_print_array_index
7278 initializer.
7279 * objc-lang.c (objc_language_data): Likewise.
7280 * opencl-lang.c (opencl_language_data): Likewise.
7281 * p-lang.c (pascal_language_data): Likewise.
7282 * rust-lang.c (rust_language_data): Likewise.
7283
0874fd07
AB
72842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7285
7286 * gdb/ada-lang.c (ada_language_defn): Convert to...
7287 (ada_language_data): ...this.
7288 (class ada_language): New class.
7289 (ada_language_defn): New static global.
7290 * gdb/c-lang.c (c_language_defn): Convert to...
7291 (c_language_data): ...this.
7292 (class c_language): New class.
7293 (c_language_defn): New static global.
7294 (cplus_language_defn): Convert to...
7295 (cplus_language_data): ...this.
7296 (class cplus_language): New class.
7297 (cplus_language_defn): New static global.
7298 (asm_language_defn): Convert to...
7299 (asm_language_data): ...this.
7300 (class asm_language): New class.
7301 (asm_language_defn): New static global.
7302 (minimal_language_defn): Convert to...
7303 (minimal_language_data): ...this.
7304 (class minimal_language): New class.
7305 (minimal_language_defn): New static global.
7306 * gdb/d-lang.c (d_language_defn): Convert to...
7307 (d_language_data): ...this.
7308 (class d_language): New class.
7309 (d_language_defn): New static global.
7310 * gdb/f-lang.c (f_language_defn): Convert to...
7311 (f_language_data): ...this.
7312 (class f_language): New class.
7313 (f_language_defn): New static global.
7314 * gdb/go-lang.c (go_language_defn): Convert to...
7315 (go_language_data): ...this.
7316 (class go_language): New class.
7317 (go_language_defn): New static global.
7318 * gdb/language.c (unknown_language_defn): Remove declaration.
7319 (current_language): Initialize to nullptr, real initialization is
7320 moved to _initialize_language.
7321 (languages): Delete global.
7322 (language_defn::languages): Define.
7323 (set_language_command): Use language_defn::languages.
7324 (set_language): Likewise.
7325 (range_error): Likewise.
7326 (language_enum): Likewise.
7327 (language_def): Likewise.
7328 (add_set_language_command): Use language_def::languages for the
7329 language list, and language_def to lookup language pointers.
7330 (skip_language_trampoline): Use language_defn::languages.
7331 (unknown_language_defn): Convert to...
7332 (unknown_language_data): ...this.
7333 (class unknown_language): New class.
7334 (unknown_language_defn): New static global.
7335 (auto_language_defn): Convert to...
7336 (auto_language_data): ...this.
7337 (class auto_language): New class.
7338 (auto_language_defn): New static global.
7339 (language_gdbarch_post_init): Use language_defn::languages.
7340 (_initialize_language): Initialize current_language.
7341 * gdb/language.h (struct language_defn): Rename to...
7342 (struct language_data): ...this.
7343 (struct language_defn): New.
7344 (auto_language_defn): Delete.
7345 (unknown_language_defn): Delete.
7346 (minimal_language_defn): Delete.
7347 (ada_language_defn): Delete.
7348 (asm_language_defn): Delete.
7349 (c_language_defn): Delete.
7350 (cplus_language_defn): Delete.
7351 (d_language_defn): Delete.
7352 (f_language_defn): Delete.
7353 (go_language_defn): Delete.
7354 (m2_language_defn): Delete.
7355 (objc_language_defn): Delete.
7356 (opencl_language_defn): Delete.
7357 (pascal_language_defn): Delete.
7358 (rust_language_defn): Delete.
7359 * gdb/m2-lang.c (m2_language_defn): Convert to...
7360 (m2_language_data): ...this.
7361 (class m2_language): New class.
7362 (m2_language_defn): New static global.
7363 * gdb/objc-lang.c (objc_language_defn): Convert to...
7364 (objc_language_data): ...this.
7365 (class objc_language): New class.
7366 (objc_language_defn): New static global.
7367 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7368 (opencl_language_data): ...this.
7369 (class opencl_language): New class.
7370 (opencl_language_defn): New static global.
7371 * gdb/p-lang.c (pascal_language_defn): Convert to...
7372 (pascal_language_data): ...this.
7373 (class pascal_language): New class.
7374 (pascal_language_defn): New static global.
7375 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7376 language pointer, update comment format.
7377 * gdb/rust-lang.c (rust_language_defn): Convert to...
7378 (rust_language_data): ...this.
7379 (class rust_language): New class.
7380 (rust_language_defn): New static global.
7381
1313c56e
AB
73822020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7383
7384 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7385 member variable.
7386 <m_stmt_at_address>: New member variable.
7387 (lnp_state_machine::record_line): Don't record some lines, update
7388 tracking of is_stmt at the same address.
7389 (lnp_state_machine::lnp_state_machine): Initialise new member
7390 variables.
7391
b7ed9f3d
ST
73922020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7393
7394 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7395 "-include gnu-nat-mig.h".
7396 * gnu-nat-mig.h: New file.
7397 * gnu-nat.c: Include "gnu-nat-mig.h".
7398 (exc_server, msg_reply_server, notify_server,
7399 process_reply_server): Remove declarations.
7400
14a8ad62
ST
74012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7402
7403 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7404 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7405 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7406 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7407 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7408 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7409 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7410 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7411 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7412 to gnu_nat_target class.
7413 * gnu-nat.c: Likewise.
7414 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7415 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7416 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7417 object.
7418 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7419 instead of `gnu_target'.
7420
0af5e106
ST
74212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7422
7423 * i386-gnu-tdep.c: Include "gdbcore.h"
7424 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7425 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7426 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7427 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7428 i386_gnu_sigcontext_addr): New functions
7429 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7430 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7431 tdep.
7432
078f2fc9
ST
74332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7434
7435 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7436 before fork_inferior call. Avoid calling it if target_is_pushed returns
7437 true.
7438
53dff92c
ST
74392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7440
7441 * gnu-nat.h (gnu_target): New variable declaration.
7442 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7443 gnu_target.
7444 * gnu-nat.c (gnu_target): New variable.
7445 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7446 add_thread_silent, and add_thread calls.
7447 (gnu_nat_target::create_inferior): Pass gnu_target to
7448 add_thread_silent, thread_change_ptid call.
7449 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7450 call.
7451
5a8b8627
ST
74522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7453
7454 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7455 (gnu_nat_target::find_memory_regions): Remove unused
7456 `old_address' variable.
7457
366f550a
ST
74582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7459
7460 * gnu-nat.c: Include "gdbarch.h".
7461
f14871bf
ST
74622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7463
7464 * reply_mig_hack.awk (Error return): Cast function through
7465 void *, to bypass compiler function call check.
7466
c6887cfb
ST
74672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7468
7469 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7470 $(srcdir)/reply_mig_hack.awk.
7471
6930bffe
ST
74722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7473
7474 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7475
112c22ed
JG
74762020-05-30 Jonny Grant <jg@jguk.org>
7477
7478 * configure.ac (ACX_BUGURL): change bug URL to https.
7479
f68f85b5
PA
74802020-05-30 Pedro Alves <palves@redhat.com>
7481
7482 * cp-support.c (replace_typedefs_template): New.
7483 (replace_typedefs_qualified_name): Handle
7484 DEMANGLE_COMPONENT_TEMPLATE.
7485
976ca316
SM
74862020-05-29 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7489 dwarf2/index-cache.h, dwarf2/index-write.c,
7490 dwarf2/index-write.h, dwarf2/line-header.c,
7491 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7492 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7493 variables and fields from `dwarf2_per_objfile` to just
7494 `per_objfile` throughout.
7495
989ade05
SM
74962020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7497
7498 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7499 <push_dwarf_reg_entry_value>: Add comment.
7500
c47bae85
KB
75012020-05-28 Kevin Buettner <kevinb@redhat.com>
7502 Keith Seitz <keiths@redhat.com>
7503
7504 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7505 instead of PyEval_ReleaseLock.
7506 (class gdbpy_gil): Move to earlier in file.
7507 (finalize_python): Set gdb_python_initialized.
7508 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7509 when not initialized.
7510
44486dcf
SM
75112020-05-28 Simon Marchi <simon.marchi@efficios.com>
7512
7513 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7514 <push_dwarf_reg_entry_value>: Remove assert. Override
7515 per_objfile with caller_per_objfile.
7516
f030440d
TV
75172020-05-28 Tom de Vries <tdevries@suse.de>
7518
7519 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7520 PR gold/15646 workaround to symbol kind "type".
7521
f0fbb768
TT
75222020-05-27 Tom Tromey <tromey@adacore.com>
7523
7524 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7525
af0b2a3e
TT
75262020-05-27 Tom Tromey <tromey@adacore.com>
7527
7528 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7529 Use htab_find_with_hash.
7530 <add_abbrev>: Remove "abbrev_number" parameter.
7531 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7532 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7533 (hash_abbrev): Add comment.
7534 (abbrev_table::lookup_abbrev): Move to header file.
7535 (abbrev_table::read): Update.
7536
7d00ffec
TT
75372020-05-27 Tom Tromey <tromey@adacore.com>
7538
7539 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7540 method.
7541 <canonical_name>: New member.
7542 <raw_name>: Rename from "name".
7543 (partial_die_info): Initialize canonical_name.
7544 (scan_partial_symbols): Check raw_name.
7545 (partial_die_parent_scope, partial_die_full_name)
7546 (add_partial_symbol, add_partial_subprogram)
7547 (add_partial_enumeration, load_partial_dies): Use "name" method.
7548 (partial_die_info::name): New method.
7549 (partial_die_info::read, guess_partial_die_structure_name)
7550 (partial_die_info::fixup): Update.
7551
697bba18
TT
75522020-05-27 Tom Tromey <tromey@adacore.com>
7553
7554 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7555 <get_ref_die_offset>: Inline.
7556 <get_ref_die_offset_complaint>: New method.
7557 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7558 (attribute::get_ref_die_offset_complaint): Rename from
7559 get_ref_die_offset. Just issue complaint.
7560
c17ace43
HD
75612020-05-27 Hannes Domani <ssbssa@yahoo.de>
7562
7563 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7564
96445f0b
HD
75652020-05-27 Hannes Domani <ssbssa@yahoo.de>
7566
7567 * exec.c (exec_file_attach): Use errno value of first openp failure.
7568
ac637ec3
HD
75692020-05-27 Hannes Domani <ssbssa@yahoo.de>
7570
7571 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7572 Don't close thread handle.
7573
17ee85fc
TT
75742020-05-27 Tom Tromey <tom@tromey.com>
7575 Simon Marchi <simon.marchi@efficios.com>
7576
7577 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7578 shared_ptr.
7579 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7580 member.
7581 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7582 dwarf2_per_bfd_objfile_data_key>: New globals.
7583 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7584 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7585 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7586 shared.
7587 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7588 short-circuit when sharing.
7589 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7590 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7591
39b16f87
SM
75922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7593
7594 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7595 to...
7596 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7597 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7598
fcf23d5b
SM
75992020-05-27 Simon Marchi <simon.marchi@efficios.com>
7600
7601 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7602 build_name_components, find_name_components_bounds>:
7603 Add per_objfile parameter.
7604 (struct mapped_index) <symbol_name_at>: Likewise.
7605 (struct mapped_debug_names): Remove constructor.
7606 <dwarf2_per_objfile>: Remove field.
7607 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7608 (mapped_index_base::find_name_components_bounds,
7609 mapped_index_base::build_name_components,
7610 dw2_expand_symtabs_matching_symbol): Likewise.
7611 (class mock_mapped_index) <symbol_name_at>: Likewise.
7612 (check_match): Likewise.
7613 (check_find_bounds_finds): Likewise.
7614 (test_mapped_index_find_name_component_bounds): Update.
7615 (CHECK_MATCH): Update.
7616 (dw2_expand_symtabs_matching): Update.
7617 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7618 per_objfile parameter.
7619 <find_vec_in_debug_names>: Likewise.
7620 <m_per_objfile>: New field.
7621 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7622 parameter.
7623 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7624 (dw2_debug_names_iterator::next): Update.
7625 (dw2_debug_names_lookup_symbol): Update.
7626 (dw2_debug_names_expand_symtabs_for_function): Update.
7627 (dw2_debug_names_map_matching_symbols): Update.
7628 (dw2_debug_names_expand_symtabs_matching): Update.
7629 (dwarf2_read_debug_names): Update.
7630
7188ed02
SM
76312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7634 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7635 move to dwarf2_per_objfile.
7636 <read_in_chain>: Remove.
7637 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7638 remove_all_cus, age_comp_units>: New methods.
7639 <m_dwarf2_cus>: New member.
7640 (struct dwarf2_per_cu_data) <cu>: Remove.
7641 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7642 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7643 moved to methods of dwarf2_per_objfile.
7644 (dwarf2_clear_marks): Remove.
7645 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7646 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7647 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7648 (dwarf2_per_objfile::remove_all_cus): New.
7649 (class free_cached_comp_units) <~free_cached_comp_units>:
7650 Update.
7651 (load_cu): Update.
7652 (dw2_do_instantiate_symtab): Adjust.
7653 (fill_in_sig_entry_from_dwo_entry): Adjust.
7654 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7655 (cutu_reader::cutu_reader): Likewise.
7656 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7657 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7658 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7659 and dwarf2_per_objfile::age_comp_units.
7660 (load_partial_comp_unit): Update.
7661 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7662 (process_queue): Likewise.
7663 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7664 backlink.
7665 (dwarf2_read_addr_index): Likewise.
7666 (follow_die_offset): Likewise.
7667 (dwarf2_fetch_die_loc_sect_off): Likewise.
7668 (dwarf2_fetch_constant_bytes): Likewise.
7669 (dwarf2_fetch_die_type_sect_off): Likewise.
7670 (follow_die_sig_1): Likewise.
7671 (load_full_type_unit): Likewise.
7672 (read_signatured_type): Likewise.
7673 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7674 (dwarf2_cu::~dwarf2_cu): Remove.
7675 (dwarf2_per_objfile::get_cu): New.
7676 (dwarf2_per_objfile::set_cu): New.
7677 (age_cached_comp_units): Rename to...
7678 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7679 to std::unordered_map.
7680 (free_one_cached_comp_unit): Rename to...
7681 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7682 to std::unordered_map.
7683 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7684 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7685 a dwarf2_per_objfile in data.
7686 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7687 (dwarf2_clear_marks): Remove.
7688
2e671100
SM
76892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7692 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7693 (init_tu_and_read_dwo_dies): Likewise.
7694 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7695 (cutu_reader::cutu_reader): Likewise.
7696 (load_partial_comp_unit): Likewise.
7697 (process_psymtab_comp_unit): Update.
7698 (build_type_psymtabs_1): Update.
7699 (process_skeletonless_type_unit): Update.
7700 (load_full_comp_unit): Update.
7701 (find_partial_die): Update.
7702 (dwarf2_read_addr_index): Update.
7703 (read_signatured_type): Update.
7704
2e6a9f79
SM
77052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7706
7707 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7708 m_header_read_in>: New fields.
7709 <get_header>: New method.
7710 * dwarf2/read.c (per_cu_header_read_in): Remove.
7711 (dwarf2_per_cu_data::get_header): New.
7712 (dwarf2_per_cu_data::addr_size): Update.
7713 (dwarf2_per_cu_data::offset_size): Update.
7714 (dwarf2_per_cu_data::ref_addr_size): Update.
7715
1b555f17
SM
77162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7717
7718 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7719 (dw2_do_instantiate_symtab): Update.
7720 (queue_and_load_all_dwo_tus): Change parameter from
7721 dwarf2_per_cu_data to dwarf2_cu.
7722 (dwarf2_fetch_die_loc_sect_off): Update.
7723 (dwarf2_fetch_constant_bytes): Update.
7724 (dwarf2_fetch_die_type_sect_off): Update.
7725
8fc0b21d
SM
77262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7727
7728 * dwarf2/read.c (process_full_comp_unit,
7729 process_full_type_unit): Remove per_cu, per_objfile paramters.
7730 Add dwarf2_cu parameter.
7731 (process_queue): Update.
7732
168c9250
SM
77332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7734
7735 * dwarf2/read.c (create_cu_from_index_list): Replace
7736 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7737 (create_cus_from_index_list): Likewise.
7738 (create_cus_from_index): Likewise.
7739 (create_signatured_type_table_from_index): Likewise.
7740 (create_cus_from_debug_names_list): Likewise.
7741 (create_cus_from_debug_names): Likewise.
7742 (dwarf2_read_gdb_index): Update.
7743 (dwarf2_read_debug_names): Update.
7744
e286671b
TT
77452020-05-27 Tom Tromey <tom@tromey.com>
7746 Simon Marchi <simon.marchi@efficios.com>
7747
7748 * dwarf2/read.h (struct dwarf2_per_objfile)
7749 <get_type_for_signatured_type, set_type_for_signatured_type>:
7750 New methods.
7751 <m_type_map>: New member.
7752 (struct signatured_type) <type>: Remove.
7753 * dwarf2/read.c
7754 (dwarf2_per_objfile::get_type_for_signatured_type,
7755 dwarf2_per_objfile::set_type_for_signatured_type): New.
7756 (get_signatured_type): Use new methods.
7757
8adb8487
TT
77582020-05-27 Tom Tromey <tom@tromey.com>
7759 Simon Marchi <simon.marchi@efficios.com>
7760
7761 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7762 (struct dwarf2_per_objfile) <type_units>: New member.
7763 <get_type_unit_group_unshareable>: New method.
7764 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7765 num_symtabs, symtabs>: Remove; move to
7766 type_unit_group_unshareable.
7767 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7768 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7769 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7770
127bbf4b
SM
77712020-05-27 Simon Marchi <simon.marchi@efficios.com>
7772
7773 * dwarf2/read.h (struct dwarf2_per_cu_data):
7774 <dwarf2_per_objfile>: Remove.
7775 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7776 dwarf2_per_objfile.
7777 (create_signatured_type_table_from_index): Likewise.
7778 (create_signatured_type_table_from_debug_names): Likewise.
7779 (create_debug_type_hash_table): Likewise.
7780 (fill_in_sig_entry_from_dwo_entry): Likewise.
7781 (create_type_unit_group): Likewise.
7782 (read_comp_units_from_section): Likewise.
7783 (create_cus_hash_table): Likewise.
7784
f6e649dd
SM
77852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7788 dwarf2_per_cu_data::dwarf2_per_objfile.
7789 (compute_compunit_symtab_includes): Likewise.
7790 (dwarf2_cu::start_symtab): Likewise.
7791
aa66c379
SM
77922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7793
7794 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7795 parameter.
7796 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7797 (read_namespace_alias): Update.
7798 (lookup_die_type): Update.
7799 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7800 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7801 Update.
7802 (disassemble_dwarf_expression): Update.
7803
120ce1b5
SM
78042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7805
7806 * dwarf2/read.h (struct dwarf2_queue_item): Add
7807 dwarf2_per_objfile parameter, assign new parameter.
7808 <per_objfile>: New field.
7809 * dwarf2/read.c (free_one_cached_comp_unit): Add
7810 dwarf2_per_objfile parameter.
7811 (queue_comp_unit): Likewise.
7812 (dw2_do_instantiate_symtab): Update.
7813 (process_psymtab_comp_unit): Update.
7814 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7815 (process_imported_unit_die): Update.
7816 (queue_and_load_dwo_tu): Update.
7817 (follow_die_offset): Update.
7818 (follow_die_sig_1): Update.
7819
9f47c707
SM
78202020-05-27 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7823 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7824 (read_call_site_scope): Assign per_objfile.
7825 (dwarf2_per_cu_data::objfile): Remove.
7826 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7827 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7828 dwarf2_per_objfile parameter.
7829 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7830 dwarf2_per_objfile parameter.
7831 (dwarf_expr_reg_to_entry_parameter): Add output
7832 dwarf2_per_objfile parameter.
7833 (locexpr_get_frame_base): Update.
7834 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7835 <push_dwarf_reg_entry_value>: Update.
7836 <call_site_to_target_addr>: Update.
7837 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7838 parameter.
7839 (value_of_dwarf_reg_entry): Update.
7840 (rw_pieced_value): Update.
7841 (indirect_synthetic_pointer): Update.
7842 (dwarf2_evaluate_property): Update.
7843 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7844 parameter.
7845 (locexpr_read_variable): Update.
7846 (locexpr_get_symbol_read_needs): Update.
7847 (loclist_read_variable): Update.
7848
14095eb3
SM
78492020-05-27 Simon Marchi <simon.marchi@efficios.com>
7850
7851 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7852 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7853 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7854 parameter.
7855 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7856 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7857 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7858 parameter.
7859 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7860 sect_variable_value): Add dwarf2_per_objfile parameter.
7861 (class dwarf_evaluate_loc_desc) <dwarf_call,
7862 dwarf_variable_value>: Update.
7863 (fetch_const_value_from_synthetic_pointer): Add
7864 dwarf2_per_objfile parameter.
7865 (fetch_const_value_from_synthetic_pointer): Update.
7866 (coerced_pieced_ref): Update.
7867 (class symbol_needs_eval_context) <dwarf_call,
7868 dwarf_variable_value>: Update.
7869 (dwarf2_compile_expr_to_ax): Update.
7870
3c3cd3d4
SM
78712020-05-27 Simon Marchi <simon.marchi@efficios.com>
7872
7873 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7874 parameter.
7875 (dwarf2_evaluate_loc_desc_full): Update.
7876
82ca3f51
SM
78772020-05-27 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7880 parameter.
7881 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7882 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7883 dwarf2_per_objfile parameter.
7884 (decode_debug_loc_dwo_addresses): Likewise.
7885 (dwarf2_find_location_expression): Update.
7886 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7887 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7888 parameter.
7889 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7890 parameter.
7891 (locexpr_describe_location_1): Likewise.
7892 (locexpr_describe_location): Update.
7893
4b167ea1
SM
78942020-05-27 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7897 Remove.
7898 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7899 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7900 (dwarf2_compile_property_to_c): Update.
7901 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7902 use text offset from objfile.
7903 (locexpr_tracepoint_var_ref): Update.
7904 (locexpr_generate_c_location): Update.
7905 (loclist_describe_location): Update.
7906 (loclist_tracepoint_var_ref): Update.
7907 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7908 dwarf2_per_objfile parameter.
7909 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7910 use text offset from objfile.
7911 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7912
89b07335
SM
79132020-05-27 Simon Marchi <simon.marchi@efficios.com>
7914
7915 * dwarf2/expr.h (struct dwarf_expr_context)
7916 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7917 <offset>: Remove.
7918 <per_objfile>: New member.
7919 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7920 dwarf2_per_objfile parameter. Don't set offset, set
7921 per_objfile.
7922 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7923 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7924 a dwarf2_per_objfile object instead of an offset.
7925 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7926 constructor.
7927 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7928 to dwarf2_expr_executor constructor. Don't set offset.
7929 (dwarf2_fetch_cfa_info): Update.
7930 (struct dwarf2_frame_cache) <text_offset>: Remove.
7931 <per_objfile>: New field.
7932 (dwarf2_frame_cache): Update.
7933 (dwarf2_frame_prev_register): Update.
7934 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7935 <dwarf_evaluate_loc_desc>: Add constructor.
7936 (dwarf2_evaluate_loc_desc_full): Update.
7937 (dwarf2_locexpr_baton_eval): Update.
7938 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7939 Add constructor.
7940 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7941
293e7e51
SM
79422020-05-27 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7945 addr_sized_int_type>: Move to dwarf2_cu.
7946 <int_type>: Move to dwarf2_per_objfile.
7947 (struct dwarf2_per_objfile) <int_type>: Move here.
7948 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7949 addr_sized_int_type>: Move here.
7950 (read_func_scope): Update.
7951 (read_array_type): Update.
7952 (read_tag_string_type): Update.
7953 (attr_to_dynamic_prop): Update.
7954 (dwarf2_per_cu_data::int_type): Rename to...
7955 (dwarf2_per_objfile::int_type): ... this.
7956 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7957 (dwarf2_cu::addr_sized_int_type): ... this.
7958 (read_subrange_type): Update.
7959 (dwarf2_per_cu_data::addr_type): Rename to...
7960 (dwarf2_cu::addr_type): ... this.
7961 (set_die_type): Update.
7962
64874a40
SM
79632020-05-27 Simon Marchi <simon.marchi@efficios.com>
7964
7965 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7966 data through per_cu->cu.
7967
4ab09049
SM
79682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7969
7970 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7971 dwarf2_per_cu_data parameter fo dwarf2_cu.
7972 (lookup_dwo_type_unit): Likewise.
7973 (read_cutu_die_from_dwo): Likewise.
7974 (lookup_dwo_unit): Likewise.
7975 (open_and_init_dwo_file): Likewise.
7976 (lookup_dwo_cutu): Likewise.
7977 (lookup_dwo_comp_unit): Likewise.
7978 (lookup_dwo_type_unit): Likewise.
7979 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7980 (cutu_reader::cutu_reader): Update.
7981
47b14e86
SM
79822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7983
7984 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7985 parameter.
7986 (process_full_type_unit): Likewise.
7987 (process_queue): Update.
7988
43182c09
SM
79892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7990
7991 * dwarf2/read.c (recursively_compute_inclusions): Add
7992 dwarf2_per_objfile parameter.
7993 (compute_compunit_symtab_includes): Likewise.
7994 (process_cu_includes): Update.
7995
7aa104c4
SM
79962020-05-27 Simon Marchi <simon.marchi@efficios.com>
7997
7998 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7999 parameter.
8000 (create_type_unit_group): Update.
8001 (process_psymtab_comp_unit_reader): Update.
8002 (build_type_psymtabs_reader): Update.
8003
e3beb21d
SM
80042020-05-27 Simon Marchi <simon.marchi@efficios.com>
8005
8006 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8007 object through m_this_cu->cu.
8008
d460f660
SM
80092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8010
8011 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8012 the info parameter.
8013 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8014
ab432490
SM
80152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8016
8017 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8018 per_objfile parameter.
8019 (load_full_type_unit): Add per_objfile parameter.
8020 (read_signatured_type): Likewise.
8021 (load_full_comp_unit): Likewise.
8022 (load_cu): Likewise.
8023 (dw2_do_instantiate_symtab): Likewise.
8024 (dw2_get_file_names): Likewise.
8025 (dw2_map_symtabs_matching_filename): Update.
8026 (dw_expand_symtabs_matching_file_matcher): Update.
8027 (dw2_map_symbol_filenames): Update.
8028 (process_psymtab_comp_unit): Add per_objfile parameter.
8029 (build_type_psymtabs_1): Update.
8030 (process_skeletonless_type_unit): Update.
8031 (dwarf2_build_psymtabs_hard): Update.
8032 (load_partial_comp_unit): Add per_objfile parameter.
8033 (scan_partial_symbols): Update.
8034 (load_full_comp_unit): Add per_objfile parameter.
8035 (process_imported_unit_die): Update.
8036 (create_cus_hash_table): Update.
8037 (find_partial_die): Update.
8038 (dwarf2_read_addr_index): Update.
8039 (follow_die_offset): Update.
8040 (dwarf2_fetch_die_loc_sect_off): Update.
8041 (dwarf2_fetch_constant_bytes): Update.
8042 (dwarf2_fetch_die_type_sect_off): Update.
8043 (follow_die_sig_1): Update.
8044 (load_full_type_unit): Add per_objfile parameter.
8045 (read_signatured_type): Likewise.
8046
313bad1b
SM
80472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8050 of objfile_name.
8051
c3699833
SM
80522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8053
8054 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8055 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8056 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8057 field.
8058 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8059 (create_cus_from_index): Update.
8060 (dwarf2_read_gdb_index): Update.
8061 (create_cus_from_debug_names): Update.
8062 (dwarf2_read_debug_names): Update.
8063 (get_abbrev_section_for_cu): Update.
8064 (create_all_comp_units): Update.
8065 (read_attribute_value): Update.
8066 (get_debug_line_section): Update.
8067 * dwarf2/index-cache.c (index_cache::store): Update.
8068 * dwarf2/index-write.c (save_gdb_index_command): Update.
8069 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8070
1859c670
SM
80712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8072
8073 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8074 member.
8075 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8076 dwarf2_per_cu_data::per_bfd.
8077 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8078 (create_type_unit_group): Likewise.
8079 (queue_comp_unit): Remove reference to
8080 per_cu->dwarf2_per_objfile.
8081 (maybe_queue_comp_unit): Likewise.
8082 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8083 (create_cus_hash_table): Assign new field.
8084
5e22e966
SM
80852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8086
8087 * dwarf2/read.c: Replace
8088 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8089 dwarf2_cu->per_objfile throughout.
8090
97a1449a
SM
80912020-05-27 Simon Marchi <simon.marchi@efficios.com>
8092
8093 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8094 parameter, don't use per_cu->dwarf2_per_objfile.
8095 (dw2_instantiate_symtab): Likewise.
8096 (dw2_find_last_source_symtab): Update.
8097 (dw2_map_expand_apply): Update.
8098 (dw2_lookup_symbol): Update.
8099 (dw2_expand_symtabs_for_function): Update.
8100 (dw2_expand_all_symtabs): Update.
8101 (dw2_expand_symtabs_with_fullname): Update.
8102 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8103 don't use per_cu->dwarf2_per_objfile.
8104 (dw2_expand_marked_cus): Update.
8105 (dw2_find_pc_sect_compunit_symtab): Update.
8106 (dw2_debug_names_lookup_symbol): Update.
8107 (dw2_debug_names_expand_symtabs_for_function): Update.
8108 (dw2_debug_names_map_matching_symbols): Update.
8109 (dwarf2_psymtab::expand_psymtab): Update.
8110
9e021579
SM
81112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8112
8113 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8114 <per_objfile>: New member.
8115 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8116 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8117 call to dwarf2_cu.
8118 (cutu_reader::cutu_reader): Update.
8119 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8120
ae090bdb
SM
81212020-05-27 Simon Marchi <simon.marchi@efficios.com>
8122
8123 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8124 struct dwarf2_per_objfile.
8125 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8126 dwarf2_per_bfd.
8127 * dwarf2/read.c (set_die_type): Update.
8128 (get_die_type_at_offset): Update.
8129
af758d11
SM
81302020-05-27 Tom Tromey <tom@tromey.com>
8131 Simon Marchi <simon.marchi@efficios.com>
8132
8133 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8134 method.
8135 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8136 get_symtab, set_symtab>: New methods.
8137 <m_symtabs>: New field.
8138 (struct dwarf2_psymtab): Derive from partial_symtab.
8139 <readin_p, get_compunit_symtab>: Declare methods.
8140 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8141 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8142 New methods.
8143 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8144 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8145 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8146 (dw2_symtab_iter_next, dw2_print_stats)
8147 (dw2_expand_symtabs_with_fullname)
8148 (dw2_expand_symtabs_matching_one)
8149 (dw_expand_symtabs_matching_file_matcher)
8150 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8151 (dw2_debug_names_iterator::next)
8152 (dw2_debug_names_map_matching_symbols)
8153 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8154 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8155 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8156 New methods.
8157 (get_compunit_symtab, process_full_comp_unit)
8158 (process_full_type_unit): Update.
8159 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8160
5989a64e
SM
81612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8162
8163 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8164 then introduce a new dwarf2_per_objfile type.
8165 <read_line_string>: Move to the new dwarf2_per_objfile type.
8166 <objfile>: Likewise.
8167 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8168 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8169 dwarf2_per_objfile->per_bfd.
8170 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8171 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8172 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8173 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8174 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8175 (dwarf2_per_objfile::locate_sections): Rename to...
8176 (dwarf2_per_bfd::locate_sections): ... this.
8177 (dwarf2_per_objfile::get_cutu): Rename to...
8178 (dwarf2_per_bfd::get_cutu): ... this.
8179 (dwarf2_per_objfile::get_cu): Rename to...
8180 (dwarf2_per_bfd::get_cu): ... this.
8181 (dwarf2_per_objfile::get_tu): Rename to...
8182 (dwarf2_per_bfd::get_tu): ... this.
8183 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8184 (dwarf2_per_bfd::allocate_per_cu): ... this.
8185 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8186 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8187 (get_gdb_index_contents_ftype): Change parameter from
8188 dwarf2_per_objfile to dwarf2_per_bfd.
8189 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8190 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8191
a50264ba
TT
81922020-05-27 Tom Tromey <tom@tromey.com>
8193 Simon Marchi <simon.marchi@efficios.com>
8194
8195 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8196 (allocate_piece_closure): Set "per_objfile" member.
8197 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8198 (locexpr_describe_location, loclist_describe_location): Use new
8199 member.
8200 * dwarf2/read.c (read_call_site_scope)
8201 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8202 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8203 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8204 handle_data_member_location): Set per_objfile member.
8205 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8206 member.
8207 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8208
d3473f0c
TT
82092020-05-27 Tom Tromey <tom@tromey.com>
8210
8211 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8212 allocate_signatured_type>: Declare new methods.
8213 <m_num_psymtabs>: New member.
8214 (struct dwarf2_per_cu_data) <index>: New member.
8215 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8216 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8217 (create_cu_from_index_list): Use allocate_per_cu.
8218 (create_signatured_type_table_from_index)
8219 (create_signatured_type_table_from_debug_names)
8220 (create_debug_type_hash_table, add_type_unit)
8221 (read_comp_units_from_section): Use allocate_signatured_type.
8222
5717c425
TT
82232020-05-27 Tom Tromey <tom@tromey.com>
8224
8225 * psymtab.c (partial_map_expand_apply)
8226 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8227 (psym_lookup_global_symbol_language)
8228 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8229 (psym_print_stats, psym_expand_symtabs_for_function)
8230 (psym_map_symbol_filenames, psym_map_matching_symbols)
8231 (psym_expand_symtabs_matching)
8232 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8233 (maintenance_check_psymtabs): Update.
8234 * psympriv.h (struct partial_symtab) <readin_p,
8235 get_compunit_symtab>: Add objfile parameter.
8236 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8237 Likewise.
8238 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8239 get_compunit_symtab>: Likewise.
8240 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8241
45940949
TT
82422020-05-27 Tom Tromey <tom@tromey.com>
8243
8244 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8245 member.
8246 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8247 (create_cu_from_index_list)
8248 (create_signatured_type_table_from_index)
8249 (create_signatured_type_table_from_debug_names)
8250 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8251 (dwarf2_create_include_psymtab)
8252 (create_debug_type_hash_table, add_type_unit)
8253 (create_type_unit_group, read_comp_units_from_section)
8254 (dwarf2_compute_name, create_cus_hash_table)
8255 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8256 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8257 obstack.
8258 (dw2_get_real_path): Likewise. Change argument to
8259 dwarf2_per_objfile.
8260
f8c6d152
LM
82612020-05-27 Luis Machado <luis.machado@linaro.org>
8262
8263 PR tdep/26000
8264 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8265 for ldrd (immediate).
8266
e98d2e6d
PW
82672020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8268
8269 * command.h: Add comment giving the name of class_tui.
8270 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8271 create the fake command for the help for class_tui.
8272
53a47a3e
TT
82732020-05-26 Tom Tromey <tromey@adacore.com>
8274
8275 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8276 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8277 (val_atr): New function.
8278 (value_val_atr): Use it.
8279 * ada-valprint.c (print_optional_low_bound): Change low bound
8280 handling for enums.
8281 (val_print_packed_array_elements): Don't call discrete_position.
8282 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8283 discrete_position for enum types.
8284 * language.c (default_print_array_index): Change type.
8285 * language.h (struct language_defn) <la_print_array_index>: Add
8286 index_type parameter, change type of index_value.
8287 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8288 (default_print_array_index): Update.
8289 * valprint.c (maybe_print_array_index): Don't call
8290 value_from_longest. Update.
8291 (value_print_array_elements): Don't call discrete_position.
8292
0bc2354b
TT
82932020-05-26 Tom Tromey <tromey@adacore.com>
8294
8295 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8296 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8297
1218a4bf
CDA
82982020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8299
8300 PR gdb/13519
8301 * avr-tdep.c (avr_integer_to_address): Return data or code
8302 address accordingly to the second 'type' argument of the
8303 function.
8304
92651b1d
MW
83052020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8306
8307 * infcmd.c, inferior.h: (construct_inferior_arguments):
8308 Moved function from here to gdbsupport/common-inferior.{h,cc}
8309
0a4f5f8c
TT
83102020-05-23 Tom Tromey <tom@tromey.com>
8311
8312 Revert commit eca1f90c:
8313 * NEWS: Remove entry for completion styling.
8314 * completer.c (_rl_completion_prefix_display_length): Move
8315 declaration later.
8316 (gdb_fnprint): Revert.
8317 (gdb_display_match_list_1): Likewise.
8318 * cli/cli-style.c (completion_prefix_style)
8319 (completion_difference_style, completion_suffix_style): Remove.
8320 (_initialize_cli_style): Revert.
8321 * cli/cli-style.h (completion_prefix_style)
8322 (completion_difference_style, completion_suffix_style): Don't
8323 declare.
8324
e08bd6c5
PA
83252020-05-24 Pedro Alves <palves@redhat.com>
8326
8327 * symtab.c (completion_list_add_name): Return boolean indication
8328 of whether the symbol matched.
8329 (completion_list_add_symbol): Don't try to remove C++ aliases if
8330 the symbol didn't match in the first place.
8331 * symtab.h (completion_list_add_name): Return bool.
8332
ceacbf6e
SM
83332020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8334
8335 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8336 type::field.
8337
26f16254
JB
83382020-05-23 Joel Brobecker <brobecker@adacore.com>
8339
8340 GDB 9.2 released.
8341
eca1f90c
TT
83422020-05-23 Tom Tromey <tom@tromey.com>
8343
8344 * NEWS: Add entry for completion styling.
8345 * completer.c (_rl_completion_prefix_display_length): Move
8346 declaration earlier.
8347 (gdb_fnprint): Use completion_style.
8348 (gdb_display_match_list_1): Likewise.
8349 * cli/cli-style.c (completion_prefix_style)
8350 (completion_difference_style, completion_suffix_style): New
8351 globals.
8352 (_initialize_cli_style): Register new globals.
8353 * cli/cli-style.h (completion_prefix_style)
8354 (completion_difference_style, completion_suffix_style): Declare.
8355
51e2cfa2
PA
83562020-05-23 Pedro Alves <palves@redhat.com>
8357
8358 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8359 (parse_escape): Use ISDIGIT instead of isdigit.
8360 (puts_debug): Use gdb_isprint instead of isprint.
8361 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8362 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8363 ISSPACE instead of isspace.
8364 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8365 instead of isspace.
8366 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8367 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8368 instead of isxdigit and ISDIGIT instead of isdigit.
8369
80fc5e77
SM
83702020-05-22 Simon Marchi <simon.marchi@efficios.com>
8371
8372 * gdbtypes.h (struct type) <field>: New method.
8373 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8374 or type::field.
8375
3cabb6b0
SM
83762020-05-22 Simon Marchi <simon.marchi@efficios.com>
8377
8378 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8379 (TYPE_FIELDS): Use type::fields. Change all call sites that
8380 modify the propery to use type::set_fields instead.
8381
1f704f76
SM
83822020-05-22 Simon Marchi <simon.marchi@efficios.com>
8383
8384 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8385 type::num_fields instead.
8386
5e33d5f4
SM
83872020-05-22 Simon Marchi <simon.marchi@efficios.com>
8388
8389 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8390 methods.
8391 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8392 that modify the number of fields to use type::set_num_fields
8393 instead.
8394
9392ebb3
TT
83952020-05-22 Tom Tromey <tromey@adacore.com>
8396
8397 * compile/compile-object-load.h (munmap_list_free): Don't
8398 declare.
8399
7c13f4e8
AB
84002020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8401
8402 * annotate.c (annotate_source_line): Update return type, add call
8403 to update current symtab and line.
8404 * annotate.h (annotate_source_line): Update return type, and
8405 extend header comment.
8406 * source.c (info_line_command): Check annotation_level before
8407 calling annotate_source_line.
8408 * stack.c (print_frame_info): If calling annotate_source_line
8409 returns true, then don't print any other source line information.
8410
aa370940
SM
84112020-05-21 Simon Marchi <simon.marchi@efficios.com>
8412
8413 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8414
84d53fa9
SM
84152020-05-21 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * coffread.c (patch_type): Remove NULL check before xfree.
8418 * corefile.c (set_gnutarget): Likewise.
8419 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8420 * exec.c (build_section_table): Likewise.
8421 * remote.c (remote_target::pass_signals): Likewise.
8422 * utils.c (n_spaces): Likewise.
8423 * cli/cli-script.c (document_command): Likewise.
8424 * i386-windows-tdep.c (core_process_module_section): Likewise.
8425 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8426
9d428aae
SM
84272020-05-20 Simon Marchi <simon.marchi@efficios.com>
8428
8429 * symfile.c (reread_symbols): Clear objfile's section_offsets
8430 vector and section indices, re-compute them by calling
8431 sym_offsets.
8432
250106a7
TT
84332020-05-20 Tom Tromey <tromey@adacore.com>
8434
8435 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8436 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8437
9a0bacfb
TV
84382020-05-20 Tom de Vries <tdevries@suse.de>
8439
8440 PR symtab/25833
8441 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8442
7b958a48
AM
84432020-05-20 Alan Modra <amodra@gmail.com>
8444
8445 PR 25993
8446 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8447 bfd_set_filename.
8448 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8449 passed to bfd_set_filename.
8450 * symfile-mem.c (add_vsyscall_page): Likewise for string
8451 passed to symbol_file_add_from_memory.
8452 (symbol_file_add_from_memory): Make name param a const char* and
8453 don't strdup.
8454
c7e97679
AM
84552020-05-20 Alan Modra <amodra@gmail.com>
8456
8457 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8458 rather than accessing bfd->filename directly.
8459 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8460 and use bfd_section_name.
8461 * dwarf2/frame.c (decode_frame_entry): Likewise.
8462 * exec.c (exec_set_section_address): Likewise.
8463 * solib-aix.c (solib_aix_bfd_open): Likewise.
8464 * stap-probe.c (get_stap_base_address): Likewise.
8465 * symfile.c (reread_symbols): Likewise.
8466
563c591b
TT
84672020-05-19 Tom Tromey <tromey@adacore.com>
8468
8469 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8470
f408d82c
SM
84712020-05-19 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8474
98c59b52
PA
84752020-05-19 Pedro Alves <palves@redhat.com>
8476
8477 * NEWS (set exec-file-mismatch): Adjust entry.
8478 * exec.c: Include "build-id.h".
8479 (validate_exec_file): Try to match build IDs instead of filenames.
8480 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8481 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8482 and pass down 'warn_if_slow'.
8483 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8484 gdb_bfd_open_closure to pass it down.
8485 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8486
4111f652
PA
84872020-05-19 Pedro Alves <palves@redhat.com>
8488
8489 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8490 * target.c (target_fileio_open_1): Rename to target_fileio_open
8491 and make extern. Use bool.
8492 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8493 (target_fileio_read_alloc_1): Adjust.
8494 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8495 (target_fileio_open_warn_if_slow): Delete declaration.
8496
ad80db5b
PA
84972020-05-19 Pedro Alves <palves@redhat.com>
8498
8499 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8500 Adjust all callers.
8501
1d6ce4d3
YS
85022020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8503
8504 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8505 whether disp is negative.
8506
9005fbbb
SM
85072020-05-19 Simon Marchi <simon.marchi@efficios.com>
8508
8509 * symfile.h (struct symfile_segment_data)
8510 <~symfile_segment_data>: Remove.
8511 <segment_info>: Change to std::vector.
8512 * symfile.c (default_symfile_segments): Update.
8513 * elfread.c (elf_symfile_segments): Update.
8514
68b888ff
SM
85152020-05-19 Simon Marchi <simon.marchi@efficios.com>
8516
8517 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8518 <segments>: New.
8519 <segment_bases, segment_sizes>: Remove.
8520 * symfile.c (default_symfile_segments): Update.
8521 * elfread.c (elf_symfile_segments): Update.
8522 * remote.c (remote_target::get_offsets): Update.
8523 * solib-target.c (solib_target_relocate_section_addresses):
8524 Update.
8525
62982abd
SM
85262020-05-19 Simon Marchi <simon.marchi@efficios.com>
8527
8528 * symfile.h (struct symfile_segment_data): Initialize fields.
8529 <~symfile_segment_data>: Add.
8530 (symfile_segment_data_up): New.
8531 (struct sym_fns) <sym_segments>: Return a
8532 symfile_segment_data_up.
8533 (default_symfile_segments): Return a symfile_segment_data_up.
8534 (free_symfile_segment_data): Remove.
8535 (get_symfile_segment_data): Return a symfile_segment_data_up.
8536 * symfile.c (default_symfile_segments): Likewise.
8537 (get_symfile_segment_data): Likewise.
8538 (free_symfile_segment_data): Remove.
8539 (symfile_find_segment_sections): Update.
8540 * elfread.c (elf_symfile_segments): Return a
8541 symfile_segment_data_up.
8542 * remote.c (remote_target::get_offsets): Update.
8543 * solib-target.c (solib_target_relocate_section_addresses):
8544 Update.
8545 * symfile-debug.c (debug_sym_segments): Return a
8546 symfile_segment_data_up.
8547
7f204339
RO
85482020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8549
e52a0f1b
RO
8550 PR build/25981
8551 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8552 Hardcode register numbers.
8553
7f204339
RO
8554 PR build/25981
8555 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8556 procfs_find_LDT_entry): Remove.
8557 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8558 procfs_find_LDT_entry): Remove.
8559 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8560 Remove.
8561
7f32a4d5
PA
85622020-05-17 Pedro Alves <palves@redhat.com>
8563 Andrew Burgess <andrew.burgess@embecosm.com>
8564 Keno Fischer <keno@juliacomputing.com>
8565
8566 PR gdb/25741
8567 * breakpoint.c (build_target_condition_list): Update comments.
8568 (build_target_command_list): Update comments and skip matching
8569 locations.
8570 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8571 a separate function. Simplify "set breakpoint auto-hw off"
8572 handling.
8573 (insert_breakpoints): Update comment.
8574 (tracepoint_locations_match): New parameter. For breakpoints,
8575 compare location types too, if the caller wants to.
8576 (handle_automatic_hardware_breakpoints): New functions.
8577 (bp_location_is_less_than): Also sort by location type and
8578 hardware breakpoint length.
8579 (update_global_location_list): Handle "set breakpoint auto-hw on"
8580 here.
8581 (update_breakpoint_locations): Ask breakpoint_locations_match to
8582 ignore location types.
8583
7d93a1e0
SM
85842020-05-16 Simon Marchi <simon.marchi@efficios.com>
8585
8586 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8587 type::name instead.
8588
d0e39ea2
SM
85892020-05-16 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * gdbtypes.h (struct type) <name, set_name>: New methods.
8592 (TYPE_CODE): Use type::name. Change all call sites used to set
8593 the name to use type::set_name instead.
8594
2dab0c7b
TT
85952020-05-16 Tom Tromey <tom@tromey.com>
8596
8597 * top.c (quit_force): Update.
8598 * infrun.c (handle_no_resumed): Update.
8599 * top.h (all_uis): New function.
8600 (ALL_UIS): Remove.
8601
59f7bd8d
SM
86022020-05-16 Simon Marchi <simon.marchi@efficios.com>
8603
8604 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8605
9bf058f0
PA
86062020-05-16 Pedro Alves <palves@redhat.com>
8607
8608 * ia64-linux-nat.c
8609 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8610 Declare method.
8611 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8612
8f86ae1a
SM
86132020-05-15 Simon Marchi <simon.marchi@efficios.com>
8614
8615 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8616 (sparc64_adi_info): Likewise.
8617
d6bc0792
TT
86182020-05-15 Tom Tromey <tom@tromey.com>
8619
8620 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8621 block_objfile.
8622 (lookup_objfile_from_block): Remove.
8623 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8624 (lookup_global_symbol): Use block_objfile.
8625 * symtab.h (lookup_objfile_from_block): Don't declare.
8626 * printcmd.c (clear_dangling_display_expressions): Use
8627 block_objfile.
8628 * parse.c (operator_check_standard): Use block_objfile.
8629
8c14c3a3
TT
86302020-05-15 Tom Tromey <tom@tromey.com>
8631
8632 * language.c (language_alloc_type_symbol): Set
8633 SYMBOL_SECTION.
8634 * symtab.c (initialize_objfile_symbol): Remove.
8635 (allocate_symbol): Remove.
8636 (allocate_template_symbol): Remove.
8637 * dwarf2/read.c (fixup_go_packaging): Use "new".
8638 (new_symbol): Use "new".
8639 (read_variable): Don't call initialize_objfile_symbol. Use
8640 "new".
8641 (read_func_scope): Use "new".
8642 * xcoffread.c (process_xcoff_symbol): Don't call
8643 initialize_objfile_symbol.
8644 (SYMBOL_DUP): Remove.
8645 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8646 "new".
8647 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8648 (allocate_template_symbol): Don't declare.
8649 (struct symbol): Add copy constructor. Change defaults.
8650 * jit.c (finalize_symtab): Use "new".
8651 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8652 Use "new".
8653 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8654 (common_block_end): Use "new".
8655 * mdebugread.c (parse_symbol): Use "new".
8656 (new_symbol): Likewise.
8657
5b4a1a8d
PW
86582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8659
8660 * NEWS: Mention changes to help and apropos.
8661
57b4f16e
PW
86622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8663
8664 * command.h (enum command_class): Improve comments, document
8665 that class_alias is for user-defined aliases, give the class
8666 name for each class, remove unused class_xdb.
8667 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8668 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8669 by a precise class.
8670 * infcmd.c (_initialize_infcmd): Likewise.
8671 * reverse.c (_initialize_reverse): Likewise.
8672 * stack.c (_initialize_stack): Likewise.
8673 * symfile.c (_initialize_symfile): Likewise.
8674 * tracepoint.c (_initialize_tracepoint): Likewise.
8675
7c05caf7
PW
86762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8677
8678 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8679 when their aliased command is traversed.
8680 (help_cmd): Add fput_command_names_styled call to
8681 output command name and aliases when command has an alias.
8682
3b3aaacb
PW
86832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8684
8685 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8686 * cli/cli-decode.c (help_cmd_list): Declare as static,
8687 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8688 a command together with the command.
8689 (fput_command_name_styled, fput_command_names_styled): New functions.
8690 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8691 fput_command_name_styled.
8692 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8693 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8694
7aa1b46f
PW
86952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8696
8697 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8698 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8699 * command.h (cmd_show_list): Likewise.
8700 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8701 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8702
89bcba74
PW
87032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8704
8705 * unittests/command-def-selftests.c (traverse_command_structure):
8706 Verify all commands of a list have the same prefix command and
8707 that only the top cmdlist commands have a null prefix.
8708
3f4d92eb
PW
87092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8710
8711 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8712 as prefix, not one of its aliases.
8713 (set_cmd_prefix): Remove.
8714 (do_add_cmd): Centralize the setting of the prefix of a command, when
8715 command is defined after its full chain of prefix commands.
8716 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8717 (add_setshow_cmd_full): Likewise.
8718 (update_prefix_field_of_prefixed_commands): New function.
8719 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8720 update_prefix_field_of_prefixed_commands.
8721 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8722 addresses of remote_set_cmdlist and remote_show_cmdlist given
8723 as argument, not the address of an argument.
8724 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8725 * gdb/remote.c (_initialize_remote): Likewise.
8726
0605465f
PW
87272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8728
8729 * cli/cli-cmds.c (alias_command): Check for an existing alias
8730 using lookup_cmd_composition, as valid_command_p is too strict
8731 and forbids aliases that are the prefix of an existing alias
8732 or command.
8733 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8734 command is properly recognised as a valid command.
8735
58e6ac70
PW
87362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8737
8738 * unittests/help-doc-selftests.c: Rename to
8739 unittests/command-def-selftests.c
8740 * unittests/command-def-selftests.c (help_doc_tests): Update some
8741 comments.
8742 (command_structure_tests, traverse_command_structure): New namespace
8743 and function.
8744 (command_structure_invariants_tests): New function.
8745 (_initialize_command_def_selftests) Renamed from
8746 _initialize_help_doc_selftests, register command_structure_invariants
8747 selftest.
8748
a7b9ceb8
PW
87492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8750
8751 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8752 an alias of 'show'.
8753
b2188a06
JB
87542020-05-15 Joel Brobecker <brobecker@adacore.com>
8755
8756 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8757 ada_is_fixed_point_type. Update all callers.
8758 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8759 all callers.
8760 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8761 Update all callers.
8762 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8763 print_fixed_point_type. Update all callers.
8764 * ada-valprint.c (ada_value_print_num): Replace call to
8765 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8766
a51951c2
KB
87672020-05-14 Kevin Buettner <kevinb@redhat.com>
8768
8769 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8770 processors.
8771 (cpu_supports_bts): Add CV_AMD case.
8772
29d6859f
LM
87732020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8774 Simon Marchi <simon.marchi@efficios.com>
8775
8776 * infrun.c (stop_all_threads): Collect multiple wait events at
8777 each pass.
8778
78134374
SM
87792020-05-14 Simon Marchi <simon.marchi@efficios.com>
8780
8781 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8782 type::code instead.
8783
67607e24
SM
87842020-05-14 Simon Marchi <simon.marchi@efficios.com>
8785
8786 * gdbtypes.h (struct type) <code, set_code>: New methods.
8787 (TYPE_CODE): Use type::code. Change all call sites used to set
8788 the code to use type::set_code instead.
8789
a05575d3
TBA
87902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8791 Tom de Vries <tdevries@suse.de>
8792 Pedro Alves <palves@redhat.com>
8793
8794 PR threads/25478
8795 * infrun.c (stop_all_threads): Do NOT ignore
8796 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8797 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8798 received.
8799 (handle_no_resumed): Remove code handling a live inferior with no
8800 threads.
8801 * remote.c (has_single_non_exited_thread): New.
8802 (remote_target::update_thread_list): Do not delete a thread if is
8803 the last thread of the process.
8804 * thread.c (thread_select): Call delete_exited_threads instead of
8805 prune_threads.
8806
6ad82919
TBA
88072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8808
8809 * infrun.c (stop_all_threads): Enable/disable thread events of all
8810 targets. Move a debug message denoting the end of the function
8811 into the SCOPED_EXIT block.
8812
d890404b
TBA
88132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8814
8815 * process-stratum-target.h: Include <set>.
8816 (all_non_exited_process_targets, switch_to_target_no_thread): New
8817 function declarations.
8818 * process-stratum-target.c (all_non_exited_process_targets)
8819 (switch_to_target_no_thread): New function implementations.
8820
293b3ebc
TBA
88212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8822
8823 * infrun.c (handle_inferior_event): Extract out a piece of code
8824 into...
8825 (mark_non_executing_threads): ...this new function.
8826
7ca9b62a
TBA
88272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8828
8829 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8830 use.
8831
fc75c28b
TBA
88322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8833
8834 * regcache.c (regcache_read_pc_protected): New function
8835 implementation that returns 0 if the PC cannot read via
8836 'regcache_read_pc'.
8837 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8838 instead of 'regcache_read_pc'.
8839 (keep_going_pass_signal): Ditto.
8840
a89febbd
TT
88412020-05-13 Tom Tromey <tromey@adacore.com>
8842
8843 * ada-lang.c (align_value): Remove.
8844 (ada_template_to_fixed_record_type_1): Use align_up.
8845
f7e23710
TBA
88462020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8847
8848 * async-event.c: Update the copyright year.
8849 * async-event.h: Update the copyright year.
8850
02ff80c2
SM
88512020-05-12 Simon Marchi <simon.marchi@efficios.com>
8852
8853 * objfiles.h (is_addr_in_objfile,
8854 shared_objfile_contains_address_p): Return bool.
8855 * objfile.c (is_addr_in_objfile,
8856 shared_objfile_contains_address_p): Return bool.
8857
4fd6c7e8
TT
88582020-05-11 Tom Tromey <tromey@adacore.com>
8859
8860 * cli/cli-cmds.c (info_command): Restore.
8861 (_initialize_cli_cmds): Use add_prefix_command for "info".
8862 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8863
5eb68a39
TT
88642020-05-11 Tom Tromey <tromey@adacore.com>
8865
8866 * ada-lang.c (ada_value_primitive_field): Now public.
8867 * ada-lang.h (ada_value_primitive_field): Declare.
8868 * ada-valprint.c (print_field_values): Use
8869 ada_value_primitive_field for wrapper fields.
8870
7666722f
TV
88712020-05-11 Tom de Vries <tdevries@suse.de>
8872
8873 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8874 MODULE_DOMAIN.
8875
3ee6bb11
TV
88762020-05-11 Tom de Vries <tdevries@suse.de>
8877
8878 PR symtab/25941
8879 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8880 with length 0, if not gdb-produced.
8881 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8882
43434996
TV
88832020-05-09 Tom de Vries <tdevries@suse.de>
8884
8885 PR gdb/25955
8886 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8887 calculation.
8888
2f78cffc
TT
88892020-05-09 Tom Tromey <tom@tromey.com>
8890
8891 * top.c (server_command): Now bool.
8892 * top.h (server_command): Now bool.
8893
4f7bc5ed
TT
88942020-05-08 Tom Tromey <tromey@adacore.com>
8895
8896 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8897 already being processed.
8898
8be4b118
TT
88992020-05-08 Tom Tromey <tom@tromey.com>
8900
8901 * printcmd.c (struct display) <next>: Remove.
8902 <display>: New constructor.
8903 <exp_string>: Now a std::string.
8904 <enabled_p>: Now a bool.
8905 (display_number): Move definition earlier.
8906 (displays): Rename from display_chain. Now a std::vector.
8907 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8908 (display_command): Update.
8909 (do_one_display, disable_display)
8910 (enable_disable_display_command, do_enable_disable_display):
8911 Update.
8912 (free_display): Remove.
8913 (clear_displays): Rewrite.
8914 (delete_display): Update.
8915 (map_display_numbers): Use function_view. Remove "data"
8916 parameter. Update.
8917 (do_delete_display): Remove.
8918 (undisplay_command): Update.
8919 (do_one_display, do_displays, disable_display)
8920 (info_display_command): Update.
8921 (do_enable_disable_display): Remove.
8922 (enable_disable_display_command)
8923 (clear_dangling_display_expressions): Update.
8924
94c93c35
TT
89252020-05-08 Tom Tromey <tom@tromey.com>
8926
8927 * symtab.c (set_symbol_cache_size)
8928 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8929 (maintenance_print_symbol_cache_statistics): Update.
8930 * symmisc.c (print_symbol_bcache_statistics)
8931 (print_objfile_statistics, maintenance_print_objfiles)
8932 (maintenance_info_symtabs, maintenance_check_symtabs)
8933 (maintenance_expand_symtabs, maintenance_info_line_tables):
8934 Update.
8935 * symfile-debug.c (set_debug_symfile): Update.
8936 * source.c (forget_cached_source_info): Update.
8937 * python/python.c (gdbpy_progspaces): Update.
8938 * psymtab.c (maintenance_info_psymtabs): Update.
8939 * probe.c (parse_probes): Update.
8940 * linespec.c (iterate_over_all_matching_symtabs)
8941 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8942 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8943 * exec.c (exec_target::close): Update.
8944 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8945 * breakpoint.c (print_one_breakpoint_location)
8946 (create_longjmp_master_breakpoint)
8947 (create_std_terminate_master_breakpoint): Update.
8948 * progspace.c (program_spaces): Now a std::vector.
8949 (maybe_new_address_space): Update.
8950 (add_program_space): Remove.
8951 (program_space::program_space): Update.
8952 (remove_program_space): Update.
8953 (number_of_program_spaces): Remove.
8954 (print_program_space, update_address_spaces): Update.
8955 * progspace.h (program_spaces): Change type.
8956 (ALL_PSPACES): Remove.
8957 (number_of_program_spaces): Don't declare.
8958 (struct program_space) <next>: Remove.
8959
a1fd1ac9
TT
89602020-05-08 Tom Tromey <tom@tromey.com>
8961
8962 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8963 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8964 (enable_break): Update.
8965 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8966 (frv_fdpic_find_canonical_descriptor): Update.
8967 (frv_fetch_objfile_link_map): Update.
8968 * progspace.c (program_space::free_all_objfiles): Update.
8969 (program_space::solibs): New method.
8970 * progspace.h (struct program_space) <solibs>: New method.
8971 * solist.h (master_so_list): Don't declare.
8972 (ALL_SO_LIBS): Remove.
8973 * solib.h (so_list_head): Remove.
8974 (update_solib_list): Update comment.
8975 * solib.c (master_so_list): Remove.
8976 (solib_used, update_solib_list, solib_add)
8977 (info_sharedlibrary_command, clear_solib)
8978 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8979
38eae084
TT
89802020-05-08 Tom Tromey <tom@tromey.com>
8981
8982 * extension.c (extension_languages): Now a std::array.
8983 (ALL_EXTENSION_LANGUAGES): Remove.
8984 (get_ext_lang_defn, get_ext_lang_of_file)
8985 (eval_ext_lang_from_control_command): Update.
8986 (finish_ext_lang_initialization)
8987 (auto_load_ext_lang_scripts_for_objfile)
8988 (ext_lang_type_printers::ext_lang_type_printers)
8989 (apply_ext_lang_type_printers)
8990 (ext_lang_type_printers::~ext_lang_type_printers)
8991 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8992 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8993 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8994 (get_matching_xmethod_workers, ext_lang_colorize)
8995 (ext_lang_before_prompt): Update.
8996 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8997
596dc4ad
TT
89982020-05-08 Tom Tromey <tom@tromey.com>
8999
9000 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9001 overload.
9002 <swap_string, m_string>: Remove.
9003 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9004 Update.
9005 * stabsread.c (define_symbol, read_type): Update.
9006 * linespec.c (find_linespec_symbols): Update.
9007 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9008 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9009 * dbxread.c (read_dbx_symtab): Update.
9010 * cp-support.h (cp_canonicalize_string_full)
9011 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9012 Return unique_xmalloc_ptr.
9013 * cp-support.c (inspect_type): Update.
9014 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9015 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9016 Likewise.
9017 * c-typeprint.c (print_name_maybe_canonical): Update.
9018 * break-catch-throw.c (check_status_exception_catchpoint):
9019 Update.
9020
bf4cb9be
TV
90212020-05-08 Tom de Vries <tdevries@suse.de>
9022
9023 * infrun.c (follow_fork): Copy current_line and current_symtab to
9024 child thread.
9025
a1b68f28
SM
90262020-05-07 Simon Marchi <simon.marchi@efficios.com>
9027
9028 * async-event.c (struct async_signal_handler, struct
9029 async_event_handler): Reformat, remove typedef.
9030
98d48915
SM
90312020-05-07 Simon Marchi <simon.marchi@efficios.com>
9032
9033 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9034 access thistype->main_type->dyn_prop_list directly.
9035
7aa91313
SM
90362020-05-07 Simon Marchi <simon.marchi@efficios.com>
9037
9038 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9039 (remove_dyn_prop): Remove. Update all users to use
9040 type::remove_dyn_prop.
9041 * gdbtypes.c (remove_dyn_prop): Rename to...
9042 (type::remove_dyn_prop): ... this.
9043
5c54719c
SM
90442020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9045
9046 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9047 (add_dyn_prop): Remove. Update all users to use
9048 type::add_dyn_prop.
9049 * gdbtypes.c (add_dyn_prop): Rename to...
9050 (type::add_dyn_prop): ... this.
9051
24e99c6c
SM
90522020-05-07 Simon Marchi <simon.marchi@efficios.com>
9053
9054 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9055 (get_dyn_prop): Remove. Update all users to use
9056 type::dyn_prop.
9057 * gdbtypes.c (get_dyn_prop): Rename to...
9058 (type::dyn_prop): ... this.
9059
0d4bf016
SM
90602020-05-06 Simon Marchi <simon.marchi@efficios.com>
9061
9062 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9063
ac4a4f1c
SM
90642020-05-06 Simon Marchi <simon.marchi@efficios.com>
9065
9066 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9067 instruction, skip it if it's there.
9068
a3bbacc1
SM
90692020-05-05 Simon Marchi <simon.marchi@efficios.com>
9070
9071 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9072
c3236f84
SM
90732020-05-04 Simon Marchi <simon.marchi@efficios.com>
9074
9075 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9076 * gdbtypes.c (recursive_dump_type): Remove use of
9077 TYPE_INCOMPLETE.
9078
3b6acaee
TT
90792020-05-03 Tom Tromey <tom@tromey.com>
9080
9081 * breakpoint.c (catch_command, tcatch_command): Remove.
9082 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9083 add_show_prefix_cmd.
9084 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9085 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9086 Remove.
9087 (add_internal_problem_command): Use add_basic_prefix_cmd,
9088 add_show_prefix_cmd.
9089 * mips-tdep.c (set_mipsfpu_command): Remove.
9090 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9091 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9092 (_initialize_index_cache): Use add_basic_prefix_cmd.
9093 * memattr.c (dummy_cmd): Remove.
9094 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9095 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9096 (_initialize_tui_win): Use add_basic_prefix_cmd,
9097 add_show_prefix_cmd.
9098 * cli/cli-logging.c (set_logging_command): Remove.
9099 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9100 add_show_prefix_cmd.
9101 (show_logging_command): Remove.
9102 * target.c (target_command): Remove.
9103 (add_target): Use add_basic_prefix_cmd.
9104
a51119cd
HD
91052020-05-02 Hannes Domani <ssbssa@yahoo.de>
9106
9107 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9108
652fc23a 91092020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9110
652fc23a
PW
9111 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9112 info_command.
9113
117539e6
KR
91142020-04-30 Kamil Rytarowski <n54@gmx.com>
9115
9116 * nbsd-nat.c (nbsd_enable_proc_events)
9117 (nbsd_nat_target::post_startup_inferior): Add.
9118 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9119 (nbsd_nat_target::update_thread_list): Rewrite.
9120 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9121 "PTRACE_LWP_CREATE".
9122 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9123
102e38eb 91242020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9125
102e38eb
PW
9126 * stack.c (_initialize_stack): Remove duplicated creation
9127 of "frame" command and "f" alias.
9128
ee9d1e5f
HD
91292020-04-30 Hannes Domani <ssbssa@yahoo.de>
9130
9131 PR gdb/18706
9132 * gdbtypes.c (check_typedef): Calculate size of array of
9133 stubbed type.
9134
627c7fb8
HD
91352020-04-30 Hannes Domani <ssbssa@yahoo.de>
9136
9137 PR gdb/15559
9138 * i386-tdep.c (i386_push_dummy_call): Call
9139 i386_thiscall_push_dummy_call.
9140 (i386_thiscall_push_dummy_call): New function.
9141 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9142 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9143 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9144
ffc2844e
SM
91452020-04-29 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * gdbarch.sh (do_read): Add shellcheck disable directive for
9148 warning SC2162.
9149
1207375d
SM
91502020-04-29 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9153 "referenced but not assigned" warning.
9154
9fdb2916
SM
91552020-04-29 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * gdbarch.sh: Remove code that sets fallbackdefault.
9158
759cea5e
SM
91592020-04-29 Simon Marchi <simon.marchi@efficios.com>
9160
9161 * gdbarch.sh: Use shell operators && and || instead of
9162 -a and -o.
9163
cb02ab24
SM
91642020-04-29 Simon Marchi <simon.marchi@efficios.com>
9165
9166 * gdbarch.sh: Use $(...) instead of `...`.
9167
a6fc5ffc
SM
91682020-04-29 Simon Marchi <simon.marchi@efficios.com>
9169
9170 * gdbarch.sh: Use double quotes around variables.
9171
8d113d13
SM
91722020-04-29 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * gdbarch.sh: Use %s with printf, instead of variables in the
9175 format string.
9176
ed6acedd
TT
91772020-04-29 Tom Tromey <tromey@adacore.com>
9178
9179 PR ada/25875:
9180 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9181 type fields here.
9182 (read_enumeration_type): Call
9183 update_enumeration_type_from_children later. Update comments.
9184 (process_enumeration_scope): Don't create type fields.
9185
b68b1b58
KR
91862020-04-29 Kamil Rytarowski <n54@gmx.com>
9187
9188 * nbsd-tdep.c: Include "xml-syscall.h".
9189 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9190
f94b2e03
KR
91912020-04-29 Kamil Rytarowski <n54@gmx.com>
9192
9193 * nbsd-nat.c: Include "sys/wait.h".
9194 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9195 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9196 (nbsd_nat_target::remove_exec_catchpoint)
9197 (nbsd_nat_target::set_syscall_catchpoint): Add.
9198 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9199 (nbsd_nat_target::insert_exec_catchpoint)
9200 (nbsd_nat_target::remove_exec_catchpoint)
9201 (nbsd_nat_target::set_syscall_catchpoint): Add.
9202 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9203 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9204 `nbsd_get_syscall_number'.
9205
fc49bc72
TT
92062020-04-29 Tom Tromey <tom@tromey.com>
9207
9208 * stack.c (print_block_frame_labels): Remove.
9209
d642b692
HD
92102020-04-29 Hannes Domani <ssbssa@yahoo.de>
9211
9212 PR gdb/17320
9213 * ada-valprint.c (val_print_packed_array_elements): Move array
9214 end bracket to new line.
9215 (ada_val_print_string): Remove extra spaces before first array
9216 element.
9217 * c-valprint.c (c_value_print_array): Likewise.
9218 * m2-valprint.c (m2_print_array_contents): Likewise.
9219 (m2_value_print_inner): Likewise.
9220 * p-valprint.c (pascal_value_print_inner): Likewise.
9221 * valprint.c (generic_val_print_array): Likewise.
9222 (value_print_array_elements): Move first array element and array
9223 end bracket to new line.
9224
ea90f227
TV
92252020-04-29 Tom de Vries <tdevries@suse.de>
9226
9227 PR symtab/25889
9228 * linespec.c (find_method): Fix ix calculation.
9229
4498ef4f
KR
92302020-04-28 Kamil Rytarowski <n54@gmx.com>
9231
9232 * syscalls/update-netbsd.sh: New file.
9233 * syscalls/netbsd.xml: Regenerate.
9234 * data-directory/Makefile.in: Register `netbsd.xml' in
9235 `SYSCALLS_FILES'.
9236
a55e30b5
SM
92372020-04-28 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * syscalls/update-freebsd.sh: Add double quotes.
9240
2b2fbab8
TT
92412020-04-28 Tom Tromey <tom@tromey.com>
9242
9243 * NEWS: Update.
9244 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9245 (cmdpy_init): Allow class_tui.
9246
a65189c9
TV
92472020-04-28 Mark Williams <mark@myosotissp.com>
9248
9249 PR gdb/24480
9250 * dwarf2read.c: Add missing assingments to list_in_scope when
9251 start_symtab was already called.
9252
1b95cdb7
SM
92532020-04-28 Simon Marchi <simon.marchi@efficios.com>
9254
9255 PR gdb/25881
9256 * dwarf2/read.c (offset_map_type): Use
9257 gdb:hash_enum<sect_offset> as hash function.
9258
15cd93d0
TV
92592020-04-28 Tom de Vries <tdevries@suse.de>
9260
9261 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9262 with DW_AT_signature.
9263
1eb39914
SM
92642020-04-27 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * configure.ac: Remove check for fs_base/gs_base in
9267 user_regs_struct.
9268 * configure: Re-generate.
9269 * config.in: Re-generate.
9270 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9271 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9272 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9273
991a3e2e
LM
92742020-04-27 Luis Machado <luis.machado@linaro.org>
9275
9276 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9277 problematic inline frame unwinding situation.
9278 * frame.c (frame_id_computed_p): New function.
9279 * frame.h (frame_id_computed_p): New prototype.
9280
361ba0e8
TT
92812020-04-26 Tom Tromey <tom@tromey.com>
9282
9283 * command.h (enum command_class) <class_pseudo>: Remove.
9284
bc3609fd
PW
92852020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9286
9287 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9288 and whitespace.
9289
b9771db7
KR
92902020-04-25 Kamil Rytarowski <n54@gmx.com>
9291
ec16513e
SM
9292 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9293 `PT_GET_PROCESS_STATE' block.
b9771db7 9294
7151c1af
TT
92952020-04-24 Tom Tromey <tom@tromey.com>
9296
9297 * symtab.h (symbol_get_demangled_name): Don't declare.
9298 * symtab.c (symbol_get_demangled_name): Remove.
9299 (general_symbol_info::natural_name)
9300 (general_symbol_info::demangled_name): Update.
9301
906bb4c5
TT
93022020-04-24 Tom Tromey <tom@tromey.com>
9303
9304 PR rust/25025:
9305 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9306
bcfe6157
TT
93072020-04-24 Tom Tromey <tom@tromey.com>
9308
9309 PR symtab/12707:
9310 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9311 exists.
9312 (new_symbol): Likewise.
9313 * compile/compile-object-load.c (get_out_value_type): Use
9314 symbol_matches_search_name.
9315
f049a313
TT
93162020-04-24 Tom Tromey <tom@tromey.com>
9317
9318 * dwarf2/read.c (add_partial_symbol): Do not call
9319 compute_and_set_names.
9320
76e288d1
TT
93212020-04-24 Tom Tromey <tom@tromey.com>
9322
9323 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9324 overload.
9325
2467f4f6
TT
93262020-04-24 Tom Tromey <tom@tromey.com>
9327
9328 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9329 (add_psymbol_to_list): New overload. Make old overload call new
9330 one.
9331 * psympriv.h (add_psymbol_to_list): New overload.
9332
e61108c9
TT
93332020-04-24 Tom Tromey <tom@tromey.com>
9334
9335 * dwarf2/read.c (partial_die_info::read) <case
9336 DW_AT_linkage_name>: Use value_as_string.
9337 (dwarf2_string_attr): Use value_as_string.
9338 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9339 method.
9340 * dwarf2/attribute.c (attribute::value_as_string): New method.
9341
8c87a452
TT
93422020-04-24 Tom Tromey <tom@tromey.com>
9343
9344 * symtab.c (general_symbol_info::natural_name)
9345 (general_symbol_info::demangled_name): Check for language_rust.
9346
787de330
TT
93472020-04-24 Tom Tromey <tom@tromey.com>
9348
9349 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9350 (dwarf2_physname): ... from here.
9351 (partial_die_info::read): Add Rust "{" hack.
9352
ff985671
TT
93532020-04-24 Tom Tromey <tom@tromey.com>
9354
9355 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9356 method.
9357 (symbol_set_demangled_name): Don't declare.
9358 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9359 symbol_set_demangled_name.
9360 (general_symbol_info::set_language)
9361 (general_symbol_info::compute_and_set_names): Update.
9362 * minsyms.c (minimal_symbol_reader::install): Update.
9363 * dwarf2/read.c (new_symbol): Update.
9364
1acda803
TT
93652020-04-24 Tom Tromey <tromey@adacore.com>
9366
9367 PR python/23662:
9368 * python/py-type.c (convert_field): Handle
9369 FIELD_LOC_KIND_DWARF_BLOCK.
9370 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9371 (typy_get_dynamic): Nw function.
9372 (type_object_getset): Add "dynamic".
9373 * NEWS: Add entry.
9374
d656f129
TT
93752020-04-24 Tom Tromey <tromey@adacore.com>
9376
9377 * ada-typeprint.c (print_choices, print_variant_part)
9378 (print_record_field_types_dynamic): New functions.
9379 (print_record_field_types): Use print_record_field_types_dynamic.
9380
7d79de9a
TT
93812020-04-24 Tom Tromey <tromey@adacore.com>
9382
9383 * dwarf2/read.c (handle_data_member_location): New overload.
9384 (dwarf2_add_field): Use it.
9385 (decode_locdesc): Add "computed" parameter. Update comment.
9386 * gdbtypes.c (is_dynamic_type_internal): Also look for
9387 FIELD_LOC_KIND_DWARF_BLOCK.
9388 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9389 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9390 virtual base classes.
9391 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9392 FIELD_LOC_KIND_DWARF_BLOCK.
9393
f8e89861
TT
93942020-04-24 Tom Tromey <tromey@adacore.com>
9395
9396 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9397 * gdbtypes.c (is_dynamic_type_internal): Check
9398 TYPE_HAS_DYNAMIC_LENGTH.
9399 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9400 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9401 New macros.
9402 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9403 constant.
9404
9c6a1327
TT
94052020-04-24 Tom Tromey <tromey@adacore.com>
9406
9407 * dwarf2/read.c (struct variant_field): Rewrite.
9408 (struct variant_part_builder): New.
9409 (struct nextfield): Remove "variant" field. Add "offset".
9410 (struct field_info): Add "current_variant_part" and
9411 "variant_parts".
9412 (alloc_discriminant_info): Remove.
9413 (alloc_rust_variant): New function.
9414 (quirk_rust_enum): Update.
9415 (dwarf2_add_field): Set "offset" member. Don't handle
9416 DW_TAG_variant_part.
9417 (offset_map_type): New typedef.
9418 (convert_variant_range, create_one_variant)
9419 (create_one_variant_part, create_variant_parts)
9420 (add_variant_property): New functions.
9421 (dwarf2_attach_fields_to_type): Call add_variant_property.
9422 (read_structure_type): Don't handle DW_TAG_variant_part.
9423 (handle_variant_part, handle_variant): New functions.
9424 (handle_struct_member_die): Use them.
9425 (process_structure_scope): Don't handle variant parts.
9426 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9427 (struct discriminant_info): Remove.
9428 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9429 (struct main_type) <flag_discriminated_union>: Remove.
9430 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9431 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9432 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9433 Update.
9434 * valops.c (value_union_variant): Remove.
9435 * value.h (value_union_variant): Don't declare.
9436
b249d2c2
TT
94372020-04-24 Tom Tromey <tromey@adacore.com>
9438
9439 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9440 (ada_value_primitive_packed_val): Update.
9441 * ada-valprint.c (ada_value_print_1): Update.
9442 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9443 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9444 just an address. Use evaluate_for_locexpr_baton.
9445 (dwarf2_evaluate_property): Update.
9446 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9447 array_view.
9448 * findvar.c (default_read_var_value): Update.
9449 * gdbtypes.c (compute_variant_fields_inner)
9450 (resolve_dynamic_type_internal): Update.
9451 (resolve_dynamic_type): Change type of valaddr parameter.
9452 * gdbtypes.h (resolve_dynamic_type): Update.
9453 * valarith.c (value_subscripted_rvalue): Update.
9454 * value.c (value_from_contents_and_address): Update.
9455
61122aa9
TT
94562020-04-24 Tom Tromey <tromey@adacore.com>
9457
9458 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9459 "push_initial_value" parameter.
9460 (dwarf2_evaluate_property): Likewise.
9461 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9462
ef83a141
TT
94632020-04-24 Tom Tromey <tromey@adacore.com>
9464
9465 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9466 (variant::matches, compute_variant_fields_recurse)
9467 (compute_variant_fields_inner, compute_variant_fields): New
9468 functions.
9469 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9470 Use resolved_type after type is made.
9471 (operator==): Add new cases.
9472 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9473 (struct discriminant_range, struct variant, struct variant_part):
9474 New.
9475 (union dynamic_prop_data) <variant_parts, original_type>: New
9476 members.
9477 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9478 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9479 constants.
9480 * value.c (unpack_bits_as_long): Now public.
9481 * value.h (unpack_bits_as_long): Declare.
9482
675127ec
TT
94832020-04-24 Tom Tromey <tromey@adacore.com>
9484
9485 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9486 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9487
9852ceef
HD
94882020-04-24 Hannes Domani <ssbssa@yahoo.de>
9489
9490 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9491
7632c6ce
KR
94922020-04-24 Kamil Rytarowski <n54@gmx.com>
9493
9494 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9495 (remove_fork_catchpoint, post_startup_inferior)
9496 (post_attach): Move...
9497 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9498 (remove_fork_catchpoint, post_startup_inferior)
9499 (post_attach): ...here.
9500 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9501 (remove_fork_catchpoint, post_startup_inferior)
9502 (post_attach): Move...
9503 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9504 (remove_fork_catchpoint, post_startup_inferior)
9505 (post_attach): ...here.
9506
7be2bb4f
TT
95072020-04-24 Tom Tromey <tromey@adacore.com>
9508
9509 * nat/windows-nat.h (struct windows_thread_info)
9510 <pc_adjusted>: New member.
9511 * windows-nat.c (windows_fetch_one_register): Check
9512 pc_adjusted.
9513 (windows_nat_target::get_windows_debug_event)
9514 (windows_nat_target::wait): Set pc_adjusted.
9515
f80cb3b4
TV
95162020-04-24 Tom de Vries <tdevries@suse.de>
9517
9518 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9519 Run gdb-add-index inside temp dir.
9520
29514b87
TT
95212020-04-23 Tom Tromey <tromey@adacore.com>
9522
9523 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9524 in loop.
9525
5939967b
LM
95262020-04-23 Luis Machado <luis.machado@linaro.org>
9527
9528 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9529 get_frame_register instead of gdbarch_unwind_pc.
9530
70bc38f5
TV
95312020-04-23 Tom de Vries <tdevries@suse.de>
9532
9533 * symtab.c (lookup_global_symbol): Prefer def over decl.
9534
de82891c
TV
95352020-04-23 Tom de Vries <tdevries@suse.de>
9536
9537 PR symtab/25807
9538 * block.c (best_symbol, better_symbol): Promote to external.
9539 * block.h (best_symbol, better_symbol): Declare.
9540 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9541 decl.
9542
ecc6c606
TT
95432020-04-23 Tom Tromey <tromey@adacore.com>
9544
9545 PR ada/25837:
9546 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9547 "const char *", not a "const std::string &".
9548 <name_and_matcher::operator==>: Update.
9549 * unittests/lookup_name_info-selftests.c: Change type of
9550 "result".
9551
740480b8
TT
95522020-04-23 Tom Tromey <tom@tromey.com>
9553
9554 * inferior.h (iterate_over_inferiors): Don't declare.
9555 * inferior.c (iterate_over_inferiors): Remove.
9556 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9557 Remove.
9558 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9559 use iterate_over_inferiors.
9560 (darwin_resume_inferior_it)
9561 (struct resume_inferior_threads_param)
9562 (darwin_resume_inferior_threads_it): Remove.
9563 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9564
ae3ab1f0
TV
95652020-04-23 Tom de Vries <tdevries@suse.de>
9566
9567 * blockframe.c (find_pc_partial_function): Use
9568 find_pc_sect_compunit_symtab rather than
9569 objfile->sf->qf->find_pc_sect_compunit_symtab.
9570
317d2668
TV
95712020-04-22 Tom de Vries <tdevries@suse.de>
9572
9573 PR symtab/25764
9574 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9575 in psymtabs.
9576
eea9e357
TV
95772020-04-22 Tom de Vries <tdevries@suse.de>
9578
9579 PR symtab/25801
9580 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9581 symtabs.
9582
3d5afab3
TV
95832020-04-22 Tom de Vries <tdevries@suse.de>
9584
9585 PR symtab/25700
9586 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9587 CU if already created.
9588
d43b7a2d
TBA
95892020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9590
9591 * infrun.c (displaced_step_fixup): Switch to the event_thread
9592 before calling displaced_step_restore, not after.
9593
d89edf9b
MM
95942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9595
9596 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9597 its inferior is not recorded by us.
9598 (record_btrace_target_open): Replace call to
9599 all_non_exited_threads () with call to current_inferior
9600 ()->non_exited_threads ().
9601 (record_btrace_target::stop_recording): Likewise.
9602 (record_btrace_target::close): Likewise.
9603 (record_btrace_target::wait): Likewise.
9604 (record_btrace_target::record_stop_replaying): Likewise.
9605
5897fd49
MM
96062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9607
9608 * btrace.c (btrace_enable): Throw an error on double enables and
9609 when enabling recording fails.
9610 (btrace_disable): Throw an error if the thread is not recorded.
9611
1a476b6d
MM
96122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9613
9614 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9615 request if we do not have a thread_info.
9616
4778a5f8
TV
96172020-04-21 Tom de Vries <tdevries@suse.de>
9618
9619 PR gdb/25471
9620 * thread.c
9621 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9622 exception in get_frame_id.
9623
0fa7617d
TT
96242020-04-20 Tom Tromey <tromey@adacore.com>
9625
9626 * python/python.c (struct gdbpy_event): Mark move constructor as
9627 noexcept.
9628 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9629 constructor as noexcept.
9630 * completer.h (struct completion_result): Mark move constructor as
9631 noexcept.
9632 * completer.c (completion_result::completion_result): Use
9633 initialization style. Don't call reset_match_list.
9634
ad23bda0
MS
96352020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9636
9637 * MAINTAINERS (Write After Approval): Add myself.
9638
45e1f031
TT
96392020-04-18 Tom Tromey <tom@tromey.com>
9640
9641 * windows-tdep.c (init_w32_command_list)
9642 (w32_prefix_command_valid): Restore.
9643 (_initialize_windows_tdep): Call init_w32_command_list.
9644
08feed99
TT
96452020-04-18 Tom Tromey <tom@tromey.com>
9646
9647 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9648 * value.c (value_fn_field): Update.
9649 * valops.c (find_function_in_inferior)
9650 (value_allocate_space_in_inferior): Update.
9651 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9652 Update.
9653 * tui/tui-source.c (tui_source_window::set_contents): Update.
9654 * symtab.c (lookup_global_or_static_symbol)
9655 (find_function_start_sal_1, skip_prologue_sal)
9656 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9657 * symmisc.c (dump_msymbols, dump_symtab_1)
9658 (maintenance_print_one_line_table): Update.
9659 * symfile.c (init_entry_point_info, section_is_mapped)
9660 (list_overlays_command, simple_read_overlay_table)
9661 (simple_overlay_update_1): Update.
9662 * stap-probe.c (handle_stap_probe): Update.
9663 * stabsread.c (dbx_init_float_type, define_symbol)
9664 (read_one_struct_field, read_enum_type, read_range_type): Update.
9665 * source.c (info_line_command): Update.
9666 * python/python.c (gdbpy_source_objfile_script)
9667 (gdbpy_execute_objfile_script): Update.
9668 * python/py-type.c (save_objfile_types): Update.
9669 * python/py-objfile.c (py_free_objfile): Update.
9670 * python/py-inferior.c (python_new_objfile): Update.
9671 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9672 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9673 (maintenance_check_psymtabs): Update.
9674 * printcmd.c (info_address_command): Update.
9675 * objfiles.h (struct objfile) <arch>: New method, from
9676 get_objfile_arch.
9677 (get_objfile_arch): Don't declare.
9678 * objfiles.c (get_objfile_arch): Remove.
9679 (filter_overlapping_sections): Update.
9680 * minsyms.c (msymbol_is_function): Update.
9681 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9682 (output_nondebug_symbol): Update.
9683 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9684 (mdebug_expand_psymtab): Update.
9685 * machoread.c (macho_add_oso_symfile): Update.
9686 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9687 Update.
9688 * linux-fork.c (checkpoint_command): Update.
9689 * linespec.c (convert_linespec_to_sals): Update.
9690 * jit.c (finalize_symtab): Update.
9691 * infrun.c (insert_exception_resume_from_probe): Update.
9692 * ia64-tdep.c (ia64_find_unwind_table): Update.
9693 * hppa-tdep.c (internalize_unwinds): Update.
9694 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9695 Update.
9696 * gcore.c (call_target_sbrk): Update.
9697 * elfread.c (record_minimal_symbol, elf_symtab_read)
9698 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9699 (elf_gnu_ifunc_resolve_by_got): Update.
9700 * dwarf2/read.c (create_addrmap_from_index)
9701 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9702 (read_debug_names_from_section)
9703 (process_psymtab_comp_unit_reader, add_partial_symbol)
9704 (add_partial_subprogram, process_full_comp_unit)
9705 (read_file_scope, read_func_scope, read_lexical_block_scope)
9706 (read_call_site_scope, dwarf2_ranges_read)
9707 (dwarf2_record_block_ranges, dwarf2_add_field)
9708 (mark_common_block_symbol_computed, read_tag_pointer_type)
9709 (read_tag_string_type, dwarf2_init_float_type)
9710 (dwarf2_init_complex_target_type, read_base_type)
9711 (partial_die_info::read, partial_die_info::read)
9712 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9713 (dwarf2_fetch_die_loc_sect_off): Update.
9714 * dwarf2/loc.c (dwarf2_find_location_expression)
9715 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9716 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9717 (dwarf2_loc_desc_get_symbol_read_needs)
9718 (locexpr_describe_location_piece, locexpr_describe_location_1)
9719 (loclist_describe_location): Update.
9720 * dwarf2/index-write.c (write_debug_names): Update.
9721 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9722 * dtrace-probe.c (dtrace_process_dof): Update.
9723 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9724 (process_one_symbol): Update.
9725 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9726 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9727 (coff_read_enum_type): Update.
9728 * cli/cli-cmds.c (edit_command, list_command): Update.
9729 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9730 * breakpoint.c (create_overlay_event_breakpoint)
9731 (create_longjmp_master_breakpoint)
9732 (create_std_terminate_master_breakpoint)
9733 (create_exception_master_breakpoint, get_sal_arch): Update.
9734 * block.c (block_gdbarch): Update.
9735 * annotate.c (annotate_source_line): Update.
9736
0743fc83
TT
97372020-04-17 Tom Tromey <tromey@adacore.com>
9738
9739 * auto-load.c (show_auto_load_cmd): Remove.
9740 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9741 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9742 (maintenance_print_arc_command): Remove.
9743 * tui/tui-win.c (tui_command): Remove.
9744 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9745 * tui/tui-layout.c (tui_layout_command): Remove.
9746 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9747 * python/python.c (user_set_python, user_show_python): Remove.
9748 (_initialize_python): Use add_basic_prefix_cmd,
9749 add_show_prefix_cmd.
9750 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9751 (install_gdb_commands): Use add_basic_prefix_cmd,
9752 add_show_prefix_cmd.
9753 (info_guile_command): Remove.
9754 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9755 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9756 add_show_prefix_cmd.
9757 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9758 Remove do_set and do_show parameters.
9759 * cli/cli-style.c (set_style, show_style): Remove.
9760 (_initialize_cli_style): Use add_basic_prefix_cmd,
9761 add_show_prefix_cmd.
9762 (cli_style_option::add_setshow_commands): Remove do_set and
9763 do_show parameters.
9764 (cli_style_option::add_setshow_commands): Use
9765 add_basic_prefix_cmd, add_show_prefix_cmd.
9766 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9767 (set_style_name): Remove.
9768 * cli/cli-dump.c (dump_command, append_command): Remove.
9769 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9770 (tekhex_dump_command, binary_dump_command)
9771 (binary_append_command): Remove.
9772 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9773 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9774 (init_w32_command_list): Remove; move into ...
9775 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9776 * valprint.c (set_print, show_print, set_print_raw)
9777 (show_print_raw): Remove.
9778 (_initialize_valprint): Use add_basic_prefix_cmd,
9779 add_show_prefix_cmd.
9780 * typeprint.c (set_print_type, show_print_type): Remove.
9781 (_initialize_typeprint): Use add_basic_prefix_cmd,
9782 add_show_prefix_cmd.
9783 * record.c (set_record_command, show_record_command): Remove.
9784 (_initialize_record): Use add_basic_prefix_cmd,
9785 add_show_prefix_cmd.
9786 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9787 add_show_prefix_cmd.
9788 (info_command, show_command, set_debug, show_debug): Remove.
9789 * top.h (set_history, show_history): Don't declare.
9790 * top.c (set_history, show_history): Remove.
9791 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9792 (unset_tdesc_cmd): Remove.
9793 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9794 add_show_prefix_cmd.
9795 * symtab.c (info_module_command): Remove.
9796 (_initialize_symtab): Use add_basic_prefix_cmd.
9797 * symfile.c (overlay_command): Remove.
9798 (_initialize_symfile): Use add_basic_prefix_cmd.
9799 * sparc64-tdep.c (info_adi_command): Remove.
9800 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9801 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9802 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9803 add_show_prefix_cmd.
9804 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9805 (_initialize_serial): Use add_basic_prefix_cmd,
9806 add_show_prefix_cmd.
9807 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9808 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9809 add_show_prefix_cmd.
9810 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9811 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9812 add_show_prefix_cmd.
9813 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9814 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9815 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9816 add_show_prefix_cmd.
9817 * remote.c (remote_command, set_remote_cmd): Remove.
9818 (_initialize_remote): Use add_basic_prefix_cmd.
9819 * record-full.c (set_record_full_command)
9820 (show_record_full_command): Remove.
9821 (_initialize_record_full): Use add_basic_prefix_cmd,
9822 add_show_prefix_cmd.
9823 * record-btrace.c (cmd_set_record_btrace)
9824 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9825 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9826 (cmd_show_record_btrace_pt): Remove.
9827 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9828 add_show_prefix_cmd.
9829 * ravenscar-thread.c (set_ravenscar_command)
9830 (show_ravenscar_command): Remove.
9831 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9832 add_show_prefix_cmd.
9833 * mips-tdep.c (show_mips_command, set_mips_command)
9834 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9835 add_show_prefix_cmd.
9836 * maint.c (maintenance_command, maintenance_info_command)
9837 (maintenance_check_command, maintenance_print_command)
9838 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9839 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9840 add_show_prefix_cmd.
9841 (show_per_command_cmd): Remove.
9842 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9843 Remove.
9844 (maintenance_show_test_settings_cmd): Remove.
9845 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9846 add_show_prefix_cmd.
9847 * maint-test-options.c (maintenance_test_options_command):
9848 Remove.
9849 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9850 * macrocmd.c (macro_command): Remove
9851 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9852 * language.c (set_check, show_check): Remove.
9853 (_initialize_language): Use add_basic_prefix_cmd,
9854 add_show_prefix_cmd.
9855 * infcmd.c (unset_command): Remove.
9856 (_initialize_infcmd): Use add_basic_prefix_cmd.
9857 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9858 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9859 add_show_prefix_cmd.
9860 * go32-nat.c (go32_info_dos_command): Remove.
9861 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9862 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9863 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9864 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9865 (_initialize_frame): Use add_basic_prefix_cmd,
9866 add_show_prefix_cmd.
9867 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9868 (_initialize_dcache): Use add_basic_prefix_cmd,
9869 add_show_prefix_cmd.
9870 * cp-support.c (maint_cplus_command): Remove.
9871 (_initialize_cp_support): Use add_basic_prefix_cmd.
9872 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9873 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9874 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9875 add_basic_prefix_cmd, add_show_prefix_cmd.
9876 * breakpoint.c (save_command): Remove.
9877 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9878 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9879 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9880 add_show_prefix_cmd.
9881 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9882 (set_ada_command, show_ada_command): Remove.
9883 (_initialize_ada_language): Use add_basic_prefix_cmd,
9884 add_show_prefix_cmd.
9885 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9886
3557f442
KR
98872020-04-16 Kamil Rytarowski <n54@gmx.com>
9888
9889 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9890 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9891
16197208
SM
98922020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9893
9894 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9895 warning messages.
9896
00ac85d3
SM
98972020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9898
9899 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9900 import table is not at beginning of .idata section.
9901
381ce63f
PA
99022020-04-16 Pedro Alves <palves@redhat.com>
9903
9904 * inferior.c (delete_inferior): Use delete operator directly
9905 instead of delete_program_space.
9906 * progspace.c (add_program_space): New, factored out from
9907 program_space::program_space.
9908 (remove_program_space): New, factored out from
9909 delete_program_space.
9910 (program_space::program_space): Remove intro comment. Rewrite.
9911 (program_space::~program_space): Remove intro comment. Call
9912 remove_program_space.
9913 (delete_program_space): Delete.
9914 * progspace.h (program_space::program_space): Make explicit. Move
9915 intro comment here, adjusted.
9916 (program_space::~program_space): Move intro comment here,
9917 adjusted.
9918 (delete_program_space): Remove.
9919
a010605f
TT
99202020-04-16 Tom Tromey <tromey@adacore.com>
9921
9922 * windows-nat.c (windows_nat::handle_access_violation): New
9923 function.
9924 * nat/windows-nat.h (handle_access_violation): Declare.
9925 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9926 windows-nat.c. Call handle_access_violation.
9927
efba5c23
TV
99282020-04-16 Tom de Vries <tdevries@suse.de>
9929
9930 PR symtab/25791
9931 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9932 CUs without psymtab.
9933
97ed802d
KB
99342020-04-16 Kevin Buettner <kevinb@redhat.com>
9935
9936 * python/python.c (do_start_initialization): Don't call
9937 PyEval_InitThreads for Python 3.9 and beyond.
9938
c7d64809
KR
99392020-04-15 Kamil Rytarowski <n54@gmx.com>
9940
9941 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9942 thread functions.
9943 (obsd_nat_target::wait): Likewise.
9944
ce127a96
TT
99452020-04-15 Tom Tromey <tromey@adacore.com>
9946
9947 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9948 (DEBUG_EXCEPT): Use debug_printf.
9949
99f1bc6a
AB
99502020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9951
9952 * completer.c (class completion_tracker::completion_hash_entry)
9953 <hash_name>: New member function.
9954 (completion_tracker::discard_completions): New callback to hash a
9955 completion_hash_entry, pass this to htab_create_alloc.
9956
a0e9b532
JT
99572016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9958
9959 * windows-nat.c (windows_make_so): Warn rather than stopping with
9960 an error if realpath() fails.
9961
06ca5dd4
KR
99622020-04-14 Kamil Rytarowski <n54@gmx.com>
9963
9964 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9965 (nbsd_nat_target::info_proc): Add do_status.
9966
194d088f
TV
99672020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9968 Tom de Vries <tdevries@suse.de>
9969
9970 PR symtab/25718
9971 * psympriv.h (struct partial_symtab::read_symtab)
9972 (struct partial_symtab::expand_psymtab)
9973 (struct partial_symtab::read_dependencies): Update comments.
9974 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9975 read_symtab for includer.
9976 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9977 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9978 (struct dwarf2_include_psymtab::m_readin): Remove.
9979 (struct dwarf2_include_psymtab::includer): New member function.
9980 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9981
c1a66c06
TV
99822020-04-14 Tom de Vries <tdevries@suse.de>
9983
9984 PR symtab/25720
9985 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9986 with NULL symbol_matcher and lookup_name.
9987 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9988 and lookup_name.
9989 * dwarf2/read.c (dw2_expand_symtabs_matching)
9990 (dw2_debug_names_expand_symtabs_matching): Same.
9991 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9992 Make lookup_name a pointer. Update comment.
9993 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9994 lookup_name being a pointer.
9995 * symfile.c (expand_symtabs_matching): Same.
9996 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9997 * linespec.c (iterate_over_all_matching_symtabs): Same.
9998
400b5eca
TT
99992020-04-13 Tom Tromey <tom@tromey.com>
10000
10001 * run-on-main-thread.c: Update include.
10002 * unittests/main-thread-selftests.c: Update include.
10003 * tui/tui-win.c: Update include.
10004 * tui/tui-io.c: Update include.
10005 * tui/tui-interp.c: Update include.
10006 * tui/tui-hooks.c: Update include.
10007 * top.h: Update include.
10008 * top.c: Update include.
10009 * ser-base.c: Update include.
10010 * remote.c: Update include.
10011 * remote-notif.c: Update include.
10012 * remote-fileio.c: Update include.
10013 * record-full.c: Update include.
10014 * record-btrace.c: Update include.
10015 * python/python.c: Update include.
10016 * posix-hdep.c: Update include.
10017 * mingw-hdep.c: Update include.
10018 * mi/mi-main.c: Update include.
10019 * mi/mi-interp.c: Update include.
10020 * main.c: Update include.
10021 * linux-nat.c: Update include.
10022 * interps.c: Update include.
10023 * infrun.c: Update include.
10024 * inf-loop.c: Update include.
10025 * event-top.c: Update include.
10026 * event-loop.c: Move to ../gdbsupport/.
10027 * event-loop.h: Move to ../gdbsupport/.
10028 * async-event.h: Update include.
10029 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10030
93b54c8e
TT
100312020-04-13 Tom Tromey <tom@tromey.com>
10032
10033 * tui/tui-win.c: Include async-event.h.
10034 * remote.c: Include async-event.h.
10035 * remote-notif.c: Include async-event.h.
10036 * record-full.c: Include async-event.h.
10037 * record-btrace.c: Include async-event.h.
10038 * infrun.c: Include async-event.h.
10039 * event-top.c: Include async-event.h.
10040 * event-loop.h: Move some declarations to async-event.h.
10041 * event-loop.c: Don't include ser-event.h or top.h. Move some
10042 code to async-event.c.
10043 * async-event.h: New file.
10044 * async-event.c: New file.
10045 * Makefile.in (COMMON_SFILES): Add async-event.c.
10046 (HFILES_NO_SRCDIR): Add async-event.h.
10047
c1cd3163
TT
100482020-04-13 Tom Tromey <tom@tromey.com>
10049
10050 * utils.c (flush_streams): New function.
10051 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10052
29f2bf4f
TT
100532020-04-13 Tom Tromey <tom@tromey.com>
10054
10055 * event-loop.c (handle_file_event): Use warning, not
10056 printf_unfiltered.
10057
98029d02
TT
100582020-04-13 Tom Tromey <tom@tromey.com>
10059
10060 * event-loop.c: Include <chrono>.
10061
06cc9596
TT
100622020-04-13 Tom Tromey <tom@tromey.com>
10063
10064 * gdb_select.h: Move to ../gdbsupport/.
10065 * event-loop.c: Update include path.
10066 * top.c: Update include path.
10067 * ser-base.c: Update include path.
10068 * ui-file.c: Update include path.
10069 * ser-tcp.c: Update include path.
10070 * guile/scm-ports.c: Update include path.
10071 * posix-hdep.c: Update include path.
10072 * ser-unix.c: Update include path.
10073 * gdb_usleep.c: Update include path.
10074 * mingw-hdep.c: Update include path.
10075 * inflow.c: Update include path.
10076 * infrun.c: Update include path.
10077 * event-top.c: Update include path.
10078
8ae8e197
TT
100792020-04-13 Tom Tromey <tom@tromey.com>
10080
10081 * configure: Rebuild.
10082 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10083
58cf28e8
TT
100842020-04-13 Tom Tromey <tom@tromey.com>
10085
10086 * event-loop.h (start_event_loop): Don't declare.
10087 * event-loop.c (start_event_loop): Move...
10088 * main.c (start_event_loop): ...here. Now static.
10089
b7f999ae
SDJ
100902020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10091
10092 * MAINTAINERS: Update my email address.
10093
1085dfd4
KR
100942020-04-12 Kamil Rytarowski <n54@gmx.com>
10095
10096 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10097 IP_ALL.
10098
49d1d1f5
KR
100992020-04-12 Kamil Rytarowski <n54@gmx.com>
10100
10101 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10102 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10103
b4848d2a
KR
101042020-04-12 Kamil Rytarowski <n54@gmx.com>
10105
10106 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10107 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10108
51c133d5
KR
101092020-04-12 Kamil Rytarowski <n54@gmx.com>
10110
10111 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10112
54b8cbd0
KR
101132020-04-11 Kamil Rytarowski <n54@gmx.com>
10114
10115 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10116 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10117 (nbsd_nat_target::info_proc): New functions.
10118 * nbsd-nat.c (kinfo_get_vmmap): New function.
10119 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10120 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10121 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10122 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10123 functions.
10124 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10125 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10126 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10127 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10128 (KINFO_VME_FLAG_GROWS_DOWN): New.
10129
cf83625d
AS
101302020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10131
10132 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10133 bit shift.
10134
0c4311ab
TT
101352020-04-10 Tom Tromey <tromey@adacore.com>
10136
10137 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10138
3e65b3e9
TT
101392020-04-10 Tom Tromey <tromey@adacore.com>
10140
10141 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10142 separate debug files.
10143
13302e95
HD
101442020-04-10 Hannes Domani <ssbssa@yahoo.de>
10145
10146 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10147 Move to...
10148 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10149 ... here.
10150 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10151 Check for STATUS_WX86_BREAKPOINT.
10152 (windows_nat_target::wait): Same.
10153
bdfc1e8a
TV
101542020-04-10 Tom de Vries <tdevries@suse.de>
10155
10156 PR cli/25808
10157 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10158
f4460aec
SM
101592020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10160
10161 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10162 (Write After Approval): Remove Tom de Vries.
10163
a25198bb
BE
101642020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10165
10166 revert partially:
10167 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10168
aac66a4c
SM
10169 * buildsym.c (record_line): Fix undefined behavior and preserve
10170 lines at eof.
a25198bb 10171
206c98a6
KR
101722020-04-09 Kamil Rytarowski <n54@gmx.com>
10173
10174 * auxv.h (svr4_auxv_parse): New.
10175 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10176 and generic_auxv_parse.
10177 (svr4_auxv_parse): Add.
10178 * obsd-tdep.c: Include "auxv.h".
10179 (obsd_auxv_parse): Remove.
10180 (obsd_init_abi): Remove comment.
10181 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10182 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10183 * nbsd-tdep.c: Include "auxv.h".
10184 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10185
71fbdbaf
TT
101862020-04-08 Tom Tromey <tromey@adacore.com>
10187
10188 * nat/windows-nat.h (last_wait_event): Don't declare.
10189 (wait_for_debug_event): Update comment.
10190 * nat/windows-nat.c (last_wait_event): Now static.
10191
2c1d95e8
TT
101922020-04-08 Tom Tromey <tromey@adacore.com>
10193
10194 * windows-nat.c (wait_for_debug_event): Move to
10195 nat/windows-nat.c.
10196 * nat/windows-nat.h (wait_for_debug_event): Declare.
10197 * nat/windows-nat.c (wait_for_debug_event): Move from
10198 windows-nat.c. No longer static.
10199
d2977bc4
TT
102002020-04-08 Tom Tromey <tromey@adacore.com>
10201
10202 * windows-nat.c (get_windows_debug_event): Use
10203 fetch_pending_stop.
10204 * nat/windows-nat.h (fetch_pending_stop): Declare.
10205 * nat/windows-nat.c (fetch_pending_stop): New function.
10206
e758e19c
TT
102072020-04-08 Tom Tromey <tromey@adacore.com>
10208
10209 * windows-nat.c (windows_continue): Use matching_pending_stop and
10210 continue_last_debug_event.
10211 * nat/windows-nat.h (matching_pending_stop)
10212 (continue_last_debug_event): Declare.
10213 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10214 (matching_pending_stop, continue_last_debug_event): New
10215 functions.
10216
8d30e395
TT
102172020-04-08 Tom Tromey <tromey@adacore.com>
10218
10219 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10220 (handle_exception_result): Move to nat/windows-nat.h.
10221 (DEBUG_EXCEPTION_SIMPLE): Remove.
10222 (windows_nat::handle_ms_vc_exception): New function.
10223 (handle_exception): Move to nat/windows-nat.c.
10224 (get_windows_debug_event): Update.
10225 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10226 nat/windows-nat.c.
10227 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10228 (handle_exception_result): Move from windows-nat.c.
10229 (handle_exception): Declare.
10230 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10231 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10232 windows-nat.c.
10233
29de418d
TT
102342020-04-08 Tom Tromey <tromey@adacore.com>
10235
10236 * windows-nat.c (exception_count, event_count): Remove.
10237 (handle_exception, get_windows_debug_event)
10238 (do_initial_windows_stuff): Update.
10239
a816ba18
TT
102402020-04-08 Tom Tromey <tromey@adacore.com>
10241
10242 * windows-nat.c (windows_nat::handle_load_dll)
10243 (windows_nat::handle_unload_dll): Rename. No longer static.
10244 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10245 Declare.
10246
a00caa12
TT
102472020-04-08 Tom Tromey <tromey@adacore.com>
10248
10249 * complaints.h (stop_whining): Declare at top-level.
10250 (complaint): Don't declare stop_whining.
10251
d41b524f
TT
102522020-04-08 Tom Tromey <tromey@adacore.com>
10253
10254 * windows-nat.c (windows_nat::handle_output_debug_string):
10255 Rename. No longer static.
10256 * nat/windows-nat.h (handle_output_debug_string): Declare.
10257
3c76026d
TT
102582020-04-08 Tom Tromey <tromey@adacore.com>
10259
10260 * windows-nat.c (current_process_handle, current_process_id)
10261 (main_thread_id, last_sig, current_event, last_wait_event)
10262 (current_windows_thread, desired_stop_thread_id, pending_stops)
10263 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10264 (display_selectors, fake_create_process)
10265 (get_windows_debug_event): Update.
10266 * nat/windows-nat.h (current_process_handle, current_process_id)
10267 (main_thread_id, last_sig, current_event, last_wait_event)
10268 (current_windows_thread, desired_stop_thread_id, pending_stops)
10269 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10270 * nat/windows-nat.c (current_process_handle, current_process_id)
10271 (main_thread_id, last_sig, current_event, last_wait_event)
10272 (current_windows_thread, desired_stop_thread_id, pending_stops)
10273 (siginfo_er): New globals. Move from windows-nat.c.
10274
9d8679cc
TT
102752020-04-08 Tom Tromey <tromey@adacore.com>
10276
10277 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10278 (handle_load_dll): Update.
10279 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10280
28688adf
TT
102812020-04-08 Tom Tromey <tromey@adacore.com>
10282
10283 * windows-nat.c (enum thread_disposition_type): Move to
10284 nat/windows-nat.h.
10285 (windows_nat::thread_rec): Rename from thread_rec. No longer
10286 static.
10287 (windows_add_thread, windows_nat_target::fetch_registers)
10288 (windows_nat_target::store_registers, handle_exception)
10289 (windows_nat_target::resume, get_windows_debug_event)
10290 (windows_nat_target::get_tib_address)
10291 (windows_nat_target::thread_name)
10292 (windows_nat_target::thread_alive): Update.
10293 * nat/windows-nat.h (enum thread_disposition_type): Move from
10294 windows-nat.c.
10295 (thread_rec): Declare.
10296
4834dad0
TT
102972020-04-08 Tom Tromey <tromey@adacore.com>
10298
10299 * windows-nat.c: Add "using namespace".
10300 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10301 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10302
65bafd5b
TT
103032020-04-08 Tom Tromey <tromey@adacore.com>
10304
10305 * nat/windows-nat.h (struct windows_thread_info): Declare
10306 destructor.
10307 * nat/windows-nat.c (~windows_thread_info): New.
10308
0a4afda3
TT
103092020-04-08 Tom Tromey <tromey@adacore.com>
10310
10311 PR gdb/22992
10312 * windows-nat.c (current_event): Update comment.
10313 (last_wait_event, desired_stop_thread_id): New globals.
10314 (struct pending_stop): New.
10315 (pending_stops): New global.
10316 (windows_nat_target) <stopped_by_sw_breakpoint>
10317 <supports_stopped_by_sw_breakpoint>: New methods.
10318 (windows_fetch_one_register): Add assertions. Adjust PC.
10319 (windows_continue): Handle pending stops. Suspend other threads
10320 when stepping. Use last_wait_event
10321 (wait_for_debug_event): New function.
10322 (get_windows_debug_event): Use wait_for_debug_event. Handle
10323 pending stops. Queue spurious stops.
10324 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10325 (windows_nat_target::kill): Use wait_for_debug_event.
10326 * nat/windows-nat.h (struct windows_thread_info)
10327 <stopped_at_software_breakpoint>: New field.
10328 * nat/windows-nat.c (windows_thread_info::resume): Clear
10329 stopped_at_software_breakpoint.
10330
8e61ebec
TT
103312020-04-08 Tom Tromey <tromey@adacore.com>
10332
10333 * windows-nat.c (enum thread_disposition_type): New.
10334 (thread_rec): Replace "get_context" parameter with "disposition";
10335 change type.
10336 (windows_add_thread, windows_nat_target::fetch_registers)
10337 (windows_nat_target::store_registers, handle_exception)
10338 (windows_nat_target::resume, get_windows_debug_event)
10339 (windows_nat_target::get_tib_address)
10340 (windows_nat_target::thread_name)
10341 (windows_nat_target::thread_alive): Update.
10342
98a03287
TT
103432020-04-08 Tom Tromey <tromey@adacore.com>
10344
10345 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10346 (windows_continue): Use windows_continue::resume.
10347 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10348 resume>: Declare new methods.
10349 * nat/windows-nat.c: New file.
10350 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10351
7c7411bc
TT
103522020-04-08 Tom Tromey <tromey@adacore.com>
10353
10354 * windows-nat.c (windows_add_thread, windows_delete_thread)
10355 (windows_nat_target::fetch_registers)
10356 (windows_nat_target::store_registers, fake_create_process)
10357 (windows_nat_target::resume, windows_nat_target::resume)
10358 (get_windows_debug_event, windows_nat_target::wait)
10359 (windows_nat_target::pid_to_str)
10360 (windows_nat_target::get_tib_address)
10361 (windows_nat_target::get_ada_task_ptid)
10362 (windows_nat_target::thread_name)
10363 (windows_nat_target::thread_alive): Use lwp, not tid.
10364
2950fdf7
TT
103652020-04-08 Tom Tromey <tromey@adacore.com>
10366
10367 * windows-nat.c (handle_exception)
10368 (windows_nat_target::thread_name): Update.
10369 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10370 <name>: Now unique_xmalloc_ptr.
10371
62fe396b
TT
103722020-04-08 Tom Tromey <tromey@adacore.com>
10373
10374 * windows-nat.c (thread_rec)
10375 (windows_nat_target::fetch_registers): Update.
10376 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10377 Update comment.
10378 <debug_registers_changed, reload_context>: Now bool.
10379
e9534bd2
TT
103802020-04-08 Tom Tromey <tromey@adacore.com>
10381
10382 * windows-nat.c (windows_add_thread): Use new.
10383 (windows_init_thread_list, windows_delete_thread): Use delete.
10384 (get_windows_debug_event): Update.
10385 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10386 destructor, and initializers.
10387
ae1f8880
TT
103882020-04-08 Tom Tromey <tromey@adacore.com>
10389
10390 * windows-nat.c (struct windows_thread_info): Remove.
10391 * nat/windows-nat.h: New file.
10392
55a1e039
TT
103932020-04-08 Tom Tromey <tromey@adacore.com>
10394
10395 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10396 (thread_rec, windows_add_thread, windows_delete_thread)
10397 (windows_continue): Update.
10398
93366324
TT
103992020-04-08 Tom Tromey <tromey@adacore.com>
10400
10401 * windows-nat.c (struct windows_thread_info): Remove typedef.
10402 (thread_head): Remove.
10403 (thread_list): New global.
10404 (thread_rec, windows_add_thread, windows_init_thread_list)
10405 (windows_delete_thread, windows_continue): Update.
10406
0f2265e2
SM
104072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10408
10409 * windows-tdep.h (windows_init_abi): Add comment.
10410 (cygwin_init_abi): New declaration.
10411 * windows-tdep.c: Split signal enumeration in two, one for
10412 Windows and one for Cygwin.
10413 (windows_gdb_signal_to_target): Only deal with signal of the
10414 Windows OS ABI.
10415 (cygwin_gdb_signal_to_target): New function.
10416 (windows_init_abi): Rename to windows_init_abi_common, don't set
10417 gdb_signal_to_target gdbarch method. Add new new function with
10418 this name.
10419 (cygwin_init_abi): New function.
10420 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10421 comment. Don't call windows_init_abi.
10422 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10423 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10424 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10425 i386_windows_init_abi_common, don't call windows_init_abi. Add
10426 a new function of this name.
10427 (i386_cygwin_init_abi): New function.
10428 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10429 OS ABI Cygwin.
10430
3810f182
SM
104312020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10432
10433 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10434 parameter.c.
10435 (dwarf2_read_gdb_index): Update.
10436
063f8e80
KR
104372020-04-07 Kamil Rytarowski <n54@gmx.com>
10438
10439 * nbsd-tdep.c: Include "objfiles.h".
10440 (nbsd_skip_solib_resolver): New.
10441 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10442
85a9510c 104432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10444
10445 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10446 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10447 with DW_LLE_base_addressx are being emitted in DWARFv5.
10448 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10449 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10450 unsigned integer.
10451
9fc3eaae 104522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10453
10454 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10455 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10456 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10457 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10458 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10459 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10460 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10461
10462
41144253 104632020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10464
10465 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10466 (read_loclist_index): New function definition.
10467 (lookup_loclist_base): New function definition.
10468 (read_loclist_header): New function definition.
10469 (dwarf2_cu): Add loclist_base and loclist_header field.
10470 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10471 (read_full_die_1): Read the value of DW_AT_loclists_base.
10472 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10473 (read_attribute_value): Handle DW_FORM_loclistx.
10474 (skip_one_die): Handle DW_FORM_loclistx.
10475 (loclist_header): New structure declaration.
10476 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10477
9f4e76a4
SM
104782020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10479
10480 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10481 constructor. Remove `addr` parameter from other constructor and
10482 add `per_cu` parameter.
10483 * dwarf2/read.c (create_partial_symtab): Update.
10484
25c11aca
TV
104852020-04-07 Tom de Vries <tdevries@suse.de>
10486
10487 PR symtab/25796
10488 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10489 (partial_die_info::fixup): Inherit has_const_value.
10490
5707e24b
TV
104912020-04-07 Tom de Vries <tdevries@suse.de>
10492
10493 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10494 symbols without address.
10495
05f00e22
KR
104962020-04-06 Kamil Rytarowski <n54@gmx.com>
10497
10498 * nbsd-nat.h (struct thread_info): Add forward declaration.
10499 (nbsd_nat_target::thread_alive): Add.
10500 (nbsd_nat_target::thread_name): Likewise.
10501 (nbsd_nat_target::update_thread_list): Likewise.
10502 (update_thread_list::post_attach): Likewise.
10503 (post_attach::pid_to_str): Likewise.
10504 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10505 (nbsd_thread_lister): Add.
10506 (nbsd_nat_target::thread_alive): Likewise.
10507 (nbsd_nat_target::thread_name): Likewise.
10508 (nbsd_add_threads): Likewise.
10509 (update_thread_list::post_attach): Likewise.
10510 (nbsd_nat_target::update_thread_list): Likewise.
10511 (post_attach::pid_to_str): Likewise.
10512
6ee448cc
TT
105132020-04-06 Tom Tromey <tromey@adacore.com>
10514
10515 * ada-valprint.c (print_variant_part): Extract the variant field.
10516 (print_field_values): Use the field as the outer value when
10517 recursing.
10518
dea34e8c
TT
105192020-04-06 Tom Tromey <tromey@adacore.com>
10520
10521 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10522 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10523 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10524 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10525 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10526
93689ce9
TT
105272020-04-06 Tom Tromey <tromey@adacore.com>
10528
10529 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10530 TYPE_CODE_ERROR.
10531
79743962
KR
105322020-04-06 Kamil Rytarowski <n54@gmx.com>
10533
10534 * nbsd-tdep.c: Include "gdbarch.h".
10535 Define enum with NetBSD signal numbers.
10536 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10537 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10538 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10539 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10540 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10541 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10542 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10543 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10544 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10545 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10546 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10547 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10548
9e7c9a03
HD
105492020-04-03 Hannes Domani <ssbssa@yahoo.de>
10550
10551 PR gdb/25325
10552 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10553
d9e49b61
TT
105542020-04-03 Tom Tromey <tromey@adacore.com>
10555
10556 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10557 Read constant block.
10558
e0fc5c3f
SM
105592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10560
10561 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10562 (gdb_bfd_get_full_section_contents): New declaration.
10563 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10564 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10565 gdb_bfd_get_full_section_contents.
10566
e2ff18a0
SM
105672020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10568
10569 * exec.c (build_section_table): Replace internal_error with
10570 gdb_assert.
10571 (section_table_xfer_memory_partial): Likewise.
10572 * mdebugread.c (parse_partial_symbols): Likewise.
10573 * psymtab.c (lookup_partial_symbol): Likewise.
10574 * utils.c (wrap_here): Likewise.
10575
0830d301
TT
105762020-04-02 Tom Tromey <tromey@adacore.com>
10577
10578 * f-lang.c (build_fortran_types): Use arch_type to initialize
10579 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10580
e7da7f8f
TT
105812020-04-02 Tom Tromey <tromey@adacore.com>
10582
10583 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10584 of attributes.
10585
c90d28ac
AB
105862020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10587 Bernd Edlinger <bernd.edlinger@hotmail.de>
10588 Tom Tromey <tromey@adacore.com>
10589
10590 * buildsym.c (buildsym_compunit::record_line): Remove
10591 deduplication code.
10592
1aa98955
TV
105932020-04-02 Tom de Vries <tdevries@suse.de>
10594
10595 PR ada/24671
10596 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10597
d3214198
TV
105982020-04-02 Tom de Vries <tdevries@suse.de>
10599
10600 * dwarf2/read.c (dwarf2_gdb_index_functions,
10601 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10602 NULL.
10603 * psymtab.c (psym_lookup_global_symbol_language): New function.
10604 (psym_functions): Init psym_lookup_global_symbol_language with
10605 psym_lookup_global_symbol_language.
10606 * symfile-debug.c (debug_sym_quick_functions): Init
10607 lookup_global_symbol_language with NULL.
10608 * symfile.c (set_initial_language): Remove fixme comment.
10609 * symfile.h (struct quick_symbol_functions): Add
10610 lookup_global_symbol_language.
10611 * symtab.c (find_quick_global_symbol_language): New function.
10612 (find_main_name): Use find_quick_global_symbol_language.
10613
2836752f
SM
106142020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10615
10616 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10617
64dc2d4b
BE
106182020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10619
10620 * buildsym.c (record_line): Fix undefined behavior and preserve
10621 lines at eof.
10622
bbe3dc41
BE
106232020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10624
10625 * buildsym.c (record_line): Fix the resizing condition.
10626
6b4a335b
TT
106272020-04-01 Tom Tromey <tom@tromey.com>
10628
10629 * value.h (value_literal_complex): Add comment.
10630 * valops.c (value_literal_complex): Refer to value.h.
10631
3638a098
TT
106322020-04-01 Tom Tromey <tom@tromey.com>
10633
10634 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10635 (scalar_type): New rule, from typebase.
10636 (typebase): Use scalar_type. Recognize complex types.
10637 (field_name): Handle FLOAT_KEYWORD.
10638 (ident_tokens): Add _Complex and __complex__.
10639
c34e8714
TT
106402020-04-01 Tom Tromey <tom@tromey.com>
10641
10642 PR exp/25299:
10643 * valarith.c (promotion_type, complex_binop): New functions.
10644 (scalar_binop): Handle complex numbers. Use promotion_type.
10645 (value_pos, value_neg, value_complement): Handle complex numbers.
10646
fa649bb7
TT
106472020-04-01 Tom Tromey <tom@tromey.com>
10648
10649 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10650 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10651 (parse_number): Handle complex numbers.
10652
981c08ce
TT
106532020-04-01 Tom Tromey <tom@tromey.com>
10654
10655 * c-valprint.c (c_decorations): Change complex suffix to "i".
10656
4c99290d
TT
106572020-04-01 Tom Tromey <tom@tromey.com>
10658
10659 * valprint.c (generic_value_print_complex): Use accessors.
10660 * value.h (value_real_part, value_imaginary_part): Declare.
10661 * valops.c (value_real_part, value_imaginary_part): New
10662 functions.
10663 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10664
5b930b45
TT
106652020-04-01 Tom Tromey <tom@tromey.com>
10666
10667 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10668 (read_range_type): Update.
10669 * mdebugread.c (basic_type): Update.
10670 * go-lang.c (build_go_types): Use init_complex_type.
10671 * gdbtypes.h (struct main_type) <complex_type>: New member.
10672 (init_complex_type): Update.
10673 (arch_complex_type): Don't declare.
10674 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10675 Make name if none given. Use alloc_type_copy. Look for cached
10676 complex type.
10677 (arch_complex_type): Remove.
10678 (gdbtypes_post_init): Use init_complex_type.
10679 * f-lang.c (build_fortran_types): Use init_complex_type.
10680 * dwarf2/read.c (read_base_type): Update.
10681 * d-lang.c (build_d_types): Use init_complex_type.
10682 * ctfread.c (read_base_type): Update.
10683
53cccef1
TBA
106842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10685
10686 * infrun.c (stop_all_threads): Update assertion, plus when
10687 stopping threads, take into account that we might be trying
10688 to stop an all-stop target.
10689 (stop_waiting): Call 'stop_all_threads' if there exists a
10690 non-stop target.
10691
a0714d30
TBA
106922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10693
10694 * target.h (exists_non_stop_target): New function declaration.
10695 * target.c (exists_non_stop_target): New function.
10696
60e22c1e
HD
106972020-04-01 Hannes Domani <ssbssa@yahoo.de>
10698
10699 PR gdb/24789
10700 * eval.c (is_integral_or_integral_reference): New function.
10701 (evaluate_subexp_standard): Allow integer references in
10702 pointer arithmetic.
10703
e139a727
TBA
107042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10705
10706 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10707 check for no ptid in the stop reply when the target is non-stop.
10708
e0802d59
TT
107092020-04-01 Tom Tromey <tromey@adacore.com>
10710
10711 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10712 "name" parameter to rvalue reference. Initialize m_name_holder.
10713 <lookup_name_info>: New overloads.
10714 <name>: Return gdb::string_view.
10715 <c_str>: New method.
10716 <make_ignore_params>: Update.
10717 <search_name_hash>: Update.
10718 <language_lookup_name>: Return const char *.
10719 <m_name>: Change type.
10720 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10721 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10722 (lookup_name_info::match_any): Update.
10723 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10724 Update.
10725 * minsyms.c (linkage_name_str): Update.
10726 * language.c (default_symbol_name_matcher): Update.
10727 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10728 Update.
10729 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10730 (ada_lookup_name_info::ada_lookup_name_info): Update.
10731 (literal_symbol_name_matcher): Update.
10732
8c072cb6
TT
107332020-04-01 Tom Tromey <tromey@adacore.com>
10734
10735 * psymtab.c (psymtab_search_name): Remove function.
10736 (psym_lookup_symbol): Create search name and lookup name here.
10737 (lookup_partial_symbol): Remove "name" parameter; add
10738 lookup_name.
10739 (psym_expand_symtabs_for_function): Update.
10740
6f29a534
TT
107412020-03-31 Joel Jones <joelkevinjones@gmail.com>
10742
10743 PR tui/25597:
10744 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10745
af62665e
TT
107462020-03-31 Tom Tromey <tromey@adacore.com>
10747
10748 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10749 memcpy.
10750
d1a89da5
NC
107512020-03-30 Nelson Chu <nelson.chu@sifive.com>
10752
10753 * features/riscv/32bit-csr.xml: Regenerated.
10754 * features/riscv/64bit-csr.xml: Regenerated.
10755
d8af9068
TT
107562020-03-30 Tom Tromey <tromey@adacore.com>
10757
10758 * ada-valprint.c (print_variant_part): Update.
10759 * ada-lang.h (ada_which_variant_applies): Update.
10760 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10761 outer_valaddr parameters; replace with "outer" value parameter.
10762 (to_fixed_variant_branch_type): Update.
10763
227c0bf4
PFC
107642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10765
10766 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10767 <list>. Remove inclusion of observable.h.
10768 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10769 (struct arch_lwp_info): New struct.
10770 (class ppc_linux_dreg_interface): New class.
10771 (struct ppc_linux_process_info): New struct.
10772 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10773 <low_new_clone, low_forget_process, low_prepare_to_resume>
10774 <copy_thread_dreg_state, mark_thread_stale>
10775 <mark_debug_registers_changed, register_hw_breakpoint>
10776 <clear_hw_breakpoint, register_wp, clear_wp>
10777 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10778 <num_memory_accesses, get_trigger_type>
10779 <create_watchpoint_request, hwdebug_point_cmp>
10780 <init_arch_lwp_info, get_arch_lwp_info>
10781 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10782 methods.
10783 <struct ptid_hash>: New inner struct.
10784 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10785 members.
10786 (saved_dabr_value, hwdebug_info, max_slots_number)
10787 (struct hw_break_tuple, struct thread_points, ppc_threads)
10788 (have_ptrace_hwdebug_interface)
10789 (hwdebug_find_thread_points_by_tid)
10790 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10791 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10792 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10793 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10794 use m_dreg_interface.
10795 (hwdebug_point_cmp): Change to...
10796 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10797 reference arguments instead of pointers.
10798 (ppc_linux_nat_target::ranged_break_num_registers): Use
10799 m_dreg_interface.
10800 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10801 m_dreg_interface. Call register_hw_breakpoint.
10802 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10803 m_dreg_interface. Call clear_hw_breakpoint.
10804 (get_trigger_type): Change to...
10805 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10806 comment.
10807 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10808 use m_dreg_interface. Call register_hw_breakpoint.
10809 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10810 use m_dreg_interface. Call clear_hw_breakpoint.
10811 (can_use_watchpoint_cond_accel): Change to...
10812 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10813 method. Update comment, use m_dreg_interface and
10814 m_process_info.
10815 (calculate_dvc): Change to...
10816 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10817 m_dreg_interface.
10818 (num_memory_accesses): Change to...
10819 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10820 (check_condition): Change to...
10821 (ppc_linux_nat_target::check_condition): ...this method.
10822 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10823 comment, use m_dreg_interface.
10824 (create_watchpoint_request): Change to...
10825 (ppc_linux_nat_target::create_watchpoint_request): ...this
10826 method. Use m_dreg_interface.
10827 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10828 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10829 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10830 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10831 (ppc_linux_nat_target::low_forget_process)
10832 (ppc_linux_nat_target::low_new_fork)
10833 (ppc_linux_nat_target::low_new_clone)
10834 (ppc_linux_nat_target::low_delete_thread)
10835 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10836 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10837 only call mark_thread_stale.
10838 (ppc_linux_thread_exit): Remove.
10839 (ppc_linux_nat_target::stopped_data_address): Change to...
10840 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10841 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10842 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10843 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10844 comment. Call low_stopped_data_address.
10845 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10846 m_dreg_interface.
10847 (ppc_linux_nat_target::masked_watch_num_registers): Use
10848 m_dreg_interface.
10849 (ppc_linux_nat_target::copy_thread_dreg_state)
10850 (ppc_linux_nat_target::mark_thread_stale)
10851 (ppc_linux_nat_target::mark_debug_registers_changed)
10852 (ppc_linux_nat_target::register_hw_breakpoint)
10853 (ppc_linux_nat_target::clear_hw_breakpoint)
10854 (ppc_linux_nat_target::register_wp)
10855 (ppc_linux_nat_target::clear_wp)
10856 (ppc_linux_nat_target::init_arch_lwp_info)
10857 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10858 (_initialize_ppc_linux_nat): Remove observer callback.
10859
4db10d8f
PFC
108602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10861
10862 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10863 (ppc_linux_nat_target::auxv_parse)
10864 (ppc_linux_nat_target::read_description)
10865 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10866 Move up.
10867
1310c1b0
PFC
108682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10869
10870 * linux-nat.h (low_new_clone): New method.
10871 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10872
69b037c3
SM
108732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10874
10875 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10876 (dbx_expand_psymtab): ... this.
10877 (start_psymtab): Update.
10878 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10879 (mdebug_expand_psymtab): ... this.
10880 (parse_partial_symbols): Update.
10881 (new_psymtab): Update.
10882 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10883 (xcoff_expand_psymtab): ... this.
10884 (xcoff_start_psymtab): Update.
10885
48993951
SM
108862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10887
10888 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10889 <expand_dependencies>: ... this.
10890 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10891 (partial_symtab::expand_dependencies): ... this.
10892 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10893 Update.
10894 (dwarf2_psymtab::expand_psymtab): Update.
10895 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10896 * mdebugread.c (psymtab_to_symtab_1): Update.
10897 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10898
3ad83046
SM
108992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10900
10901 * psympriv.h (discard_psymtab): Remove.
10902 * dbxread.c (dbx_end_psymtab): Update.
10903 * xcoffread.c (xcoff_end_psymtab): Update.
10904
4d1b9ab6
TT
109052020-03-28 Tom Tromey <tom@tromey.com>
10906
10907 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10908 comment.
10909
f1749218
TT
109102020-03-28 Tom Tromey <tom@tromey.com>
10911
10912 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10913
ebea7626
HD
109142020-03-27 Hannes Domani <ssbssa@yahoo.de>
10915
10916 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10917
a879b4d5
JB
109182020-03-26 John Baldwin <jhb@FreeBSD.org>
10919
10920 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10921
0826b30a
TT
109222020-03-26 Tom Tromey <tom@tromey.com>
10923
10924 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10925 (mark_common_block_symbol_computed, read_tag_string_type)
10926 (attr_to_dynamic_prop, read_subrange_type): Update.
10927 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10928 to be methods on struct attribute.
10929 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10930 (read_call_site_scope, partial_die_info::read)
10931 (partial_die_info::read, lookup_die_type, follow_die_ref):
10932 Update.
10933 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10934 from dwarf2_get_ref_die_offset.
10935 (attribute::constant_value): New method, from
10936 dwarf2_get_attr_constant_value.
10937 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10938 Declare method.
10939 <constant_value>: New method.
10940
2b2558bf
TT
109412020-03-26 Tom Tromey <tom@tromey.com>
10942
10943 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10944 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10945 (dwarf_type_encoding_name): Move to stringify.c.
10946 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10947 * dwarf2/stringify.c: New file.
10948 * dwarf2/stringify.h: New file.
10949
eeb64781
TT
109502020-03-26 Tom Tromey <tom@tromey.com>
10951
10952 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10953 Rewrite.
10954
a39fdb41
TT
109552020-03-26 Tom Tromey <tom@tromey.com>
10956
10957 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10958 methods.
10959 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10960 (lookup_ranges_base): Likewise.
10961 (read_cutu_die_from_dwo, read_full_die_1): Update.
10962
436c571c
TT
109632020-03-26 Tom Tromey <tom@tromey.com>
10964
10965 * dwarf2/read.c (read_import_statement, read_file_scope)
10966 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10967 (read_lexical_block_scope, read_call_site_scope)
10968 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10969 (handle_struct_member_die, process_structure_scope)
10970 (update_enumeration_type_from_children)
10971 (process_enumeration_scope, read_array_type, read_common_block)
10972 (read_namespace, read_module, read_subroutine_type): Update.
10973 (sibling_die): Remove.
10974
052c8bb8
TT
109752020-03-26 Tom Tromey <tom@tromey.com>
10976
10977 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10978 (build_type_psymtabs_reader, read_structure_type)
10979 (read_enumeration_type, read_full_die_1): Update.
10980 (dwarf2_attr_no_follow): Move to die.h.
10981 * dwarf2/die.h (struct die_info) <attr>: New method.
10982
2b24b6e4
TT
109832020-03-26 Tom Tromey <tom@tromey.com>
10984
10985 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10986 <base_address>: Now an optional.
10987 (dwarf2_find_base_address, dwarf2_rnglists_process)
10988 (dwarf2_ranges_process, fill_in_loclist_baton)
10989 (dwarf2_symbol_mark_computed): Update.
10990
c2d50fd0
TT
109912020-03-26 Tom Tromey <tom@tromey.com>
10992
10993 * dwarf2/read.c (struct die_info): Move to die.h.
10994 * dwarf2/die.h: New file.
10995
0df7ad3a
TT
109962020-03-26 Tom Tromey <tom@tromey.com>
10997
10998 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10999 * dwarf2/read.c
11000 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11001 Move to line-header.c.
11002 (read_checked_initial_length_and_offset, read_formatted_entries):
11003 Likewise.
11004 (dwarf_decode_line_header): Split into two.
11005 * dwarf2/line-header.c
11006 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11007 Move from read.c.
11008 (read_checked_initial_length_and_offset, read_formatted_entries):
11009 Likewise.
11010 (dwarf_decode_line_header): New function, split from read.c.
11011
86c0bb4c
TT
110122020-03-26 Tom Tromey <tom@tromey.com>
11013
11014 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11015 Declare method.
11016 * dwarf2/read.c (read_attribute_value): Update.
11017 (dwarf2_per_objfile::read_line_string): Rename from
11018 read_indirect_line_string.
11019 (read_formatted_entries): Update.
11020
2ef46c2f
TT
110212020-03-26 Tom Tromey <tom@tromey.com>
11022
11023 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11024 variable.
11025
4f9c1eda
TT
110262020-03-26 Tom Tromey <tom@tromey.com>
11027
11028 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11029 const.
11030 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11031 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11032 parameter const.
11033
5a0e026f
TT
110342020-03-26 Tom Tromey <tom@tromey.com>
11035
11036 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11037 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11038 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11039 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11040
8844c11b
TT
110412020-03-26 Tom Tromey <tom@tromey.com>
11042
11043 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11044 file_names_size, file_full_name, file_file_name>: Use const.
11045 <file_name_at, file_names>: Add const overload.
11046 * dwarf2/line-header.c (line_header::file_file_name)
11047 (line_header::file_full_name): Update.
11048
c90ec28a
TT
110492020-03-26 Tom Tromey <tom@tromey.com>
11050
11051 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11052 (macro_start_file, consume_improper_spaces)
11053 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11054 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11055 (dwarf_decode_macros): Move to macro.c.
11056 * dwarf2/macro.c: New file.
11057 * dwarf2/macro.h: New file.
11058 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11059
4f44ae6c
TT
110602020-03-26 Tom Tromey <tom@tromey.com>
11061
11062 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11063 method.
11064 * dwarf2/section.c: New method. From
11065 read_indirect_string_at_offset_from.
11066 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11067 (read_indirect_string_at_offset_from): Move to section.c.
11068 (read_indirect_string_at_offset): Rewrite.
11069 (read_indirect_line_string_at_offset): Remove.
11070 (read_indirect_string, read_indirect_line_string)
11071 (dwarf_decode_macro_bytes): Update.
11072
a0194fa8
TT
110732020-03-26 Tom Tromey <tom@tromey.com>
11074
11075 * dwarf2/section.h (struct dwarf2_section_info)
11076 <overload_complaint>: Declare.
11077 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11078 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11079 Rename from dwarf2_section_buffer_overflow_complaint.
11080 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11081 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11082
3d27bbdb
TT
110832020-03-26 Tom Tromey <tom@tromey.com>
11084
11085 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11086 Declare.
11087 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11088 Move from read.c.
11089 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11090 to section.c.
11091
9eac9650
TT
110922020-03-26 Tom Tromey <tom@tromey.com>
11093
11094 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11095
bf80d710
TT
110962020-03-26 Tom Tromey <tom@tromey.com>
11097
11098 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11099 "builder".
11100 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11101 parameter.
11102 (dwarf_decode_macros): Update.
11103
0314b390
TT
111042020-03-26 Tom Tromey <tom@tromey.com>
11105
11106 * dwarf2/read.c (read_attribute_value): Update.
11107 (read_indirect_string_from_dwz): Move to dwz.c; change into
11108 method.
11109 (dwarf_decode_macro_bytes): Update.
11110 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11111 * dwarf2/dwz.c: New file.
11112 * Makefile.in (COMMON_SFILES): Add dwz.c.
11113
9fda78b6
TT
111142020-03-26 Tom Tromey <tom@tromey.com>
11115
11116 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11117 * dwarf2/read.c: Add include.
11118 * dwarf2/index-write.c: Add include.
11119 * dwarf2/index-cache.c: Add include.
11120 * dwarf2/dwz.h: New file.
11121
33aa3c10
TT
111222020-03-25 Tom Tromey <tom@tromey.com>
11123
11124 * compile/compile-object-load.c (get_out_value_type): Mention
11125 correct symbol name in error message.
11126
d503b685
HD
111272020-03-25 Hannes Domani <ssbssa@yahoo.de>
11128
11129 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11130
7b1eff95
TV
111312020-03-25 Tom de Vries <tdevries@suse.de>
11132
11133 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11134 * symmisc.c (dump_symtab_1): Print user and includes fields.
11135 (maintenance_info_symtabs): Same.
11136
dd895392
AB
111372020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11138
11139 PR gdb/25534
11140 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11141 (riscv_regcache_cooked_write): New function.
11142 (riscv_push_dummy_call): Use new function.
11143 (riscv_return_value): Likewise.
11144
5ab2fbf1
SM
111452020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11146
11147 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11148 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11149 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11150 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11151 * infrun.c (follow_fork): Likewise.
11152 (follow_fork_inferior): Likewise.
11153 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11154 * linux-nat.h (class linux_nat_target): Likewise.
11155 * remote.c (class remote_target) <follow_fork>: Likewise.
11156 (remote_target::follow_fork): Likewise.
11157 * target-delegates.c: Re-generate.
11158 * target.c (default_follow_fork): Likewise.
11159 (target_follow_fork): Likewise.
11160 * target.h (struct target_ops) <follow_fork>: Likewise.
11161 (target_follow_fork): Likewise.
11162
a64fafb5
TV
111632020-03-24 Tom de Vries <tdevries@suse.de>
11164
11165 * psymtab.c (maintenance_info_psymtabs): Print user field.
11166
fe26d3a3
TT
111672020-03-20 Tom Tromey <tromey@adacore.com>
11168
11169 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11170 const.
11171 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11172 const.
11173
c884cc46
SM
111742020-03-20 Simon Marchi <simon.marchi@efficios.com>
11175
11176 * ptrace.m4: Don't check for ptrace declaration.
11177 * config.in: Re-generate.
11178 * configure: Re-generate.
11179 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11180 not defined.
11181
1ff700c2
KR
111822020-03-20 Kamil Rytarowski <n54@gmx.com>
11183
11184 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11185 `PTRACE_TYPE_RET'.
11186 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11187 * sparc-nat.c (gdb_ptrace): Likewise.
11188 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11189
f7d4f0b1
TT
111902020-03-20 Tom Tromey <tromey@adacore.com>
11191
11192 * c-exp.y (lex_one_token): Fix assert.
11193
f67210ff
TT
111942020-03-20 Tom Tromey <tromey@adacore.com>
11195
11196 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11197 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11198 strncpy call.
11199
1773be9e
TT
112002020-03-20 Tom Tromey <tromey@adacore.com>
11201
11202 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11203
70304be9
TT
112042020-03-20 Tom Tromey <tromey@adacore.com>
11205
11206 * ada-valprint.c (print_variant_part): Remove parameters; switch
11207 to value-based API.
11208 (print_field_values): Likewise.
11209 (ada_val_print_struct_union): Likewise.
11210 (ada_value_print_1): Update.
11211
9faa006d
KR
112122020-03-20 Kamil Rytarowski <n54@gmx.com>
11213
11214 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11215 nbsd_nat_target instead of inf_ptrace_target.
11216 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11217 nbsd_nat_target.
11218
4a90f062
KR
112192020-03-20 Kamil Rytarowski <n54@gmx.com>
11220
11221 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11222 it to the ptrace call.
11223 * (store_registers): Likewise.
11224
112252020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11226
11227 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11228 it to the ptrace call.
11229 * (store_registers): Likewise.
11230
2d07da27
LM
112312020-03-19 Luis Machado <luis.machado@linaro.org>
11232
11233 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11234 valid, fetch vg value from ptrace.
11235
f09db380
KR
112362020-03-19 Kamil Rytarowski <n54@gmx.com>
11237 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11238 * inf-ptrace.c: Likewise.
11239 * (gdb_ptrace): Add.
11240 * (inf_ptrace_target::resume): Update.
11241 * (inf_ptrace_target::xfer_partial): Likewise.
11242 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11243 * (inf_ptrace_peek_poke): Update.
11244
fcc7376e
KR
112452020-03-19 Kamil Rytarowski <n54@gmx.com>
11246
11247 * x86-bsd-nat.c (gdb_ptrace): New.
11248 * (x86bsd_dr_set): Add new argument `ptid'.
11249 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11250 x86bsd_dr_set_addr): Update.
11251
cada5fc9
AB
112522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11253
11254 * remote.c (remote_target::process_stop_reply): Handle events for
11255 all threads differently.
11256
19a2740f
AB
112572020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11258
11259 * completer.c (completion_tracker::remove_completion): Define new
11260 function.
11261 * completer.h (completion_tracker::remove_completion): Declare new
11262 function.
11263 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11264 when adding a C++ function symbol.
11265
724fd9ba
AB
112662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11267
11268 * completer.c (completion_tracker::completion_hash_entry): Define
11269 new class.
11270 (advance_to_filename_complete_word_point): Call
11271 recompute_lowest_common_denominator.
11272 (completion_tracker::completion_tracker): Call discard_completions
11273 to setup the hash table.
11274 (completion_tracker::discard_completions): Allow for being called
11275 from the constructor, pass new equal function, and element deleter
11276 when constructing the hash table. Initialise new class member
11277 variables.
11278 (completion_tracker::maybe_add_completion): Remove use of
11279 m_entries_vec, and store more information into m_entries_hash.
11280 (completion_tracker::recompute_lcd_visitor): New function, most
11281 content taken from...
11282 (completion_tracker::recompute_lowest_common_denominator):
11283 ...here, this now just visits each item in the hash calling the
11284 above visitor.
11285 (completion_tracker::build_completion_result): Remove use of
11286 m_entries_vec, call recompute_lowest_common_denominator.
11287 * completer.h (completion_tracker::have_completions): Remove use
11288 of m_entries_vec.
11289 (completion_tracker::completion_hash_entry): Declare new class.
11290 (completion_tracker::recompute_lowest_common_denominator): Change
11291 function signature.
11292 (completion_tracker::recompute_lcd_visitor): Declare new function.
11293 (completion_tracker::m_entries_vec): Delete.
11294 (completion_tracker::m_entries_hash): Initialize to NULL.
11295 (completion_tracker::m_lowest_common_denominator_valid): New
11296 member variable.
11297 (completion_tracker::m_lowest_common_denominator_max_length): New
11298 member variable.
11299
5a82b8a1
KR
113002020-03-17 Kamil Rytarowski <n54@gmx.com>
11301
11302 * regformats/regdef.h: Put reg in gdb namespace.
11303
fb516a69
KR
113042020-03-17 Kamil Rytarowski <n54@gmx.com>
11305
11306 * i386-bsd-nat.c (gdb_ptrace): New.
11307 * (i386bsd_fetch_inferior_registers,
11308 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11309 * (i386bsd_fetch_inferior_registers,
11310 i386bsd_store_inferior_registers) Use gdb_ptrace.
11311
1c0aa1fb
KR
113122020-03-17 Kamil Rytarowski <n54@gmx.com>
11313
11314 * amd64-bsd-nat.c (gdb_ptrace): New.
11315 * (amd64bsd_fetch_inferior_registers,
11316 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11317 * (amd64bsd_fetch_inferior_registers,
11318 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11319
5ccd2fb7
KR
113202020-03-17 Kamil Rytarowski <n54@gmx.com>
11321
11322 * user-regs.c (user_reg::read): Rename to...
11323 (user_reg::xread): ...this.
11324 * (append_user_reg): Rename argument `read' to `xread'.
11325 * (user_reg_add_builtin): Likewise.
11326 * (user_reg_add): Likewise.
11327 * (value_of_user_reg): Likewise.
11328
2108a63a
KR
113292020-03-17 Kamil Rytarowski <n54@gmx.com>
11330
11331 * sparc-nat.c (gdb_ptrace): New.
11332 * sparc-nat.c (sparc_fetch_inferior_registers)
11333 (sparc_store_inferior_registers) Remove obsolete comment.
11334 * sparc-nat.c (sparc_fetch_inferior_registers)
11335 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11336 * sparc-nat.c (sparc_fetch_inferior_registers)
11337 (sparc_store_inferior_registers) Use gdb_ptrace.
11338
a225c9a8
KR
113392020-03-17 Kamil Rytarowski <n54@gmx.com>
11340
11341 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11342 it to the ptrace call.
11343 * sh-nbsd-nat.c (store_registers): Likewise.
11344
98097623
KR
113452020-03-17 Kamil Rytarowski <n54@gmx.com>
11346
11347 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11348 nbsd_nat_target instead of inf_ptrace_target.
11349 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11350 nbsd_nat_target.
11351
9e38d619
KR
113522020-03-17 Kamil Rytarowski <n54@gmx.com>
11353
11354 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11355
a2ecbe9f
KR
113562020-03-17 Kamil Rytarowski <n54@gmx.com>
11357
11358 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11359 <sys/sysctl.h>.
11360 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11361
58990295
TV
113622020-03-17 Tom de Vries <tdevries@suse.de>
11363
11364 PR gdb/23710
11365 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11366 fields.
11367 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11368 fields.
11369 (process_imported_unit_die): Skip import of c++ CUs.
11370
771dd3a8
TT
113712020-03-16 Tom Tromey <tom@tromey.com>
11372
11373 * p-valprint.c (pascal_object_print_value): Initialize
11374 base_value.
11375
817a7585
AK
113762020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11377 Shahab Vahedi <shahab@synopsys.com>
11378
11379 * Makefile.in: Add arch/arc.o
11380 * configure.tgt: Likewise.
11381 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11382 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11383 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11384 * arc-tdep.h (arc_read_description): Add proto type.
11385 * arch/arc.c: New file.
11386 * arch/arc.h: Likewise.
11387 * features/Makefile: Replace old target descriptions with new.
11388 * features/arc-arcompact.c: Remove.
11389 * features/arc-arcompact.xml: Likewise.
11390 * features/arc-v2.c: Likewise
11391 * features/arc-v2.xml: Likewise
11392 * features/arc/aux-arcompact.xml: New file.
11393 * features/arc/aux-v2.xml: Likewise.
11394 * features/arc/core-arcompact.xml: Likewise.
11395 * features/arc/core-v2.xml: Likewise.
11396 * features/arc/aux-arcompact.c: Generate.
11397 * features/arc/aux-v2.c: Likewise.
11398 * features/arc/core-arcompact.c: Likewise.
11399 * features/arc/core-v2.c: Likewise.
11400 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11401
67430cd0
TT
114022020-03-16 Tom Tromey <tromey@adacore.com>
11403
11404 PR gdb/25663:
11405 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11406 putting value into bcache.
11407
30efb6c7
SM
114082020-03-16 Simon Marchi <simon.marchi@efficios.com>
11409
11410 PR gdb/21500
11411 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11412 to...
11413 (amd64_windows_init_abi_common): ... this. Don't set size of
11414 long type.
11415 (amd64_windows_init_abi): New function.
11416 (amd64_cygwin_init_abi): New function.
11417 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11418 the Cygwin OS ABI.
11419 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11420 comment.
11421
8db52437
SM
114222020-03-16 Simon Marchi <simon.marchi@efficios.com>
11423
11424 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11425 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11426 (pe_import_directory_entry): New struct type.
11427 (is_linked_with_cygwin_dll): New function.
11428 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11429 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11430 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11431
5982a56a
SM
114322020-03-16 Simon Marchi <simon.marchi@efficios.com>
11433
11434 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11435 i386_cygwin_core_osabi_sniffer.
11436
7a1998df
SM
114372020-03-16 Simon Marchi <simon.marchi@efficios.com>
11438
11439 * i386-cygwin-tdep.c: Rename to...
11440 * i386-windows-tdep.c: ... this.
11441 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11442 i386-windows-tdep.c.
11443 * configure.tgt: Likewise.
11444
053205cc
SM
114452020-03-16 Simon Marchi <simon.marchi@efficios.com>
11446
11447 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11448 * osabi.c (gdb_osabi_names): Add "Windows".
11449 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11450 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11451 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11452 i386_cygwin_osabi_sniffer.
11453 (_initialize_i386_cygwin_tdep): Register OS ABI
11454 GDB_OSABI_WINDOWS for i386.
11455 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11456 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11457 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11458 for x86-64.
11459 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11460 when the target matches '*-*-mingw*'.
11461
fe4b2ee6
SM
114622020-03-16 Simon Marchi <simon.marchi@efficios.com>
11463
11464 * defs.h (enum gdb_osabi): Move to...
11465 * osabi.h (enum gdb_osabi): ... here.
11466 * gdbarch.sh: Include osabi.h in gdbarch.h.
11467 * gdbarch.h: Re-generate.
11468
cb9b645d
SM
114692020-03-16 Simon Marchi <simon.marchi@efficios.com>
11470
11471 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11472 function.
11473 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11474
3293bbaf
TT
114752020-03-14 Tom Tromey <tom@tromey.com>
11476
11477 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11478 for C++.
11479 (c_type_print_modifier): Likewise. Add "language" parameter.
11480 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11481 (c_type_print_base_1): Update.
11482 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11483 constants.
11484 * type-stack.c (type_stack::insert): Handle tp_atomic and
11485 tp_restrict.
11486 (type_stack::follow_type_instance_flags): Likewise.
11487 (type_stack::follow_types): Likewise. Merge type-following code.
11488 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11489 (space_identifier, cv_with_space_id)
11490 (const_or_volatile_or_space_identifier_noopt)
11491 (const_or_volatile_or_space_identifier): Remove.
11492 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11493 rules.
11494 (ptr_operator, typebase): Update.
11495 (enum token_flag) <FLAG_C>: New constant.
11496 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11497 "_Atomic".
11498 (lex_one_token): Handle FLAG_C.
11499
154151a6
KR
115002020-03-14 Kamil Rytarowski <n54@gmx.com>
11501
11502 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11503 it to the ptrace call.
11504 * m68k-bsd-nat.c (store_registers): Likewise.
11505
bc107784
KR
115062020-03-14 Kamil Rytarowski <n54@gmx.com>
11507
11508 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11509 gdb_byte *.
11510 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11511 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11512 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11513
01a80117
KR
115142020-03-14 Kamil Rytarowski <n54@gmx.com>
11515
11516 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11517 nbsd_nat_target instead of inf_ptrace_target.
11518 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11519 nbsd_nat_target.
11520
f90280ca
KR
115212020-03-14 Kamil Rytarowski <n54@gmx.com>
11522
11523 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11524 register_t.
11525
6def66f1
KR
115262020-03-14 Kamil Rytarowski <n54@gmx.com>
11527
11528 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11529 it to the ptrace call.
11530 * alpha-bsd-nat.c (store_registers): Likewise.
11531
66eaca97
KR
115322020-03-14 Kamil Rytarowski <n54@gmx.com>
11533
11534 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11535 includes.
11536 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11537 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11538 fill_fpregset): Likewise.
11539
4fed520b
KR
115402020-03-14 Kamil Rytarowski <n54@gmx.com>
11541
11542 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11543 nbsd_nat_target instead of inf_ptrace_target.
11544 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11545 nbsd_nat_target.
11546
2190cf06
KR
115472020-03-14 Kamil Rytarowski <n54@gmx.com>
11548
11549 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11550 register_t.
11551
75c56d3d
KR
115522020-03-14 Kamil Rytarowski <n54@gmx.com>
11553
11554 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11555 it to the ptrace call.
11556 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11557 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11558 * arm-nbsd-nat.c (store_register): Likewise.
11559 * arm-nbsd-nat.c (store_regs): Likewise.
11560 * arm-nbsd-nat.c (store_fp_register): Likewise.
11561 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11562
6018d381
KR
115632020-03-14 Kamil Rytarowski <n54@gmx.com>
11564
11565 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11566 nbsd_nat_target instead of inf_ptrace_target.
11567 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11568 nbsd_nat_target.
11569
013f99f0
KR
115702020-03-14 Kamil Rytarowski <n54@gmx.com>
11571
11572 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11573 it to the ptrace call.
11574 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11575
12753073
KR
115762020-03-14 Kamil Rytarowski <n54@gmx.com>
11577
6227b330
KR
11578 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11579 it to the ptrace call.
11580 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11581
115822020-03-14 Kamil Rytarowski <n54@gmx.com>
11583
11584 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11585 gdb_byte *.
12753073
KR
11586 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11587
d5be5fa4
KR
115882020-03-14 Kamil Rytarowski <n54@gmx.com>
11589
11590 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11591 instead of inf_ptrace_target.
11592 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11593 nbsd_nat_target.
11594
8110f842
KR
115952020-03-14 Kamil Rytarowski <n54@gmx.com>
11596
11597 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11598 register_t.
11599
52feded7
KR
116002020-03-14 Kamil Rytarowski <n54@gmx.com>
11601
11602 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11603 register_t.
11604
25567eee
KR
116052020-03-14 Kamil Rytarowski <n54@gmx.com>
11606
11607 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11608 register_t.
11609
426a9c18
TT
116102020-03-13 Tom Tromey <tom@tromey.com>
11611
11612 * value.h (val_print): Don't declare.
11613 * valprint.h (val_print_array_elements)
11614 (val_print_scalar_formatted, generic_val_print): Don't declare.
11615 * valprint.c (generic_val_print_array): Take a struct value.
11616 (generic_val_print_ptr, generic_val_print_memberptr)
11617 (generic_val_print_bool, generic_val_print_int)
11618 (generic_val_print_char, generic_val_print_complex)
11619 (generic_val_print): Remove.
11620 (generic_value_print): Update.
11621 (do_val_print): Remove unused parameters. Don't call
11622 la_val_print.
11623 (val_print): Remove.
11624 (common_val_print): Update. Don't call value_check_printable.
11625 (val_print_scalar_formatted, val_print_array_elements): Remove.
11626 * rust-lang.c (rust_val_print): Remove.
11627 (rust_language_defn): Update.
11628 * p-valprint.c (pascal_val_print): Remove.
11629 (pascal_value_print_inner): Update.
11630 (pascal_object_print_val_fields, pascal_object_print_val):
11631 Remove.
11632 (pascal_object_print_static_field): Update.
11633 * p-lang.h (pascal_val_print): Don't declare.
11634 * p-lang.c (pascal_language_defn): Update.
11635 * opencl-lang.c (opencl_language_defn): Update.
11636 * objc-lang.c (objc_language_defn): Update.
11637 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11638 * m2-lang.h (m2_val_print): Don't declare.
11639 * m2-lang.c (m2_language_defn): Update.
11640 * language.h (struct language_defn) <la_val_print>: Remove.
11641 * language.c (unk_lang_value_print_inner): Rename. Change
11642 argument types.
11643 (unknown_language_defn, auto_language_defn): Update.
11644 * go-valprint.c (go_val_print): Remove.
11645 * go-lang.h (go_val_print): Don't declare.
11646 * go-lang.c (go_language_defn): Update.
11647 * f-valprint.c (f_val_print): Remove.
11648 * f-lang.h (f_value_print): Don't declare.
11649 * f-lang.c (f_language_defn): Update.
11650 * d-valprint.c (d_val_print): Remove.
11651 * d-lang.h (d_value_print): Don't declare.
11652 * d-lang.c (d_language_defn): Update.
11653 * cp-valprint.c (cp_print_value_fields)
11654 (cp_print_value_fields_rtti, cp_print_value): Remove.
11655 (cp_print_static_field): Update.
11656 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11657 (c_val_print_struct, c_val_print_union, c_val_print_int)
11658 (c_val_print_memberptr, c_val_print): Remove.
11659 * c-lang.h (c_val_print_array, cp_print_value_fields)
11660 (cp_print_value_fields_rtti): Don't declare.
11661 * c-lang.c (c_language_defn, cplus_language_defn)
11662 (asm_language_defn, minimal_language_defn): Update.
11663 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11664 (ada_val_print_enum): Take a struct value.
11665 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11666 (ada_val_print): Remove.
11667 (ada_value_print_1): Update.
11668 (printable_val_type): Remove.
11669 * ada-lang.h (ada_val_print): Don't declare.
11670 * ada-lang.c (ada_language_defn): Update.
11671
42331a1e
TT
116722020-03-13 Tom Tromey <tom@tromey.com>
11673
11674 * valprint.c (do_val_print): Update.
11675 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11676 a struct value.
11677 (value_to_value_object_no_release): Declare.
11678 * python/py-value.c (value_to_value_object_no_release): New
11679 function.
11680 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11681 struct value.
11682 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11683 function.
11684 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11685 a struct value.
11686 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11687 Declare.
11688 (gdbscm_apply_val_pretty_printer): Take a struct value.
11689 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11690 value.
11691 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11692 value.
11693 * extension-priv.h (struct extension_language_ops)
11694 <apply_val_pretty_printer>: Take a struct value.
11695 * cp-valprint.c (cp_print_value): Create a struct value.
11696 (cp_print_value): Update.
11697
3a916a97
TT
116982020-03-13 Tom Tromey <tom@tromey.com>
11699
11700 * ada-valprint.c (print_field_values): Call common_val_print.
11701
b59eac37
TT
117022020-03-13 Tom Tromey <tom@tromey.com>
11703
11704 * ada-valprint.c (val_print_packed_array_elements): Remove
11705 bitoffset and val parameters. Call common_val_print.
11706 (ada_val_print_string): Remove offset, address, and original_value
11707 parameters.
11708 (ada_val_print_array): Update.
11709 (ada_value_print_array): New function.
11710 (ada_value_print_1): Call it.
11711
03371129
TT
117122020-03-13 Tom Tromey <tom@tromey.com>
11713
11714 * ada-valprint.c (ada_value_print): Use common_val_print.
11715
2e088f8b
TT
117162020-03-13 Tom Tromey <tom@tromey.com>
11717
11718 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11719
39ef85a8
TT
117202020-03-13 Tom Tromey <tom@tromey.com>
11721
11722 * ada-valprint.c (ada_value_print_num): New function.
11723 (ada_value_print_1): Use it.
11724
b9fa6e07
TT
117252020-03-13 Tom Tromey <tom@tromey.com>
11726
11727 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11728
416595d6
TT
117292020-03-13 Tom Tromey <tom@tromey.com>
11730
11731 * ada-valprint.c (ada_value_print_ptr): New function.
11732 (ada_value_print_1): Use it.
11733
5b5e15ec
TT
117342020-03-13 Tom Tromey <tom@tromey.com>
11735
11736 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11737 call common_val_print.
11738 (ada_val_print_1): Update.
11739 (ada_value_print_1): New function.
11740 (ada_value_print_inner): Rewrite.
11741
fbf54e75
TT
117422020-03-13 Tom Tromey <tom@tromey.com>
11743
11744 * cp-valprint.c (cp_print_value_fields): Update.
11745 (cp_print_value): New function.
11746
64b653ca
TT
117472020-03-13 Tom Tromey <tom@tromey.com>
11748
11749 * m2-valprint.c (m2_value_print_inner): Use
11750 cp_print_value_fields.
11751 * cp-valprint.c (cp_print_value_fields): New function.
11752 * c-valprint.c (c_value_print_struct): New function.
11753 (c_value_print_inner): Use c_value_print_struct.
11754 * c-lang.h (cp_print_value_fields): Declare.
11755
6999f067
TT
117562020-03-13 Tom Tromey <tom@tromey.com>
11757
11758 * c-valprint.c (c_value_print_array): New function.
11759 (c_value_print_inner): Use it.
11760
ce80b8bd
TT
117612020-03-13 Tom Tromey <tom@tromey.com>
11762
11763 * c-valprint.c (c_value_print_memberptr): New function.
11764 (c_value_print_inner): Use it.
11765
2faac269
TT
117662020-03-13 Tom Tromey <tom@tromey.com>
11767
11768 * c-valprint.c (c_value_print_int): New function.
11769 (c_value_print_inner): Use it.
11770
da3e2c29
TT
117712020-03-13 Tom Tromey <tom@tromey.com>
11772
11773 * c-valprint.c (c_value_print_ptr): New function.
11774 (c_value_print_inner): Use it.
11775
50836231
TT
117762020-03-13 Tom Tromey <tom@tromey.com>
11777
11778 * c-valprint.c (c_value_print_inner): Rewrite.
11779
4f412b6e
TT
117802020-03-13 Tom Tromey <tom@tromey.com>
11781
11782 * valprint.c (generic_value_print_complex): New function.
11783 (generic_value_print): Use it.
11784
f5354008
TT
117852020-03-13 Tom Tromey <tom@tromey.com>
11786
11787 * valprint.c (generic_val_print_float): Don't call
11788 val_print_scalar_formatted.
11789 (generic_val_print, generic_value_print): Update.
11790
3eec3b05
TT
117912020-03-13 Tom Tromey <tom@tromey.com>
11792
11793 * valprint.c (generic_value_print_char): New function
11794 (generic_value_print): Use it.
11795
fdddfccb
TT
117962020-03-13 Tom Tromey <tom@tromey.com>
11797
11798 * valprint.c (generic_value_print_int): New function.
11799 (generic_value_print): Use it.
11800
6dde7521
TT
118012020-03-13 Tom Tromey <tom@tromey.com>
11802
11803 * valprint.c (generic_value_print_bool): New function.
11804 (generic_value_print): Use it.
11805
4112d2e6
TT
118062020-03-13 Tom Tromey <tom@tromey.com>
11807
11808 * valprint.c (generic_val_print_func): Simplify.
11809 (generic_val_print, generic_value_print): Update.
11810
65786af6
TT
118112020-03-13 Tom Tromey <tom@tromey.com>
11812
11813 * valprint.c (generic_val_print_flags): Remove.
11814 (generic_val_print, generic_value_print): Update.
11815 (val_print_type_code_flags): Add original_value parameter.
11816
40f3ce18
TT
118172020-03-13 Tom Tromey <tom@tromey.com>
11818
11819 * valprint.c (generic_val_print): Update.
11820 (generic_value_print): Update.
11821 * valprint.c (generic_val_print_enum): Don't call
11822 val_print_scalar_formatted.
11823
2a5b130b
TT
118242020-03-13 Tom Tromey <tom@tromey.com>
11825
11826 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11827 * valprint.c (generic_value_print_ptr): New function.
11828
abc66ce9
TT
118292020-03-13 Tom Tromey <tom@tromey.com>
11830
11831 * valprint.c (generic_value_print): Rewrite.
11832
07a32858
TT
118332020-03-13 Tom Tromey <tom@tromey.com>
11834
11835 * p-valprint.c (pascal_object_print_value_fields)
11836 (pascal_object_print_value): New functions.
11837
64d64d3a
TT
118382020-03-13 Tom Tromey <tom@tromey.com>
11839
11840 * p-valprint.c (pascal_value_print_inner): Rewrite.
11841
6a95a1f5
TT
118422020-03-13 Tom Tromey <tom@tromey.com>
11843
11844 * f-valprint.c (f_value_print_innner): Rewrite.
11845
59fcdac6
TT
118462020-03-13 Tom Tromey <tom@tromey.com>
11847
11848 * m2-valprint.c (m2_print_unbounded_array): New overload.
11849 (m2_print_unbounded_array): Update.
11850 (m2_print_array_contents): Take a struct value.
11851 (m2_value_print_inner): Rewrite.
11852
d133c3e1
TT
118532020-03-13 Tom Tromey <tom@tromey.com>
11854
11855 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11856 (d_value_print_inner): New function.
11857 * d-lang.h (d_value_print_inner): Declare.
11858 * d-lang.c (d_language_defn): Use d_value_print_inner.
11859
23b0f06b
TT
118602020-03-13 Tom Tromey <tom@tromey.com>
11861
11862 * go-valprint.c (go_value_print_inner): New function.
11863 * go-lang.h (go_value_print_inner): Declare.
11864 * go-lang.c (go_language_defn): Use go_value_print_inner.
11865
5f56f7cb
TT
118662020-03-13 Tom Tromey <tom@tromey.com>
11867
11868 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11869 API.
11870 (rust_val_print): Rewrite.
11871 (rust_value_print_inner): New function, from rust_val_print.
11872 (rust_language_defn): Use rust_value_print_inner.
11873
26792ee0
TT
118742020-03-13 Tom Tromey <tom@tromey.com>
11875
11876 * ada-valprint.c (ada_value_print_inner): New function.
11877 * ada-lang.h (ada_value_print_inner): Declare.
11878 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11879
24051bbe
TT
118802020-03-13 Tom Tromey <tom@tromey.com>
11881
11882 * f-valprint.c (f_value_print_innner): New function.
11883 * f-lang.h (f_value_print_innner): Declare.
11884 * f-lang.c (f_language_defn): Use f_value_print_innner.
11885
c0941be6
TT
118862020-03-13 Tom Tromey <tom@tromey.com>
11887
11888 * p-valprint.c (pascal_value_print_inner): New function.
11889 * p-lang.h (pascal_value_print_inner): Declare.
11890 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11891
62c4663d
TT
118922020-03-13 Tom Tromey <tom@tromey.com>
11893
11894 * m2-valprint.c (m2_value_print_inner): New function.
11895 * m2-lang.h (m2_value_print_inner): Declare.
11896 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11897
62182190
TT
118982020-03-13 Tom Tromey <tom@tromey.com>
11899
11900 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11901 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11902 * c-valprint.c (c_value_print_inner): New function.
11903 * c-lang.h (c_value_print_inner): Declare.
11904 * c-lang.c (c_language_defn, cplus_language_defn)
11905 (asm_language_defn, minimal_language_defn): Use
11906 c_value_print_inner.
11907
1e592a8a
TT
119082020-03-13 Tom Tromey <tom@tromey.com>
11909
11910 * p-valprint.c (pascal_object_print_value_fields): Now static.
11911 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11912
7fe471e9
TT
119132020-03-13 Tom Tromey <tom@tromey.com>
11914
11915 * c-valprint.c (c_val_print_array): Simplify.
11916
d121c6ce
TT
119172020-03-13 Tom Tromey <tom@tromey.com>
11918
11919 * valprint.c (value_print_array_elements): New function.
11920 * valprint.h (value_print_array_elements): Declare.
11921
4dba70ee
TT
119222020-03-13 Tom Tromey <tom@tromey.com>
11923
11924 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11925 * mips-tdep.c (mips_print_register): Use
11926 value_print_scalar_formatted.
11927
4f9ae810
TT
119282020-03-13 Tom Tromey <tom@tromey.com>
11929
11930 * valprint.h (value_print_scalar_formatted): Declare.
11931 * valprint.c (value_print_scalar_formatted): New function.
11932
156bfec9
TT
119332020-03-13 Tom Tromey <tom@tromey.com>
11934
11935 * valprint.h (generic_value_print): Declare.
11936 * valprint.c (generic_value_print): New function.
11937
2b4e573d
TT
119382020-03-13 Tom Tromey <tom@tromey.com>
11939
11940 * valprint.c (do_val_print): Call la_value_print_inner, if
11941 available.
11942 * rust-lang.c (rust_language_defn): Update.
11943 * p-lang.c (pascal_language_defn): Update.
11944 * opencl-lang.c (opencl_language_defn): Update.
11945 * objc-lang.c (objc_language_defn): Update.
11946 * m2-lang.c (m2_language_defn): Update.
11947 * language.h (struct language_defn) <la_value_print_inner>: New
11948 member.
11949 * language.c (unknown_language_defn, auto_language_defn): Update.
11950 * go-lang.c (go_language_defn): Update.
11951 * f-lang.c (f_language_defn): Update.
11952 * d-lang.c (d_language_defn): Update.
11953 * c-lang.c (c_language_defn, cplus_language_defn)
11954 (asm_language_defn, minimal_language_defn): Update.
11955 * ada-lang.c (ada_language_defn): Update.
11956
a1f6a07c
TT
119572020-03-13 Tom Tromey <tom@tromey.com>
11958
11959 * c-valprint.c (c_value_print): Use common_val_print.
11960
410cf315
TT
119612020-03-13 Tom Tromey <tom@tromey.com>
11962
11963 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11964
72a45c93
TT
119652020-03-13 Tom Tromey <tom@tromey.com>
11966
11967 * f-valprint.c (f77_print_array_1, f_val_print): Use
11968 common_val_print.
11969
040f66bd
TT
119702020-03-13 Tom Tromey <tom@tromey.com>
11971
11972 * riscv-tdep.c (riscv_print_one_register_info): Use
11973 common_val_print.
11974
a6e05a6c
TT
119752020-03-13 Tom Tromey <tom@tromey.com>
11976
11977 * mi/mi-main.c (output_register): Use common_val_print.
11978
3444c526
TT
119792020-03-13 Tom Tromey <tom@tromey.com>
11980
11981 * infcmd.c (default_print_one_register_info): Use
11982 common_val_print.
11983
c2a44efe
TT
119842020-03-13 Tom Tromey <tom@tromey.com>
11985
11986 * valprint.h (common_val_print_checked): Declare.
11987 * valprint.c (common_val_print_checked): New function.
11988 * stack.c (print_frame_arg): Use common_val_print_checked.
11989
b0c26e99
TT
119902020-03-13 Tom Tromey <tom@tromey.com>
11991
11992 * valprint.c (do_val_print): New function, from val_print.
11993 (val_print): Use do_val_print.
11994 (common_val_print): Use do_val_print.
11995
ce3acbe9
TT
119962020-03-13 Tom Tromey <tom@tromey.com>
11997
11998 * valprint.c (value_print): Use scoped_value_mark.
11999
96c7f873
TV
120002020-03-13 Tom de Vries <tdevries@suse.de>
12001
12002 PR symtab/25646
12003 * psymtab.c (partial_symtab::partial_symtab): Don't set
12004 globals_offset and statics_offset. Push element onto
12005 current_global_psymbols and current_static_psymbols stacks.
12006 (concat): New function.
12007 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12008 element from current_global_psymbols and current_static_psymbols
12009 stacks. Concat popped elements to global_psymbols and
12010 static_symbols.
12011 (add_psymbol_to_list): Use current_global_psymbols and
12012 current_static_psymbols stacks.
12013 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12014 current_static_psymbols fields.
12015
6ba0a321
CB
120162020-03-12 Christian Biesinger <cbiesinger@google.com>
12017
12018 * corelow.c (sniff_core_bfd): Remove.
12019 (class core_target) <m_core_vec>: Remove.
12020 (core_target::core_target): Update.
12021 (core_file_fns): Remove.
12022 (deprecated_add_core_fns): Remove.
12023 (default_core_sniffer): Remove.
12024 (sniff_core_bfd): Remove.
12025 (default_check_format): Remove.
12026 (gdb_check_format): Remove.
12027 (core_target_open): Update.
12028 (core_target::get_core_register_section): Update.
12029 (get_core_registers_cb): Update.
12030 (core_target::fetch_registers): Update.
12031 * gdbcore.h (struct core_fns): Remove.
12032 (deprecated_add_core_fns): Remove.
12033 (default_core_sniffer): Remove.
12034 (default_check_format): Remove.
12035
227031b2
TT
120362020-03-12 Tom Tromey <tom@tromey.com>
12037
12038 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12039 CORE_ADDR.
12040 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12041
53807e9f
TT
120422020-03-12 Tom Tromey <tom@tromey.com>
12043
12044 * remote.c (remote_target::download_tracepoint)
12045 (remote_target::enable_tracepoint)
12046 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12047 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12048 sprintf_vma.
12049
64f25102
TT
120502020-03-12 Tom Tromey <tom@tromey.com>
12051
12052 * symfile-mem.c: Update CORE_ADDR size assert.
12053
272cd5a3
SM
120542020-03-12 Simon Marchi <simon.marchi@efficios.com>
12055
12056 * selftest.m4: Move to gdbsupport/.
12057 * acinclude.m4: Update path to selftest.m4.
12058
74cd3f9d
SM
120592020-03-12 Simon Marchi <simon.marchi@efficios.com>
12060
12061 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12062 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12063 gdbarch-selfselftests.c and selftest-arch.c.
12064 (SUBDIR_UNITTESTS_OBS): Rename to...
12065 (SELFTESTS_OBS): ... this.
12066 (COMMON_SFILES): Remove disasm-selftests.c and
12067 gdbarch-selftests.c.
12068 * configure.ac: Don't add selftest-arch.{c,o} to
12069 CONFIG_{SRCS,OBS}.
12070 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12071 preprocessor conditions.
12072
db6878ac
SM
120732020-03-12 Simon Marchi <simon.marchi@efficios.com>
12074
12075 * configure.ac: Don't source bfd/development.sh.
12076 * selftest.m4: Modify comment.
12077 * configure: Re-generate.
12078
4d696a5c
SM
120792020-03-12 Simon Marchi <simon.marchi@efficios.com>
12080
12081 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12082 not "true" or "false".
12083 * configure: Re-generate.
12084
8dd8e1c7
CB
120852020-03-12 Christian Biesinger <cbiesinger@google.com>
12086
12087 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12088 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12089 renamed to arm_nbsd_supply_gregset.
12090 (fetch_register): Update to call arm_nbsd_supply_gregset.
12091 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12092 (arm_netbsd_nat_target::fetch_registers): Update.
12093 (fetch_elfcore_registers): Removed.
12094 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12095 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12096 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12097 not require NetBSD system headers.
12098 (arm_nbsd_regset): New struct.
12099 (arm_nbsd_iterate_over_regset_sections): New function.
12100 (arm_netbsd_init_abi_common): Updated to call
12101 set_gdbarch_iterate_over_regset_sections.
12102 * arm-nbsd-tdep.h: New file.
12103
dd69bf7a
KB
121042020-03-11 Kevin Buettner <kevinb@redhat.com>
12105
12106 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12107 recursion.
12108
a0761e34
SM
121092020-03-11 Simon Marchi <simon.marchi@efficios.com>
12110
12111 * configure: Re-generate.
12112
e7a82140
TT
121132020-03-11 Tom Tromey <tromey@adacore.com>
12114
12115 * ada-typeprint.c (print_choices): Fix comment.
12116
dcc050c8
AB
121172020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12118
12119 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12120 previous item in the list, when the list has no items.
12121
1c33af77
TV
121222020-03-11 Tom de Vries <tdevries@suse.de>
12123
12124 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12125 PROP_LOCLIST handling code.
12126
8c95582d
AB
121272020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12128
12129 * buildsym-legacy.c (record_line): Pass extra parameter to
12130 record_line.
12131 * buildsym.c (buildsym_compunit::record_line): Take an extra
12132 parameter, reduce duplication in the line table, and record the
12133 is_stmt flag in the line table.
12134 * buildsym.h (buildsym_compunit::record_line): Add extra
12135 parameter.
12136 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12137 non-statement lines.
12138 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12139 this to the symtab builder.
12140 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12141 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12142 through to dwarf_record_line_1.
12143 * infrun.c (process_event_stop_test): When stepping, don't stop at
12144 a non-statement instruction, and only refresh the step info when
12145 we land in the middle of a line's range. Also add an extra
12146 comment.
12147 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12148 field.
12149 * record-btrace.c (btrace_find_line_range): Only record lines
12150 marked as is-statement.
12151 * stack.c (frame_show_address): Show the frame address if we are
12152 in a non-statement sal.
12153 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12154 (maintenance_print_one_line_table): Print a header for the is_stmt
12155 column, and include is_stmt information in the output.
12156 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12157 preference to non-statements.
12158 (find_pcs_for_symtab_line): Prefer is-statement entries.
12159 (find_line_common): Likewise.
12160 * symtab.h (struct linetable_entry): Add is_stmt field.
12161 (struct symtab_and_line): Likewise.
12162 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12163 arranging the line table.
12164
e4003a34
TV
121652020-03-07 Tom de Vries <tdevries@suse.de>
12166
12167 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12168 DIE.
12169
e8932576
TT
121702020-03-07 Tom Tromey <tom@tromey.com>
12171
12172 * valops.c (value_literal_complex): Remove obsolete comment.
12173 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12174 comment.
12175
29734269
SM
121762020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12177
12178 * infrun.h: Forward-declare thread_info.
12179 (set_step_info): Add thread_info parameter, add doc.
12180 * infrun.c (set_step_info): Add thread_info parameter, move doc
12181 to header.
12182 * infrun.c (process_event_stop_test): Pass thread to
12183 set_step_info call.
12184 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12185 set_step_info.
12186 (prepare_one_step): Add thread_info parameter, pass it to
12187 set_step_frame and prepare_one_step (recursive) call.
12188 (step_1): Pass thread to prepare_one_step call.
12189 (step_command_fsm::should_stop): Pass thread to
12190 prepare_one_step.
12191 (until_next_fsm): Pass thread to set_step_frame call.
12192 (finish_command): Pass thread to set_step_info call.
12193
b7d64b29
HD
121942020-03-06 Hannes Domani <ssbssa@yahoo.de>
12195
12196 * windows-tdep.c (windows_solib_create_inferior_hook):
12197 Check if inferior is running.
12198
09f2921c
TV
121992020-03-06 Tom de Vries <tdevries@suse.de>
12200
12201 * NEWS: Fix "the the".
12202 * ctfread.c: Same.
12203
fd760e79
TV
122042020-03-06 Tom de Vries <tdevries@suse.de>
12205
12206 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12207
20ea4a60
AB
122082020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12209
12210 * .dir-locals.el: Add a comment referencing the other copies of
12211 this file.
12212
0afbabf0
JB
122132020-03-05 John Baldwin <jhb@FreeBSD.org>
12214
12215 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12216 psargs.
12217
842806cb
TBA
122182020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12219
12220 * .gitattributes: New file.
12221
be1e3d3e
TT
122222020-03-04 Tom Tromey <tom@tromey.com>
12223
12224 * symmisc.c (print_symbol_bcache_statistics)
12225 (print_objfile_statistics): Update.
12226 * symfile.c (allocate_symtab): Use intern.
12227 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12228 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12229 macro_cache>: Remove.
12230 <string_cache>: New member.
12231 (struct objfile) <intern>: New methods.
12232 * elfread.c (elf_symtab_read): Use intern.
12233 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12234 (dwarf2_compute_name, dwarf2_physname)
12235 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12236 names.
12237 (guess_partial_die_structure_name): Update.
12238 (partial_die_info::fixup): Intern name.
12239 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12240 name.
12241 (dwarf2_name): Intern name. Update.
12242 * buildsym.c (buildsym_compunit::get_macro_table): Use
12243 string_cache.
12244
4e7625fd
TT
122452020-03-04 Tom Tromey <tom@tromey.com>
12246
12247 * jit.c (bfd_open_from_target_memory): Make "target" const.
12248 * corefile.c (gnutarget): Now const.
12249 * gdbcore.h (gnutarget): Now const.
12250
46f9f931
HD
122512020-03-04 Hannes Domani <ssbssa@yahoo.de>
12252
12253 * NEWS: Mention support for WOW64 processes.
12254 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12255 (amd64_windows_segment_register_p): Remove static.
12256 (_initialize_amd64_windows_nat): Update.
12257 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12258 * i386-windows-nat.c (context_offset): Update.
12259 (i386_mappings): Rename and remove static.
12260 (i386_windows_segment_register_p): Remove static.
12261 (_initialize_i386_windows_nat): Update.
12262 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12263 (STATUS_WX86_SINGLE_STEP): New macro.
12264 (EnumProcessModulesEx): New macro.
12265 (Wow64SuspendThread): New macro.
12266 (Wow64GetThreadContext): New macro.
12267 (Wow64SetThreadContext): New macro.
12268 (Wow64GetThreadSelectorEntry): New macro.
12269 (windows_set_context_register_offsets): Add static.
12270 (windows_set_segment_register_p): Likewise.
12271 (windows_add_thread): Adapt for WOW64 processes.
12272 (windows_fetch_one_register): Likewise.
12273 (windows_nat_target::fetch_registers): Likewise.
12274 (windows_store_one_register): Likewise.
12275 (display_selector): Likewise.
12276 (display_selectors): Likewise.
12277 (handle_exception): Likewise.
12278 (windows_continue): Likewise.
12279 (windows_nat_target::resume): Likewise.
12280 (windows_add_all_dlls): Likewise.
12281 (do_initial_windows_stuff): Likewise.
12282 (windows_nat_target::attach): Likewise.
12283 (windows_get_exec_module_filename): Likewise.
12284 (windows_nat_target::create_inferior): Likewise.
12285 (windows_xfer_siginfo): Likewise.
12286 (_initialize_loadable): Initialize Wow64SuspendThread,
12287 Wow64GetThreadContext, Wow64SetThreadContext,
12288 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12289 * windows-nat.h (windows_set_context_register_offsets):
12290 Remove declaration.
12291 (windows_set_segment_register_p): Likewise.
12292 (i386_windows_segment_register_p): Add declaration.
12293 (amd64_windows_segment_register_p): Likewise.
12294
440cf44e
LM
122952020-03-04 Luis Machado <luis.machado@linaro.org>
12296
12297 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12298 in "info registers" for AArch64/ARM.
12299
12300 The change caused "info registers" to not print GPR's.
12301
12302 gdb/ChangeLog:
12303
12304 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12305
12306 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12307 when reg->group is empty and reggroup is not.
12308
1009d92f
TT
123092020-03-03 Tom Tromey <tromey@adacore.com>
12310
12311 * dwarf2/frame.c (struct dwarf2_frame_cache)
12312 <checked_tailcall_bottom, entry_cfa_sp_offset,
12313 entry_cfa_sp_offset_p>: Remove members.
12314 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12315 (dwarf2_frame_prev_register): Don't call
12316 dwarf2_tailcall_sniffer_first.
12317 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12318 * frame-unwind.c (add_unwinder): New fuction.
12319 (frame_unwind_init): Use it. Add tailcall unwinder.
12320
5e5d66b6
AB
123212020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12322 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12323
12324 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12325 value should be printed as true.
12326
584cf46d
HD
123272020-03-03 Hannes Domani <ssbssa@yahoo.de>
12328
12329 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12330 (windows_init_abi): Set and use windows_so_ops.
12331
7b973adc
SDJ
123322020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12333
12334 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12335 when verifying if dealing with a convenience variable.
12336
bb7b70ab
LM
123372020-03-03 Luis Machado <luis.machado@linaro.org>
12338
12339 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12340
9822cb57
SM
123412020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12342
12343 * infrun.c (gdbarch_supports_displaced_stepping): New.
12344 (use_displaced_stepping): Break up conditions in smaller pieces.
12345 Use gdbarch_supports_displaced_stepping.
12346 (displaced_step_prepare_throw): Use
12347 gdbarch_supports_displaced_stepping.
12348
63e163f2
AB
123492020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12350
12351 * NEWS: Mention new behaviour of the history filename.
12352 * top.c (write_history_p): Add comment.
12353 (show_write_history_p): Add header comment, give a different
12354 message when history writing is on, but the history filename is
12355 empty.
12356 (history_filename): Add comment.
12357 (history_filename_empty): New function.
12358 (show_history_filename): Add header comment, give a different
12359 message when the filename is empty.
12360 (init_history): Compare history_filename against nullptr, and only
12361 read history if the filename is not empty.
12362 (set_history_filename): Add header comment, and only make
12363 non-empty filenames absolute.
12364 (init_main): Make the filename argument to 'set history filename'
12365 optional.
12366
81b86b97
CB
123672020-03-02 Christian Biesinger <cbiesinger@google.com>
12368
12369 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12370 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12371 (fetch_fp_register): Update.
12372 (fetch_fp_regs): Update.
12373 (store_fp_register): Update.
12374 (store_fp_regs): Update.
12375 (arm_netbsd_nat_target::read_description): New function.
12376 (fetch_elfcore_registers): Update.
12377
24ed6739
AB
123782020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12379
12380 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12381 general_thread if the stop reply is missing a thread-id.
12382 (remote_target::process_stop_reply): Use the first non-exited
12383 thread if the target didn't pass a thread-id.
12384 * infrun.c (do_target_wait): Move call to
12385 switch_to_inferior_no_thread to ....
12386 (do_target_wait_1): ... here.
12387
a84bb2a0
JT
123882020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12389
12390 * debuginfod-support.c: Include defs.h first.
12391
658dadf0
TV
123922020-02-28 Tom de Vries <tdevries@suse.de>
12393
12394 * symfile.c (set_initial_language): Use default language for lookup.
12395
4ebe4877
SM
123962020-02-28 Simon Marchi <simon.marchi@efficios.com>
12397
12398 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12399 reader variable, pass `this` to read_cutu_die_from_dwo.
12400
e5da1139
AM
124012020-02-27 Aaron Merey <amerey@redhat.com>
12402
12403 * source.c (open_source_file): Check for nullptr when computing
12404 srcpath.
12405
317f7127
TT
124062020-02-27 Tom Tromey <tromey@adacore.com>
12407
12408 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12409 member.
12410 (dwarf2_add_field): Don't update nfields.
12411 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12412
3104d9ee
AB
124132020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12414
12415 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12416 abs.
12417
b83470bf
TT
124182020-02-26 Tom Tromey <tom@tromey.com>
12419
12420 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12421 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12422 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12423 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12424 per_cu_data.
12425
edfe0a0c
TT
124262020-02-26 Tom Tromey <tom@tromey.com>
12427
12428 * dwarf2/index-write.c (psym_index_map): Change type.
12429 (add_address_entry_worker, write_one_signatured_type)
12430 (recursively_count_psymbols, recursively_write_psymbols)
12431 (class debug_names, psyms_seen_size, write_gdbindex)
12432 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12433
0d79cdc4
AM
124342020-02-26 Aaron Merey <amerey@redhat.com>
12435
12436 * Makefile.in: Handle optional debuginfod support.
12437 * NEWS: Update.
12438 * README: Add --with-debuginfod summary.
12439 * config.in: Regenerate.
12440 * configure: Regenerate.
12441 * configure.ac: Handle optional debuginfod support.
12442 * debuginfod-support.c: debuginfod helper functions.
12443 * debuginfod-support.h: Ditto.
12444 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12445 summary.
12446 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12447 when a dwz file cannot be found.
12448 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12449 debuginfo file cannot be found.
12450 * source.c (open_source_file): Query debuginfod servers when a
12451 source file cannot be found.
12452 * top.c (print_gdb_configuration): Include
12453 --{with,without}-debuginfod in the output.
12454
b65ce565
JG
124552020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12456
12457 * thread.c (thr_try_catch_cmd): Print thread name.
12458
d4c9a4f8
SM
124592020-02-26 Simon Marchi <simon.marchi@efficios.com>
12460
12461 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12462 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12463 dwarf2_fetch_die_type_sect_off): Move to...
12464 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12465 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12466 dwarf2_fetch_die_type_sect_off): ... here.
12467 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12468 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12469 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12470
0dce4280
TV
124712020-02-26 Tom de Vries <tdevries@suse.de>
12472
12473 PR gdb/25603
12474 * symfile.c (set_initial_language): Exit-early if
12475 language_mode == language_mode_manual.
12476
450a1bfc
SM
124772020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12478
12479 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12480 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12481 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12482
9e80cfa1
AB
124832020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12484
12485 * gdbtypes.c (create_array_type_with_stride): Handle negative
12486 array strides.
12487 * valarith.c (value_subscripted_rvalue): Likewise.
12488
09624f1f
LM
124892020-02-25 Luis Machado <luis.machado@linaro.org>
12490
12491 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12492
8cb5117c
SM
124932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12494
12495 * loc.h (dwarf2_get_die_type): Move to...
12496 * read.h (dwarf2_get_die_type): ... here.
12497 * read.c (dwarf2_get_die_type): Move doc to header.
12498
c325c44e
JB
124992020-02-25 Joel Brobecker <brobecker@adacore.com>
12500
12501 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12502 'gnulib/Makefile.in' to the list.
12503
4ac93832
TT
125042020-02-24 Tom Tromey <tom@tromey.com>
12505
12506 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12507 Remove.
12508 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12509 XOBNEWVEC.
12510
197400e8
TT
125112020-02-24 Tom Tromey <tom@tromey.com>
12512
12513 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12514 New method.
12515 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12516 (dw2_do_instantiate_symtab, dw2_get_file_names)
12517 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12518
76935768
TT
125192020-02-24 Tom Tromey <tom@tromey.com>
12520
12521 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12522 make_scoped_restore.
12523 (dwarf2_psymtab::read_symtab): Don't clear
12524 reading_partial_symbols.
12525
a88ef40d
TV
125262020-02-24 Tom de Vries <tdevries@suse.de>
12527
12528 PR gdb/25592
12529 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12530
c9af6521
TV
125312020-02-24 Tom de Vries <tdevries@suse.de>
12532
12533 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12534 commands layout next/prev/regs.
12535
5707a07a
TT
125362020-02-22 Tom Tromey <tom@tromey.com>
12537
12538 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12539 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12540
3b0fb49e
TT
125412020-02-22 Tom Tromey <tom@tromey.com>
12542
12543 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12544
283be8bf
TT
125452020-02-22 Tom Tromey <tom@tromey.com>
12546
12547 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12548 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12549 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12550 * tui/tui.c (_initialize_tui): Add usage text.
12551
ca793b96
TT
125522020-02-22 Tom Tromey <tom@tromey.com>
12553
12554 * tui/tui-win.c (tui_set_focus_command)
12555 (tui_set_win_height_command): Use error_no_arg.
12556 (_initialize_tui_win): Update help text.
12557 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12558
432b5c40
TT
125592020-02-22 Tom Tromey <tom@tromey.com>
12560
12561 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12562 * tui/tui-disasm.h (struct tui_disasm_window)
12563 <display_start_addr>: Declare.
12564 * tui/tui-source.h (struct tui_source_window)
12565 <display_start_addr>: Declare.
12566 * tui/tui-winsource.h (struct tui_source_window_base)
12567 <show_source_line, display_start_addr>: New methods.
12568 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12569 Rename and move to protected section.
12570 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12571 (tui_source_window_base::do_erase_source_content): Update.
12572 (tui_source_window_base::show_source_line): Now a method.
12573 (tui_source_window_base::show_source_content)
12574 (tui_source_window_base::tui_source_window_base)
12575 (tui_source_window_base::rerender)
12576 (tui_source_window_base::refill)
12577 (tui_source_window_base::do_scroll_horizontal)
12578 (tui_source_window_base::set_is_exec_point_at)
12579 (tui_source_window_base::update_breakpoint_info)
12580 (tui_source_window_base::update_exec_info): Update.
12581 * tui/tui-source.c (tui_source_window::set_contents)
12582 (tui_source_window::showing_source_p)
12583 (tui_source_window::do_scroll_vertical)
12584 (tui_source_window::location_matches_p)
12585 (tui_source_window::line_is_displayed): Update.
12586 (tui_source_window::display_start_addr): New method.
12587 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12588 (tui_disasm_window::do_scroll_vertical)
12589 (tui_disasm_window::location_matches_p): Update.
12590 (tui_disasm_window::display_start_addr): New method.
12591
01b1af32
TT
125922020-02-22 Tom Tromey <tom@tromey.com>
12593
12594 * NEWS: Add entry for gdb.register_window_type.
12595 * tui/tui-layout.h (window_factory): New typedef.
12596 (tui_register_window): Declare.
12597 * tui/tui-layout.c (saved_tui_windows): New global.
12598 (tui_apply_current_layout): Use it.
12599 (tui_register_window): New function.
12600 * python/python.c (do_start_initialization): Call
12601 gdbpy_initialize_tui.
12602 (python_GdbMethods): Add "register_window_type" function.
12603 * python/python-internal.h (gdbpy_register_tui_window)
12604 (gdbpy_initialize_tui): Declare.
12605 * python/py-tui.c: New file.
12606 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12607
fc96d20b
TT
126082020-02-22 Tom Tromey <tom@tromey.com>
12609
12610 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12611
935c78c0
TT
126122020-02-22 Tom Tromey <tom@tromey.com>
12613
12614 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12615 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12616 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12617 (tui_set_win_focus_to): Move from tui-win.c.
12618
0240c8f1
TT
126192020-02-22 Tom Tromey <tom@tromey.com>
12620
12621 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12622 functions.
12623 (known_window_types): New global.
12624 (tui_get_window_by_name): Reimplement.
12625 (initialize_known_windows): New function.
12626 (validate_window_name): Rewrite.
12627 (_initialize_tui_layout): Call initialize_known_windows.
12628
fdb01f0c
TT
126292020-02-22 Tom Tromey <tom@tromey.com>
12630
12631 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12632 Remove constants.
12633 * tui/tui-winsource.h (struct tui_source_window_base)
12634 <tui_source_window_base>: Remove parameter.
12635 * tui/tui-winsource.c
12636 (tui_source_window_base::tui_source_window_base): Remove
12637 parameter.
12638 (tui_source_window_base::refill): Update.
12639 * tui/tui-stack.h (struct tui_locator_window)
12640 <tui_locator_window>: Update.
12641 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12642 Default the constructor.
12643 * tui/tui-regs.h (struct tui_data_item_window)
12644 <tui_data_item_window>: Default the constructor.
12645 (struct tui_data_window) <tui_data_window>: Likewise.
12646 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12647 Default the constructor.
12648 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12649 Default the constructor.
12650 <type>: Remove.
12651 (struct tui_win_info) <tui_win_info>: Default the constructor.
12652 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12653 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12654 Default the constructor.
12655
865a5aec
TT
126562020-02-22 Tom Tromey <tom@tromey.com>
12657
12658 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12659 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12660 * tui/tui-win.c (tui_resize_all): Don't call
12661 tui_delete_invisible_windows.
12662 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12663 done.
12664 (tui_set_layout): Update.
12665 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12666 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12667 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12668
e098d18c
TT
126692020-02-22 Tom Tromey <tom@tromey.com>
12670
12671 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12672 correctly.
12673
eb9c8874
TT
126742020-02-22 Tom Tromey <tom@tromey.com>
12675
12676 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12677
7eed1a8e
TT
126782020-02-22 Tom Tromey <tom@tromey.com>
12679
12680 * tui/tui-winsource.h (struct tui_source_window_iterator)
12681 <inner_iterator>: New etytypedef.
12682 <tui_source_window_iterator>: Take "end" parameter.
12683 <tui_source_window_iterator>: Take iterator.
12684 <operator*, advance>: Update.
12685 <m_iter>: Change type.
12686 <m_end>: New field.
12687 (struct tui_source_windows) <begin, end>: Update.
12688 * tui/tui-layout.c (tui_windows): New global.
12689 (tui_apply_current_layout): Clear tui_windows.
12690 (tui_layout_window::apply): Update tui_windows.
12691 * tui/tui-data.h (tui_windows): Declare.
12692 (all_tui_windows): Now inline function.
12693 (class tui_window_iterator, struct all_tui_windows): Remove.
12694
7c043ba6
TT
126952020-02-22 Tom Tromey <tom@tromey.com>
12696
12697 PR tui/17850:
12698 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12699 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12700 "height" argument.
12701 (class tui_layout_window) <get_sizes>: Likewise.
12702 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12703 argument.
12704 <get_sizes>: Add "height" argument.
12705 <m_vertical>: New field.
12706 * tui/tui-layout.c (tui_layout_split::clone): Update.
12707 (tui_layout_split::get_sizes): Add "height" argument.
12708 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12709 (tui_new_layout_command): Parse "-horizontal".
12710 (_initialize_tui_layout): Update help string.
12711 (tui_layout_split::specification): Add "-horizontal" when needed.
12712 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12713 argument.
12714 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12715 New methods.
12716
6bc56648
TT
127172020-02-22 Tom Tromey <tom@tromey.com>
12718
12719 * tui/tui-layout.h (enum tui_adjust_result): New.
12720 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12721 (class tui_layout_window) <adjust_size>: Return
12722 tui_adjust_result. Rewrite.
12723 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12724 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12725
c22fef7e
TT
127262020-02-22 Tom Tromey <tom@tromey.com>
12727
12728 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12729 parameter and return types.
12730 (class tui_layout_base) <specification>: Add "depth".
12731 (class tui_layout_window) <specification>: Add "depth".
12732 (class tui_layout_split) <specification>: Add "depth".
12733 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12734 and return types.
12735 (tui_new_layout_command): Parse sub-layouts.
12736 (_initialize_tui_layout): Update help string.
12737 (tui_layout_window::specification): Add "depth".
12738 (add_layout_command): Update.
12739
ee325b61
TT
127402020-02-22 Tom Tromey <tom@tromey.com>
12741
12742 * NEWS: Add "tui new-layout" item.
12743 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12744 Add new-layout command to help text.
12745 (validate_window_name): New function.
12746 (tui_new_layout_command): New function.
12747 (_initialize_tui_layout): Register "new-layout".
12748 (tui_layout_window::specification): New method.
12749 (tui_layout_window::specification): New method.
12750 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12751 method.
12752 (class tui_layout_window) <specification>: New method.
12753 (class tui_layout_split) <specification>: New method.
12754
416eb92d
TT
127552020-02-22 Tom Tromey <tom@tromey.com>
12756
12757 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12758 * tui/tui-win.c (window_name_completer): Update comment.
12759 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12760 Declare method.
12761 (class tui_layout_window) <replace_window>: Likewise.
12762 (class tui_layout_split) <replace_window>: Likewise.
12763 (tui_set_layout): Don't declare.
12764 (tui_set_initial_layout): Declare function.
12765 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12766 (asm_regs_layout): New globals.
12767 (tui_current_layout, show_layout): Remove.
12768 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12769 (find_layout, tui_apply_layout): New function.
12770 (layout_completer): Remove.
12771 (tui_next_layout): Reimplement.
12772 (tui_next_layout_command): New function.
12773 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12774 (tui_regs_layout): Reimplement.
12775 (tui_regs_layout_command): New function.
12776 (extract_display_start_addr): Rewrite.
12777 (next_layout, prev_layout): Remove.
12778 (tui_layout_window::replace_window): New method.
12779 (tui_layout_split::replace_window): New method.
12780 (destroy_layout): New function.
12781 (layout_list): New global.
12782 (add_layout_command): New function.
12783 (initialize_layouts): Update.
12784 (tui_layout_command): New function.
12785 (_initialize_tui_layout): Install "layout" commands.
12786 * tui/tui-data.h (enum tui_layout_type): Remove.
12787 (tui_current_layout): Don't declare.
12788
0dbc2fc7
TT
127892020-02-22 Tom Tromey <tom@tromey.com>
12790
12791 * tui/tui-regs.c (tui_reg_layout): Remove.
12792 (tui_reg_command): Use tui_regs_layout.
12793 * tui/tui-layout.h (tui_reg_command): Declare.
12794 * tui/tui-layout.c (tui_reg_command): New function.
12795
5afe342e
TT
127962020-02-22 Tom Tromey <tom@tromey.com>
12797
12798 * tui/tui.c (tui_rl_delete_other_windows): Call
12799 tui_remove_some_windows.
12800 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12801 Declare method.
12802 (class tui_layout_window) <remove_windows>: New method.
12803 (class tui_layout_split) <remove_windows>: Declare.
12804 (tui_remove_some_windows): Declare.
12805 * tui/tui-layout.c (tui_remove_some_windows): New function.
12806 (tui_layout_split::remove_windows): New method.
12807
427326a8
TT
128082020-02-22 Tom Tromey <tom@tromey.com>
12809
12810 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12811 * tui/tui-layout.h (tui_next_layout): Declare.
12812 * tui/tui-layout.c (tui_next_layout): New function.
12813
3fe12b6d
TT
128142020-02-22 Tom Tromey <tom@tromey.com>
12815
12816 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12817 correct coordinates.
12818
59b8b5d2
TT
128192020-02-22 Tom Tromey <tom@tromey.com>
12820
12821 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12822 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12823 DATA_WIN case.
12824
2a3d458b
TT
128252020-02-22 Tom Tromey <tom@tromey.com>
12826
12827 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12828 TUI_DISASM_WIN, not tui_win_list.
12829
3f0cbb04
TT
128302020-02-22 Tom Tromey <tom@tromey.com>
12831
12832 * valprint.c (generic_val_print_enum_1)
12833 (val_print_type_code_flags): Style member names.
12834 * rust-lang.c (val_print_struct, rust_print_enum)
12835 (rust_print_struct_def, rust_internal_print_type): Style member
12836 names.
12837 * p-valprint.c (pascal_object_print_value_fields): Style member
12838 names. Only call fprintf_symbol_filtered for static members.
12839 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12840 * f-valprint.c (f_val_print): Style member names.
12841 * f-typeprint.c (f_type_print_base): Style member names.
12842 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12843 call fprintf_symbol_filtered for static members.
12844 (cp_print_class_member): Style member names.
12845 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12846 member names.
12847 * ada-valprint.c (ada_print_scalar): Style enum names.
12848 (ada_val_print_enum): Likewise.
12849 * ada-typeprint.c (print_enum_type): Style enum names.
12850
d4d947ae
TT
128512020-02-21 Tom Tromey <tom@tromey.com>
12852
12853 * psympriv.h (struct partial_symtab): Update comment.
12854
e94e944b
TT
128552020-02-21 Tom Tromey <tromey@adacore.com>
12856
12857 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12858 type is CORE_ADDR.
12859
1eb73179
TV
128602020-02-21 Tom de Vries <tdevries@suse.de>
12861
12862 PR gdb/25534
12863 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12864 if dependencies[i]->user != NULL.
12865
4f180d53
AT
128662020-02-21 Ali Tamur <tamur@google.com>
12867
12868 * dwarf2/read.c (dwarf2_name): Add null check.
12869
22b6cd70
TT
128702020-02-20 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12873 ">=", in binary search.
12874 (dwarf2_find_containing_comp_unit): New overload.
12875 (run_test): New self-test.
12876 (_initialize_dwarf2_read): Register new test.
12877
bd0cf5a6
NC
128782020-02-20 Nelson Chu <nelson.chu@sifive.com>
12879
12880 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12881 * riscv-tdep.h: Likewise.
12882 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12883 rv32-only CSR.
12884 * features/riscv/64bit-csr.xml: Regenerated.
12885
3f702acd
SDJ
128862020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12887 Tom Tromey <tom@tromey.com>
12888
12889 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12890 of 'fputc_unfiltered'.
12891 (putchar_unfiltered): Call 'fputc_unfiltered'.
12892 (fputc_unfiltered): Call 'fputs_unfiltered'.
12893
d13c7322
AB
128942020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12895
12896 * config.in: Regenerate.
12897 * configure: Regenerate.
12898 * configure.ac: Add --with-python-libdir option.
12899 * main.c: Use WITH_PYTHON_LIBDIR.
12900
869d8950
TT
129012020-02-19 Tom Tromey <tom@tromey.com>
12902
12903 * symtab.c (general_symbol_info::compute_and_set_names): Use
12904 obstack_strndup. Simplify call to symbol_set_demangled_name.
12905
298e9637
SM
129062020-02-19 Simon Marchi <simon.marchi@efficios.com>
12907
12908 * dwarf2/read.c (allocate_signatured_type_table,
12909 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12910 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12911 Remove objfile parameter, update all callers.
12912
08410482
DE
129132020-02-19 Doug Evans <dje@google.com>
12914
12915 PR rust/25535
12916 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12917 rust_enum_variant calculation.
12918
dfdeeca1
TT
129192020-02-19 Tom Tromey <tromey@adacore.com>
12920
12921 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12922
2ef5453b
TT
129232020-02-19 Tom Tromey <tromey@adacore.com>
12924
12925 * ada-lang.c (cache_symbol): Use obstack_strdup.
12926
9f1528a1
AB
129272020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12928
12929 * configure: Regenerate.
12930
d3c22fa8
TT
129312020-02-19 Tom Tromey <tromey@adacore.com>
12932
12933 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12934 NULL check.
12935
bf84f706
MR
129362020-02-19 Maciej W. Rozycki <macro@wdc.com>
12937
12938 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12939
d1c9b20f
AB
129402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12941
12942 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12943 if GDBSERVER is not defined.
12944 (riscv_tdesc_cache): Likewise, also store const target_desc.
12945 (STATIC_IN_GDB): Define.
12946 (riscv_create_target_description): Update declaration with
12947 STATIC_IN_GDB.
12948 (riscv_lookup_target_description): New function, only define if
12949 GDBSERVER is not defined.
12950 * arch/riscv.h (riscv_create_target_description): Declare only
12951 when GDBSERVER is defined.
12952 (riscv_lookup_target_description): New declaration when GDBSERVER
12953 is not defined.
12954 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12955 (riscv_linux_read_features): ...this, and return
12956 riscv_gdbarch_features instead of target_desc.
12957 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12958 (riscv_linux_read_description): Rename to...
12959 (riscv_linux_read_features): ...this.
12960 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12961 Update to use riscv_gdbarch_features and
12962 riscv_lookup_target_description.
12963 * riscv-tdep.c (riscv_find_default_target_description): Use
12964 riscv_lookup_target_description instead of
12965 riscv_create_target_description.
12966
373d7ac0
SM
129672020-02-18 Simon Marchi <simon.marchi@efficios.com>
12968
12969 * valprint.c (generic_val_print_enum_1): When printing a flag
12970 enum with value 0 and there is no enumerator with value 0, print
12971 just "0" instead of "(unknown: 0x0)".
12972
b29a2df0
SM
129732020-02-18 Simon Marchi <simon.marchi@efficios.com>
12974
12975 * valprint.c (generic_val_print_enum_1): Print unknown part of
12976 flag enum in hex.
12977
6740f0cc
SM
129782020-02-18 Simon Marchi <simon.marchi@efficios.com>
12979
12980 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12981 flag enums to contain duplicate enumerators.
12982 * valprint.c (generic_val_print_enum_1): Update comment.
12983
edd45eb0
SM
129842020-02-18 Simon Marchi <simon.marchi@efficios.com>
12985
12986 * dwarf2/read.c: Include "count-one-bits.h".
12987 (update_enumeration_type_from_children): If an enumerator has
12988 multiple bits set, don't treat the enumeration as a "flag enum".
12989 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12990 of flag enums have 0 or 1 bit set.
12991
6d0cf446
BE
129922020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12993
12994 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12995 conversion.
12996 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12997 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12998 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12999 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13000 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13001
7001c1b7
SM
130022020-02-18 Simon Marchi <simon.marchi@efficios.com>
13003
13004 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13005
fdb61c6c
SM
130062020-02-14 Simon Marchi <simon.marchi@efficios.com>
13007
13008 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13009 displaced_step_closure_up.
13010 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13011 (struct displaced_step_closure_up):
13012 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13013 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13014 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13015 Likewise.
13016 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13017 * gdbarch.c, gdbarch.h: Re-generate.
13018 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13019 displaced_step_closure_up.
13020 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13021 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13022 * infrun.h (displaced_step_closure_up): New type alias.
13023 (struct displaced_step_inferior_state) <step_closure>: Change
13024 type to displaced_step_closure_up.
13025 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13026 displaced_step_closure_up.
13027 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13028
a4a38eb4
TT
130292020-02-14 Tom Tromey <tom@tromey.com>
13030
13031 * minidebug.c (gnu_debug_key): New global.
13032 (find_separate_debug_file_in_section): Use it.
13033
e8217e61
SM
130342020-02-14 Simon Marchi <simon.marchi@efficios.com>
13035
13036 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13037 std::unique_ptr.
13038 * gdbarch.c: Re-generate.
13039 * gdbarch.h: Re-generate.
13040 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13041 change.
13042 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13043 type to std::unique_ptr.
13044 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13045 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13046 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13047 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13048 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13049 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13050 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13051 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13052 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13053
d8d83535
SM
130542020-02-14 Simon Marchi <simon.marchi@efficios.com>
13055
13056 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13057 std::unique_ptr.
13058 (displaced_step_clear): Rename to...
13059 (displaced_step_reset): ... this. Just call displaced->reset ().
13060 (displaced_step_clear_cleanup): Rename to...
13061 (displaced_step_reset_cleanup): ... this.
13062 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13063 (displaced_step_fixup): Likewise.
13064 (resume_1): Likewise.
13065 (handle_inferior_event): Restore child's memory before calling
13066 displaced_step_fixup on the parent.
13067 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13068 to std::unique_ptr.
13069 <step_closure>: Change type to std::unique_ptr.
13070
5f661e03
SM
130712020-02-14 Simon Marchi <simon.marchi@efficios.com>
13072
13073 * arm-tdep.c: Include count-one-bits.h.
13074 (cleanup_block_store_pc): Use count_one_bits.
13075 (cleanup_block_load_pc): Use count_one_bits.
13076 (arm_copy_block_xfer): Use count_one_bits.
13077 (thumb2_copy_block_xfer): Use count_one_bits.
13078 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13079 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13080 (thumb_get_next_pcs_raw): Use count_one_bits.
13081 (arm_get_next_pcs_raw): Use count_one_bits_l.
13082 * arch/arm.c (bitcount): Remove.
13083 * arch/arm.h (bitcount): Remove.
13084
8084e579
TT
130852020-02-14 Tom Tromey <tromey@adacore.com>
13086
13087 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13088 Update.
13089 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13090 * dwarf2/loc.c (call_site_find_chain_1): Return
13091 unique_xmalloc_ptr.
13092 (call_site_find_chain): Likewise.
13093
258bf0ee
RB
130942020-02-14 Richard Biener <rguenther@suse.de>
13095
13096 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13097 on expression with division operators.
13098
f98a8458
AKS
130992020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13100
13101 * MAINTAINERS (Write After Approval): Adding myself.
13102
d1437c0e
TT
131032020-02-12 Tom Tromey <tom@tromey.com>
13104
13105 * event-loop.c (event_data, gdb_event, event_handler_func):
13106 Remove.
13107
3d4560f7
TT
131082020-02-12 Tom Tromey <tom@tromey.com>
13109
13110 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13111 (dwarf2_frame_objfile_data): Add comment.
13112 (find_comp_unit, set_comp_unit): New functions.
13113 (dwarf2_frame_find_fde): Use find_comp_unit.
13114 (dwarf2_build_frame_info): Use set_comp_unit.
13115
21982304
TT
131162020-02-12 Tom Tromey <tom@tromey.com>
13117
13118 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13119 (comp_unit): Don't initialize objfile.
13120 (execute_cfa_program): Add text_offset parameter.
13121 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13122 (dwarf2_frame_cache): Update.
13123 (dwarf2_build_frame_info): Don't set "objfile" member.
13124
4debb237
TT
131252020-02-12 Tom Tromey <tom@tromey.com>
13126
13127 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13128 (decode_frame_entry): Likewise.
13129 (dwarf2_build_frame_info): Update.
13130
0d404d44
TT
131312020-02-12 Tom Tromey <tom@tromey.com>
13132
13133 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13134 (decode_frame_entry_1): Use the comp_unit obstack.
13135
a7a3ae5c
TT
131362020-02-12 Tom Tromey <tom@tromey.com>
13137
13138 * dwarf2/frame.c (struct comp_unit): Add initializers and
13139 constructor.
13140 (dwarf2_frame_objfile_data): Store a comp_unit.
13141 (dwarf2_frame_find_fde): Update.
13142 (dwarf2_build_frame_info): Use "new".
13143
a9d65418
TT
131442020-02-12 Tom Tromey <tom@tromey.com>
13145
13146 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13147 (dwarf2_fde_table): Typedef for std::vector.
13148 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13149 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13150 (decode_frame_entry): Update.
13151 (dwarf2_build_frame_info): Use "new".
13152
7559c217
CB
131532020-02-12 Christian Biesinger <cbiesinger@google.com>
13154
13155 * arm-tdep.c (arm_gdbarch_init): Update.
13156 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13157 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13158 have_neon, is_m>: Change to bool.
13159
aeefc73c
CB
131602020-02-12 Christian Biesinger <cbiesinger@google.com>
13161
13162 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13163
d27b8e5f
TT
131642020-02-12 Tom Tromey <tom@tromey.com>
13165
13166 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13167
cd5900f3
HD
131682020-02-12 Hannes Domani <ssbssa@yahoo.de>
13169
13170 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13171 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13172
f056b22b
TT
131732020-02-11 Tom Tromey <tom@tromey.com>
13174
13175 * psymtab.h: Update comment.
13176
f92ff6b5
TT
131772020-02-11 Tom Tromey <tom@tromey.com>
13178
13179 * gdb_obstack.h (struct auto_obstack): Use
13180 DISABLE_COPY_AND_ASSIGN.
13181
3fd6912b
TT
131822020-02-11 Tom Tromey <tom@tromey.com>
13183
13184 * dwarf2/frame.h (struct objfile): Don't forward declare.
13185
69ed9b74
CB
131862020-02-11 Christian Biesinger <cbiesinger@google.com>
13187
13188 * cris-tdep.c (cris_supply_gregset): Change signature to match
13189 what struct regset expects.
13190 (cris_regset): New struct.
13191 (fetch_core_registers): Remove.
13192 (cris_iterate_over_regset_sections): New function.
13193 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13194 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13195
bda874f6
CB
131962020-02-11 Christian Biesinger <cbiesinger@google.com>
13197
13198 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13199 registers.
13200
754e1564
CB
132012020-02-11 Christian Biesinger <cbiesinger@google.com>
13202
13203 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13204
8ddd8e0e
SM
132052020-02-11 Simon Marchi <simon.marchi@efficios.com>
13206
13207 * configure: Re-generate.
13208
898e7f60
SM
132092020-02-11 Simon Marchi <simon.marchi@efficios.com>
13210
13211 * configure: Re-generate.
13212
58df732b
SM
132132020-02-11 Simon Marchi <simon.marchi@efficios.com>
13214
13215 * acinclude: Update warning.m4 path.
13216 * warning.m4: Move to gdbsupport.
13217
da5bd37e
TT
132182020-02-11 Tom Tromey <tromey@adacore.com>
13219
13220 * remote.c (remote_console_output): Update.
13221 * printcmd.c (printf_command): Update.
13222 * event-loop.c (gdb_wait_for_event): Update.
13223 * linux-nat.c (sigchld_handler): Update.
13224 * remote-sim.c (gdb_os_write_stdout): Update.
13225 (gdb_os_flush_stdout): Update.
13226 (gdb_os_flush_stderr): Update.
13227 (gdb_os_write_stderr): Update.
13228 * exceptions.c (print_exception): Update.
13229 * remote-fileio.c (remote_fileio_func_read): Update.
13230 (remote_fileio_func_write): Update.
13231 * tui/tui.c (tui_enable): Update.
13232 * tui/tui-interp.c (tui_interp::init): Update.
13233 * utils.c (init_page_info): Update.
13234 (putchar_unfiltered, fputc_unfiltered): Update.
13235 (gdb_flush): Update.
13236 (emit_style_escape): Update.
13237 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13238 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13239 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13240 (stderr_file::write): Update.
13241 (stderr_file::puts): Update.
13242 * ui-file.h (ui_file_isatty, ui_file_write)
13243 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13244 (ui_file_puts): Don't declare.
13245
85f0dd3c
TV
132462020-02-10 Tom de Vries <tdevries@suse.de>
13247
13248 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13249 sentinel to char *.
13250
2e927613
TV
132512020-02-09 Tom de Vries <tdevries@suse.de>
13252
13253 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13254 filename if it matches "<artificial>".
13255
6bafc845
HD
132562020-02-09 Hannes Domani <ssbssa@yahoo.de>
13257
13258 * windows-tdep.c (struct enum_value_name): New struct.
13259 (create_enum): New function.
13260 (windows_get_siginfo_type): Create and use enum types.
13261
7928d571
HD
132622020-02-09 Hannes Domani <ssbssa@yahoo.de>
13263
13264 * NEWS: Mention $_siginfo support for Windows.
13265 * windows-nat.c (handle_exception): Set siginfo_er.
13266 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13267 (windows_xfer_siginfo): New function.
13268 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13269 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13270 (init_windows_gdbarch_data): New function.
13271 (get_windows_gdbarch_data): New function.
13272 (windows_get_siginfo_type): New function.
13273 (windows_init_abi): Register windows_get_siginfo_type.
13274 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13275
6751ebae
TT
132762020-02-08 Tom Tromey <tom@tromey.com>
13277
13278 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13279 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13280 <keep>: Declare method.
13281 <m_keep>: Remove member.
13282 <~cutu_reader>: Remove.
13283 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13284 (cutu_reader::cutu_reader): Update.
13285 (cutu_reader::keep): Rename from ~cutu_reader.
13286 (process_psymtab_comp_unit, build_type_psymtabs_1)
13287 (process_skeletonless_type_unit, load_partial_comp_unit)
13288 (load_full_comp_unit, dwarf2_read_addr_index)
13289 (read_signatured_type): Update.
13290
135f5437
TT
132912020-02-08 Tom Tromey <tom@tromey.com>
13292
13293 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13294 "want_partial_unit" parameter.
13295 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13296 Inline check for DW_TAG_partial_unit.
13297 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13298
9f66ff1c
TT
132992020-02-08 Tom Tromey <tom@tromey.com>
13300
13301 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13302 read.c.
13303 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13304 read.c.
13305
c8a7a66f
TT
133062020-02-08 Tom Tromey <tom@tromey.com>
13307
13308 * dwarf2/read.c (read_address): Move to comp-unit.c.
13309 (dwarf2_rnglists_process, dwarf2_ranges_process)
13310 (read_attribute_value, dwarf_decode_lines_1)
13311 (var_decode_location, decode_locdesc): Update.
13312 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13313 read.c. Remove "cu" parameter.
13314 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13315 method.
13316
8266302d
TT
133172020-02-08 Tom Tromey <tom@tromey.com>
13318
13319 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13320 (read_indirect_line_string): Update.
13321 * dwarf2/comp-unit.c (read_offset): Remove.
13322 (read_comp_unit_head): Update.
13323 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13324 method.
13325 (read_offset): Don't declare.
13326
4057dfde
TT
133272020-02-08 Tom Tromey <tom@tromey.com>
13328
13329 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13330 * dwarf2/read.c (struct comp_unit_head): Move to
13331 dwarf2/comp-unit.h.
13332 (enum class rcuh_kind): Move to comp-unit.h.
13333 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13334 (read_comp_unit_head, error_check_comp_unit_head)
13335 (read_and_check_comp_unit_head): Move to comp-unit.c.
13336 (read_offset, dwarf_unit_type_name): Likewise.
13337 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13338 (cutu_reader::cutu_reader, read_call_site_scope)
13339 (find_partial_die, follow_die_offset): Update.
13340 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13341
24aa364d
TT
133422020-02-08 Tom Tromey <tom@tromey.com>
13343
13344 * dwarf2/read.c (read_offset_1): Move to leb.c.
13345 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13346 (dwarf_decode_macro_bytes): Update.
13347 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13348 * dwarf2/leb.h (read_offset): Declare.
13349
2c7d5afc
TT
133502020-02-08 Tom Tromey <tom@tromey.com>
13351
13352 * dwarf2/read.c (dwarf2_section_size): Remove.
13353 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13354 Update.
13355 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13356
4075cb26
TT
133572020-02-08 Tom Tromey <tom@tromey.com>
13358
13359 * dwarf2/read.c (read_initial_length): Move to leb.c.
13360 * dwarf2/leb.h (read_initial_length): Declare.
13361 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13362 handle_nonstd parameter.
13363 * dwarf2/frame.c (read_initial_length): Remove.
13364 (decode_frame_entry_1): Update.
13365
09ba997f
TT
133662020-02-08 Tom Tromey <tom@tromey.com>
13367
13368 * dwarf2/loc.c (dwarf2_find_location_expression)
13369 (dwarf_evaluate_loc_desc::get_tls_address)
13370 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13371 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13372 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13373 (dwarf2_compile_property_to_c)
13374 (dwarf2_loc_desc_get_symbol_read_needs)
13375 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13376 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13377 (loclist_describe_location, loclist_tracepoint_var_ref)
13378 (loclist_generate_c_location): Update.
13379 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13380 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13381 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13382 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13383 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13384 (dwarf2_per_cu_data::addr_size)
13385 (dwarf2_per_cu_data::ref_addr_size)
13386 (dwarf2_per_cu_data::text_offset)
13387 (dwarf2_per_cu_data::addr_type): Now methods.
13388 (per_cu_header_read_in): Make per_cu "const".
13389 (dwarf2_version): Remove.
13390 (dwarf2_per_cu_data::int_type): Now a method.
13391 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13392 (set_die_type, read_array_type, read_subrange_index_type)
13393 (read_tag_string_type, read_subrange_type): Update.
13394 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13395 offset_size, ref_addr_size, text_offset, addr_type, version,
13396 objfile, int_type, addr_sized_int_type>: Declare methods.
13397
96c738c0
TT
133982020-02-08 Tom Tromey <tom@tromey.com>
13399
13400 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13401 Move earlier.
13402
8fdd972c
TT
134032020-02-08 Tom Tromey <tom@tromey.com>
13404
13405 * dwarf2/read.h (dwarf_line_debug): Declare.
13406 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13407 * dwarf2/read.c: Move line_header code to new files.
13408 (dwarf_line_debug): No longer static.
13409 * dwarf2/line-header.c: New file.
13410 * dwarf2/line-header.h: New file.
13411
03075812
TT
134122020-02-08 Tom Tromey <tom@tromey.com>
13413
13414 * dwarf2/read.c (struct line_header) <file_full_name,
13415 file_file_name>: Return unique_xmalloc_ptr.
13416 (line_header::file_file_name): Update.
13417 (line_header::file_full_name): Update.
13418 (dw2_get_file_names_reader): Update.
13419 (macro_start_file): Update.
13420
bb822404
TT
134212020-02-08 Tom Tromey <tom@tromey.com>
13422
13423 * dwarf2/read.c (struct line_header) <file_full_name,
13424 file_file_name>: Declare methods.
13425 (dw2_get_file_names_reader): Update.
13426 (file_file_name): Now a method.
13427 (file_full_name): Likewise.
13428 (macro_start_file): Update.
13429
009b64fc
TT
134302020-02-08 Tom Tromey <tom@tromey.com>
13431
13432 * dwarf2/read.c (dwarf_always_disassemble)
13433 (show_dwarf_always_disassemble): Move to loc.c.
13434 (_initialize_dwarf2_read): Move "always-disassemble" registration
13435 to loc.c.
13436 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13437 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13438 static.
13439 (show_dwarf_always_disassemble): Move from read.c.
13440 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13441
5895093f
TT
134422020-02-08 Tom Tromey <tom@tromey.com>
13443
13444 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13445 (create_quick_file_names_table): Return htab_up.
13446 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13447 Update.
13448 * dwarf2/read.h (struct dwarf2_per_objfile)
13449 <quick_file_names_table>: Now htab_up.
13450
b3b32279
TT
134512020-02-08 Tom Tromey <tom@tromey.com>
13452
13453 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13454
1d33d811
TT
134552020-02-08 Tom Tromey <tom@tromey.com>
13456
13457 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13458 Rewrite.
13459 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13460 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13461 (abbrev_table::abbrev_table): No longer inline.
13462 (ABBREV_HASH_SIZE): Remove.
13463 (abbrev_table::m_abbrevs): Now an htab_up.
13464
86de1d91
TT
134652020-02-08 Tom Tromey <tom@tromey.com>
13466
13467 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13468 (cutu_reader): Update.
13469 (build_type_psymtabs_1): Update.
13470 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13471 (abbrev_table::alloc_abbrev): Update.
13472 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13473 (abbrev_table::read): New static method, renamed from
13474 abbrev_table_read_table.
13475 (abbrev_table::alloc_abbrev)
13476 (abbrev_table::add_abbrev): Now private.
13477 (abbrev_table::abbrev_table): Now private.
13478 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13479
0335378b
TT
134802020-02-08 Tom Tromey <tom@tromey.com>
13481
13482 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13483 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13484 htab_up.
13485
48b490f2
TT
134862020-02-08 Tom Tromey <tom@tromey.com>
13487
13488 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13489 htab_up.
13490 (lookup_dwo_unit_in_dwp): Update.
13491 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13492 on obstack.
13493
bc68fb19
TT
134942020-02-08 Tom Tromey <tom@tromey.com>
13495
13496 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13497 obstack.
13498
d15acc42
TT
134992020-02-08 Tom Tromey <tom@tromey.com>
13500
13501 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13502 line_header_hash.
13503 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13504 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13505 Change type to htab_up.
13506
eaa5fa8b
TT
135072020-02-08 Tom Tromey <tom@tromey.com>
13508
13509 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13510 htab_up. Don't allocate on obstack.
13511 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13512 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13513 Change type to htab_up.
13514
b0b6a987
TT
135152020-02-08 Tom Tromey <tom@tromey.com>
13516
13517 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13518 Change type to htab_up.
13519 * dwarf2/read.c (create_signatured_type_table_from_index)
13520 (create_signatured_type_table_from_debug_names)
13521 (create_all_type_units, add_type_unit)
13522 (lookup_dwo_signatured_type, lookup_signatured_type)
13523 (process_skeletonless_type_unit): Update.
13524 (create_debug_type_hash_table, create_debug_types_hash_table):
13525 Change type of types_htab.
13526 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13527 htab_up. Don't allocate on obstack.
13528 (create_cus_hash_table): Change type of cus_htab parameter.
13529 (struct dwo_file) <cus, tus>: Now htab_up.
13530 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13531 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13532 (queue_and_load_all_dwo_tus): Update.
13533 * dwarf2/index-write.c (write_gdbindex): Update.
13534 (write_debug_names): Update.
13535
39856def
TT
135362020-02-08 Tom Tromey <tom@tromey.com>
13537
13538 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13539 dwarf2/read.c. Remove "next" member. Add constructor ntad
13540 destructor.
13541 (struct dwarf2_per_objfile) <queue>: New member.
13542 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13543 dwarf2/read.h.
13544 (dwarf2_queue, dwarf2_queue_tail): Remove.
13545 (class dwarf2_queue_guard): Add parameter to constructor. Use
13546 DISABLE_COPY_AND_ASSIGN.
13547 <m_per_objfile>: New member.
13548 <~dwarf2_queue_guard>: Rewrite.
13549 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13550 Update.
13551 (~dwarf2_queue_item): New.
13552
3e225074
TT
135532020-02-08 Tom Tromey <tom@tromey.com>
13554
13555 * dwarf2/read.c (struct die_info) <has_children>: New member.
13556 (dw2_get_file_names_reader): Remove has_children.
13557 (dw2_get_file_names): Update.
13558 (read_cutu_die_from_dwo): Remove has_children.
13559 (cutu_reader::init_tu_and_read_dwo_dies)
13560 (cutu_reader::cutu_reader): Update.
13561 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13562 Remove has_children.
13563 (build_type_psymtabs_1, process_skeletonless_type_unit)
13564 (load_partial_comp_unit, load_full_comp_unit): Update.
13565 (create_dwo_cu_reader): Remove has_children.
13566 (create_cus_hash_table, read_die_and_children): Update.
13567 (read_full_die_1,read_full_die): Remove has_children.
13568 (read_signatured_type): Update.
13569 (class cutu_reader) <has_children>: Remove.
13570
82ca8957
TT
135712020-02-08 Tom Tromey <tom@tromey.com>
13572
13573 * dwarf2/expr.c: Rename from dwarf2expr.c.
13574 * dwarf2/expr.h: Rename from dwarf2expr.h.
13575 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13576 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13577 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13578 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13579 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13580 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13581 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13582 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13583 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13584 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13585 * dwarf2/loc.c: Rename from dwarf2loc.c.
13586 * dwarf2/loc.h: Rename from dwarf2loc.h.
13587 * dwarf2/read.c: Rename from dwarf2read.c.
13588 * dwarf2/read.h: Rename from dwarf2read.h.
13589 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13590 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13591 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13592 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13593 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13594 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13595 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13596 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13597 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13598 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13599 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13600 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13601 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13602 Update.
13603 * Makefile.in (COMMON_SFILES): Update.
13604 (HFILES_NO_SRCDIR): Update.
13605
9e35d499
TT
136062020-02-08 Tom Tromey <tom@tromey.com>
13607
13608 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13609 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13610
1eba2311
TT
136112020-02-08 Tom Tromey <tom@tromey.com>
13612
13613 * dwarf2read.h (struct die_info): Don't declare.
13614
e41c2da2
TT
136152020-02-08 Tom Tromey <tom@tromey.com>
13616
13617 * dwarf2read.h (die_info_ptr): Remove typedef.
13618
4fc6c0d5
TT
136192020-02-08 Tom Tromey <tom@tromey.com>
13620
13621 * dwarf2read.c (read_call_site_scope)
13622 (handle_data_member_location, dwarf2_add_member_fn)
13623 (mark_common_block_symbol_computed, read_common_block)
13624 (attr_to_dynamic_prop, partial_die_info::read)
13625 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13626 (dwarf2_symbol_mark_computed, set_die_type): Update.
13627 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13628 method.
13629 (attr_form_is_block): Don't declare.
13630 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13631
cd6c91b4
TT
136322020-02-08 Tom Tromey <tom@tromey.com>
13633
13634 * dwarf2read.c (dwarf2_find_base_address, )
13635 (read_call_site_scope, rust_containing_type)
13636 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13637 (handle_data_member_location, dwarf2_add_member_fn)
13638 (get_alignment, read_structure_type, process_structure_scope)
13639 (mark_common_block_symbol_computed, read_common_block)
13640 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13641 (partial_die_info::read, read_attribute_value, new_symbol)
13642 (lookup_die_type, dwarf2_get_ref_die_offset)
13643 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13644 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13645 (dwarf2_symbol_mark_computed): Update.
13646 * dwarf2/attribute.h (struct attribute) <value_as_address,
13647 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13648 methods.
13649 (value_as_address, attr_form_is_section_offset)
13650 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13651 * dwarf2/attribute.c (attribute::value_as_address)
13652 (attribute::form_is_section_offset, attribute::form_is_constant)
13653 (attribute::form_is_ref): Now methods.
13654
162dce55
TT
136552020-02-08 Tom Tromey <tom@tromey.com>
13656
13657 * dwarf2read.c (struct attribute, DW_STRING)
13658 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13659 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13660 (attr_form_is_block, attr_form_is_section_offset)
13661 (attr_form_is_constant, attr_form_is_ref): Move.
13662 * dwarf2/attribute.h: New file.
13663 * dwarf2/attribute.c: New file, from dwarf2read.c.
13664 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13665
3054dd54
TT
136662020-02-08 Tom Tromey <tom@tromey.com>
13667
13668 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13669 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13670 Move.
13671 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13672 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13673 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13674 abbrev.c.
13675 * dwarf2/abbrev.h: New file.
13676 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13677 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13678
96b79293
TT
136792020-02-08 Tom Tromey <tom@tromey.com>
13680
13681 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13682 (dwarf2_section_size, dwarf2_get_section_info)
13683 (create_signatured_type_table_from_debug_names)
13684 (create_addrmap_from_aranges, read_debug_names_from_section)
13685 (get_gdb_index_contents_from_section, read_comp_unit_head)
13686 (error_check_comp_unit_head, read_abbrev_offset)
13687 (create_debug_type_hash_table, init_cu_die_reader)
13688 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13689 (read_comp_units_from_section, create_cus_hash_table)
13690 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13691 (create_dwp_v2_section, dwarf2_rnglists_process)
13692 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13693 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13694 (read_indirect_string_from_dwz, read_addr_index_1)
13695 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13696 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13697 (fill_in_loclist_baton): Update.
13698 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13699 get_containing_section, get_bfd_owner, get_bfd_section,
13700 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13701 (dwarf2_read_section, get_section_name, get_section_file_name)
13702 (get_containing_section, get_section_bfd_owner)
13703 (get_section_bfd_section, get_section_name, get_section_file_name)
13704 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13705 declare.
13706 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13707 (dwarf2_section_info::get_bfd_owner)
13708 (dwarf2_section_info::get_bfd_section)
13709 (dwarf2_section_info::get_name)
13710 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13711 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13712 (dwarf2_section_info::read): Now methods.
13713 * dwarf-index-write.c (class debug_names): Update.
13714
2c86cff9
TT
137152020-02-08 Tom Tromey <tom@tromey.com>
13716
13717 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13718 Move to dwarf2/section.h.
13719 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13720 (get_section_bfd_section, get_section_name)
13721 (get_section_file_name, get_section_id, get_section_flags)
13722 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13723 dwarf2/section.c.
13724 * dwarf2/section.h: New file.
13725 * dwarf2/section.c: New file, from dwarf2read.c.
13726 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13727
f4382c45
TT
137282020-02-08 Tom Tromey <tom@tromey.com>
13729
13730 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13731 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13732 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13733 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13734 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13735 * dwarf2/leb.h: New file, from dwarf2read.c.
13736 * dwarf2/leb.c: New file, from dwarf2read.c.
13737 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13738 Remove.
13739 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13740 (COMMON_SFILES): Add dwarf2/leb.c.
13741
01840b7a
JB
137422020-02-08 Joel Brobecker <brobecker@adacore.com>
13743
13744 GDB 9.1 released.
13745
dfcb27e4
IB
137462020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13747
13748 PR gdb/25190:
aac66a4c
SM
13749 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13750 * gdb/remote.c (remote_console_output): Update.
13751 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13752 (ui_file_puts): ...this.
13753 * gdb/ui-file.h (ui_file_puts): Add declaration.
13754 * gdb/utils.c (emit_style_escape): Update.
13755 (flush_wrap_buffer): Update.
13756 (fputs_maybe_filtered): Update.
13757 (fputs_unfiltered): Add function.
dfcb27e4 13758
faa17681
IB
137592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13760
aac66a4c
SM
13761 * gdb/event-loop.c (gdb_wait_for_event): Update.
13762 * gdb/printcmd.c (printf_command): Update.
13763 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13764 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13765 (gdb_os_flush_stderr): Update.
13766 * gdb/remote.c (remote_console_output): Update.
13767 * gdb/ui-file.c (gdb_flush): Rename to...
13768 (ui_file_flush): ...this.
13769 (stderr_file::write): Update.
13770 (stderr_file::puts): Update.
13771 * gdb/ui-file.h (gdb_flush): Rename to...
13772 (ui_file_flush): ...this.
13773 * gdb/utils.c (gdb_flush): Add function.
13774 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13775
5abbbe1d
TT
137762020-02-07 Tom Tromey <tromey@adacore.com>
13777
13778 PR breakpoints/24915:
13779 * source.c (find_and_open_source): Do not check basenames_may_differ.
13780
919adfe8
TT
137812020-02-07 Tom Tromey <tom@tromey.com>
13782
13783 * README: Update gdbserver documentation.
13784 * gdbserver: Move to top level.
13785 * configure.tgt (build_gdbserver): Remove.
13786 * configure.ac: Remove --enable-gdbserver.
13787 * configure: Rebuild.
13788 * Makefile.in (distclean): Don't mention gdbserver.
13789
1d5d29e7
SV
137902020-02-06 Shahab Vahedi <shahab@synopsys.com>
13791
13792 * source-cache.c (source_cache::ensure): Surround
13793 get_plain_source_lines with a try/catch.
13794 (source_cache::get_line_charpos): Get rid of try/catch
13795 and only check for the return value of "ensure".
13796 * tui/tui-source.c (tui_source_window::set_contents):
13797 Simplify "nlines" calculation.
13798
6eb1129c
SV
137992020-02-06 Shahab Vahedi <shahab@synopsys.com>
13800
13801 * MAINTAINERS (Write After Approval): Add myself.
13802
c6a42d11
CB
138032020-02-05 Christian Biesinger <cbiesinger@google.com>
13804
13805 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13806 function call.
13807
c8ecdda6
CB
138082020-02-05 Christian Biesinger <cbiesinger@google.com>
13809
13810 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13811
f6480e70
MR
138122020-02-05 Maciej W. Rozycki <macro@wdc.com>
13813
13814 * nat/riscv-linux-tdesc.h: New file.
13815 * nat/riscv-linux-tdesc.c: New file, taking code from...
13816 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13817 ... here.
13818 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13819 NATDEPFILES.
13820
dcc9fbc6
AB
138212020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13822
13823 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13824 we don't set the fake simulator ptid to the null_ptid.
13825
719546c4
SM
138262020-02-03 Simon Marchi <simon.marchi@efficios.com>
13827
13828 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13829 * gdbthread.h (class thread_info) <resumed>: Likewise.
13830 * infrun.c (resume_1): Likewise.
13831 (proceed): Likewise.
13832 (infrun_thread_stop_requested): Likewise.
13833 (stop_all_threads): Likewise.
13834 (handle_inferior_event): Likewise.
13835 (restart_threads): Likewise.
13836 (finish_step_over): Likewise.
13837 (keep_going_stepped_thread): Likewise.
13838 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13839 (linux_handle_extended_wait): Likewise.
13840 * record-btrace.c (get_thread_current_frame_id): Likewise.
13841 * record-full.c (record_full_wait_1): Likewise.
13842 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13843 * target.c (target_resume): Likewise.
13844 * thread.c (set_running_thread): Likewise.
13845
e409c542
AKS
138462020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13847
13848 * f-valprint.c (f77_print_array_1): Changed datatype of index
13849 variable to LONGEST from int to enable it to contain bound
13850 values correctly.
13851
ee98c0da
MR
138522020-02-03 Maciej W. Rozycki <macro@wdc.com>
13853
13854 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13855 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13856 offsets according to FLEN determined.
13857 (riscv_linux_nat_target::read_description): Determine FLEN
13858 dynamically.
13859 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13860 according to FLEN determined.
13861 (riscv_linux_nat_target::store_registers): Likewise.
13862
aa66aac4
SV
138632020-02-01 Shahab Vahedi <shahab@synopsys.com>
13864
13865 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13866 when reg->group is empty and reggroup is not.
13867
fd9faca8
TT
138682020-01-31 Tom Tromey <tromey@adacore.com>
13869
13870 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13871 Call beneath target's mourn_inferior after unpushing.
13872
42330a68
AB
138732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13874
13875 PR tui/9765
13876 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13877 have enough lines to fill the screen, still return the lowest
13878 address we found.
13879
7a27a45b
AB
138802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13881
13882 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13883 '-', '<', and '>' commands.
13884
c47f70e2
PA
138852020-01-29 Pedro Alves <palves@redhat.com>
13886 Sergio Durigan Junior <sergiodj@redhat.com>
13887
13888 * infcmd.c (construct_inferior_arguments): Assert that
13889 'argc' is greater than 0.
13890
5133a315
LM
138912020-01-29 Luis Machado <luis.machado@linaro.org>
13892
13893 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13894 (BRK_INSN_MASK): Define to 0xd4200000.
13895 (aarch64_program_breakpoint_here_p): New function.
13896 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13897 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13898 breakpoint.c.
13899 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13900 breakpoint.h
13901 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13902 call gdbarch_program_breakpoint_here_p.
13903 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13904 default_program_breakpoint_here_p, changed return type to bool and
13905 simplified.
13906 * breakpoint.h (program_breakpoint_here): Moved prototype to
13907 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13908 return type to bool.
13909 * gdbarch.c: Regenerate.
13910 * gdbarch.h: Regenerate.
13911 * gdbarch.sh (program_breakpoint_here_p): New method.
13912 * infrun.c (handle_signal_stop): Call
13913 gdbarch_program_breakpoint_here_p.
13914
168f8c6b
TT
139152020-01-26 Tom Tromey <tom@tromey.com>
13916
13917 * ctfread.c (struct ctf_fp_info): Reindent.
13918 (_initialize_ctfread): Remove.
13919
128a391f
TT
139202020-01-26 Tom Tromey <tom@tromey.com>
13921
13922 * psymtab.c (partial_map_expand_apply)
13923 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13924 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13925 (psym_print_stats, psym_expand_symtabs_for_function)
13926 (psym_map_symbol_filenames, psym_map_matching_symbols)
13927 (psym_expand_symtabs_matching)
13928 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13929 (maintenance_check_psymtabs): Use new methods.
13930 * psympriv.h (struct partial_symtab) <readin_p,
13931 get_compunit_symtab>: New methods.
13932 <readin, compunit_symtab>: Remove members.
13933 (struct standard_psymtab): New.
13934 (struct legacy_psymtab): Derive from standard_psymtab.
13935 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13936 standard_psymtab.
13937 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13938
0494dbec
TT
139392020-01-26 Tom Tromey <tom@tromey.com>
13940
13941 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13942 read_dependencies. Add assert.
13943 * psymtab.c (partial_symtab::read_dependencies): New method.
13944 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13945 method.
13946 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13947 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13948 read_dependencies.
13949 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13950 Add assert.
13951
8566b89b
TT
139522020-01-26 Tom Tromey <tom@tromey.com>
13953
13954 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13955 Call expand_psymtab.
13956 (xcoff_read_symtab): Call expand_psymtab.
13957 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13958 legacy_expand_psymtab.
13959 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13960 method.
13961 (struct legacy_psymtab) <expand_psymtab>: Implement.
13962 <legacy_expand_psymtab>: New member.
13963 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13964 (parse_partial_symbols): Set legacy_expand_psymtab.
13965 (psymtab_to_symtab_1): Change argument order. Call
13966 expand_psymtab.
13967 (new_psymtab): Set legacy_expand_psymtab.
13968 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13969 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13970 expand_psymtab.
13971 (dwarf2_psymtab::expand_psymtab): Rename from
13972 psymtab_to_symtab_1. Call expand_psymtab.
13973 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13974 (dbx_end_psymtab): Likewise.
13975 (dbx_psymtab_to_symtab_1): Change argument order. Call
13976 expand_psymtab.
13977 (dbx_read_symtab): Call expand_psymtab.
13978 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13979 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13980 (ctf_psymtab::read_symtab): Call expand_psymtab.
13981
077cbab2
TT
139822020-01-26 Tom Tromey <tom@tromey.com>
13983
13984 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13985 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13986 messages.
13987 * mdebugread.c (mdebug_read_symtab): Remove prints.
13988 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13989 assert.
13990 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13991
891813be
TT
139922020-01-26 Tom Tromey <tom@tromey.com>
13993
13994 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13995 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13996 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13997 legacy_symtab.
13998 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13999 * psymtab.c (psymtab_to_symtab): Call method.
14000 (dump_psymtab): Update.
14001 * psympriv.h (struct partial_symtab): Add virtual destructor.
14002 <read_symtab>: New method.
14003 (struct legacy_symtab): New.
14004 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14005 (struct pst_map) <pst>: Now a legacy_psymtab.
14006 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14007 (new_psymtab): Use legacy_psymtab.
14008 * dwarf2read.h (struct dwarf2_psymtab): New.
14009 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14010 * dwarf2read.c (dwarf2_create_include_psymtab)
14011 (dwarf2_build_include_psymtabs, create_type_unit_group)
14012 (create_partial_symtab, process_psymtab_comp_unit_reader)
14013 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14014 (set_partial_user): Use dwarf2_psymtab.
14015 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14016 (psymtab_to_symtab_1, process_full_comp_unit)
14017 (process_full_type_unit, dwarf2_ranges_read)
14018 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14019 (dwarf_decode_lines): Use dwarf2_psymtab.
14020 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14021 (add_address_entry_worker, write_one_signatured_type)
14022 (recursively_count_psymbols, recursively_write_psymbols)
14023 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14024 (write_debug_names): Likewise.
14025 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14026 <pst>: Now a legacy_psymtab.
14027 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14028 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14029 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14030 * ctfread.c (struct ctf_psymtab): New.
14031 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14032 ctf_psymtab.
14033 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14034 (create_partial_symtab): Return a ctf_psymtab.
14035 (scan_partial_symbols): Update.
14036
c3693a1d
TT
140372020-01-26 Tom Tromey <tom@tromey.com>
14038
14039 * xcoffread.c (xcoff_start_psymtab): Use new.
14040 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14041 renamed from start_psymtab_common.
14042 * psympriv.h (struct partial_symtab): Add new constructor.
14043 (start_psymtab_common): Don't declare.
14044 * mdebugread.c (parse_partial_symbols): Use new.
14045 * dwarf2read.c (create_partial_symtab): Use new.
14046 * dbxread.c (start_psymtab): Use new.
14047 * ctfread.c (create_partial_symtab): Use new.
14048
32caafd0
TT
140492020-01-26 Tom Tromey <tom@tromey.com>
14050
14051 * xcoffread.c (xcoff_end_psymtab): Use new.
14052 * psymtab.c (start_psymtab_common): Use new.
14053 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14054 Update.
14055 * psympriv.h (struct partial_symtab): Add parameters to
14056 constructor. Don't inline.
14057 (allocate_psymtab): Don't declare.
14058 * mdebugread.c (new_psymtab): Use new.
14059 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14060 * dbxread.c (dbx_end_psymtab): Use new.
14061
abaa2f23
TT
140622020-01-26 Tom Tromey <tom@tromey.com>
14063
14064 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14065 allocate_psymtab. Update documentation.
14066 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14067 allocate_psymtab. Do not use new.
14068 (allocate_psymtab): Use new. Update.
14069
6d94535f
TT
140702020-01-26 Tom Tromey <tom@tromey.com>
14071
14072 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14073 * psymtab.c (psym_print_stats): Update.
14074 * psympriv.h (struct partial_symtab) <readin,
14075 psymtabs_addrmap_supported, anonymous>: Now bool.
14076 * mdebugread.c (psymtab_to_symtab_1): Update.
14077 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14078 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14079 (process_full_comp_unit, process_full_type_unit): Update.
14080 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14081 * ctfread.c (psymtab_to_symtab): Update.
14082
6f17252b
TT
140832020-01-26 Tom Tromey <tom@tromey.com>
14084
14085 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14086 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14087 * psymtab.c (psymtab_storage): Delete psymtabs.
14088 (psymtab_storage::allocate_psymtab): Use new.
14089 (psymtab_storage::discard_psymtab): Use delete.
14090 * psympriv.h (struct partial_symtab): Add constructor and
14091 initializers.
14092
f6f1cebc
TT
140932020-01-26 Tom Tromey <tom@tromey.com>
14094
14095 * machoread.c: Do not include psympriv.h.
14096
e47e48f6
PW
140972020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14098
14099 * NEWS: Mention the new option and the set/show commands.
14100
a2fedca9
PW
141012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14102
14103 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14104 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14105 (validate_exec_file): New variables, enums, functions.
14106 (exec_file_locate_attach, print_section_info): Style the filenames.
14107 (_initialize_exec): Install show_exec_file_mismatch_command and
14108 set_exec_file_mismatch_command.
14109 * gdbcore.h (validate_exec_file): Declare.
14110 * infcmd.c (attach_command): Call validate_exec_file.
14111 * remote.c ( remote_target::remote_add_inferior): Likewise.
14112
7ffa82e1
AB
141132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14114
14115 * frame.c (find_frame_sal): Move call to get_next_frame into more
14116 inner scope.
14117 * inline-frame.c (inilne_state) <inline_state>: Update argument
14118 types.
14119 (inilne_state) <skipped_symbol>: Rename to...
14120 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14121 (skip_inline_frames): Build vector of skipped symbols and use this
14122 to reate the inline_state.
14123 (inline_skipped_symbol): Add a comment and some assertions, fetch
14124 skipped symbol from the list.
14125
3d92a3e3
AB
141262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14127
14128 * buildsym.c (lte_is_less_than): Delete.
14129 (buildsym_compunit::end_symtab_with_blockvector): Create local
14130 lambda function to sort line table entries, and use
14131 std::stable_sort instead of std::sort.
14132 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14133 markers when looking for a previous line.
14134
94a72be7
AB
141352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14136
14137 * dwarf2read.c (lnp_state_machine::record_line): Include
14138 end_sequence parameter in debug print out. Record the line if we
14139 are at an end_sequence marker even if it's not the start of a
14140 statement.
14141 * symmisc.c (maintenance_print_one_line_table): Print end of
14142 sequence markers with 'END' not '0'.
14143
53af73bf
PA
141442020-01-24 Pedro Alves <palves@redhat.com>
14145
14146 PR gdb/25410
14147 * thread.c (scoped_restore_current_thread::restore): Use
14148 switch_to_inferior_no_thread.
14149 * exec.c: Include "progspace-and-thread.h".
14150 (add_target_sections, remove_target_sections):
14151 scoped_restore_current_pspace_and_thread instead of
14152 scoped_restore_current_thread.
14153 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14154 and aspace to the inferior before calling clone_program_space.
14155 Remove stale comment.
14156
3050c6f4
CB
141572020-01-24 Christian Biesinger <cbiesinger@google.com>
14158
14159 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14160 (arm_netbsd_nat_target::fetch_registers): ...this.
14161 (arm_nbsd_nat_target::store_registers): Rename to...
14162 (arm_netbsd_nat_target::store_registers): ...this.
14163
73685c7e
CB
141642020-01-24 Christian Biesinger <cbiesinger@google.com>
14165
14166 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14167 register_t.
14168
89203d40
CB
141692020-01-24 Christian Biesinger <cbiesinger@google.com>
14170
14171 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14172 Update comment.
14173 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14174 Likewise.
14175 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14176 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14177 the correct replacement (iterate_over_regset_sections).
14178 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14179 Update comment.
14180
1ba1ac88
AB
141812020-01-24 Graham Markall <graham.markall@embecosm.com>
14182
14183 PR gdb/23718
14184 * gdb/python/python.c (execute_gdb_command): Call
14185 async_enable_stdin in catch block.
14186
f3364a6d
AB
141872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14188
14189 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14190 SWITCH_THRU_ALL_UIS.
14191
733d0a67
AB
141922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14193
14194 PR tui/9765
14195 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14196 comment, add extra parameter, and update to store previous symbol
14197 when appropriate.
14198 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14199 add extra parameter.
14200 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14201 remove unneeded parameter, add try/catch around gdb_print_insn,
14202 rewrite to add items to asm_lines vector.
14203 (tui_find_backward_disassembly_start_address): New function.
14204 (tui_find_disassembly_address): Updated throughout.
14205 (tui_disasm_window::set_contents): Update for changes to
14206 tui_disassemble.
14207 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14208 number of lines to scroll.
14209
b3b3bada
SM
142102020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14211
14212 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14213 (SECT_OFF_DATA): Likewise.
14214 (SECT_OFF_RODATA): Likewise.
14215 (SECT_OFF_TEXT): Likewise.
14216 (SECT_OFF_BSS): Likewise.
14217 (struct objfile) <text_section_offset, data_section_offset>: New
14218 methods.
14219 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14220 objfile::text_section_offset.
14221 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14222 * coffread.c (coff_symtab_read): Likewise.
14223 (enter_linenos): Likewise.
14224 (process_coff_symbol): Likewise.
14225 * ctfread.c (get_objfile_text_range): Likewise.
14226 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14227 Use objfile::data_section_offset.
14228 * dwarf2-frame.c (execute_cfa_program): Use
14229 objfile::text_section_offset.
14230 (dwarf2_frame_find_fde): Likewise.
14231 * dwarf2read.c (create_addrmap_from_index): Likewise.
14232 (create_addrmap_from_aranges): Likewise.
14233 (dw2_find_pc_sect_compunit_symtab): Likewise.
14234 (process_psymtab_comp_unit_reader): Likewise.
14235 (add_partial_symbol): Likewise.
14236 (add_partial_subprogram): Likewise.
14237 (process_full_comp_unit): Likewise.
14238 (read_file_scope): Likewise.
14239 (read_func_scope): Likewise.
14240 (read_lexical_block_scope): Likewise.
14241 (read_call_site_scope): Likewise.
14242 (dwarf2_rnglists_process): Likewise.
14243 (dwarf2_ranges_process): Likewise.
14244 (dwarf2_ranges_read): Likewise.
14245 (dwarf_decode_lines_1): Likewise.
14246 (new_symbol): Likewise.
14247 (dwarf2_fetch_die_loc_sect_off): Likewise.
14248 (dwarf2_per_cu_text_offset): Likewise.
14249 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14250 * hppa-tdep.c (read_unwind_info): Likewise.
14251 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14252 * psympriv.h (struct partial_symtab): Likewise.
14253 * psymtab.c (find_pc_sect_psymtab): Likewise.
14254 * solib-svr4.c (enable_break): Likewise.
14255 * stap-probe.c (relocate_address): Use
14256 objfile::data_section_offset.
14257 * xcoffread.c (enter_line_range): Use
14258 objfile::text_section_offset.
14259 (read_xcoff_symtab): Likewise.
14260
ab53f382
SM
142612020-01-23 Simon Marchi <simon.marchi@efficios.com>
14262
14263 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14264 declaration to narrower scopes.
14265
e7eee665
SM
142662020-01-23 Simon Marchi <simon.marchi@efficios.com>
14267
14268 * darwin-nat.h (struct darwin_exception_msg, enum
14269 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14270 Move up.
14271 (class darwin_nat_target) <wait_1, check_new_threads,
14272 decode_exception_message, decode_message, stop_inferior,
14273 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14274 * darwin-nat.c (darwin_check_new_threads): Rename to...
14275 (darwin_nat_target::check_new_threads): ... this.
14276 (darwin_suspend_inferior_it): Remove.
14277 (darwin_decode_exception_message): Rename to...
14278 (darwin_nat_target::decode_exception_message): ... this.
14279 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14280 (darwin_decode_message): Rename to...
14281 (darwin_nat_target::decode_message): ... this.
14282 (cancel_breakpoint): Rename to...
14283 (darwin_nat_target::cancel_breakpoint): ... this.
14284 (darwin_wait): Rename to...
14285 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14286 instead of iterate_over_inferiors.
14287 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14288 (darwin_stop_inferior): Rename to...
14289 (darwin_nat_target::stop_inferior): ... this.
14290 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14291 (darwin_init_thread_list): Rename to...
14292 (darwin_nat_target::init_thread_list): ... this.
14293 (darwin_ptrace_him): Rename to...
14294 (darwin_nat_target::ptrace_him): ... this.
14295 (darwin_nat_target::create_inferior): Pass lambda function to
14296 fork_inferior.
14297 (darwin_nat_target::detach): Call stop_inferior instead of
14298 darwin_stop_inferior.
14299 * fork-inferior.h (fork_inferior): Change init_trace_fun
14300 parameter to gdb::function_view.
14301 * fork-inferior.c (fork_inferior): Likewise.
14302
c162ed3e
HD
143032020-01-23 Hannes Domani <ssbssa@yahoo.de>
14304
14305 * i386-cygwin-tdep.c (core_process_module_section): Update.
14306 * windows-nat.c (struct lm_info_windows): Add text_offset.
14307 (windows_xfer_shared_libraries): Update.
14308 * windows-tdep.c (windows_xfer_shared_library):
14309 Add text_offset_cached argument.
14310 * windows-tdep.h (windows_xfer_shared_library): Update.
14311
a1237872
SM
143122020-01-21 Simon Marchi <simon.marchi@efficios.com>
14313
14314 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14315
b3ee6dd9
SM
143162020-01-21 Simon Marchi <simon.marchi@efficios.com>
14317
14318 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14319 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14320 replace with range-based for.
14321 (gdbsim_interrupt_inferior): Remove.
14322 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14323 with a range-based for. Inline code from
14324 gdbsim_interrupt_inferior.
14325
f9fac3c8
SM
143262020-01-21 Simon Marchi <simon.marchi@efficios.com>
14327
14328 * infrun.c (proceed): Fix indentation.
14329
f6474de9
TT
143302020-01-21 Tom Tromey <tromey@adacore.com>
14331
14332 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14333 * python/python.c (python_extension_ops): Update.
14334 (gdbpy_colorize): New function.
14335 * python/lib/gdb/__init__.py (colorize): New function.
14336 * extension.h (ext_lang_colorize): Declare.
14337 * extension.c (ext_lang_colorize): New function.
14338 * extension-priv.h (struct extension_language_ops) <colorize>: New
14339 member.
14340 * cli/cli-style.c (_initialize_cli_style): Update help text.
14341
f0c702d4
LM
143422020-01-21 Luis Machado <luis.machado@linaro.org>
14343
14344 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14345 <cond>: Change type to bool.
14346 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14347 (aarch64_displaced_step_cb): Likewise.
14348 (aarch64_displaced_step_tb): Likewise.
14349
1ab139e5
LM
143502020-01-21 Luis Machado <luis.machado@linaro.org>
14351
14352 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14353 output.
14354
0c271889
LM
143552020-01-21 Luis Machado <luis.machado@linaro.org>
14356
14357 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14358 <pc_adjust>: Adjust the documentation.
14359 (aarch64_displaced_step_fixup): Check if PC really moved before
14360 adjusting it.
14361
4d89c1c7
TT
143622020-01-19 Tom Tromey <tom@tromey.com>
14363
14364 * disasm.c (~gdb_disassembler): New destructor.
14365 (gdb_buffered_insn_length): Call disassemble_free_target.
14366 * disasm.h (class gdb_disassembler): Declare destructor. Use
14367 DISABLE_COPY_AND_ASSIGN.
14368
c0ab21c2
TT
143692020-01-19 Tom Tromey <tom@tromey.com>
14370
14371 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14372 (die_reader_func_ftype): Remove.
14373 (cutu_reader): New class.
14374 (dw2_get_file_names_reader): Remove "data" parameter.
14375 (dw2_get_file_names): Use cutu_reader.
14376 (create_debug_type_hash_table): Update.
14377 (read_cutu_die_from_dwo): Update comment.
14378 (lookup_dwo_unit): Add dwo_name parameter.
14379 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14380 die_reader_func_ftype and data parameters.
14381 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14382 Remove die_reader_func_ftype and data parameters.
14383 (~cutu_reader): New; from init_cutu_and_read_dies.
14384 (cutu_reader::cutu_reader): Rename from
14385 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14386 and data parameters.
14387 (init_cutu_and_read_dies_simple): Remove.
14388 (struct process_psymtab_comp_unit_data): Remove.
14389 (process_psymtab_comp_unit_reader): Remove data parameter; add
14390 want_partial_unit and pretend_language parameters.
14391 (process_psymtab_comp_unit): Use cutu_reader.
14392 (build_type_psymtabs_reader): Remove data parameter.
14393 (build_type_psymtabs_1): Use cutu_reader.
14394 (process_skeletonless_type_unit): Likewise.
14395 (load_partial_comp_unit_reader): Remove.
14396 (load_partial_comp_unit): Use cutu_reader.
14397 (load_full_comp_unit_reader): Remove.
14398 (load_full_comp_unit): Use cutu_reader.
14399 (struct create_dwo_cu_data): Remove.
14400 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14401 dwo_unit parameters.
14402 (create_cus_hash_table): Use cutu_reader.
14403 (struct dwarf2_read_addr_index_data): Remove.
14404 (dwarf2_read_addr_index_reader): Remove.
14405 (dwarf2_read_addr_index): Use cutu_reader.
14406 (read_signatured_type_reader): Remove.
14407 (read_signatured_type): Use cutu_reader.
14408
45bbae5c
TT
144092020-01-19 Tom Tromey <tom@tromey.com>
14410
14411 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14412 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14413 (tui_wrefresh): Declare.
14414 * tui/tui-wingeneral.c (suppress_output): New global.
14415 (tui_suppress_output, ~tui_suppress_output): New constructor and
14416 destructor.
14417 (tui_wrefresh): New function.
14418 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14419 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14420 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14421 method.
14422 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14423 tui_wrefresh.
14424 (tui_data_window::no_refresh): New method.
14425 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14426 (tui_reg_command): Use tui_suppress_output
14427 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14428 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14429 method.
14430 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14431
4f13c1c0
TT
144322020-01-19 Tom Tromey <tom@tromey.com>
14433
14434 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14435 Handle case where symtab is null.
14436
fa47e446
SM
144372020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14438
14439 * linux-fork.c (one_fork_p): Simplify.
14440
26f42329
SM
144412020-01-17 Simon Marchi <simon.marchi@efficios.com>
14442
14443 * top.c (struct qt_args): Remove.
14444 (kill_or_detach): Change return type to void, replace `void *`
14445 parameter with a proper one.
14446 (print_inferior_quit_action): Likewise.
14447 (quit_confirm): Use range-based for loop to iterate over inferiors.
14448 (quit_force): Likewise.
14449
a9ac81b1
SM
144502020-01-17 Simon Marchi <simon.marchi@efficios.com>
14451
14452 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14453 `void *` parameter with proper parameters.
14454 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14455 (print_one_inferior): Change return type to void, replace `void *`
14456 parameter with proper parameters.
14457 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14458 inferiors.
14459 (get_other_inferior): Remove.
14460 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14461 inferiors.
14462
788eca49
SM
144632020-01-17 Simon Marchi <simon.marchi@efficios.com>
14464
14465 * mi/mi-interp.c (report_initial_inferior): Remove.
14466 (mi_interp::init): Use range-based for to iterate over inferiors.
14467
d9bc85b6
SM
144682020-01-17 Simon Marchi <simon.marchi@efficios.com>
14469
14470 * python/py-inferior.c (build_inferior_list): Remove.
14471 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14472
40c94099
CB
144732020-01-16 Christian Biesinger <cbiesinger@google.com>
14474
14475 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14476 (btrace_stitch_trace): Likewise.
14477 * charset.c (intermediate_encoding): Likewise (vaild).
14478 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14479 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14480 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14481
e0cdfe3c
HD
144822020-01-16 Hannes Domani <ssbssa@yahoo.de>
14483
14484 * windows-tdep.c (windows_get_tlb_type):
14485 Add rtl_user_process_parameters type.
14486
790f1718 144872020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14488 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14489
14490 PR build/24805
14491 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14492 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14493 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14494 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14495 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14496 (ps_plog): Redeclare exported functions with default visibility.
14497
3112ed97
NA
144982020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14499
14500 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14501 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14502
8dc3273e
SM
145032020-01-15 Simon Marchi <simon.marchi@efficios.com>
14504
14505 * infcmd.c (post_create_inferior): Use get_thread_regcache
14506 instead of get_current_regcache.
14507
ff47f4f0
TT
145082020-01-14 Tom Tromey <tom@tromey.com>
14509
14510 PR symtab/12535:
14511 * python/python.c (gdbpy_decode_line): Treat empty string the same
14512 as no argument.
14513
975f45b7
TT
145142020-01-14 Tom Tromey <tom@tromey.com>
14515
14516 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14517
25e57356
TT
145182020-01-14 Tom Tromey <tom@tromey.com>
14519
14520 * nat/linux-btrace.c: Don't include <config.h>.
14521 * nat/linux-ptrace.c: Don't include <config.h>.
14522 * nat/x86-linux-dregs.c: Don't include <config.h>.
14523
05ea2a05
TT
145242020-01-14 Tom Tromey <tom@tromey.com>
14525
14526 * configure: Rebuild.
14527 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14528
01027315
TT
145292020-01-14 Tom Tromey <tom@tromey.com>
14530
14531 * nat/x86-linux-dregs.c: Include configh.h.
14532 * nat/linux-ptrace.c: Include configh.h.
14533 * nat/linux-btrace.c: Include configh.h.
14534 * defs.h: Include config.h, bfd.h.
14535 * configure.ac: Don't source common.host.
14536 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14537 * configure: Rebuild.
14538 * acinclude.m4: Update path.
14539 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14540 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14541 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14542 (CLIBS): Add LIBSUPPORT.
14543 (CDEPS): Likewise.
14544 (COMMON_SFILES): Remove gdbsupport files.
14545 (HFILES_NO_SRCDIR): Likewise.
14546 (stamp-version): Update path to create-version.sh.
14547 (ALLDEPFILES): Remove gdbsupport files.
14548
b2ceabe8
TT
145492020-01-14 Tom Tromey <tom@tromey.com>
14550
14551 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14552 USE_WIN32API when needed.
14553 * configure.ac (USE_WIN32API): Don't define.
14554 (WIN32LIBS): Use WIN32APILIBS.
14555 * configure: Rebuild.
14556
25c51f71
TT
145572020-01-14 Tom Tromey <tom@tromey.com>
14558
14559 * configure: Rebuild.
14560 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14561
717c684d
BE
145622020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14563
14564 * skip.c (skip_function_command): Make skip w/o arguments use the
14565 name of the inlined function if pc is inside any inlined function.
14566
7da6a5b9
LM
145672020-01-14 Luis Machado <luis.machado@linaro.org>
14568
14569 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14570 * infrun.c (resume_1): Likewise.
14571 (handle_inferior_event): Remove stale comment.
14572 * linux-nat.c (linux_nat_target::resume): Update comments.
14573 (save_stop_reason): Likewise.
14574 (linux_nat_filter_event): Likewise.
14575 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14576
44e4c775
AB
145772020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14578
14579 * elfread.c (record_minimal_symbol): Set section index to 0 for
14580 non-allocatable sections.
14581
18a8505e
AT
14582
145832020-01-13 Ali Tamur <tamur@google.com>
14584
14585 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14586 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14587 to gdb::optional. Update comments.
14588 (dwo_file): Update comments.
14589 (read_attribute): Update API to take an additional out parameter,
14590 need_reprocess. This is used to mark attributes that need other
14591 attributes (e.g. str_offsets_base) for correct computation which may not
14592 have been read yet.
14593 (read_attribute_reprocess): New function declaration.
14594 (read_addr_index): Likewise.
14595 (read_dwo_str_index): Likewise.
14596 (read_stub_str_index): Likewise.
14597 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14598 (lookup_addr_base): New function definition.
14599 (lookup_ranges_base): Likewise.
14600 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14601 lookup_ranges_base.
14602 (init_cutu_and_read_dies): Update comments.
14603 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14604 unit. This is used to inherit parent's str_offsets_base and addr_base.
14605 Update comments.
14606 (init_cutu_and_read_dies_simple): Reflect API changes.
14607 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14608 (create_cus_hash_table): Change API to take parent compile unit.
14609 Reflect API changes.
14610 (open_and_init_dwo_file): Reflect API changes.
14611 (dwarf2_get_pc_bounds): Update comments.
14612 (dwarf2_record_block_ranges): Likewise.
14613 (read_full_die_1): Change implementation to reprocess attributes that
14614 need str_offsets_base and addr_base.
14615 (partial_die_info::read): Likewise.
14616 (read_attribute_reprocess): New function definition.
14617 (read_attribute_value): Change API to take an additional out parameter,
14618 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14619 when a non-dwo compile unit has index based attributes.
14620 (read_attribute): Reflect API changes.
14621 (read_addr_index_1): Reflect API changes. Update comments.
14622 (dwarf2_read_addr_index_data): Reflect API changes.
14623 (dwarf2_read_addr_index): Likewise.
14624 (read_str_index): Change API and implementation. This becomes a helper
14625 to be used by the new string index related methods. Update error
14626 message and comments.
14627 (read_dwo_str_index): New function definition.
14628 (read_stub_str_index): Likewise.
14629 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14630 * symfile.h (dwarf2_debug_sections): Likewise.
14631 * xcoffread.c (dwarf2_debug_sections): Likewise.
14632
0cac9354
SM
146332020-01-13 Simon Marchi <simon.marchi@efficios.com>
14634
14635 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14636 core_reg_sect type to gdb_byte *.
14637 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14638 * cris-tdep.c (fetch_core_registers): Likewise.
14639 * corelow.c (core_target::get_core_register_section): Change
14640 type of `contents` to gdb::byte_vector.
14641
9a6d629c
AB
146422020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14643
14644 * tui/tui-wingeneral.c (box_win): Position the title in the center
14645 of the border.
14646
d8b2f9e3
SM
146472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14648
14649 * corelow.c (core_target::get_core_register_section): Use
14650 std::vector instead of alloca.
14651
bb564c58
SM
146522020-01-13 Simon Marchi <simon.marchi@efficios.com>
14653
14654 * warning.m4: Add -Wmissing-declarations to build_warnings.
14655 * configure: Re-generate.
14656
6b366111
SM
146572020-01-13 Simon Marchi <simon.marchi@efficios.com>
14658
14659 * python/python.c (init__gdb_module): Add declaration.
14660
6c265988
SM
146612020-01-13 Simon Marchi <simon.marchi@efficios.com>
14662
14663 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14664 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14665 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14666 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14667 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14668 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14669 * ada-exp.y (_initialize_ada_exp): Add declaration.
14670 * ada-lang.c (_initialize_ada_language): Add declaration.
14671 * ada-tasks.c (_initialize_tasks): Add declaration.
14672 * agent.c (_initialize_agent): Add declaration.
14673 * aix-thread.c (_initialize_aix_thread): Add declaration.
14674 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14675 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14676 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14677 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14678 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14679 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14680 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14681 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14682 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14683 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14684 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14685 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14686 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14687 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14688 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14689 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14690 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14691 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14692 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14693 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14694 * annotate.c (_initialize_annotate): Add declaration.
14695 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14696 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14697 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14698 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14699 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14700 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14701 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14702 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14703 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14704 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14705 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14706 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14707 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14708 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14709 * auto-load.c (_initialize_auto_load): Add declaration.
14710 * auxv.c (_initialize_auxv): Add declaration.
14711 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14712 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14713 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14714 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14715 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14716 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14717 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14718 * breakpoint.c (_initialize_breakpoint): Add declaration.
14719 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14720 * btrace.c (_initialize_btrace): Add declaration.
14721 * charset.c (_initialize_charset): Add declaration.
14722 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14723 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14724 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14725 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14726 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14727 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14728 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14729 * coffread.c (_initialize_coffread): Add declaration.
14730 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14731 * compile/compile.c (_initialize_compile): Add declaration.
14732 * complaints.c (_initialize_complaints): Add declaration.
14733 * completer.c (_initialize_completer): Add declaration.
14734 * copying.c (_initialize_copying): Add declaration.
14735 * corefile.c (_initialize_core): Add declaration.
14736 * corelow.c (_initialize_corelow): Add declaration.
14737 * cp-abi.c (_initialize_cp_abi): Add declaration.
14738 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14739 * cp-support.c (_initialize_cp_support): Add declaration.
14740 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14741 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14742 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14743 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14744 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14745 * ctfread.c (_initialize_ctfread): Add declaration.
14746 * d-lang.c (_initialize_d_language): Add declaration.
14747 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14748 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14749 * dbxread.c (_initialize_dbxread): Add declaration.
14750 * dcache.c (_initialize_dcache): Add declaration.
14751 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14752 * disasm.c (_initialize_disasm): Add declaration.
14753 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14754 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14755 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14756 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14757 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14758 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14759 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14760 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14761 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14762 * elfread.c (_initialize_elfread): Add declaration.
14763 * exec.c (_initialize_exec): Add declaration.
14764 * extension.c (_initialize_extension): Add declaration.
14765 * f-lang.c (_initialize_f_language): Add declaration.
14766 * f-valprint.c (_initialize_f_valprint): Add declaration.
14767 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14768 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14769 * filesystem.c (_initialize_filesystem): Add declaration.
14770 * findcmd.c (_initialize_mem_search): Add declaration.
14771 * findvar.c (_initialize_findvar): Add declaration.
14772 * fork-child.c (_initialize_fork_child): Add declaration.
14773 * frame-base.c (_initialize_frame_base): Add declaration.
14774 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14775 * frame.c (_initialize_frame): Add declaration.
14776 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14777 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14778 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14779 * gcore.c (_initialize_gcore): Add declaration.
14780 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14781 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14782 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14783 * gdbarch.c (_initialize_gdbarch): Add declaration.
14784 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14785 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14786 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14787 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14788 * go-lang.c (_initialize_go_language): Add declaration.
14789 * go32-nat.c (_initialize_go32_nat): Add declaration.
14790 * guile/guile.c (_initialize_guile): Add declaration.
14791 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14792 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14793 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14794 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14795 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14796 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14797 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14798 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14799 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14800 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14801 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14802 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14803 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14804 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14805 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14806 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14807 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14808 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14809 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14810 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14811 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14812 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14813 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14814 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14815 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14816 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14817 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14818 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14819 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14820 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14821 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14822 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14823 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14824 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14825 * infcall.c (_initialize_infcall): Add declaration.
14826 * infcmd.c (_initialize_infcmd): Add declaration.
14827 * inflow.c (_initialize_inflow): Add declaration.
14828 * infrun.c (_initialize_infrun): Add declaration.
14829 * interps.c (_initialize_interpreter): Add declaration.
14830 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14831 * jit.c (_initialize_jit): Add declaration.
14832 * language.c (_initialize_language): Add declaration.
14833 * linux-fork.c (_initialize_linux_fork): Add declaration.
14834 * linux-nat.c (_initialize_linux_nat): Add declaration.
14835 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14836 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14837 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14838 * m2-lang.c (_initialize_m2_language): Add declaration.
14839 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14840 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14841 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14842 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14843 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14844 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14845 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14846 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14847 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14848 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14849 * machoread.c (_initialize_machoread): Add declaration.
14850 * macrocmd.c (_initialize_macrocmd): Add declaration.
14851 * macroscope.c (_initialize_macroscope): Add declaration.
14852 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14853 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14854 * maint.c (_initialize_maint_cmds): Add declaration.
14855 * mdebugread.c (_initialize_mdebugread): Add declaration.
14856 * memattr.c (_initialize_mem): Add declaration.
14857 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14858 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14859 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14860 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14861 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14862 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14863 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14864 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14865 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14866 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14867 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14868 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14869 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14870 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14871 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14872 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14873 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14874 * mipsread.c (_initialize_mipsread): Add declaration.
14875 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14876 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14877 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14878 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14879 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14880 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14881 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14882 * nto-procfs.c (_initialize_procfs): Add declaration.
14883 * objc-lang.c (_initialize_objc_language): Add declaration.
14884 * observable.c (_initialize_observer): Add declaration.
14885 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14886 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14887 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14888 * osabi.c (_initialize_gdb_osabi): Add declaration.
14889 * osdata.c (_initialize_osdata): Add declaration.
14890 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14891 * parse.c (_initialize_parse): Add declaration.
14892 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14893 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14894 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14895 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14896 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14897 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14898 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14899 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14900 * printcmd.c (_initialize_printcmd): Add declaration.
14901 * probe.c (_initialize_probe): Add declaration.
14902 * proc-api.c (_initialize_proc_api): Add declaration.
14903 * proc-events.c (_initialize_proc_events): Add declaration.
14904 * proc-service.c (_initialize_proc_service): Add declaration.
14905 * procfs.c (_initialize_procfs): Add declaration.
14906 * producer.c (_initialize_producer): Add declaration.
14907 * psymtab.c (_initialize_psymtab): Add declaration.
14908 * python/python.c (_initialize_python): Add declaration.
14909 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14910 * record-btrace.c (_initialize_record_btrace): Add declaration.
14911 * record-full.c (_initialize_record_full): Add declaration.
14912 * record.c (_initialize_record): Add declaration.
14913 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14914 * regcache.c (_initialize_regcache): Add declaration.
14915 * reggroups.c (_initialize_reggroup): Add declaration.
14916 * remote-notif.c (_initialize_notif): Add declaration.
14917 * remote-sim.c (_initialize_remote_sim): Add declaration.
14918 * remote.c (_initialize_remote): Add declaration.
14919 * reverse.c (_initialize_reverse): Add declaration.
14920 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14921 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14922 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14923 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14924 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14925 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14926 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14927 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14928 Add declaration.
14929 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14930 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14931 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14932 * rust-exp.y (_initialize_rust_exp): Add declaration.
14933 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14934 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14935 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14936 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14937 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14938 * score-tdep.c (_initialize_score_tdep): Add declaration.
14939 * ser-go32.c (_initialize_ser_dos): Add declaration.
14940 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14941 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14942 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14943 * ser-uds.c (_initialize_ser_socket): Add declaration.
14944 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14945 * serial.c (_initialize_serial): Add declaration.
14946 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14947 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14948 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14949 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14950 * skip.c (_initialize_step_skip): Add declaration.
14951 * sol-thread.c (_initialize_sol_thread): Add declaration.
14952 * solib-aix.c (_initialize_solib_aix): Add declaration.
14953 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14954 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14955 * solib-frv.c (_initialize_frv_solib): Add declaration.
14956 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14957 * solib-target.c (_initialize_solib_target): Add declaration.
14958 * solib.c (_initialize_solib): Add declaration.
14959 * source-cache.c (_initialize_source_cache): Add declaration.
14960 * source.c (_initialize_source): Add declaration.
14961 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14962 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14963 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14964 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14965 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14966 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14967 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14968 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14969 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14970 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14971 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14972 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14973 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14974 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14975 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14976 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14977 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14978 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14979 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14980 * stabsread.c (_initialize_stabsread): Add declaration.
14981 * stack.c (_initialize_stack): Add declaration.
14982 * stap-probe.c (_initialize_stap_probe): Add declaration.
14983 * std-regs.c (_initialize_frame_reg): Add declaration.
14984 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14985 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14986 * symfile.c (_initialize_symfile): Add declaration.
14987 * symmisc.c (_initialize_symmisc): Add declaration.
14988 * symtab.c (_initialize_symtab): Add declaration.
14989 * target.c (_initialize_target): Add declaration.
14990 * target-connection.c (_initialize_target_connection): Add
14991 declaration.
14992 * target-dcache.c (_initialize_target_dcache): Add declaration.
14993 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14994 * thread.c (_initialize_thread): Add declaration.
14995 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14996 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14997 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14998 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14999 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15000 * tracectf.c (_initialize_ctf): Add declaration.
15001 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15002 * tracefile.c (_initialize_tracefile): Add declaration.
15003 * tracepoint.c (_initialize_tracepoint): Add declaration.
15004 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15005 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15006 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15007 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15008 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15009 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15010 * tui/tui.c (_initialize_tui): Add declaration.
15011 * typeprint.c (_initialize_typeprint): Add declaration.
15012 * ui-style.c (_initialize_ui_style): Add declaration.
15013 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15014 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15015 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15016 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15017 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15018 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15019 * unittests/filtered_iterator-selftests.c
15020 (_initialize_filtered_iterator_selftests): Add declaration.
15021 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15022 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15023 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15024 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15025 * unittests/main-thread-selftests.c
15026 (_initialize_main_thread_selftests): Add declaration.
15027 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15028 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15029 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15030 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15031 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15032 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15033 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15034 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15035 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15036 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15037 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15038 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15039 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15040 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15041 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15042 declaration.
15043 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15044 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15045 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15046 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15047 * user-regs.c (_initialize_user_regs): Add declaration.
15048 * utils.c (_initialize_utils): Add declaration.
15049 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15050 * valops.c (_initialize_valops): Add declaration.
15051 * valprint.c (_initialize_valprint): Add declaration.
15052 * value.c (_initialize_values): Add declaration.
15053 * varobj.c (_initialize_varobj): Add declaration.
15054 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15055 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15056 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15057 * windows-nat.c (_initialize_windows_nat): Add declaration.
15058 (_initialize_check_for_gdb_ini): Add declaration.
15059 (_initialize_loadable): Add declaration.
15060 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15061 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15062 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15063 * xcoffread.c (_initialize_xcoffread): Add declaration.
15064 * xml-support.c (_initialize_xml_support): Add declaration.
15065 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15066 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15067 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15068 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15069
e2de1eec
SM
150702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15071
15072 * regformats/regdat.sh: Generate declaration for init function.
15073
e0037b4c
SM
150742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15075
15076 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15077 up.
15078 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15079 close_one_inferior>: New methods.
15080 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15081 pass down target to find_inferior_pid.
15082 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15083 Pass down target to find_inferior_ptid.
15084 (gdbsim_target::create_inferior): Pass down target to
15085 add_thread_silent.
15086 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15087 target down to find_inferior_ptid and switch_to_thread.
15088 (gdbsim_target::close): Update to call close_one_inferior.
15089 (struct resume_data): Remove.
15090 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15091 directly, rather than through a void pointer.
15092 (gdbsim_target::resume): Update to call resume_one_inferior.
15093
58920b5b
SM
150942020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15095
15096 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15097
4ec89149
PA
150982020-01-12 Pedro Alves <palves@redhat.com>
15099
15100 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15101 directly for the current inferior instead of
15102 discard_all_inferiors.
15103 (discard_all_inferiors): Delete.
15104
7c392d1d
TT
151052020-01-11 Tom Tromey <tom@tromey.com>
15106
15107 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15108 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15109 deprecated_safe_get_selected_frame.
15110
d9ebdab7
TBA
151112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15112
15113 * inferior.c (print_inferior): Switch inferior before printing it.
15114
f3c469b9
PA
151152020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15116 Pedro Alves <palves@redhat.com>
15117
15118 * progspace-and-thread.c (switch_to_program_space_and_thread):
15119 Assert there's an inferior for PSPACE. Use
15120 switch_to_inferior_no_thread to switch the inferior too.
15121 * progspace.c (program_space::~program_space): Call
15122 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15123 (program_space::free_all_objfiles): Don't call clear_symtab_users
15124 here.
15125 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15126
65c574f6
PA
151272020-01-10 Pedro Alves <palves@redhat.com>
15128
15129 * NEWS: Mention multi-target debugging, "info connections", and
15130 "add-inferior -no-connection".
15131
2f4fcf00
PA
151322020-01-10 Pedro Alves <palves@redhat.com>
15133
15134 * infrun.c: Include "target-connection.h".
15135 (check_multi_target_resumption): New.
15136 (proceed): Call it.
15137 * target-connection.c (make_target_connection_string): Make
15138 extern.
15139 * target-connection.h (make_target_connection_string): Declare.
15140
121b3efd
PA
151412020-01-10 Pedro Alves <palves@redhat.com>
15142
15143 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15144 * inferior.c (uiout_field_connection): New function.
15145 (print_inferior): Add new "connection-id" column.
15146 (add_inferior_command): Show connection number/string of added
15147 inferior.
15148 * process-stratum-target.h
15149 (process_stratum_target::connection_string): New virtual method.
15150 (process_stratum_target::connection_number): New field.
15151 * remote.c (remote_target::connection_string): New override.
15152 * target-connection.c: New file.
15153 * target-connection.h: New file.
15154 * target.c (decref_target): Remove process_stratum targets from
15155 the connection list.
15156 (target_stack::push): Add process_stratum targets to the
15157 connection list.
15158
4f837581
PA
151592020-01-10 Pedro Alves <palves@redhat.com>
15160
15161 Revert:
15162 2016-04-12 Pedro Alves <palves@redhat.com>
15163 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15164 Remove references to name.
15165 * serial.h (struct serial) <name>: Delete.
15166
f4ec508e
PA
151672020-01-10 Pedro Alves <palves@redhat.com>
15168
15169 * gdbarch-selftests.c (register_to_value_test): Remove "target
15170 already pushed" check.
15171
5b6d1e4f
PA
151722020-01-10 Pedro Alves <palves@redhat.com>
15173 John Baldwin <jhb@FreeBSD.org>
15174
15175 * aarch64-linux-nat.c
15176 (aarch64_linux_nat_target::thread_architecture): Adjust.
15177 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15178 (task_command_1): Likewise.
15179 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15180 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15181 (aix_thread_target::store_registers)
15182 (aix_thread_target::thread_alive): Adjust.
15183 * amd64-fbsd-tdep.c: Include "inferior.h".
15184 (amd64fbsd_get_thread_local_address): Pass down target.
15185 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15186 thread's gdbarch instead of target_gdbarch.
15187 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15188 get_last_target_status.
15189 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15190 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15191 inferiors.
15192 (update_inserted_breakpoint_locations): Skip if inferiors with no
15193 execution.
15194 (update_global_location_list): When handling moribund locations,
15195 find representative inferior for location's pspace, and use thread
15196 count of its process_stratum target.
15197 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15198 * bsd-uthread.c (bsd_uthread_target::wait): Use
15199 as_process_stratum_target and adjust thread_change_ptid and
15200 add_thread calls.
15201 (bsd_uthread_target::update_thread_list): Use
15202 as_process_stratum_target and adjust find_thread_ptid,
15203 thread_change_ptid and add_thread calls.
15204 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15205 find_thread_ptid call.
15206 * corelow.c (add_to_thread_list): Adjust add_thread call.
15207 (core_target_open): Adjust add_thread_silent and thread_count
15208 calls.
15209 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15210 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15211 * event-top.c (async_disconnect): Pop targets from all inferiors.
15212 * exec.c (add_target_sections): Push exec target on all inferiors
15213 sharing the program space.
15214 (remove_target_sections): Remove the exec target from all
15215 inferiors sharing the program space.
15216 (exec_on_vfork): New.
15217 * exec.h (exec_on_vfork): Declare.
15218 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15219 Pass it down.
15220 (fbsd_nat_target::update_thread_list): Adjust.
15221 (fbsd_nat_target::resume): Adjust.
15222 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15223 down.
15224 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15225 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15226 get_thread_arch_regcache call.
15227 * fork-child.c (gdb_startup_inferior): Pass target down to
15228 startup_inferior and set_executing.
15229 * gdbthread.h (struct process_stratum_target): Forward declare.
15230 (add_thread, add_thread_silent, add_thread_with_info)
15231 (in_thread_list): Add process_stratum_target parameter.
15232 (find_thread_ptid(inferior*, ptid_t)): New overload.
15233 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15234 parameter.
15235 (all_threads()): Delete overload.
15236 (all_threads, all_non_exited_threads): Add process_stratum_target
15237 parameter.
15238 (all_threads_safe): Use brace initialization.
15239 (thread_count): Add process_stratum_target parameter.
15240 (set_resumed, set_running, set_stop_requested, set_executing)
15241 (threads_are_executing, finish_thread_state): Add
15242 process_stratum_target parameter.
15243 (switch_to_thread): Use is_current_thread.
15244 * i386-fbsd-tdep.c: Include "inferior.h".
15245 (i386fbsd_get_thread_local_address): Pass down target.
15246 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15247 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15248 have_inferiors check.
15249 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15250 (inf_ptrace_target::attach): Adjust.
15251 * infcall.c (run_inferior_call): Adjust.
15252 * infcmd.c (run_command_1): Pass target to
15253 scoped_finish_thread_state.
15254 (proceed_thread_callback): Skip inferiors with no execution.
15255 (continue_command): Rename 'all_threads' local to avoid hiding
15256 'all_threads' function. Adjust get_last_target_status call.
15257 (prepare_one_step): Adjust set_running call.
15258 (signal_command): Use user_visible_resume_target. Compare thread
15259 pointers instead of inferior_ptid.
15260 (info_program_command): Adjust to pass down target.
15261 (attach_command): Mark target's 'thread_executing' flag.
15262 (stop_current_target_threads_ns): New, factored out from ...
15263 (interrupt_target_1): ... this. Switch inferior before making
15264 target calls.
15265 * inferior-iter.h
15266 (struct all_inferiors_iterator, struct all_inferiors_range)
15267 (struct all_inferiors_safe_range)
15268 (struct all_non_exited_inferiors_range): Filter on
15269 process_stratum_target too. Remove explicit.
15270 * inferior.c (inferior::inferior): Push dummy target on target
15271 stack.
15272 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15273 Add process_stratum_target parameter, and pass it down.
15274 (have_live_inferiors): Adjust.
15275 (switch_to_inferior_and_push_target): New.
15276 (add_inferior_command, clone_inferior_command): Handle
15277 "-no-connection" parameter. Use
15278 switch_to_inferior_and_push_target.
15279 (_initialize_inferior): Mention "-no-connection" option in
15280 the help of "add-inferior" and "clone-inferior" commands.
15281 * inferior.h: Include "process-stratum-target.h".
15282 (interrupt_target_1): Use bool.
15283 (struct inferior) <push_target, unpush_target, target_is_pushed,
15284 find_target_beneath, top_target, process_target, target_at,
15285 m_stack>: New.
15286 (discard_all_inferiors): Delete.
15287 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15288 (all_inferiors, all_non_exited_inferiors): Add
15289 process_stratum_target parameter.
15290 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15291 (target_last_proc_target): New global.
15292 (follow_fork_inferior): Push target on new inferior. Pass target
15293 to add_thread_silent. Call exec_on_vfork. Handle target's
15294 reference count.
15295 (follow_fork): Adjust get_last_target_status call. Also consider
15296 target.
15297 (follow_exec): Push target on new inferior.
15298 (struct execution_control_state) <target>: New field.
15299 (user_visible_resume_target): New.
15300 (do_target_resume): Call target_async.
15301 (resume_1): Set target's threads_executing flag. Consider resume
15302 target.
15303 (commit_resume_all_targets): New.
15304 (proceed): Also consider resume target. Skip threads of inferiors
15305 with no execution. Commit resumtion in all targets.
15306 (start_remote): Pass current inferior to wait_for_inferior.
15307 (infrun_thread_stop_requested): Consider target as well. Pass
15308 thread_info pointer to clear_inline_frame_state instead of ptid.
15309 (infrun_thread_thread_exit): Consider target as well.
15310 (random_pending_event_thread): New inferior parameter. Use it.
15311 (do_target_wait): Rename to ...
15312 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15313 down.
15314 (threads_are_resumed_pending_p, do_target_wait): New.
15315 (prepare_for_detach): Adjust calls.
15316 (wait_for_inferior): New inferior parameter. Handle it. Use
15317 do_target_wait_1 instead of do_target_wait.
15318 (fetch_inferior_event): Adjust. Switch to representative
15319 inferior. Pass target down.
15320 (set_last_target_status): Add process_stratum_target parameter.
15321 Save target in global.
15322 (get_last_target_status): Add process_stratum_target parameter and
15323 handle it.
15324 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15325 (context_switch): Check inferior_ptid == null_ptid before calling
15326 inferior_thread().
15327 (get_inferior_stop_soon): Pass down target.
15328 (wait_one): Rename to ...
15329 (poll_one_curr_target): ... this.
15330 (struct wait_one_event): New.
15331 (wait_one): New.
15332 (stop_all_threads): Adjust.
15333 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15334 event's target.
15335 (switch_back_to_stepped_thread): Also consider target.
15336 (print_stop_event): Update.
15337 (normal_stop): Update. Also consider the resume target.
15338 * infrun.h (wait_for_inferior): Remove declaration.
15339 (user_visible_resume_target): New declaration.
15340 (get_last_target_status, set_last_target_status): New
15341 process_stratum_target parameter.
15342 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15343 process_stratum_target parameter, and use it.
15344 (clear_inline_frame_state (thread_info*)): New.
15345 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15346 process_stratum_target parameter.
15347 (clear_inline_frame_state (thread_info*)): Declare.
15348 * linux-fork.c (delete_checkpoint_command): Pass target down to
15349 find_thread_ptid.
15350 (checkpoint_command): Adjust.
15351 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15352 instead of just tweaking inferior_ptid.
15353 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15354 (exit_lwp): Pass target down to find_thread_ptid.
15355 (attach_proc_task_lwp_callback): Pass target down to
15356 add_thread/set_running/set_executing.
15357 (linux_nat_target::attach): Pass target down to
15358 thread_change_ptid.
15359 (get_detach_signal): Pass target down to find_thread_ptid.
15360 Consider last target status's target.
15361 (linux_resume_one_lwp_throw, resume_lwp)
15362 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15363 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15364 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15365 (linux_nat_target::async_wait_fd): New.
15366 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15367 target down.
15368 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15369 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15370 * linux-thread-db.c (struct thread_db_info::process_target): New
15371 field.
15372 (add_thread_db_info): Save target.
15373 (get_thread_db_info): New process_stratum_target parameter. Also
15374 match target.
15375 (delete_thread_db_info): New process_stratum_target parameter.
15376 Also match target.
15377 (thread_from_lwp): Adjust to pass down target.
15378 (thread_db_notice_clone): Pass down target.
15379 (check_thread_db_callback): Pass down target.
15380 (try_thread_db_load_1): Always push the thread_db target.
15381 (try_thread_db_load, record_thread): Pass target down.
15382 (thread_db_target::detach): Pass target down. Always unpush the
15383 thread_db target.
15384 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15385 target down. Always unpush the thread_db target.
15386 (find_new_threads_callback, thread_db_find_new_threads_2)
15387 (thread_db_target::update_thread_list): Pass target down.
15388 (thread_db_target::pid_to_str): Pass current inferior down.
15389 (thread_db_target::get_thread_local_address): Pass target down.
15390 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15391 target down.
15392 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15393 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15394 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15395 (procfs_init_inferior): Rename to ...
15396 (procfs_target::procfs_init_inferior): ... this and adjust.
15397 (procfs_target::create_inferior, procfs_notice_thread)
15398 (procfs_do_thread_registers): Adjust.
15399 * ppc-fbsd-tdep.c: Include "inferior.h".
15400 (ppcfbsd_get_thread_local_address): Pass down target.
15401 * proc-service.c (ps_xfer_memory): Switch current inferior and
15402 program space as well.
15403 (get_ps_regcache): Pass target down.
15404 * process-stratum-target.c
15405 (process_stratum_target::thread_address_space)
15406 (process_stratum_target::thread_architecture): Pass target down.
15407 * process-stratum-target.h
15408 (process_stratum_target::threads_executing): New field.
15409 (as_process_stratum_target): New.
15410 * ravenscar-thread.c
15411 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15412 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15413 down.
15414 * record-btrace.c (record_btrace_target::info_record): Adjust.
15415 (record_btrace_target::record_method)
15416 (record_btrace_target::record_is_replaying)
15417 (record_btrace_target::fetch_registers)
15418 (get_thread_current_frame_id, record_btrace_target::resume)
15419 (record_btrace_target::wait, record_btrace_target::stop): Pass
15420 target down.
15421 * record-full.c (record_full_wait_1): Switch to event thread.
15422 Pass target down.
15423 * regcache.c (regcache::regcache)
15424 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15425 process_stratum_target parameter and handle it.
15426 (current_thread_target): New global.
15427 (get_thread_regcache): Add process_stratum_target parameter and
15428 handle it. Switch inferior before calling target method.
15429 (get_thread_regcache): Pass target down.
15430 (get_thread_regcache_for_ptid): Pass target down.
15431 (registers_changed_ptid): Add process_stratum_target parameter and
15432 handle it.
15433 (registers_changed_thread, registers_changed): Pass target down.
15434 (test_get_thread_arch_aspace_regcache): New.
15435 (current_regcache_test): Define a couple local test_target_ops
15436 instances and use them for testing.
15437 (readwrite_regcache): Pass process_stratum_target parameter.
15438 (cooked_read_test, cooked_write_test): Pass mock_target down.
15439 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15440 (get_thread_arch_aspace_regcache): Add process_stratum_target
15441 parameter.
15442 (regcache::target): New method.
15443 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15444 (regcache::registers_changed_ptid): Add process_stratum_target
15445 parameter.
15446 (regcache::m_target): New field.
15447 (registers_changed_ptid): Add process_stratum_target parameter.
15448 * remote.c (remote_state::supports_vCont_probed): New field.
15449 (remote_target::async_wait_fd): New method.
15450 (remote_unpush_and_throw): Add remote_target parameter.
15451 (get_current_remote_target): Adjust.
15452 (remote_target::remote_add_inferior): Push target.
15453 (remote_target::remote_add_thread)
15454 (remote_target::remote_notice_new_inferior)
15455 (get_remote_thread_info): Pass target down.
15456 (remote_target::update_thread_list): Skip threads of inferiors
15457 bound to other targets. (remote_target::close): Don't discard
15458 inferiors. (remote_target::add_current_inferior_and_thread)
15459 (remote_target::process_initial_stop_replies)
15460 (remote_target::start_remote)
15461 (remote_target::remote_serial_quit_handler): Pass down target.
15462 (remote_target::remote_unpush_target): New remote_target
15463 parameter. Unpush the target from all inferiors.
15464 (remote_target::remote_unpush_and_throw): New remote_target
15465 parameter. Pass it down.
15466 (remote_target::open_1): Check whether the current inferior has
15467 execution instead of checking whether any inferior is live. Pass
15468 target down.
15469 (remote_target::remote_detach_1): Pass down target. Use
15470 remote_unpush_target.
15471 (extended_remote_target::attach): Pass down target.
15472 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15473 (remote_target::append_resumption): Pass down target.
15474 (remote_target::append_pending_thread_resumptions)
15475 (remote_target::remote_resume_with_hc, remote_target::resume)
15476 (remote_target::commit_resume): Pass down target.
15477 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15478 (remote_target::interrupt_query)
15479 (remote_target::remove_new_fork_children)
15480 (remote_target::check_pending_events_prevent_wildcard_vcont)
15481 (remote_target::remote_parse_stop_reply)
15482 (remote_target::process_stop_reply): Pass down target.
15483 (first_remote_resumed_thread): New remote_target parameter. Pass
15484 it down.
15485 (remote_target::wait_as): Pass down target.
15486 (unpush_and_perror): New remote_target parameter. Pass it down.
15487 (remote_target::readchar, remote_target::remote_serial_write)
15488 (remote_target::getpkt_or_notif_sane_1)
15489 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15490 down target.
15491 (remote_target::mourn_inferior): Pass down target. Use
15492 remote_unpush_target.
15493 (remote_target::core_of_thread)
15494 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15495 (remote_target::pid_to_exec_file)
15496 (remote_target::thread_handle_to_thread_info): Pass down target.
15497 (remote_target::async_wait_fd): New.
15498 * riscv-fbsd-tdep.c: Include "inferior.h".
15499 (riscv_fbsd_get_thread_local_address): Pass down target.
15500 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15501 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15502 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15503 Adjust.
15504 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15505 * solib-svr4.c (enable_break): Pass down target.
15506 * spu-multiarch.c (parse_spufs_run): Pass down target.
15507 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15508 * target-delegates.c: Regenerate.
15509 * target.c (g_target_stack): Delete.
15510 (current_top_target): Return the current inferior's top target.
15511 (target_has_execution_1): Refer to the passed-in inferior's top
15512 target.
15513 (target_supports_terminal_ours): Check whether the initial
15514 inferior was already created.
15515 (decref_target): New.
15516 (target_stack::push): Incref/decref the target.
15517 (push_target, push_target, unpush_target): Adjust.
15518 (target_stack::unpush): Defref target.
15519 (target_is_pushed): Return bool. Adjust to refer to the current
15520 inferior's target stack.
15521 (dispose_inferior): Delete, and inline parts ...
15522 (target_preopen): ... here. Only dispose of the current inferior.
15523 (target_detach): Hold strong target reference while detaching.
15524 Pass target down.
15525 (target_thread_name): Add assertion.
15526 (target_resume): Pass down target.
15527 (target_ops::beneath, find_target_at): Adjust to refer to the
15528 current inferior's target stack.
15529 (get_dummy_target): New.
15530 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15531 has a thread running.
15532 (initialize_targets): Rename to ...
15533 (_initialize_target): ... this.
15534 * target.h: Include "gdbsupport/refcounted-object.h".
15535 (struct target_ops): Inherit refcounted_object.
15536 (target_ops::shortname, target_ops::longname): Make const.
15537 (target_ops::async_wait_fd): New method.
15538 (decref_target): Declare.
15539 (struct target_ops_ref_policy): New.
15540 (target_ops_ref): New typedef.
15541 (get_dummy_target): Declare function.
15542 (target_is_pushed): Return bool.
15543 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15544 (all_matching_threads_iterator::all_matching_threads_iterator):
15545 Handle filter target.
15546 * thread-iter.h (struct all_matching_threads_iterator, struct
15547 all_matching_threads_range, class all_non_exited_threads_range):
15548 Filter by target too. Remove explicit.
15549 * thread.c (threads_executing): Delete.
15550 (inferior_thread): Pass down current inferior.
15551 (clear_thread_inferior_resources): Pass down thread pointer
15552 instead of ptid_t.
15553 (add_thread_silent, add_thread_with_info, add_thread): Add
15554 process_stratum_target parameter. Use it for thread and inferior
15555 searches.
15556 (is_current_thread): New.
15557 (thread_info::deletable): Use it.
15558 (find_thread_ptid, thread_count, in_thread_list)
15559 (thread_change_ptid, set_resumed, set_running): New
15560 process_stratum_target parameter. Pass it down.
15561 (set_executing): New process_stratum_target parameter. Pass it
15562 down. Adjust reference to 'threads_executing'.
15563 (threads_are_executing): New process_stratum_target parameter.
15564 Adjust reference to 'threads_executing'.
15565 (set_stop_requested, finish_thread_state): New
15566 process_stratum_target parameter. Pass it down.
15567 (switch_to_thread): Also match inferior.
15568 (switch_to_thread): New process_stratum_target parameter. Pass it
15569 down.
15570 (update_threads_executing): Reimplement.
15571 * top.c (quit_force): Pop targets from all inferior.
15572 (gdb_init): Don't call initialize_targets.
15573 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15574 Declare.
15575 (windows_add_thread, windows_delete_thread): Adjust.
15576 (get_windows_debug_event): Rename to ...
15577 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15578 * tracefile-tfile.c (tfile_target_open): Pass down target.
15579 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15580 Forward declare.
15581 (switch_to_thread): Add process_stratum_target parameter.
15582 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15583 parameter. Use it.
15584 (mi_on_resume): Pass target down.
15585 * nat/fork-inferior.c (startup_inferior): Add
15586 process_stratum_target parameter. Pass it down.
15587 * nat/fork-inferior.h (startup_inferior): Add
15588 process_stratum_target parameter.
15589 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15590
75c6c844
PA
155912020-01-10 Pedro Alves <palves@redhat.com>
15592
15593 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15594 directly. Instead find the first thread in the thread list and
15595 use switch_to_thread.
15596
78f2c40a
PA
155972020-01-10 Pedro Alves <palves@redhat.com>
15598
15599 * remote.c (remote_target::remote_add_inferior): Don't bind a
15600 process to the current inferior if the current inferior is already
15601 bound to a process.
15602
e7af6c70
TBA
156032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15604 Pedro Alves <palves@redhat.com>
15605
15606 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15607 If no process is specified, return null_ptid instead of
15608 inferior_ptid.
15609 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15610 TARGET_WAITKIND_SIGNALLED with no pid.
15611
31ba933e
PA
156122020-01-10 Pedro Alves <palves@redhat.com>
15613
15614 * remote.c (first_remote_resumed_thread): New.
15615 (remote_target::wait_as): Use it as default event_ptid instead of
15616 inferior_ptid.
15617
735fc2ca
PA
156182020-01-10 Pedro Alves <palves@redhat.com>
15619
15620 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15621
c17e02e1
PA
156222020-01-10 Pedro Alves <palves@redhat.com>
15623
15624 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15625 not -1.
15626
ab1ddbcf
PA
156272020-01-10 Pedro Alves <palves@redhat.com>
15628
15629 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15630 ptid to get_last_target_status.
15631 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15632 ptid to get_last_target_status.
15633 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15634 get_last_target_status.
15635 (info_program_command): Don't pass a target_waitstatus to
15636 get_last_target_status.
15637 * infrun.c (init_wait_for_inferior): Use
15638 nullify_last_target_wait_ptid.
15639 (get_last_target_status): Handle nullptr arguments.
15640 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15641 (print_stop_event): Don't pass a ptid to get_last_target_status.
15642 (normal_stop): Don't pass a ptid to get_last_target_status.
15643 * infrun.h (get_last_target_status, set_last_target_status): Move
15644 comments here and update.
15645 (nullify_last_target_wait_ptid): Declare.
15646 * linux-fork.c (fork_load_infrun_state): Remove local extern
15647 declaration of nullify_last_target_wait_ptid.
15648 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15649 to get_last_target_status.
15650
f3f8ece4
PA
156512020-01-10 Pedro Alves <palves@redhat.com>
15652
15653 * gdbthread.h (scoped_restore_current_thread)
15654 <dont_restore, restore, m_dont_restore>: Declare.
15655 * thread.c (thread_alive): Add assertion. Return bool.
15656 (switch_to_thread_if_alive): New.
15657 (prune_threads): Switch inferior/thread.
15658 (print_thread_info_1): Switch thread before calling target methods.
15659 (scoped_restore_current_thread::restore): New, factored out from
15660 ...
15661 (scoped_restore_current_thread::~scoped_restore_current_thread):
15662 ... this.
15663 (scoped_restore_current_thread::scoped_restore_current_thread):
15664 Add assertion.
15665 (thread_apply_all_command, thread_select): Use
15666 switch_to_thread_if_alive.
15667 * infrun.c (proceed, restart_threads, handle_signal_stop)
15668 (switch_back_to_stepped_thread): Switch current thread before
15669 calling target methods.
15670
db2d40f7
PA
156712020-01-10 Pedro Alves <palves@redhat.com>
15672
15673 * inferior.c (switch_to_inferior_no_thread): New function,
15674 factored out from ...
15675 (inferior_command): ... here.
15676 * inferior.h (switch_to_inferior_no_thread): Declare.
15677 * mi/mi-main.c (run_one_inferior): Use
15678 switch_to_inferior_no_thread.
15679
bd420a2d
PA
156802020-01-10 Pedro Alves <palves@redhat.com>
15681
15682 * infcmd.c (kill_command): Remove dead code.
15683
ddf5db90
PA
156842020-01-10 Pedro Alves <palves@redhat.com>
15685
15686 * remote.c (remote_target::mourn_inferior): No longer check
15687 whether the target is running.
15688
5018ce90
PA
156892020-01-10 Pedro Alves <palves@redhat.com>
15690
15691 * corelow.c (core_target::has_execution): Change parameter type to
15692 inferior pointer.
15693 * inferior.c (number_of_live_inferiors): Use
15694 inferior::has_execution instead of target_has_execution_1.
15695 * inferior.h (inferior::has_execution): New.
15696 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15697 inferior::has_execution instead of target_has_execution_1.
15698 * process-stratum-target.c
15699 (process_stratum_target::has_execution): Change parameter type to
15700 inferior pointer. Check the inferior's PID instead of
15701 inferior_ptid.
15702 * process-stratum-target.h
15703 (process_stratum_target::has_execution): Change parameter type to
15704 inferior pointer.
15705 * record-full.c (record_full_core_target::has_execution): Change
15706 parameter type to inferior pointer.
15707 * target.c (target_has_execution_1): Change parameter type to
15708 inferior pointer.
15709 (target_has_execution_current): Adjust.
15710 * target.h (target_ops::has_execution): Change parameter type to
15711 inferior pointer.
15712 (target_has_execution_1): Change parameter type to inferior
15713 pointer. Change return type to bool.
15714 * tracefile.h (tracefile_target::has_execution): Change parameter
15715 type to inferior pointer.
15716
74375d18
PA
157172020-01-10 Pedro Alves <palves@redhat.com>
15718
15719 * exceptions.c (print_flush): Remove current_top_target() check.
15720
acdf84a6
PA
157212020-01-10 Pedro Alves <palves@redhat.com>
15722
15723 * remote.c (show_remote_exec_file): Show the current inferior's
15724 exec-file instead of the command variable's value.
15725
ec506636
PA
157262020-01-10 Pedro Alves <palves@redhat.com>
15727
15728 * record-full.c (record_full_resume_ptid): New global.
15729 (record_full_target::resume): Set it.
15730 (record_full_wait_1): Use record_full_resume_ptid instead of
15731 inferior_ptid.
15732
873657b9
PA
157332020-01-10 Pedro Alves <palves@redhat.com>
15734
15735 * gdbthread.h (scoped_restore_current_thread)
15736 <dont_restore, restore, m_dont_restore>: Declare.
15737 * thread.c (thread_alive): Add assertion. Return bool.
15738 (switch_to_thread_if_alive): New.
15739 (prune_threads): Switch inferior/thread.
15740 (print_thread_info_1): Switch thread before calling target methods.
15741 (scoped_restore_current_thread::restore): New, factored out from
15742 ...
15743 (scoped_restore_current_thread::~scoped_restore_current_thread):
15744 ... this.
15745 (scoped_restore_current_thread::scoped_restore_current_thread):
15746 Add assertion.
15747 (thread_apply_all_command, thread_select): Use
15748 switch_to_thread_if_alive.
15749
7f0ae84c
GB
157502020-01-10 George Barrett <bob@bob131.so>
15751
15752 * stap-probe.c (stap_modify_semaphore): Don't check for null
15753 semaphores.
15754 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15755 for null semaphores.
15756
f5a7c406
AB
157572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15758
15759 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15760 all source windows, and maintain horizontal scroll status while
15761 doing so.
15762
9ae6bf64
TT
157632020-01-09 Tom Tromey <tom@tromey.com>
15764
15765 PR tui/18932:
15766 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15767 update_source_window, not print_source_lines.
15768
b2efe70c
AB
157692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15770
15771 * tui/tui.c (tui_enable): Register tui hooks after calling
15772 tui_display_main.
15773
5f23a082
CB
157742020-01-09 Christian Biesinger <cbiesinger@google.com>
15775
15776 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15777
3061113b
SM
157782020-01-08 Simon Marchi <simon.marchi@efficios.com>
15779
15780 * thread.c (print_thread_info_1): Fix indentation.
15781
57d75002
CB
157822020-01-09 Christian Biesinger <cbiesinger@google.com>
15783
15784 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15785 unique_xmalloc_ptr outside the if to always free the demangled name.
15786
6a053cb1
TT
157872020-01-08 Tom Tromey <tromey@adacore.com>
15788
15789 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15790 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15791 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15792 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15793 Remove.
15794 (section_offsets): New typedef.
15795 * symtab.c (fixup_section, get_msymbol_address): Update.
15796 * symmisc.c (dump_msymbols): Update.
15797 * symfile.h (relative_addr_info_to_section_offsets)
15798 (symfile_map_offsets_to_segments): Update.
15799 * symfile.c (build_section_addr_info_from_objfile)
15800 (init_objfile_sect_indices): Update.
15801 (struct place_section_arg): Change type of "offsets".
15802 (place_section): Update.
15803 (relative_addr_info_to_section_offsets): Change type of
15804 "section_offsets". Remove "num_sections" parameter.
15805 (default_symfile_offsets, syms_from_objfile_1)
15806 (set_objfile_default_section_offset): Update.
15807 (reread_symbols): No need to preserve section offsets by hand.
15808 (symfile_map_offsets_to_segments): Change type of "offsets".
15809 * stap-probe.c (relocate_address): Update.
15810 * stabsread.h (process_one_symbol): Update.
15811 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15812 (solib_target_relocate_section_addresses): Update.
15813 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15814 Update.
15815 * solib-frv.c (frv_relocate_main_executable): Update.
15816 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15817 * solib-aix.c (solib_aix_get_section_offsets): Change return
15818 type.
15819 (solib_aix_solib_create_inferior_hook): Update.
15820 * remote.c (remote_target::get_offsets): Update.
15821 * psymtab.c (find_pc_sect_psymtab): Update.
15822 * psympriv.h (struct partial_symbol) <address, text_low,
15823 text_high>: Update.
15824 * objfiles.h (obj_section_offset): Update.
15825 (struct objfile) <section_offsets>: Change type.
15826 <num_sections>: Remove.
15827 (objfile_relocate): Update.
15828 * objfiles.c (entry_point_address_query): Update
15829 (relocate_one_symbol): Change type of "section_offsets".
15830 (objfile_relocate1, objfile_relocate1): Change type of
15831 "new_offsets".
15832 (objfile_rebase1): Update.
15833 * mipsread.c (mipscoff_symfile_read): Update.
15834 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15835 parameter.
15836 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15837 (parse_external, psymtab_to_symtab_1): Update.
15838 * machoread.c (macho_symfile_offsets): Update.
15839 * ia64-tdep.c (ia64_find_unwind_table): Update.
15840 * hppa-tdep.c (read_unwind_info): Update.
15841 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15842 * dwarf2read.c (create_addrmap_from_index)
15843 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15844 (process_psymtab_comp_unit_reader, add_partial_symbol)
15845 (add_partial_subprogram, process_full_comp_unit)
15846 (read_file_scope, read_func_scope, read_lexical_block_scope)
15847 (read_call_site_scope, dwarf2_rnglists_process)
15848 (dwarf2_ranges_process, dwarf2_ranges_read)
15849 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15850 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15851 Update.
15852 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15853 Update.
15854 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15855 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15856 (process_one_symbol): Change type of "section_offsets".
15857 * ctfread.c (get_objfile_text_range): Update.
15858 * coffread.c (coff_symtab_read, enter_linenos)
15859 (process_coff_symbol): Update.
15860 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15861 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15862
456e800a
TT
158632020-01-08 Tom Tromey <tromey@adacore.com>
15864
15865 * dwarf2read.c (parse_macro_definition): Use std::string.
15866 (parse_macro_definition): Likewise.
15867
6dfa2fc2
TT
158682020-01-08 Tom Tromey <tromey@adacore.com>
15869
15870 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15871 (ATTR_ALLOC_CHUNK): Remove.
15872
421d1616
TT
158732020-01-08 Tom Tromey <tromey@adacore.com>
15874
15875 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15876
43816ebc
TT
158772020-01-08 Tom Tromey <tromey@adacore.com>
15878
15879 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15880 (dwarf2_compute_name, open_dwo_file): Likewise.
15881 (process_enumeration_scope): Use std::vector.
15882 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15883 (partial_die_info::fixup, dwarf2_start_subfile)
15884 (guess_full_die_structure_name, dwarf2_name): Likewise.
15885 (determine_prefix): Update.
15886 (guess_full_die_structure_name): Make return type const.
15887 (partial_die_full_name): Return unique_xmalloc_ptr.
15888 (DW_FIELD_ALLOC_CHUNK): Remove.
15889
4212d509
TT
158902020-01-07 Tom Tromey <tromey@adacore.com>
15891
15892 PR build/24937:
15893 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15894
06a6207a
JT
158952020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15896
15897 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15898
153d79c4
AB
158992020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15900
15901 * stack.c (print_frame_info): Move disassemble_next_line code
15902 inside source_print block.
15903
66182876
EZ
159042020-01-06 Eli Zaretskii <eliz@gnu.org>
15905
15906 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15907 gdb/signals.h, as we are now using native signal symbols.
15908
cbfa8581
SV
159092020-01-06 Shahab Vahedi <shahab@synopsys.com>
15910
15911 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15912 overflow by an early check of content vs threshold.
aac66a4c 15913 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15914 Likewise.
15915
3f602821
EZ
159162020-01-06 Eli Zaretskii <eliz@gnu.org>
15917
15918 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15919
a08c904d
JT
159202020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15921
15922 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15923 export table if no section contains it's RVA.
15924
89a65580
EZ
159252020-01-06 Eli Zaretskii <eliz@gnu.org>
15926
15927 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15928
8b7fcda2
HD
159292020-01-06 Hannes Domani <ssbssa@yahoo.de>
15930
15931 * source.c (print_source_lines_base): Set last_line_listed.
15932
a61b4f69
SV
159332020-01-06 Shahab Vahedi <shahab@synopsys.com>
15934
15935 * tui/tui-disasm.c: Remove trailing spaces.
15936
559e7e50
EZ
159372020-01-06 Eli Zaretskii <eliz@gnu.org>
15938 Pedro Alves <palves@redhat.com>
15939
15940 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15941 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15942 (windows_gdb_signal_to_target): New function, uses the above
15943 enumeration to convert GDB internal signal codes to equivalent
15944 Windows codes.
15945 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15946 * windows-nat.c: Include "gdb_wait.h".
15947 (get_windows_debug_event): Extract the fatal exception from the
15948 exit status and convert to the equivalent Posix signal number.
15949 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15950 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15951 * gdbsupport/gdb_wait.c: New file, implements
15952 windows_status_to_termsig.
15953 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15954 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15955
f2302a34
AB
159562020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15957
15958 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15959 show_layout.
15960
6a5206eb
LM
159612020-01-05 Luis Machado <luis.machado@linaro.org>
15962
15963 * aarch64-linux-nat.c
15964 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15965 and bfd_mach_aarch64.
15966
6ec1d75e
PW
159672020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15968
15969 * ui-file.c (stdio_file::can_emit_style_escape)
15970 (tee_file::can_emit_style_escape): Ensure style is used also on
15971 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15972 to gdb_stdout.
15973 * main.c (set_gdb_data_directory): Use file style to output the
15974 warning that the given pathname is not a directory.
15975 * top.c (show_history_filename, gdb_safe_append_history)
15976 (show_gdb_datadir): Use file style.
15977
44f81a76
HD
159782020-01-03 Hannes Domani <ssbssa@yahoo.de>
15979
15980 * solib-target.c (struct lm_info_target):
15981 Change offsets to be a unique_xmalloc_ptr.
15982 (solib_target_relocate_section_addresses): Update.
15983
25057eb0
HD
159842020-01-03 Hannes Domani <ssbssa@yahoo.de>
15985
15986 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15987
6e2118f5
BE
159882020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15989
15990 * MAINTAINERS (Write After Approval): Add myself.
15991
8133c7dc
LM
159922020-01-02 Luis Machado <luis.machado@linaro.org>
15993
15994 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15995 Cell BE architecture.
15996 * target.h (struct target_ops) <thread_architecture>: Likewise.
15997
48189bec
HD
159982020-01-01 Hannes Domani <ssbssa@yahoo.de>
15999
16000 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16001
ead1063b
HD
160022020-01-01 Hannes Domani <ssbssa@yahoo.de>
16003
16004 * MAINTAINERS (Write After Approval): Add myself.
16005
e5d78223
JB
160062020-01-01 Joel Brobecker <brobecker@adacore.com>
16007
16008 * gdbarch.sh: Update copyright year range of generated files.
16009
b811d2c2
JB
160102020-01-01 Joel Brobecker <brobecker@adacore.com>
16011
16012 Update copyright year range in all GDB files.
16013
5f4def5c
JB
160142020-01-01 Joel Brobecker <brobecker@adacore.com>
16015
16016 * copyright.py: Convert to Python 3.
16017
51fd4002
JB
160182020-01-01 Joel Brobecker <brobecker@adacore.com>
16019
16020 * copyright.py: Adapt after move of gnulib directory from gdb
16021 directory to toplevel directory.
16022
5fb651f2
JB
160232020-01-01 Joel Brobecker <brobecker@adacore.com>
16024
16025 * copyright.py (main): Exit if run from the wrong directory.
16026
5dd8bf88
JB
160272020-01-01 Joel Brobecker <brobecker@adacore.com>
16028
16029 * top.c (print_gdb_version): Change copyright year to 2020.
16030
9f71dacb 160312020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16032
9f71dacb 16033 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16034
9f71dacb 16035For older changes see ChangeLog-2019.
c906108c
SS
16036\f
16037Local Variables:
16038mode: change-log
16039left-margin: 8
16040fill-column: 74
16041version-control: never
57da7796 16042coding: utf-8
c906108c 16043End:
This page took 3.997253 seconds and 4 git commands to generate.