]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove symfile_objfile macro
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a42d7dd8
TT
12020-10-29 Tom Tromey <tom@tromey.com>
2
3 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4 * target.c (info_target_command): Update.
5 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6 (symbol_file_clear, reread_symbols): Update.
7 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
8 * stabsread.c (scan_file_globals): Update.
9 * solib.c (update_solib_list): Update.
10 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
11 (svr4_fetch_objfile_link_map, enable_break)
12 (svr4_relocate_main_executable)
13 (svr4_iterate_over_objfiles_in_search_order): Update.
14 * solib-frv.c (lm_base, enable_break)
15 (frv_relocate_main_executable): Update.
16 (main_got, frv_fdpic_find_canonical_descriptor): Update.
17 (frv_fetch_objfile_link_map): Update.
18 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
19 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
20 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
21 * remote.c (remote_target::get_offsets): Update.
22 (remote_target::start_remote)
23 (extended_remote_target::post_attach): Update.
24 * objfiles.c (entry_point_address_query): Update.
25 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
26 * minsyms.c (get_symbol_leading_char): Update.
27 * frame.c (inside_main_func): Update.
28 * progspace.h (symfile_objfile): Remove macro.
29
19f6550e
TT
302020-10-29 Tom Tromey <tom@tromey.com>
31
32 * exec.c (exec_file_attach): Update.
33 * progspace.c (program_space::exec_close): Update.
34 * progspace.h (struct program_space) <ebfd>: Now a
35 gdb_bfd_ref_ptr.
36 <set_exec_bfd>: Change argument type.
37 <exec_bfd>: Update.
38
7e10abd1
TT
392020-10-29 Tom Tromey <tom@tromey.com>
40
41 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
42 * symfile.c (reread_symbols): Update.
43 * symfile-mem.c (add_symbol_file_from_memory_command)
44 (add_vsyscall_page): Update.
45 * source-cache.c (source_cache::get_plain_source_lines): Update.
46 * solib-svr4.c (find_program_interpreter, elf_locate_base)
47 (svr4_current_sos_direct, svr4_exec_displacement)
48 (svr4_relocate_main_executable): Update.
49 (svr4_iterate_over_objfiles_in_search_order): Update.
50 * solib-frv.c (enable_break2, enable_break): Update.
51 * solib-dsbt.c (lm_base, enable_break): Update.
52 * solib-darwin.c (find_program_interpreter)
53 (darwin_solib_create_inferior_hook): Update.
54 * sol-thread.c (rw_common, ps_pdmodel): Update.
55 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
56 * remote.c (compare_sections_command)
57 (remote_target::trace_set_readonly_regions): Update.
58 * remote-sim.c (get_sim_inferior_data)
59 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
60 (gdbsim_target_open, gdbsim_target::files_info): Update.
61 * exec.h (exec_bfd): Remove macro.
62 * progspace.c (initialize_progspace): Update.
63 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
64 Update.
65 * nto-procfs.c (nto_procfs_target::post_attach)
66 (nto_procfs_target::create_inferior): Update.
67 * maint.c (maintenance_info_sections): Update.
68 * linux-thread-db.c (thread_db_target::get_thread_local_address):
69 Update.
70 * infcmd.c (post_create_inferior): Update.
71 * gcore.c (default_gcore_arch, default_gcore_target): Update.
72 (objfile_find_memory_regions): Update.
73 * exec.c (validate_exec_file, exec_file_attach)
74 (exec_read_partial_read_only, print_section_info): Update.
75 * corelow.c (core_target_open): Update.
76 * corefile.c (reopen_exec_file, validate_files): Update.
77 * arm-tdep.c (gdb_print_insn_arm): Update.
78 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
79 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
80 methods.
81
b55221ab
TT
822020-10-29 Tom Tromey <tom@tromey.com>
83
84 * progspace.h (current_target_sections): Remove macro.
85 * solib-svr4.c (scan_dyntag): Update.
86 * solib-dsbt.c (scan_dyntag): Update.
87 * exec.c (exec_target::close): Update.
88 (add_target_sections, add_target_sections_of_objfile)
89 (remove_target_sections, exec_target::get_section_table)
90 (exec_target::files_info, set_section_command)
91 (exec_set_section_address, exec_target::has_memory)
92 (exec_target::has_memory): Update.
93
5a36e715
TT
942020-10-29 Tom Tromey <tom@tromey.com>
95
96 * source-cache.c (source_cache::get_plain_source_lines): Use
97 current_program_space.
98 * corefile.c (reopen_exec_file): Use current_program_space.
99 * exec.c (exec_file_attach): Use current_program_space.
100 * exec.h (exec_bfd_mtime): Remove.
101
784c8592
TT
1022020-10-29 Tom Tromey <tom@tromey.com>
103
104 * gcore.c (default_gcore_mach): Remove.
105 (create_gcore_bfd): Update.
106
8a4f1402
TT
1072020-10-29 Tom Tromey <tom@tromey.com>
108
109 * progspace.c (program_space::exec_close): New method, from
110 exec_close in exec.c.
111 * exec.c (exec_close): Move to progspace.c.
112 (exec_target::close, exec_file_attach): Update.
113 * progspace.h (struct program_space) <exec_close>: Declare
114 method.
115
c20cb686
TT
1162020-10-29 Tom Tromey <tom@tromey.com>
117
118 * progspace.h (struct program_space) <exec_filename>: Rename from
119 pspace_exec_filename. Now a unique_xmalloc_ptr.
120 * inferior.c (print_selected_inferior): Update.
121 (print_inferior): Update.
122 * mi/mi-main.c (print_one_inferior): Update.
123 * exec.h (exec_filename): Remove macro.
124 * corefile.c (get_exec_file): Update.
125 * exec.c (exec_close): Update.
126 (exec_file_attach): Update.
127 * progspace.c (clone_program_space): Update.
128 (print_program_space): Update.
129
6be2a9ab
TT
1302020-10-29 Tom Tromey <tom@tromey.com>
131
132 * target-section.h (struct target_section): Add constructor.
133 * exec.c (build_section_table, add_target_sections_of_objfile):
134 Update.
135 * corelow.c (core_target::build_file_mappings): Update.
136
cfaa8f76
TBA
1372020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
138
139 PR gdb/19318
140 * inferior.c (detach_inferior_command): Restore the current thread.
141 (kill_inferior_command): Ditto.
142
1b00ef06
TV
1432020-10-28 Tom de Vries <tdevries@suse.de>
144
145 PR symtab/26772
146 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
147 map, check it in the "best match" loop.
148
7f40ce1a
SM
1492020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
150
151 * m32c-tdep.c: Remove unused includes.
152
5eb9e3f5
SM
1532020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * xtensa-tdep.c: Remove includes.
156
b1d4d8d1
TBA
1572020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
158
159 * breakpoint.c (struct condition_command_opts): New struct.
160 (condition_command_option_defs): New static global.
161 (make_condition_command_options_def_group): New function.
162 (condition_completer): Update to consider the '-force' flag.
163 (condition_command): Use gdb::option for the '-force' flag.
164
bd24c5d6
TV
1652020-10-27 Tom de Vries <tdevries@suse.de>
166
167 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
168 symbols in section check.
169
61eb46a4
TV
1702020-10-27 Tom de Vries <tdevries@suse.de>
171
172 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
173
733d554a
TBA
1742020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
175
176 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
177 * breakpoint.c: Update the help text of the 'condition' and 'break'
178 commands.
179 (set_breakpoint_condition): Take a new bool parameter
180 to control whether condition definition should be forced even when
181 the condition expression is invalid in all of the current locations.
182 (condition_command): Update the call to 'set_breakpoint_condition'.
183 (find_condition_and_thread): Take the "-force-condition" flag into
184 account.
185 * linespec.c (linespec_keywords): Add "-force-condition" as an
186 element.
187 (FORCE_KEYWORD_INDEX): New #define.
188 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
189 as a keyword.
190 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
191 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
192 * python/py-breakpoint.c (bppy_set_condition): Ditto.
193 * NEWS: Mention the changes to the 'break' and 'condition' commands.
194
b5fa468f
TBA
1952020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
196
197 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
198 * breakpoint.c (set_breakpoint_location_condition): New function.
199 (set_breakpoint_condition): Disable a breakpoint location if parsing
200 the condition string gives an error.
201 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
202 (build_target_condition_list): Ditto.
203 (build_target_command_list): Ditto.
204 (build_bpstat_chain): Ditto.
205 (print_one_breakpoint_location): Ditto.
206 (print_one_breakpoint): Ditto.
207 (breakpoint_1): Ditto.
208 (bp_location::bp_location): Ditto.
209 (locations_are_equal): Ditto.
210 (update_breakpoint_locations): Ditto.
211 (enable_disable_bp_num_loc): Ditto.
212 (init_breakpoint_sal): Use set_breakpoint_location_condition.
213 (find_condition_and_thread_for_sals): New static function.
214 (create_breakpoint): Call find_condition_and_thread_for_sals.
215 (location_to_sals): Call find_condition_and_thread_for_sals instead
216 of find_condition_and_thread.
217
1c47ec3e
TV
2182020-10-26 Tom de Vries <tdevries@suse.de>
219
220 * dwarf2/read.c (process_full_comp_unit): Call
221 dwarf2_find_base_address.
222
6390859c
TT
2232020-10-26 Tom Tromey <tromey@adacore.com>
224
225 * gdbtypes.c (create_range_type): Revert previous patch. Add
226 comment.
227
d744f0f9
PA
2282020-10-26 Pedro Alves <pedro@palves.net>
229
230 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
231 (my_waitpid): Use gdb::handle_eintr.
232
006811bc
SM
2332020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
234
235 * acinclude.m4: Update ptrace.m4 path.
236 * ptrace.m4: Moved to gdbsupport.
237
c75e31a1
SM
2382020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
239
240 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
241 instead of target_gdbarch.
242
32495661
SM
2432020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * jit.c (jit_reader_load_command): Pass current inferior.
246 (jit_inferior_init): Change parameter type to inferior, use it.
247 (jit_inferior_created): Remove.
248 (jit_inferior_created_hook): Pass inferior parameter down.
249 (_initialize_jit): Use jit_inferior_created_hook instead of
250 jit_inferior_created.
251 * jit.h (jit_inferior_created_hook): Add inferior parameter.
252 * infrun.c (follow_exec): Pass inferior to
253 jit_inferior_created_hook.
254
3f66685e
SM
2552020-10-24 Simon Marchi <simon.marchi@efficios.com>
256
257 * linux-thread-db.c (check_pid_namespace_match): Add inferior
258 parameter and use it.
259 (thread_db_inferior_created): Pass inferior argument.
260
a0ff652f
SM
2612020-10-24 Simon Marchi <simon.marchi@efficios.com>
262
263 * aix-thread.c (aix_thread_inferior_created): Add inferior
264 parameter.
265 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
266 * dummy-frame.c (cleanup_dummy_frames): Likewise.
267 * jit.c (jit_inferior_created): Likewise.
268 * linux-thread-db.c (thread_db_inferior_created): Likewise.
269 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
270 * observable.h (inferior_created): Likewise.
271 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
272 * symfile-mem.c (add_vsyscall_page): Likewise.
273 * infcmd.c (post_create_inferior): Pass inferior argument.
274
3c67532c
JB
2752020-10-24 Joel Brobecker <brobecker@adacore.com>
276
277 GDB 10.1 released.
278
8747316e
JB
2792020-10-23 Joel Brobecker <brobecker@adacore.com>
280
281 * ada-typeprint.c (ada_print_type): Remove superfluous second call
282 to ada_check_typedef.
283
1a0ea399
AB
2842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * f-exp.y (f_parse): Rename to...
287 (f_language::parser): ...this.
288 * f-lang.c (f_get_encoding): Rename to...
289 (f_language::get_encoding): ...this.
290 (f_op_print_tab): Rename to...
291 (f_language::op_print_tab): ...this.
292 (exp_descriptor_f): Rename to...
293 (f_language::exp_descriptor_tab): ...this.
294 (class f_language): Moved to f-lang.h.
295 (f_language::language_arch_info): New function, moved out of class
296 declaration.
297 (f_language::search_name_hash): Likewise.
298 (f_language::lookup_symbol_nonlocal): Likewise.
299 (f_language::get_symbol_name_matcher_inner): Likewise.
300 * f-lang.h: Add 'valprint.h' include.
301 (class f_language): Moved here from f-lang.c.
302 * f-typeprint.c (f_type_print_args): Delete commented out
303 declaration.
304 (f_print_typedef): Rename to...
305 (f_language::print_typedef): ...this.
306 (f_print_type): Rename to...
307 (f_language::print_type): ...this.
308 (f_type_print_varspec_prefix): Delete declaration and rename to...
309 (f_language::f_type_print_varspec_prefix): ...this.
310 (f_type_print_varspec_suffix): Delete declaration and rename to...
311 (f_language::f_type_print_varspec_suffix): ...this.
312 (f_type_print_base): Delete declaration and rename to...
313 (f_language::f_type_print_base): ...this.
314 * f-valprint.c (f_value_print_inner): Rename to...
315 (f_language::value_print_inner): ...this.
316 * parse.c: Delete 'f-lang.h' include.
317
88cefd9b
AB
3182020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * language.h (language_defn::print_type): Add variable names in
321 declaration, and update header comment.
322
5399db93
AB
3232020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * ada-lang.c (ada_language::demangle): Rename to...
326 (ada_language::demangle_symbol): ...this.
327 * c-lang.c (cplus_language::demangle): Rename to...
328 (cplus_language::demangle_symbol): ...this.
329 * d-lang.c (d_language::demangle): Rename to...
330 (d_language::demangle_symbol): ...this.
331 * f-lang.c (f_language::demangle): Rename to...
332 (f_language::demangle_symbol): ...this.
333 * go-lang.c (go_language::demangle): Rename to...
334 (go_language::demangle_symbol): ...this.
335 * language.c (language_demangle): Update call to demangle_symbol.
336 (auto_or_unknown_language::demangle): Rename to...
337 (auto_or_unknown_language::demangle_symbol): ...this.
338 * language.h (language_defn::demangle): Rename to...
339 (language_defn::demangle_symbol): ...this.
340 * objc-lang.c (objc_language::demangle): Rename to...
341 (objc_language::demangle_symbol): ...this.
342 * rust-lang.c (rust_language::demangle): Rename to...
343 (rust_language::demangle_symbol): ...this.
344
4b2f86ef
AB
3452020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
346
347 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
348 (iterate_over_file_blocks): Replace use of macro with the macros
349 definition.
350
e74b39de
AB
3512020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
354 * valprint.c (maybe_print_array_index): Replace use of macro with
355 the macros definition.
356
00c696a6
AB
3572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * ada-lang.c (ada_language::print_array_index): Call value_print
360 directly.
361 * language.c (language_defn::print_array_index): Likewise.
362 * language.h (LA_VALUE_PRINT): Delete.
363 * valprint.c (value_print): Call value_print on the
364 current_language directly.
365
d3b67c56
AB
3662020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * language.h (LA_PRINT_TYPEDEF): Delete.
369 * typeprint.c (typedef_print): Call print_typedef directly on the
370 current_language object.
371
790e2a12
AB
3722020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
373
374 * m2-exp.y (m2_parse): Rename to...
375 (m2_language::parser): ...this. Update function signature.
376 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
377 (m2_op_print): Rename to...
378 (m2_language::op_print_tab): ...this, and make const.
379 (exp_descriptor_modula2): Rename to...
380 (m2_language::exp_descriptor_modula2): ...this.
381 (class m2_language): Move to m2-lang.h.
382 (m2_language::language_arch_info): New function, moved out of
383 class declaration.
384 (m2_language::printchar): New function, body from m2_printchar.
385 (m2_language::printstr): New function, moved out of class
386 declaration.
387 (m2_language::emitchar): Likewise.
388 * m2-lang.h (m2_parse): Delete declaration.
389 (m2_print_typedef): Delete declaration.
390 (m2_value_print_inner): Delete declaration.
391 (class m2_language): Class declaration moved from m2-lang.c,
392 larger functions are left in m2-lang.c.
393 * m2-typeprint.c (m2_print_typedef): Rename to...
394 (m2_language::print_typedef): ...this, and update function
395 signature.
396 * m2-valprint.c (m2_value_print_inner): Rename to...
397 (m2_language::value_print_inner): ...this, replace use of
398 LA_PRINT_STRING with a direct call to printstr member function,
399 and update recursive call.
400
b01175fc
AB
4012020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * language.c (default_is_string_type_p): Delete, implementation
404 moved into auto_or_unknown_language::is_string_type_p.
405 (unk_op_print_tab): Moved into
406 auto_or_unknown_language::opcode_print_table.
407 (unknown_language_arch_info): Delete, implementation moved into
408 auto_or_unknown_language::language_arch_info.
409 (class auto_or_unknown_language): New class, member functions
410 copied from unknown_language class, with some updates.
411 (class unknown_language): Most member functions moved into
412 auto_or_unknown_language class. Inherit from
413 auto_or_unknown_language class.
414 (class auto_language): Inherit from auto_or_unknown_language.
415 Delete most member functions.
416
1a97fe8c
HD
4172020-10-22 Hannes Domani <ssbssa@yahoo.de>
418
419 * stabsread.c (read_member_functions): Remove gdb_assert.
420
6b9d0dfd
HD
4212020-10-22 Hannes Domani <ssbssa@yahoo.de>
422
423 * gdbtypes.c (init_complex_type): Check target type name.
424
4b4bb603
SM
4252020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
426
427 * target-debug.h (target_debug_print_struct_target_ops_p):
428 Remove.
429 (target_debug_print_async_callback_ftype_p): Remove.
430 (target_debug_print_struct_trace_state_variable_p): Remove.
431 (target_debug_print_struct_traceframe_info_p): Remove.
432 (target_debug_print_VEC__btrace_block_s__pp): Remove.
433 (target_debug_print_enum_btrace_format): Remove.
434 (target_debug_print_enum_info_proc_what): Remove.
435 (target_debug_print_thread_info_pp): Remove.
436
24f5300a
SM
4372020-10-22 Simon Marchi <simon.marchi@efficios.com>
438
439 * target.h (struct target_ops) <make_corefile_notes>:
440 Change return type to unique pointer.
441 * target.c (dummy_make_corefile_notes): Likewise.
442 * exec.c (struct exec_target) <make_corefile_notes>:
443 Likewise.
444 (exec_target::make_corefile_notes): Likewise.
445 * procfs.c (class procfs_target) <make_corefile_notes>:
446 Likewise.
447 (procfs_do_thread_registers): Adjust to unique pointer.
448 (struct procfs_corefile_thread_data): Add constructor.
449 <note_data>: Change type to unique pointer.
450 (procfs_corefile_thread_callback): Adjust to unique pointer.
451 (procfs_target::make_corefile_notes): Change return type to
452 unique pointer.
453 * target-delegates.c: Re-generate.
454 * gcore.c (write_gcore_file_1): Adjust.
455 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
456 New.
457
5fb4027f
TV
4582020-10-22 Tom de Vries <tdevries@suse.de>
459
460 * block.c (find_block_in_blockvector): Make sure the returned block
461 contains pc.
462
4a636814
SM
4632020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
464
465 PR gdb/26693
466 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
467 parameter.
468 (load_cu): Pass existing CU.
469 (process_imported_unit_die): Likewise.
470 (follow_die_offset): Likewise.
471
1bd57575
LM
4722020-10-22 Luis Machado <luis.machado@linaro.org>
473
474 * corelow.c (core_target::xfer_partial): Also check for an empty
475 m_core_unavailable_mappings vector.
476
6b4c676c
AB
4772020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
480 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
481 * f-exp.y (arglist): Allow for a series of subranges.
482 (subrange): Add cases for subranges with strides.
483 * f-lang.c (value_f90_subarray): Catch use of array strides and
484 throw an error.
485 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
486
f2d8e4c5
AB
4872020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * expprint.c (print_subexp_standard): Change enum range_type to
490 range_flag and rename variables to match.
491 (dump_subexp_body_standard): Likewise.
492 * expression.h (enum range_type): Rename to...
493 (enum range_flag): ...this.
494 (range_types): Rename to...
495 (range_flags): ...this.
496 * f-lang.c (value_f90_subarray): Change enum range_type to
497 range_flag and rename variables to match.
498 * parse.c (operator_length_standard): Likewise.
499 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
500 range_type to range_flag.
501 * rust-lang.c (rust_evaluate_funcall): Likewise.
502 (rust_range): Likewise.
503 (rust_compute_range): Likewise.
504 (rust_subscript): Likewise.
505
2f1b18db
AB
5062020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 * expprint.c (print_subexp_standard): Update to reflect changes to
509 enum range_type.
510 (dump_subexp_body_standard): Likewise.
511 * expression.h (enum range_type): Convert to a bit field enum, and
512 make the enum unsigned.
513 * f-exp.y (subrange): Update to reflect changes to enum
514 range_type.
515 * f-lang.c (value_f90_subarray): Likewise.
516 * parse.c (operator_length_standard): Likewise.
517 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
518 * rust-lang.c (rust_range): Likewise.
519 (rust_compute_range): Likewise.
520 (rust_subscript): Likewise.
521
a46d1843
SM
5222020-10-21 Simon Marchi <simon.marchi@efficios.com>
523
524 * infrun.c (displaced_step_in_progress_thread): Fix comment.
525 (displaced_step_in_progress): Fix comment.
526
c21f37a8
SM
5272020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
528
529 * gdbarch.sh (make_corefile_notes): Return unique pointer.
530 * gdbarch.c: Re-generate.
531 * gdbarch.h: Re-generate.
532 * gcore.c (write_gcore_file_1): Adjust.
533 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
534 constructor.
535 <note_data>: Change type to unique pointer.
536 <abort_iteration>: Change type to bool.
537 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
538 (fbsd_collect_thread_registers): Return void, adjust.
539 (struct fbsd_corefile_thread_data): Add construtor.
540 <note_data>: Change type to unique pointer.
541 (fbsd_corefile_thread): Adjust.
542 (fbsd_make_corefile_notes): Return unique pointer, adjust.
543 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
544 to unique pointer, adjust.
545 (struct linux_collect_regset_section_cb_data): Add constructor.
546 <note_data>: Change type to unique pointer.
547 <abort_iteration>: Change type to bool.
548 (linux_collect_thread_registers): Return void, adjust.
549 (struct linux_corefile_thread_data): Add constructor.
550 <note_data>: Change type to unique pointer.
551 (linux_corefile_thread): Adjust.
552 (linux_make_corefile_notes): Return unique pointer, adjust.
553
07fbbd01
SM
5542020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
555
556 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
557 * gdbarch.c: Re-generate.
558 * gdbarch.h: Re-generate.
559 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
560 bool.
561 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
562 Likewise.
563 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
564 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
565 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
566 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
567
39535193
SM
5682020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
569
570 * gdbarch.sh: Make generated predicates return bool.
571 * gdbarch.c: Re-generate.
572 * gdbarch.h: Re-generate.
573
ad523d01
TT
5742020-10-20 Tom Tromey <tom@tromey.com>
575
576 * varobj-iter.h (struct varobj_item): Remove typedef.
577
c4464ade
SM
5782020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * infrun.c (currently_stepping): Change int to bool
581 (maybe_software_singlestep): Likewise.
582 (show_stop_on_solib_events): Likewise.
583 (stepping_past_nonsteppable_watchpoint): Likewise.
584 (displaced_step_in_progress_any_inferior): Likewise.
585 (displaced_step_in_progress_thread): Likewise.
586 (keep_going_stepped_thread): Likewise.
587 (thread_still_needs_step_over): Likewise.
588 (start_step_over): Likewise.
589 (do_target_resume): Likewise.
590 (resume_1): Likewise.
591 (clear_proceed_status): Likewise.
592 (thread_still_needs_step_over_bp): Likewise.
593 (proceed): Likewise.
594 (switch_back_to_stepped_thread): Likewise.
595 (adjust_pc_after_break): Likewise.
596 (stepped_in_from): Likewise.
597 (handle_stop_requested): Likewise.
598 (handle_syscall_event): Likewise.
599 (handle_no_resumed): Likewise.
600 (handle_inferior_event): Likewise.
601 (finish_step_over): Likewise.
602 (handle_signal_stop): Likewise.
603 (process_event_stop_test): Likewise.
604
2eb20436
SM
6052020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * infrun.c (get_displaced_stepping_state): Fix comment.
608
e0c45ded
AS
6092020-10-20 Andreas Schwab <schwab@linux-m68k.org>
610
611 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
612
22cc388e
TT
6132020-10-19 Tom Tromey <tromey@adacore.com>
614
615 PR tui/26719
616 * tui/tui-winsource.h (struct tui_source_window_base)
617 <refresh_window>: Rename from refresh_pad.
618 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
619 Rename from refresh_pad.
620 (tui_source_window_base::show_source_content)
621 (tui_source_window_base::do_scroll_horizontal): Update.
622
3c6eb4d4
TBA
6232020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
624
625 * thread.c (_initialize_thread): Fine-tune the help text of
626 'info threads'.
627
26703721
TBA
6282020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
629
630 * frame.c: Remove the unused 'uinteger_option_def' type alias.
631
61c26be8
MS
6322020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
633
634 * breakpoint.c (handle_jit_event): Add an argument, change how
635 `jit_event_handler` is called.
636
932539d7
TT
6372020-10-17 Tom Tromey <tom@tromey.com>
638
639 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
640 (scan_xcoff_symtab): Update.
641 * psymtab.h (class psymtab_storage) <global_psymbols,
642 static_psymbols, current_global_psymbols,
643 current_static_psymbols>: Remove.
644 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
645 (match_partial_symbol, lookup_partial_symbol): Update.
646 (print_partial_symbols): Change parameters.
647 (dump_psymtab, recursively_search_psymtabs)
648 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
649 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
650 (concat): Remove.
651 (end_psymtab_common): Simplify.
652 (append_psymbol_to_list): Change parameters.
653 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
654 (init_psymbol_list): Simplify.
655 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
656 * psympriv.h (struct partial_symtab) <empty>: New method.
657 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
658 Remove.
659 <global_psymbols, static_psymbols>: New members.
660 <add_psymbol>: New methods.
661 (add_psymbol_to_list): Don't declare.
662 (psymbol_placement): Move earlier.
663 * mdebugread.c (parse_partial_symbols): Update.
664 (handle_psymbol_enumerators): Change parameters.
665 (mdebug_expand_psymtab): Update.
666 * dwarf2/read.c (process_psymtab_comp_unit_reader)
667 (add_partial_symbol): Update.
668 * dwarf2/index-write.c (write_psymbols): Change parameters.
669 (write_one_signatured_type): Update.
670 (recursively_count_psymbols): Update.
671 (recursively_write_psymbols): Update.
672 (class debug_names) <recursively_write_psymbols>: Update.
673 <write_psymbols>: Change parameters.
674 <write_one_signatured_type>: Update.
675 * dbxread.c (read_dbx_symtab): Update.
676 (dbx_end_psymtab): Use partial_symtab::empty.
677 * ctfread.c (struct ctf_context) <pst>: New member.
678 (create_partial_symtab): Set it.
679 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
680 (scan_partial_symbols): Use the psymtab's context. Update.
681
cfabbd35
TT
6822020-10-17 Tom Tromey <tom@tromey.com>
683
684 * valprint.c (generic_value_print): Remove comment.
685 * m2-valprint.c (m2_value_print_inner): Remove comment.
686 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
687 type.
688
520596f2
TV
6892020-10-17 Tom de Vries <tdevries@suse.de>
690
691 PR symtab/26317
692 * source.c (select_source_symtab): Handling sal.symtab == NULL for
693 symbol main.
694
76547ab3
TV
6952020-10-14 Tom de Vries <tdevries@suse.de>
696
697 PR gdb/26733
698 * solib.c (solib_contains_address_p): Handle
699 'solib->sections == nullptr'.
700
d3a07122
SM
7012020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
702
703 PR gdb/26642
704 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
705 target can't do async.
706 * target.c (target_wait): Assert that we don't pass
707 TARGET_WNOHANG to a target that can't async.
708
1b71cfcf
KR
7092020-10-13 Kamil Rytarowski <n54@gmx.com>
710
711 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
712 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
713 * alpha-bsd-nat.c: Adjust include.
714 * alpha-bsd-tdep.h: Adjust comment.
715 * alpha-nbsd-tdep.c: Rename to ...
716 * alpha-netbsd-tdep.c: ... this, adjust include.
717 * amd64-nbsd-nat.c: Rename to ...
718 * amd64-netbsd-nat.c: ... this, adjust include.
719 * amd64-nbsd-tdep.c: Rename to ...
720 * amd64-netbsd-tdep.c: ... this, adjust include.
721 * amd64-tdep.h: Adjust include.
722 * arm-nbsd-nat.c: Rename to ...
723 * arm-netbsd-nat.c: ... this, adjust include.
724 * arm-nbsd-tdep.c: Rename to ...
725 * arm-netbsd-tdep.c: ... this, adjust include.
726 * arm-nbsd-tdep.h: Rename to ...
727 * arm-netbsd-tdep.h: ... this, adjust include.
728 * configure.nat: Adjust file lists.
729 * configure.tgt: Likewise.
730 * hppa-nbsd-nat.c: Rename to ...
731 * hppa-netbsd-nat.c: ... this, adjust include.
732 * hppa-nbsd-tdep.c: Rename to ...
733 * hppa-netbsd-tdep.c: ... this, adjust include.
734 * i386-nbsd-nat.c: Rename to ...
735 * i386-netbsd-nat.c: ... this, adjust include.
736 * i386-nbsd-tdep.c: Rename to ...
737 * i386-netbsd-tdep.c: ... this, adjust include.
738 * m68k-bsd-nat.c: Adjust include.
739 * mips-nbsd-nat.c: Rename to ...
740 * mips-netbsd-nat.c: ... this, adjust include.
741 * mips-nbsd-tdep.c: Rename to ...
742 * mips-netbsd-tdep.c: ... this, adjust include.
743 * mips-nbsd-tdep.h: Rename to ...
744 * mips-netbsd-tdep.h: ... this.
745 * nbsd-nat.c: Rename to ...
746 * netbsd-nat.c: ... this, adjust include.
747 * nbsd-nat.h: Rename to ...
748 * netbsd-nat.h: ... this, adjust include.
749 * nbsd-tdep.c: Rename to ...
750 * netbsd-tdep.c: ... this, adjust include.
751 * nbsd-tdep.h: Rename to ...
752 * netbsd-tdep.h: ... this.
753 * ppc-nbsd-nat.c: Rename to ...
754 * ppc-netbsd-nat.c: ... this, adjust include.
755 * ppc-nbsd-tdep.c: Rename to ...
756 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
757 * ppc-nbsd-tdep.h: Rename to ...
758 * ppc-netbsd-tdep.h: ... this.
759 * sh-nbsd-nat.c: Rename to ...
760 * sh-netbsd-nat.c: ... this, adjust include.
761 * sh-nbsd-tdep.c: Rename to ...
762 * sh-netbsd-tdep.c: ... this, adjust include.
763 * sparc-nbsd-nat.c: Rename to ...
764 * sparc-netbsd-nat.c: ... this.
765 * sparc-nbsd-tdep.c: Rename to ...
766 * sparc-netbsd-tdep.c: ... this, adjust include.
767 * sparc64-nbsd-nat.c: Rename to ...
768 * sparc64-netbsd-nat.c: ... this.
769 * sparc64-nbsd-tdep.c: Rename to ...
770 * sparc64-netbsd-tdep.c: ... this, adjust include.
771 * sparc64-tdep.h: Adjust comment.
772 * vax-bsd-nat.c: Adjust include.
773 * vax-nbsd-tdep.c: Rename to ...
774 * vax-netbsd-tdep.c: ... this, adjust include.
775
d7a78e5c
TT
7762020-10-12 Tom Tromey <tom@tromey.com>
777
778 * target.h (struct target_ops) <get_section_table>: Update.
779 (target_get_section_table): Update.
780 * target.c (target_get_section_table, target_section_by_addr)
781 (memory_xfer_partial_1): Update.
782 * target-section.h (target_section_table): Now an alias.
783 * target-delegates.c: Rebuild.
784 * target-debug.h (target_debug_print_target_section_table_p):
785 Rename from target_debug_print_struct_target_section_table_p.
786 * symfile.c (build_section_addr_info_from_section_table): Update.
787 * solib.c (solib_map_sections, solib_contains_address_p): Update.
788 * solib-svr4.c (scan_dyntag): Update.
789 * solib-dsbt.c (scan_dyntag): Update.
790 * remote.c (remote_target::remote_xfer_live_readonly_partial):
791 Update.
792 * record-full.c (record_full_core_target::xfer_partial): Update.
793 * progspace.h (struct program_space) <target_sections>: Update.
794 * exec.h (print_section_info): Update.
795 * exec.c (exec_target::close, build_section_table)
796 (add_target_sections, add_target_sections_of_objfile)
797 (remove_target_sections, exec_on_vfork)
798 (section_table_available_memory)
799 (section_table_xfer_memory_partial)
800 (exec_target::get_section_table, exec_target::xfer_partial)
801 (print_section_info, set_section_command)
802 (exec_set_section_address, exec_target::has_memory): Update.
803 * corelow.c (core_target::build_file_mappings)
804 (core_target::xfer_partial, core_target::info_proc_mappings)
805 (core_target::info_proc_mappings): Update.
806 * bfd-target.c (class target_bfd): Update
807
eda214ce
TT
8082020-10-12 Tom Tromey <tom@tromey.com>
809
810 * progspace.c (program_space::~program_space): Don't call
811 clear_section_table.
812 * exec.h (clear_section_table): Don't declare.
813 * exec.c (exec_target::close): Update.
814 (clear_section_table): Remove.
815
91840ee3
TT
8162020-10-12 Tom Tromey <tom@tromey.com>
817
818 * exec.c (add_target_sections_of_objfile): Simplify.
819
2d128614
TT
8202020-10-12 Tom Tromey <tom@tromey.com>
821
822 * solib.c (solib_map_sections): Update.
823 * record-full.c (record_full_core_open_1): Update.
824 * exec.h (build_section_table): Return a target_section_table.
825 * exec.c (exec_file_attach): Update.
826 (build_section_table): Return a target_section_table.
827 * corelow.c (core_target::core_target): Update.
828 * bfd-target.c (target_bfd::target_bfd): Update.
829
bb2a6777
TT
8302020-10-12 Tom Tromey <tom@tromey.com>
831
832 * target.c (target_section_by_addr, memory_xfer_partial_1):
833 Update.
834 * target-section.h (struct target_section_table): Use
835 std::vector.
836 * symfile.h (build_section_addr_info_from_section_table): Take a
837 target_section_table.
838 * symfile.c (build_section_addr_info_from_section_table): Take a
839 target_section_table.
840 * solist.h (struct so_list) <sections>: Change type.
841 <sections_end>: Remove.
842 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
843 (solib_contains_address_p): Update.
844 * solib-svr4.c (scan_dyntag): Update.
845 * solib-dsbt.c (scan_dyntag): Update.
846 * remote.c (remote_target::remote_xfer_live_readonly_partial):
847 Update.
848 * record-full.c (record_full_core_start, record_full_core_end):
849 Remove.
850 (record_full_core_sections): New global.
851 (record_full_core_open_1, record_full_core_target::xfer_partial):
852 Update.
853 * exec.h (build_section_table, section_table_xfer_memory_partial)
854 (add_target_sections): Take a target_section_table.
855 * exec.c (exec_file_attach, clear_section_table): Update.
856 (resize_section_table): Remove.
857 (build_section_table, add_target_sections): Take a
858 target_section_table.
859 (add_target_sections_of_objfile, remove_target_sections)
860 (exec_on_vfork): Update.
861 (section_table_available_memory): Take a target_section_table.
862 (section_table_read_available_memory): Update.
863 (section_table_xfer_memory_partial): Take a target_section_table.
864 (print_section_info, set_section_command)
865 (exec_set_section_address, exec_target::has_memory): Update.
866 * corelow.c (class core_target) <m_core_section_table,
867 m_core_file_mappings>: Remove braces.
868 <~core_target>: Remove.
869 (core_target::core_target): Update.
870 (core_target::~core_target): Remove.
871 (core_target::build_file_mappings)
872 (core_target::xfer_memory_via_mappings)
873 (core_target::xfer_partial, core_target::info_proc_mappings):
874 Update.
875 * bfd-target.c (target_bfd::xfer_partial): Update.
876 (target_bfd::target_bfd): Update.
877 (target_bfd::~target_bfd): Remove.
878
7b466b10
TT
8792020-10-12 Tom Tromey <tom@tromey.com>
880
881 * target.h (struct target_section, struct target_section_table):
882 Move to target-section.h.
883 * target-section.h: New file.
884
87a37e5e
PA
8852020-10-12 Pedro Alves <pedro@palves.net>
886
887 PR exp/26602
888 * valops.c (struct struct_field_searcher): New.
889 (update_search_result): Rename to ...
890 (struct_field_searcher::update_result): ... this. Simplify
891 prototype. Record all found fields.
892 (do_search_struct_field): Rename to ...
893 (struct_field_searcher::search): ... this. Simplify prototype.
894 Maintain stack of visited baseclass path. Call update_result for
895 fields too. Keep searching fields in baseclasses instead of
896 stopping at the first found field.
897 (search_struct_field): Use struct_field_searcher. When looking
898 for fields, report ambiguous access attempts.
899
9370fd51
AB
9002020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * frame.c (inside_main_func): Check full symbols as well as
903 minimal symbols.
904
59c8a30b
JB
9052020-10-09 Joel Brobecker <brobecker@adacore.com>
906
907 * ada-lang.c (advance_wild_match): Rewrite the function's
908 description. Change the type of target0, t0 and t1 to char.
909
7c184d33
TT
9102020-10-09 Tom Tromey <tromey@adacore.com>
911
912 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
913
5c4258f4
TT
9142020-10-09 Tom Tromey <tromey@adacore.com>
915
916 * ada-lang.h (ada_encode): Return std::string.
917 * ada-lang.c (ada_encode_1): Return std::string.
918 (ada_encode): Likewise.
919 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
920 Update.
921 * ada-exp.y (block_lookup, write_var_or_type): Update.
922
3d87245c
HD
9232020-10-09 Hannes Domani <ssbssa@yahoo.de>
924
925 PR exp/26714
926 * printcmd.c (print_formatted): Handle void results as
927 unformatted prints.
928
bbb826f5
AB
9292020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
930
931 * arch/aarch32.c (aarch32_create_target_description): Release the
932 target_desc_up as late as possible.
933 * arch/aarch64.c (aarch64_create_target_description): Likewise.
934 * arch/amd64.c (amd64_create_target_description): Likewise.
935 * arch/arc.c (arc_create_target_description): Return a
936 target_desc_up, don't release it.
937 * arch/arc.h (arc_create_target_description): Update declaration.
938 (arc_lookup_target_description): Move target_desc_up into the
939 cache, and return a borrowed pointer.
940 * arch/arm.c (arm_create_target_description): Release the
941 target_desc_up as late as possible.
942 * arch/i386.c (i386_create_target_description): Likewise.
943 * arch/riscv.h (riscv_create_target_description): Update
944 declaration to match definition.
945 * arch/tic6x.c (tic6x_create_target_description): Release the
946 target_desc_up as late as possible.
947
361cb219
AB
9482020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
949
950 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
951 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
952
f5c4b229
JV
9532020-10-09 Jan Vrany <jan.vrany@labware.com>
954
955 * source.c (directory_command): Notify observers that "directories"
956 parameter has changed.
957
b2701685
TT
9582020-10-08 Tom Tromey <tom@tromey.com>
959
960 * cli/cli-cmds.c (print_disassembly): Style function name and
961 addresses. Add _() wrappers.
962
ada508b6
SV
9632020-10-08 Shahab Vahedi <shahab@synopsys.com>
964
965 * NEWS: Mention ARC support in GDBserver.
966
51a948fd
AB
9672020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 * arch/aarch32.c (aarch32_create_target_description): Release
970 unique_ptr returned from allocate_target_description.
971 * arch/aarch64.c (aarch64_create_target_description): Likewise.
972 * arch/amd64.c (amd64_create_target_description): Likewise.
973 * arch/arc.c (arc_create_target_description): Likewise.
974 * arch/arm.c (arm_create_target_description): Likewise.
975 * arch/i386.c (i386_create_target_description): Likewise.
976 * arch/riscv.c (riscv_create_target_description): Update return
977 type. Handle allocate_target_description returning a unique_ptr.
978 (riscv_lookup_target_description): Update to handle unique_ptr.
979 * arch/tic6x.c (tic6x_create_target_description): Release
980 unique_ptr returned from allocate_target_description.
981 * features/microblaze-with-stack-protect.c: Regenerate.
982 * features/microblaze.c: Regenerate.
983 * features/mips-dsp-linux.c: Regenerate.
984 * features/mips-linux.c: Regenerate.
985 * features/mips64-dsp-linux.c: Regenerate.
986 * features/mips64-linux.c: Regenerate.
987 * features/nds32.c: Regenerate.
988 * features/nios2.c: Regenerate.
989 * features/or1k.c: Regenerate.
990 * features/rs6000/powerpc-32.c: Regenerate.
991 * features/rs6000/powerpc-32l.c: Regenerate.
992 * features/rs6000/powerpc-403.c: Regenerate.
993 * features/rs6000/powerpc-403gc.c: Regenerate.
994 * features/rs6000/powerpc-405.c: Regenerate.
995 * features/rs6000/powerpc-505.c: Regenerate.
996 * features/rs6000/powerpc-601.c: Regenerate.
997 * features/rs6000/powerpc-602.c: Regenerate.
998 * features/rs6000/powerpc-603.c: Regenerate.
999 * features/rs6000/powerpc-604.c: Regenerate.
1000 * features/rs6000/powerpc-64.c: Regenerate.
1001 * features/rs6000/powerpc-64l.c: Regenerate.
1002 * features/rs6000/powerpc-7400.c: Regenerate.
1003 * features/rs6000/powerpc-750.c: Regenerate.
1004 * features/rs6000/powerpc-860.c: Regenerate.
1005 * features/rs6000/powerpc-altivec32.c: Regenerate.
1006 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1007 * features/rs6000/powerpc-altivec64.c: Regenerate.
1008 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1009 * features/rs6000/powerpc-e500.c: Regenerate.
1010 * features/rs6000/powerpc-e500l.c: Regenerate.
1011 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1012 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1013 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1014 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1015 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1016 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1017 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1018 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1019 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1020 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1021 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1022 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1023 * features/rs6000/powerpc-vsx32.c: Regenerate.
1024 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1025 * features/rs6000/powerpc-vsx64.c: Regenerate.
1026 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1027 * features/rs6000/rs6000.c: Regenerate.
1028 * features/rx.c: Regenerate.
1029 * features/s390-gs-linux64.c: Regenerate.
1030 * features/s390-linux32.c: Regenerate.
1031 * features/s390-linux32v1.c: Regenerate.
1032 * features/s390-linux32v2.c: Regenerate.
1033 * features/s390-linux64.c: Regenerate.
1034 * features/s390-linux64v1.c: Regenerate.
1035 * features/s390-linux64v2.c: Regenerate.
1036 * features/s390-te-linux64.c: Regenerate.
1037 * features/s390-tevx-linux64.c: Regenerate.
1038 * features/s390-vx-linux64.c: Regenerate.
1039 * features/s390x-gs-linux64.c: Regenerate.
1040 * features/s390x-linux64.c: Regenerate.
1041 * features/s390x-linux64v1.c: Regenerate.
1042 * features/s390x-linux64v2.c: Regenerate.
1043 * features/s390x-te-linux64.c: Regenerate.
1044 * features/s390x-tevx-linux64.c: Regenerate.
1045 * features/s390x-vx-linux64.c: Regenerate.
1046 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1047 from allocate_target_description.
1048 * target-descriptions.c (allocate_target_description): Update
1049 return type.
1050 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1051 allocate_target_description.
1052
485c47e5
TT
10532020-10-07 Tom Tromey <tromey@adacore.com>
1054
1055 * unittests/search-memory-selftests.c: New file.
1056 * Makefile.in (SELFTESTS_SRCS): Add
1057 unittests/search-memory-selftests.c.
1058
3a135a91
TT
10592020-10-07 Tom Tromey <tromey@adacore.com>
1060
1061 PR gdb/16930:
1062 * findcmd.c (_initialize_mem_search): Mention that the range is
1063 inclusive.
1064
4a72de73
TT
10652020-10-07 Tom Tromey <tromey@adacore.com>
1066
1067 * target.h (simple_search_memory): Don't declare.
1068 * target.c (simple_search_memory): Move to gdbsupport.
1069 (default_search_memory): Update.
1070 * remote.c (remote_target::search_memory): Update.
1071
a038ffd8
SM
10722020-10-07 Simon Marchi <simon.marchi@efficios.com>
1073
1074 * Makefile.in (COMPILE): Add CXXFLAGS.
1075 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1076 (check-headers): Add CXXFLAGS.
1077
cc463201
AK
10782020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1079
1080 * arc-linux-tdep.h: New file.
1081 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1082 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1083 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1084 arc_linux_gregset, arc_linux_v2_regset,
1085 arc_linux_iterate_over_regset_sections,
1086 arc_linux_core_read_description): Implement.
1087 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1088 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1089 (arc_gdbarch_features_create): Add.
1090 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1091
e4bd363f
SV
10922020-10-07 Shahab Vahedi <shahab@synopsys.com>
1093
1094 * arch/arc.h: Rename "arc_gdbarch_features" to
1095 "arc_arch_features".
1096 * arc-tdep.h: Likewise.
1097 * arc-tdep.c: Likewise.
1098
b68bef99
TBA
10992020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1100
1101 * infcmd.c (attach_command): Remove the redundant call to
1102 `clear_proceed_status`.
1103
4641551a
KR
11042020-10-07 Kamil Rytarowski <n54@gmx.com>
1105
1106 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1107
91e5e8db
KR
11082020-10-07 Kamil Rytarowski <n54@gmx.com>
1109
1110 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1111 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1112 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1113
64c03bdb
SM
11142020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1115
1116 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1117 (_initialize_break_catch_sig): Don't allocate array.
1118
31a8f60f
AB
11192020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * symtab.c (find_pc_line): Return unmapped addresses when the
1122 requested address is also unmapped.
1123
9e6dbd8b
SM
11242020-10-05 Simon Marchi <simon.marchi@efficios.com>
1125
1126 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1127 tui/tui-out.h.
1128
a1d217e8
SM
11292020-10-05 Simon Marchi <simon.marchi@efficios.com>
1130
1131 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1132 type::is_vector instead of TYPE_VECTOR.
1133
7d144117
SM
11342020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1135
1136 * auto-load.c (auto_load_objfile_script_1): Don't use
1137 debugfile_holder as temporary variable when stripping drive
1138 letter.
1139
cd096ec8
HD
11402020-10-05 Hannes Domani <ssbssa@yahoo.de>
1141
1142 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1143 Add TYPE_CODE_COMPLEX.
1144 (amd64_windows_return_value): Fix types returned via XMM0.
1145
b58e7f72
AH
11462020-10-05 Alan Hayward <alan.hayward@arm.com>
1147
1148 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1149 AArch64/ARM maintainers.
1150
8d378f27
SM
11512020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1152
1153 * NEWS: Mention set/show debug event-loop.
1154
d5519913
TT
11552020-10-02 Tom Tromey <tromey@adacore.com>
1156
1157 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1158 REG_EXTENDED.
1159
18b67edc
SM
11602020-10-02 Simon Marchi <simon.marchi@efficios.com>
1161
1162 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1163 * procfs.c (procfs_inferior_created): Remove.
1164 (_initialize_procfs): Don't register procfs_inferior_created.
1165
6b01403b
SM
11662020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 * async-event.c (invoke_async_signal_handlers): Add debug
1169 print.
1170 (check_async_event_handlers): Likewise.
1171 * event-top.c (show_debug_event_loop): New function.
1172 (_initialize_event_top): Register "set debug event-loop"
1173 setting.
1174
ba988419
SM
11752020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1178 * debug.h: Remove.
1179 * infrun.c: Include gdbsupport/common-debug.h.
1180 * linux-nat.c: Likewise.
1181
db20ebdf
SM
11822020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1183
1184 * async-event.h (create_async_signal_handler): Add name
1185 parameter.
1186 (create_async_event_handler): Likewise.
1187 * async-event.c (struct async_signal_handler) <name>: New field.
1188 (struct async_event_handler) <name>: New field.
1189 (create_async_signal_handler): Assign name.
1190 (create_async_event_handler): Assign name.
1191 * event-top.c (async_init_signals): Pass name when creating
1192 handler.
1193 * infrun.c (_initialize_infrun): Likewise.
1194 * record-btrace.c (record_btrace_push_target): Likewise.
1195 * record-full.c (record_full_open): Likewise.
1196 * remote-notif.c (remote_notif_state_allocate): Likewise.
1197 * remote.c (remote_target::open_1): Likewise.
1198 * tui/tui-win.c (tui_initialize_win): Likewise.
1199
2554f6f5
SM
12002020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1201
1202 * async-event.c (initialize_async_signal_handlers): Pass name to
1203 add_file_handler
1204 * event-top.c (ui_register_input_event_handler): Likewise.
1205 * linux-nat.c (linux_nat_target::async): Likewise.
1206 * run-on-main-thread.c (_initialize_run_on_main_thread):
1207 Likewise
1208 * ser-base.c (reschedule): Likewise.
1209 (ser_base_async): Likewise.
1210 * tui/tui-io.c: Likewise.
1211 * top.h (struct ui) <num>: New field.
1212 * top.c (highest_ui_num): New variable.
1213 (ui::ui): Initialize num.
1214
a7aba266
SM
12152020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1216
1217 * observable.h <inferior_created>: Remove parameters. Update all
1218 listeners.
1219 * inferior.h (post_create_inferior): Remove target parameter.
1220 Update all callers.
1221
048fde1e 12222020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1223
1224 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1225 and DW_MACRO_undef_strx.
1226 (dwarf_decode_macros): Likewise
1227 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1228 which is the value of DW_AT_str_offsets_base.
1229 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1230 str_offsets_base.
1231
064280be
KR
12322020-10-01 Kamil Rytarowski <n54@gmx.com>
1233
1234 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1235
6ff33035
KR
12362020-10-01 Kamil Rytarowski <n54@gmx.com>
1237
1238 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1239 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1240
1eb6eb79
KR
12412020-10-01 Kamil Rytarowski <n54@gmx.com>
1242
1243 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1244
95eb9e54
TV
12452020-09-30 Tom de Vries <tdevries@suse.de>
1246
1247 PR symtab/26683
1248 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1249
cae21f8e
TT
12502020-09-30 Tom Tromey <tromey@adacore.com>
1251
1252 * dwarf2/read.c (handle_variant): Use constant_value.
1253
529908cb
TT
12542020-09-29 Tom Tromey <tom@tromey.com>
1255
1256 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1257 (read_file_scope, dwarf2_get_pc_bounds)
1258 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1259 (read_structure_type, handle_struct_member_die)
1260 (read_enumeration_type, read_array_type, read_set_type)
1261 (read_tag_pointer_type, read_tag_reference_type)
1262 (read_subroutine_type, read_base_type, read_subrange_type)
1263 (read_full_die_1, partial_die_info::read)
1264 (partial_die_info::read, by, new_symbol)
1265 (dwarf2_const_value_data, dwarf2_const_value_attr)
1266 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1267 (prepare_one_comp_unit): Update.
1268 * dwarf2/attribute.h (DW_UNSND): Remove.
1269
c45bc3f8
TT
12702020-09-29 Tom Tromey <tom@tromey.com>
1271
1272 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1273 (read_subroutine_type, partial_die_info::read)
1274 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1275 (dwarf2_add_member_fn): Update.
1276 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1277 * dwarf2/attribute.c (attribute::as_boolean): New method.
1278
23dca5c3
TT
12792020-09-29 Tom Tromey <tom@tromey.com>
1280
1281 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1282 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1283 method.
1284 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1285
52c14d11
TT
12862020-09-29 Tom Tromey <tom@tromey.com>
1287
1288 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1289 the attribute's form.
1290
e8e5c158
TT
12912020-09-29 Tom Tromey <tom@tromey.com>
1292
1293 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1294 (dwarf2_add_member_fn): Update.
1295 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1296 * dwarf2/attribute.c (attribute::defaulted): New method, from
1297 is_valid_DW_AT_defaulted.
1298
d4df075e
TT
12992020-09-29 Tom Tromey <tom@tromey.com>
1300
1301 * dwarf2/read.c (dw2_get_file_names_reader)
1302 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1303 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1304 (dwarf2_symbol_mark_computed): Use as_unsigned.
1305 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1306 method.
1307 <form_is_section_offset>: Update comment.
1308
bf23a268
TT
13092020-09-29 Tom Tromey <tom@tromey.com>
1310
1311 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1312 dwarf2_default_access_attribute. Look up attribute.
1313 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1314 Update.
1315
7a5f294d
TT
13162020-09-29 Tom Tromey <tom@tromey.com>
1317
1318 * dwarf2/read.c (skip_one_die): Update.
1319 (read_full_die_1): Change how reprocessing is done.
1320 (partial_die_info::read): Update.
1321 (read_attribute_value): Remove need_reprocess parameter.
1322 (read_attribute): Likewise.
1323 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1324 New method.
1325
36d378cf
TT
13262020-09-29 Tom Tromey <tom@tromey.com>
1327
1328 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1329 (dwarf2_const_value_attr, dump_die_shallow)
1330 (dwarf2_fetch_constant_bytes): Update.
1331 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1332 comment.
1333 <set_address>: New method.
1334 (DW_ADDR): Remove.
1335 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1336 (attribute::as_string, attribute::as_address): Add assert.
1337
fe56917a
TT
13382020-09-29 Tom Tromey <tom@tromey.com>
1339
1340 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1341 (read_attribute_reprocess, read_attribute_value): Update.
1342 (read_attribute): Clear requires_reprocessing.
1343 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1344 form_requires_reprocessing>: New methods.
1345 <string_init>: Clear requires_reprocessing.
1346 <set_unsigned_reprocess>: New method.
1347 <name>: Shrink by one bit.
1348 <requires_reprocessing>: New member.
1349 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1350 method.
1351
414ad644
TT
13522020-09-29 Tom Tromey <tom@tromey.com>
1353
1354 * dwarf2/read.c (read_attribute_value): Update.
1355 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1356 set_unsigned>: New methods.
1357 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1358
1bc397c5
TT
13592020-09-29 Tom Tromey <tom@tromey.com>
1360
1361 * dwarf2/read.c (get_alignment, read_array_order)
1362 (read_attribute_value, dwarf2_const_value_attr)
1363 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1364 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1365 New methods.
1366 (DW_SND): Remove.
1367
630ed6b9
TT
13682020-09-29 Tom Tromey <tom@tromey.com>
1369
1370 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1371 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1372 Update.
1373 * dwarf2/attribute.h (struct attribute) <as_signature,
1374 set_signature>: New methods.
1375 (DW_SIGNATURE): Remove.
1376
9d2246fc
TT
13772020-09-29 Tom Tromey <tom@tromey.com>
1378
1379 * dwarf2/read.c (read_call_site_scope)
1380 (handle_data_member_location, dwarf2_add_member_fn)
1381 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1382 (partial_die_info::read, read_attribute_value)
1383 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1384 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1385 (dwarf2_symbol_mark_computed): Update.
1386 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1387 methods.
1388 (DW_BLOCK): Remove.
1389 * dwarf2/attribute.c (attribute::form_is_block): Add
1390 DW_FORM_data16.
1391
c6481205
TT
13922020-09-29 Tom Tromey <tom@tromey.com>
1393
1394 * dwarf2/read.c (read_cutu_die_from_dwo)
1395 (read_attribute_reprocess, read_attribute_value, read_attribute)
1396 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1397 (dwarf2_fetch_constant_bytes): Update.
1398 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1399 <set_string_noncanonical, set_string_canonical>: New methods.
1400 <string_is_canonical>: Update comment.
1401 <canonical_string_p>: Add assert.
1402 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1403 * dwarf2/attribute.c (attribute::form_is_string): New method.
1404 (attribute::string): Use it.
1405
3b64bf15
TT
14062020-09-29 Tom Tromey <tom@tromey.com>
1407
1408 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1409 (dump_die_shallow): Use canonical_string_p.
1410 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1411 method.
1412
2c830f54
TT
14132020-09-29 Tom Tromey <tom@tromey.com>
1414
1415 * dwarf2/read.c (partial_die_info::read)
1416 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1417 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1418 attribute::as_string.
1419
6c412691
TT
14202020-09-29 Tom Tromey <tom@tromey.com>
1421
1422 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1423 DW_ADDR.
1424 (attribute::string): Don't use DW_STRING.
1425 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1426 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1427
95f982e5
TT
14282020-09-29 Tom Tromey <tom@tromey.com>
1429
1430 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1431 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1432 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1433 * dwarf2/attribute.h (struct attribute): Rename methods.
1434 * dwarf2/attribute.c (attribute::as_address): Rename from
1435 value_as_address.
1436 (attribute::as_string): Rename from value_as_string.
1437
f800b00e
TT
14382020-09-29 Tom Tromey <tom@tromey.com>
1439
1440 * dwarf2/read.c (partial_die_info::read) <case
1441 DW_AT_linkage_name>: Use value_as_string.
1442 (dwarf2_string_attr): Use value_as_string.
1443 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1444 method.
1445 * dwarf2/attribute.c (attribute::value_as_string): New method.
1446
de38d64a
PA
14472020-09-29 Pedro Alves <pedro@palves.net>
1448
1449 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1450 defined before using '#pragma GCC diagnostic' instead of checking
1451 __clang__.
1452
9aed480c
TT
14532020-09-28 Tom Tromey <tom@tromey.com>
1454
1455 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1456 (handle_signal_stop): Update.
1457 * procfs.c (procfs_target::insert_watchpoint): Update.
1458 * target.h (target_have_steppable_watchpoint): Now a function.
1459
8a3ecb79
TT
14602020-09-28 Tom Tromey <tom@tromey.com>
1461
1462 * infrun.c (set_schedlock_func): Update.
1463 * target.h (target_can_lock_scheduler): Now a function.
1464
55f6301a
TT
14652020-09-28 Tom Tromey <tom@tromey.com>
1466
1467 * inferior.h (class inferior) <has_execution>: Update.
1468 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1469 * valops.c (find_function_in_inferior)
1470 (value_allocate_space_in_inferior): Update.
1471 * top.c (kill_or_detach): Update.
1472 * target.c (target_preopen, set_target_permissions): Update.
1473 (target_has_execution_current): Remove.
1474 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1475 Update.
1476 * solib.c (update_solib_list, reload_shared_libraries): Update.
1477 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1478 * solib-dsbt.c (enable_break): Update.
1479 * score-tdep.c (score7_fetch_inst): Update.
1480 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1481 Update.
1482 * remote.c (remote_target::start_remote)
1483 (remote_target::remote_check_symbols, remote_target::open_1)
1484 (remote_target::remote_detach_1, remote_target::verify_memory)
1485 (remote_target::xfer_partial, remote_target::read_description)
1486 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1487 * record-full.c (record_full_open_1): Update.
1488 * record-btrace.c (record_btrace_target_open): Update.
1489 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1490 (value_nsstring): Update.
1491 * linux-thread-db.c (add_thread_db_info)
1492 (thread_db_find_new_threads_silently, check_thread_db_callback)
1493 (try_thread_db_load_1, record_thread): Update.
1494 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1495 Update.
1496 * linux-fork.c (checkpoint_command): Update.
1497 * infrun.c (set_non_stop, set_observer_mode)
1498 (check_multi_target_resumption, for_each_just_stopped_thread)
1499 (maybe_remove_breakpoints, normal_stop)
1500 (class infcall_suspend_state): Update.
1501 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1502 (info_program_command, attach_command): Update.
1503 * infcall.c (call_function_by_hand_dummy): Update.
1504 * inf-loop.c (inferior_event_handler): Update.
1505 * gcore.c (gcore_command, derive_heap_segment): Update.
1506 * exec.c (exec_file_command): Update.
1507 * eval.c (evaluate_subexp): Update.
1508 * compile/compile.c (compile_to_object): Update.
1509 * cli/cli-dump.c (restore_command): Update.
1510 * breakpoint.c (update_watchpoint)
1511 (update_inserted_breakpoint_locations)
1512 (insert_breakpoint_locations, get_bpstat_thread): Update.
1513 * target.h (target_has_execution): Remove macro.
1514 (target_has_execution_current): Don't declare.
1515 (target_has_execution): Rename from target_has_execution_1. Add
1516 argument default.
1517
05374cfd
TT
15182020-09-28 Tom Tromey <tom@tromey.com>
1519
1520 * mi/mi-main.c (exec_reverse_continue)
1521 (mi_cmd_list_target_features): Update.
1522 * infrun.c (set_exec_direction_func): Update.
1523 * target.c (default_execution_direction): Update.
1524 * reverse.c (exec_reverse_once): Update.
1525 * target.h (target_can_execute_reverse): Now a function.
1526
9dccd06e
TT
15272020-09-28 Tom Tromey <tom@tromey.com>
1528
1529 * tui/tui-regs.c (tui_get_register)
1530 (tui_data_window::show_registers): Update.
1531 * thread.c (scoped_restore_current_thread::restore)
1532 (scoped_restore_current_thread::scoped_restore_current_thread):
1533 Update.
1534 * regcache-dump.c (regcache_print): Update.
1535 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1536 Update.
1537 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1538 * mep-tdep.c (current_me_module, current_options): Update.
1539 * linux-thread-db.c (thread_db_load): Update.
1540 * infcmd.c (registers_info, info_vector_command)
1541 (info_float_command): Update.
1542 * ia64-tdep.c (ia64_frame_prev_register)
1543 (ia64_sigtramp_frame_prev_register): Update.
1544 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1545 * gcore.c (derive_stack_segment): Update.
1546 * frame.c (get_current_frame, has_stack_frames): Update.
1547 * findvar.c (language_defn::read_var_value): Update.
1548 * arm-tdep.c (arm_pc_is_thumb): Update.
1549 * target.c (target_has_registers): Rename from
1550 target_has_registers_1.
1551 * target.h (target_has_registers): Remove macro.
1552 (target_has_registers): Rename from target_has_registers_1.
1553
841de120
TT
15542020-09-28 Tom Tromey <tom@tromey.com>
1555
1556 * windows-tdep.c (tlb_make_value): Update.
1557 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1558 * thread.c (scoped_restore_current_thread::restore)
1559 (scoped_restore_current_thread::scoped_restore_current_thread)
1560 (thread_command): Update.
1561 * stack.c (backtrace_command_1, frame_apply_level_command)
1562 (frame_apply_all_command, frame_apply_command): Update.
1563 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1564 Update.
1565 * gcore.c (derive_stack_segment): Update.
1566 * frame.c (get_current_frame, has_stack_frames): Update.
1567 * auxv.c (info_auxv_command): Update.
1568 * ada-tasks.c (ada_build_task_list): Update.
1569 * target.c (target_has_stack): Rename from target_has_stack_1.
1570 * target.h (target_has_stack): Remove macro.
1571 (target_has_stack): Rename from target_has_stack_1.
1572
a739972c
TT
15732020-09-28 Tom Tromey <tom@tromey.com>
1574
1575 * target.c (target_has_memory): Rename from target_has_memory_1.
1576 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1577 * thread.c (scoped_restore_current_thread::restore)
1578 (scoped_restore_current_thread::scoped_restore_current_thread):
1579 Update.
1580 * frame.c (get_current_frame, has_stack_frames): Update.
1581 * target.h (target_has_memory): Remove macro.
1582 (target_has_memory): Rename from target_has_memory_1.
1583
5b8a4776
TT
15842020-09-28 Tom Tromey <tom@tromey.com>
1585
1586 * target.c (target_has_all_memory_1): Remove.
1587 * target.h (target_has_all_memory): Remove define.
1588 (target_has_all_memory_1): Don't declare.
1589
bd356ec6
SM
15902020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1591
1592 * ser-base.c: Adjust comments formatting.
1593
2c72d5e5
TT
15942020-09-27 Tom Tromey <tom@tromey.com>
1595
1596 PR tui/25342:
1597 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1598
35a98237
TT
15992020-09-27 Tom Tromey <tom@tromey.com>
1600
1601 PR tui/25342:
1602 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1603
9e820dec
TT
16042020-09-27 Tom Tromey <tom@tromey.com>
1605
1606 * unittests/tui-selftests.c: Update.
1607 * tui/tui-winsource.h (struct tui_source_window_base)
1608 <extra_margin, show_line_number, refresh_pad>: New methods.
1609 <m_max_length, m_pad>: New members.
1610 (tui_copy_source_line): Update.
1611 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1612 first_col, line_width, ndigits parameters. Add length.
1613 (tui_source_window_base::show_source_line): Write to pad. Line
1614 number now 0-based.
1615 (tui_source_window_base::refresh_pad): New method.
1616 (tui_source_window_base::show_source_content): Write to pad. Call
1617 refresh_pad.
1618 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1619 not refill.
1620 (tui_source_window_base::update_exec_info): Call
1621 show_line_number.
1622 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1623 method.
1624 <m_digits>: New member.
1625 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1626 and m_max_length.
1627 (tui_source_window::show_line_number): New method.
1628 * tui/tui-io.h (tui_puts): Fix comment.
1629 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1630 m_max_length.
1631
c15c15c8
TT
16322020-09-27 Tom Tromey <tom@tromey.com>
1633
1634 * tui/tui-winsource.c
1635 (tui_source_window_base::set_is_exec_point_at): Don't call
1636 show_source_line.
1637
149830c1
TT
16382020-09-27 Tom Tromey <tom@tromey.com>
1639
1640 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1641 method.
1642 <erase>: Update.
1643 <cursor_x, cursor_y>: Remove.
1644 <m_inner_window>: New member.
1645 (tui_py_window::rerender): Create inner window.
1646 (tui_py_window::output): Write to inner window.
1647
8f9929bb
GR
16482020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1649
1650 PR python/26586
1651 * cli/cli-script.c (execute_control_commands): don't set
1652 instream to nullptr here as this breaks the from_tty argument
1653 to gdb.execute in Python.
1654 (execute_user_command): set instream to nullptr here instead.
1655
956bdb59
SM
16562020-09-25 Simon Marchi <simon.marchi@efficios.com>
1657
1658 * infrun.h (infrun_debug_printf): Fix formatting.
1659 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1660
3b93626b
SJ
16612020-09-25 Saagar Jha <saagar@saagarjha.com>
1662
1663 * compile/compile-object-load.h (struct munmap_list): Add
1664 explicitly-defined move constructor.
1665
b551a89f
TT
16662020-09-24 Tom Tromey <tromey@adacore.com>
1667
1668 PR tui/26638:
1669 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1670 method.
1671 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1672 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1673 (tui_prev_win): Rewrite.
1674
99bb393f
HD
16752020-09-23 Hannes Domani <ssbssa@yahoo.de>
1676
1677 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1678 in WOW64 processes as SIGINT.
1679 * nat/windows-nat.h: Make wow64_process a shared variable.
1680 * windows-nat.c: Remove static wow64_process variable.
1681
20a5fcbd
TT
16822020-09-23 Tom Tromey <tom@tromey.com>
1683
1684 PR symtab/25470:
1685 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1686 offset and bit size.
1687 * printcmd.c (print_scalar_formatted): Handle zero-length
1688 integer.
1689 (print_scalar_formatted): Use bit_size_differs_p.
1690 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1691 constant.
1692 (union type_specific): <int_stuff>: New member.
1693 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1694 methods.
1695 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1696 TYPE_SPECIFIC_FIELD.
1697 (recursive_dump_type, copy_type_recursive): Update.
1698 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1699 DW_AT_data_bit_offset.
1700
bac51ab7
TT
17012020-09-23 Tom Tromey <tom@tromey.com>
1702
1703 * utils.h (class gdb_argv): Add move operators.
1704 <append>: New methods.
1705 * compile/compile.c (build_argc_argv): Remove.
1706 (compile_args_argc): Remove.
1707 (compile_args_argv): Change type.
1708 (set_compile_args): Simplify.
1709 (append_args): Remove.
1710 (filter_args): Remove argcp parameter.
1711 (get_args): Return gdb_argv. Simplify.
1712 (compile_to_object): Update.
1713
92677124
TT
17142020-09-23 Tom Tromey <tom@tromey.com>
1715
1716 * compile/compile-object-run.c (do_module_cleanup)
1717 <~do_module_cleanup> :Remove.
1718 (do_module_cleanup): Update.
1719 * compile/compile-object-load.h (struct munmap_list): Add move
1720 assignment operator.
1721 <source_file>: Now a std::string.
1722 <munmap_list>: Rename. No longer a pointer.
1723 * compile/compile-object-load.c (struct setup_sections_data): Add
1724 constructor.
1725 <setup_one_section>: Declare.
1726 <munmap_list>: Move earlier.
1727 <m_bfd>: New member.
1728 <m_last_size, m_last_section_first, m_last_prot,
1729 m_last_max_alignment>: Rename, add initializers where needed.
1730 (setup_sections_data::setup_one_section): Rename from
1731 setup_sections. Update.
1732 (compile_object_load): Update. Don't use bfd_map_over_sections.
1733
e616f60a
TT
17342020-09-23 Tom Tromey <tom@tromey.com>
1735
1736 * compile/compile-object-run.c (struct do_module_cleanup): Add
1737 parameters to constructor. Update destructor.
1738 <source_file, scope, scope_data, out_value_type, out_value_addr,
1739 munmap_list_head, objfile_name_string>: Remove.
1740 <module>: New member.
1741 (do_module_cleanup): Update.
1742 (compile_object_run): Update.
1743
e947a848
TT
17442020-09-23 Tom Tromey <tom@tromey.com>
1745
1746 * compile/compile.c (eval_compile_command): Update.
1747 * compile/compile-object-run.h (compile_object_run): Take a
1748 compile_module_up.
1749 * compile/compile-object-run.c (compile_object_run): Take a
1750 compile_module_up.
1751 * compile/compile-object-load.h (struct compile_module): Add
1752 constructor, destructor.
1753 (compile_module_up): New typedef.
1754 (compile_object_load): Return compile_object_up.
1755 * compile/compile-object-load.c (compile_object_load): Return
1756 compile_module_up.
1757
0dbf6ee6
TT
17582020-09-23 Tom Tromey <tom@tromey.com>
1759
1760 * compile/compile-object-run.c (struct do_module_cleanup): Add
1761 constructor, destructor.
1762 <objfile_name_string>: Don't use struct hack.
1763 (do_module_cleanup): Use delete.
1764 (compile_object_run): Use new.
1765
ebe824f5
TT
17662020-09-23 Tom Tromey <tom@tromey.com>
1767
1768 * compile/compile-cplus-types.c
1769 (compile_cplus_convert_struct_or_union): Use std::vector.
1770 (compile_cplus_convert_func): Likewise.
1771 * compile/compile-c-types.c (convert_func): Use std::vector.
1772
5dd918d9
TT
17732020-09-21 Tom Tromey <tromey@adacore.com>
1774
1775 * sparc-tdep.c (sparc32_skip_prologue): Use
1776 skip_prologue_using_sal.
1777
5486c517
TT
17782020-09-19 Tom Tromey <tom@tromey.com>
1779
1780 * symfile.c (add_section_size_callback): Remove.
1781 (load_one_section): Rename from load_section_callback. Change
1782 parameters.
1783 (generic_load): Use foreach.
1784
8a6bb1d1
TT
17852020-09-19 Tom Tromey <tom@tromey.com>
1786
1787 * exec.c (add_to_section_table): Remove.
1788 (build_section_table): Use foreach.
1789
08f93a1a
TT
17902020-09-19 Tom Tromey <tom@tromey.com>
1791
1792 * elfread.c (elf_locate_sections): Change parameters.
1793 (elf_symfile_read): Use foreach.
1794
03cd72b8
TT
17952020-09-19 Tom Tromey <tom@tromey.com>
1796
1797 * cli/cli-dump.c (struct callback_data): Remove.
1798 (restore_one_section): Rename from restore_section_callback.
1799 Change parameters.
1800 (restore_binary_file): Change parameters.
1801 (restore_command): Use foreach.
1802
f4f2b85f
TT
18032020-09-19 Tom Tromey <tom@tromey.com>
1804
1805 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1806 (gcore_copy_callback): Likewise.
1807 (gcore_memory_sections): Use foreach.
1808
b35c1d1c
TT
18092020-09-19 Tom Tromey <tom@tromey.com>
1810
1811 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1812 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1813 parameters.
1814 (generic_elf_osabi_sniffer): Use foreach.
1815 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1816 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1817
5bb6e9dd
TT
18182020-09-19 Tom Tromey <tom@tromey.com>
1819
1820 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1821 (dwarf2_get_dwz_file): Use foreach.
1822 (dwarf2_locate_dwo_sections): Change parameters.
1823 (open_and_init_dwo_file): Use foreach.
1824 (dwarf2_locate_common_dwp_sections): Change parameters.
1825 (open_and_init_dwp_file): Use foreach.
1826
ad7277da
TT
18272020-09-19 Tom Tromey <tom@tromey.com>
1828
1829 * symfile.h: (find_lowest_section): Don't declare.
1830 * symfile.c (find_lowest_section): Now static. Change
1831 parameters.
1832 (struct place_section_arg): Remove.
1833 (place_section): Change parameters.
1834 (addr_info_make_relative): Use foreach.
1835 (symfile_dummy_outputs): Remove.
1836 (default_symfile_relocate): Use foreach.
1837
cb814f2e
TT
18382020-09-19 Tom Tromey <tom@tromey.com>
1839
1840 * objfiles.c (add_to_objfile_sections): Rename from
1841 add_to_objfile_sections_full.
1842 (add_to_objfile_sections): Remove.
1843 (build_objfile_section_table): Use foreach.
1844
3cabfd26
TT
18452020-09-19 Tom Tromey <tom@tromey.com>
1846
1847 * stap-probe.c (get_stap_base_address_1): Remove.
1848 (get_stap_base_address): Use foreach.
1849
1ce51eb5
TT
18502020-09-19 Tom Tromey <tom@tromey.com>
1851
1852 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1853 parameters.
1854 (gdb_bfd_close_or_warn): Use foreach.
1855
a190fabb
TT
18562020-09-19 Tom Tromey <tom@tromey.com>
1857
1858 * corelow.c (add_to_thread_list): Change parameters.
1859 (core_target_open): Use foreach.
1860
cafb0d81
TT
18612020-09-19 Tom Tromey <tom@tromey.com>
1862
1863 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1864 existing function.
1865
c8d5abea
AB
18662020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1867
1868 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1869 for arrays.
1870
6d816919
AB
18712020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1872
1873 * eval.c: Remove 'f-lang.h' include.
1874 (value_f90_subarray): Moved to f-lang.c.
1875 (eval_call): Renamed to...
1876 (evaluate_subexp_do_call): ...this, is no longer static, header
1877 comment moved into header file.
1878 (evaluate_funcall): Update call to eval_call.
1879 (skip_undetermined_arglist): Moved to f-lang.c.
1880 (fortran_value_subarray): Likewise.
1881 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1882 moved to evaluate_subexp_f.
1883 (calc_f77_array_dims): Moved to f-lang.c
1884 * expprint.c (print_subexp_funcall): New function.
1885 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1886 moved to print_subexp_f, OP_FUNCALL uses new function.
1887 (dump_subexp_body_funcall): New function.
1888 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1889 moved to dump_subexp_f, OP_FUNCALL uses new function.
1890 * expression.h (evaluate_subexp_do_call): Declare.
1891 * f-lang.c (value_f90_subarray): Moved from eval.c.
1892 (skip_undetermined_arglist): Likewise.
1893 (calc_f77_array_dims): Likewise.
1894 (fortran_value_subarray): Likewise.
1895 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1896 (operator_length_f): Likewise.
1897 (print_subexp_f): Likewise.
1898 (dump_subexp_body_f): Likewise.
1899 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1900 declaration of this operation to here.
1901 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1902 support moved to operator_length_f.
1903 * parser-defs.h (dump_subexp_body_funcall): Declare.
1904 (print_subexp_funcall): Declare.
1905 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1906 fortran-operator.def.
1907
8c37706a
AB
19082020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * eval.c (fortran_value_subarray): New function, content is taken
1911 from...
1912 (evaluate_subexp_standard): ...here, in two places. Now arrays
1913 and strings both call the new function.
1914 (calc_f77_array_dims): Add header comment, handle strings.
1915
14f9473c
VC
19162020-09-18 Victor Collod <vcollod@nvidia.com>
1917
1918 PR gdb/26635
1919 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1920 (i386_analyze_prologue): Call i386_skip_endbr.
1921
b60cea74
TT
19222020-09-18 Tom Tromey <tromey@adacore.com>
1923
1924 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1925 (windows_nat_target::wait): Update.
1926 * target/wait.h (enum target_wait_flag): New. Use
1927 DEF_ENUM_FLAGS_TYPE.
1928 * target/target.h (target_wait): Change type of options.
1929 * target.h (target_options_to_string, default_target_wait):
1930 Update.
1931 (struct target_ops) <wait>: Change type of options.
1932 * target.c (target_wait, default_target_wait, do_option): Change
1933 type of "options".
1934 (target_options_to_string): Likewise.
1935 * target-delegates.c: Rebuild.
1936 * target-debug.h (target_debug_print_target_wait_flags): Rename
1937 from target_debug_print_options.
1938 * sol-thread.c (class sol_thread_target) <wait>: Update.
1939 (sol_thread_target::wait): Update.
1940 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1941 (rs6000_nat_target::wait): Update.
1942 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1943 Update.
1944 (remote_target::wait_ns, remote_target::wait_as): Change type of
1945 "options".
1946 (remote_target::wait): Update.
1947 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1948 (gdbsim_target::wait): Update.
1949 * record-full.c (class record_full_base_target) <wait>: Update.
1950 (record_full_wait_1): Change type of "options".
1951 (record_full_base_target::wait): Update.
1952 * record-btrace.c (class record_btrace_target) <wait>: Update.
1953 (record_btrace_target::wait): Update.
1954 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1955 Update.
1956 (ravenscar_thread_target::wait): Update.
1957 * procfs.c (class procfs_target) <wait>: Update.
1958 (procfs_target::wait): Update.
1959 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1960 * obsd-nat.c (obsd_nat_target::wait): Update.
1961 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1962 (nto_procfs_target::wait): Update.
1963 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1964 * nbsd-nat.c (nbsd_wait): Change type of "options".
1965 (nbsd_nat_target::wait): Update.
1966 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1967 (thread_db_target::wait): Update.
1968 * linux-nat.h (class linux_nat_target) <wait>: Update.
1969 * linux-nat.c (linux_nat_target::wait): Update.
1970 (linux_nat_wait_1): Update.
1971 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1972 "options".
1973 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1974 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1975 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1976 (go32_nat_target::wait): Update.
1977 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1978 * gnu-nat.c (gnu_nat_target::wait): Update.
1979 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1980 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1981 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1982 * darwin-nat.c (darwin_nat_target::wait): Update.
1983 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1984 (bsd_uthread_target::wait): Update.
1985 * aix-thread.c (class aix_thread_target) <wait>: Update.
1986 (aix_thread_target::wait): Update.
1987
0295dde6
AB
19882020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * compile/compile-object-run.c (create_copied_type_recursive): New
1991 function.
1992 (compile_object_run): Use new function.
1993
d3483b43
JT
19942020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1995
1996 * NEWS: Mention x86_64 Cygwin core file support.
1997
e7d612ad
JT
19982020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1999
2000 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2001 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2002
aff9d387
JT
20032020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2004
62a5151b
JT
2005 * windows-tdep.h: Add prototypes.
2006 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2007 (i386_windows_core_pid_to_str): Move and rename ...
2008 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2009 (windows_core_pid_to_str): ... and here.
2010 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2011
20122020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2013 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2014 (amd64_windows_init_abi_common): ... and register.
2015
7d155da3
JT
20162020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2017
2018 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2019 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2020
e8ef12b9
PA
20212020-09-18 Pedro Alves <pedro@palves.net>
2022
2023 PR gdb/26631
2024 * thread.c (thread_find_command): Switch inferior before calling
2025 target methods.
2026
c1e1314d
TT
20272020-09-17 Tom Tromey <tromey@adacore.com>
2028
2029 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2030 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2031 (tdesc_arch_data_up): New typedef.
2032 (tdesc_use_registers, tdesc_data_alloc): Update.
2033 (tdesc_data_cleanup): Don't declare.
2034 * target-descriptions.c (tdesc_data_alloc): Return a
2035 tdesc_arch_data_up.
2036 (tdesc_arch_data_deleter::operator()): Rename from
2037 tdesc_data_cleanup. Change argument type.
2038 (tdesc_use_registers): Change early_data to an rvalue reference.
2039 (tdesc_use_registers): Don't use delete.
2040 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2041 * s390-tdep.c (s390_gdbarch_init): Update.
2042 * rx-tdep.c (rx_gdbarch_init): Update.
2043 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2044 * riscv-tdep.c (riscv_gdbarch_init): Update.
2045 * or1k-tdep.c (or1k_gdbarch_init): Update.
2046 * nios2-tdep.c (nios2_gdbarch_init): Update.
2047 * nds32-tdep.c (nds32_gdbarch_init): Update.
2048 * mips-tdep.c (mips_gdbarch_init): Update.
2049 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2050 * m68k-tdep.c (m68k_gdbarch_init): Update.
2051 * i386-tdep.c (i386_gdbarch_init): Update.
2052 * arm-tdep.c (arm_gdbarch_init): Update.
2053 * arc-tdep.c (arc_tdesc_init): Update.
2054 (arc_gdbarch_init): Update.
2055 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2056
0363df3d
HD
20572020-09-17 Hannes Domani <ssbssa@yahoo.de>
2058
2059 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2060 for WOW64 processes.
2061
280a9412
TT
20622020-09-17 Tom Tromey <tom@tromey.com>
2063
2064 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2065
6108fd18
TT
20662020-09-17 Tom Tromey <tom@tromey.com>
2067
2068 * value.c (preserve_values): Update.
2069 * python/py-type.c (save_objfile_types): Update.
2070 * guile/scm-type.c (save_objfile_types): Update.
2071 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2072 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2073 * compile/compile-object-run.c (compile_object_run): Update.
2074
fa9b1164
TT
20752020-09-17 Tom Tromey <tom@tromey.com>
2076
2077 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2078 Remove.
2079 <m_table>: Now htab_up.
2080 * typeprint.c (typedef_hash_table::recursively_update)
2081 (typedef_hash_table::add_template_parameters)
2082 (typedef_hash_table::typedef_hash_table): Update.
2083 (typedef_hash_table::~typedef_hash_table): Remove.
2084 (typedef_hash_table::typedef_hash_table)
2085 (typedef_hash_table::find_global_typedef)
2086 (typedef_hash_table::find_typedef): Update.
2087
eb53f105
TT
20882020-09-17 Tom Tromey <tom@tromey.com>
2089
2090 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2091
7a8a5d47
TT
20922020-09-17 Tom Tromey <tom@tromey.com>
2093
2094 * linespec.c (class decode_compound_collector)
2095 <~decode_compound_collector>: Remove.
2096 <m_unique_syms>: Now htab_up.
2097 (decode_compound_collector::operator ()): Update.
2098 (class symtab_collector) <~symtab_collector>: Remove.
2099 <m_symtab_table>: Now htab_up.
2100 (symtab_collector::operator ()): Update.
2101
99032cfc
TT
21022020-09-17 Tom Tromey <tom@tromey.com>
2103
2104 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2105 (filename_seen_cache::clear): Update.
2106 (~filename_seen_cache): Remove.
2107 (filename_seen_cache::seen): Update.
2108 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2109 htab_up.
2110 <~filename_seen_cache>: Remove.
2111 <traverse>: Update.
2112
32580f6d
TT
21132020-09-17 Tom Tromey <tom@tromey.com>
2114
2115 * completer.c (completion_tracker::discard_completions)
2116 (completion_tracker::~completion_tracker)
2117 (completion_tracker::maybe_add_completion)
2118 (completion_tracker::remove_completion)
2119 (completion_tracker::recompute_lowest_common_denominator)
2120 (completion_tracker::build_completion_result): Update.
2121 * completer.h (class completion_tracker) <have_completions>:
2122 Update.
2123 <m_entries_hash>: Now htab_up.
2124
c1fb9836
TT
21252020-09-17 Tom Tromey <tom@tromey.com>
2126
2127 * breakpoint.c (ambiguous_names_p): Use htab_up.
2128
88f07206
TT
21292020-09-17 Tom Tromey <tom@tromey.com>
2130
2131 * auto-load.c (struct auto_load_pspace_info)
2132 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2133 <loaded_script_files, loaded_script_texts>: Change type to
2134 htab_up.
2135 (~auto_load_pspace_info) Remove.
2136 (init_loaded_scripts_info, maybe_add_script_file)
2137 (maybe_add_script_text, auto_load_info_scripts): Update.
2138
9519b2ee
TT
21392020-09-17 Tom Tromey <tromey@adacore.com>
2140
2141 * c-exp.y (name_obstack): Now static.
2142
d2cd4113
CC
21432020-09-17 Chungyi Chi <demonic@csie.io>
2144
2145 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2146
b650a282
SM
21472020-09-16 Simon Marchi <simon.marchi@efficios.com>
2148
2149 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2150 (add_solib_catchpoint): Likewise.
2151 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2152 to bool.
2153 (add_solib_catchpoint): Change int parameter/variable to bool.
2154 (catch_load_or_unload): Likewise.
2155 (init_catchpoint): Likewise.
2156 (create_fork_vfork_event_catchpoint): Likewise.
2157 (catch_fork_command_1): Likewise.
2158 (catch_exec_command_1): Likewise.
2159
4d0bcfcf
SM
21602020-09-16 Simon Marchi <simon.marchi@efficios.com>
2161
2162 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2163 Change instance_flags to m_instance_flags.
2164
fe830662
TT
21652020-09-16 Tom Tromey <tromey@adacore.com>
2166
2167 PR gdb/26598:
2168 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2169
fe5ddfc3
JB
21702020-09-16 John Baldwin <jhb@FreeBSD.org>
2171
2172 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2173 PL_FLAG_EXEC.
2174 (fbsd_nat_target::insert_exec_catchpoint)
2175 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2176 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2177 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2178
e911c666
JB
21792020-09-16 John Baldwin <jhb@FreeBSD.org>
2180
2181 * configure.ac: Remove check for kinfo_getvmmap().
2182 * configure, config.in: Regenerate.
2183 * fbsd-nat.c (fbsd_read_mapping): Remove
2184 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2185 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2186 kinfo_get_vmmap() are always present.
2187
1f17d372
JB
21882020-09-16 John Baldwin <jhb@FreeBSD.org>
2189
2190 * fbsd-nat.c: Always include support for
2191 TARGET_OBJECT_SIGNAL_INFO.
2192
bcb1da7f
JB
21932020-09-16 John Baldwin <jhb@FreeBSD.org>
2194
2195 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2196 sysctl and remove procfs fallback.
2197
5515f729
JB
21982020-09-16 John Baldwin <jhb@FreeBSD.org>
2199
2200 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2201 * fbsd-nat.h: Likewise.
2202
da1df1db
TBA
22032020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2204
2205 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2206 argument.
2207
0e25e767
AB
22082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2209
2210 * ada-lang.c (ada_language_data): Delete.
2211 (ada_language): Remove references to ada_language_data.
2212 * c-lang.c (c_language_data): Delete.
2213 (c_language): Remove references to c_language_data.
2214 (cplus_language_data): Delete.
2215 (cplus_language): Remove references to cplus_language_data.
2216 (asm_language_data): Delete.
2217 (asm_language): Remove references to asm_language_data.
2218 (minimal_language_data): Delete.
2219 (minimal_language): Remove references to minimal_language_data.
2220 * d-lang.c (d_language_data): Delete.
2221 (d_language): Remove references to d_language_data.
2222 * f-lang.c (f_language_data): Delete.
2223 (f_language): Remove references to f_language_data.
2224 * go-lang.c (go_language_data): Delete.
2225 (go_language): Remove references to go_language_data.
2226 * language.c (unknown_language_data): Delete.
2227 (unknown_language): Remove references to unknown_language_data.
2228 (auto_language_data): Delete.
2229 (auto_language): Remove references to auto_language_data.
2230 * language.h (language_data): Delete struct.
2231 (language_defn): No longer inherit from language_data.
2232 * m2-lang.c (m2_language_data): Delete.
2233 (m2_language): Remove references to m2_language_data.
2234 * objc-lang.c (objc_language_data): Delete.
2235 (objc_language): Remove references to objc_language_data.
2236 * opencl-lang.c (opencl_language_data): Delete.
2237 (opencl_language): Remove references to opencl_language_data.
2238 * p-lang.c (pascal_language_data): Delete.
2239 (pascal_language): Remove references to pascal_language_data.
2240 * rust-lang.c (rust_language_data): Delete.
2241 (rust_language): Remove references to rust_language_data.
2242
b7c6e27d
AB
22432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2246 initializer.
2247 (ada_language::opcode_print_table): New member function.
2248 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2249 (c_language::opcode_print_table): New member function.
2250 (cplus_language_data): Remove la_op_print_tab initializer.
2251 (cplus_language::opcode_print_table): New member function.
2252 (asm_language_data): Remove la_op_print_tab initializer.
2253 (asm_language::opcode_print_table): New member function.
2254 (minimal_language_data): Remove la_op_print_tab initializer.
2255 (minimal_language::opcode_print_table): New member function.
2256 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2257 (d_language::opcode_print_table): New member function.
2258 * expprint.c (print_subexp_standard): Update call to
2259 opcode_print_table.
2260 (op_string): Likewise.
2261 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2262 (f_language::opcode_print_table): New member function.
2263 * go-lang.c (go_language_data): Remove la_op_print_tab
2264 initializer.
2265 (go_language::opcode_print_table): New member function.
2266 * language.c (unknown_language_data): Remove la_op_print_tab
2267 initializer.
2268 (unknown_language::opcode_print_table): New member function.
2269 (auto_language_data): Remove la_op_print_tab initializer.
2270 (auto_language::opcode_print_table): New member function.
2271 * language.h (language_data): Remove la_op_print_tab field.
2272 (language_defn::opcode_print_table): Declare new member function.
2273 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2274 initializer.
2275 (m2_language::opcode_print_table): New member function.
2276 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2277 initializer.
2278 (objc_language::opcode_print_table): New member function.
2279 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2280 initializer.
2281 (opencl_language::opcode_print_table): New member function.
2282 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2283 initializer.
2284 (pascal_language::opcode_print_table): New member function.
2285 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2286 initializer.
2287 (rust_language::opcode_print_table): New member function.
2288
5aba6ebe
AB
22892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2292 (ada_language::expression_ops): New member function.
2293 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2294 (c_language::expression_ops): New member function.
2295 (cplus_language_data): Remove la_exp_desc initializer.
2296 (cplus_language::expression_ops): New member function.
2297 (asm_language_data): Remove la_exp_desc initializer.
2298 (asm_language::expression_ops): New member function.
2299 (minimal_language_data): Remove la_exp_desc initializer.
2300 (minimal_language::expression_ops): New member function.
2301 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2302 (d_language::expression_ops): New member function.
2303 * eval.c (evaluate_subexp): Update call to expression_ops.
2304 * expprint.c (print_subexp): Likewise.
2305 (op_name): Likewise.
2306 (dump_subexp_body): Likewise.
2307 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2308 (f_language::expression_ops): New member function.
2309 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2310 (go_language::expression_ops): New member function.
2311 * language.c (language_defn::expression_ops): New function.
2312 (unknown_language_data): Remove la_exp_desc initializer.
2313 (auto_language_data): Likewise.
2314 * language.h (language_data): Remove la_exp_desc field.
2315 (language_defn::expression_ops): Declare new member function.
2316 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2317 (m2_language::expression_ops): New member function.
2318 * objc-lang.c (objc_language_data): Remove la_exp_desc
2319 initializer.
2320 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2321 initializer.
2322 (opencl_language::expression_ops): New member function.
2323 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2324 * parse.c (operator_length): Update call to expression_ops.
2325 (exp_iterate): Likewise.
2326 * rust-lang.c (rust_language_data): Remove la_exp_desc
2327 initializer.
2328 (ruse_language::expression_ops): New member function.
2329
b63a3f3f
AB
23302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2333 initializer.
2334 (ada_language::varobj_ops): New member function.
2335 * c-lang.c (c_language_data): Remove la_varobj_ops
2336 initializer.
2337 (cplus_language_data): Likewise.
2338 (cplus_language::varobj_ops): New member function.
2339 (asm_language_data): Remove la_varobj_ops initializer.
2340 (minimal_language_data): Likewise.
2341 * d-lang.c (d_language_data): Likewise.
2342 * f-lang.c (f_language_data): Likewise.
2343 * go-lang.c (go_language_data): Likewise.
2344 * language.c (language_defn::varobj_ops): New function.
2345 (unknown_language_data): Remove la_varobj_ops
2346 initializer.
2347 (auto_language_data): Likewise.
2348 * language.h (language_data): Remove la_varobj_ops field.
2349 (language_defn::varobj_ops): Declare new member function.
2350 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2351 * objc-lang.c (objc_language_data): Likewise.
2352 * opencl-lang.c (opencl_language_data): Likewise.
2353 * p-lang.c (pascal_language_data): Likewise.
2354 * rust-lang.c (rust_language_data): Likewise.
2355 * varobj.c (varobj_create): Update call to varobj_ops.
2356 * varobj.h (default_varobj_ops): Delete define.
2357
1ac14a04
AB
23582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2361 initializer.
2362 * c-lang.c (c_language_data): Likewise.
2363 (c_language::macro_expansion): New member function.
2364 (cplus_language_data): Likewise.
2365 (cplus_language::macro_expansion): New member function.
2366 (asm_language_data): Likewise.
2367 (asm_language::macro_expansion): New member function.
2368 (minimal_language_data): Likewise.
2369 (minimal_language::macro_expansion): New member function.
2370 * d-lang.c (d_language_data): Remove la_macro_expansion
2371 initializer.
2372 * f-lang.c (f_language_data): Likewise.
2373 * go-lang.c (go_language_data): Likewise.
2374 * language.c (unknown_language_data): Likewise.
2375 (auto_language_data): Likewise.
2376 * language.h (language_data): Remove la_macro_expansion field.
2377 (language_defn::macro_expansion): New member function.
2378 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2379 initializer.
2380 * objc-lang.c (objc_language_data): Likewise.
2381 (objc_language::macro_expansion): New member function.
2382 * opencl-lang.c (opencl_language_data): Likewise.
2383 (opencl_language::macro_expansion): New member function.
2384 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2385 initializer.
2386 * rust-lang.c (rust_language_data): Likewise.
2387 * symtab.c (default_collect_symbol_completion_matches_break_on):
2388 Update call to macro_expansion.
2389
3a3440fb
AB
23902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2391
2392 * ada-lang.c (ada_language_data): Remove la_array_ordering
2393 initializer.
2394 * c-lang.c (c_language_data): Likewise.
2395 (cplus_language_data): Likewise.
2396 (asm_language_data): Likewise.
2397 (minimal_language_data): Likewise.
2398 * d-lang.c (d_language_data): Likewise.
2399 * dwarf2/read.c (read_array_order): Update for call to
2400 array_ordering.
2401 * f-lang.c (f_language_data): Remove la_array_ordering
2402 initializer.
2403 (f_language::array_ordering): New member function.
2404 * go-lang.c (go_language_data): Remove la_array_ordering
2405 initializer.
2406 * language.c (unknown_language_data): Likewise.
2407 (auto_language_data): Likewise.
2408 * language.h (language_data): Delete la_array_ordering field.
2409 (language_defn::array_ordering): New member function.
2410 * m2-lang.c (m2_language_data): Remove la_array_ordering
2411 initializer.
2412 * objc-lang.c (objc_language_data): Likewise.
2413 * opencl-lang.c (opencl_language_data): Likewise.
2414 * p-lang.c (pascal_language_data): Likewise.
2415 * rust-lang.c (rust_language_data): Likewise.
2416
0d201fa4
AB
24172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2418
2419 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2420 initializer.
2421 * c-lang.c (c_language_data): Likewise.
2422 (cplus_language_data): Likewise.
2423 (asm_language_data): Likewise.
2424 (minimal_language_data): Likewise.
2425 * d-lang.c (d_language_data): Likewise.
2426 * f-lang.c (f_language_data): Likewise.
2427 (f_language::case_sensitivity): New member function.
2428 * go-lang.c (go_language_data): Remove la_case_sensitivity
2429 initializer.
2430 * language.c (enum case_mode): Moved here from language.h.
2431 (case_mode): Make static.
2432 (show_case_command): Update for case_sensitivity being a method.
2433 (set_case_command): Likewise.
2434 (set_range_case): Likewise.
2435 (unknown_language_data): Remove la_case_sensitivity initializer.
2436 (auto_language_data): Likewise.
2437 * language.h (case_mode): Delete, move enum declaration to
2438 language.c.
2439 (language_data): Delete la_case_sensitivity field.
2440 (language_defn::case_sensitivity): New member function.
2441 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2442 initializer.
2443 * objc-lang.c (objc_language_data): Likewise.
2444 * opencl-lang.c (opencl_language_data): Likewise.
2445 * p-lang.c (pascal_language_data): Likewise.
2446 * rust-lang.c (rust_language_data): Likewise.
2447
efdf6a73
AB
24482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * ada-lang.c (ada_language_data): Remove la_range_check
2451 initializer.
2452 * c-lang.c (c_language_data): Likewise.
2453 (cplus_language_data): Likewise.
2454 (asm_language_data): Likewise.
2455 (minimal_language_data): Likewise.
2456 * d-lang.c (d_language_data): Likewise.
2457 * f-lang.c (f_language_data): Likewise.
2458 (f_language::range_checking_on_by_default): New member function.
2459 * go-lang.c (go_language_data): Remove la_range_check initializer.
2460 * language.c (enum range_mode): Moved here from language.h.
2461 (range_mode): Made static.
2462 (show_range_command): Update to use
2463 range_checking_on_by_default.
2464 (set_range_command): Likewise.
2465 (set_range_case): Likewise.
2466 (unknown_language_data): Remove la_range_check initializer.
2467 (auto_language_data): Likewise.
2468 * language.h (range_mode): Delete. Enum definition moved to
2469 language.c.
2470 (language_data): Remove la_range_check field.
2471 (language_defn::range_checking_on_by_default): New member
2472 function.
2473 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2474 (m2_language::range_checking_on_by_default): New member function.
2475 * objc-lang.c (objc_language_data): Remove la_range_check
2476 initializer.
2477 * opencl-lang.c (opencl_language_data): Likewise.
2478 * p-lang.c (pascal_language_data): Likewise.
2479 (pascal_language::range_checking_on_by_default): New member
2480 function.
2481 * rust-lang.c (rust_language_data): Remove la_range_check
2482 initializer.
2483 (rust_language::range_checking_on_by_default): New member
2484 function.
2485
bf92aec5
AB
24862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * dwarf2/read.c (dwarf2_physname): Remove special case for
2489 language_go.
2490 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2491 member function.
2492
d3355e4d
AB
24932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2494
2495 * ada-lang.c (ada_language_data): Remove
2496 la_store_sym_names_in_linkage_form_p initializer.
2497 (ada_language::store_sym_names_in_linkage_form_p): New member
2498 function.
2499 * c-lang.c (c_language_data): Remove
2500 la_store_sym_names_in_linkage_form_p initializer.
2501 (c_language::store_sym_names_in_linkage_form_p): New member
2502 function.
2503 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2504 initializer.
2505 (asm_language_data): Likewise.
2506 (asm_language::store_sym_names_in_linkage_form_p): New member
2507 function.
2508 (minimal_language_data): Remove
2509 la_store_sym_names_in_linkage_form_p initializer.
2510 (minimal_language::store_sym_names_in_linkage_form_p): New member
2511 function.
2512 * d-lang.c (d_language_data): Remove
2513 la_store_sym_names_in_linkage_form_p initializer.
2514 * dwarf2/read.c (dwarf2_physname): Update call to
2515 store_sym_names_in_linkage_form_p.
2516 * f-lang.c (f_language_data): Remove
2517 la_store_sym_names_in_linkage_form_p initializer.
2518 * go-lang.c (go_language_data): Remove
2519 la_store_sym_names_in_linkage_form_p initializer.
2520 * language.c (unknown_language_data): Remove
2521 la_store_sym_names_in_linkage_form_p initializer.
2522 (unknown_language::store_sym_names_in_linkage_form_p): New member
2523 function.
2524 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2525 initializer.
2526 (auto_language::store_sym_names_in_linkage_form_p): New member
2527 function.
2528 * language.h (language_data): Remove
2529 la_store_sym_names_in_linkage_form_p member variable.
2530 (language_defn::store_sym_names_in_linkage_form_p): New member
2531 function.
2532 * m2-lang.c (m2_language_data): Remove
2533 la_store_sym_names_in_linkage_form_p initializer.
2534 * objc-lang.c (objc_language_data): Likewise.
2535 * opencl-lang.c (opencl_language_data): Likewise.
2536 * p-lang.c (pascal_language_data): Likewise.
2537 * rust-lang.c (rust_language_data): Likewise.
2538
22c12a6c
AB
25392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * ada-lang.c (ada_language_data): Remove string_lower_bound
2542 initializer.
2543 * c-lang.c (c_language_data): Likewise.
2544 (cplus_language_data): Likewise.
2545 (asm_language_data): Likewise.
2546 (minimal_language_data): Likewise.
2547 * d-lang.c (d_language_data): Likewise.
2548 * f-lang.c (f_language_data): Likewise.
2549 * go-lang.c (go_language_data): Likewise.
2550 * language.c (unknown_language_data): Likewise.
2551 (auto_language_data): Likewise.
2552 * language.h (language_data): Remove string_lower_bound field.
2553 (language_defn::string_lower_bound): New member function.
2554 * m2-lang.c (m2_language_data): Remove string_lower_bound
2555 initializer.
2556 (m2_language::string_lower_bound): New member function.
2557 * objc-lang.c (objc_language_data): Remove string_lower_bound
2558 initializer.
2559 * opencl-lang.c (opencl_language_data): Likewise.
2560 * p-lang.c (pascal_language_data): Likewise.
2561 * rust-lang.c (rust_language_data): Likewise.
2562 * valops.c (value_cstring): Update call to string_lower_bound.
2563 (value_string): Likewise.
2564 * value.c (allocate_repeated_value): Likewise.
2565
1c236ddd
AB
25662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2567
2568 * valops.c (value_repeat): Fix incorrect argument name in comment.
2569
67bd3fd5
AB
25702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * ada-lang.c (ada_language_data): Remove c_style_arrays
2573 initializer.
2574 (ada_language::c_style_arrays_p): New member fuction.
2575 * c-lang.c (c_language_data): Remove c_style_arrays
2576 initializer.
2577 (cplus_language_data): Likewise.
2578 (asm_language_data): Likewise.
2579 (minimal_language_data): Likewise.
2580 * d-lang.c (d_language_data): Likewise.
2581 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2582 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2583 (f_language::c_style_arrays_p): New member function.
2584 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2585 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2586 * language.c (unknown_language_data): Remove c_style_arrays
2587 initializer.
2588 (auto_language_data): Likewise.
2589 * language.h (language_data): Remove c_style_arrays field.
2590 (language_defn::c_style_arrays_p): New member function.
2591 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2592 (m2_language::c_style_arrays_p): New member function.
2593 * objc-lang.c (objc_language_data): Remove c_style_arrays
2594 initializer.
2595 * opencl-lang.c (opencl_language_data): Likewise.
2596 * p-lang.c (pascal_language_data): Likewise.
2597 * rust-lang.c (rust_language_data): Likewise.
2598 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2599 and update local variable to a bool.
2600 * valops.c (value_cast): Update call to c_style_arrays_p.
2601 (value_array): Likewise.
2602 * value.c (coerce_array): Likewise.
2603
85967615
AB
26042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2605
2606 * ada-lang.c (ada_language_data): Remove la_language initializer.
2607 * c-lang.c (c_language_data): Likewise.
2608 (cplus_language_data): Likewise.
2609 (asm_language_data): Likewise.
2610 (minimal_language_data): Likewise.
2611 * d-lang.c (d_language_data): Likewise.
2612 * f-lang.c (f_language_data): Likewise.
2613 * go-lang.c (go_language_data): Likewise.
2614 * language.c (unknown_language_data): Likewise.
2615 (auto_language_data): Likewise.
2616 * language.h (language_data): Remove la_language field.
2617 (language_defn::language_defn): Initialise la_language field.
2618 (language_defn::la_language): New member variable.
2619 * m2-lang.c (m2_language_data): Remove la_language field.
2620 * objc-lang.c (objc_language_data): Likewise.
2621 * opencl-lang.c (opencl_language_data): Likewise.
2622 * p-lang.c (pascal_language_data): Likewise.
2623 * rust-lang.c (rust_language_data): Likewise.
2624
e171d6f1
AB
26252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * ada-lang.c (ada_extensions): Delete, moved into
2628 ada_language::filename_extensions.
2629 (ada_language_data): Remove la_filename_extensions initializer.
2630 (ada_language::filename_extensions): New member function.
2631 * c-lang.c (c_extensions): Delete, moved into
2632 c_language::filename_extensions.
2633 (c_language_data): Remove la_filename_extensions initializer.
2634 (c_language::filename_extensions): New member function.
2635 (cplus_extensions): Delete, moved into
2636 cplus_language::filename_extensions.
2637 (cplus_language_data): Remove la_filename_extensions initializer.
2638 (cplus_language::filename_extensions): New member function.
2639 (asm_extensions): Delete, moved into
2640 asm_language::filename_extensions.
2641 (asm_language_data): Remove la_filename_extensions initializer.
2642 (asm_language::filename_extensions): New member function.
2643 (minimal_language_data): Remove la_filename_extensions
2644 initializer.
2645 * d-lang.c (d_extensions): Delete, moved into
2646 d_language::filename_extensions.
2647 (d_language_data): Remove la_filename_extensions initializer.
2648 (d_language::filename_extensions): New member function.
2649 * f-lang.c (f_extensions): Delete, moved into
2650 f_language::filename_extensions.
2651 (f_language_data): Remove la_filename_extensions initializer.
2652 (f_language::filename_extensions): New member function.
2653 * go-lang.c (go_language_data): Remove la_filename_extensions
2654 initializer.
2655 * language.c (add_set_language_command): Update now that
2656 filename_extensions returns a vector.
2657 (unknown_language_data): Remove la_filename_extensions
2658 initializer.
2659 (auto_language_data): Likewise.
2660 * language.h (language_data): Remove la_filename_extensions field.
2661 (language_defn::filename_extensions): New member function.
2662 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2663 initializer.
2664 * objc-lang.c (objc_extensions): Delete, moved into
2665 objc_language::filename_extensions.
2666 (objc_language_data): Remove la_filename_extensions initializer.
2667 (objc_language::filename_extensions): New member function.
2668 * opencl-lang.c (opencl_language_data): Remove
2669 la_filename_extensions initializer.
2670 * p-lang.c (pascal_extensions): Delete, moved into
2671 pascal_language::filename_extensions.
2672 (pascal_language_data): Remove la_filename_extensions initializer.
2673 (pascal_language::filename_extensions): New member function.
2674 * rust-lang.c (rust_extensions): Delete, moved into
2675 rust_language::filename_extensions.
2676 (rust_language_data): Remove la_filename_extensions initializer.
2677 (rust_language::filename_extensions): New member function.
2678 * symfile.c (add_filename_language): Add new assert.
2679
6f7664a9
AB
26802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2681
2682 * ada-lang.c (ada_language_data): Remove la_name and
2683 la_natural_name initializers.
2684 (ada_language::name): New member function.
2685 (ada_language::natural_name): New member function.
2686 * c-lang.c (c_language_data): Remove la_name and
2687 la_natural_name initializers.
2688 (c_language::name): New member function.
2689 (c_language::natural_name): New member function.
2690 (cplus_language_data): Remove la_name and
2691 la_natural_name initializers.
2692 (cplus_language::name): New member function.
2693 (cplus_language::natural_name): New member function.
2694 (asm_language_data): Remove la_name and
2695 la_natural_name initializers.
2696 (asm_language::name): New member function.
2697 (asm_language::natural_name): New member function.
2698 (minimal_language_data): Remove la_name and
2699 la_natural_name initializers.
2700 (minimal_language::name): New member function.
2701 (minimal_language::natural_name): New member function.
2702 * compile/compile.c (compile_to_object): Update call to
2703 lanugage_defn::name.
2704 * d-lang.c (d_language_data): Remove la_name and
2705 la_natural_name initializers.
2706 (d_language::name): New member function.
2707 (d_language::natural_name): New member function.
2708 * expprint.c (print_subexp_standard): Update call to
2709 language_defn::name.
2710 (dump_raw_expression): Likewise
2711 (dump_prefix_expression): Likewise.
2712 * f-lang.c (f_language_data): Remove la_name and
2713 la_natural_name initializers.
2714 (f_language::name): New member function.
2715 (f_language::natural_name): New member function.
2716 * go-lang.c (go_language_data): Remove la_name and
2717 la_natural_name initializers.
2718 (go_language::name): New member function.
2719 (go_language::natural_name): New member function.
2720 * language.c (show_language_command): Update call to
2721 language_defn::name.
2722 (set_language_command): Likewise.
2723 (language_enum): Likewise.
2724 (language_str): Likewise.
2725 (add_set_language_command): Likewise, use
2726 language_defn::natural_name in the doc string.
2727 (unknown_language_data): Remove la_name and
2728 la_natural_name initializers.
2729 (unknown_language::name): New member function.
2730 (unknown_language::natural_name): New member function.
2731 (auto_language_data): Remove la_name and
2732 la_natural_name initializers.
2733 (auto_language::name): New member function.
2734 (auto_language::natural_name): New member function.
2735 (language_lookup_primitive_type_as_symbol): Update call to
2736 language_defn::name.
2737 * language.h (language_data): Remove la_name and la_natural_name
2738 member variables.
2739 (language_defn::name): New member function.
2740 (language_defn::natural_name): New member function.
2741 * m2-lang.c (m2_language_data): Remove la_name and
2742 la_natural_name initializers.
2743 (m2_language::name): New member function.
2744 (m2_language::natural_name): New member function.
2745 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2746 language_defn::natural_name.
2747 * objc-lang.c (objc_language_data): Remove la_name and
2748 la_natural_name initializers.
2749 (objc_language::name): New member function.
2750 (objc_language::natural_name): New member function.
2751 * opencl-lang.c (opencl_language_data): Remove la_name and
2752 la_natural_name initializers.
2753 (opencl_language::name): New member function.
2754 (opencl_language::natural_name): New member function.
2755 * p-lang.c (pascal_language_data): Remove la_name and
2756 la_natural_name initializers.
2757 (pascal_language::name): New member function.
2758 (pascal_language::natural_name): New member function.
2759 * rust-lang.c (rust_language_data): Remove la_name and
2760 la_natural_name initializers.
2761 (rust_language::name): New member function.
2762 (rust_language::natural_name): New member function.
2763 * symtab.c (lookup_language_this): Update call to
2764 language_defn::name.
2765
5bae7c4e
AB
27662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2767
2768 * ada-lang.c (ada_language_data): Remove la_name_of_this
2769 initializer.
2770 * ax-gdb.c (gen_expr): Update call to name_of_this.
2771 * c-exp.y (classify_name): Likewise.
2772 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2773 (cplus_language_data): Likewise.
2774 (cplus_language::name_of_this): New member function.
2775 (asm_language_data): Remove la_name_of_this initializer.
2776 (minimal_language_data): Likewise.
2777 * d-lang.c (d_language_data): Likewise.
2778 (d_language::name_of_this): New member function.
2779 * expprint.c (print_subexp_standard): Update call to name_of_this.
2780 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2781 * go-lang.c (go_language_data): Likewise.
2782 * language.c (unknown_language_data): Likewise.
2783 (unknown_language::name_of_this): New member function.
2784 (auto_language_data): Remove la_name_of_this initializer.
2785 (auto_language::name_of_this): New member function.
2786 * language.h (language_data): Delete la_name_of_this member
2787 variable.
2788 (language_defn::name_of_this): New member function.
2789 * m2-lang.c (m2_language_data): Remove la_name_of_this
2790 initializer.
2791 * objc-lang.c (objc_language_data): Likewise.
2792 (objc_language::name_of_this): New member function.
2793 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2794 initializer.
2795 * p-lang.c (pascal_language_data): Likewise.
2796 (pascal_language::name_of_this): New member function.
2797 * rust-lang.c (rust_language_data): Remove la_name_of_this
2798 initializer.
2799 * symtab.c (lookup_language_this): Update call to name_of_this.
2800 (lookup_symbol_aux): Likewise.
2801 * valops.c (value_of_this): Likewise.
2802
22e3f3ed
AB
28032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2804
2805 * ada-lang.c (ada_language_data): Remove
2806 la_struct_too_deep_ellipsis initializer.
2807 (ada_language::struct_too_deep_ellipsis): New member function.
2808 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2809 initializer.
2810 (cplus_language_data): Likewise.
2811 (asm_language_data): Likewise.
2812 (minimal_language_data): Likewise.
2813 * cp-valprint.c (cp_print_value): Update call to
2814 struct_too_deep_ellipsis.
2815 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2816 initializer.
2817 * f-lang.c (f_language_data): Likewise.
2818 (f_language::struct_too_deep_ellipsis): New member function.
2819 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2820 initializer.
2821 * language.c (unknown_language_data): Likewise.
2822 (auto_language_data): Likewise.
2823 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2824 member variable.
2825 (language_defn::struct_too_deep_ellipsis): New member function.
2826 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2827 initializer.Q
2828 * objc-lang.c (objc_language_data): Likewise.
2829 * opencl-lang.c (opencl_language_data): Likewise.
2830 * p-lang.c (pascal_language_data): Likewise.
2831 * rust-lang.c (rust_language_data): Likewise.
2832 * valprint.c (val_print_check_max_depth): Update call to
2833 struct_too_deep_ellipsis.
2834
ed29e1c7
FW
28352020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2836
2837 * MAINTAINERS (Write After Approval): Add myself.
2838
12d8f940
TT
28392020-09-15 Tom Tromey <tom@tromey.com>
2840
2841 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2842 Remove.
2843
6b5a7bc7
TT
28442020-09-15 Tom Tromey <tom@tromey.com>
2845
2846 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2847 and TYPE_CODE_METHODPTR cases.
2848 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2849 (c_value_print_inner): Update.
2850 * valprint.c (generic_value_print_memberptr): New function, from
2851 c_value_print_memberptr.
2852 (generic_value_print): Use it. Call cplus_print_method_ptr.
2853
47f0e2ff
TT
28542020-09-15 Tom Tromey <tromey@adacore.com>
2855
2856 * python/python-internal.h (PyInt_FromLong): Remove define.
2857 * python/py-value.c (convert_value_from_python): Use
2858 gdb_py_object_from_longest.
2859 * python/py-type.c (typy_get_code): Use
2860 gdb_py_object_from_longest.
2861 * python/py-symtab.c (salpy_get_line): Use
2862 gdb_py_object_from_longest.
2863 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2864 gdb_py_object_from_longest.
2865 * python/py-record.c (recpy_gap_reason_code): Use
2866 gdb_py_object_from_longest.
2867 * python/py-record-btrace.c (recpy_bt_insn_size)
2868 (recpy_bt_func_level, btpy_list_count): Use
2869 gdb_py_object_from_longest.
2870 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2871 gdb_py_object_from_longest. Fix error handling.
2872 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2873 gdb_py_object_from_longest.
2874 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2875 gdb_py_object_from_longest.
2876 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2877 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2878 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2879
512116ce
TT
28802020-09-15 Tom Tromey <tromey@adacore.com>
2881
2882 * python/python.c (gdbpy_parameter_value): Use
2883 gdb_py_object_from_ulongest.
2884
4ab1029c
TT
28852020-09-15 Tom Tromey <tromey@adacore.com>
2886
2887 * python/py-infevents.c (create_register_changed_event_object):
2888 Use gdb_py_object_from_longest.
2889 * python/py-exitedevent.c (create_exited_event_object): Use
2890 gdb_py_object_from_longest.
2891
062534d4
TT
28922020-09-15 Tom Tromey <tromey@adacore.com>
2893
2894 * python/python.c (gdbpy_parameter_value): Use
2895 gdb_py_object_from_longest.
2896 * python/py-type.c (convert_field, typy_range): Use
2897 gdb_py_object_from_longest.
2898 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2899 gdb_py_object_from_longest.
2900 * python/py-lazy-string.c (stpy_get_length): Use
2901 gdb_py_object_from_longest.
2902 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2903 gdb_py_object_from_longest.
2904 * python/py-infevents.c (create_memory_changed_event_object): Use
2905 gdb_py_object_from_longest.
2906 * python/py-inferior.c (infpy_get_num): Use
2907 gdb_py_object_from_longest.
2908 (infpy_get_pid): Likewise.
2909
d1cab987
TT
29102020-09-15 Tom Tromey <tromey@adacore.com>
2911
2912 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2913 defines.
2914 * python/py-value.c (valpy_long): Use
2915 gdb_py_object_from_ulongest.
2916 * python/py-symtab.c (salpy_get_pc): Use
2917 gdb_py_object_from_ulongest.
2918 (salpy_get_last): Likewise.
2919 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2920 gdb_py_object_from_ulongest.
2921 * python/py-lazy-string.c (stpy_get_address): Use
2922 gdb_py_object_from_ulongest.
2923 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2924 * python/py-arch.c (archpy_disassemble): Use
2925 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2926 error handling.
2927
4bde49dc
TT
29282020-09-15 Tom Tromey <tromey@adacore.com>
2929
2930 * python/python-internal.h (gdb_py_long_from_longest): Remove
2931 defines.
2932 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2933 * python/py-type.c (convert_field, typy_get_sizeof): Use
2934 gdb_py_object_from_longest.
2935 * python/py-record-btrace.c (btpy_list_index): Use
2936 gdb_py_object_from_longest.
2937
37431074
TT
29382020-09-15 Tom Tromey <tromey@adacore.com>
2939
2940 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2941 * python/py-record.c (recpy_element_number): Use
2942 gdb_py_object_from_longest.
2943 (recpy_gap_number): Likewise.
2944
cbe25684
TT
29452020-09-15 Tom Tromey <tromey@adacore.com>
2946
2947 * top.c (ui::ui): Update.
2948 (highest_ui_num): Remove.
2949 * top.h (struct ui) <num>: Remove.
2950
db92ac45
TT
29512020-09-15 Tom Tromey <tromey@adacore.com>
2952
2953 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2954 * ui-style.c (ansi_regex_text): Now array.
2955 * rust-exp.y (number_regex_text): Now array.
2956 * linespec.c (linespec_quote_characters): Now array.
2957 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2958 Now arrays.
2959
d2b31b67
SM
29602020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2961
2962 * debuginfod-support.c (debuginfod_client_deleter): New.
2963 (debuginfod_client_up): New.
2964 (debuginfod_init): Return debuginfod_client_up.
2965 (debuginfod_source_query): Adjust.
2966 (debuginfod_debuginfo_query): Adjust.
2967
3246bd8e
SM
29682020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2969
2970 * debuginfod-support.c (debuginfod_source_query): Use
2971 make_unique_xstrdup.
2972
10242f36
SM
29732020-09-14 Simon Marchi <simon.marchi@efficios.com>
2974
2975 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2976 with `type::instance_flags`.
2977
e1044e6a
MM
29782020-09-14 Michael Mullin <masmullin@gmail.com>
2979
2980 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2981 Remove baton parameter.
2982
04902b09
PA
29832020-09-14 Pedro Alves <pedro@palves.net>
2984
2985 * Makefile.in (SELFTESTS_SRCS): Add
2986 unittests/enum-flags-selftests.c.
2987 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2988 btrace_function_flags instead of enum btrace_function_flag.
2989 * compile/compile-c-types.c (convert_qualified): Use
2990 enum_flags::raw.
2991 * compile/compile-cplus-symbols.c (convert_one_symbol)
2992 (convert_symbol_bmsym):
2993 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2994 (compile_cplus_convert_struct_or_union_methods)
2995 (compile_cplus_instance::convert_qualified_base):
2996 * go-exp.y (parse_string_or_char): Add cast to int.
2997 * unittests/enum-flags-selftests.c: New file.
2998 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2999 type to btrace_thread_flags from btrace_thread_flag.
3000 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3001 local's type to btrace_thread_flags from btrace_thread_flag. Add
3002 cast in DEBUG call.
3003
69896a2c
PA
30042020-09-14 Pedro Alves <pedro@palves.net>
3005
3006 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3007 * gdbtypes.c (address_space_name_to_int): Rename to ...
3008 (address_space_name_to_type_instance_flags): ... this.
3009 (address_space_int_to_name): Rename to ...
3010 (address_space_type_instance_flags_to_name): ... this.
3011 * gdbtypes.h (address_space_name_to_int): Rename to ...
3012 (address_space_name_to_type_instance_flags): ... this.
3013 (address_space_int_to_name): Rename to ...
3014 (address_space_type_instance_flags_to_name): ... this.
3015 * type-stack.c (type_stack::insert): Adjust to rename.
3016 * type-stack.h (type_stack::insert): Likewise.
3017
314ad88d
PA
30182020-09-14 Pedro Alves <pedro@palves.net>
3019 Andrew Burgess <andrew.burgess@embecosm.com>
3020
3021 * avr-tdep.c (avr_address_class_type_flags): Return
3022 type_instance_flags.
3023 (avr_address_class_type_flags_to_name): Take a
3024 type_instance_flags.
3025 (avr_address_class_name_to_type_flags): Return bool and take a
3026 type_instance_flags.
3027 * d-lang.c (build_d_types): Use type::set_instance_flags.
3028 * ft32-tdep.c (ft32_address_class_type_flags): Return
3029 type_instance_flags.
3030 (ft32_address_class_type_flags_to_name): Take a
3031 type_instance_flags.
3032 (ft32_address_class_name_to_type_flags): Return bool and take a
3033 type_instance_flags.
3034 (ft32_gdbarch_init): Use type::set_instance_flags.
3035 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3036 * gdbarch.h, gdbarch.c: Regenerate.
3037 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3038 (address_class_name_to_type_flags): Use type_instance_flags and
3039 bool.
3040 * gdbtypes.c (address_space_name_to_int)
3041 (address_space_int_to_name, make_qualified_type): Use
3042 type_instance_flags.
3043 (make_qualified_type): Use type_instance_flags and
3044 type::set_instance_flags.
3045 (make_type_with_address_space, make_cv_type, make_vector_type)
3046 (check_typedef): Use type_instance_flags.
3047 (recursive_dump_type): Cast type_instance_flags to unsigned for
3048 printing.
3049 (copy_type_recursive): Use type::set_instance_flags.
3050 (gdbtypes_post_init): Use type::set_instance_flags.
3051 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3052 <m_instance_flags>: ... this.
3053 <instance_flags, set_instance_flags>: New methods.
3054 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3055 (SET_TYPE_INSTANCE_FLAGS): New.
3056 (address_space_name_to_int, address_space_int_to_name)
3057 (make_type_with_address_space): Pass flags using
3058 type_instance_flags instead of int.
3059 * stabsread.c (cleanup_undefined_types_noname): Use
3060 type::set_instance_flags.
3061 * s390-tdep.c (s390_address_class_type_flags): Return
3062 type_instance_flags.
3063 (s390_address_class_type_flags_to_name): Take a
3064 type_instance_flags.
3065 (s390_address_class_name_to_type_flags): Return bool and take a
3066 type_instance_flags.
3067 * type-stack.c (type_stack::follow_types): Use
3068 type_instance_flags.
3069 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3070
27087b7f
TT
30712020-09-14 Tom Tromey <tromey@adacore.com>
3072
3073 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3074 * x86-tdep.c (x86_is_thunk_register_name)
3075 (x86_in_indirect_branch_thunk): Update.
3076 * sparc64-tdep.c (sparc64_fpu_register_names)
3077 (sparc64_cp0_register_names, sparc64_register_names)
3078 (sparc64_pseudo_register_names): Now const.
3079 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3080 cp0_registers_num>: Now const.
3081 * sparc-tdep.c (sparc_core_register_names)
3082 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3083 (sparc32_pseudo_register_names): Now const.
3084 (validate_tdesc_registers): Update.
3085 * rust-lang.c (rust_extensions): Now const.
3086 * p-lang.c (p_extensions): Now const.
3087 * objc-lang.c (objc_extensions): Now const.
3088 * nto-tdep.c (nto_thread_state_str): Now const.
3089 * moxie-tdep.c (moxie_register_names): Now const.
3090 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3091 Now const.
3092 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3093 (mips_linux_reg_names): Now const.
3094 (mips_gdbarch_init): Update.
3095 * microblaze-tdep.c (microblaze_register_names): Now const.
3096 * m68k-tdep.c (m68k_register_names): Now const.
3097 * m32r-tdep.c (m32r_register_names): Now const.
3098 * ia64-tdep.c (ia64_register_names): Now const.
3099 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3100 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3101 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3102 ymm_avx512_register_names, pkeys_register_names>: Now const.
3103 * i386-tdep.c (i386_register_names, i386_zmm_names)
3104 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3105 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3106 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3107 * f-lang.c (f_extensions): Now const.
3108 * d-lang.c (d_extensions): Now const.
3109 * csky-tdep.c (csky_register_names): Now const.
3110 * charset.c (default_charset_names, charset_enum): Now const.
3111 (_initialize_charset): Update.
3112 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3113 const.
3114 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3115 (bsd_uthread_solib_loaded): Update.
3116 (bsd_uthread_state): Now const.
3117 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3118 (amd64_ymm_avx512_names, amd64_ymmh_names)
3119 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3120 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3121 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3122 (amd64_dword_names): Now const.
3123 * agent.c (can_use_agent_enum): Now const.
3124 * ada-tasks.c (task_states, long_task_states): Now const.
3125 * ada-lang.c (known_runtime_file_name_patterns)
3126 (known_auxiliary_function_name_patterns, attribute_names)
3127 (standard_exc, ada_extensions): Now const.
3128
89806626
SM
31292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3130
3131 * bcache.h (struct bcache) <bcache>: Remove constructor.
3132 <m_hash_function, m_compare_function>: Remove.
3133 <~bcache>: Make virtual.
3134 <compare>: Remove static method, introduce virtual method.
3135 <default_hash>: Remove.
3136 <hash>: New virtual method.
3137 * bcache.c (bcache::expand_hash_table): Update.
3138 (bcache::insert): Update.
3139 (bcache::hash): New.
3140 (bcache::compare): Update comment and parameter names.
3141 * gdbtypes.c (types_deeply_equal): Update.
3142 * psymtab.h (struct psymbol_bcache): New struct.
3143 (class psymtab_storage) <psymtab_storage>: Make default.
3144 <psymbol_cache>: Change type to psymbol_bcache.
3145 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3146 (psymbol_hash): Change to...
3147 (psymbol_bcache::hash): ... this.
3148 (psymbol_compare): Change to...
3149 (psymbol_bcache::compare): ... this.
3150
677c92fe
SM
31512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3154 checking for initial lwp.
3155
3eba3a01
TT
31562020-09-14 Tom Tromey <tromey@adacore.com>
3157
3158 * m68k-tdep.c (m68k_extract_return_value): Use
3159 pointer_result_regnum.
3160 (m68k_store_return_value): Likewise.
3161 (m68k_reg_struct_return_p): Handle vectors and arrays.
3162 (m68k_return_value): Handle arrays.
3163 (m68k_svr4_return_value): Fix single-element aggregate handling.
3164 Handle long double. Adjust for embedded ABI.
3165 (m68k_svr4_init_abi): Set pointer_result_regnum.
3166 (m68k_embedded_init_abi): New function.
3167 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3168 (m68k_osabi_sniffer): New function.
3169 (_initialize_m68k_tdep): Register osabi sniffer.
3170 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3171 member.
3172
33f4dd48
SM
31732020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3174
3175 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3176 with gdb::unique_xmalloc_ptr<char>.
3177
8400a90d
SM
31782020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 * xml-support.h (xml_fetch_another): Change type to be a
3181 function_view.
3182 (xml_process_xincludes): Remove baton parameter.
3183 (xml_fetch_content_from_file): Change baton parameter to
3184 dirname.
3185 * xml-support.c (struct xinclude_parsing_data)
3186 <xinclude_parsing_data>: Remove baton parameter.
3187 <fetcher_baton>: Remove.
3188 (xinclude_start_include): Adjust.
3189 (xml_process_xincludes): Adjust.
3190 (xml_fetch_content_from_file): Replace baton parameter with
3191 dirname.
3192 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3193 (xml_init_syscalls_info): Use a lambda.
3194 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3195 (file_read_description_xml): Use a lambda.
3196 (fetch_available_features_from_target): Change baton parameter
3197 to target_ops.
3198 (target_read_description_xml): Use a lambda.
3199 (target_fetch_description_xml): Use a lambda.
3200 (string_read_description_xml): Update.
3201
04f5bab2
SM
32022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3205 uses with type::endianity_is_not_default.
3206
db558e34
SM
32072020-09-14 Simon Marchi <simon.marchi@efficios.com>
3208
3209 * gdbtypes.h (struct type) <endianity_is_not_default,
3210 set_endianity_is_not_default>: New methods.
3211 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3212 type::endianity_is_not_default, change all write call sites to
3213 use type::set_endianity_is_not_default.
3214
22c4c60c
SM
32152020-09-14 Simon Marchi <simon.marchi@efficios.com>
3216
3217 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3218 uses with type::is_fixed_instance.
3219
9cdd0d12
SM
32202020-09-14 Simon Marchi <simon.marchi@efficios.com>
3221
3222 * gdbtypes.h (struct type) <is_fixed_instance,
3223 set_is_fixed_instance>: New methods.
3224 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3225 write call sites to use type::set_is_fixed_instance.
3226
0becda7a
SM
32272020-09-14 Simon Marchi <simon.marchi@efficios.com>
3228
3229 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3230 uses with type::is_gnu_ifunc.
3231
03cc7249
SM
32322020-09-14 Simon Marchi <simon.marchi@efficios.com>
3233
3234 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3235 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3236 use type::set_is_gnu_ifunc.
3237
3f46044c
SM
32382020-09-14 Simon Marchi <simon.marchi@efficios.com>
3239
3240 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3241 uses with type::stub_is_supported.
3242
9baccff6
SM
32432020-09-14 Simon Marchi <simon.marchi@efficios.com>
3244
3245 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3246 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3247 use type::set_stub_is_supported.
3248
bd63c870
SM
32492020-09-14 Simon Marchi <simon.marchi@efficios.com>
3250
3251 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3252 uses with type::is_vector.
3253
2062087b
SM
32542020-09-14 Simon Marchi <simon.marchi@efficios.com>
3255
3256 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3257 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3258 use type::set_is_vector.
3259
a409645d
SM
32602020-09-14 Simon Marchi <simon.marchi@efficios.com>
3261
3262 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3263 uses with type::has_varargs.
3264
1d6286ed
SM
32652020-09-14 Simon Marchi <simon.marchi@efficios.com>
3266
3267 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3268 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3269 use type::set_has_varargs.
3270
7f9f399b
SM
32712020-09-14 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3274 uses with type::is_prototyped.
3275
27e69b7a
SM
32762020-09-14 Simon Marchi <simon.marchi@efficios.com>
3277
3278 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3279 New methods.
3280 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3281 call sites to use type::set_is_prototyped.
3282
d2183968
SM
32832020-09-14 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3286 uses with type::target_is_stub.
3287
8f53807e
SM
32882020-09-14 Simon Marchi <simon.marchi@efficios.com>
3289
3290 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3291 New methods.
3292 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3293 sites to use type::set_target_is_stub.
3294
e46d3488
SM
32952020-09-14 Simon Marchi <simon.marchi@efficios.com>
3296
3297 * gdbtypes.h (TYPE_STUB): Remove, replace all
3298 uses with type::is_stub.
3299
b4b73759
SM
33002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3303 (TYPE_STUB): Use type::is_stub, change all write call sites to
3304 use type::set_is_stub.
3305
20ce4123
SM
33062020-09-14 Simon Marchi <simon.marchi@efficios.com>
3307
3308 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3309 type::has_no_signedness.
3310
15152a54
SM
33112020-09-14 Simon Marchi <simon.marchi@efficios.com>
3312
3313 * gdbtypes.h (struct type) <has_no_signedness,
3314 set_has_no_signedness>: New methods.
3315 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3316 call sites to use type::set_has_no_signedness.
3317
c6d940a9
SM
33182020-09-14 Simon Marchi <simon.marchi@efficios.com>
3319
3320 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3321 type::is_unsigned.
3322
653223d3
SM
33232020-09-14 Simon Marchi <simon.marchi@efficios.com>
3324
3325 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3326 methods.
3327 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3328 sites to use type::set_is_unsigned.
3329
55ea94da 33302020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3331 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3332
e851246a
SM
3333 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3334 pointer and stack frame offset when unwinding.
55ea94da 3335
6791b117
PA
33362020-09-13 Pedro Alves <pedro@palves.net>
3337
3338 * NEWS: Document "-break-insert --qualified".
3339 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3340
77f2120b
PA
33412020-09-13 Pedro Alves <pedro@palves.net>
3342
3343 * linespec.c (classify_mtype, compare_msyms): Delete.
3344 (search_minsyms_for_name): Remove classification logic. Instead
3345 filter out trampoline symbols if we also found an external
3346 function of the same name.
3347
ed6a896c
JB
33482020-09-13 Joel Brobecker <brobecker@adacore.com>
3349
3350 * NEWS: Create a new section for the next release branch.
3351 Rename the section of the current branch, now that it has
3352 been cut.
3353
32aea73e
JB
33542020-09-13 Joel Brobecker <brobecker@adacore.com>
3355
3356 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3357 * version.in: Bump version to 11.0.50.DATE-git.
3358
8087c3fa
JB
33592020-09-12 Joel Brobecker <brobecker@adacore.com>
3360
3361 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3362
2a67f09d
FW
33632020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3364 Felix Willgerodt <Felix.Willgerodt@intel.com>
3365
3366 * gdbarch.sh: Added bfloat16 type.
3367 * gdbarch.c: Regenerated.
3368 * gdbarch.h: Regenerated.
3369 * gdbtypes.c (floatformats_bfloat16): New struct.
3370 (gdbtypes_post_init): Add builtin_bfloat16.
3371 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3372 (floatformats_bfloat16): New struct.
3373 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3374 (i386_ymm_type): Add field "v16_bfloat16"
3375 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3376 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3377 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3378 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3379 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3380 * features/i386/64bit-avx512.c: Regenerated.
3381 * features/i386/64bit-sse.xml: Add bfloat16 type.
3382 * features/i386/64bit-sse.c: Regenerated.
3383
1347d111
FW
33842020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3385
3386 * i386-tdep.c (i386_zmm_type): Fix field names.
3387 (i386_ymm_type): Fix field names.
3388
7a4e8e7d
TBA
33892020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3390
3391 * breakpoint.c: Fix typo in the help message of the
3392 "set breakpoint condition-evaluation" command.
3393
cf4ac4be
KR
33942020-09-10 Kamil Rytarowski <n54@gmx.com>
3395
3396 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3397 * (nbsd_nat_target::pid_to_exec_file)
3398 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3399 (nbsd_nat_target::post_startup_inferior)
3400 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3401 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3402 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3403 * (nbsd_thread_lister): Remove.
3404
f404573e
KR
34052020-09-10 Kamil Rytarowski <n54@gmx.com>
3406
3407 * fork-inferior.c (startup_inferior): Avoid double free.
3408
1ccb2c17
KR
34092020-09-10 Kamil Rytarowski <n54@gmx.com>
3410
3411 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3412 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3413
feedfcc7
KR
34142020-09-10 Kamil Rytarowski <n54@gmx.com>
3415
3416 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3417 * netbsd-nat.c: Include <sys/ptrace.h>.
3418 * (netbsd_nat::enable_proc_events): Add.
3419
c489f8c6
KR
34202020-09-10 Kamil Rytarowski <n54@gmx.com>
3421
3422 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3423 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3424 (netbsd_nat::for_each_thread): Add.
3425 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3426 "gdbsupport/common-debug.h".
3427 * (netbsd_nat::netbsd_thread_lister)
3428 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3429 (netbsd_nat::for_each_thread): Add.
3430
330662f6
KR
34312020-09-10 Kamil Rytarowski <n54@gmx.com>
3432
3433 * netbsd-nat.h: Include <unistd.h>.
3434 * (netbsd_nat::pid_to_exec_file): Add.
3435 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3436 * (netbsd_nat::pid_to_exec_file) Add.
3437
70b67307
KR
34382020-09-10 Kamil Rytarowski <n54@gmx.com>
3439
3440 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3441
99cf6da6
KR
34422020-09-10 Kamil Rytarowski <n54@gmx.com>
3443
3444 * netbsd-nat.h: New file.
3445 * netbsd-nat.c: Likewise.
3446
1b788fb6
TT
34472020-09-09 Tom Tromey <tromey@adacore.com>
3448
3449 * ada-lang.c (remove_extra_symbols): Do not increment when
3450 removing an element
3451
03b0a45f
TT
34522020-09-08 Tom Tromey <tromey@adacore.com>
3453
3454 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3455
3cae4447
TT
34562020-09-08 Tom Tromey <tromey@adacore.com>
3457
3458 PR win32/25302:
3459 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3460 (gdb_bfd_init_data): New function.
3461 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3462
7f08fd51
TBA
34632020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3464
3465 * infrun.c (fetch_inferior_event): Use
3466 `switch_to_target_no_thread` to switch the target.
3467
3e6ff933
TT
34682020-09-06 Tom Tromey <tom@tromey.com>
3469
3470 * symfile.h (dwarf2_free_objfile): Don't declare.
3471
e56798df
AKS
34722020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3473
3474 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3475 to match 16 byte real/complex type generated by Flang compiler.
3476
8f5c6526
TV
34772020-09-03 Tom de Vries <tdevries@suse.de>
3478
3479 PR breakpoint/26546
3480 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3481 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3482
c5065df0
SM
34832020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3484
3485 * maint.c (index_digits): New function.
3486 (struct maint_print_section_data): Remove.
3487 (print_bfd_section_info): Remove print_data parameter, add arg
3488 and index_digits.
3489 (print_objfile_section_info): Likewise.
3490 (print_bfd_section_info_maybe_relocated): Likewise (plus
3491 objfile).
3492 (maintenance_info_sections): Adjust calls.
3493
02c6f3f1
TT
34942020-09-02 Tom Tromey <tromey@adacore.com>
3495
3496 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3497 for null pointers.
3498 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3499
ef5e5b0b
SM
35002020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3501
3502 * bcache.h (struct bcache) <insert>: Change type of `added` to
3503 pointer to bool.
3504 * bcache.c (bcache::insert): Likewise.
3505 * gdbtypes.c (check_types_worklist): Adjust.
3506 * psymtab.c (add_psymbol_to_bcache): Adjust.
3507
973695d6
KB
35082020-08-31 Kevin Buettner <kevinb@redhat.com>
3509
3510 * corelow.c (unordered_set): Include.
3511 (class core_target): Add field 'm_core_unavailable_mappings'.
3512 (core_target::build_file_mappings): Print only one warning
3513 per inaccessible file. Add unavailable/broken mappings
3514 to m_core_unavailable_mappings.
3515 (core_target::xfer_partial): Call...
3516 (core_target::xfer_memory_via_mappings): New method.
3517
264fc0e2
SM
35182020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3519
3520 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3521 type to bool.
3522
2de01bdb
SM
35232020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3524
3525 * dwarf2/read.c (struct field_info): Fix indentation.
3526
f3bd50f1
SM
35272020-08-31 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3530 ordering in comment.
3531 * frame.c (frame_id_eq): Fix indentation.
3532
22b9b4b0
SL
35332020-08-31 Scott Linder <scott@scottlinder.com>
3534 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3537 inline frame ids in outer frame.
3538
84154d16
SM
35392020-08-31 Simon Marchi <simon.marchi@efficios.com>
3540
3541 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3542 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3543 (outer_frame_id): Use FID_STACK_OUTER instead of
3544 FID_STACK_INVALID.
3545 (frame_id_p): Don't check for outer_frame_id.
3546
8efaf6b3
SM
35472020-08-31 Simon Marchi <simon.marchi@efficios.com>
3548
3549 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3550 regnum/frame in value. Call allocate_value_lazy.
3551 * frame.c (frame_unwind_register_value): Use
3552 val_print_not_saved.
3553
fe1fe7ea
SM
35542020-08-31 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3557
f7c7700d
PA
35582020-08-29 Pedro Alves <pedro@palves.net>
3559
3560 * progspace.c (print_program_space): Use all_inferiors. Switch to
3561 the inferior before calling target_pid_to_str.
3562
e0814aae
TT
35632020-08-28 Tom Tromey <tom@tromey.com>
3564
3565 * xcoffread.c (xcoff_end_psymtab): Update comment.
3566 * dbxread.c (dbx_end_psymtab): Update comment.
3567
626d2320
TV
35682020-08-28 Tom de Vries <tdevries@suse.de>
3569
3570 PR breakpoint/26544
3571 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3572 event_location.
3573 (create_breakpoint): Same.
3574 (base_breakpoint_decode_location): Same.
3575 (bkpt_create_sals_from_location): Same.
3576 (bkpt_decode_location): Same.
3577 (bkpt_probe_create_sals_from_location): Same.
3578 (bkpt_probe_decode_location): Same.
3579 (tracepoint_create_sals_from_location): Same.
3580 (tracepoint_decode_location): Same.
3581 (tracepoint_probe_decode_location): Same.
3582 (strace_marker_create_sals_from_location): Same.
3583 (strace_marker_decode_location): Same.
3584 (create_sals_from_location_default): Same.
3585 (decode_location_default): Same.
3586 * breakpoint.h (struct breakpoint_ops): Same.
3587 (create_breakpoint): Same.
3588 * linespec.h (decode_line_full): Same.
3589 * linespec.c (decode_line_full): Same. Throw error if
3590 result.size () == 0.
3591
df631783
PA
35922020-08-27 Pedro Alves <pedro@palves.net>
3593
3594 PR gdb/26524
3595 * breakpoint.c (until_break_fsm) <location_breakpoint,
3596 caller_breakpoint>: Delete fields.
3597 <breakpoints>: New field.
3598 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3599 two individual breakpoints.
3600 (until_break_fsm::should_stop): Loop over breakpoints in the
3601 breakpoint vector.
3602 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3603 vector.
3604 (until_break_command): Handle location expanding into multiple
3605 sals.
3606
b2b38aa4
PA
36072020-08-27 Pedro Alves <pedro@palves.net>
3608
3609 PR gdb/26523
3610 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3611 bp_until breakpoints user-specified locations. Update intro
3612 comment.
3613
b886559f
SM
36142020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3615
3616 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3617 gdb_bfd_sections): New.
3618 * maint.c (print_bfd_section_info): Change param type to
3619 maint_print_section_data.
3620 (print_objfile_section_info): Likewise.
3621 (print_bfd_section_info_maybe_relocated): Likewise.
3622 (maintenance_info_sections): Use gdb_bfd_sections.
3623
4c6e63bf
SV
36242020-08-25 Shahab Vahedi <shahab@synopsys.com>
3625
3626 * MAINTAINERS: Add ARC target and maintainer.
3627
8d7f0635
AK
36282020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3629
3630 * configure.tgt: ARC support for GNU/Linux.
3631 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3632 * arc-linux-tdep.c: New file.
3633 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3634 * arc-tdep.c (arc_write_pc): Use it.
3635
fdd8731b
SV
36362020-08-25 Shahab Vahedi <shahab@synopsys.com>
3637
3638 * arc-tdep.c (arc_check_for_hardware_loop): New.
3639 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3640
22459524
SV
36412020-08-25 Shahab Vahedi <shahab@synopsys.com>
3642
3643 * arc-tdep.h: Include "gdbarch.h".
3644
995d3a19
SV
36452020-08-25 Shahab Vahedi <shahab@synopsys.com>
3646
3647 * arch/arc.h
3648 (arc_gdbarch_features): New class to stir the selection of target XML.
3649 (arc_create_target_description): Use FEATURES to choose XML target.
3650 (arc_lookup_target_description): Use arc_create_target_description
3651 to create _new_ target descriptions or return the already created
3652 ones if the FEATURES is the same.
3653 * arch/arc.c: Implementation of prototypes described above.
3654 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3655 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3656 * arc-tdep.c (*_feature_name): Make feature names consistent.
3657 (arc_register_feature): A new struct to hold information about
3658 registers of a particular target/feature.
3659 (arc_check_tdesc_feature): Check if XML provides registers in
3660 compliance with ARC_REGISTER_FEATURE structs.
3661 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3662 (determine_*_reg_feature_set): Which feature name to look for.
3663 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3664 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3665 to expected ISA enums to be used in arc_gdbarch_features structs.
3666 * features/Makefile (FEATURE_XMLFILES): Add new files.
3667 * gdb/features/arc/v1-aux.c: New file.
3668 * gdb/features/arc/v1-aux.xml: Likewise.
3669 * gdb/features/arc/v1-core.c: Likewise.
3670 * gdb/features/arc/v1-core.xml: Likewise.
3671 * gdb/features/arc/v2-aux.c: Likewise.
3672 * gdb/features/arc/v2-aux.xml: Likewise.
3673 * gdb/features/arc/v2-core.c: Likewise.
3674 * gdb/features/arc/v2-core.xml: Likewise.
3675 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3676
3945d2d7
GM
36772020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3678 Andrew Burgess <andrew.burgess@embecosm.com>
3679
3680 PR m2/26372
fc5d6901 3681 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3682 an assert. Remove single element array indexing pattern as the
3683 MULTI_SUBSCRIPT support will handle this case too.
3684
2677f2d3
SM
36852020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3686
3687 * value.h (valprint_check_validity): Move declaration from
3688 here...
3689 * valprint.h (valprint_check_validity): ... to here.
3690
c426fddb
SM
36912020-08-24 Simon Marchi <simon.marchi@efficios.com>
3692
3693 * debug.h: New file.
3694 * debug.c (debug_prefixed_vprintf): New function.
3695 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3696 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3697
1eb8556f
SM
36982020-08-24 Simon Marchi <simon.marchi@efficios.com>
3699
3700 * infrun.h (infrun_debug_printf_1): New function declaration.
3701 (infrun_debug_printf): New macro.
3702 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3703 throughout.
3704 (infrun_debug_printf): New function.
3705 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3706 (handle_jit_event): Likewise.
3707
b8fff44e
MW
37082020-08-21 Mark Wielaard <mark@klomp.org>
3709
3710 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3711
d19c3068
SM
37122020-08-22 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * frame.c (enum class frame_id_status): New.
3715 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3716 (fprintf_frame): Update.
3717 (compute_frame_id): Set frame id status to "computing" on entry.
3718 Set it back to "not_computed" on failure and to "computed" on
3719 success.
3720 (get_frame_id): Assert the frame id is not being computed.
3721 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3722 (create_new_frame): Likewise.
3723 (frame_cleanup_after_sniffer): Update assert.
3724
b70e516e
SM
37252020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3726
3727 * regcache.c (pid_ptid_regcache_map): New type.
3728 (target_ptid_regcache_map): Remove.
3729 (target_pid_ptid_regcache_map): New type.
3730 (regcaches): Change type to target_pid_ptid_regcache_map.
3731 (get_thread_arch_aspace_regcache): Update.
3732 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3733 case.
3734 (regcaches_size): Update.
3735 (regcache_count): Update.
3736 (registers_changed_ptid_target_pid_test): New.
3737 (_initialize_regcache): Register new test.
3738
cdd9148a
SM
37392020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3740
3741 * regcache.c (regcache_count): New.
3742 (struct regcache_test_data): New.
3743 (regcache_test_data_up): New.
3744 (populate_regcaches_for_test): New.
3745 (regcaches_test): Remove.
3746 (get_thread_arch_aspace_regcache_test): New.
3747 (registers_changed_ptid_all_test): New.
3748 (registers_changed_ptid_target_test): New.
3749 (registers_changed_ptid_target_ptid_test): New.
3750 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3751 (_initialize_regcache): Register new tests.
3752
dd125343
SM
37532020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3754
3755 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3756 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3757 gdbarch and aspace parameter. Use current inferior's aspace.
3758 Validate regcache's arch value.
3759 (regcaches_test): Update.
3760
3ee93972
SM
37612020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3762
3763 * regcache.c (regcaches_test): Call registers_changed.
3764
33bf4c5c
TBA
37652020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3766
3767 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3768
c2fd7fae
AKS
37692020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3770
3771 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3772 to find the end of prologue for flang compiled binaries.
3773 * arm-tdep.c (arm_skip_prologue): Likewise.
3774 * i386-tdep.c (i386_skip_prologue): Likewise.
3775 * producer.c (producer_is_llvm): New function.
3776 (producer_parsing_tests): Added new tests for clang/flang.
3777 * producer.h (producer_is_llvm): New declaration.
3778
9327494e
SM
37792020-08-18 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * linux-nat.c (linux_nat_debug_printf): New function.
3782 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3783
d138725a
AM
37842020-08-18 Aaron Merey <amerey@redhat.com>
3785
3786 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3787 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3788 (CLIBS): Add DEBUGINFOD_LIBS.
3789
f9b11e6b
ST
37902020-08-17 Sergei Trofimovich <siarheit@google.com>
3791
3792 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3793 'gdbarch_num_regs'.
3794
3ae7ab99
TT
37952020-08-17 Tom Tromey <tromey@adacore.com>
3796
3797 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3798 ada_get_decoded_value returns NULL.
3799
b017825f
TT
38002020-08-17 Tom Tromey <tromey@adacore.com>
3801
3802 * python/py-inferior.c (infpy_search_memory): Use
3803 gdb_py_object_from_ulongest.
3804 * python/py-infevents.c (create_inferior_call_event_object)
3805 (create_memory_changed_event_object): Use
3806 gdb_py_object_from_ulongest.
3807 * python/py-linetable.c (ltpy_entry_get_pc): Use
3808 gdb_py_object_from_ulongest.
3809
7635cf79
SM
38102020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3811
3812 * loc.c (class symbol_needs_eval_context): Fix indentation.
3813
f54be24b
SM
38142020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3815
3816 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3817 bool.
3818
53d5a2a5
TV
38192020-08-17 Tom de Vries <tdevries@suse.de>
3820
3821 PR gdb/26393
3822 * gdbtypes.c (dump_dynamic_prop): New function.
3823 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3824
547ce8f0
TV
38252020-08-15 Tom de Vries <tdevries@suse.de>
3826
3827 PR backtrace/26390
3828 * stack.c (print_frame_args): Temporarily set the selected
3829 frame to FRAME while printing the frame's arguments.
3830
6ea815e7
PFC
38312020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3832
3833 PR breakpoints/26385
3834 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3835 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3836
6e562fa3
PFC
38372020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3838
3839 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3840 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3841 and >= to check return value instead of == -1 and != -1.
3842
d369b608
SM
38432020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3844
3845 * utils.h (class gdb_argv) <as_array_view>: New method.
3846 * utils.c (gdb_argv_as_array_view_test): New.
3847 (_initialize_utils): Register selftest.
3848 * maint.c (maintenance_selftest): Use the new method.
3849
b31488a3
KR
38502020-08-13 Kamil Rytarowski <n54@gmx.com>
3851
3852 * target.h (supports_dumpcore, dumpcore): New
3853 function declarations.
3854 * target.c (supports_dumpcore, dumpcore): New
3855 functions.
3856 * target-delegates.c: Rebuild.
3857 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3858 and target_dumpcore ().
3859
002a3166
AM
38602020-08-13 Aaron Merey <amerey@redhat.com>
3861
3862 * debuginfod-support.c: Replace global variables with user_data.
3863
ece5bc8a
SM
38642020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3865
3866 * maint.c (maintenance_selftest): Split args and pass array_view
3867 to run_tests.
3868
6d8a0a5e
LM
38692020-08-12 Luis Machado <luis.machado@linaro.org>
3870
3871 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3872 type's length.
3873 Use %s and pulongest to print the length.
3874
7cf663a9
PA
38752020-08-12 Pedro Alves <palves@redhat.com>
3876
3877 * NEWS: Move "Multi-target debugging support" item to the
3878 "Changes since GDB 9" section.
3879
27c7b875
PA
38802020-08-12 Pedro Alves <palves@redhat.com>
3881
3882 PR gdb/26336
3883 * progspace.c (program_space::remove_objfile): Invalidate the
3884 frame cache.
3885
1796a2a1
TV
38862020-08-11 Tom de Vries <tdevries@suse.de>
3887
3888 * MAINTAINERS: Mark ms1 as deleted.
3889
f8e3fe0d
LM
38902020-08-10 Luis Machado <luis.machado@linaro.org>
3891
3892 PR gdb/26310
3893
3894 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3895 act accordingly.
3896 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3897 movz/str/stur/stp skipping behavior.
3898
cc308722
LM
38992020-08-10 Luis Machado <luis.machado@linaro.org>
3900
3901 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3902 struct user_sve_header instead of struct sve_context.
3903
041d9819
SM
39042020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3905
3906 * read.h (dwarf2_fetch_die_loc_sect_off,
3907 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3908 `void *` parameter with function_view.
3909 * read.c (dwarf2_fetch_die_loc_sect_off,
3910 dwarf2_fetch_die_loc_cu_off): Likewise.
3911 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3912 (per_cu_dwarf_call): Adjust.
3913 (get_frame_address_in_block_wrapper): Remove.
3914 (indirect_synthetic_pointer): Adjust.
3915 (get_ax_pc): Remove.
3916 (dwarf2_compile_expr_to_ax): Adjust.
3917
38f8aa06
TV
39182020-08-08 Tom de Vries <tdevries@suse.de>
3919
3920 PR build/26344
3921 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3922 constructor.
3923 * regcache.c (get_thread_arch_aspace_regcache): Same.
3924
a52b3ae2
TT
39252020-08-07 Tom Tromey <tromey@adacore.com>
3926
3927 * ravenscar-thread.c
3928 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3929 New method.
3930 (ravenscar_thread_target::wait): Check
3931 runtime_initialized.
3932 (ravenscar_thread_target::prepare_to_store)
3933 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3934 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3935 (ravenscar_thread_target::stopped_by_watchpoint)
3936 (ravenscar_thread_target::stopped_data_address)
3937 (ravenscar_thread_target::core_of_thread): Use
3938 scoped_restore_current_thread and
3939 set_base_thread_from_ravenscar_task.
3940
0e29517d
TT
39412020-08-07 Tom Tromey <tromey@adacore.com>
3942
3943 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3944
592f9bd7
TT
39452020-08-07 Tom Tromey <tromey@adacore.com>
3946
3947 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3948 update_inferior_ptid before update_thread_list.
3949 (temporarily_change_regcache_ptid): New class.
3950 (ravenscar_thread_target::fetch_registers)
3951 (ravenscar_thread_target::store_registers)
3952 (ravenscar_thread_target::prepare_to_store): Use base thread when
3953 forwarding operation.
3954
39e2018a
TT
39552020-08-07 Tom Tromey <tromey@adacore.com>
3956
3957 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3958 "is_pid" case.
3959
2080266b
TT
39602020-08-07 Tom Tromey <tromey@adacore.com>
3961
3962 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3963 New methods.
3964 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3965 first.
3966 (ravenscar_thread_target::add_thread): Rename from
3967 ravenscar_add_thread.
3968 (ravenscar_thread_target::update_thread_list): Use a lambda.
3969 (ravenscar_thread_target::xfer_partial): New method.
3970
78c02f21
TT
39712020-08-07 Tom Tromey <tromey@adacore.com>
3972
3973 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3974 gdb::function_view.
3975 (iterate_over_live_ada_tasks): Change type of argument.
3976 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3977 of argument.
3978
d5d833af
TT
39792020-08-07 Tom Tromey <tromey@adacore.com>
3980
3981 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3982 Remove.
3983 (ravenscar_thread_target::extra_thread_info): Remove.
3984 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3985 defer to target beneath for non-Ravenscar threads.
3986
a8ac85bb
TT
39872020-08-07 Tom Tromey <tromey@adacore.com>
3988
3989 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3990 get_base_thread_from_ravenscar_task>: Now methods.
3991 <m_cpu_map>: New member.
3992 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3993 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3994 (ravenscar_thread_target::task_is_currently_active): Update.
3995 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3996 Now a method.
3997 (ravenscar_thread_target::add_active_thread): Put initial thread
3998 into the m_cpu_map.
3999
550ab58d
TT
40002020-08-07 Tom Tromey <tromey@adacore.com>
4001
4002 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4003 event_ptid.
4004
e9546579
TT
40052020-08-07 Tom Tromey <tromey@adacore.com>
4006
4007 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4008 runtime_initialized.
4009
3d4470e5
TT
40102020-08-07 Tom Tromey <tromey@adacore.com>
4011
4012 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4013 add_active_thread.
4014 (ravenscar_thread_target::add_active_thread): Now public.
4015 (ravenscar_inferior_created): Call add_active_thread after pushing
4016 the target.
4017
888bdb2b
SM
40182020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4019
4020 * regcache.c (ptid_regcache_map): New type.
4021 (target_ptid_regcache_map): New type.
4022 (regcaches): Change type to target_ptid_regcache_map.
4023 (get_thread_arch_aspace_regcache): Update to regcaches' new
4024 type.
4025 (regcache_thread_ptid_changed): Likewise.
4026 (registers_changed_ptid): Likewise.
4027 (regcaches_size): Likewise.
4028 (regcaches_test): Update.
4029 (regcache_thread_ptid_changed): Update.
4030 * regcache.h (regcache_up): New type.
4031 * gdbsupport/ptid.h (hash_ptid): New struct.
4032
b161a60d
SM
40332020-08-07 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * observable.h (thread_ptid_changed): Add parameter
4036 `process_stratum_target *`.
4037 * infrun.c (infrun_thread_ptid_changed): Add parameter
4038 `process_stratum_target *` and use it.
4039 (selftests): New namespace.
4040 (infrun_thread_ptid_changed): New function.
4041 (_initialize_infrun): Register selftest.
4042 * regcache.c (regcache_thread_ptid_changed): Add parameter
4043 `process_stratum_target *` and use it.
4044 (regcache_thread_ptid_changed): New function.
4045 (_initialize_regcache): Register selftest.
4046 * thread.c (thread_change_ptid): Pass target to
4047 thread_ptid_changed observable.
4048
d2854d8d
CT
40492020-08-06 Caroline Tice <cmtice@google.com>
4050
fe4c3d43
SM
4051 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4052 (struct dwp_sections): Update field comments. Add loclists and
4053 rnglists fields.
4054 (struct virtual_v2_dwo_sections): Rename struct to
4055 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4056 size & offset fields for loclists and rnglists.
4057 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4058 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4059 skipping dummy type units.
4060 (create_dwp_hash_table): Update the large comment above the function to
4061 discuss Version 5 DWP files as well, with references. Update all the
4062 version checks in the function to check for version 5 as well. Add new
4063 section at the end to create dwp hash table for version 5.
4064 (create_dwp_v2_section): Rename function to
4065 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4066 Add V5 to error message text.
4067 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4068 into calls to create_dwp_v2_or_v5_section.
4069 (create_dwo_unit_in_dwp_v5): New function.
4070 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4071 check for version2; add else clause to handle version 5.
4072 (open_and_init_dwo_file): Add code to check dwarf version & only call
4073 create_debug_types_hash_table (with sections.types) if version is not 5;
4074 else call create_debug_type_hash_table, with sections.info.
4075 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4076 version 5.
4077 (dwarf2_locate_v5_dwp_sections): New function.
4078 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4079 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4080
159ed7d9
SM
40812020-08-06 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * regcache.h (class regcache): Remove friend
4084 registers_changed_ptid.
4085 <regcache_thread_ptid_changed>: Remove.
4086 <regcaches>: Remove.
4087 * regcache.c (regcache::regcaches): Rename to...
4088 (regcaches): ... this. Make static.
4089 (get_thread_arch_aspace_regcache): Update.
4090 (regcache::regcache_thread_ptid_changed): Rename to...
4091 (regcache_thread_ptid_changed): ... this. Update.
4092 (class regcache_access): Remove.
4093 (regcaches_test): Update.
4094 (_initialize_regcache): Update.
4095 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4096 <forward_list>.
4097
174981ae
SM
40982020-08-06 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * regcache.h (class regcache) <current_regcache>: Rename to...
4101 <regcaches>: ... this. Move doc here.
4102 * regcache.c (regcache::current_regcache) Rename to...
4103 (regcache::regcaches): ... this. Move doc to header.
4104 (get_thread_arch_aspace_regcache): Update.
4105 (regcache::regcache_thread_ptid_changed): Update.
4106 (registers_changed_ptid): Update.
4107 (class regcache_access) <current_regcache_size>: Rename to...
4108 <regcaches_size>: ... this.
4109 (current_regcache_test): Rename to...
4110 (regcaches_test): ... this.
4111 (_initialize_regcache): Update.
4112
ed908db6
VC
41132020-08-06 Victor Collod <vcollod@nvidia.com>
4114
4115 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4116
b5582ab7
KB
41172020-08-05 Kevin Buettner <kevinb@redhat.com>
4118
4119 * corelow.c (core_target::build_file_mappings): Don't output
4120 null pathname in warning.
4121
ea946b86
SM
41222020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4123
4124 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4125 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4126 gdb.dwarf2/dw2-single-line-discriminators.exp,
4127 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4128
57d02173
TT
41292020-08-05 Tom Tromey <tromey@adacore.com>
4130
4131 PR rust/26197:
4132 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4133 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4134 Fix off-by-one and type size errors in ordinary case.
4135
5555c86d
TV
41362020-08-05 Tom de Vries <tdevries@suse.de>
4137
4138 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4139 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4140
97916bfe
SM
41412020-08-04 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * frame.h (frame_id_p): Return bool.
4144 (frame_id_artificial_p): Return bool.
4145 (frame_id_eq): Return bool.
4146 (has_stack_frames): Return bool.
4147 (get_selected_frame): Fix typo in comment.
4148 (get_frame_pc_if_available): Return bool.
4149 (get_frame_address_in_block_if_available): Return bool.
4150 (get_frame_func_if_available): Return bool.
4151 (read_frame_register_unsigned): Return bool.
4152 (get_frame_register_bytes): Return bool.
4153 (safe_frame_unwind_memory): Return bool.
4154 (deprecated_frame_register_read): Return bool.
4155 (frame_unwinder_is): Return bool.
4156 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4157 bool.
4158 <this_id::p>: Likewise.
4159 <prev_p>: Likewise.
4160 (frame_stash_add): Return bool.
4161 (get_frame_id): Use bool.
4162 (frame_id_build_special) Use bool.
4163 (frame_id_build_unavailable_stack): Use bool.
4164 (frame_id_build): Use bool.
4165 (frame_id_p): Return bool, use true/false instead of 1/0.
4166 (frame_id_artificial_p): Likewise.
4167 (frame_id_eq): Likewise.
4168 (frame_id_inner): Likewise.
4169 (get_frame_func_if_available): Likewise.
4170 (read_frame_register_unsigned): Likewise.
4171 (deprecated_frame_register_read): Likewise.
4172 (get_frame_register_bytes): Likewise.
4173 (has_stack_frames): Likewise.
4174 (inside_main_func): Likewise.
4175 (inside_entry_func): Likewise.
4176 (get_frame_pc_if_available): Likewise.
4177 (get_frame_address_in_block_if_available): Likewise.
4178 (frame_unwinder_is): Likewise.
4179 (safe_frame_unwind_memory): Likewise.
4180 (frame_unwind_arch): Likewise.
4181
fedfee88
SM
41822020-08-04 Simon Marchi <simon.marchi@efficios.com>
4183
4184 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4185 type to cached_copy_status.
4186 (fprintf_frame): Adjust.
4187 (get_frame_func_if_available): Adjust.
4188 (frame_cleanup_after_sniffer): Adjust.
4189
6cfa9b59
MW
41902020-08-04 Mark Wielaard <mark@klomp.org>
4191
4192 * MAINTAINERS (Write After Approval): Update email address.
4193
66d6346b
SM
41942020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4195
4196 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4197 dynamic_prop::const_val.
4198
8a6d5e35
SM
41992020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4200
4201 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4202 dynamic_prop::kind.
4203
51d6067d
SM
42042020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4205
4206 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4207
b26e2ae7
JM
42082020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4209
4210 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4211
39791af2
JM
42122020-08-04 Weimin Pan <weimin.pan@oracle.com>
4213 Jose E. Marchesi <jose.marchesi@oracle.com>
4214
4215 * configure.tgt: Add entry for bpf-*-*.
4216 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4217 (ALLDEPFILES): Add bpf-tdep.c.
4218 * bpf-tdep.c: New file.
4219 * MAINTAINERS: Add bpf target and maintainer.
4220 * NEWS: Mention the support for the new target.
4221
521894aa
TV
42222020-08-04 Tom de Vries <tdevries@suse.de>
4223
4224 PR symtab/23270
4225 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4226 Error.
4227
5d6356e9
JB
42282020-08-03 John Baldwin <jhb@FreeBSD.org>
4229
4230 * syscalls/freebsd.xml: Regenerate.
4231
0cf82b81
JB
42322020-08-03 John Baldwin <jhb@FreeBSD.org>
4233
4234 * syscalls/update-freebsd.sh: Fix usage and year range.
4235
8f34b746
TV
42362020-08-03 Tom de Vries <tdevries@suse.de>
4237
4238 PR symtab/26333
4239 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4240 DW_LNE_lo_user/DW_LNE_hi_user range.
4241
5e500d33
SM
42422020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4243
4244 PR ada/26318
4245 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4246 kind.
4247
78319c15
TBA
42482020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4249
4250 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4251
4c55e970
TBA
42522020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4253
4254 * breakpoint.c (set_breakpoint_condition): Update the condition
4255 expressions after checking that the input condition string parses
4256 successfully and does not contain junk at the end.
4257
1e620590
TBA
42582020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4259
4260 * breakpoint.c (set_breakpoint_condition): Update the
4261 condition string after parsing the new condition successfully.
4262
c8693053
RO
42632020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4264
4265 * proc-api.c (_STRUCTURED_PROC): Don't define.
4266 * proc-events.c: Likewise.
4267 * proc-flags.c: Likewise.
4268 * proc-why.c: Likewise.
4269 * procfs.c: Likewise.
4270
4271 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4272 * configure, config.in: Regenerate.
4273
5a99adb8
TV
42742020-07-30 Tom de Vries <tdevries@suse.de>
4275
4276 PR build/26320
4277 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4278 m_red/m_green/m_blue in a union.
4279
8ba83e91
TV
42802020-07-29 Tom de Vries <tdevries@suse.de>
4281
4282 PR tdep/26280
4283 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4284
f75a0693
AB
42852020-07-28 Tom Tromey <tromey@adacore.com>
4286
4287 PR symtab/26270:
4288 * symtab.h (find_pc_partial_function_sym): Declare.
4289 * cli/cli-cmds.c (disassemble_command): Use
4290 find_pc_partial_function_sym. Check asm_demangle.
4291 * blockframe.c (cache_pc_function_sym): New global.
4292 (cache_pc_function_name): Remove.
4293 (clear_pc_function_cache): Update.
4294 (find_pc_partial_function_sym): New function, from
4295 find_pc_partial_function.
4296 (find_pc_partial_function): Rewrite using
4297 find_pc_partial_function_sym.
4298
16f3242c
TT
42992020-07-28 Tom Tromey <tromey@adacore.com>
4300
4301 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4302 help. Add usage.
4303
4888741a
TT
43042020-07-28 Tom Tromey <tromey@adacore.com>
4305
4306 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4307 <DW_OP_GNU_variable_value>: Cast to address type.
4308
4d46f402
KR
43092020-07-28 Kamil Rytarowski <n54@gmx.com>
4310
4311 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4312 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4313 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4314 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4315 (nbsd_get_siginfo_type): New.
4316 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4317 (_initialize_nbsd_tdep): New.
4318
d70f978b
L
43192020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4320
4321 PR binutils/26301
4322 * configure: Regenerated.
4323
377170fa
L
43242020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4325
4326 PR binutils/26301
4327 * configure: Regenerated.
4328
43d5901d
AB
43292020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 * python/py-frame.c: Remove 'user-regs.h' include.
4332 (frapy_read_register): Rewrite to make use of
4333 gdbpy_parse_register_id.
4334 * python/py-registers.c (gdbpy_parse_register_id): New function,
4335 moved here from python/py-unwind.c. Updated the return type, and
4336 also accepts register descriptor objects.
4337 * python/py-unwind.c: Remove 'user-regs.h' include.
4338 (pyuw_parse_register_id): Moved to python/py-registers.c.
4339 (unwind_infopy_add_saved_register): Update to use
4340 gdbpy_parse_register_id.
4341 (pending_framepy_read_register): Likewise.
4342 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4343
14fa8fb3
AB
43442020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4345
4346 * python/py-registers.c: Add 'user-regs.h' include.
4347 (register_descriptor_iter_find): New function.
4348 (register_descriptor_iterator_object_methods): New static global
4349 methods array.
4350 (register_descriptor_iterator_object_type): Add pointer to methods
4351 array.
4352
ddce1758
JB
43532020-07-27 John Baldwin <jhb@FreeBSD.org>
4354
4355 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4356 for all architectures on FreeBSD 11.3 and later.
4357
a4089f52
TT
43582020-07-27 Tom Tromey <tromey@adacore.com>
4359
4360 * gcore.h (load_corefile): Don't declare.
4361
95420d30
TV
43622020-07-27 Tom de Vries <tdevries@suse.de>
4363
4364 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4365 * config.in: Regenerate.
4366 * configure: Regenerate.
4367
05a6b8c2
EZ
43682020-07-26 Eli Zaretskii <eliz@gnu.org>
4369
4370 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4371 ws2tcpip.h. When checking whether socklen_t type is defined, use
4372 ws2tcpip.h if it is available and sys/socket.h isn't.
4373 * configure: Regenerate.
4374 * config.in: Regenerate.
4375
e79eb02f
AB
43762020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4377
4378 PR fortran/23051
4379 PR fortran/26139
4380 * valops.c (value_ind): Pass address to
4381 readjust_indirect_value_type.
4382 * value.c (readjust_indirect_value_type): Make parameter
4383 non-const, and add extra address parameter. Resolve original type
4384 before using it.
4385 * value.h (readjust_indirect_value_type): Update function
4386 signature and comment.
4387
876518dd
TV
43882020-07-25 Tom de Vries <tdevries@suse.de>
4389
4390 PR symtab/26243
4391 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4392 entries.
4393
f6720b1c
AM
43942020-07-24 Aaron Merey <amerey@redhat.com>
4395
4396 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4397 * configure: Rebuild.
4398
513487e1
KB
43992020-07-23 Kevin Buettner <kevinb@redhat.com>
4400
4401 PR corefiles/26294
4402 * corelow.c (_initialize_corelow): Add period to help text
4403 for "maintenance print core-file-backed-mappings".
4404
e7bc9db8
PA
44052020-07-23 Pedro Alves <pedro@palves.net>
4406
4407 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4408 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4409 meanwhile.
4410 * frame.c (frame_cache_generation, get_frame_cache_generation):
4411 New.
4412 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4413 (get_prev_frame_if_no_cycle): On exception, don't touch
4414 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4415 * frame.h (get_frame_cache_generation): Declare.
4416
90fcc466
TV
44172020-07-23 Tom de Vries <tdevries@suse.de>
4418
4419 PR tui/26282
4420 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4421 New default constructor.
4422
78344df7
AB
44232020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4426 exclude non-statement entries.
4427
b089853a
KB
44282020-07-22 Kevin Buettner <kevinb@redhat.com>
4429
4430 * NEWS (New commands): Mention new command
4431 "maintenance print core-file-backed-mappings".
4432
09c2f5d4
KB
44332020-07-22 Kevin Buettner <kevinb@redhat.com>
4434
4435 * corelow.c (gdbcmd.h): Include.
4436 (core_target::info_proc_mappings): New method.
4437 (get_current_core_target): New function.
4438 (maintenance_print_core_file_backed_mappings): New function.
4439 (_initialize_corelow): Add core-file-backed-mappings to
4440 "maint print" commands.
4441
9c5ec5c2 44422020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4443
9c5ec5c2
KB
4444 * linux-tdep.c (dump_note_entry_p): New function.
4445 (linux_dump_mapping_p_ftype): New typedef.
4446 (linux_find_memory_regions_full): Add new parameter,
4447 should_dump_mapping_p.
4448 (linux_find_memory_regions): Adjust call to
4449 linux_find_memory_regions_full.
4450 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4451 call to linux_find_memory_regions_full.
4452
db082f59
KB
44532020-07-22 Kevin Buettner <kevinb@redhat.com>
4454
4455 * corelow.c (solist.h, unordered_map): Include.
4456 (class core_target): Add field m_core_file_mappings and
4457 method build_file_mappings.
4458 (core_target::core_target): Call build_file_mappings.
4459 (core_target::~core_target): Free memory associated with
4460 m_core_file_mappings.
4461 (core_target::build_file_mappings): New method.
4462 (core_target::xfer_partial): Use m_core_file_mappings
4463 for memory transfers.
4464 * linux-tdep.c (linux_read_core_file_mappings): New
4465 function.
4466 (linux_core_info_proc_mappings): Rewrite to use
4467 linux_read_core_file_mappings.
4468 (linux_init_abi): Register linux_read_core_file_mappings.
4469
7e183d27
KB
44702020-07-22 Kevin Buettner <kevinb@redhat.com>
4471
4472 * arch-utils.c (default_read_core_file_mappings): New function.
4473 * arch-utils.c (default_read_core_file_mappings): Declare.
4474 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4475 * gdbarch.h, gdbarch.c: Regenerate.
4476
2735d421
KB
44772020-07-22 Kevin Buettner <kevinb@redhat.com>
4478
4479 PR corefiles/25631
4480 * corelow.c (core_target:xfer_partial): Revise
4481 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4482 case after first checking the stratum beneath the core
4483 target.
4484 (has_all_memory): Return true.
4485 * target.c (raw_memory_xfer_partial): Revise comment
4486 regarding use of has_all_memory.
4487
e56cb451
KB
44882020-07-22 Kevin Buettner <kevinb@redhat.com>
4489
4490 * exec.h (section_table_xfer_memory): Revise declaration,
4491 replacing section name parameter with an optional callback
4492 predicate.
4493 * exec.c (section_table_xfer_memory): Likewise.
4494 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4495 of section_table_xfer_memory.
4496
32fa152e
TT
44972020-07-22 Tom Tromey <tromey@adacore.com>
4498
4499 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4500 lookup_symbol_search_name.
4501
a67a1c41
AB
45022020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4503
4504 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4505 redundant local variable.
4506 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4507 reference, not pointer, update code accordingly.
4508
a7b4ff4f
SM
45092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4510 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4511
4512 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4513 * jit.c (jit_breakpoint_re_set_internal): Use the
4514 `skip_jit_symbol_lookup` field.
4515
2340e834
SM
45162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4517 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4518
4519 * jit.c (jit_read_descriptor): Define the descriptor address once,
4520 use twice.
4521 (jit_breakpoint_deleted): Move the declaration of the loop variable
4522 `iter` into the loop header.
4523 (jit_breakpoint_re_set_internal): Move the declaration of the local
4524 variable `objf_data` to the first point of definition.
4525 (jit_event_handler): Move the declaration of local variables
4526 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4527 Rename `objf` to `jited`.
4528
c1072906
SM
45292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4530
4531 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4532 Remove.
4533 * jit.c (get_jiter_objfile_data): Update.
4534
c8474dc3
TBA
45352020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4536 Simon Marchi <simon.marchi@polymtl.ca>
4537
4538 * jit.c (struct jit_program_space_data): Remove.
4539 (jit_program_space_key): Remove.
4540 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4541 stuff.
4542 (get_jit_program_space_data): Remove.
4543 (jit_breakpoint_deleted): Iterate on all of the program space's
4544 objfiles.
4545 (jit_inferior_init): Likewise.
4546 (jit_breakpoint_re_set_internal): Likewise. Also change return
4547 type to void.
4548 (jit_breakpoint_re_set): Pass current_program_space to
4549 jit_breakpoint_re_set_internal.
4550
77208eb7
SM
45512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4552
4553 * jit.h (struct jiter_objfile_data) <cached_code_address,
4554 jit_breakpoint>: Move to here from ...
4555 * jit.c (jit_program_space_data): ... here.
4556 (jiter_objfile_data::~jiter_objfile_data): Update.
4557 (jit_breakpoint_deleted): Update.
4558 (jit_breakpoint_re_set_internal): Update.
4559
8c1c720f
SM
45602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4561
4562 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4563 checks.
4564 (jit_read_descriptor): Remove NULL check.
4565 (jit_event_handler): Add an assertion.
4566
0e74a041
SM
45672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4568
4569 * jit.h (struct jit_objfile_data): Split into...
4570 (struct jiter_objfile_data): ... this ...
4571 (struct jited_objfile_data): ... and this.
4572 * objfiles.h (struct objfile) <jit_data>: Remove.
4573 <jiter_data, jited_data>: New fields.
4574 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4575 (jiter_objfile_data::~jiter_objfile_data): ... this.
4576 (get_jit_objfile_data): Rename to ...
4577 (get_jiter_objfile_data): ... this.
4578 (add_objfile_entry): Update.
4579 (jit_read_descriptor): Use get_jiter_objfile_data.
4580 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4581 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4582 (jit_inferior_exit_hook): Use objfile's jited_data field.
4583
238b5c9f
SM
45842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4585
4586 * jit.h: Forward-declare `struct minimal_symbol`.
4587 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4588 constructor, destructor, and an objfile* field.
4589 * jit.c (jit_objfile_data): Remove.
4590 (struct jit_objfile_data): Migrate from here to jit.h.
4591 (jit_objfile_data::~jit_objfile_data): New destructor
4592 implementation with code moved from free_objfile_data.
4593 (free_objfile_data): Delete.
4594 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4595 (jit_find_objf_with_entry_addr): Ditto.
4596 (jit_inferior_exit_hook): Ditto.
4597 (_initialize_jit): Remove the call to
4598 register_objfile_data_with_cleanup.
4599 * objfiles.h (struct objfile) <jit_data>: New field.
4600
fe053b9e
TBA
46012020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4602
4603 * jit.h: Forward-declare `struct objfile`.
4604 (jit_event_handler): Add a second parameter, the JITer objfile.
4605 * jit.c (jit_read_descriptor): Change the signature to take the
4606 JITer objfile as an argument instead of the jit_program_space_data.
4607 (jit_inferior_init): Update the call to jit_read_descriptor.
4608 (jit_event_handler): Use the new JITer objfile argument when calling
4609 jit_read_descriptor.
4610 * breakpoint.c (handle_jit_event): Update the call to
4611 jit_event_handler to pass the JITer objfile.
4612
4cec0c66
JB
46132020-07-21 John Baldwin <jhb@FreeBSD.org>
4614
4615 * gdbarch.c: Regenerate.
4616 * gdbarch.h: Regenerate.
4617 * gdbarch.sh (handle_segmentation_fault): Remove method.
4618 * infrun.c (handle_segmentation_fault): Remove.
4619 (print_signal_received_reason): Remove call to
4620 handle_segmentation_fault.
4621
0e42f66a
JB
46222020-07-21 John Baldwin <jhb@FreeBSD.org>
4623
4624 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4625 Rename to sparc64_linux_report_signal_info and add siggnal
4626 argument.
4627 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4628 instead of sparc64_linux_handle_segmentation_fault.
4629
77bdfeb2
JB
46302020-07-21 John Baldwin <jhb@FreeBSD.org>
4631
4632 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4633 i386_linux_report_signal_info instead of
4634 i386_linux_handle_segmentation_fault.
4635 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4636 to i386_linux_report_signal_info and add siggnal argument.
4637 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4638 of i386_linux_handle_segmentation_fault.
4639 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4640 to i386_linux_report_signal_info and add siggnal argument.
4641
ad97bfc5
JB
46422020-07-21 John Baldwin <jhb@FreeBSD.org>
4643
4644 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4645 hook if present.
4646
272bb05c
JB
46472020-07-21 John Baldwin <jhb@FreeBSD.org>
4648
4649 * gdbarch.c: Regenerate.
4650 * gdbarch.h: Regenerate.
4651 * gdbarch.sh (report_signal_info): New method.
4652 * infrun.c (print_signal_received_reason): Invoke gdbarch
4653 report_signal_info hook if present.
4654
baf8791e
AB
46552020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4656
4657 * python/py-registers.c : Add 'unordered_map' include.
4658 (gdbpy_new_reggroup): Renamed to...
4659 (gdbpy_get_reggroup): ...this. Update to only create register
4660 group descriptors when needed.
4661 (gdbpy_reggroup_iter_next): Update.
4662
f7306dac
AB
46632020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4664
4665 * python/py-registers.c (gdbpy_register_object_data): New static
4666 global.
4667 (gdbpy_register_object_data_init): New function.
4668 (gdbpy_new_register_descriptor): Renamed to...
4669 (gdbpy_get_register_descriptor): ...this, and update to reuse
4670 existing register descriptors where possible.
4671 (gdbpy_register_descriptor_iter_next): Update.
4672 (gdbpy_initialize_registers): Register new gdbarch data.
4673
05c309a8
SM
46742020-07-21 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * linux-nat.c (stopped_pids): Make static.
4677
d1fd641e
SM
46782020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4679
4680 PR ada/26235
4681 * gdbtypes.c (ada_discrete_type_low_bound,
4682 ada_discrete_type_high_bound): Handle undefined bounds.
4683
1de14d77
KR
46842020-07-21 Kamil Rytarowski <n54@gmx.com>
4685
4686 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4687 declaration.
4688 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4689 function.
4690
ed810cc7
JB
46912020-07-20 John Baldwin <jhb@FreeBSD.org>
4692
4693 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4694 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4695 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4696 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4697 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4698 method.
4699
ae5369e7
LC
47002020-07-20 Ludovic Courtès <ludo@gnu.org>
4701
4702 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4703 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4704 which are deprecated in Guile 3.0.
4705 * configure.ac (try_guile_versions): Add "guile-3.0".
4706 * configure (try_guile_versions): Regenerate.
4707 * NEWS: Update entry.
4708
68cf161c
LC
47092020-07-20 Ludovic Courtès <ludo@gnu.org>
4710 Doug Evans <dje@google.com>
4711
4712 PR gdb/21104
4713 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4714 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4715 USING_GUILE_BEFORE_2_2.
4716 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4717 Change type to 'scm_t_port_type *'.
4718 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4719 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4720 parameter and honor it. Update callers.
4721 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4722 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4723 functions.
4724 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4725 USING_GUILE_BEFORE_2_2.
4726 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4727 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4728 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4729 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4730 and 'SCM_PORT_TYPE'.
4731 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4732 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4733 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4734 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4735 [!USING_GUILE_BEFORE_2_2]: New functions.
4736 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4737 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4738 'gdbscm_memory_port_read'.
4739 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4740 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4741 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4742 function.
4743 (ioscm_init_memory_port): Remove.
4744 (ioscm_init_memory_port_stream): New function
4745 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4746 function.
4747 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4748 Return scm_from_uint (0).
4749 (gdbscm_set_memory_port_read_buffer_size_x)
4750 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4751 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4752 Return scm_from_uint (0).
4753 (gdbscm_set_memory_port_write_buffer_size_x)
4754 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4755 * configure.ac (try_guile_versions): Add "guile-2.2".
4756 * configure: Regenerate.
4757 * NEWS: Add entry.
4758
aee91db3
TT
47592020-07-18 Tom Tromey <tom@tromey.com>
4760
4761 * linux-nat.c (linux_multi_process): Remove.
4762 (linux_nat_target::supports_multi_process): Return true.
4763
0e267416
AB
47642020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4765
4766 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4767 (riscv_lookup_target_description): Return pointer out of
4768 unique_ptr.
4769 * target-descriptions.c (allocate_target_description): Add
4770 comment.
4771 (target_desc_deleter::operator()): Likewise.
4772 * target-descriptions.h (struct target_desc_deleter): Moved to
4773 gdbsupport/tdesc.h.
4774 (target_desc_up): Likewise.
4775
f80c8ec4
TT
47762020-07-17 Tom Tromey <tromey@adacore.com>
4777
4778 * linux-nat.c (linux_nat_target::supports_non_stop)
4779 (linux_nat_target::always_non_stop_p): Use "true".
4780 (linux_nat_target::supports_disable_randomization): Use "true" and
4781 "false".
4782
d0ce17d8
CT
47832020-07-16 Caroline Tice <cmtice@google.com>
4784
4785 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4786 (RNGLIST_HEADER_SIZE64): New constant definition.
4787 (struct dwop_section_names): Add rnglists_dwo.
4788 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4789 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4790 (struct dwo_sections): Add rnglists field.
4791 (read_attribut_reprocess): Add tag parameter.
4792 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4793 (cu_debug_rnglists_section): New function (decl & definition).
4794 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4795 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4796 die whose range is being checked; get rnglist section from
4797 cu_debug_rnglists_section, to get from either objfile or dwo file as
4798 appropriate. Add cases for DW_RLE_base_addressx,
4799 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4800 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4801 test inside if-condition and updating complaint message.
4802 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4803 dwarf2_rnglists_process.
4804 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4805 dwarf2_ranges_process.
4806 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4807 need_ranges_base and update comment appropriately. Also pass die tag
4808 to dwarf2_ranges_read.
4809 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4810 need_ranges_base and update comment appropriately. Also pass die tag
4811 to dwarf2_ranges_process.
4812 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4813 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4814 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4815 need_ranges_base and update comment appropriately. Also pass die tag
4816 to read_attribute_reprocess and dwarf2_ranges_read.
4817 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4818 and update function comment appropriately.
4819 (read_loclist_index): Call read_loclists_rnglists_header instead of
4820 read_loclist_header.
4821 (read_rnglist_index): New function.
4822 (read_attribute_reprocess): Add tag parameter. Add code for
4823 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4824 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4825
3dcc261c
AB
48262020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4827
4828 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4829 being resolved.
4830
ccb9eba6
AB
48312020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4832
4833 * arch-utils.c (show_architecture): Update formatting of messages.
4834
cf88be68
SM
48352020-07-12 Simon Marchi <simon.marchi@efficios.com>
4836
4837 * gdbtypes.h (struct type) <bounds>: Handle array and string
4838 types.
4839 * ada-lang.c (assign_aggregate): Use type::bounds on
4840 array/string type.
4841 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4842 * c-varobj.c (c_number_of_children): Likewise.
4843 (c_describe_child): Likewise.
4844 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4845 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4846 (f_type_print_base): Likewise.
4847 * f-valprint.c (f77_array_offset_tbl): Likewise.
4848 (f77_get_upperbound): Likewise.
4849 (f77_print_array_1): Likewise.
4850 * guile/scm-type.c (gdbscm_type_range): Likewise.
4851 * m2-typeprint.c (m2_array): Likewise.
4852 (m2_is_long_set_of_type): Likewise.
4853 * m2-valprint.c (get_long_set_bounds): Likewise.
4854 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4855 * python/py-type.c (typy_range): Likewise.
4856 * rust-lang.c (rust_internal_print_type): Likewise.
4857 * type-stack.c (type_stack::follow_types): Likewise.
4858 * valarith.c (value_subscripted_rvalue): Likewise.
4859 * valops.c (value_cast): Likewise.
4860
509971ae
SM
48612020-07-12 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4864 callers to use the equivalent accessor methods.
4865
107406b7
SM
48662020-07-12 Simon Marchi <simon.marchi@efficios.com>
4867
4868 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4869 (struct type) <bit_stride>: New method.
4870 (TYPE_BIT_STRIDE): Remove.
4871 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4872
bb789949
SM
48732020-07-12 Simon Marchi <simon.marchi@efficios.com>
4874
4875 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4876 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4877 callers to use the equivalent accessor methods instead.
4878
39498edb
SM
48792020-07-12 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4882 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4883 callers to use the equivalent accessor methods instead.
4884
3b606f38
SM
48852020-07-12 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4888 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4889 to use dynamic_prop::kind.
4890
064d9cb9
SM
48912020-07-12 Simon Marchi <simon.marchi@efficios.com>
4892
4893 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4894 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4895 to get the bound property's kind and check against
4896 PROP_UNDEFINED.
4897
5537ddd0
SM
48982020-07-12 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4901 all callers to use type::range_bounds followed by
4902 dynamic_prop::{low,high}.
4903
8c2e4e06
SM
49042020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4905
4906 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4907 const_val, set_const_val, baton, set_locexpr, set_loclist,
4908 set_addr_offset, variant_parts, set_variant_parts,
4909 original_type, set_original_type>: New methods.
4910 <kind>: Rename to...
4911 <m_kind>: ... this. Update all users to use the new methods
4912 instead.
4913 <data>: Rename to...
4914 <m_data>: ... this. Update all users to use the new methods
4915 instead.
4916
7c6f2712
SM
49172020-07-12 Simon Marchi <simon.marchi@efficios.com>
4918
4919 * gdbtypes.c (get_discrete_bounds): Return failure if
4920 the range type's bounds are not both defined and constant
4921 values.
4922 (get_array_bounds): Update comment. Remove undefined bound check.
4923
599088e3
SM
49242020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4925
4926 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4927 the type::bounds method directly.
4928
c4dfcb36
SM
49292020-07-12 Simon Marchi <simon.marchi@efficios.com>
4930
4931 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4932 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4933 are used to set the range type's bounds to use set_bounds.
4934
0a278aa7
PW
49352020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4936
4937 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4938
cce20f10
PA
49392020-07-10 Pedro Alves <pedro@palves.net>
4940
4941 * gdbthread.h (inferior_ref): Define.
4942 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4943 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4944 * thread.c
4945 (scoped_restore_current_thread::restore):
4946 Adjust to gdb::ref_ptr.
4947 (scoped_restore_current_thread::~scoped_restore_current_thread):
4948 Remove manual decref handling.
4949 (scoped_restore_current_thread::scoped_restore_current_thread):
4950 Adjust to use
4951 inferior_ref::new_reference/thread_info_ref::new_reference.
4952 Incref the thread before calling get_frame_id instead of after.
4953 Let TARGET_CLOSE_ERROR propagate.
4954
6d7aa592
PA
49552020-07-10 Pedro Alves <pedro@palves.net>
4956
4957 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4958 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4959 NOT_AVAILABLE_ERROR.
4960 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4961 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4962
b3e3a4c1
SM
49632020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4964 Pedro Alves <pedro@palves.net>
4965
4966 PR gdb/26199
4967 * infrun.c (threads_are_resumed_pending_p): Delete.
4968 (do_target_wait): Remove threads_are_executing and
4969 threads_are_resumed_pending_p checks from the inferior_matches
4970 lambda. Update comments.
4971
d6cc5d98
PA
49722020-07-10 Pedro Alves <pedro@palves.net>
4973
4974 PR gdb/26199
4975 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4976 executing threads.
4977
7d3badc6
PA
49782020-07-10 Pedro Alves <pedro@palves.net>
4979
4980 PR gdb/26199
4981 * infrun.c (handle_no_resumed): Handle multiple targets.
4982
42bd97a6
PA
49832020-07-10 Pedro Alves <pedro@palves.net>
4984
4985 PR gdb/26199
4986 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4987 target_is_async_p.
4988
43667cc6
PA
49892020-07-10 Pedro Alves <pedro@palves.net>
4990
4991 PR gdb/26199
4992 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4993 threads, not all threads.
4994
96118d11
PA
49952020-07-10 Pedro Alves <pedro@palves.net>
4996
4997 PR gdb/26199
4998 * remote.c (remote_target::open_1): Pass remote target pointer as
4999 data to create_async_event_handler.
5000 (remote_async_inferior_event_handler): Mark async event handler
5001 before returning if the remote target still has either pending
5002 events or unacknowledged notifications.
5003
54904d81
JB
50042020-07-10 John Baldwin <jhb@FreeBSD.org>
5005
5006 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5007 declaration.
5008 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5009 function.
5010
f37e5866
JB
50112020-07-09 John Baldwin <jhb@FreeBSD.org>
5012
5013 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5014 inferior_ptid.
5015
fc238d4a
JB
50162020-07-09 John Baldwin <jhb@FreeBSD.org>
5017
5018 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5019 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5020 AT_FREEBSD_PS_STRINGS.
5021
6e2469ff
HD
50222020-07-08 Hannes Domani <ssbssa@yahoo.de>
5023
5024 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5025 of debugfile path on Windows.
5026
d1076c41
JB
50272020-07-08 John Baldwin <jhb@FreeBSD.org>
5028
5029 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5030 argument to 'data'.
5031
15f3b077
TT
50322020-07-08 Tom Tromey <tromey@adacore.com>
5033
5034 * ada-lang.c (ada_exception_message_1): Use read_memory.
5035
9fc501fd
AB
50362020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 PR python/22748
5039 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5040 special handling for inline frames.
5041 * findvar.c (value_of_register_lazy): Skip inline frames when
5042 creating lazy register values.
5043 * frame.c (frame_id_computed_p): Delete definition.
5044 * frame.h (frame_id_computed_p): Delete declaration.
5045
64cb3757
AB
50462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5047
5048 * NEWS: Mention additions to Python API.
5049 * python/py-arch.c (archpy_register_groups): New function.
5050 (arch_object_methods): Add 'register_groups' method.
5051 * python/py-registers.c (reggroup_iterator_object): New struct.
5052 (reggroup_object): New struct.
5053 (gdbpy_new_reggroup): New function.
5054 (gdbpy_reggroup_to_string): New function.
5055 (gdbpy_reggroup_name): New function.
5056 (gdbpy_reggroup_iter): New function.
5057 (gdbpy_reggroup_iter_next): New function.
5058 (gdbpy_new_reggroup_iterator): New function
5059 (gdbpy_initialize_registers): Register new types.
5060 (reggroup_iterator_object_type): Define new Python type.
5061 (gdbpy_reggroup_getset): New static global.
5062 (reggroup_object_type): Define new Python type.
5063 * python/python-internal.h
5064
0f767f94
AB
50652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5066
5067 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5068 * python/py-arch.c (archpy_registers): New function.
5069 (arch_object_methods): Add 'registers' method.
5070 * python/py-registers.c: New file.
5071 * python/python-internal.h
5072 (gdbpy_new_register_descriptor_iterator): Declare.
5073 (gdbpy_initialize_registers): Declare.
5074 * python/python.c (do_start_initialization): Call
5075 gdbpy_initialize_registers.
5076 * NEWS: Mention additions to the Python API.
5077
87dbc774
AB
50782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5079
5080 * NEWS: Mention new Python API method.
5081 * python/py-unwind.c (pending_framepy_architecture): New function.
5082 (pending_frame_object_methods): Add architecture method.
5083
3bc98c0c
AB
50842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5085
5086 * gdbarch.c: Regenerate.
5087 * gdbarch.h: Regenerate.
5088 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5089 (gdbarch_data): Use internal_error for the case where
5090 deprecated_set_gdbarch_data was originally needed.
5091 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5092 and use passed in obstack.
5093 (libunwind_frame_set_descr): Should no longer get back NULL from
5094 gdbarch_data.
5095 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5096 type.
5097 * user-regs.c (user_regs_init): Update parameters, and use passed
5098 in obstack.
5099 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5100 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5101
d8cc8af6
TV
51022020-07-06 Tom de Vries <tdevries@suse.de>
5103
5104 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5105 End-Of-Sequence in lte_is_less_than.
5106 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5107 "gdb: Don't reorder line table entries too much when sorting".
5108
947f7597
TV
51092020-07-06 Tom de Vries <tdevries@suse.de>
5110
5111 PR tui/26205
5112 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5113
1e7c1b22
TV
51142020-07-05 Tom de Vries <tdevries@suse.de>
5115
5116 PR build/26187
5117 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5118 std::uncaught_exceptions instead of deprecated
5119 std::uncaught_exception.
5120
a36158ec
SM
51212020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5122
5123 * macroexp.h (macro_stringify): Return
5124 gdb::unique_xmalloc_ptr<char>.
5125 * macroexp.c (macro_stringify): Likewise.
5126 * macrotab.c (fixup_definition): Update.
5127
14d960c8
SM
51282020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5129
5130 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5131 (lex_one_token): Update.
5132 * macroexp.c (struct macro_buffer) <release>: Return
5133 gdb::unique_xmalloc_ptr<char>.
5134 (macro_stringify): Update.
5135 (macro_expand): Update.
5136 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5137 * macroexp.h (macro_expand_next): Likewise.
5138
211d5b1c
SM
51392020-07-02 Simon Marchi <simon.marchi@efficios.com>
5140
5141 * macroexp.h (macro_lookup_ftype): Remove.
5142 (macro_expand, macro_expand_once, macro_expand_next): Remove
5143 lookup function parameters, add scope parameter.
5144 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5145 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5146 * macroscope.h (standard_macro_lookup): Change parameter type
5147 to macro_scope.
5148 * macroscope.c (standard_macro_lookup): Likewise.
5149 * c-exp.y (lex_one_token): Update.
5150 * macrocmd.c (macro_expand_command): Likewise.
5151 (macro_expand_once_command): Likewise.
5152
b1a35af2
SM
51532020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5154
5155 * inf-loop.c (inferior_event_handler): Remove client_data param.
5156 * inf-loop.h (inferior_event_handler): Likewise.
5157 * infcmd.c (step_1): Adjust.
5158 * infrun.c (proceed): Adjust.
5159 (fetch_inferior_event): Remove client_data param.
5160 (infrun_async_inferior_event_handler): Adjust.
5161 * infrun.h (fetch_inferior_event): Remove `void *` param.
5162 * linux-nat.c (handle_target_event): Adjust.
5163 * record-btrace.c (record_btrace_handle_async_inferior_event):
5164 Adjust.
5165 * record-full.c (record_full_async_inferior_event_handler):
5166 Adjust.
5167 * remote.c (remote_async_inferior_event_handler): Adjust.
5168
1cdf9e33
TT
51692020-07-01 Tom Tromey <tom@tromey.com>
5170
5171 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5172 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5173
32c1e210
TT
51742020-07-01 Tom Tromey <tom@tromey.com>
5175
5176 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5177 tui_gen_win_info.
5178 (tui_win_info::make_window): Merge with
5179 tui_gen_win_info::make_window.
5180 (tui_win_info::make_visible): Move from tui_gen_win_info.
5181 * tui/tui-win.c (tui_win_info::max_width): Move from
5182 tui_gen_win_info.
5183 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5184 type.
5185 <window_factory>: Likewise.
5186 * tui/tui-layout.c (tui_win_info::resize): Move from
5187 tui_gen_win_info.
5188 (make_standard_window): Change return type.
5189 (get_locator_window, tui_get_window_by_name): Likewise.
5190 (tui_layout_window::apply): Remove a cast.
5191 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5192 (struct tui_win_info): Merge with tui_gen_win_info.
5193 (struct tui_gen_win_info): Remove.
5194
a30cb6da
TT
51952020-07-01 Tom Tromey <tom@tromey.com>
5196
5197 * tui/tui-stack.h (struct tui_locator_window): Derive from
5198 tui_win_info.
5199 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5200 <can_box>: New method.
5201
1eb2161f
TT
52022020-07-01 Tom Tromey <tom@tromey.com>
5203
5204 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5205
7134f2eb
TT
52062020-07-01 Tom Tromey <tom@tromey.com>
5207
5208 * tui/tui-regs.c (tui_data_window::display_registers_from)
5209 (tui_data_window::display_registers_from)
5210 (tui_data_window::first_data_item_displayed)
5211 (tui_data_window::delete_data_content_windows): Update.
5212 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5213 Remove.
5214 (tui_data_window::check_register_values): Update.
5215 (tui_data_item_window::rerender): Add parameters. Update.
5216 (tui_data_item_window::refresh_window): Remove.
5217 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5218 virtual.
5219 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5220 tui_gen_win_info.
5221 <refresh_window, max_height, min_height>: Remove.
5222 <rerender>: Add parameters.
5223 <x, y, visible>: New members.
5224 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5225 <m_item_width>: New member.
5226
22b7b041
TT
52272020-07-01 Tom Tromey <tom@tromey.com>
5228
5229 * tui/tui-regs.c (tui_data_window::show_register_group)
5230 (tui_data_window::check_register_values): Update.
5231 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5232 from item_no.
5233
c9753adb
TT
52342020-07-01 Tom Tromey <tom@tromey.com>
5235
5236 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5237 useless "if".
5238
9ab26b4a
TT
52392020-07-01 Tom Tromey <tom@tromey.com>
5240
5241 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5242 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5243
e555083f
TT
52442020-07-01 Tom Tromey <tom@tromey.com>
5245
5246 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5247 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5248 (struct tui_line_or_address): Move from tui-data.h.
5249 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5250 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5251 (tui_cmd_window, tui_source_window_base, tui_source_window)
5252 (tui_disasm_window): Don't declare.
5253 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5254 to tui-winsource.h.
5255 (SINGLE_KEY): Move to tui-stack.c.
5256
7a02bab7
TT
52572020-07-01 Tom Tromey <tom@tromey.com>
5258
5259 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5260 std::string.
5261 * tui/tui-regs.c (class tab_expansion_file): New.
5262 (tab_expansion_file::write): New method.
5263 (tui_register_format): Change return type. Use
5264 tab_expansion_file.
5265 (tui_get_register, tui_data_window::display_registers_from)
5266 (tui_data_item_window::rerender): Update.
5267 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5268 * tui/tui-io.c (tui_expand_tabs): Remove.
5269
ea68593b
TT
52702020-07-01 Tom Tromey <tom@tromey.com>
5271
5272 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5273
a8caed5d
FS
52742020-07-01 Fangrui Song <maskray@google.com>
5275
5276 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5277
9cdf9820
AKS
52782020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5279
5280 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5281 forms for DW_AT_associated and DW_AT_allocated attributes,
5282 which is already checked in function attr_to_dynamic_prop.
5283
a1520ad8
TT
52842020-06-30 Tom Tromey <tromey@adacore.com>
5285
5286 * dwarf2/read.c (quirk_rust_enum): Correctly call
5287 alloc_rust_variant for default-less enum.
5288
5ac58899
TT
52892020-06-30 Tom Tromey <tromey@adacore.com>
5290
5291 PR build/26183:
5292 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5293 gdb::to_string.
5294
19b187a9
SM
52952020-06-29 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5298 * gdbarch.h: Re-generate.
5299
cd4c4c07
TT
53002020-06-28 Tom Tromey <tom@tromey.com>
5301
5302 * command.h (cmd_types): Remove.
5303 (cmd_type): Don't declare.
5304 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5305 typedef.
5306 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5307 * cli/cli-decode.c (cmd_type): Remove.
5308
05779d57
PA
53092020-06-27 Pedro Alves <palves@redhat.com>
5310
5311 * fork-child.c (prefork_hook): Adjust.
5312 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5313 Delete.
5314 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5315 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5316 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5317 Remove declarations.
5318 (struct inferior) <set_tty, tty>: New methods.
5319 (struct inferior) <terminal>: Rename to ...
5320 (struct inferior) <m_terminal>: ... this and make private.
5321 * main.c (captured_main_1): Adjust.
5322 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5323 (mi_cmd_inferior_tty_show): Adjust.
5324 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5325 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5326
1776e3e5
NA
53272020-06-26 Nick Alcock <nick.alcock@oracle.com>
5328
5329 * configure.ac: Add --enable-libctf: handle --disable-static
5330 properly.
5331 * acinclude.m4: sinclude ../config/enable.m4.
5332 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5333 (LIBCTF): Substitute in.
5334 (CTF_DEPS): New, likewise.
5335 (CLIBS): libctf needs symbols from libbfd: move earlier.
5336 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5337 flags.
5338 * ctfread.c: Surround in ENABLE_LIBCTF.
5339 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5340 * configure: Regenerate.
5341 * config.in: Likewise.
5342
58373b80
SM
53432020-06-25 Simon Marchi <simon.marchi@efficios.com>
5344
5345 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5346
277474ee
SM
53472020-06-25 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * inferior.h (struct inferior) <terminal>: Change type to
5350 gdb::unique_xmalloc_ptr<char>.
5351 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5352 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5353 field, adjust to unique pointer.
5354 (get_inferior_io_terminal): Adjust to unique pointer.
5355
6d74da72
AB
53562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5357
5358 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5359 registers, not just the known core set of registers.
5360
2e52d038
AB
53612020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5362
5363 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5364 fflags, frm, and fcsr registers.
5365 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5366 restore groups.
5367 (riscv_tdesc_unknown_reg): New function.
5368 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5369 tdesc_use_registers.
5370 * riscv-tdep.h (struct gdbarch_tdep): Add
5371 unknown_csrs_first_regnum, unknown_csrs_count,
5372 duplicate_fflags_regnum, duplicate_frm_regnum, and
5373 duplicate_fcsr_regnum fields.
5374
be64fd07
AB
53752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5378 callback, use the callback (when not null) to help number unknown
5379 registers.
5380 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5381 (tdesc_use_registers): Add extra parameter to declaration.
5382
3b9fce96
AB
53832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5384
5385 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5386 in the file.
5387 (class riscv_pending_register_alias): Likewise.
5388 (riscv_register_feature::register_info): Change 'required_p' field
5389 to 'required', and change its type. Add 'check' member function.
5390 (riscv_register_feature::register_info::check): Define new member
5391 function.
5392 (riscv_xreg_feature): Change initialisation of 'required' field.
5393 (riscv_freg_feature): Likewise.
5394 (riscv_virtual_feature): Likewise.
5395 (riscv_csr_feature): Likewise.
5396 (riscv_check_tdesc_feature): Take extra parameter, the csr
5397 tdesc_feature, rewrite the function to use the new
5398 riscv_register_feature::register_info::check function.
5399 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5400
865bad26
AB
54012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5402
5403 * features/Makefile: Remove all references to the deleted files
5404 below.
5405 * features/riscv/32bit-csr.c: Deleted.
5406 * features/riscv/32bit-csr.xml: Deleted.
5407 * features/riscv/64bit-csr.c: Deleted.
5408 * features/riscv/64bit-csr.xml: Deleted.
5409 * features/riscv/rebuild-csr-xml.sh: Deleted.
5410
ed69cbc8
AB
54112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5412
5413 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5414 whitespace error for declaration of names member variable.
5415 (struct riscv_register_feature): Add new prefer_first_name member
5416 variable, and fix whitespace error in declaration of registers.
5417 (riscv_xreg_feature): Initialize prefer_first_name field.
5418 (riscv_freg_feature): Likewise.
5419 (riscv_virtual_feature): Likewise.
5420 (riscv_csr_feature): Likewise.
5421 (riscv_register_name): Expand on comments. Remove register name
5422 modifications for CSR and virtual registers.
5423
4445e8f5
AB
54242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5425
5426 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5427 errors.
5428
767a879e
AB
54292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5430
5431 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5432 riscv-opc.h.
5433 (class riscv_pending_register_alias): New class.
5434 (riscv_check_tdesc_feature): Take vector of pending aliases and
5435 populate it as appropriate.
5436 (riscv_setup_register_aliases): Delete.
5437 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5438 to riscv_check_tdesc_feature in all cases. Use the vector to
5439 create the register aliases.
5440
bb6e55f3
RO
54412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5442
5443 * sol2-tdep.c (sol2_static_transform_name): Remove.
5444 (sol2_init_abi): Don't register it.
5445 * gdbarch.sh (static_transform_name): Remove.
5446 * gdbarch.c, gdbarch.h: Regenerate.
5447
5448 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5449 gdbarch_static_transform_name.
5450 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5451 * stabsread.c (define_symbol) <'X'>: Remove.
5452 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5453 handling.
5454 <'V'>: Likewise.
5455 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5456 <'S'>: Remove call to gdbarch_static_transform_name.
5457
c6d36836
RO
54582020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5459
5460 * procfs.c (procfs_pre_trace): New function.
5461 (procfs_target::create_inferior): Pass it to fork_inferior.
5462
a7e6196b
RO
54632020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5464
5465 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5466 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5467 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5468 sol2-tdep.o, sparc-sol2-tdep.o.
5469 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5470 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5471 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5472 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5473
d412e696
RO
54742020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5475
5476 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5477 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5478 Call sol2_init_abi.
5479 Remove calls to set_gdbarch_skip_solib_resolver,
5480 set_gdbarch_core_pid_to_str.
5481 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5482 (i386_sol2_static_transform_name): Remove.
5483 (i386_sol2_init_abi): Call sol2_init_abi.
5484 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5485 set_gdbarch_static_transform_name,
5486 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5487 Use sol2_sigtramp_p.
5488 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5489 (sol2_sigtramp_p): New function.
5490 (sol2_static_transform_name): New function.
5491 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5492 (sol2_init_abi): New function.
5493 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5494 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5495 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5496 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5497 (sparc_sol2_static_transform_name): Remove.
5498 (sparc32_sol2_init_abi): Call sol2_init_abi.
5499 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5500 set_gdbarch_static_transform_name,
5501 set_gdbarch_skip_solib_resolver,
5502 set_gdbarch_core_pid_to_str.
5503 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5504 (sparc_sol2_static_transform_name): Remove
5505 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5506 call sol2_sigtramp_p.
5507 (sparc64_sol2_init_abi): Call sol2_init_abi.
5508 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5509 set_gdbarch_static_transform_name,
5510 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5511
a8654e7d
PW
55122020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5513
5514 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5515 * exec.c (validate_exec_file): If from_tty, set both
5516 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5517 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5518 and from_tty, unconditionally ask a confirmation.
5519
caa7fd04
AB
55202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * target-descriptions.c (tdesc_architecture_name): Protect against
5523 NULL pointer dereference.
5524 (maint_print_xml_tdesc_cmd): New function.
5525 (_initialize_target_descriptions): Register new 'maint print
5526 xml-tdesc' command and give it the filename completer.
5527 * NEWS: Mention new 'maint print xml-tdesc' command.
5528
fbf42f4e
AB
55292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * target-descriptions.c (class tdesc_compatible_info): New class.
5532 (struct target_desc): Change type of compatible vector.
5533 (tdesc_compatible_p): Update for change in type of
5534 target_desc::compatible.
5535 (tdesc_compatible_info_list): New function.
5536 (tdesc_compatible_info_arch_name): New function.
5537 (tdesc_add_compatible): Update for change in type of
5538 target_desc::compatible.
5539 (print_c_tdesc::visit_pre): Likewise.
5540
20821f4e
AB
55412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5542
5543 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5544 whitespace to underscore.
5545 (maint_print_c_tdesc_cmd): Use fake filename for target
5546 descriptions that came from the target.
5547 (_initialize_target_descriptions): Add filename command completion
5548 for 'maint print c-tdesc'.
5549
1fb5ee62
SM
55502020-06-23 Simon Marchi <simon.marchi@efficios.com>
5551
5552 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5553 lines.
5554
fc3ecb3e
SM
55552020-06-23 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5558 lines.
5559 (dwarf2_find_location_expression): Likewise.
5560 (call_site_parameter_matches): Likewise.
5561 (dwarf2_compile_expr_to_ax): Likewise.
5562 (disassemble_dwarf_expression): Likewise.
5563 (loclist_describe_location): Likewise.
5564
236ef034
PA
55652020-06-23 Pedro Alves <palves@redhat.com>
5566
5567 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5568 progspace-and-thread.h. Include scoped-mock-context.h instead.
5569 (register_to_value_test): Use scoped_mock_context.
5570 * regcache.c: Include "scoped-mock-context.h".
5571 (cooked_read_test): Don't error out if a target is already pushed.
5572 Use scoped_mock_context. Adjust.
5573 * scoped-mock-context.h: New file.
5574
39e7ecca
AB
55752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5576
5577 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5578 initializer.
5579 (ada_language::is_string_type_p): New member function.
5580 * c-lang.c (c_language_data): Delete la_is_string_type_p
5581 initializer.
5582 (cplus_language_data): Likewise.
5583 (asm_language_data): Likewise.
5584 (minimal_language_data): Likewise.
5585 * d-lang.c (d_language_data): Likewise.
5586 * f-lang.c (f_is_string_type_p): Delete function, implementation
5587 moved to f_language::is_string_type_p.
5588 (f_language_data): Delete la_is_string_type_p initializer.
5589 (f_language::is_string_type_p): New member function,
5590 implementation from f_is_string_type_p.
5591 * go-lang.c (go_is_string_type_p): Delete function, implementation
5592 moved to go_language::is_string_type_p.
5593 (go_language_data): Delete la_is_string_type_p initializer.
5594 (go_language::is_string_type_p): New member function,
5595 implementation from go_is_string_type_p.
5596 * language.c (language_defn::is_string_type_p): Define new member
5597 function.
5598 (default_is_string_type_p): Make static, add comment copied from
5599 header file.
5600 (unknown_language_data): Delete la_is_string_type_p initializer.
5601 (unknown_language::is_string_type_p): New member function.
5602 (auto_language_data): Delete la_is_string_type_p initializer.
5603 (auto_language::is_string_type_p): New member function.
5604 * language.h (language_data): Delete la_is_string_type_p field.
5605 (language_defn::is_string_type_p): Declare new function.
5606 (default_is_string_type_p): Delete desclaration, move comment to
5607 definition.
5608 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5609 moved to m2_language::is_string_type_p.
5610 (m2_language_data): Delete la_is_string_type_p initializer.
5611 (m2_language::is_string_type_p): New member function,
5612 implementation from m2_is_string_type_p.
5613 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5614 initializer.
5615 * opencl-lang.c (opencl_language_data): Likewise.
5616 * p-lang.c (pascal_is_string_type_p): Delete function,
5617 implementation moved to pascal_language::is_string_type_p.
5618 (pascal_language_data): Delete la_is_string_type_p initializer.
5619 (pascal_language::is_string_type_p): New member function,
5620 implementation from pascal_is_string_type_p.
5621 * rust-lang.c (rust_is_string_type_p): Delete function,
5622 implementation moved to rust_language::is_string_type_p.
5623 (rust_language_data): Delete la_is_string_type_p initializer.
5624 (rust_language::is_string_type_p): New member function,
5625 implementation from rust_is_string_type_p.
5626 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5627 is_string_type_p.
5628
4ffc13fb
AB
56292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5630
5631 * ada-lang.c (ada_language_data): Delete la_print_typedef
5632 initializer.
5633 (ada_language::print_typedef): New member function.
5634 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5635 (cplus_language_data): Likewise.
5636 (asm_language_data): Likewise.
5637 (minimal_language_data): Likewise.
5638 * d-lang.c (d_language_data): Likewise.
5639 * f-lang.c (f_language_data): Likewise.
5640 (f_language::print_typedef): New member function.
5641 * go-lang.c (go_language_data): Delete la_print_typedef
5642 initializer.
5643 * language.c (language_defn::print_typedef): Define member
5644 function.
5645 (unknown_language_data): Delete la_print_typedef initializer.
5646 (unknown_language::print_typedef): New member function.
5647 (auto_language_data): Delete la_print_typedef initializer.
5648 (auto_language::print_typedef): New member function.
5649 * language.h (language_data): Delete la_print_typedef field.
5650 (language_defn::print_typedef): Declare new member function.
5651 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5652 (default_print_typedef): Delete declaration.
5653 * m2-lang.c (m2_language_data): Delete la_print_typedef
5654 initializer.
5655 (m2_language::print_typedef): New member function.
5656 * objc-lang.c (objc_language_data): Delete la_print_typedef
5657 initializer.
5658 * opencl-lang.c (opencl_language_data): Likewise.
5659 * p-lang.c (pascal_language_data): Likewise.
5660 (pascal_language::print_typedef): New member function.
5661 * rust-lang.c (rust_print_typedef): Delete function,
5662 implementation moved to rust_language::print_typedef.
5663 (rust_language): Delete la_print_typedef initializer.
5664 (rust_language::print_typedef): New member function,
5665 implementation from rust_print_typedef.
5666 * typeprint.c (default_print_typedef): Delete.
5667
d711ee67
AB
56682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5669
5670 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5671 (ada_language::printstr): New member function.
5672 * c-lang.c (c_language_data): Delete la_printstr initializer.
5673 (cplus_language_data): Likewise.
5674 (asm_language_data): Likewise.
5675 (minimal_language_data): Likewise.
5676 * d-lang.c (d_language_data): Likewise.
5677 * f-lang.c (f_printstr): Rename to f_language::printstr.
5678 (f_language_data): Delete la_printstr initializer.
5679 (f_language::printstr): New member function, implementation from
5680 f_printstr.
5681 * go-lang.c (go_language_data): Delete la_printstr initializer.
5682 * language.c (language_defn::printstr): Define new member
5683 function.
5684 (unk_lang_printstr): Delete.
5685 (unknown_language_data): Delete la_printstr initializer.
5686 (unknown_language::printstr): New member function.
5687 (auto_language_data): Delete la_printstr initializer.
5688 (auto_language::printstr): New member function.
5689 * language.h (language_data): Delete la_printstr field.
5690 (language_defn::printstr): Declare new member function.
5691 (LA_PRINT_STRING): Update call to printstr.
5692 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5693 (m2_language_data): Delete la_printstr initializer.
5694 (m2_language::printstr): New member function, implementation from
5695 m2_printstr.
5696 * objc-lang.c (objc_language_data): Delete la_printstr
5697 initializer.
5698 * opencl-lang.c (opencl_language_data): Likewise.
5699 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5700 (pascal_language_data): Delete la_printstr initializer.
5701 (pascal_language::printstr): New member function, implementation
5702 from pascal_printstr.
5703 * p-lang.h (pascal_printstr): Delete declaration.
5704 * rust-lang.c (rust_printstr): Update header comment.
5705 (rust_language_data): Delete la_printstr initializer.
5706 (rust_language::printstr): New member function.
5707
52b50f2c
AB
57082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5709
5710 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5711 (ada_language::printchar): New member function.
5712 * c-lang.c (c_language_data): Delete la_printchar initializer.
5713 (cplus_language_data): Likewise.
5714 (asm_language_data): Likewise.
5715 (minimal_language_data): Likewise.
5716 * d-lang.c (d_language_data): Likewise.
5717 * f-lang.c (f_printchar): Rename to f_language::printchar.
5718 (f_language_data): Delete la_printchar initializer.
5719 (f_language::printchar): New member function, implementation from
5720 f_printchar.
5721 * go-lang.c (go_language_data): Delete la_printchar initializer.
5722 * language.c (unk_lang_printchar): Delete.
5723 (language_defn::printchar): Define new member function.
5724 (unknown_language_data): Delete la_printchar initializer.
5725 (unknown_language::printchar): New member function.
5726 (auto_language_data): Delete la_printchar initializer.
5727 (auto_language::printchar): New member function.
5728 * language.h (language_data): Delete la_printchar field.
5729 (language_defn::printchar): Declare new member function.
5730 (LA_PRINT_CHAR): Update call to printchar.
5731 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5732 (m2_language::printchar): New member function.
5733 * objc-lang.c (objc_language_data): Delete la_printchar
5734 initializer.
5735 * opencl-lang.c (opencl_language_data): Likewise.
5736 * p-lang.c (pascal_language_data): Delete la_printchar
5737 initializer.
5738 (pascal_language::printchar): New member function.
5739 * rust-lang.c (rust_printchar): Rename to
5740 rust_language::printchar.
5741 (rust_language_data): Delete la_printchar initializer.
5742 (rust_language::printchar): New member function, implementation
5743 from rust_printchar.
5744
ec8cec5b
AB
57452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5746
5747 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5748 (ada_language_data): Delete la_emitchar initializer.
5749 (ada_language::emitchar): New member function, implementation from
5750 emit_char.
5751 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5752 (cplus_language_data): Likewise.
5753 (asm_language_data): Likewise.
5754 (minimal_language_data): Likewise.
5755 * d-lang.c (d_language_data): Likewise.
5756 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5757 (f_language_data): Delete la_emitchar initializer.
5758 (f_language::emitchar): New member function, implementation from
5759 f_emit_char.
5760 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5761 * language.c (unk_lang_emit_char): Delete.
5762 (language_defn::emitchar): New member function definition.
5763 (unknown_language_data): Delete la_emitchar initializer.
5764 (unknown_language::emitchar): New member function.
5765 (auto_language_data): Delete la_emitchar initializer.
5766 (auto_language::emitchar): New member function.
5767 * language.h (language_data): Delete la_emitchar field.
5768 (language_defn::emitchar): New member field declaration.
5769 (LA_EMIT_CHAR): Update call to emitchar.
5770 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5771 (m2_language_data): Delete la_emitchar initializer.
5772 (m2_language::emitchar): New member function, implementation from
5773 m2_emit_char.
5774 * objc-lang.c (objc_language_data): Delete la_emitchar
5775 initializer.
5776 * opencl-lang.c (opencl_language_data): Likewise.
5777 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5778 (pascal_language_data): Delete la_emitchar initializer.
5779 (pascal_language::emitchar): New member function, implementation
5780 from pascal_emit_char.
5781 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5782 (rust_language_data): Delete la_emitchar initializer.
5783 (rust_language::emitchar): New member function, implementation
5784 from rust_emitchar.
5785
1bf9c363
AB
57862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5787
5788 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5789 (ada_language_data): Delete la_post_parser initializer.
5790 (ada_language::post_parser): New member function.
5791 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5792 (cplus_language_data): Likewise.
5793 (asm_language_data): Likewise.
5794 (minimal_language_data): Likewise.
5795 * d-lang.c (d_language_data): Likewise.
5796 * f-lang.c (f_language_data): Likewise.
5797 * go-lang.c (go_language_data): Likewise.
5798 * language.c (unknown_language_data): Likewise.
5799 (auto_language_data): Likewise.
5800 * language.h (language_data): Delete la_post_parser field.
5801 (language_defn::post_parser): New member function.
5802 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5803 * objc-lang.c (objc_language_data): Likewise.
5804 * opencl-lang.c (opencl_language_data): Likewise.
5805 * p-lang.c (pascal_language_data): Likewise.
5806 * parse.c (parse_exp_in_context): Update call to post_parser.
5807 (null_post_parser): Delete definition.
5808 * parser-defs.h (null_post_parser): Delete declaration.
5809 * rust-lang.c (rust_language_data): Delete la_post_parser
5810 initializer.
5811
87afa652
AB
58122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5813
5814 * ada-lang.c (parse): Rename to ada_language::parser.
5815 (ada_language_data): Delete la_parser initializer.
5816 (ada_language::parser): New member function, implementation from
5817 parse.
5818 * c-lang.c (c_language_data): Delete la_parser initializer.
5819 (cplus_language_data): Likewise.
5820 (asm_language_data): Likewise.
5821 (minimal_language_data): Likewise.
5822 * d-lang.c (d_language_data): Likewise.
5823 (d_language::parser): New member function.
5824 * f-lang.c (f_language_data): Delete la_parser initializer.
5825 (f_language::parser): New member function.
5826 * go-lang.c (go_language_data): Delete la_parser initializer.
5827 (go_language::parser): New member function.
5828 * language.c (unk_lang_parser): Delete.
5829 (language_defn::parser): Define new member function.
5830 (unknown_language_data): Delete la_parser initializer.
5831 (unknown_language::parser): New member function.
5832 (auto_language_data): Delete la_parser initializer.
5833 (auto_language::parser): New member function.
5834 * language.h (language_data): Delete la_parser field.
5835 (language_defn::parser): Declare new member function.
5836 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5837 (m2_language::parser): New member function.
5838 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5839 * opencl-lang.c (opencl_language_data): Likewise.
5840 * p-lang.c (pascal_language_data): Likewise.
5841 (pascal_language::parser): New member function.
5842 * parse.c (parse_exp_in_context): Update call to parser.
5843 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5844 (rust_language::parser): New member function.
5845
37825800
AB
58462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5847
5848 * top.c (print_gdb_configuration): Print --with-python-libdir
5849 configuration value.
5850
5b860c93
PW
58512020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5852
5853 * NEWS: Mention change to the alias command.
5854
cf00cd6f
PW
58552020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5856
5857 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5858 (alias_command_completer)
5859 (make_alias_options_def_group): New functions.
5860 (alias_opts, alias_option_defs): New struct and array.
5861 (alias_usage_error): Update usage.
5862 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5863 Use option framework.
5864 (_initialize_cli_cmds): Update alias command help.
5865 Update aliases command help.
5866 (show_user):
5867 Add NULL for new default_args lookup_cmd argument.
5868 (valid_command_p): Rename to validate_aliased_command.
5869 Add NULL for new default_args lookup_cmd argument. Verify that the
5870 aliased_command has no default args.
5871 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5872 (lookup_cmd_1, lookup_cmd): New argument default_args.
5873 (add_alias_cmd):
5874 Add NULL for new default_args lookup_cmd argument.
5875 (print_help_for_command): Show default args under the layout
5876 alias some_alias = some_aliased_cmd some_alias_default_arg.
5877 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5878 xfree default_args in destructor.
5879 * cli/cli-script.c (process_next_line, do_define_command):
5880 Add NULL for new default_args lookup_cmd argument.
5881 * command.h: Declare new default_args argument in lookup_cmd
5882 and lookup_cmd_1.
5883 * completer.c (complete_line_internal_1):
5884 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5885 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5886 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5887 Likewise.
5888 * infcmd.c (_initialize_infcmd): Likewise.
5889 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5890 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5891 * python/py-param.c (add_setshow_generic): Likewise.
5892 * remote.c (_initialize_remote): Likewise.
5893 * top.c (execute_command): Prepend default_args if command has some.
5894 (set_verbose):
5895 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5896 * tracepoint.c (validate_actionline, encode_actions_1):
5897 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5898
bd920864
TBA
58992020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5900
5901 * jit.c (jit_read_descriptor): Use bool as the return type.
5902 (jit_breakpoint_re_set_internal): Use bool as the return type.
5903 Invert the return value logic; return true if the jit breakpoint
5904 has been successfully initialized.
5905 (jit_inferior_init): Update the call to
5906 jit_breakpoint_re_set_internal.
5907
f8098322
PA
59082020-06-22 Pedro Alves <palves@redhat.com>
5909
5910 PR gdb/25939
5911 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5912 Use the current inferior instead. Don't return
5913 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5914 wait again.
5915 * sol-thread.c (sol_thread_target::wait): Don't reference
5916 inferior_ptid.
5917 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5918 (sol_update_thread_list_callback): Use the current inferior's pid
5919 instead of inferior_ptid.
5920
196535a6
RO
59212020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5922
5923 * procfs.c: Cleanup many comments.
5924
5925 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5926 (AFTER_WATCHFLAG): Replace by value.
5927
5928 (MAIN_PROC_NAME_FORMAT): Inline ...
5929 (create_procinfo): ... here.
5930
5931 (procfs_debug_inferior): Remove SYS_exec handling.
5932 (syscall_is_exec): Likewise.
5933 (procfs_set_exec_trap): Likewise.
5934
5935 (syscall_is_lwp_exit): Inline in callers.
5936 (syscall_is_exit): Likewise.
5937 (syscall_is_exec): Likewise.
5938 (syscall_is_lwp_create): Likewise.
5939
5940 (invalidate_cache): Remove #if 0 code.
5941
5942 (make_signal_thread_runnable): Remove.
5943 (procfs_target::resume): Remove #if 0 code.
5944
cf6f3e86
RO
59452020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5946
5947 PR gdb/25939
5948 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5949 call ...
5950 (procfs_target::create_inferior): ... here.
5951
48e9cc84
PW
59522020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5953
5954 * exec.c (validate_exec_file): Ensure the build-id is up to
5955 date by calling reopen_exec_file (that checks file timestamp
5956 to decide to re-read the file).
5957
3922b302
PA
59582020-06-18 Pedro Alves <palves@redhat.com>
5959
5960 PR gdb/25412
5961 * gdbthread.h (delete_thread, delete_thread_silent)
5962 (find_thread_ptid): Update comments.
5963 * thread.c (current_thread_): New global.
5964 (is_current_thread): Move higher, and reimplement.
5965 (inferior_thread): Reimplement.
5966 (set_thread_exited): Use bool. Add assertions.
5967 (add_thread_silent): Simplify thread-reuse handling by always
5968 calling delete_thread.
5969 (delete_thread): Remove intro comment.
5970 (find_thread_ptid): Skip exited threads.
5971 (switch_to_thread_no_regs): Write to current_thread_.
5972 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5973 INFERIOR_PTID. Clear current_thread_.
5974
6dbdab44
PA
59752020-06-18 Pedro Alves <palves@redhat.com>
5976
5977 * aix-thread.c (pd_update): Use switch_to_thread.
5978
2da4b788
PA
59792020-06-18 Pedro Alves <palves@redhat.com>
5980
5981 * ravenscar-thread.c (ravenscar_thread_target): Update.
5982 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5983 (ravenscar_thread_target::add_active_thread): ... this. Don't
5984 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5985 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5986
50838d1b
PA
59872020-06-18 Pedro Alves <palves@redhat.com>
5988
5989 * nat/windows-nat.c (current_windows_thread): Remove.
5990 * nat/windows-nat.h (current_windows_thread): Remove.
5991 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5992 Adjust.
5993 (display_selectors): Adjust to fetch the current
5994 windows_thread_info based on inferior_ptid.
5995 (fake_create_process): No longer write to current_windows_thread.
5996 (windows_nat_target::get_windows_debug_event):
5997 Don't set inferior_ptid or current_windows_thread.
5998 (windows_nat_target::wait): Adjust to not rely on
5999 current_windows_thread.
6000 (do_initial_windows_stuff): Now a method of windows_nat_target.
6001 Switch to the last_ptid thread.
6002 (windows_nat_target::attach): Adjust.
6003 (windows_nat_target::detach): Use switch_to_no_thread instead of
6004 writing to inferior_ptid directly.
6005 (windows_nat_target::create_inferior): Adjust.
6006
31ce04e9
PA
60072020-06-18 Pedro Alves <palves@redhat.com>
6008
6009 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6010
1ee1a363
PA
60112020-06-18 Pedro Alves <palves@redhat.com>
6012
6013 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6014 after creating it, instead of writing to inferior_ptid. Don't
6015 write to inferior_ptid.
6016
6d350754
PA
60172020-06-18 Pedro Alves <palves@redhat.com>
6018
6019 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6020
5d971d48
PA
60212020-06-18 Pedro Alves <palves@redhat.com>
6022
6023 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6024 it, instead of writing to inferior_ptid.
6025
86e57d1b
PA
60262020-06-18 Pedro Alves <palves@redhat.com>
6027
6028 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6029 to inferior_ptid.
6030
f2e1c129
PA
60312020-06-18 Pedro Alves <palves@redhat.com>
6032
6033 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6034 instead of writing to inferior_ptid directly.
6035
60db1b85
PA
60362020-06-18 Pedro Alves <palves@redhat.com>
6037
6038 * corelow.c (core_target::close): Use switch_to_no_thread instead
6039 of writing to inferior_ptid directly.
6040 (add_to_thread_list, core_target_open): Use switch_to_thread
6041 instead of writing to inferior_ptid directly.
6042
fe7d6a8d
PA
60432020-06-18 Pedro Alves <palves@redhat.com>
6044
6045 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6046 inferior_ptid.
6047 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6048 inferior_ptid.
6049 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6050 inferior_ptid directly.
6051 (darwin_nat_target::init_thread_list): Switch to thread, instead
6052 of writing to inferior_ptid.
6053 (darwin_nat_target::attach): Don't write to inferior_ptid.
6054 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6055
975f8708
PA
60562020-06-18 Pedro Alves <palves@redhat.com>
6057
6058 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6059 thread.
6060 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6061 Instead use switch_to_thread.
6062 (gnu_nat_target::detach): Use switch_to_no_thread
6063 instead of writing to inferior_ptid directly. Used passed-in
6064 inferior instead of looking up the inferior by pid.
6065
1a204730
PA
60662020-06-18 Pedro Alves <palves@redhat.com>
6067
6068 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6069 inferior_ptid.
6070
ebe84f23
PA
60712020-06-18 Pedro Alves <palves@redhat.com>
6072
6073 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6074 inferior_ptid.
6075 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6076 thread.
6077 (nto_procfs_target::detach): Avoid referencing
6078 inferior_ptid. Use switch_to_no_thread instead of writing to
6079 inferior_ptid directly.
6080 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6081 instead of writing to inferior_ptid directly.
6082 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6083 to thread.
6084
191f02e5
PA
60852020-06-18 Pedro Alves <palves@redhat.com>
6086
6087 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6088 after creating it, instead of writing to inferior_ptid.
6089 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6090 to inferior_ptid directly.
6091 (gdbsim_target::wait): Don't write to inferior_ptid.
6092
0ac55310
PA
60932020-06-18 Pedro Alves <palves@redhat.com>
6094
6095 * remote.c (remote_target::remote_notice_new_inferior): Use
6096 switch_to_thread instead of writing to inferior_ptid directly.
6097 (remote_target::add_current_inferior_and_thread): Use
6098 switch_to_no_thread instead of writing to inferior_ptid directly.
6099 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6100 and switch_to_thread instead of using set_current_inferior or
6101 writing to inferior_ptid directly.
6102
5233f39b
PA
61032020-06-18 Pedro Alves <palves@redhat.com>
6104
6105 * tracectf.c (ctf_target_open): Switch to added thread instead of
6106 writing to inferior_ptid directly.
6107 (ctf_target::close): Use switch_to_no_thread instead of writing to
6108 inferior_ptid directly.
6109
087e161b
PA
61102020-06-18 Pedro Alves <palves@redhat.com>
6111
6112 * tracefile-tfile.c (tfile_target_open): Don't write to
6113 inferior_ptid directly, instead switch to added thread.
6114 (tfile_target::close): Use switch_to_no_thread instead of writing
6115 to inferior_ptid directly.
6116
7fb43e53
PA
61172020-06-18 Pedro Alves <palves@redhat.com>
6118
6119 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6120 (procfs_target::detach): Use switch_to_no_thread
6121 instead of writing to inferior_ptid directly.
6122 (do_attach): Change return type to void. Switch to the added
6123 thread.
6124 (procfs_target::create_inferior): Switch to the added thread.
6125 (procfs_do_thread_registers): Don't write to inferior_ptid.
6126
18493a00
PA
61272020-06-18 Pedro Alves <palves@redhat.com>
6128
6129 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6130 of writing to inferior_ptid.
6131 (scoped_restore_exited_inferior): Delete.
6132 (handle_vfork_child_exec_or_exit): Simplify using
6133 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6134 instead of writing to inferior_ptid.
6135 (THREAD_STOPPED_BY): Delete.
6136 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6137 (thread_stopped_by_hw_breakpoint): Delete.
6138 (save_waitstatus): Use
6139 scoped_restore_current_thread+switch_to_thread, and call
6140 target_stopped_by_watchpoint instead of
6141 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6142 instead of thread_stopped_by_sw_breakpoint, and
6143 target_stopped_by_hw_breakpoint instead of
6144 thread_stopped_by_hw_breakpoint.
6145 (handle_inferior_event)
6146 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6147 inferior_ptid directly, nor
6148 set_current_inferior/set_current_program_space. Use
6149 switch_to_thread / switch_to_inferior_no_thread instead.
6150
a0776b13
PA
61512020-06-18 Pedro Alves <palves@redhat.com>
6152
6153 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6154 instead of writing to inferior_ptid.
6155
6155c136
PA
61562020-06-18 Pedro Alves <palves@redhat.com>
6157
6158 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6159 added thread.
6160 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6161 to the added thread.
6162 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6163 instead of writing to inferior_ptid.
6164
c5316fc6
PA
61652020-06-18 Pedro Alves <palves@redhat.com>
6166
6167 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6168 (register_to_value_test): Mock a program_space too. Heap-allocate
6169 the address space. Don't write to inferior_ptid. Use
6170 switch_to_thread instead.
6171
8df01799
PA
61722020-06-18 Pedro Alves <palves@redhat.com>
6173
6174 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6175 Delete.
6176 (find_signalled_thread()): New, factored out from
6177 linux_make_corefile_notes and adjusted to handle exited threads.
6178 (linux_make_corefile_notes): Adjust to use the new
6179 find_signalled_thread.
6180
41792d68
PA
61812020-06-18 Pedro Alves <palves@redhat.com>
6182
6183 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6184 of saving/restoring inferior_ptid.
6185
612f258a
TT
61862020-06-17 Tom Tromey <tom@tromey.com>
6187
6188 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6189 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6190 declare.
6191 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6192
efb763a5
SM
61932020-06-15 Simon Marchi <simon.marchi@efficios.com>
6194
6195 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6196 of partial symtabs.
6197
2951f6c0
SM
61982020-06-17 Simon Marchi <simon.marchi@efficios.com>
6199
6200 * regformats/reg-arm.dat: Remove.
6201 * regformats/reg-bfin.dat: Remove.
6202 * regformats/reg-cris.dat: Remove.
6203 * regformats/reg-crisv32.dat: Remove.
6204 * regformats/reg-m32r.dat: Remove.
6205 * regformats/reg-tilegx.dat: Remove.
6206 * regformats/reg-tilegx32.dat: Remove.
6207
7d458ea5
SM
62082020-06-17 Simon Marchi <simon.marchi@efficios.com>
6209
6210 * features/Makefile (WHICH): Remove arm files.
6211 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6212 * regformats/arm/arm-with-neon.dat: Remove.
6213 * regformats/arm/arm-with-vfpv2.dat: Remove.
6214 * regformats/arm/arm-with-vfpv3.dat: Remove.
6215
3af96c0d
SM
62162020-06-17 Simon Marchi <simon.marchi@efficios.com>
6217
6218 * features/Makefile (XMLTOC): Remove rx.xml.
6219
b25e22fd
PA
62202020-06-17 Pedro Alves <palves@redhat.com>
6221
6222 * gdbthread.h (thread_control_state) <trap_expected> Update
6223 comments.
6224
a78a19b1
AB
62252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6226
6227 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6228 ada_language::lookup_symbol_nonlocal.
6229 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6230 (ada_language::lookup_symbol_nonlocal): New member function,
6231 implementation from ada_lookup_symbol_nonlocal.
6232 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6233 initializer.
6234 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6235 initializer.
6236 (cplus_language::lookup_symbol_nonlocal): New member function.
6237 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6238 (minimal_language_data) Likewise.
6239 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6240 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6241 initializer.
6242 (d_language::lookup_symbol_nonlocal): New member function.
6243 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6244 initializer.
6245 (f_language::lookup_symbol_nonlocal): New member function.
6246 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6247 initializer.
6248 * language.c (unknown_language_data): Likewise.
6249 (auto_language_data): Likewise.
6250 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6251 field.
6252 (language_defn::lookup_symbol_nonlocal): New member function.
6253 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6254 initializer.
6255 * objc-lang.c (objc_language_data): Likewise.
6256 * opencl-lang.c (opencl_language_data): Likewise.
6257 * p-lang.c (pascal_language_data): Likewise.
6258 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6259 rust_language::lookup_symbol_nonlocal.
6260 (rust_language_data): Delete la_lookup_symbol_nonlocal
6261 initializer.
6262 (rust_language::lookup_symbol_nonlocal): New member function,
6263 implementation from rust_lookup_symbol_nonlocal.
6264 * symtab.c (lookup_symbol_aux): Update call to
6265 lookup_symbol_nonlocal.
6266 (basic_lookup_symbol_nonlocal): Rename to...
6267 (language_defn::lookup_symbol_nonlocal): ...this, and update
6268 header comment. Remove language_defn parameter, and replace with
6269 uses of `this'.
6270 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6271
ebe2334e
AB
62722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6273
6274 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6275 initializer.
6276 (ada_language::value_print_inner): New member function.
6277 * c-lang.c (c_language_data): Delete la_value_print_inner
6278 initializer.
6279 (cplus_language_data): Likewise.
6280 (asm_language_data): Likewise.
6281 (minimal_language_data): Likewise.
6282 * d-lang.c (d_language_data): Likewise.
6283 (d_language::value_print_inner): New member function.
6284 * f-lang.c (f_language_data): Delete la_value_print_inner
6285 initializer.
6286 (f_language::value_print_inner): New member function.
6287 * f-lang.h (f_value_print_innner): Rename to...
6288 (f_value_print_inner): ...this (note spelling of 'inner').
6289 * f-valprint.c (f_value_print_innner): Rename to...
6290 (f_value_print_inner): ...this (note spelling of 'inner').
6291 * go-lang.c (go_language_data): Delete la_value_print_inner
6292 initializer.
6293 (go_language::value_print_inner): New member function.
6294 * language.c (language_defn::value_print_inner): Define new member
6295 function.
6296 (unk_lang_value_print_inner): Delete.
6297 (unknown_language_data): Delete la_value_print_inner initializer.
6298 (unknown_language::value_print_inner): New member function.
6299 (auto_language_data): Delete la_value_print_inner initializer.
6300 (auto_language::value_print_inner): New member function.
6301 * language.h (language_data): Delete la_value_print_inner field.
6302 (language_defn::value_print_inner): Delcare new member function.
6303 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6304 initializer.
6305 (m2_language::value_print_inner): New member function.
6306 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6307 initializer.
6308 * opencl-lang.c (opencl_language_data): Likewise.
6309 * p-lang.c (pascal_language_data): Likewise.
6310 (pascal_language::value_print_inner): New member function.
6311 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6312 initializer.
6313 (rust_language::value_print_inner): New member function.
6314 * valprint.c (do_val_print): Update call to value_print_inner.
6315
a1d1fa3e
AB
63162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6317
6318 * ada-lang.c (ada_language_data): Delete la_value_print
6319 initializer.
6320 (ada_language::value_print): New member function.
6321 * c-lang.c (c_language_data): Delete la_value_print initializer.
6322 (cplus_language_data): Likewise.
6323 (asm_language_data): Likewise.
6324 (minimal_language_data): Likewise.
6325 * d-lang.c (d_language_data): Likewise.
6326 * f-lang.c (f_language_data): Likewise.
6327 * go-lang.c (go_language_data): Likewise.
6328 * language.c (unk_lang_value_print): Delete.
6329 (language_defn::value_print): Define new member function.
6330 (unknown_language_data): Delete la_value_print initializer.
6331 (unknown_language::value_print): New member function.
6332 (auto_language_data): Delete la_value_print initializer.
6333 (auto_language::value_print): New member function.
6334 * language.h (language_data): Delete la_value_print field.
6335 (language_defn::value_print): Declare new member function.
6336 (LA_VALUE_PRINT): Update call to value_print.
6337 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6338 * objc-lang.c (objc_language_data): Likewise.
6339 * opencl-lang.c (opencl_language_data): Likewise.
6340 * p-lang.c (pascal_language_data): Likewise.
6341 (pascal_language::value_print): New member function.
6342 * rust-lang.c (rust_language_data): Delete la_value_print
6343 initializer.
6344
f16a9f57
AB
63452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6346
6347 * ada-lang.c (ada_watch_location_expression): Rename to
6348 ada_language::watch_location_expression.
6349 (ada_language_data): Delete la_watch_location_expression
6350 initializer.
6351 (ada_language::watch_location_expression): New member function,
6352 implementation from ada_watch_location_expression.
6353 * breakpoint.c (watch_command_1): Update call to
6354 watch_location_expression.
6355 * c-lang.c (c_watch_location_expression): Rename to
6356 language_defn::watch_location_expression.
6357 (c_language_data): Delete la_watch_location_expression
6358 initializer.
6359 (cplus_language_data): Likewise.
6360 (asm_language_data): Likewise.
6361 (minimal_language_data): Likewise.
6362 * c-lang.h (c_watch_location_expression): Delete declaration.
6363 * d-lang.c (d_language_data): Delete la_watch_location_expression
6364 initializer.
6365 * f-lang.c (f_language_data): Likewise.
6366 * go-lang.c (go_language_data): Likewise.
6367 * language.c (language_defn::watch_location_expression): Member
6368 function implementation from c_watch_location_expression.
6369 (unknown_language_data): Delete la_watch_location_expression
6370 initializer.
6371 (auto_language_data): Likewise.
6372 * language.h (language_data): Delete la_watch_location_expression
6373 field.
6374 (language_defn::watch_location_expression): Declare new member
6375 function.
6376 * m2-lang.c (m2_language_data): Delete
6377 la_watch_location_expression initializer.
6378 * objc-lang.c (objc_language_data): Likewise.
6379 * opencl-lang.c (opencl_language_data): Likewise.
6380 * p-lang.c (pascal_language_data): Likewise.
6381 * rust-lang.c (rust_watch_location_expression): Rename to
6382 rust_language::watch_location_expression.
6383 (rust_language_data): Delete la_watch_location_expression
6384 initializer.
6385 (rust_language::watch_location_expression): New member function,
6386 implementation from rust_watch_location_expression.
6387
7e56227d
AB
63882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6389
6390 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6391 ada_language::collect_symbol_completion_matches.
6392 (ada_language_data): Delete la_collect_symbol_completion_matches
6393 initializer.
6394 (ada_language::collect_symbol_completion_matches): New member
6395 function, implementation from
6396 ada_collect_symbol_completion_matches.
6397 * c-lang.c (c_language_data): Delete
6398 la_collect_symbol_completion_matches initializer.
6399 (cplus_language_data): Likewise.
6400 (asm_language_data): Likewise.
6401 (minimal_language_data): Likewise.
6402 * d-lang.c (d_language_data): Likewise.
6403 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6404 f_language::collect_symbol_completion_matches.
6405 (f_language_data): Delete la_collect_symbol_completion_matches
6406 initializer.
6407 (f_language::collect_symbol_completion_matches) New member
6408 function, implementation from f_collect_symbol_completion_matches.
6409 * go-lang.c (go_language_data): Delete
6410 la_collect_symbol_completion_matches initializer.
6411 * language.c (unknown_language_data): Likewise.
6412 (auto_language_data): Likewise.
6413 * language.h (language_data): Delete
6414 la_collect_symbol_completion_matches field.
6415 (language_defn::collect_symbol_completion_matches): New member
6416 function.
6417 * m2-lang.c (m2_language_data): Delete
6418 la_collect_symbol_completion_matches initializer.
6419 * objc-lang.c (objc_language_data): Likewise.
6420 * opencl-lang.c (opencl_language_data): Likewise.
6421 * p-lang.c (pascal_language_data): Likewise.
6422 * rust-lang.c (rust_language_data): Likewise.
6423 * symtab.c (default_collect_symbol_completion_matches): Delete.
6424 (collect_symbol_completion_matches): Update call to
6425 collect_symbol_completion_matches.
6426 (collect_symbol_completion_matches_type): Likewise.
6427 * symtab.h (default_collect_symbol_completion_matches): Delete
6428 declaration.
6429
53fc67f8
AB
64302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6431
6432 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6433 (ada_language_data): Delete la_word_break_characters initializer.
6434 (ada_language::word_break_characters): New member function.
6435 * c-lang.c (c_language_data): Delete la_word_break_characters
6436 initializer.
6437 (cplus_language_data): Likewise.
6438 (asm_language_data): Likewise.
6439 (minimal_language_data): Likewise.
6440 * completer.c: Update global comment.
6441 (advance_to_expression_complete_word_point): Update call to
6442 word_break_characters.
6443 (complete_files_symbols): Likewise.
6444 (complete_line_internal_1): Likewise.
6445 (default_completer_handle_brkchars): Likewise.
6446 (skip_quoted_chars): Likewise.
6447 * d-lang.c (d_language_data): Delete la_word_break_characters
6448 initializer.
6449 * f-lang.c (f_word_break_characters): Delete.
6450 (f_language_data): Delete la_word_break_characters initializer.
6451 (f_language::word_break_characters): New member function.
6452 * go-lang.c (go_language_data): Delete la_word_break_characters
6453 initializer.
6454 * language.c (unknown_language_data): Likewise.
6455 (auto_language_data): Likewise.
6456 * language.h (default_word_break_characters): Move declaration to
6457 earlier in the file.
6458 (language_data): Delete la_word_break_characters field.
6459 (language_defn::word_break_characters): New member function.
6460 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6461 initializer.
6462 * objc-lang.c (objc_language_data): Likewise.
6463 * opencl-lang.c (opencl_language_data): Likewise.
6464 * p-lang.c (pascal_language_data): Likewise.
6465 * rust-lang.c (rust_language_data): Likewise.
6466
c9debfb9
AB
64672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6468
6469 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6470 (ada_language_data): Delete la_get_symbol_name_matcher
6471 initializer.
6472 (language_defn::get_symbol_name_matcher_inner): New member
6473 function.
6474 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6475 initializer.
6476 (cplus_language_data): Likewise.
6477 (cplus_language::get_symbol_name_matcher_inner): New member
6478 function.
6479 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6480 (minimal_language_data): Likewise.
6481 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6482 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6483 initializer.
6484 * dictionary.c (iter_match_first_hashed): Update call to
6485 get_symbol_name_matcher.
6486 (iter_match_next_hashed): Likewise.
6487 (iter_match_next_linear): Likewise.
6488 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6489 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6490 initializer.
6491 (f_language::get_symbol_name_matcher_inner): New member function.
6492 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6493 initializer.
6494 * language.c (default_symbol_name_matcher): Update header comment,
6495 make static.
6496 (language_defn::get_symbol_name_matcher): New definition.
6497 (language_defn::get_symbol_name_matcher_inner): Likewise.
6498 (get_symbol_name_matcher): Delete.
6499 (unknown_language_data): Delete la_get_symbol_name_matcher
6500 initializer.
6501 (auto_language_data): Likewise.
6502 * language.h (language_data): Delete la_get_symbol_name_matcher
6503 field.
6504 (language_defn::get_symbol_name_matcher): New member function.
6505 (language_defn::get_symbol_name_matcher_inner): Likewise.
6506 (default_symbol_name_matcher): Delete declaration.
6507 * linespec.c (find_methods): Update call to
6508 get_symbol_name_matcher.
6509 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6510 initializer.
6511 * minsyms.c (lookup_minimal_symbol): Update call to
6512 get_symbol_name_matcher.
6513 (iterate_over_minimal_symbols): Likewise.
6514 * objc-lang.c (objc_language_data): Delete
6515 la_get_symbol_name_matcher initializer.
6516 * opencl-lang.c (opencl_language_data): Likewise.
6517 * p-lang.c (pascal_language_data): Likewise.
6518 * psymtab.c (psymbol_name_matches): Update call to
6519 get_symbol_name_matcher.
6520 * rust-lang.c (rust_language_data): Delete
6521 la_get_symbol_name_matcher initializer.
6522 * symtab.c (symbol_matches_search_name): Update call to
6523 get_symbol_name_matcher.
6524 (compare_symbol_name): Likewise.
6525
9a49ad8c
AB
65262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6527
6528 * ada-lang.c (ada_language_data): Delete la_compute_program
6529 initializer.
6530 * c-lang.c (c_language_data): Likewise.
6531 (c_language::compute_program): New member function.
6532 (cplus_language_data): Delete la_compute_program initializer.
6533 (cplus_language::compute_program): New member function.
6534 (asm_language_data): Delete la_compute_program initializer.
6535 (minimal_language_data): Likewise.
6536 * c-lang.h (c_compute_program): Update comment.
6537 (cplus_compute_program): Likewise.
6538 * compile/compile-c-support.c (c_compute_program): Likewise.
6539 (cplus_compute_program): Likewise.
6540 * compile/compile.c (compile_to_object): Update call to
6541 la_compute_program.
6542 * d-lang.c (d_language_data): Delete la_compute_program
6543 initializer.
6544 * f-lang.c (f_language_data): Likewise.
6545 * go-lang.c (go_language_data): Likewise.
6546 * language.c (unknown_language_data): Likewise.
6547 (auto_language_data): Likewise.
6548 * language.h (language_data): Delete la_compute_program field.
6549 (language_defn::compute_program): New member function.
6550 * m2-lang.c (m2_language_data): Delete la_compute_program
6551 initializer.
6552 * objc-lang.c (objc_language_data): Likewise.
6553 * opencl-lang.c (opencl_language_data): Likewise.
6554 * p-lang.c (pascal_language_data): Likewise.
6555 * rust-lang.c (rust_language_data): Likewise.
6556
eff93b4d
AB
65572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6558
6559 * ada-lang.c (ada_language_data) Delete
6560 la_class_name_from_physname initializer.
6561 * c-lang.c (c_language_data): Likewise.
6562 (cplus_language_data): Likewise.
6563 (cplus_language::class_name_from_physname): New member function.
6564 (asm_language_data): Delete la_class_name_from_physname
6565 initializer.
6566 (minimal_language_data): Likewise.
6567 * d-lang.c (d_language_data): Likewise.
6568 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6569 method on language_defn class.
6570 (guess_full_die_structure_name): Likewise.
6571 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6572 initializer.
6573 * go-lang.c (go_language_data): Likewise.
6574 * language.c (language_class_name_from_physname): Delete.
6575 (unk_lang_class_name): Delete.
6576 (unknown_language_data): Delete la_class_name_from_physname
6577 initializer.
6578 (auto_language_data): Likewise.
6579 * language.h (language_data): Delete la_class_name_from_physname
6580 field.
6581 (language_defn::class_name_from_physname): New function.
6582 (language_class_name_from_physname): Delete declaration.
6583 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6584 initializer.
6585 * objc-lang.c (objc_language_data): Likewise.
6586 * opencl-lang.c (opencl_language_data): Likewise.
6587 * p-lang.c (pascal_language_data): Likewise.
6588 * rust-lang.c (rust_language_data): Likewise.
6589
de543742
TT
65902020-06-16 Tom Tromey <tom@tromey.com>
6591
6592 * tui/tui-data.h (STATUS_NAME): New macro.
6593 * tui/tui-layout.c (tui_remove_some_windows)
6594 (initialize_known_windows, tui_register_window)
6595 (tui_layout_split::remove_windows, initialize_layouts)
6596 (tui_new_layout_command): Don't use hard-coded window names.
6597
a350efd4
TT
65982020-06-16 Tom Tromey <tom@tromey.com>
6599
6600 PR tui/25348:
6601 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6602 tui_initialize_readline. Only run once. Call rl_initialize.
6603 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6604 tui_initialize_readline.
6605 * tui/tui-io.c (tui_setup_io): Call
6606 tui_ensure_readline_initialized.
6607 * tui/tui-interp.c (tui_interp::init): Update.
6608
39ec0490
TT
66092020-06-16 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6612 Also preserve the status window.
6613
d2d1ea20
TT
66142020-06-16 Tom Tromey <tom@tromey.com>
6615
6616 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6617 where m_window==nullptr.
6618
66920317
TT
66192020-06-15 Tom Tromey <tromey@adacore.com>
6620
6621 * windows-nat.c (windows_nat::handle_output_debug_string):
6622 Update.
6623 (windows_nat::handle_ms_vc_exception): Update.
6624 * target.h (target_read_string): Change API.
6625 * target.c (target_read_string): Change API.
6626 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6627 Update.
6628 * solib-frv.c (frv_current_sos): Update.
6629 * solib-dsbt.c (dsbt_current_sos): Update.
6630 * solib-darwin.c (darwin_current_sos): Update.
6631 * linux-thread-db.c (inferior_has_bug): Update.
6632 * expprint.c (print_subexp_standard): Update.
6633 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6634 (ada_exception_message_1): Update.
6635
a5d871dd
TT
66362020-06-15 Tom Tromey <tromey@adacore.com>
6637
6638 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6639
670e35fa
TT
66402020-06-15 Tom Tromey <tromey@adacore.com>
6641
6642 * valprint.c (read_string): Update comment.
6643 * target.c (MIN): Remove.
6644 (target_read_string): Rewrite.
6645
f5272a3b
TT
66462020-06-15 Tom Tromey <tromey@adacore.com>
6647
6648 * corefile.c (read_memory_string): Remove.
6649 * ada-valprint.c (ada_value_print_ptr): Update.
6650 * ada-lang.h (ada_tag_name): Change return type.
6651 * ada-lang.c (type_from_tag): Update.
6652 (ada_tag_name_from_tsd): Change return type. Use
6653 target_read_string.
6654 (ada_tag_name): Likewise.
6655 * gdbcore.h (read_memory_string): Don't declare.
6656
2c074f49
HD
66572020-06-14 Hannes Domani <ssbssa@yahoo.de>
6658
6659 * symtab.c (rbreak_command): Ignore Windows drive colon.
6660
6a17d503
SM
66612020-06-12 Simon Marchi <simon.marchi@efficios.com>
6662
6663 * NEWS: Mention removed GDBserver host support.
6664
453c733f
NC
66652020-06-12 Nelson Chu <nelson.chu@sifive.com>
6666
6667 * features/riscv/rebuild-csr-xml.sh: Updated.
6668
2b4e6a3f
TT
66692020-06-11 Tom Tromey <tom@tromey.com>
6670
6671 PR gdb/18318:
6672 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6673
4412332f
JG
66742020-06-09 Jonny Grant <jg@jguk.org>
66752020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6676
6677 * main.c (captured_main_1): Don't print new line after help.
6678 (print_gdb_help): add mailing list and IRC channel information
6679 to --help. Add new lines between items in the footer. Remove
6680 quotes around bug url.
6681
2f33032a
KS
66822020-06-11 Keith Seitz <keiths@redhat.com>
6683
6684 PR gdb/21356
6685 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6686 Resolve typedefs for type length calculations.
6687
7ab96794
TV
66882020-06-10 Tom de Vries <tdevries@suse.de>
6689
6690 PR ada/24713
6691 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6692 (write_psymbols): Enable .gdb_index for ada.
6693 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6694 ada.
6695
e5f3ece2
TV
66962020-06-10 Tom de Vries <tdevries@suse.de>
6697
6698 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6699 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6700 namei" instead of "const char *name" argument.
6701 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6702 dw2_symtab_iter_init.
6703
940da03e
SM
67042020-06-08 Simon Marchi <simon.marchi@efficios.com>
6705
6706 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6707 to use type::field and field::type instead.
6708
b6cdac4b
SM
67092020-06-08 Simon Marchi <simon.marchi@efficios.com>
6710
6711 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6712 to use field::type instead.
6713
5d14b6e5
SM
67142020-06-08 Simon Marchi <simon.marchi@efficios.com>
6715
6716 * gdbtypes.h (struct field) <type, set_type>: New methods.
6717 Rename `type` field to...
6718 <m_type>: ... this. Change references throughout to use type or
6719 set_type methods.
6720 (FIELD_TYPE): Use field::type. Change call sites that modify
6721 the field's type to use field::set_type instead.
6722
3d967001
SM
67232020-06-08 Simon Marchi <simon.marchi@efficios.com>
6724
6725 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6726 to use type::index_type instead.
6727
262abc0d
SM
67282020-06-08 Simon Marchi <simon.marchi@efficios.com>
6729
6730 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6731 methods.
6732 (TYPE_INDEX_TYPE): Use type::index_type.
6733 * gdbtypes.c (create_array_type_with_stride): Likewise.
6734
82836c92
TT
67352020-06-07 Tom Tromey <tom@tromey.com>
6736
6737 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6738 parameter.
6739 (generic_value_print): Update.
6740
940dace9
AB
67412020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6742
6743 Revert commit 982a38f60b0.
6744 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6745
982a38f6
AB
67462020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6747
6748 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6749 avoid use after free.
6750
82f06518
TV
67512020-06-05 Tom de Vries <tdevries@suse.de>
6752
6753 * NEWS: Fix typos.
6754
f8c41851
SM
67552020-06-04 Simon Marchi <simon.marchi@efficios.com>
6756
6757 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6758 the per_bfd object.
6759 (dwarf2_read_debug_names): Likewise.
6760 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6761 object when re-using a per_bfd object with an index.
6762
f9b5d5ea
TV
67632020-06-03 Tom de Vries <tdevries@suse.de>
6764
6765 PR symtab/26046
6766 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6767 children for C++.
6768 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6769 DW_TAG_subprogram.
6770
f6eee2d0
AB
67712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * ada-lang.c (ada_language_data): Delete skip_trampoline
6774 initializer.
6775 * c-lang.c (c_language_data): Likewise.
6776 (cplus_language_data): Likewise.
6777 (cplus_language::skip_trampoline): New member function.
6778 (asm_language_data): Delete skip_trampoline initializer.
6779 (minimal_language_data): Likewise.
6780 * d-lang.c (d_language_data): Likewise.
6781 * f-lang.c (f_language_data): Likewise.
6782 * go-lang.c (go_language_data): Likewise.
6783 * language.c (unk_lang_trampoline): Delete function.
6784 (skip_language_trampoline): Update.
6785 (unknown_language_data): Delete skip_trampoline initializer.
6786 (auto_language_data): Likewise.
6787 * language.h (language_data): Delete skip_trampoline field.
6788 (language_defn::skip_trampoline): New function.
6789 * m2-lang.c (m2_language_data): Delete skip_trampoline
6790 initializer.
6791 * objc-lang.c (objc_skip_trampoline): Delete function, move
6792 implementation to objc_language::skip_trampoline.
6793 (objc_language_data): Delete skip_trampoline initializer.
6794 (objc_language::skip_trampoline): New member function with
6795 implementation from objc_skip_trampoline.
6796 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6797 initializer.
6798 * p-lang.c (pascal_language_data): Likewise.
6799 * rust-lang.c (rust_language_data): Likewise.
6800
0a50df5d
AB
68012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6802
6803 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6804 (ada_language::demangle): New member function.
6805 * c-lang.c (c_language_data): Delete la_demangle initializer.
6806 (cplus_language_data): Delete la_demangle initializer.
6807 (cplus_language::demangle): New member function.
6808 (asm_language_data): Delete la_demangle initializer.
6809 (minimal_language_data): Delete la_demangle initializer.
6810 * d-lang.c (d_language_data): Delete la_demangle initializer.
6811 (d_language::demangle): New member function.
6812 * f-lang.c (f_language_data): Delete la_demangle initializer.
6813 (f_language::demangle): New member function.
6814 * go-lang.c (go_language_data): Delete la_demangle initializer.
6815 (go_language::demangle): New member function.
6816 * language.c (language_demangle): Update.
6817 (unk_lang_demangle): Delete.
6818 (unknown_language_data): Delete la_demangle initializer.
6819 (unknown_language::demangle): New member function.
6820 (auto_language_data): Delete la_demangle initializer.
6821 (auto_language::demangle): New member function.
6822 * language.h (language_data): Delete la_demangle field.
6823 (language_defn::demangle): New function.
6824 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6825 * objc-lang.c (objc_language_data): Delete la_demangle
6826 initializer.
6827 (objc_language::demangle): New member function.
6828 * opencl-lang.c (opencl_language_data): Delete la_demangle
6829 initializer.
6830 * p-lang.c (pascal_language_data): Likewise.
6831 * rust-lang.c (rust_language_data): Likewise.
6832 (rust_language::demangle): New member function.
6833
fbfb0a46
AB
68342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6835
6836 * ada-lang.c (ada_language_data): Delete la_print_type
6837 initializer.
6838 (ada_language::print_type): New member function.
6839 * c-lang.c (c_language_data): Delete la_print_type initializer.
6840 (c_language::print_type): New member function.
6841 (cplus_language_data): Delete la_print_type initializer.
6842 (cplus_language::print_type): New member function.
6843 (asm_language_data): Delete la_print_type initializer.
6844 (asm_language::print_type): New member function.
6845 (minimal_language_data): Delete la_print_type initializer.
6846 (minimal_language::print_type): New member function.
6847 * d-lang.c (d_language_data): Delete la_print_type initializer.
6848 (d_language::print_type): New member function.
6849 * f-lang.c (f_language_data): Delete la_print_type initializer.
6850 (f_language::print_type): New member function.
6851 * go-lang.c (go_language_data): Delete la_print_type initializer.
6852 (go_language::print_type): New member function.
6853 * language.c (unk_lang_print_type): Delete.
6854 (unknown_language_data): Delete la_print_type initializer.
6855 (unknown_language::print_type): New member function.
6856 (auto_language_data): Delete la_print_type initializer.
6857 (auto_language::print_type): New member function.
6858 * language.h (language_data): Delete la_print_type field.
6859 (language_defn::print_type): New function.
6860 (LA_PRINT_TYPE): Update.
6861 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6862 (m2_language::print_type): New member function.
6863 * objc-lang.c (objc_language_data): Delete la_print_type
6864 initializer.
6865 (objc_language::print_type): New member function.
6866 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6867 to opencl_language::print_type.
6868 (opencl_language_data): Delete la_print_type initializer.
6869 (opencl_language::print_type): New member function, implementation
6870 from opencl_print_type.
6871 * p-lang.c (pascal_language_data): Delete la_print_type
6872 initializer.
6873 (pascal_language::print_type): New member function.
6874 * rust-lang.c (rust_print_type): Delete, implementation moved to
6875 rust_language::print_type.
6876 (rust_language_data): Delete la_print_type initializer.
6877 (rust_language::print_type): New member function, implementation
6878 from rust_print_type.
6879
6f827019
AB
68802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6881
6882 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6883 implementation moves to...
6884 (ada_language::sniff_from_mangled_name): ...here. Update return
6885 type.
6886 (ada_language_data): Delete la_sniff_from_mangled_name
6887 initializer.
6888 * c-lang.c (c_language_data): Likewise.
6889 (cplus_language_data): Likewise.
6890 (cplus_language::sniff_from_mangled_name): New member function,
6891 implementation taken from gdb_sniff_from_mangled_name.
6892 (asm_language_data): Delete la_sniff_from_mangled_name
6893 initializer.
6894 (minimal_language_data): Likewise.
6895 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6896 implementation moves to cplus_language::sniff_from_mangled_name.
6897 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6898 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6899 moves to...
6900 (d_language::sniff_from_mangled_name): ...here.
6901 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6902 * f-lang.c (f_language_data): Likewise.
6903 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6904 moves to...
6905 (go_language::sniff_from_mangled_name): ...here.
6906 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6907 * language.c (language_sniff_from_mangled_name): Delete.
6908 (unknown_language_data): Delete la_sniff_from_mangled_name
6909 initializer.
6910 (auto_language_data): Likewise.
6911 * language.h (language_data): Delete la_sniff_from_mangled_name
6912 field.
6913 (language_defn::sniff_from_mangled_name): New function.
6914 (language_sniff_from_mangled_name): Delete declaration.
6915 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6916 field.
6917 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6918 implementation moves to...
6919 (objc_language::sniff_from_mangled_name): ...here.
6920 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6921 * opencl-lang.c (opencl_language_data): Likewise.
6922 * p-lang.c (pascal_language_data): Likewise.
6923 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6924 implementation moves to...
6925 (rust_language::sniff_from_mangled_name): ...here.
6926 (rust_language_data): Delete la_sniff_from_mangled_name
6927 initializer.
6928 * symtab.c (symbol_find_demangled_name): Call
6929 sniff_from_mangled_name member function.
6930
fb8006fd
AB
69312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6932
6933 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6934 initializer.
6935 * c-lang.c (c_language_data): Likewise.
6936 (cplus_language_data): Likewise.
6937 (cplus_language::search_name_hash): New member function.
6938 (asm_language_data): Delete la_search_name_hash initializer.
6939 (minimal_language_data): Likewise.
6940 * d-lang.c (d_language_data): Likewise.
6941 * dictionary.c (default_search_name_hash): Rename to...
6942 (language_defn::search_name_hash): ...this.
6943 * f-lang.c (f_language_data): Likewise.
6944 (f_language::search_name_hash): New member function.
6945 * go-lang.c (go_language_data): Delete la_search_name_hash
6946 initializer.
6947 * language.c (unknown_language_data): Likewise.
6948 (auto_language_data): Likewise.
6949 * language.h (struct language_data): Delete la_search_name_hash
6950 field.
6951 (language_defn::search_name_hash): Declare new member function.
6952 (default_search_name_hash): Delete declaration.
6953 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6954 initializer.
6955 * objc-lang.c (objc_language_data): Likewise.
6956 * opencl-lang.c (opencl_language_data): Likewise.
6957 * p-lang.c (pascal_language_data): Likewise.
6958 * rust-lang.c (rust_language_data): Likewise.
6959 * symtab.c (search_name_hash): Update call.
6960
8e25bafe
AB
69612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6964 initializer.
6965 * c-lang.c (class compile_instance): Declare.
6966 (c_language_data): Delete la_get_compile_instance initializer.
6967 (c_language::get_compile_instance): New member function.
6968 (cplus_language_data): Delete la_get_compile_instance initializer.
6969 (cplus_language::get_compile_instance): New member function.
6970 (asm_language_data): Delete la_get_compile_instance initializer.
6971 (minimal_language_data): Likewise.
6972 * c-lang.h (c_get_compile_context): Update comment.
6973 (cplus_get_compile_context): Update comment.
6974 * compile/compile.c (compile_to_object): Update calls, don't rely
6975 on function pointer being NULL.
6976 * d-lang.c (d_language_data): Delete la_get_compile_instance
6977 initializer.
6978 * f-lang.c (f_language_data): Likewise.
6979 * go-lang.c (go_language_data): Likewise.
6980 * language.c (unknown_language_data): Likewise.
6981 (auto_language_data): Likewise.
6982 * language.h (language_data): Delete la_get_compile_instance field.
6983 (language_defn::get_compile_instance): New member function.
6984 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6985 initializer.
6986 * objc-lang.c (objc_language_data): Likewise.
6987 * opencl-lang.c (opencl_language_data): Likewise.
6988 * p-lang.c (pascal_language_data): Likewise.
6989 * rust-lang.c (rust_language_data): Likewise.
6990
4009ee92
AB
69912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6992
6993 * ada-lang.c (ada_add_all_symbols): Update comment.
6994 (ada_iterate_over_symbols): Delete, move implementation to...
6995 (ada_language::iterate_over_symbols): ...here, a new member
6996 function, rewrite to use range based for loop.
6997 (ada_language_data): Delete la_iterate_over_symbols initializer.
6998 * c-lang.c (c_language_data): Likewise.
6999 (cplus_language_data): Likewise.
7000 (asm_language_data): Likewise.
7001 (minimal_language_data): Likewise.
7002 * d-lang.c (d_language_data): Likewise.
7003 * f-lang.c (f_language_data): Likewise.
7004 * go-lang.c (go_language_data): Likewise.
7005 * language.c (unknown_language_data): Likewise.
7006 (auto_language_data): Likewise.
7007 * language.h (language_data): Delete la_iterate_over_symbols field.
7008 (language_defn::iterate_over_symbols): New member function.
7009 (LA_ITERATE_OVER_SYMBOLS): Update.
7010 * linespec.c (iterate_over_all_matching_symtabs): Update.
7011 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7012 initializer.
7013 * objc-lang.c (objc_language_data): Likewise.
7014 * opencl-lang.c (opencl_language_data): Likewise.
7015 * p-lang.c (pascal_language_data): Likewise.
7016 * rust-lang.c (rust_language_data): Likewise.
7017
54f4ca46
AB
70182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7019
7020 * ada-lang.c (ada_language_data): Delete
7021 la_lookup_transparent_type initializer.
7022 * c-lang.c (c_language_data): Likewise.
7023 (cplus_language_data): Likewise.
7024 (cplus_language::lookup_transparent_type): New member function.
7025 (asm_language_data): Delete la_lookup_transparent_type
7026 initializer.
7027 (minimal_language_data): Likewise.
7028 * d-lang.c (d_language_data): Likewise.
7029 * f-lang.c (f_language_data): Likewise.
7030 * go-lang.c (go_language_data): Likewise.
7031 * language.c (unknown_language_data): Likewise.
7032 (auto_language_data): Likewise.
7033 * language.h (struct language_data): Delete
7034 la_lookup_transparent_type field.
7035 (language_defn::lookup_transparent_type): New member function.
7036 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7037 initializer.
7038 * objc-lang.c (objc_language_data): Likewise.
7039 * opencl-lang.c (opencl_language_data): Likewise.
7040 * p-lang.c (pascal_language_data): Likewise.
7041 * rust-lang.c (rust_language_data): Likewise.
7042 * symtab.c (symbol_matches_domain): Update call.
7043
1fb314aa
AB
70442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * ada-lang.c (ada_language_arch_info): Delete function, move
7047 implementation to...
7048 (ada_language::language_arch_info): ...here, a new member
7049 function.
7050 (ada_language_data): Delete la_language_arch_info.
7051 * c-lang.c (c_language_data): Likewise.
7052 (c_language::language_arch_info): New member function.
7053 (cplus_language_arch_info): Delete function, move
7054 implementation to...
7055 (cplus_language::language_arch_info): ...here, a new member
7056 function.
7057 (cplus_language_data): Delete la_language_arch_info.
7058 (asm_language_data): Likewise.
7059 (asm_language::language_arch_info): New member function.
7060 (minimal_language_data): Delete la_language_arch_info.
7061 (minimal_language::language_arch_info): New member function.
7062 * d-lang.c (d_language_arch_info): Delete function, move
7063 implementation to...
7064 (d_language::language_arch_info): ...here, a new member
7065 function.
7066 (d_language_data): Delete la_language_arch_info.
7067 * f-lang.c (f_language_arch_info): Delete function, move
7068 implementation to...
7069 (f_language::language_arch_info): ...here, a new member
7070 function.
7071 (f_language_data): Delete la_language_arch_info.
7072 * go-lang.c (go_language_arch_info): Delete function, move
7073 implementation to...
7074 (go_language::language_arch_info): ...here, a new member
7075 function.
7076 (go_language_data): Delete la_language_arch_info.
7077 * language.c (unknown_language_data): Likewise.
7078 (unknown_language::language_arch_info): New member function.
7079 (auto_language_data): Delete la_language_arch_info.
7080 (auto_language::language_arch_info): New member function.
7081 (language_gdbarch_post_init): Update call to
7082 la_language_arch_info.
7083 * language.h (language_data): Delete la_language_arch_info
7084 function pointer.
7085 (language_defn::language_arch_info): New function.
7086 * m2-lang.c (m2_language_arch_info): Delete function, move
7087 implementation to...
7088 (m2_language::language_arch_info): ...here, a new member
7089 function.
7090 (m2_language_data): Delete la_language_arch_info.
7091 * objc-lang.c (objc_language_arch_info): Delete function, move
7092 implementation to...
7093 (objc_language::language_arch_info): ...here, a new member
7094 function.
7095 (objc_language_data): Delete la_language_arch_info.
7096 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7097 implementation to...
7098 (opencl_language::language_arch_info): ...here, a new member
7099 function.
7100 (opencl_language_data): Delete la_language_arch_info.
7101 * p-lang.c (pascal_language_arch_info): Delete function, move
7102 implementation to...
7103 (pascal_language::language_arch_info): ...here, a new member
7104 function.
7105 (pascal_language_data): Delete la_language_arch_info.
7106 * rust-lang.c (rust_language_arch_info): Delete function, move
7107 implementation to...
7108 (rust_language::language_arch_info): ...here, a new member
7109 function.
7110 (rust_language_data): Delete la_language_arch_info.
7111
48448202
AB
71122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7113
7114 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7115 initializer.
7116 * c-lang.c (c_language_data): Likewise.
7117 (cplus_language_data): Likewise.
7118 (cplus_language::pass_by_reference_info): New method.
7119 (asm_language_data): Delete la_pass_by_reference initializer.
7120 (minimal_language_data): Likewise.
7121 * cp-abi.c (cp_pass_by_reference): Remove use of
7122 default_pass_by_reference.
7123 * d-lang.c (d_language_data): Likewise.
7124 * f-lang.c (f_language_data): Likewise.
7125 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7126 default_pass_by_reference.
7127 * go-lang.c (go_language_data): Likewise.
7128 * language.c (language_pass_by_reference): Update.
7129 (default_pass_by_reference): Delete.
7130 (unknown_language_data): Delete la_pass_by_reference
7131 initializer.
7132 (auto_language_data): Likewise.
7133 * language.h (struct language_data): Delete la_pass_by_reference
7134 field.
7135 (language_defn::pass_by_reference_info): New member function.
7136 (default_pass_by_reference): Delete declaration.
7137 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7138 initializer.
7139 * objc-lang.c (objc_language_data): Likewise.
7140 * opencl-lang.c (opencl_language_data): Likewise.
7141 * p-lang.c (pascal_language_data): Likewise.
7142 * rust-lang.c (rust_language_data): Likewise.
7143
15e5fd35
AB
71442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7145
7146 * ada-lang.c (ada_read_var_value): Delete function, move
7147 implementation to...
7148 (ada_language::read_var_value): ...here.
7149 (ada_language_data): Delete la_read_var_value initializer.
7150 * c-lang.c (c_language_data): Likewise.
7151 (cplus_language_data): Likewise.
7152 (minimal_language_data): Likewise.
7153 * d-lang.c (d_language_data): Likewise.
7154 * f-lang.c (f_language_data): Likewise.
7155 * findvar.c (default_read_var_value): Rename to...
7156 (language_defn::read_var_value): ...this.
7157 * findvar.c (read_var_value): Update header comment, and change to
7158 call member function instead of function pointer.
7159 * go-lang.c (go_language_data): Likewise.
7160 * language.c (unknown_language_data): Delete la_read_var_value
7161 initializer.
7162 (auto_language_data): Likewise.
7163 * language.h (struct language_data): Delete la_read_var_value
7164 field.
7165 (language_defn::read_var_value): New member function.
7166 (default_read_var_value): Delete declaration.
7167 * m2-lang.c (m2_language_data): Delete la_read_var_value
7168 initializer.
7169 * objc-lang.c (objc_language_data): Likewise.
7170 * opencl-lang.c (opencl_language_data): Likewise.
7171 * p-lang.c (pascal_language_data): Likewise.
7172 * rust-lang.c (rust_language_data): Likewise.
7173 * value.h (default_read_var_value): Delete declaration.
7174
5bd40f2a
AB
71752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 * ada-lang.c (ada_print_array_index): Delete function, move
7178 implementation to...
7179 (ada_language::print_array_index): ...here.
7180 (ada_language_data): Delete la_print_array_index initializer.
7181 * c-lang.c (c_language_data): Likewise.
7182 (cplus_language_data): Likewise.
7183 (minimal_language_data): Likewise.
7184 * d-lang.c (d_language_data): Likewise.
7185 * f-lang.c (f_language_data): Likewise.
7186 * go-lang.c (go_language_data): Likewise.
7187 * language.c (default_print_array_index): Delete function, move
7188 implementation to...
7189 (language_defn::print_array_index): ...here.
7190 (unknown_language_data): Delete la_print_array_index initializer.
7191 (auto_language_data): Likewise.
7192 * language.h (struct language_data): Delete la_print_array_index
7193 field.
7194 (language_defn::print_array_index): New member function.
7195 (LA_PRINT_ARRAY_INDEX): Update.
7196 (default_print_array_index): Delete declaration.
7197 * m2-lang.c (m2_language_data): Delete la_print_array_index
7198 initializer.
7199 * objc-lang.c (objc_language_data): Likewise.
7200 * opencl-lang.c (opencl_language_data): Likewise.
7201 * p-lang.c (pascal_language_data): Likewise.
7202 * rust-lang.c (rust_language_data): Likewise.
7203
0874fd07
AB
72042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7205
7206 * gdb/ada-lang.c (ada_language_defn): Convert to...
7207 (ada_language_data): ...this.
7208 (class ada_language): New class.
7209 (ada_language_defn): New static global.
7210 * gdb/c-lang.c (c_language_defn): Convert to...
7211 (c_language_data): ...this.
7212 (class c_language): New class.
7213 (c_language_defn): New static global.
7214 (cplus_language_defn): Convert to...
7215 (cplus_language_data): ...this.
7216 (class cplus_language): New class.
7217 (cplus_language_defn): New static global.
7218 (asm_language_defn): Convert to...
7219 (asm_language_data): ...this.
7220 (class asm_language): New class.
7221 (asm_language_defn): New static global.
7222 (minimal_language_defn): Convert to...
7223 (minimal_language_data): ...this.
7224 (class minimal_language): New class.
7225 (minimal_language_defn): New static global.
7226 * gdb/d-lang.c (d_language_defn): Convert to...
7227 (d_language_data): ...this.
7228 (class d_language): New class.
7229 (d_language_defn): New static global.
7230 * gdb/f-lang.c (f_language_defn): Convert to...
7231 (f_language_data): ...this.
7232 (class f_language): New class.
7233 (f_language_defn): New static global.
7234 * gdb/go-lang.c (go_language_defn): Convert to...
7235 (go_language_data): ...this.
7236 (class go_language): New class.
7237 (go_language_defn): New static global.
7238 * gdb/language.c (unknown_language_defn): Remove declaration.
7239 (current_language): Initialize to nullptr, real initialization is
7240 moved to _initialize_language.
7241 (languages): Delete global.
7242 (language_defn::languages): Define.
7243 (set_language_command): Use language_defn::languages.
7244 (set_language): Likewise.
7245 (range_error): Likewise.
7246 (language_enum): Likewise.
7247 (language_def): Likewise.
7248 (add_set_language_command): Use language_def::languages for the
7249 language list, and language_def to lookup language pointers.
7250 (skip_language_trampoline): Use language_defn::languages.
7251 (unknown_language_defn): Convert to...
7252 (unknown_language_data): ...this.
7253 (class unknown_language): New class.
7254 (unknown_language_defn): New static global.
7255 (auto_language_defn): Convert to...
7256 (auto_language_data): ...this.
7257 (class auto_language): New class.
7258 (auto_language_defn): New static global.
7259 (language_gdbarch_post_init): Use language_defn::languages.
7260 (_initialize_language): Initialize current_language.
7261 * gdb/language.h (struct language_defn): Rename to...
7262 (struct language_data): ...this.
7263 (struct language_defn): New.
7264 (auto_language_defn): Delete.
7265 (unknown_language_defn): Delete.
7266 (minimal_language_defn): Delete.
7267 (ada_language_defn): Delete.
7268 (asm_language_defn): Delete.
7269 (c_language_defn): Delete.
7270 (cplus_language_defn): Delete.
7271 (d_language_defn): Delete.
7272 (f_language_defn): Delete.
7273 (go_language_defn): Delete.
7274 (m2_language_defn): Delete.
7275 (objc_language_defn): Delete.
7276 (opencl_language_defn): Delete.
7277 (pascal_language_defn): Delete.
7278 (rust_language_defn): Delete.
7279 * gdb/m2-lang.c (m2_language_defn): Convert to...
7280 (m2_language_data): ...this.
7281 (class m2_language): New class.
7282 (m2_language_defn): New static global.
7283 * gdb/objc-lang.c (objc_language_defn): Convert to...
7284 (objc_language_data): ...this.
7285 (class objc_language): New class.
7286 (objc_language_defn): New static global.
7287 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7288 (opencl_language_data): ...this.
7289 (class opencl_language): New class.
7290 (opencl_language_defn): New static global.
7291 * gdb/p-lang.c (pascal_language_defn): Convert to...
7292 (pascal_language_data): ...this.
7293 (class pascal_language): New class.
7294 (pascal_language_defn): New static global.
7295 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7296 language pointer, update comment format.
7297 * gdb/rust-lang.c (rust_language_defn): Convert to...
7298 (rust_language_data): ...this.
7299 (class rust_language): New class.
7300 (rust_language_defn): New static global.
7301
1313c56e
AB
73022020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7303
7304 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7305 member variable.
7306 <m_stmt_at_address>: New member variable.
7307 (lnp_state_machine::record_line): Don't record some lines, update
7308 tracking of is_stmt at the same address.
7309 (lnp_state_machine::lnp_state_machine): Initialise new member
7310 variables.
7311
b7ed9f3d
ST
73122020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7313
7314 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7315 "-include gnu-nat-mig.h".
7316 * gnu-nat-mig.h: New file.
7317 * gnu-nat.c: Include "gnu-nat-mig.h".
7318 (exc_server, msg_reply_server, notify_server,
7319 process_reply_server): Remove declarations.
7320
14a8ad62
ST
73212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7322
7323 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7324 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7325 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7326 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7327 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7328 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7329 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7330 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7331 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7332 to gnu_nat_target class.
7333 * gnu-nat.c: Likewise.
7334 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7335 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7336 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7337 object.
7338 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7339 instead of `gnu_target'.
7340
0af5e106
ST
73412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7342
7343 * i386-gnu-tdep.c: Include "gdbcore.h"
7344 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7345 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7346 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7347 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7348 i386_gnu_sigcontext_addr): New functions
7349 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7350 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7351 tdep.
7352
078f2fc9
ST
73532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7354
7355 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7356 before fork_inferior call. Avoid calling it if target_is_pushed returns
7357 true.
7358
53dff92c
ST
73592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7360
7361 * gnu-nat.h (gnu_target): New variable declaration.
7362 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7363 gnu_target.
7364 * gnu-nat.c (gnu_target): New variable.
7365 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7366 add_thread_silent, and add_thread calls.
7367 (gnu_nat_target::create_inferior): Pass gnu_target to
7368 add_thread_silent, thread_change_ptid call.
7369 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7370 call.
7371
5a8b8627
ST
73722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7373
7374 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7375 (gnu_nat_target::find_memory_regions): Remove unused
7376 `old_address' variable.
7377
366f550a
ST
73782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7379
7380 * gnu-nat.c: Include "gdbarch.h".
7381
f14871bf
ST
73822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7383
7384 * reply_mig_hack.awk (Error return): Cast function through
7385 void *, to bypass compiler function call check.
7386
c6887cfb
ST
73872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7388
7389 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7390 $(srcdir)/reply_mig_hack.awk.
7391
6930bffe
ST
73922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7393
7394 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7395
112c22ed
JG
73962020-05-30 Jonny Grant <jg@jguk.org>
7397
7398 * configure.ac (ACX_BUGURL): change bug URL to https.
7399
f68f85b5
PA
74002020-05-30 Pedro Alves <palves@redhat.com>
7401
7402 * cp-support.c (replace_typedefs_template): New.
7403 (replace_typedefs_qualified_name): Handle
7404 DEMANGLE_COMPONENT_TEMPLATE.
7405
976ca316
SM
74062020-05-29 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7409 dwarf2/index-cache.h, dwarf2/index-write.c,
7410 dwarf2/index-write.h, dwarf2/line-header.c,
7411 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7412 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7413 variables and fields from `dwarf2_per_objfile` to just
7414 `per_objfile` throughout.
7415
989ade05
SM
74162020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7417
7418 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7419 <push_dwarf_reg_entry_value>: Add comment.
7420
c47bae85
KB
74212020-05-28 Kevin Buettner <kevinb@redhat.com>
7422 Keith Seitz <keiths@redhat.com>
7423
7424 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7425 instead of PyEval_ReleaseLock.
7426 (class gdbpy_gil): Move to earlier in file.
7427 (finalize_python): Set gdb_python_initialized.
7428 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7429 when not initialized.
7430
44486dcf
SM
74312020-05-28 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7434 <push_dwarf_reg_entry_value>: Remove assert. Override
7435 per_objfile with caller_per_objfile.
7436
f030440d
TV
74372020-05-28 Tom de Vries <tdevries@suse.de>
7438
7439 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7440 PR gold/15646 workaround to symbol kind "type".
7441
f0fbb768
TT
74422020-05-27 Tom Tromey <tromey@adacore.com>
7443
7444 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7445
af0b2a3e
TT
74462020-05-27 Tom Tromey <tromey@adacore.com>
7447
7448 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7449 Use htab_find_with_hash.
7450 <add_abbrev>: Remove "abbrev_number" parameter.
7451 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7452 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7453 (hash_abbrev): Add comment.
7454 (abbrev_table::lookup_abbrev): Move to header file.
7455 (abbrev_table::read): Update.
7456
7d00ffec
TT
74572020-05-27 Tom Tromey <tromey@adacore.com>
7458
7459 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7460 method.
7461 <canonical_name>: New member.
7462 <raw_name>: Rename from "name".
7463 (partial_die_info): Initialize canonical_name.
7464 (scan_partial_symbols): Check raw_name.
7465 (partial_die_parent_scope, partial_die_full_name)
7466 (add_partial_symbol, add_partial_subprogram)
7467 (add_partial_enumeration, load_partial_dies): Use "name" method.
7468 (partial_die_info::name): New method.
7469 (partial_die_info::read, guess_partial_die_structure_name)
7470 (partial_die_info::fixup): Update.
7471
697bba18
TT
74722020-05-27 Tom Tromey <tromey@adacore.com>
7473
7474 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7475 <get_ref_die_offset>: Inline.
7476 <get_ref_die_offset_complaint>: New method.
7477 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7478 (attribute::get_ref_die_offset_complaint): Rename from
7479 get_ref_die_offset. Just issue complaint.
7480
c17ace43
HD
74812020-05-27 Hannes Domani <ssbssa@yahoo.de>
7482
7483 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7484
96445f0b
HD
74852020-05-27 Hannes Domani <ssbssa@yahoo.de>
7486
7487 * exec.c (exec_file_attach): Use errno value of first openp failure.
7488
ac637ec3
HD
74892020-05-27 Hannes Domani <ssbssa@yahoo.de>
7490
7491 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7492 Don't close thread handle.
7493
17ee85fc
TT
74942020-05-27 Tom Tromey <tom@tromey.com>
7495 Simon Marchi <simon.marchi@efficios.com>
7496
7497 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7498 shared_ptr.
7499 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7500 member.
7501 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7502 dwarf2_per_bfd_objfile_data_key>: New globals.
7503 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7504 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7505 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7506 shared.
7507 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7508 short-circuit when sharing.
7509 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7510 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7511
39b16f87
SM
75122020-05-27 Simon Marchi <simon.marchi@efficios.com>
7513
7514 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7515 to...
7516 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7517 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7518
fcf23d5b
SM
75192020-05-27 Simon Marchi <simon.marchi@efficios.com>
7520
7521 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7522 build_name_components, find_name_components_bounds>:
7523 Add per_objfile parameter.
7524 (struct mapped_index) <symbol_name_at>: Likewise.
7525 (struct mapped_debug_names): Remove constructor.
7526 <dwarf2_per_objfile>: Remove field.
7527 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7528 (mapped_index_base::find_name_components_bounds,
7529 mapped_index_base::build_name_components,
7530 dw2_expand_symtabs_matching_symbol): Likewise.
7531 (class mock_mapped_index) <symbol_name_at>: Likewise.
7532 (check_match): Likewise.
7533 (check_find_bounds_finds): Likewise.
7534 (test_mapped_index_find_name_component_bounds): Update.
7535 (CHECK_MATCH): Update.
7536 (dw2_expand_symtabs_matching): Update.
7537 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7538 per_objfile parameter.
7539 <find_vec_in_debug_names>: Likewise.
7540 <m_per_objfile>: New field.
7541 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7542 parameter.
7543 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7544 (dw2_debug_names_iterator::next): Update.
7545 (dw2_debug_names_lookup_symbol): Update.
7546 (dw2_debug_names_expand_symtabs_for_function): Update.
7547 (dw2_debug_names_map_matching_symbols): Update.
7548 (dw2_debug_names_expand_symtabs_matching): Update.
7549 (dwarf2_read_debug_names): Update.
7550
7188ed02
SM
75512020-05-27 Simon Marchi <simon.marchi@efficios.com>
7552
7553 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7554 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7555 move to dwarf2_per_objfile.
7556 <read_in_chain>: Remove.
7557 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7558 remove_all_cus, age_comp_units>: New methods.
7559 <m_dwarf2_cus>: New member.
7560 (struct dwarf2_per_cu_data) <cu>: Remove.
7561 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7562 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7563 moved to methods of dwarf2_per_objfile.
7564 (dwarf2_clear_marks): Remove.
7565 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7566 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7567 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7568 (dwarf2_per_objfile::remove_all_cus): New.
7569 (class free_cached_comp_units) <~free_cached_comp_units>:
7570 Update.
7571 (load_cu): Update.
7572 (dw2_do_instantiate_symtab): Adjust.
7573 (fill_in_sig_entry_from_dwo_entry): Adjust.
7574 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7575 (cutu_reader::cutu_reader): Likewise.
7576 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7577 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7578 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7579 and dwarf2_per_objfile::age_comp_units.
7580 (load_partial_comp_unit): Update.
7581 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7582 (process_queue): Likewise.
7583 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7584 backlink.
7585 (dwarf2_read_addr_index): Likewise.
7586 (follow_die_offset): Likewise.
7587 (dwarf2_fetch_die_loc_sect_off): Likewise.
7588 (dwarf2_fetch_constant_bytes): Likewise.
7589 (dwarf2_fetch_die_type_sect_off): Likewise.
7590 (follow_die_sig_1): Likewise.
7591 (load_full_type_unit): Likewise.
7592 (read_signatured_type): Likewise.
7593 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7594 (dwarf2_cu::~dwarf2_cu): Remove.
7595 (dwarf2_per_objfile::get_cu): New.
7596 (dwarf2_per_objfile::set_cu): New.
7597 (age_cached_comp_units): Rename to...
7598 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7599 to std::unordered_map.
7600 (free_one_cached_comp_unit): Rename to...
7601 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7602 to std::unordered_map.
7603 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7604 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7605 a dwarf2_per_objfile in data.
7606 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7607 (dwarf2_clear_marks): Remove.
7608
2e671100
SM
76092020-05-27 Simon Marchi <simon.marchi@efficios.com>
7610
7611 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7612 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7613 (init_tu_and_read_dwo_dies): Likewise.
7614 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7615 (cutu_reader::cutu_reader): Likewise.
7616 (load_partial_comp_unit): Likewise.
7617 (process_psymtab_comp_unit): Update.
7618 (build_type_psymtabs_1): Update.
7619 (process_skeletonless_type_unit): Update.
7620 (load_full_comp_unit): Update.
7621 (find_partial_die): Update.
7622 (dwarf2_read_addr_index): Update.
7623 (read_signatured_type): Update.
7624
2e6a9f79
SM
76252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7626
7627 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7628 m_header_read_in>: New fields.
7629 <get_header>: New method.
7630 * dwarf2/read.c (per_cu_header_read_in): Remove.
7631 (dwarf2_per_cu_data::get_header): New.
7632 (dwarf2_per_cu_data::addr_size): Update.
7633 (dwarf2_per_cu_data::offset_size): Update.
7634 (dwarf2_per_cu_data::ref_addr_size): Update.
7635
1b555f17
SM
76362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7637
7638 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7639 (dw2_do_instantiate_symtab): Update.
7640 (queue_and_load_all_dwo_tus): Change parameter from
7641 dwarf2_per_cu_data to dwarf2_cu.
7642 (dwarf2_fetch_die_loc_sect_off): Update.
7643 (dwarf2_fetch_constant_bytes): Update.
7644 (dwarf2_fetch_die_type_sect_off): Update.
7645
8fc0b21d
SM
76462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7647
7648 * dwarf2/read.c (process_full_comp_unit,
7649 process_full_type_unit): Remove per_cu, per_objfile paramters.
7650 Add dwarf2_cu parameter.
7651 (process_queue): Update.
7652
168c9250
SM
76532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7654
7655 * dwarf2/read.c (create_cu_from_index_list): Replace
7656 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7657 (create_cus_from_index_list): Likewise.
7658 (create_cus_from_index): Likewise.
7659 (create_signatured_type_table_from_index): Likewise.
7660 (create_cus_from_debug_names_list): Likewise.
7661 (create_cus_from_debug_names): Likewise.
7662 (dwarf2_read_gdb_index): Update.
7663 (dwarf2_read_debug_names): Update.
7664
e286671b
TT
76652020-05-27 Tom Tromey <tom@tromey.com>
7666 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * dwarf2/read.h (struct dwarf2_per_objfile)
7669 <get_type_for_signatured_type, set_type_for_signatured_type>:
7670 New methods.
7671 <m_type_map>: New member.
7672 (struct signatured_type) <type>: Remove.
7673 * dwarf2/read.c
7674 (dwarf2_per_objfile::get_type_for_signatured_type,
7675 dwarf2_per_objfile::set_type_for_signatured_type): New.
7676 (get_signatured_type): Use new methods.
7677
8adb8487
TT
76782020-05-27 Tom Tromey <tom@tromey.com>
7679 Simon Marchi <simon.marchi@efficios.com>
7680
7681 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7682 (struct dwarf2_per_objfile) <type_units>: New member.
7683 <get_type_unit_group_unshareable>: New method.
7684 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7685 num_symtabs, symtabs>: Remove; move to
7686 type_unit_group_unshareable.
7687 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7688 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7689 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7690
127bbf4b
SM
76912020-05-27 Simon Marchi <simon.marchi@efficios.com>
7692
7693 * dwarf2/read.h (struct dwarf2_per_cu_data):
7694 <dwarf2_per_objfile>: Remove.
7695 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7696 dwarf2_per_objfile.
7697 (create_signatured_type_table_from_index): Likewise.
7698 (create_signatured_type_table_from_debug_names): Likewise.
7699 (create_debug_type_hash_table): Likewise.
7700 (fill_in_sig_entry_from_dwo_entry): Likewise.
7701 (create_type_unit_group): Likewise.
7702 (read_comp_units_from_section): Likewise.
7703 (create_cus_hash_table): Likewise.
7704
f6e649dd
SM
77052020-05-27 Simon Marchi <simon.marchi@efficios.com>
7706
7707 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7708 dwarf2_per_cu_data::dwarf2_per_objfile.
7709 (compute_compunit_symtab_includes): Likewise.
7710 (dwarf2_cu::start_symtab): Likewise.
7711
aa66c379
SM
77122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7713
7714 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7715 parameter.
7716 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7717 (read_namespace_alias): Update.
7718 (lookup_die_type): Update.
7719 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7720 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7721 Update.
7722 (disassemble_dwarf_expression): Update.
7723
120ce1b5
SM
77242020-05-27 Simon Marchi <simon.marchi@efficios.com>
7725
7726 * dwarf2/read.h (struct dwarf2_queue_item): Add
7727 dwarf2_per_objfile parameter, assign new parameter.
7728 <per_objfile>: New field.
7729 * dwarf2/read.c (free_one_cached_comp_unit): Add
7730 dwarf2_per_objfile parameter.
7731 (queue_comp_unit): Likewise.
7732 (dw2_do_instantiate_symtab): Update.
7733 (process_psymtab_comp_unit): Update.
7734 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7735 (process_imported_unit_die): Update.
7736 (queue_and_load_dwo_tu): Update.
7737 (follow_die_offset): Update.
7738 (follow_die_sig_1): Update.
7739
9f47c707
SM
77402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7741
7742 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7743 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7744 (read_call_site_scope): Assign per_objfile.
7745 (dwarf2_per_cu_data::objfile): Remove.
7746 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7747 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7748 dwarf2_per_objfile parameter.
7749 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7750 dwarf2_per_objfile parameter.
7751 (dwarf_expr_reg_to_entry_parameter): Add output
7752 dwarf2_per_objfile parameter.
7753 (locexpr_get_frame_base): Update.
7754 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7755 <push_dwarf_reg_entry_value>: Update.
7756 <call_site_to_target_addr>: Update.
7757 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7758 parameter.
7759 (value_of_dwarf_reg_entry): Update.
7760 (rw_pieced_value): Update.
7761 (indirect_synthetic_pointer): Update.
7762 (dwarf2_evaluate_property): Update.
7763 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7764 parameter.
7765 (locexpr_read_variable): Update.
7766 (locexpr_get_symbol_read_needs): Update.
7767 (loclist_read_variable): Update.
7768
14095eb3
SM
77692020-05-27 Simon Marchi <simon.marchi@efficios.com>
7770
7771 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7772 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7773 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7774 parameter.
7775 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7776 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7777 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7778 parameter.
7779 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7780 sect_variable_value): Add dwarf2_per_objfile parameter.
7781 (class dwarf_evaluate_loc_desc) <dwarf_call,
7782 dwarf_variable_value>: Update.
7783 (fetch_const_value_from_synthetic_pointer): Add
7784 dwarf2_per_objfile parameter.
7785 (fetch_const_value_from_synthetic_pointer): Update.
7786 (coerced_pieced_ref): Update.
7787 (class symbol_needs_eval_context) <dwarf_call,
7788 dwarf_variable_value>: Update.
7789 (dwarf2_compile_expr_to_ax): Update.
7790
3c3cd3d4
SM
77912020-05-27 Simon Marchi <simon.marchi@efficios.com>
7792
7793 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7794 parameter.
7795 (dwarf2_evaluate_loc_desc_full): Update.
7796
82ca3f51
SM
77972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7798
7799 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7800 parameter.
7801 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7802 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7803 dwarf2_per_objfile parameter.
7804 (decode_debug_loc_dwo_addresses): Likewise.
7805 (dwarf2_find_location_expression): Update.
7806 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7807 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7808 parameter.
7809 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7810 parameter.
7811 (locexpr_describe_location_1): Likewise.
7812 (locexpr_describe_location): Update.
7813
4b167ea1
SM
78142020-05-27 Simon Marchi <simon.marchi@efficios.com>
7815
7816 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7817 Remove.
7818 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7819 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7820 (dwarf2_compile_property_to_c): Update.
7821 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7822 use text offset from objfile.
7823 (locexpr_tracepoint_var_ref): Update.
7824 (locexpr_generate_c_location): Update.
7825 (loclist_describe_location): Update.
7826 (loclist_tracepoint_var_ref): Update.
7827 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7828 dwarf2_per_objfile parameter.
7829 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7830 use text offset from objfile.
7831 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7832
89b07335
SM
78332020-05-27 Simon Marchi <simon.marchi@efficios.com>
7834
7835 * dwarf2/expr.h (struct dwarf_expr_context)
7836 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7837 <offset>: Remove.
7838 <per_objfile>: New member.
7839 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7840 dwarf2_per_objfile parameter. Don't set offset, set
7841 per_objfile.
7842 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7843 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7844 a dwarf2_per_objfile object instead of an offset.
7845 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7846 constructor.
7847 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7848 to dwarf2_expr_executor constructor. Don't set offset.
7849 (dwarf2_fetch_cfa_info): Update.
7850 (struct dwarf2_frame_cache) <text_offset>: Remove.
7851 <per_objfile>: New field.
7852 (dwarf2_frame_cache): Update.
7853 (dwarf2_frame_prev_register): Update.
7854 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7855 <dwarf_evaluate_loc_desc>: Add constructor.
7856 (dwarf2_evaluate_loc_desc_full): Update.
7857 (dwarf2_locexpr_baton_eval): Update.
7858 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7859 Add constructor.
7860 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7861
293e7e51
SM
78622020-05-27 Simon Marchi <simon.marchi@efficios.com>
7863
7864 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7865 addr_sized_int_type>: Move to dwarf2_cu.
7866 <int_type>: Move to dwarf2_per_objfile.
7867 (struct dwarf2_per_objfile) <int_type>: Move here.
7868 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7869 addr_sized_int_type>: Move here.
7870 (read_func_scope): Update.
7871 (read_array_type): Update.
7872 (read_tag_string_type): Update.
7873 (attr_to_dynamic_prop): Update.
7874 (dwarf2_per_cu_data::int_type): Rename to...
7875 (dwarf2_per_objfile::int_type): ... this.
7876 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7877 (dwarf2_cu::addr_sized_int_type): ... this.
7878 (read_subrange_type): Update.
7879 (dwarf2_per_cu_data::addr_type): Rename to...
7880 (dwarf2_cu::addr_type): ... this.
7881 (set_die_type): Update.
7882
64874a40
SM
78832020-05-27 Simon Marchi <simon.marchi@efficios.com>
7884
7885 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7886 data through per_cu->cu.
7887
4ab09049
SM
78882020-05-27 Simon Marchi <simon.marchi@efficios.com>
7889
7890 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7891 dwarf2_per_cu_data parameter fo dwarf2_cu.
7892 (lookup_dwo_type_unit): Likewise.
7893 (read_cutu_die_from_dwo): Likewise.
7894 (lookup_dwo_unit): Likewise.
7895 (open_and_init_dwo_file): Likewise.
7896 (lookup_dwo_cutu): Likewise.
7897 (lookup_dwo_comp_unit): Likewise.
7898 (lookup_dwo_type_unit): Likewise.
7899 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7900 (cutu_reader::cutu_reader): Update.
7901
47b14e86
SM
79022020-05-27 Simon Marchi <simon.marchi@efficios.com>
7903
7904 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7905 parameter.
7906 (process_full_type_unit): Likewise.
7907 (process_queue): Update.
7908
43182c09
SM
79092020-05-27 Simon Marchi <simon.marchi@efficios.com>
7910
7911 * dwarf2/read.c (recursively_compute_inclusions): Add
7912 dwarf2_per_objfile parameter.
7913 (compute_compunit_symtab_includes): Likewise.
7914 (process_cu_includes): Update.
7915
7aa104c4
SM
79162020-05-27 Simon Marchi <simon.marchi@efficios.com>
7917
7918 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7919 parameter.
7920 (create_type_unit_group): Update.
7921 (process_psymtab_comp_unit_reader): Update.
7922 (build_type_psymtabs_reader): Update.
7923
e3beb21d
SM
79242020-05-27 Simon Marchi <simon.marchi@efficios.com>
7925
7926 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7927 object through m_this_cu->cu.
7928
d460f660
SM
79292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7930
7931 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7932 the info parameter.
7933 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7934
ab432490
SM
79352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7936
7937 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7938 per_objfile parameter.
7939 (load_full_type_unit): Add per_objfile parameter.
7940 (read_signatured_type): Likewise.
7941 (load_full_comp_unit): Likewise.
7942 (load_cu): Likewise.
7943 (dw2_do_instantiate_symtab): Likewise.
7944 (dw2_get_file_names): Likewise.
7945 (dw2_map_symtabs_matching_filename): Update.
7946 (dw_expand_symtabs_matching_file_matcher): Update.
7947 (dw2_map_symbol_filenames): Update.
7948 (process_psymtab_comp_unit): Add per_objfile parameter.
7949 (build_type_psymtabs_1): Update.
7950 (process_skeletonless_type_unit): Update.
7951 (dwarf2_build_psymtabs_hard): Update.
7952 (load_partial_comp_unit): Add per_objfile parameter.
7953 (scan_partial_symbols): Update.
7954 (load_full_comp_unit): Add per_objfile parameter.
7955 (process_imported_unit_die): Update.
7956 (create_cus_hash_table): Update.
7957 (find_partial_die): Update.
7958 (dwarf2_read_addr_index): Update.
7959 (follow_die_offset): Update.
7960 (dwarf2_fetch_die_loc_sect_off): Update.
7961 (dwarf2_fetch_constant_bytes): Update.
7962 (dwarf2_fetch_die_type_sect_off): Update.
7963 (follow_die_sig_1): Update.
7964 (load_full_type_unit): Add per_objfile parameter.
7965 (read_signatured_type): Likewise.
7966
313bad1b
SM
79672020-05-27 Simon Marchi <simon.marchi@efficios.com>
7968
7969 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7970 of objfile_name.
7971
c3699833
SM
79722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7973
7974 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7975 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7976 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7977 field.
7978 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7979 (create_cus_from_index): Update.
7980 (dwarf2_read_gdb_index): Update.
7981 (create_cus_from_debug_names): Update.
7982 (dwarf2_read_debug_names): Update.
7983 (get_abbrev_section_for_cu): Update.
7984 (create_all_comp_units): Update.
7985 (read_attribute_value): Update.
7986 (get_debug_line_section): Update.
7987 * dwarf2/index-cache.c (index_cache::store): Update.
7988 * dwarf2/index-write.c (save_gdb_index_command): Update.
7989 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7990
1859c670
SM
79912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7992
7993 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7994 member.
7995 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7996 dwarf2_per_cu_data::per_bfd.
7997 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7998 (create_type_unit_group): Likewise.
7999 (queue_comp_unit): Remove reference to
8000 per_cu->dwarf2_per_objfile.
8001 (maybe_queue_comp_unit): Likewise.
8002 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8003 (create_cus_hash_table): Assign new field.
8004
5e22e966
SM
80052020-05-27 Simon Marchi <simon.marchi@efficios.com>
8006
8007 * dwarf2/read.c: Replace
8008 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8009 dwarf2_cu->per_objfile throughout.
8010
97a1449a
SM
80112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8012
8013 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8014 parameter, don't use per_cu->dwarf2_per_objfile.
8015 (dw2_instantiate_symtab): Likewise.
8016 (dw2_find_last_source_symtab): Update.
8017 (dw2_map_expand_apply): Update.
8018 (dw2_lookup_symbol): Update.
8019 (dw2_expand_symtabs_for_function): Update.
8020 (dw2_expand_all_symtabs): Update.
8021 (dw2_expand_symtabs_with_fullname): Update.
8022 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8023 don't use per_cu->dwarf2_per_objfile.
8024 (dw2_expand_marked_cus): Update.
8025 (dw2_find_pc_sect_compunit_symtab): Update.
8026 (dw2_debug_names_lookup_symbol): Update.
8027 (dw2_debug_names_expand_symtabs_for_function): Update.
8028 (dw2_debug_names_map_matching_symbols): Update.
8029 (dwarf2_psymtab::expand_psymtab): Update.
8030
9e021579
SM
80312020-05-27 Simon Marchi <simon.marchi@efficios.com>
8032
8033 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8034 <per_objfile>: New member.
8035 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8036 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8037 call to dwarf2_cu.
8038 (cutu_reader::cutu_reader): Update.
8039 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8040
ae090bdb
SM
80412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8042
8043 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8044 struct dwarf2_per_objfile.
8045 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8046 dwarf2_per_bfd.
8047 * dwarf2/read.c (set_die_type): Update.
8048 (get_die_type_at_offset): Update.
8049
af758d11
SM
80502020-05-27 Tom Tromey <tom@tromey.com>
8051 Simon Marchi <simon.marchi@efficios.com>
8052
8053 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8054 method.
8055 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8056 get_symtab, set_symtab>: New methods.
8057 <m_symtabs>: New field.
8058 (struct dwarf2_psymtab): Derive from partial_symtab.
8059 <readin_p, get_compunit_symtab>: Declare methods.
8060 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8061 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8062 New methods.
8063 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8064 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8065 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8066 (dw2_symtab_iter_next, dw2_print_stats)
8067 (dw2_expand_symtabs_with_fullname)
8068 (dw2_expand_symtabs_matching_one)
8069 (dw_expand_symtabs_matching_file_matcher)
8070 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8071 (dw2_debug_names_iterator::next)
8072 (dw2_debug_names_map_matching_symbols)
8073 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8074 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8075 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8076 New methods.
8077 (get_compunit_symtab, process_full_comp_unit)
8078 (process_full_type_unit): Update.
8079 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8080
5989a64e
SM
80812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8082
8083 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8084 then introduce a new dwarf2_per_objfile type.
8085 <read_line_string>: Move to the new dwarf2_per_objfile type.
8086 <objfile>: Likewise.
8087 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8088 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8089 dwarf2_per_objfile->per_bfd.
8090 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8091 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8092 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8093 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8094 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8095 (dwarf2_per_objfile::locate_sections): Rename to...
8096 (dwarf2_per_bfd::locate_sections): ... this.
8097 (dwarf2_per_objfile::get_cutu): Rename to...
8098 (dwarf2_per_bfd::get_cutu): ... this.
8099 (dwarf2_per_objfile::get_cu): Rename to...
8100 (dwarf2_per_bfd::get_cu): ... this.
8101 (dwarf2_per_objfile::get_tu): Rename to...
8102 (dwarf2_per_bfd::get_tu): ... this.
8103 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8104 (dwarf2_per_bfd::allocate_per_cu): ... this.
8105 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8106 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8107 (get_gdb_index_contents_ftype): Change parameter from
8108 dwarf2_per_objfile to dwarf2_per_bfd.
8109 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8110 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8111
a50264ba
TT
81122020-05-27 Tom Tromey <tom@tromey.com>
8113 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8116 (allocate_piece_closure): Set "per_objfile" member.
8117 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8118 (locexpr_describe_location, loclist_describe_location): Use new
8119 member.
8120 * dwarf2/read.c (read_call_site_scope)
8121 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8122 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8123 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8124 handle_data_member_location): Set per_objfile member.
8125 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8126 member.
8127 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8128
d3473f0c
TT
81292020-05-27 Tom Tromey <tom@tromey.com>
8130
8131 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8132 allocate_signatured_type>: Declare new methods.
8133 <m_num_psymtabs>: New member.
8134 (struct dwarf2_per_cu_data) <index>: New member.
8135 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8136 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8137 (create_cu_from_index_list): Use allocate_per_cu.
8138 (create_signatured_type_table_from_index)
8139 (create_signatured_type_table_from_debug_names)
8140 (create_debug_type_hash_table, add_type_unit)
8141 (read_comp_units_from_section): Use allocate_signatured_type.
8142
5717c425
TT
81432020-05-27 Tom Tromey <tom@tromey.com>
8144
8145 * psymtab.c (partial_map_expand_apply)
8146 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8147 (psym_lookup_global_symbol_language)
8148 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8149 (psym_print_stats, psym_expand_symtabs_for_function)
8150 (psym_map_symbol_filenames, psym_map_matching_symbols)
8151 (psym_expand_symtabs_matching)
8152 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8153 (maintenance_check_psymtabs): Update.
8154 * psympriv.h (struct partial_symtab) <readin_p,
8155 get_compunit_symtab>: Add objfile parameter.
8156 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8157 Likewise.
8158 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8159 get_compunit_symtab>: Likewise.
8160 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8161
45940949
TT
81622020-05-27 Tom Tromey <tom@tromey.com>
8163
8164 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8165 member.
8166 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8167 (create_cu_from_index_list)
8168 (create_signatured_type_table_from_index)
8169 (create_signatured_type_table_from_debug_names)
8170 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8171 (dwarf2_create_include_psymtab)
8172 (create_debug_type_hash_table, add_type_unit)
8173 (create_type_unit_group, read_comp_units_from_section)
8174 (dwarf2_compute_name, create_cus_hash_table)
8175 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8176 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8177 obstack.
8178 (dw2_get_real_path): Likewise. Change argument to
8179 dwarf2_per_objfile.
8180
f8c6d152
LM
81812020-05-27 Luis Machado <luis.machado@linaro.org>
8182
8183 PR tdep/26000
8184 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8185 for ldrd (immediate).
8186
e98d2e6d
PW
81872020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8188
8189 * command.h: Add comment giving the name of class_tui.
8190 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8191 create the fake command for the help for class_tui.
8192
53a47a3e
TT
81932020-05-26 Tom Tromey <tromey@adacore.com>
8194
8195 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8196 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8197 (val_atr): New function.
8198 (value_val_atr): Use it.
8199 * ada-valprint.c (print_optional_low_bound): Change low bound
8200 handling for enums.
8201 (val_print_packed_array_elements): Don't call discrete_position.
8202 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8203 discrete_position for enum types.
8204 * language.c (default_print_array_index): Change type.
8205 * language.h (struct language_defn) <la_print_array_index>: Add
8206 index_type parameter, change type of index_value.
8207 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8208 (default_print_array_index): Update.
8209 * valprint.c (maybe_print_array_index): Don't call
8210 value_from_longest. Update.
8211 (value_print_array_elements): Don't call discrete_position.
8212
0bc2354b
TT
82132020-05-26 Tom Tromey <tromey@adacore.com>
8214
8215 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8216 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8217
1218a4bf
CDA
82182020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8219
8220 PR gdb/13519
8221 * avr-tdep.c (avr_integer_to_address): Return data or code
8222 address accordingly to the second 'type' argument of the
8223 function.
8224
92651b1d
MW
82252020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8226
8227 * infcmd.c, inferior.h: (construct_inferior_arguments):
8228 Moved function from here to gdbsupport/common-inferior.{h,cc}
8229
0a4f5f8c
TT
82302020-05-23 Tom Tromey <tom@tromey.com>
8231
8232 Revert commit eca1f90c:
8233 * NEWS: Remove entry for completion styling.
8234 * completer.c (_rl_completion_prefix_display_length): Move
8235 declaration later.
8236 (gdb_fnprint): Revert.
8237 (gdb_display_match_list_1): Likewise.
8238 * cli/cli-style.c (completion_prefix_style)
8239 (completion_difference_style, completion_suffix_style): Remove.
8240 (_initialize_cli_style): Revert.
8241 * cli/cli-style.h (completion_prefix_style)
8242 (completion_difference_style, completion_suffix_style): Don't
8243 declare.
8244
e08bd6c5
PA
82452020-05-24 Pedro Alves <palves@redhat.com>
8246
8247 * symtab.c (completion_list_add_name): Return boolean indication
8248 of whether the symbol matched.
8249 (completion_list_add_symbol): Don't try to remove C++ aliases if
8250 the symbol didn't match in the first place.
8251 * symtab.h (completion_list_add_name): Return bool.
8252
ceacbf6e
SM
82532020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8254
8255 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8256 type::field.
8257
26f16254
JB
82582020-05-23 Joel Brobecker <brobecker@adacore.com>
8259
8260 GDB 9.2 released.
8261
eca1f90c
TT
82622020-05-23 Tom Tromey <tom@tromey.com>
8263
8264 * NEWS: Add entry for completion styling.
8265 * completer.c (_rl_completion_prefix_display_length): Move
8266 declaration earlier.
8267 (gdb_fnprint): Use completion_style.
8268 (gdb_display_match_list_1): Likewise.
8269 * cli/cli-style.c (completion_prefix_style)
8270 (completion_difference_style, completion_suffix_style): New
8271 globals.
8272 (_initialize_cli_style): Register new globals.
8273 * cli/cli-style.h (completion_prefix_style)
8274 (completion_difference_style, completion_suffix_style): Declare.
8275
51e2cfa2
PA
82762020-05-23 Pedro Alves <palves@redhat.com>
8277
8278 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8279 (parse_escape): Use ISDIGIT instead of isdigit.
8280 (puts_debug): Use gdb_isprint instead of isprint.
8281 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8282 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8283 ISSPACE instead of isspace.
8284 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8285 instead of isspace.
8286 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8287 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8288 instead of isxdigit and ISDIGIT instead of isdigit.
8289
80fc5e77
SM
82902020-05-22 Simon Marchi <simon.marchi@efficios.com>
8291
8292 * gdbtypes.h (struct type) <field>: New method.
8293 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8294 or type::field.
8295
3cabb6b0
SM
82962020-05-22 Simon Marchi <simon.marchi@efficios.com>
8297
8298 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8299 (TYPE_FIELDS): Use type::fields. Change all call sites that
8300 modify the propery to use type::set_fields instead.
8301
1f704f76
SM
83022020-05-22 Simon Marchi <simon.marchi@efficios.com>
8303
8304 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8305 type::num_fields instead.
8306
5e33d5f4
SM
83072020-05-22 Simon Marchi <simon.marchi@efficios.com>
8308
8309 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8310 methods.
8311 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8312 that modify the number of fields to use type::set_num_fields
8313 instead.
8314
9392ebb3
TT
83152020-05-22 Tom Tromey <tromey@adacore.com>
8316
8317 * compile/compile-object-load.h (munmap_list_free): Don't
8318 declare.
8319
7c13f4e8
AB
83202020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8321
8322 * annotate.c (annotate_source_line): Update return type, add call
8323 to update current symtab and line.
8324 * annotate.h (annotate_source_line): Update return type, and
8325 extend header comment.
8326 * source.c (info_line_command): Check annotation_level before
8327 calling annotate_source_line.
8328 * stack.c (print_frame_info): If calling annotate_source_line
8329 returns true, then don't print any other source line information.
8330
aa370940
SM
83312020-05-21 Simon Marchi <simon.marchi@efficios.com>
8332
8333 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8334
84d53fa9
SM
83352020-05-21 Simon Marchi <simon.marchi@efficios.com>
8336
8337 * coffread.c (patch_type): Remove NULL check before xfree.
8338 * corefile.c (set_gnutarget): Likewise.
8339 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8340 * exec.c (build_section_table): Likewise.
8341 * remote.c (remote_target::pass_signals): Likewise.
8342 * utils.c (n_spaces): Likewise.
8343 * cli/cli-script.c (document_command): Likewise.
8344 * i386-windows-tdep.c (core_process_module_section): Likewise.
8345 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8346
9d428aae
SM
83472020-05-20 Simon Marchi <simon.marchi@efficios.com>
8348
8349 * symfile.c (reread_symbols): Clear objfile's section_offsets
8350 vector and section indices, re-compute them by calling
8351 sym_offsets.
8352
250106a7
TT
83532020-05-20 Tom Tromey <tromey@adacore.com>
8354
8355 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8356 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8357
9a0bacfb
TV
83582020-05-20 Tom de Vries <tdevries@suse.de>
8359
8360 PR symtab/25833
8361 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8362
7b958a48
AM
83632020-05-20 Alan Modra <amodra@gmail.com>
8364
8365 PR 25993
8366 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8367 bfd_set_filename.
8368 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8369 passed to bfd_set_filename.
8370 * symfile-mem.c (add_vsyscall_page): Likewise for string
8371 passed to symbol_file_add_from_memory.
8372 (symbol_file_add_from_memory): Make name param a const char* and
8373 don't strdup.
8374
c7e97679
AM
83752020-05-20 Alan Modra <amodra@gmail.com>
8376
8377 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8378 rather than accessing bfd->filename directly.
8379 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8380 and use bfd_section_name.
8381 * dwarf2/frame.c (decode_frame_entry): Likewise.
8382 * exec.c (exec_set_section_address): Likewise.
8383 * solib-aix.c (solib_aix_bfd_open): Likewise.
8384 * stap-probe.c (get_stap_base_address): Likewise.
8385 * symfile.c (reread_symbols): Likewise.
8386
563c591b
TT
83872020-05-19 Tom Tromey <tromey@adacore.com>
8388
8389 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8390
f408d82c
SM
83912020-05-19 Simon Marchi <simon.marchi@efficios.com>
8392
8393 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8394
98c59b52
PA
83952020-05-19 Pedro Alves <palves@redhat.com>
8396
8397 * NEWS (set exec-file-mismatch): Adjust entry.
8398 * exec.c: Include "build-id.h".
8399 (validate_exec_file): Try to match build IDs instead of filenames.
8400 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8401 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8402 and pass down 'warn_if_slow'.
8403 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8404 gdb_bfd_open_closure to pass it down.
8405 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8406
4111f652
PA
84072020-05-19 Pedro Alves <palves@redhat.com>
8408
8409 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8410 * target.c (target_fileio_open_1): Rename to target_fileio_open
8411 and make extern. Use bool.
8412 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8413 (target_fileio_read_alloc_1): Adjust.
8414 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8415 (target_fileio_open_warn_if_slow): Delete declaration.
8416
ad80db5b
PA
84172020-05-19 Pedro Alves <palves@redhat.com>
8418
8419 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8420 Adjust all callers.
8421
1d6ce4d3
YS
84222020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8423
8424 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8425 whether disp is negative.
8426
9005fbbb
SM
84272020-05-19 Simon Marchi <simon.marchi@efficios.com>
8428
8429 * symfile.h (struct symfile_segment_data)
8430 <~symfile_segment_data>: Remove.
8431 <segment_info>: Change to std::vector.
8432 * symfile.c (default_symfile_segments): Update.
8433 * elfread.c (elf_symfile_segments): Update.
8434
68b888ff
SM
84352020-05-19 Simon Marchi <simon.marchi@efficios.com>
8436
8437 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8438 <segments>: New.
8439 <segment_bases, segment_sizes>: Remove.
8440 * symfile.c (default_symfile_segments): Update.
8441 * elfread.c (elf_symfile_segments): Update.
8442 * remote.c (remote_target::get_offsets): Update.
8443 * solib-target.c (solib_target_relocate_section_addresses):
8444 Update.
8445
62982abd
SM
84462020-05-19 Simon Marchi <simon.marchi@efficios.com>
8447
8448 * symfile.h (struct symfile_segment_data): Initialize fields.
8449 <~symfile_segment_data>: Add.
8450 (symfile_segment_data_up): New.
8451 (struct sym_fns) <sym_segments>: Return a
8452 symfile_segment_data_up.
8453 (default_symfile_segments): Return a symfile_segment_data_up.
8454 (free_symfile_segment_data): Remove.
8455 (get_symfile_segment_data): Return a symfile_segment_data_up.
8456 * symfile.c (default_symfile_segments): Likewise.
8457 (get_symfile_segment_data): Likewise.
8458 (free_symfile_segment_data): Remove.
8459 (symfile_find_segment_sections): Update.
8460 * elfread.c (elf_symfile_segments): Return a
8461 symfile_segment_data_up.
8462 * remote.c (remote_target::get_offsets): Update.
8463 * solib-target.c (solib_target_relocate_section_addresses):
8464 Update.
8465 * symfile-debug.c (debug_sym_segments): Return a
8466 symfile_segment_data_up.
8467
7f204339
RO
84682020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8469
e52a0f1b
RO
8470 PR build/25981
8471 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8472 Hardcode register numbers.
8473
7f204339
RO
8474 PR build/25981
8475 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8476 procfs_find_LDT_entry): Remove.
8477 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8478 procfs_find_LDT_entry): Remove.
8479 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8480 Remove.
8481
7f32a4d5
PA
84822020-05-17 Pedro Alves <palves@redhat.com>
8483 Andrew Burgess <andrew.burgess@embecosm.com>
8484 Keno Fischer <keno@juliacomputing.com>
8485
8486 PR gdb/25741
8487 * breakpoint.c (build_target_condition_list): Update comments.
8488 (build_target_command_list): Update comments and skip matching
8489 locations.
8490 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8491 a separate function. Simplify "set breakpoint auto-hw off"
8492 handling.
8493 (insert_breakpoints): Update comment.
8494 (tracepoint_locations_match): New parameter. For breakpoints,
8495 compare location types too, if the caller wants to.
8496 (handle_automatic_hardware_breakpoints): New functions.
8497 (bp_location_is_less_than): Also sort by location type and
8498 hardware breakpoint length.
8499 (update_global_location_list): Handle "set breakpoint auto-hw on"
8500 here.
8501 (update_breakpoint_locations): Ask breakpoint_locations_match to
8502 ignore location types.
8503
7d93a1e0
SM
85042020-05-16 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8507 type::name instead.
8508
d0e39ea2
SM
85092020-05-16 Simon Marchi <simon.marchi@efficios.com>
8510
8511 * gdbtypes.h (struct type) <name, set_name>: New methods.
8512 (TYPE_CODE): Use type::name. Change all call sites used to set
8513 the name to use type::set_name instead.
8514
2dab0c7b
TT
85152020-05-16 Tom Tromey <tom@tromey.com>
8516
8517 * top.c (quit_force): Update.
8518 * infrun.c (handle_no_resumed): Update.
8519 * top.h (all_uis): New function.
8520 (ALL_UIS): Remove.
8521
59f7bd8d
SM
85222020-05-16 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8525
9bf058f0
PA
85262020-05-16 Pedro Alves <palves@redhat.com>
8527
8528 * ia64-linux-nat.c
8529 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8530 Declare method.
8531 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8532
8f86ae1a
SM
85332020-05-15 Simon Marchi <simon.marchi@efficios.com>
8534
8535 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8536 (sparc64_adi_info): Likewise.
8537
d6bc0792
TT
85382020-05-15 Tom Tromey <tom@tromey.com>
8539
8540 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8541 block_objfile.
8542 (lookup_objfile_from_block): Remove.
8543 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8544 (lookup_global_symbol): Use block_objfile.
8545 * symtab.h (lookup_objfile_from_block): Don't declare.
8546 * printcmd.c (clear_dangling_display_expressions): Use
8547 block_objfile.
8548 * parse.c (operator_check_standard): Use block_objfile.
8549
8c14c3a3
TT
85502020-05-15 Tom Tromey <tom@tromey.com>
8551
8552 * language.c (language_alloc_type_symbol): Set
8553 SYMBOL_SECTION.
8554 * symtab.c (initialize_objfile_symbol): Remove.
8555 (allocate_symbol): Remove.
8556 (allocate_template_symbol): Remove.
8557 * dwarf2/read.c (fixup_go_packaging): Use "new".
8558 (new_symbol): Use "new".
8559 (read_variable): Don't call initialize_objfile_symbol. Use
8560 "new".
8561 (read_func_scope): Use "new".
8562 * xcoffread.c (process_xcoff_symbol): Don't call
8563 initialize_objfile_symbol.
8564 (SYMBOL_DUP): Remove.
8565 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8566 "new".
8567 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8568 (allocate_template_symbol): Don't declare.
8569 (struct symbol): Add copy constructor. Change defaults.
8570 * jit.c (finalize_symtab): Use "new".
8571 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8572 Use "new".
8573 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8574 (common_block_end): Use "new".
8575 * mdebugread.c (parse_symbol): Use "new".
8576 (new_symbol): Likewise.
8577
5b4a1a8d
PW
85782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8579
8580 * NEWS: Mention changes to help and apropos.
8581
57b4f16e
PW
85822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8583
8584 * command.h (enum command_class): Improve comments, document
8585 that class_alias is for user-defined aliases, give the class
8586 name for each class, remove unused class_xdb.
8587 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8588 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8589 by a precise class.
8590 * infcmd.c (_initialize_infcmd): Likewise.
8591 * reverse.c (_initialize_reverse): Likewise.
8592 * stack.c (_initialize_stack): Likewise.
8593 * symfile.c (_initialize_symfile): Likewise.
8594 * tracepoint.c (_initialize_tracepoint): Likewise.
8595
7c05caf7
PW
85962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8597
8598 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8599 when their aliased command is traversed.
8600 (help_cmd): Add fput_command_names_styled call to
8601 output command name and aliases when command has an alias.
8602
3b3aaacb
PW
86032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8604
8605 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8606 * cli/cli-decode.c (help_cmd_list): Declare as static,
8607 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8608 a command together with the command.
8609 (fput_command_name_styled, fput_command_names_styled): New functions.
8610 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8611 fput_command_name_styled.
8612 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8613 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8614
7aa1b46f
PW
86152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8616
8617 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8618 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8619 * command.h (cmd_show_list): Likewise.
8620 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8621 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8622
89bcba74
PW
86232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8624
8625 * unittests/command-def-selftests.c (traverse_command_structure):
8626 Verify all commands of a list have the same prefix command and
8627 that only the top cmdlist commands have a null prefix.
8628
3f4d92eb
PW
86292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8630
8631 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8632 as prefix, not one of its aliases.
8633 (set_cmd_prefix): Remove.
8634 (do_add_cmd): Centralize the setting of the prefix of a command, when
8635 command is defined after its full chain of prefix commands.
8636 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8637 (add_setshow_cmd_full): Likewise.
8638 (update_prefix_field_of_prefixed_commands): New function.
8639 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8640 update_prefix_field_of_prefixed_commands.
8641 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8642 addresses of remote_set_cmdlist and remote_show_cmdlist given
8643 as argument, not the address of an argument.
8644 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8645 * gdb/remote.c (_initialize_remote): Likewise.
8646
0605465f
PW
86472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8648
8649 * cli/cli-cmds.c (alias_command): Check for an existing alias
8650 using lookup_cmd_composition, as valid_command_p is too strict
8651 and forbids aliases that are the prefix of an existing alias
8652 or command.
8653 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8654 command is properly recognised as a valid command.
8655
58e6ac70
PW
86562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8657
8658 * unittests/help-doc-selftests.c: Rename to
8659 unittests/command-def-selftests.c
8660 * unittests/command-def-selftests.c (help_doc_tests): Update some
8661 comments.
8662 (command_structure_tests, traverse_command_structure): New namespace
8663 and function.
8664 (command_structure_invariants_tests): New function.
8665 (_initialize_command_def_selftests) Renamed from
8666 _initialize_help_doc_selftests, register command_structure_invariants
8667 selftest.
8668
a7b9ceb8
PW
86692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8670
8671 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8672 an alias of 'show'.
8673
b2188a06
JB
86742020-05-15 Joel Brobecker <brobecker@adacore.com>
8675
8676 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8677 ada_is_fixed_point_type. Update all callers.
8678 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8679 all callers.
8680 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8681 Update all callers.
8682 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8683 print_fixed_point_type. Update all callers.
8684 * ada-valprint.c (ada_value_print_num): Replace call to
8685 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8686
a51951c2
KB
86872020-05-14 Kevin Buettner <kevinb@redhat.com>
8688
8689 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8690 processors.
8691 (cpu_supports_bts): Add CV_AMD case.
8692
29d6859f
LM
86932020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8694 Simon Marchi <simon.marchi@efficios.com>
8695
8696 * infrun.c (stop_all_threads): Collect multiple wait events at
8697 each pass.
8698
78134374
SM
86992020-05-14 Simon Marchi <simon.marchi@efficios.com>
8700
8701 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8702 type::code instead.
8703
67607e24
SM
87042020-05-14 Simon Marchi <simon.marchi@efficios.com>
8705
8706 * gdbtypes.h (struct type) <code, set_code>: New methods.
8707 (TYPE_CODE): Use type::code. Change all call sites used to set
8708 the code to use type::set_code instead.
8709
a05575d3
TBA
87102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8711 Tom de Vries <tdevries@suse.de>
8712 Pedro Alves <palves@redhat.com>
8713
8714 PR threads/25478
8715 * infrun.c (stop_all_threads): Do NOT ignore
8716 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8717 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8718 received.
8719 (handle_no_resumed): Remove code handling a live inferior with no
8720 threads.
8721 * remote.c (has_single_non_exited_thread): New.
8722 (remote_target::update_thread_list): Do not delete a thread if is
8723 the last thread of the process.
8724 * thread.c (thread_select): Call delete_exited_threads instead of
8725 prune_threads.
8726
6ad82919
TBA
87272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8728
8729 * infrun.c (stop_all_threads): Enable/disable thread events of all
8730 targets. Move a debug message denoting the end of the function
8731 into the SCOPED_EXIT block.
8732
d890404b
TBA
87332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8734
8735 * process-stratum-target.h: Include <set>.
8736 (all_non_exited_process_targets, switch_to_target_no_thread): New
8737 function declarations.
8738 * process-stratum-target.c (all_non_exited_process_targets)
8739 (switch_to_target_no_thread): New function implementations.
8740
293b3ebc
TBA
87412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8742
8743 * infrun.c (handle_inferior_event): Extract out a piece of code
8744 into...
8745 (mark_non_executing_threads): ...this new function.
8746
7ca9b62a
TBA
87472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8748
8749 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8750 use.
8751
fc75c28b
TBA
87522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8753
8754 * regcache.c (regcache_read_pc_protected): New function
8755 implementation that returns 0 if the PC cannot read via
8756 'regcache_read_pc'.
8757 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8758 instead of 'regcache_read_pc'.
8759 (keep_going_pass_signal): Ditto.
8760
a89febbd
TT
87612020-05-13 Tom Tromey <tromey@adacore.com>
8762
8763 * ada-lang.c (align_value): Remove.
8764 (ada_template_to_fixed_record_type_1): Use align_up.
8765
f7e23710
TBA
87662020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8767
8768 * async-event.c: Update the copyright year.
8769 * async-event.h: Update the copyright year.
8770
02ff80c2
SM
87712020-05-12 Simon Marchi <simon.marchi@efficios.com>
8772
8773 * objfiles.h (is_addr_in_objfile,
8774 shared_objfile_contains_address_p): Return bool.
8775 * objfile.c (is_addr_in_objfile,
8776 shared_objfile_contains_address_p): Return bool.
8777
4fd6c7e8
TT
87782020-05-11 Tom Tromey <tromey@adacore.com>
8779
8780 * cli/cli-cmds.c (info_command): Restore.
8781 (_initialize_cli_cmds): Use add_prefix_command for "info".
8782 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8783
5eb68a39
TT
87842020-05-11 Tom Tromey <tromey@adacore.com>
8785
8786 * ada-lang.c (ada_value_primitive_field): Now public.
8787 * ada-lang.h (ada_value_primitive_field): Declare.
8788 * ada-valprint.c (print_field_values): Use
8789 ada_value_primitive_field for wrapper fields.
8790
7666722f
TV
87912020-05-11 Tom de Vries <tdevries@suse.de>
8792
8793 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8794 MODULE_DOMAIN.
8795
3ee6bb11
TV
87962020-05-11 Tom de Vries <tdevries@suse.de>
8797
8798 PR symtab/25941
8799 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8800 with length 0, if not gdb-produced.
8801 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8802
43434996
TV
88032020-05-09 Tom de Vries <tdevries@suse.de>
8804
8805 PR gdb/25955
8806 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8807 calculation.
8808
2f78cffc
TT
88092020-05-09 Tom Tromey <tom@tromey.com>
8810
8811 * top.c (server_command): Now bool.
8812 * top.h (server_command): Now bool.
8813
4f7bc5ed
TT
88142020-05-08 Tom Tromey <tromey@adacore.com>
8815
8816 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8817 already being processed.
8818
8be4b118
TT
88192020-05-08 Tom Tromey <tom@tromey.com>
8820
8821 * printcmd.c (struct display) <next>: Remove.
8822 <display>: New constructor.
8823 <exp_string>: Now a std::string.
8824 <enabled_p>: Now a bool.
8825 (display_number): Move definition earlier.
8826 (displays): Rename from display_chain. Now a std::vector.
8827 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8828 (display_command): Update.
8829 (do_one_display, disable_display)
8830 (enable_disable_display_command, do_enable_disable_display):
8831 Update.
8832 (free_display): Remove.
8833 (clear_displays): Rewrite.
8834 (delete_display): Update.
8835 (map_display_numbers): Use function_view. Remove "data"
8836 parameter. Update.
8837 (do_delete_display): Remove.
8838 (undisplay_command): Update.
8839 (do_one_display, do_displays, disable_display)
8840 (info_display_command): Update.
8841 (do_enable_disable_display): Remove.
8842 (enable_disable_display_command)
8843 (clear_dangling_display_expressions): Update.
8844
94c93c35
TT
88452020-05-08 Tom Tromey <tom@tromey.com>
8846
8847 * symtab.c (set_symbol_cache_size)
8848 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8849 (maintenance_print_symbol_cache_statistics): Update.
8850 * symmisc.c (print_symbol_bcache_statistics)
8851 (print_objfile_statistics, maintenance_print_objfiles)
8852 (maintenance_info_symtabs, maintenance_check_symtabs)
8853 (maintenance_expand_symtabs, maintenance_info_line_tables):
8854 Update.
8855 * symfile-debug.c (set_debug_symfile): Update.
8856 * source.c (forget_cached_source_info): Update.
8857 * python/python.c (gdbpy_progspaces): Update.
8858 * psymtab.c (maintenance_info_psymtabs): Update.
8859 * probe.c (parse_probes): Update.
8860 * linespec.c (iterate_over_all_matching_symtabs)
8861 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8862 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8863 * exec.c (exec_target::close): Update.
8864 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8865 * breakpoint.c (print_one_breakpoint_location)
8866 (create_longjmp_master_breakpoint)
8867 (create_std_terminate_master_breakpoint): Update.
8868 * progspace.c (program_spaces): Now a std::vector.
8869 (maybe_new_address_space): Update.
8870 (add_program_space): Remove.
8871 (program_space::program_space): Update.
8872 (remove_program_space): Update.
8873 (number_of_program_spaces): Remove.
8874 (print_program_space, update_address_spaces): Update.
8875 * progspace.h (program_spaces): Change type.
8876 (ALL_PSPACES): Remove.
8877 (number_of_program_spaces): Don't declare.
8878 (struct program_space) <next>: Remove.
8879
a1fd1ac9
TT
88802020-05-08 Tom Tromey <tom@tromey.com>
8881
8882 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8883 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8884 (enable_break): Update.
8885 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8886 (frv_fdpic_find_canonical_descriptor): Update.
8887 (frv_fetch_objfile_link_map): Update.
8888 * progspace.c (program_space::free_all_objfiles): Update.
8889 (program_space::solibs): New method.
8890 * progspace.h (struct program_space) <solibs>: New method.
8891 * solist.h (master_so_list): Don't declare.
8892 (ALL_SO_LIBS): Remove.
8893 * solib.h (so_list_head): Remove.
8894 (update_solib_list): Update comment.
8895 * solib.c (master_so_list): Remove.
8896 (solib_used, update_solib_list, solib_add)
8897 (info_sharedlibrary_command, clear_solib)
8898 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8899
38eae084
TT
89002020-05-08 Tom Tromey <tom@tromey.com>
8901
8902 * extension.c (extension_languages): Now a std::array.
8903 (ALL_EXTENSION_LANGUAGES): Remove.
8904 (get_ext_lang_defn, get_ext_lang_of_file)
8905 (eval_ext_lang_from_control_command): Update.
8906 (finish_ext_lang_initialization)
8907 (auto_load_ext_lang_scripts_for_objfile)
8908 (ext_lang_type_printers::ext_lang_type_printers)
8909 (apply_ext_lang_type_printers)
8910 (ext_lang_type_printers::~ext_lang_type_printers)
8911 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8912 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8913 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8914 (get_matching_xmethod_workers, ext_lang_colorize)
8915 (ext_lang_before_prompt): Update.
8916 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8917
596dc4ad
TT
89182020-05-08 Tom Tromey <tom@tromey.com>
8919
8920 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8921 overload.
8922 <swap_string, m_string>: Remove.
8923 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8924 Update.
8925 * stabsread.c (define_symbol, read_type): Update.
8926 * linespec.c (find_linespec_symbols): Update.
8927 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8928 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8929 * dbxread.c (read_dbx_symtab): Update.
8930 * cp-support.h (cp_canonicalize_string_full)
8931 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8932 Return unique_xmalloc_ptr.
8933 * cp-support.c (inspect_type): Update.
8934 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8935 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8936 Likewise.
8937 * c-typeprint.c (print_name_maybe_canonical): Update.
8938 * break-catch-throw.c (check_status_exception_catchpoint):
8939 Update.
8940
bf4cb9be
TV
89412020-05-08 Tom de Vries <tdevries@suse.de>
8942
8943 * infrun.c (follow_fork): Copy current_line and current_symtab to
8944 child thread.
8945
a1b68f28
SM
89462020-05-07 Simon Marchi <simon.marchi@efficios.com>
8947
8948 * async-event.c (struct async_signal_handler, struct
8949 async_event_handler): Reformat, remove typedef.
8950
98d48915
SM
89512020-05-07 Simon Marchi <simon.marchi@efficios.com>
8952
8953 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8954 access thistype->main_type->dyn_prop_list directly.
8955
7aa91313
SM
89562020-05-07 Simon Marchi <simon.marchi@efficios.com>
8957
8958 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8959 (remove_dyn_prop): Remove. Update all users to use
8960 type::remove_dyn_prop.
8961 * gdbtypes.c (remove_dyn_prop): Rename to...
8962 (type::remove_dyn_prop): ... this.
8963
5c54719c
SM
89642020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8965
8966 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8967 (add_dyn_prop): Remove. Update all users to use
8968 type::add_dyn_prop.
8969 * gdbtypes.c (add_dyn_prop): Rename to...
8970 (type::add_dyn_prop): ... this.
8971
24e99c6c
SM
89722020-05-07 Simon Marchi <simon.marchi@efficios.com>
8973
8974 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8975 (get_dyn_prop): Remove. Update all users to use
8976 type::dyn_prop.
8977 * gdbtypes.c (get_dyn_prop): Rename to...
8978 (type::dyn_prop): ... this.
8979
0d4bf016
SM
89802020-05-06 Simon Marchi <simon.marchi@efficios.com>
8981
8982 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8983
ac4a4f1c
SM
89842020-05-06 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8987 instruction, skip it if it's there.
8988
a3bbacc1
SM
89892020-05-05 Simon Marchi <simon.marchi@efficios.com>
8990
8991 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8992
c3236f84
SM
89932020-05-04 Simon Marchi <simon.marchi@efficios.com>
8994
8995 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8996 * gdbtypes.c (recursive_dump_type): Remove use of
8997 TYPE_INCOMPLETE.
8998
3b6acaee
TT
89992020-05-03 Tom Tromey <tom@tromey.com>
9000
9001 * breakpoint.c (catch_command, tcatch_command): Remove.
9002 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9003 add_show_prefix_cmd.
9004 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9005 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9006 Remove.
9007 (add_internal_problem_command): Use add_basic_prefix_cmd,
9008 add_show_prefix_cmd.
9009 * mips-tdep.c (set_mipsfpu_command): Remove.
9010 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9011 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9012 (_initialize_index_cache): Use add_basic_prefix_cmd.
9013 * memattr.c (dummy_cmd): Remove.
9014 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9015 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9016 (_initialize_tui_win): Use add_basic_prefix_cmd,
9017 add_show_prefix_cmd.
9018 * cli/cli-logging.c (set_logging_command): Remove.
9019 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9020 add_show_prefix_cmd.
9021 (show_logging_command): Remove.
9022 * target.c (target_command): Remove.
9023 (add_target): Use add_basic_prefix_cmd.
9024
a51119cd
HD
90252020-05-02 Hannes Domani <ssbssa@yahoo.de>
9026
9027 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9028
652fc23a 90292020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9030
652fc23a
PW
9031 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9032 info_command.
9033
117539e6
KR
90342020-04-30 Kamil Rytarowski <n54@gmx.com>
9035
9036 * nbsd-nat.c (nbsd_enable_proc_events)
9037 (nbsd_nat_target::post_startup_inferior): Add.
9038 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9039 (nbsd_nat_target::update_thread_list): Rewrite.
9040 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9041 "PTRACE_LWP_CREATE".
9042 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9043
102e38eb 90442020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9045
102e38eb
PW
9046 * stack.c (_initialize_stack): Remove duplicated creation
9047 of "frame" command and "f" alias.
9048
ee9d1e5f
HD
90492020-04-30 Hannes Domani <ssbssa@yahoo.de>
9050
9051 PR gdb/18706
9052 * gdbtypes.c (check_typedef): Calculate size of array of
9053 stubbed type.
9054
627c7fb8
HD
90552020-04-30 Hannes Domani <ssbssa@yahoo.de>
9056
9057 PR gdb/15559
9058 * i386-tdep.c (i386_push_dummy_call): Call
9059 i386_thiscall_push_dummy_call.
9060 (i386_thiscall_push_dummy_call): New function.
9061 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9062 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9063 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9064
ffc2844e
SM
90652020-04-29 Simon Marchi <simon.marchi@efficios.com>
9066
9067 * gdbarch.sh (do_read): Add shellcheck disable directive for
9068 warning SC2162.
9069
1207375d
SM
90702020-04-29 Simon Marchi <simon.marchi@efficios.com>
9071
9072 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9073 "referenced but not assigned" warning.
9074
9fdb2916
SM
90752020-04-29 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * gdbarch.sh: Remove code that sets fallbackdefault.
9078
759cea5e
SM
90792020-04-29 Simon Marchi <simon.marchi@efficios.com>
9080
9081 * gdbarch.sh: Use shell operators && and || instead of
9082 -a and -o.
9083
cb02ab24
SM
90842020-04-29 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * gdbarch.sh: Use $(...) instead of `...`.
9087
a6fc5ffc
SM
90882020-04-29 Simon Marchi <simon.marchi@efficios.com>
9089
9090 * gdbarch.sh: Use double quotes around variables.
9091
8d113d13
SM
90922020-04-29 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * gdbarch.sh: Use %s with printf, instead of variables in the
9095 format string.
9096
ed6acedd
TT
90972020-04-29 Tom Tromey <tromey@adacore.com>
9098
9099 PR ada/25875:
9100 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9101 type fields here.
9102 (read_enumeration_type): Call
9103 update_enumeration_type_from_children later. Update comments.
9104 (process_enumeration_scope): Don't create type fields.
9105
b68b1b58
KR
91062020-04-29 Kamil Rytarowski <n54@gmx.com>
9107
9108 * nbsd-tdep.c: Include "xml-syscall.h".
9109 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9110
f94b2e03
KR
91112020-04-29 Kamil Rytarowski <n54@gmx.com>
9112
9113 * nbsd-nat.c: Include "sys/wait.h".
9114 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9115 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9116 (nbsd_nat_target::remove_exec_catchpoint)
9117 (nbsd_nat_target::set_syscall_catchpoint): Add.
9118 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9119 (nbsd_nat_target::insert_exec_catchpoint)
9120 (nbsd_nat_target::remove_exec_catchpoint)
9121 (nbsd_nat_target::set_syscall_catchpoint): Add.
9122 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9123 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9124 `nbsd_get_syscall_number'.
9125
fc49bc72
TT
91262020-04-29 Tom Tromey <tom@tromey.com>
9127
9128 * stack.c (print_block_frame_labels): Remove.
9129
d642b692
HD
91302020-04-29 Hannes Domani <ssbssa@yahoo.de>
9131
9132 PR gdb/17320
9133 * ada-valprint.c (val_print_packed_array_elements): Move array
9134 end bracket to new line.
9135 (ada_val_print_string): Remove extra spaces before first array
9136 element.
9137 * c-valprint.c (c_value_print_array): Likewise.
9138 * m2-valprint.c (m2_print_array_contents): Likewise.
9139 (m2_value_print_inner): Likewise.
9140 * p-valprint.c (pascal_value_print_inner): Likewise.
9141 * valprint.c (generic_val_print_array): Likewise.
9142 (value_print_array_elements): Move first array element and array
9143 end bracket to new line.
9144
ea90f227
TV
91452020-04-29 Tom de Vries <tdevries@suse.de>
9146
9147 PR symtab/25889
9148 * linespec.c (find_method): Fix ix calculation.
9149
4498ef4f
KR
91502020-04-28 Kamil Rytarowski <n54@gmx.com>
9151
9152 * syscalls/update-netbsd.sh: New file.
9153 * syscalls/netbsd.xml: Regenerate.
9154 * data-directory/Makefile.in: Register `netbsd.xml' in
9155 `SYSCALLS_FILES'.
9156
a55e30b5
SM
91572020-04-28 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * syscalls/update-freebsd.sh: Add double quotes.
9160
2b2fbab8
TT
91612020-04-28 Tom Tromey <tom@tromey.com>
9162
9163 * NEWS: Update.
9164 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9165 (cmdpy_init): Allow class_tui.
9166
a65189c9
TV
91672020-04-28 Mark Williams <mark@myosotissp.com>
9168
9169 PR gdb/24480
9170 * dwarf2read.c: Add missing assingments to list_in_scope when
9171 start_symtab was already called.
9172
1b95cdb7
SM
91732020-04-28 Simon Marchi <simon.marchi@efficios.com>
9174
9175 PR gdb/25881
9176 * dwarf2/read.c (offset_map_type): Use
9177 gdb:hash_enum<sect_offset> as hash function.
9178
15cd93d0
TV
91792020-04-28 Tom de Vries <tdevries@suse.de>
9180
9181 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9182 with DW_AT_signature.
9183
1eb39914
SM
91842020-04-27 Simon Marchi <simon.marchi@efficios.com>
9185
9186 * configure.ac: Remove check for fs_base/gs_base in
9187 user_regs_struct.
9188 * configure: Re-generate.
9189 * config.in: Re-generate.
9190 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9191 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9192 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9193
991a3e2e
LM
91942020-04-27 Luis Machado <luis.machado@linaro.org>
9195
9196 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9197 problematic inline frame unwinding situation.
9198 * frame.c (frame_id_computed_p): New function.
9199 * frame.h (frame_id_computed_p): New prototype.
9200
361ba0e8
TT
92012020-04-26 Tom Tromey <tom@tromey.com>
9202
9203 * command.h (enum command_class) <class_pseudo>: Remove.
9204
bc3609fd
PW
92052020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9206
9207 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9208 and whitespace.
9209
b9771db7
KR
92102020-04-25 Kamil Rytarowski <n54@gmx.com>
9211
ec16513e
SM
9212 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9213 `PT_GET_PROCESS_STATE' block.
b9771db7 9214
7151c1af
TT
92152020-04-24 Tom Tromey <tom@tromey.com>
9216
9217 * symtab.h (symbol_get_demangled_name): Don't declare.
9218 * symtab.c (symbol_get_demangled_name): Remove.
9219 (general_symbol_info::natural_name)
9220 (general_symbol_info::demangled_name): Update.
9221
906bb4c5
TT
92222020-04-24 Tom Tromey <tom@tromey.com>
9223
9224 PR rust/25025:
9225 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9226
bcfe6157
TT
92272020-04-24 Tom Tromey <tom@tromey.com>
9228
9229 PR symtab/12707:
9230 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9231 exists.
9232 (new_symbol): Likewise.
9233 * compile/compile-object-load.c (get_out_value_type): Use
9234 symbol_matches_search_name.
9235
f049a313
TT
92362020-04-24 Tom Tromey <tom@tromey.com>
9237
9238 * dwarf2/read.c (add_partial_symbol): Do not call
9239 compute_and_set_names.
9240
76e288d1
TT
92412020-04-24 Tom Tromey <tom@tromey.com>
9242
9243 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9244 overload.
9245
2467f4f6
TT
92462020-04-24 Tom Tromey <tom@tromey.com>
9247
9248 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9249 (add_psymbol_to_list): New overload. Make old overload call new
9250 one.
9251 * psympriv.h (add_psymbol_to_list): New overload.
9252
e61108c9
TT
92532020-04-24 Tom Tromey <tom@tromey.com>
9254
9255 * dwarf2/read.c (partial_die_info::read) <case
9256 DW_AT_linkage_name>: Use value_as_string.
9257 (dwarf2_string_attr): Use value_as_string.
9258 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9259 method.
9260 * dwarf2/attribute.c (attribute::value_as_string): New method.
9261
8c87a452
TT
92622020-04-24 Tom Tromey <tom@tromey.com>
9263
9264 * symtab.c (general_symbol_info::natural_name)
9265 (general_symbol_info::demangled_name): Check for language_rust.
9266
787de330
TT
92672020-04-24 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9270 (dwarf2_physname): ... from here.
9271 (partial_die_info::read): Add Rust "{" hack.
9272
ff985671
TT
92732020-04-24 Tom Tromey <tom@tromey.com>
9274
9275 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9276 method.
9277 (symbol_set_demangled_name): Don't declare.
9278 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9279 symbol_set_demangled_name.
9280 (general_symbol_info::set_language)
9281 (general_symbol_info::compute_and_set_names): Update.
9282 * minsyms.c (minimal_symbol_reader::install): Update.
9283 * dwarf2/read.c (new_symbol): Update.
9284
1acda803
TT
92852020-04-24 Tom Tromey <tromey@adacore.com>
9286
9287 PR python/23662:
9288 * python/py-type.c (convert_field): Handle
9289 FIELD_LOC_KIND_DWARF_BLOCK.
9290 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9291 (typy_get_dynamic): Nw function.
9292 (type_object_getset): Add "dynamic".
9293 * NEWS: Add entry.
9294
d656f129
TT
92952020-04-24 Tom Tromey <tromey@adacore.com>
9296
9297 * ada-typeprint.c (print_choices, print_variant_part)
9298 (print_record_field_types_dynamic): New functions.
9299 (print_record_field_types): Use print_record_field_types_dynamic.
9300
7d79de9a
TT
93012020-04-24 Tom Tromey <tromey@adacore.com>
9302
9303 * dwarf2/read.c (handle_data_member_location): New overload.
9304 (dwarf2_add_field): Use it.
9305 (decode_locdesc): Add "computed" parameter. Update comment.
9306 * gdbtypes.c (is_dynamic_type_internal): Also look for
9307 FIELD_LOC_KIND_DWARF_BLOCK.
9308 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9309 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9310 virtual base classes.
9311 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9312 FIELD_LOC_KIND_DWARF_BLOCK.
9313
f8e89861
TT
93142020-04-24 Tom Tromey <tromey@adacore.com>
9315
9316 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9317 * gdbtypes.c (is_dynamic_type_internal): Check
9318 TYPE_HAS_DYNAMIC_LENGTH.
9319 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9320 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9321 New macros.
9322 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9323 constant.
9324
9c6a1327
TT
93252020-04-24 Tom Tromey <tromey@adacore.com>
9326
9327 * dwarf2/read.c (struct variant_field): Rewrite.
9328 (struct variant_part_builder): New.
9329 (struct nextfield): Remove "variant" field. Add "offset".
9330 (struct field_info): Add "current_variant_part" and
9331 "variant_parts".
9332 (alloc_discriminant_info): Remove.
9333 (alloc_rust_variant): New function.
9334 (quirk_rust_enum): Update.
9335 (dwarf2_add_field): Set "offset" member. Don't handle
9336 DW_TAG_variant_part.
9337 (offset_map_type): New typedef.
9338 (convert_variant_range, create_one_variant)
9339 (create_one_variant_part, create_variant_parts)
9340 (add_variant_property): New functions.
9341 (dwarf2_attach_fields_to_type): Call add_variant_property.
9342 (read_structure_type): Don't handle DW_TAG_variant_part.
9343 (handle_variant_part, handle_variant): New functions.
9344 (handle_struct_member_die): Use them.
9345 (process_structure_scope): Don't handle variant parts.
9346 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9347 (struct discriminant_info): Remove.
9348 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9349 (struct main_type) <flag_discriminated_union>: Remove.
9350 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9351 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9352 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9353 Update.
9354 * valops.c (value_union_variant): Remove.
9355 * value.h (value_union_variant): Don't declare.
9356
b249d2c2
TT
93572020-04-24 Tom Tromey <tromey@adacore.com>
9358
9359 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9360 (ada_value_primitive_packed_val): Update.
9361 * ada-valprint.c (ada_value_print_1): Update.
9362 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9363 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9364 just an address. Use evaluate_for_locexpr_baton.
9365 (dwarf2_evaluate_property): Update.
9366 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9367 array_view.
9368 * findvar.c (default_read_var_value): Update.
9369 * gdbtypes.c (compute_variant_fields_inner)
9370 (resolve_dynamic_type_internal): Update.
9371 (resolve_dynamic_type): Change type of valaddr parameter.
9372 * gdbtypes.h (resolve_dynamic_type): Update.
9373 * valarith.c (value_subscripted_rvalue): Update.
9374 * value.c (value_from_contents_and_address): Update.
9375
61122aa9
TT
93762020-04-24 Tom Tromey <tromey@adacore.com>
9377
9378 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9379 "push_initial_value" parameter.
9380 (dwarf2_evaluate_property): Likewise.
9381 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9382
ef83a141
TT
93832020-04-24 Tom Tromey <tromey@adacore.com>
9384
9385 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9386 (variant::matches, compute_variant_fields_recurse)
9387 (compute_variant_fields_inner, compute_variant_fields): New
9388 functions.
9389 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9390 Use resolved_type after type is made.
9391 (operator==): Add new cases.
9392 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9393 (struct discriminant_range, struct variant, struct variant_part):
9394 New.
9395 (union dynamic_prop_data) <variant_parts, original_type>: New
9396 members.
9397 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9398 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9399 constants.
9400 * value.c (unpack_bits_as_long): Now public.
9401 * value.h (unpack_bits_as_long): Declare.
9402
675127ec
TT
94032020-04-24 Tom Tromey <tromey@adacore.com>
9404
9405 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9406 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9407
9852ceef
HD
94082020-04-24 Hannes Domani <ssbssa@yahoo.de>
9409
9410 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9411
7632c6ce
KR
94122020-04-24 Kamil Rytarowski <n54@gmx.com>
9413
9414 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9415 (remove_fork_catchpoint, post_startup_inferior)
9416 (post_attach): Move...
9417 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9418 (remove_fork_catchpoint, post_startup_inferior)
9419 (post_attach): ...here.
9420 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9421 (remove_fork_catchpoint, post_startup_inferior)
9422 (post_attach): Move...
9423 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9424 (remove_fork_catchpoint, post_startup_inferior)
9425 (post_attach): ...here.
9426
7be2bb4f
TT
94272020-04-24 Tom Tromey <tromey@adacore.com>
9428
9429 * nat/windows-nat.h (struct windows_thread_info)
9430 <pc_adjusted>: New member.
9431 * windows-nat.c (windows_fetch_one_register): Check
9432 pc_adjusted.
9433 (windows_nat_target::get_windows_debug_event)
9434 (windows_nat_target::wait): Set pc_adjusted.
9435
f80cb3b4
TV
94362020-04-24 Tom de Vries <tdevries@suse.de>
9437
9438 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9439 Run gdb-add-index inside temp dir.
9440
29514b87
TT
94412020-04-23 Tom Tromey <tromey@adacore.com>
9442
9443 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9444 in loop.
9445
5939967b
LM
94462020-04-23 Luis Machado <luis.machado@linaro.org>
9447
9448 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9449 get_frame_register instead of gdbarch_unwind_pc.
9450
70bc38f5
TV
94512020-04-23 Tom de Vries <tdevries@suse.de>
9452
9453 * symtab.c (lookup_global_symbol): Prefer def over decl.
9454
de82891c
TV
94552020-04-23 Tom de Vries <tdevries@suse.de>
9456
9457 PR symtab/25807
9458 * block.c (best_symbol, better_symbol): Promote to external.
9459 * block.h (best_symbol, better_symbol): Declare.
9460 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9461 decl.
9462
ecc6c606
TT
94632020-04-23 Tom Tromey <tromey@adacore.com>
9464
9465 PR ada/25837:
9466 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9467 "const char *", not a "const std::string &".
9468 <name_and_matcher::operator==>: Update.
9469 * unittests/lookup_name_info-selftests.c: Change type of
9470 "result".
9471
740480b8
TT
94722020-04-23 Tom Tromey <tom@tromey.com>
9473
9474 * inferior.h (iterate_over_inferiors): Don't declare.
9475 * inferior.c (iterate_over_inferiors): Remove.
9476 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9477 Remove.
9478 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9479 use iterate_over_inferiors.
9480 (darwin_resume_inferior_it)
9481 (struct resume_inferior_threads_param)
9482 (darwin_resume_inferior_threads_it): Remove.
9483 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9484
ae3ab1f0
TV
94852020-04-23 Tom de Vries <tdevries@suse.de>
9486
9487 * blockframe.c (find_pc_partial_function): Use
9488 find_pc_sect_compunit_symtab rather than
9489 objfile->sf->qf->find_pc_sect_compunit_symtab.
9490
317d2668
TV
94912020-04-22 Tom de Vries <tdevries@suse.de>
9492
9493 PR symtab/25764
9494 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9495 in psymtabs.
9496
eea9e357
TV
94972020-04-22 Tom de Vries <tdevries@suse.de>
9498
9499 PR symtab/25801
9500 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9501 symtabs.
9502
3d5afab3
TV
95032020-04-22 Tom de Vries <tdevries@suse.de>
9504
9505 PR symtab/25700
9506 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9507 CU if already created.
9508
d43b7a2d
TBA
95092020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9510
9511 * infrun.c (displaced_step_fixup): Switch to the event_thread
9512 before calling displaced_step_restore, not after.
9513
d89edf9b
MM
95142020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9515
9516 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9517 its inferior is not recorded by us.
9518 (record_btrace_target_open): Replace call to
9519 all_non_exited_threads () with call to current_inferior
9520 ()->non_exited_threads ().
9521 (record_btrace_target::stop_recording): Likewise.
9522 (record_btrace_target::close): Likewise.
9523 (record_btrace_target::wait): Likewise.
9524 (record_btrace_target::record_stop_replaying): Likewise.
9525
5897fd49
MM
95262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9527
9528 * btrace.c (btrace_enable): Throw an error on double enables and
9529 when enabling recording fails.
9530 (btrace_disable): Throw an error if the thread is not recorded.
9531
1a476b6d
MM
95322020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9533
9534 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9535 request if we do not have a thread_info.
9536
4778a5f8
TV
95372020-04-21 Tom de Vries <tdevries@suse.de>
9538
9539 PR gdb/25471
9540 * thread.c
9541 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9542 exception in get_frame_id.
9543
0fa7617d
TT
95442020-04-20 Tom Tromey <tromey@adacore.com>
9545
9546 * python/python.c (struct gdbpy_event): Mark move constructor as
9547 noexcept.
9548 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9549 constructor as noexcept.
9550 * completer.h (struct completion_result): Mark move constructor as
9551 noexcept.
9552 * completer.c (completion_result::completion_result): Use
9553 initialization style. Don't call reset_match_list.
9554
ad23bda0
MS
95552020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9556
9557 * MAINTAINERS (Write After Approval): Add myself.
9558
45e1f031
TT
95592020-04-18 Tom Tromey <tom@tromey.com>
9560
9561 * windows-tdep.c (init_w32_command_list)
9562 (w32_prefix_command_valid): Restore.
9563 (_initialize_windows_tdep): Call init_w32_command_list.
9564
08feed99
TT
95652020-04-18 Tom Tromey <tom@tromey.com>
9566
9567 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9568 * value.c (value_fn_field): Update.
9569 * valops.c (find_function_in_inferior)
9570 (value_allocate_space_in_inferior): Update.
9571 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9572 Update.
9573 * tui/tui-source.c (tui_source_window::set_contents): Update.
9574 * symtab.c (lookup_global_or_static_symbol)
9575 (find_function_start_sal_1, skip_prologue_sal)
9576 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9577 * symmisc.c (dump_msymbols, dump_symtab_1)
9578 (maintenance_print_one_line_table): Update.
9579 * symfile.c (init_entry_point_info, section_is_mapped)
9580 (list_overlays_command, simple_read_overlay_table)
9581 (simple_overlay_update_1): Update.
9582 * stap-probe.c (handle_stap_probe): Update.
9583 * stabsread.c (dbx_init_float_type, define_symbol)
9584 (read_one_struct_field, read_enum_type, read_range_type): Update.
9585 * source.c (info_line_command): Update.
9586 * python/python.c (gdbpy_source_objfile_script)
9587 (gdbpy_execute_objfile_script): Update.
9588 * python/py-type.c (save_objfile_types): Update.
9589 * python/py-objfile.c (py_free_objfile): Update.
9590 * python/py-inferior.c (python_new_objfile): Update.
9591 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9592 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9593 (maintenance_check_psymtabs): Update.
9594 * printcmd.c (info_address_command): Update.
9595 * objfiles.h (struct objfile) <arch>: New method, from
9596 get_objfile_arch.
9597 (get_objfile_arch): Don't declare.
9598 * objfiles.c (get_objfile_arch): Remove.
9599 (filter_overlapping_sections): Update.
9600 * minsyms.c (msymbol_is_function): Update.
9601 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9602 (output_nondebug_symbol): Update.
9603 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9604 (mdebug_expand_psymtab): Update.
9605 * machoread.c (macho_add_oso_symfile): Update.
9606 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9607 Update.
9608 * linux-fork.c (checkpoint_command): Update.
9609 * linespec.c (convert_linespec_to_sals): Update.
9610 * jit.c (finalize_symtab): Update.
9611 * infrun.c (insert_exception_resume_from_probe): Update.
9612 * ia64-tdep.c (ia64_find_unwind_table): Update.
9613 * hppa-tdep.c (internalize_unwinds): Update.
9614 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9615 Update.
9616 * gcore.c (call_target_sbrk): Update.
9617 * elfread.c (record_minimal_symbol, elf_symtab_read)
9618 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9619 (elf_gnu_ifunc_resolve_by_got): Update.
9620 * dwarf2/read.c (create_addrmap_from_index)
9621 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9622 (read_debug_names_from_section)
9623 (process_psymtab_comp_unit_reader, add_partial_symbol)
9624 (add_partial_subprogram, process_full_comp_unit)
9625 (read_file_scope, read_func_scope, read_lexical_block_scope)
9626 (read_call_site_scope, dwarf2_ranges_read)
9627 (dwarf2_record_block_ranges, dwarf2_add_field)
9628 (mark_common_block_symbol_computed, read_tag_pointer_type)
9629 (read_tag_string_type, dwarf2_init_float_type)
9630 (dwarf2_init_complex_target_type, read_base_type)
9631 (partial_die_info::read, partial_die_info::read)
9632 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9633 (dwarf2_fetch_die_loc_sect_off): Update.
9634 * dwarf2/loc.c (dwarf2_find_location_expression)
9635 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9636 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9637 (dwarf2_loc_desc_get_symbol_read_needs)
9638 (locexpr_describe_location_piece, locexpr_describe_location_1)
9639 (loclist_describe_location): Update.
9640 * dwarf2/index-write.c (write_debug_names): Update.
9641 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9642 * dtrace-probe.c (dtrace_process_dof): Update.
9643 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9644 (process_one_symbol): Update.
9645 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9646 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9647 (coff_read_enum_type): Update.
9648 * cli/cli-cmds.c (edit_command, list_command): Update.
9649 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9650 * breakpoint.c (create_overlay_event_breakpoint)
9651 (create_longjmp_master_breakpoint)
9652 (create_std_terminate_master_breakpoint)
9653 (create_exception_master_breakpoint, get_sal_arch): Update.
9654 * block.c (block_gdbarch): Update.
9655 * annotate.c (annotate_source_line): Update.
9656
0743fc83
TT
96572020-04-17 Tom Tromey <tromey@adacore.com>
9658
9659 * auto-load.c (show_auto_load_cmd): Remove.
9660 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9661 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9662 (maintenance_print_arc_command): Remove.
9663 * tui/tui-win.c (tui_command): Remove.
9664 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9665 * tui/tui-layout.c (tui_layout_command): Remove.
9666 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9667 * python/python.c (user_set_python, user_show_python): Remove.
9668 (_initialize_python): Use add_basic_prefix_cmd,
9669 add_show_prefix_cmd.
9670 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9671 (install_gdb_commands): Use add_basic_prefix_cmd,
9672 add_show_prefix_cmd.
9673 (info_guile_command): Remove.
9674 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9675 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9676 add_show_prefix_cmd.
9677 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9678 Remove do_set and do_show parameters.
9679 * cli/cli-style.c (set_style, show_style): Remove.
9680 (_initialize_cli_style): Use add_basic_prefix_cmd,
9681 add_show_prefix_cmd.
9682 (cli_style_option::add_setshow_commands): Remove do_set and
9683 do_show parameters.
9684 (cli_style_option::add_setshow_commands): Use
9685 add_basic_prefix_cmd, add_show_prefix_cmd.
9686 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9687 (set_style_name): Remove.
9688 * cli/cli-dump.c (dump_command, append_command): Remove.
9689 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9690 (tekhex_dump_command, binary_dump_command)
9691 (binary_append_command): Remove.
9692 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9693 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9694 (init_w32_command_list): Remove; move into ...
9695 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9696 * valprint.c (set_print, show_print, set_print_raw)
9697 (show_print_raw): Remove.
9698 (_initialize_valprint): Use add_basic_prefix_cmd,
9699 add_show_prefix_cmd.
9700 * typeprint.c (set_print_type, show_print_type): Remove.
9701 (_initialize_typeprint): Use add_basic_prefix_cmd,
9702 add_show_prefix_cmd.
9703 * record.c (set_record_command, show_record_command): Remove.
9704 (_initialize_record): Use add_basic_prefix_cmd,
9705 add_show_prefix_cmd.
9706 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9707 add_show_prefix_cmd.
9708 (info_command, show_command, set_debug, show_debug): Remove.
9709 * top.h (set_history, show_history): Don't declare.
9710 * top.c (set_history, show_history): Remove.
9711 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9712 (unset_tdesc_cmd): Remove.
9713 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9714 add_show_prefix_cmd.
9715 * symtab.c (info_module_command): Remove.
9716 (_initialize_symtab): Use add_basic_prefix_cmd.
9717 * symfile.c (overlay_command): Remove.
9718 (_initialize_symfile): Use add_basic_prefix_cmd.
9719 * sparc64-tdep.c (info_adi_command): Remove.
9720 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9721 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9722 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9723 add_show_prefix_cmd.
9724 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9725 (_initialize_serial): Use add_basic_prefix_cmd,
9726 add_show_prefix_cmd.
9727 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9728 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9729 add_show_prefix_cmd.
9730 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9731 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9732 add_show_prefix_cmd.
9733 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9734 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9735 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9736 add_show_prefix_cmd.
9737 * remote.c (remote_command, set_remote_cmd): Remove.
9738 (_initialize_remote): Use add_basic_prefix_cmd.
9739 * record-full.c (set_record_full_command)
9740 (show_record_full_command): Remove.
9741 (_initialize_record_full): Use add_basic_prefix_cmd,
9742 add_show_prefix_cmd.
9743 * record-btrace.c (cmd_set_record_btrace)
9744 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9745 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9746 (cmd_show_record_btrace_pt): Remove.
9747 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9748 add_show_prefix_cmd.
9749 * ravenscar-thread.c (set_ravenscar_command)
9750 (show_ravenscar_command): Remove.
9751 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9752 add_show_prefix_cmd.
9753 * mips-tdep.c (show_mips_command, set_mips_command)
9754 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9755 add_show_prefix_cmd.
9756 * maint.c (maintenance_command, maintenance_info_command)
9757 (maintenance_check_command, maintenance_print_command)
9758 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9759 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9760 add_show_prefix_cmd.
9761 (show_per_command_cmd): Remove.
9762 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9763 Remove.
9764 (maintenance_show_test_settings_cmd): Remove.
9765 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9766 add_show_prefix_cmd.
9767 * maint-test-options.c (maintenance_test_options_command):
9768 Remove.
9769 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9770 * macrocmd.c (macro_command): Remove
9771 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9772 * language.c (set_check, show_check): Remove.
9773 (_initialize_language): Use add_basic_prefix_cmd,
9774 add_show_prefix_cmd.
9775 * infcmd.c (unset_command): Remove.
9776 (_initialize_infcmd): Use add_basic_prefix_cmd.
9777 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9778 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9779 add_show_prefix_cmd.
9780 * go32-nat.c (go32_info_dos_command): Remove.
9781 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9782 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9783 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9784 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9785 (_initialize_frame): Use add_basic_prefix_cmd,
9786 add_show_prefix_cmd.
9787 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9788 (_initialize_dcache): Use add_basic_prefix_cmd,
9789 add_show_prefix_cmd.
9790 * cp-support.c (maint_cplus_command): Remove.
9791 (_initialize_cp_support): Use add_basic_prefix_cmd.
9792 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9793 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9794 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9795 add_basic_prefix_cmd, add_show_prefix_cmd.
9796 * breakpoint.c (save_command): Remove.
9797 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9798 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9799 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9800 add_show_prefix_cmd.
9801 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9802 (set_ada_command, show_ada_command): Remove.
9803 (_initialize_ada_language): Use add_basic_prefix_cmd,
9804 add_show_prefix_cmd.
9805 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9806
3557f442
KR
98072020-04-16 Kamil Rytarowski <n54@gmx.com>
9808
9809 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9810 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9811
16197208
SM
98122020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9813
9814 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9815 warning messages.
9816
00ac85d3
SM
98172020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9818
9819 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9820 import table is not at beginning of .idata section.
9821
381ce63f
PA
98222020-04-16 Pedro Alves <palves@redhat.com>
9823
9824 * inferior.c (delete_inferior): Use delete operator directly
9825 instead of delete_program_space.
9826 * progspace.c (add_program_space): New, factored out from
9827 program_space::program_space.
9828 (remove_program_space): New, factored out from
9829 delete_program_space.
9830 (program_space::program_space): Remove intro comment. Rewrite.
9831 (program_space::~program_space): Remove intro comment. Call
9832 remove_program_space.
9833 (delete_program_space): Delete.
9834 * progspace.h (program_space::program_space): Make explicit. Move
9835 intro comment here, adjusted.
9836 (program_space::~program_space): Move intro comment here,
9837 adjusted.
9838 (delete_program_space): Remove.
9839
a010605f
TT
98402020-04-16 Tom Tromey <tromey@adacore.com>
9841
9842 * windows-nat.c (windows_nat::handle_access_violation): New
9843 function.
9844 * nat/windows-nat.h (handle_access_violation): Declare.
9845 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9846 windows-nat.c. Call handle_access_violation.
9847
efba5c23
TV
98482020-04-16 Tom de Vries <tdevries@suse.de>
9849
9850 PR symtab/25791
9851 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9852 CUs without psymtab.
9853
97ed802d
KB
98542020-04-16 Kevin Buettner <kevinb@redhat.com>
9855
9856 * python/python.c (do_start_initialization): Don't call
9857 PyEval_InitThreads for Python 3.9 and beyond.
9858
c7d64809
KR
98592020-04-15 Kamil Rytarowski <n54@gmx.com>
9860
9861 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9862 thread functions.
9863 (obsd_nat_target::wait): Likewise.
9864
ce127a96
TT
98652020-04-15 Tom Tromey <tromey@adacore.com>
9866
9867 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9868 (DEBUG_EXCEPT): Use debug_printf.
9869
99f1bc6a
AB
98702020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 * completer.c (class completion_tracker::completion_hash_entry)
9873 <hash_name>: New member function.
9874 (completion_tracker::discard_completions): New callback to hash a
9875 completion_hash_entry, pass this to htab_create_alloc.
9876
a0e9b532
JT
98772016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9878
9879 * windows-nat.c (windows_make_so): Warn rather than stopping with
9880 an error if realpath() fails.
9881
06ca5dd4
KR
98822020-04-14 Kamil Rytarowski <n54@gmx.com>
9883
9884 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9885 (nbsd_nat_target::info_proc): Add do_status.
9886
194d088f
TV
98872020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9888 Tom de Vries <tdevries@suse.de>
9889
9890 PR symtab/25718
9891 * psympriv.h (struct partial_symtab::read_symtab)
9892 (struct partial_symtab::expand_psymtab)
9893 (struct partial_symtab::read_dependencies): Update comments.
9894 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9895 read_symtab for includer.
9896 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9897 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9898 (struct dwarf2_include_psymtab::m_readin): Remove.
9899 (struct dwarf2_include_psymtab::includer): New member function.
9900 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9901
c1a66c06
TV
99022020-04-14 Tom de Vries <tdevries@suse.de>
9903
9904 PR symtab/25720
9905 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9906 with NULL symbol_matcher and lookup_name.
9907 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9908 and lookup_name.
9909 * dwarf2/read.c (dw2_expand_symtabs_matching)
9910 (dw2_debug_names_expand_symtabs_matching): Same.
9911 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9912 Make lookup_name a pointer. Update comment.
9913 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9914 lookup_name being a pointer.
9915 * symfile.c (expand_symtabs_matching): Same.
9916 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9917 * linespec.c (iterate_over_all_matching_symtabs): Same.
9918
400b5eca
TT
99192020-04-13 Tom Tromey <tom@tromey.com>
9920
9921 * run-on-main-thread.c: Update include.
9922 * unittests/main-thread-selftests.c: Update include.
9923 * tui/tui-win.c: Update include.
9924 * tui/tui-io.c: Update include.
9925 * tui/tui-interp.c: Update include.
9926 * tui/tui-hooks.c: Update include.
9927 * top.h: Update include.
9928 * top.c: Update include.
9929 * ser-base.c: Update include.
9930 * remote.c: Update include.
9931 * remote-notif.c: Update include.
9932 * remote-fileio.c: Update include.
9933 * record-full.c: Update include.
9934 * record-btrace.c: Update include.
9935 * python/python.c: Update include.
9936 * posix-hdep.c: Update include.
9937 * mingw-hdep.c: Update include.
9938 * mi/mi-main.c: Update include.
9939 * mi/mi-interp.c: Update include.
9940 * main.c: Update include.
9941 * linux-nat.c: Update include.
9942 * interps.c: Update include.
9943 * infrun.c: Update include.
9944 * inf-loop.c: Update include.
9945 * event-top.c: Update include.
9946 * event-loop.c: Move to ../gdbsupport/.
9947 * event-loop.h: Move to ../gdbsupport/.
9948 * async-event.h: Update include.
9949 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9950
93b54c8e
TT
99512020-04-13 Tom Tromey <tom@tromey.com>
9952
9953 * tui/tui-win.c: Include async-event.h.
9954 * remote.c: Include async-event.h.
9955 * remote-notif.c: Include async-event.h.
9956 * record-full.c: Include async-event.h.
9957 * record-btrace.c: Include async-event.h.
9958 * infrun.c: Include async-event.h.
9959 * event-top.c: Include async-event.h.
9960 * event-loop.h: Move some declarations to async-event.h.
9961 * event-loop.c: Don't include ser-event.h or top.h. Move some
9962 code to async-event.c.
9963 * async-event.h: New file.
9964 * async-event.c: New file.
9965 * Makefile.in (COMMON_SFILES): Add async-event.c.
9966 (HFILES_NO_SRCDIR): Add async-event.h.
9967
c1cd3163
TT
99682020-04-13 Tom Tromey <tom@tromey.com>
9969
9970 * utils.c (flush_streams): New function.
9971 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9972
29f2bf4f
TT
99732020-04-13 Tom Tromey <tom@tromey.com>
9974
9975 * event-loop.c (handle_file_event): Use warning, not
9976 printf_unfiltered.
9977
98029d02
TT
99782020-04-13 Tom Tromey <tom@tromey.com>
9979
9980 * event-loop.c: Include <chrono>.
9981
06cc9596
TT
99822020-04-13 Tom Tromey <tom@tromey.com>
9983
9984 * gdb_select.h: Move to ../gdbsupport/.
9985 * event-loop.c: Update include path.
9986 * top.c: Update include path.
9987 * ser-base.c: Update include path.
9988 * ui-file.c: Update include path.
9989 * ser-tcp.c: Update include path.
9990 * guile/scm-ports.c: Update include path.
9991 * posix-hdep.c: Update include path.
9992 * ser-unix.c: Update include path.
9993 * gdb_usleep.c: Update include path.
9994 * mingw-hdep.c: Update include path.
9995 * inflow.c: Update include path.
9996 * infrun.c: Update include path.
9997 * event-top.c: Update include path.
9998
8ae8e197
TT
99992020-04-13 Tom Tromey <tom@tromey.com>
10000
10001 * configure: Rebuild.
10002 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10003
58cf28e8
TT
100042020-04-13 Tom Tromey <tom@tromey.com>
10005
10006 * event-loop.h (start_event_loop): Don't declare.
10007 * event-loop.c (start_event_loop): Move...
10008 * main.c (start_event_loop): ...here. Now static.
10009
b7f999ae
SDJ
100102020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10011
10012 * MAINTAINERS: Update my email address.
10013
1085dfd4
KR
100142020-04-12 Kamil Rytarowski <n54@gmx.com>
10015
10016 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10017 IP_ALL.
10018
49d1d1f5
KR
100192020-04-12 Kamil Rytarowski <n54@gmx.com>
10020
10021 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10022 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10023
b4848d2a
KR
100242020-04-12 Kamil Rytarowski <n54@gmx.com>
10025
10026 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10027 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10028
51c133d5
KR
100292020-04-12 Kamil Rytarowski <n54@gmx.com>
10030
10031 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10032
54b8cbd0
KR
100332020-04-11 Kamil Rytarowski <n54@gmx.com>
10034
10035 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10036 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10037 (nbsd_nat_target::info_proc): New functions.
10038 * nbsd-nat.c (kinfo_get_vmmap): New function.
10039 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10040 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10041 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10042 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10043 functions.
10044 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10045 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10046 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10047 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10048 (KINFO_VME_FLAG_GROWS_DOWN): New.
10049
cf83625d
AS
100502020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10051
10052 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10053 bit shift.
10054
0c4311ab
TT
100552020-04-10 Tom Tromey <tromey@adacore.com>
10056
10057 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10058
3e65b3e9
TT
100592020-04-10 Tom Tromey <tromey@adacore.com>
10060
10061 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10062 separate debug files.
10063
13302e95
HD
100642020-04-10 Hannes Domani <ssbssa@yahoo.de>
10065
10066 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10067 Move to...
10068 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10069 ... here.
10070 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10071 Check for STATUS_WX86_BREAKPOINT.
10072 (windows_nat_target::wait): Same.
10073
bdfc1e8a
TV
100742020-04-10 Tom de Vries <tdevries@suse.de>
10075
10076 PR cli/25808
10077 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10078
f4460aec
SM
100792020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10080
10081 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10082 (Write After Approval): Remove Tom de Vries.
10083
a25198bb
BE
100842020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10085
10086 revert partially:
10087 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10088
aac66a4c
SM
10089 * buildsym.c (record_line): Fix undefined behavior and preserve
10090 lines at eof.
a25198bb 10091
206c98a6
KR
100922020-04-09 Kamil Rytarowski <n54@gmx.com>
10093
10094 * auxv.h (svr4_auxv_parse): New.
10095 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10096 and generic_auxv_parse.
10097 (svr4_auxv_parse): Add.
10098 * obsd-tdep.c: Include "auxv.h".
10099 (obsd_auxv_parse): Remove.
10100 (obsd_init_abi): Remove comment.
10101 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10102 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10103 * nbsd-tdep.c: Include "auxv.h".
10104 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10105
71fbdbaf
TT
101062020-04-08 Tom Tromey <tromey@adacore.com>
10107
10108 * nat/windows-nat.h (last_wait_event): Don't declare.
10109 (wait_for_debug_event): Update comment.
10110 * nat/windows-nat.c (last_wait_event): Now static.
10111
2c1d95e8
TT
101122020-04-08 Tom Tromey <tromey@adacore.com>
10113
10114 * windows-nat.c (wait_for_debug_event): Move to
10115 nat/windows-nat.c.
10116 * nat/windows-nat.h (wait_for_debug_event): Declare.
10117 * nat/windows-nat.c (wait_for_debug_event): Move from
10118 windows-nat.c. No longer static.
10119
d2977bc4
TT
101202020-04-08 Tom Tromey <tromey@adacore.com>
10121
10122 * windows-nat.c (get_windows_debug_event): Use
10123 fetch_pending_stop.
10124 * nat/windows-nat.h (fetch_pending_stop): Declare.
10125 * nat/windows-nat.c (fetch_pending_stop): New function.
10126
e758e19c
TT
101272020-04-08 Tom Tromey <tromey@adacore.com>
10128
10129 * windows-nat.c (windows_continue): Use matching_pending_stop and
10130 continue_last_debug_event.
10131 * nat/windows-nat.h (matching_pending_stop)
10132 (continue_last_debug_event): Declare.
10133 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10134 (matching_pending_stop, continue_last_debug_event): New
10135 functions.
10136
8d30e395
TT
101372020-04-08 Tom Tromey <tromey@adacore.com>
10138
10139 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10140 (handle_exception_result): Move to nat/windows-nat.h.
10141 (DEBUG_EXCEPTION_SIMPLE): Remove.
10142 (windows_nat::handle_ms_vc_exception): New function.
10143 (handle_exception): Move to nat/windows-nat.c.
10144 (get_windows_debug_event): Update.
10145 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10146 nat/windows-nat.c.
10147 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10148 (handle_exception_result): Move from windows-nat.c.
10149 (handle_exception): Declare.
10150 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10151 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10152 windows-nat.c.
10153
29de418d
TT
101542020-04-08 Tom Tromey <tromey@adacore.com>
10155
10156 * windows-nat.c (exception_count, event_count): Remove.
10157 (handle_exception, get_windows_debug_event)
10158 (do_initial_windows_stuff): Update.
10159
a816ba18
TT
101602020-04-08 Tom Tromey <tromey@adacore.com>
10161
10162 * windows-nat.c (windows_nat::handle_load_dll)
10163 (windows_nat::handle_unload_dll): Rename. No longer static.
10164 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10165 Declare.
10166
a00caa12
TT
101672020-04-08 Tom Tromey <tromey@adacore.com>
10168
10169 * complaints.h (stop_whining): Declare at top-level.
10170 (complaint): Don't declare stop_whining.
10171
d41b524f
TT
101722020-04-08 Tom Tromey <tromey@adacore.com>
10173
10174 * windows-nat.c (windows_nat::handle_output_debug_string):
10175 Rename. No longer static.
10176 * nat/windows-nat.h (handle_output_debug_string): Declare.
10177
3c76026d
TT
101782020-04-08 Tom Tromey <tromey@adacore.com>
10179
10180 * windows-nat.c (current_process_handle, current_process_id)
10181 (main_thread_id, last_sig, current_event, last_wait_event)
10182 (current_windows_thread, desired_stop_thread_id, pending_stops)
10183 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10184 (display_selectors, fake_create_process)
10185 (get_windows_debug_event): Update.
10186 * nat/windows-nat.h (current_process_handle, current_process_id)
10187 (main_thread_id, last_sig, current_event, last_wait_event)
10188 (current_windows_thread, desired_stop_thread_id, pending_stops)
10189 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10190 * nat/windows-nat.c (current_process_handle, current_process_id)
10191 (main_thread_id, last_sig, current_event, last_wait_event)
10192 (current_windows_thread, desired_stop_thread_id, pending_stops)
10193 (siginfo_er): New globals. Move from windows-nat.c.
10194
9d8679cc
TT
101952020-04-08 Tom Tromey <tromey@adacore.com>
10196
10197 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10198 (handle_load_dll): Update.
10199 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10200
28688adf
TT
102012020-04-08 Tom Tromey <tromey@adacore.com>
10202
10203 * windows-nat.c (enum thread_disposition_type): Move to
10204 nat/windows-nat.h.
10205 (windows_nat::thread_rec): Rename from thread_rec. No longer
10206 static.
10207 (windows_add_thread, windows_nat_target::fetch_registers)
10208 (windows_nat_target::store_registers, handle_exception)
10209 (windows_nat_target::resume, get_windows_debug_event)
10210 (windows_nat_target::get_tib_address)
10211 (windows_nat_target::thread_name)
10212 (windows_nat_target::thread_alive): Update.
10213 * nat/windows-nat.h (enum thread_disposition_type): Move from
10214 windows-nat.c.
10215 (thread_rec): Declare.
10216
4834dad0
TT
102172020-04-08 Tom Tromey <tromey@adacore.com>
10218
10219 * windows-nat.c: Add "using namespace".
10220 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10221 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10222
65bafd5b
TT
102232020-04-08 Tom Tromey <tromey@adacore.com>
10224
10225 * nat/windows-nat.h (struct windows_thread_info): Declare
10226 destructor.
10227 * nat/windows-nat.c (~windows_thread_info): New.
10228
0a4afda3
TT
102292020-04-08 Tom Tromey <tromey@adacore.com>
10230
10231 PR gdb/22992
10232 * windows-nat.c (current_event): Update comment.
10233 (last_wait_event, desired_stop_thread_id): New globals.
10234 (struct pending_stop): New.
10235 (pending_stops): New global.
10236 (windows_nat_target) <stopped_by_sw_breakpoint>
10237 <supports_stopped_by_sw_breakpoint>: New methods.
10238 (windows_fetch_one_register): Add assertions. Adjust PC.
10239 (windows_continue): Handle pending stops. Suspend other threads
10240 when stepping. Use last_wait_event
10241 (wait_for_debug_event): New function.
10242 (get_windows_debug_event): Use wait_for_debug_event. Handle
10243 pending stops. Queue spurious stops.
10244 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10245 (windows_nat_target::kill): Use wait_for_debug_event.
10246 * nat/windows-nat.h (struct windows_thread_info)
10247 <stopped_at_software_breakpoint>: New field.
10248 * nat/windows-nat.c (windows_thread_info::resume): Clear
10249 stopped_at_software_breakpoint.
10250
8e61ebec
TT
102512020-04-08 Tom Tromey <tromey@adacore.com>
10252
10253 * windows-nat.c (enum thread_disposition_type): New.
10254 (thread_rec): Replace "get_context" parameter with "disposition";
10255 change type.
10256 (windows_add_thread, windows_nat_target::fetch_registers)
10257 (windows_nat_target::store_registers, handle_exception)
10258 (windows_nat_target::resume, get_windows_debug_event)
10259 (windows_nat_target::get_tib_address)
10260 (windows_nat_target::thread_name)
10261 (windows_nat_target::thread_alive): Update.
10262
98a03287
TT
102632020-04-08 Tom Tromey <tromey@adacore.com>
10264
10265 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10266 (windows_continue): Use windows_continue::resume.
10267 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10268 resume>: Declare new methods.
10269 * nat/windows-nat.c: New file.
10270 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10271
7c7411bc
TT
102722020-04-08 Tom Tromey <tromey@adacore.com>
10273
10274 * windows-nat.c (windows_add_thread, windows_delete_thread)
10275 (windows_nat_target::fetch_registers)
10276 (windows_nat_target::store_registers, fake_create_process)
10277 (windows_nat_target::resume, windows_nat_target::resume)
10278 (get_windows_debug_event, windows_nat_target::wait)
10279 (windows_nat_target::pid_to_str)
10280 (windows_nat_target::get_tib_address)
10281 (windows_nat_target::get_ada_task_ptid)
10282 (windows_nat_target::thread_name)
10283 (windows_nat_target::thread_alive): Use lwp, not tid.
10284
2950fdf7
TT
102852020-04-08 Tom Tromey <tromey@adacore.com>
10286
10287 * windows-nat.c (handle_exception)
10288 (windows_nat_target::thread_name): Update.
10289 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10290 <name>: Now unique_xmalloc_ptr.
10291
62fe396b
TT
102922020-04-08 Tom Tromey <tromey@adacore.com>
10293
10294 * windows-nat.c (thread_rec)
10295 (windows_nat_target::fetch_registers): Update.
10296 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10297 Update comment.
10298 <debug_registers_changed, reload_context>: Now bool.
10299
e9534bd2
TT
103002020-04-08 Tom Tromey <tromey@adacore.com>
10301
10302 * windows-nat.c (windows_add_thread): Use new.
10303 (windows_init_thread_list, windows_delete_thread): Use delete.
10304 (get_windows_debug_event): Update.
10305 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10306 destructor, and initializers.
10307
ae1f8880
TT
103082020-04-08 Tom Tromey <tromey@adacore.com>
10309
10310 * windows-nat.c (struct windows_thread_info): Remove.
10311 * nat/windows-nat.h: New file.
10312
55a1e039
TT
103132020-04-08 Tom Tromey <tromey@adacore.com>
10314
10315 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10316 (thread_rec, windows_add_thread, windows_delete_thread)
10317 (windows_continue): Update.
10318
93366324
TT
103192020-04-08 Tom Tromey <tromey@adacore.com>
10320
10321 * windows-nat.c (struct windows_thread_info): Remove typedef.
10322 (thread_head): Remove.
10323 (thread_list): New global.
10324 (thread_rec, windows_add_thread, windows_init_thread_list)
10325 (windows_delete_thread, windows_continue): Update.
10326
0f2265e2
SM
103272020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10328
10329 * windows-tdep.h (windows_init_abi): Add comment.
10330 (cygwin_init_abi): New declaration.
10331 * windows-tdep.c: Split signal enumeration in two, one for
10332 Windows and one for Cygwin.
10333 (windows_gdb_signal_to_target): Only deal with signal of the
10334 Windows OS ABI.
10335 (cygwin_gdb_signal_to_target): New function.
10336 (windows_init_abi): Rename to windows_init_abi_common, don't set
10337 gdb_signal_to_target gdbarch method. Add new new function with
10338 this name.
10339 (cygwin_init_abi): New function.
10340 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10341 comment. Don't call windows_init_abi.
10342 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10343 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10344 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10345 i386_windows_init_abi_common, don't call windows_init_abi. Add
10346 a new function of this name.
10347 (i386_cygwin_init_abi): New function.
10348 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10349 OS ABI Cygwin.
10350
3810f182
SM
103512020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10352
10353 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10354 parameter.c.
10355 (dwarf2_read_gdb_index): Update.
10356
063f8e80
KR
103572020-04-07 Kamil Rytarowski <n54@gmx.com>
10358
10359 * nbsd-tdep.c: Include "objfiles.h".
10360 (nbsd_skip_solib_resolver): New.
10361 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10362
85a9510c 103632020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10364
10365 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10366 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10367 with DW_LLE_base_addressx are being emitted in DWARFv5.
10368 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10369 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10370 unsigned integer.
10371
9fc3eaae 103722020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10373
10374 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10375 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10376 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10377 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10378 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10379 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10380 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10381
10382
41144253 103832020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10384
10385 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10386 (read_loclist_index): New function definition.
10387 (lookup_loclist_base): New function definition.
10388 (read_loclist_header): New function definition.
10389 (dwarf2_cu): Add loclist_base and loclist_header field.
10390 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10391 (read_full_die_1): Read the value of DW_AT_loclists_base.
10392 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10393 (read_attribute_value): Handle DW_FORM_loclistx.
10394 (skip_one_die): Handle DW_FORM_loclistx.
10395 (loclist_header): New structure declaration.
10396 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10397
9f4e76a4
SM
103982020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10399
10400 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10401 constructor. Remove `addr` parameter from other constructor and
10402 add `per_cu` parameter.
10403 * dwarf2/read.c (create_partial_symtab): Update.
10404
25c11aca
TV
104052020-04-07 Tom de Vries <tdevries@suse.de>
10406
10407 PR symtab/25796
10408 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10409 (partial_die_info::fixup): Inherit has_const_value.
10410
5707e24b
TV
104112020-04-07 Tom de Vries <tdevries@suse.de>
10412
10413 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10414 symbols without address.
10415
05f00e22
KR
104162020-04-06 Kamil Rytarowski <n54@gmx.com>
10417
10418 * nbsd-nat.h (struct thread_info): Add forward declaration.
10419 (nbsd_nat_target::thread_alive): Add.
10420 (nbsd_nat_target::thread_name): Likewise.
10421 (nbsd_nat_target::update_thread_list): Likewise.
10422 (update_thread_list::post_attach): Likewise.
10423 (post_attach::pid_to_str): Likewise.
10424 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10425 (nbsd_thread_lister): Add.
10426 (nbsd_nat_target::thread_alive): Likewise.
10427 (nbsd_nat_target::thread_name): Likewise.
10428 (nbsd_add_threads): Likewise.
10429 (update_thread_list::post_attach): Likewise.
10430 (nbsd_nat_target::update_thread_list): Likewise.
10431 (post_attach::pid_to_str): Likewise.
10432
6ee448cc
TT
104332020-04-06 Tom Tromey <tromey@adacore.com>
10434
10435 * ada-valprint.c (print_variant_part): Extract the variant field.
10436 (print_field_values): Use the field as the outer value when
10437 recursing.
10438
dea34e8c
TT
104392020-04-06 Tom Tromey <tromey@adacore.com>
10440
10441 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10442 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10443 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10444 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10445 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10446
93689ce9
TT
104472020-04-06 Tom Tromey <tromey@adacore.com>
10448
10449 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10450 TYPE_CODE_ERROR.
10451
79743962
KR
104522020-04-06 Kamil Rytarowski <n54@gmx.com>
10453
10454 * nbsd-tdep.c: Include "gdbarch.h".
10455 Define enum with NetBSD signal numbers.
10456 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10457 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10458 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10459 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10460 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10461 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10462 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10463 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10464 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10465 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10466 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10467 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10468
9e7c9a03
HD
104692020-04-03 Hannes Domani <ssbssa@yahoo.de>
10470
10471 PR gdb/25325
10472 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10473
d9e49b61
TT
104742020-04-03 Tom Tromey <tromey@adacore.com>
10475
10476 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10477 Read constant block.
10478
e0fc5c3f
SM
104792020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10480
10481 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10482 (gdb_bfd_get_full_section_contents): New declaration.
10483 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10484 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10485 gdb_bfd_get_full_section_contents.
10486
e2ff18a0
SM
104872020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10488
10489 * exec.c (build_section_table): Replace internal_error with
10490 gdb_assert.
10491 (section_table_xfer_memory_partial): Likewise.
10492 * mdebugread.c (parse_partial_symbols): Likewise.
10493 * psymtab.c (lookup_partial_symbol): Likewise.
10494 * utils.c (wrap_here): Likewise.
10495
0830d301
TT
104962020-04-02 Tom Tromey <tromey@adacore.com>
10497
10498 * f-lang.c (build_fortran_types): Use arch_type to initialize
10499 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10500
e7da7f8f
TT
105012020-04-02 Tom Tromey <tromey@adacore.com>
10502
10503 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10504 of attributes.
10505
c90d28ac
AB
105062020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10507 Bernd Edlinger <bernd.edlinger@hotmail.de>
10508 Tom Tromey <tromey@adacore.com>
10509
10510 * buildsym.c (buildsym_compunit::record_line): Remove
10511 deduplication code.
10512
1aa98955
TV
105132020-04-02 Tom de Vries <tdevries@suse.de>
10514
10515 PR ada/24671
10516 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10517
d3214198
TV
105182020-04-02 Tom de Vries <tdevries@suse.de>
10519
10520 * dwarf2/read.c (dwarf2_gdb_index_functions,
10521 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10522 NULL.
10523 * psymtab.c (psym_lookup_global_symbol_language): New function.
10524 (psym_functions): Init psym_lookup_global_symbol_language with
10525 psym_lookup_global_symbol_language.
10526 * symfile-debug.c (debug_sym_quick_functions): Init
10527 lookup_global_symbol_language with NULL.
10528 * symfile.c (set_initial_language): Remove fixme comment.
10529 * symfile.h (struct quick_symbol_functions): Add
10530 lookup_global_symbol_language.
10531 * symtab.c (find_quick_global_symbol_language): New function.
10532 (find_main_name): Use find_quick_global_symbol_language.
10533
2836752f
SM
105342020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10535
10536 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10537
64dc2d4b
BE
105382020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10539
10540 * buildsym.c (record_line): Fix undefined behavior and preserve
10541 lines at eof.
10542
bbe3dc41
BE
105432020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10544
10545 * buildsym.c (record_line): Fix the resizing condition.
10546
6b4a335b
TT
105472020-04-01 Tom Tromey <tom@tromey.com>
10548
10549 * value.h (value_literal_complex): Add comment.
10550 * valops.c (value_literal_complex): Refer to value.h.
10551
3638a098
TT
105522020-04-01 Tom Tromey <tom@tromey.com>
10553
10554 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10555 (scalar_type): New rule, from typebase.
10556 (typebase): Use scalar_type. Recognize complex types.
10557 (field_name): Handle FLOAT_KEYWORD.
10558 (ident_tokens): Add _Complex and __complex__.
10559
c34e8714
TT
105602020-04-01 Tom Tromey <tom@tromey.com>
10561
10562 PR exp/25299:
10563 * valarith.c (promotion_type, complex_binop): New functions.
10564 (scalar_binop): Handle complex numbers. Use promotion_type.
10565 (value_pos, value_neg, value_complement): Handle complex numbers.
10566
fa649bb7
TT
105672020-04-01 Tom Tromey <tom@tromey.com>
10568
10569 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10570 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10571 (parse_number): Handle complex numbers.
10572
981c08ce
TT
105732020-04-01 Tom Tromey <tom@tromey.com>
10574
10575 * c-valprint.c (c_decorations): Change complex suffix to "i".
10576
4c99290d
TT
105772020-04-01 Tom Tromey <tom@tromey.com>
10578
10579 * valprint.c (generic_value_print_complex): Use accessors.
10580 * value.h (value_real_part, value_imaginary_part): Declare.
10581 * valops.c (value_real_part, value_imaginary_part): New
10582 functions.
10583 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10584
5b930b45
TT
105852020-04-01 Tom Tromey <tom@tromey.com>
10586
10587 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10588 (read_range_type): Update.
10589 * mdebugread.c (basic_type): Update.
10590 * go-lang.c (build_go_types): Use init_complex_type.
10591 * gdbtypes.h (struct main_type) <complex_type>: New member.
10592 (init_complex_type): Update.
10593 (arch_complex_type): Don't declare.
10594 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10595 Make name if none given. Use alloc_type_copy. Look for cached
10596 complex type.
10597 (arch_complex_type): Remove.
10598 (gdbtypes_post_init): Use init_complex_type.
10599 * f-lang.c (build_fortran_types): Use init_complex_type.
10600 * dwarf2/read.c (read_base_type): Update.
10601 * d-lang.c (build_d_types): Use init_complex_type.
10602 * ctfread.c (read_base_type): Update.
10603
53cccef1
TBA
106042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10605
10606 * infrun.c (stop_all_threads): Update assertion, plus when
10607 stopping threads, take into account that we might be trying
10608 to stop an all-stop target.
10609 (stop_waiting): Call 'stop_all_threads' if there exists a
10610 non-stop target.
10611
a0714d30
TBA
106122020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10613
10614 * target.h (exists_non_stop_target): New function declaration.
10615 * target.c (exists_non_stop_target): New function.
10616
60e22c1e
HD
106172020-04-01 Hannes Domani <ssbssa@yahoo.de>
10618
10619 PR gdb/24789
10620 * eval.c (is_integral_or_integral_reference): New function.
10621 (evaluate_subexp_standard): Allow integer references in
10622 pointer arithmetic.
10623
e139a727
TBA
106242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10625
10626 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10627 check for no ptid in the stop reply when the target is non-stop.
10628
e0802d59
TT
106292020-04-01 Tom Tromey <tromey@adacore.com>
10630
10631 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10632 "name" parameter to rvalue reference. Initialize m_name_holder.
10633 <lookup_name_info>: New overloads.
10634 <name>: Return gdb::string_view.
10635 <c_str>: New method.
10636 <make_ignore_params>: Update.
10637 <search_name_hash>: Update.
10638 <language_lookup_name>: Return const char *.
10639 <m_name>: Change type.
10640 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10641 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10642 (lookup_name_info::match_any): Update.
10643 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10644 Update.
10645 * minsyms.c (linkage_name_str): Update.
10646 * language.c (default_symbol_name_matcher): Update.
10647 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10648 Update.
10649 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10650 (ada_lookup_name_info::ada_lookup_name_info): Update.
10651 (literal_symbol_name_matcher): Update.
10652
8c072cb6
TT
106532020-04-01 Tom Tromey <tromey@adacore.com>
10654
10655 * psymtab.c (psymtab_search_name): Remove function.
10656 (psym_lookup_symbol): Create search name and lookup name here.
10657 (lookup_partial_symbol): Remove "name" parameter; add
10658 lookup_name.
10659 (psym_expand_symtabs_for_function): Update.
10660
6f29a534
TT
106612020-03-31 Joel Jones <joelkevinjones@gmail.com>
10662
10663 PR tui/25597:
10664 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10665
af62665e
TT
106662020-03-31 Tom Tromey <tromey@adacore.com>
10667
10668 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10669 memcpy.
10670
d1a89da5
NC
106712020-03-30 Nelson Chu <nelson.chu@sifive.com>
10672
10673 * features/riscv/32bit-csr.xml: Regenerated.
10674 * features/riscv/64bit-csr.xml: Regenerated.
10675
d8af9068
TT
106762020-03-30 Tom Tromey <tromey@adacore.com>
10677
10678 * ada-valprint.c (print_variant_part): Update.
10679 * ada-lang.h (ada_which_variant_applies): Update.
10680 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10681 outer_valaddr parameters; replace with "outer" value parameter.
10682 (to_fixed_variant_branch_type): Update.
10683
227c0bf4
PFC
106842020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10685
10686 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10687 <list>. Remove inclusion of observable.h.
10688 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10689 (struct arch_lwp_info): New struct.
10690 (class ppc_linux_dreg_interface): New class.
10691 (struct ppc_linux_process_info): New struct.
10692 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10693 <low_new_clone, low_forget_process, low_prepare_to_resume>
10694 <copy_thread_dreg_state, mark_thread_stale>
10695 <mark_debug_registers_changed, register_hw_breakpoint>
10696 <clear_hw_breakpoint, register_wp, clear_wp>
10697 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10698 <num_memory_accesses, get_trigger_type>
10699 <create_watchpoint_request, hwdebug_point_cmp>
10700 <init_arch_lwp_info, get_arch_lwp_info>
10701 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10702 methods.
10703 <struct ptid_hash>: New inner struct.
10704 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10705 members.
10706 (saved_dabr_value, hwdebug_info, max_slots_number)
10707 (struct hw_break_tuple, struct thread_points, ppc_threads)
10708 (have_ptrace_hwdebug_interface)
10709 (hwdebug_find_thread_points_by_tid)
10710 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10711 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10712 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10713 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10714 use m_dreg_interface.
10715 (hwdebug_point_cmp): Change to...
10716 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10717 reference arguments instead of pointers.
10718 (ppc_linux_nat_target::ranged_break_num_registers): Use
10719 m_dreg_interface.
10720 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10721 m_dreg_interface. Call register_hw_breakpoint.
10722 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10723 m_dreg_interface. Call clear_hw_breakpoint.
10724 (get_trigger_type): Change to...
10725 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10726 comment.
10727 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10728 use m_dreg_interface. Call register_hw_breakpoint.
10729 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10730 use m_dreg_interface. Call clear_hw_breakpoint.
10731 (can_use_watchpoint_cond_accel): Change to...
10732 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10733 method. Update comment, use m_dreg_interface and
10734 m_process_info.
10735 (calculate_dvc): Change to...
10736 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10737 m_dreg_interface.
10738 (num_memory_accesses): Change to...
10739 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10740 (check_condition): Change to...
10741 (ppc_linux_nat_target::check_condition): ...this method.
10742 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10743 comment, use m_dreg_interface.
10744 (create_watchpoint_request): Change to...
10745 (ppc_linux_nat_target::create_watchpoint_request): ...this
10746 method. Use m_dreg_interface.
10747 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10748 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10749 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10750 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10751 (ppc_linux_nat_target::low_forget_process)
10752 (ppc_linux_nat_target::low_new_fork)
10753 (ppc_linux_nat_target::low_new_clone)
10754 (ppc_linux_nat_target::low_delete_thread)
10755 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10756 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10757 only call mark_thread_stale.
10758 (ppc_linux_thread_exit): Remove.
10759 (ppc_linux_nat_target::stopped_data_address): Change to...
10760 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10761 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10762 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10763 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10764 comment. Call low_stopped_data_address.
10765 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10766 m_dreg_interface.
10767 (ppc_linux_nat_target::masked_watch_num_registers): Use
10768 m_dreg_interface.
10769 (ppc_linux_nat_target::copy_thread_dreg_state)
10770 (ppc_linux_nat_target::mark_thread_stale)
10771 (ppc_linux_nat_target::mark_debug_registers_changed)
10772 (ppc_linux_nat_target::register_hw_breakpoint)
10773 (ppc_linux_nat_target::clear_hw_breakpoint)
10774 (ppc_linux_nat_target::register_wp)
10775 (ppc_linux_nat_target::clear_wp)
10776 (ppc_linux_nat_target::init_arch_lwp_info)
10777 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10778 (_initialize_ppc_linux_nat): Remove observer callback.
10779
4db10d8f
PFC
107802020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10781
10782 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10783 (ppc_linux_nat_target::auxv_parse)
10784 (ppc_linux_nat_target::read_description)
10785 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10786 Move up.
10787
1310c1b0
PFC
107882020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10789
10790 * linux-nat.h (low_new_clone): New method.
10791 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10792
69b037c3
SM
107932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10794
10795 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10796 (dbx_expand_psymtab): ... this.
10797 (start_psymtab): Update.
10798 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10799 (mdebug_expand_psymtab): ... this.
10800 (parse_partial_symbols): Update.
10801 (new_psymtab): Update.
10802 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10803 (xcoff_expand_psymtab): ... this.
10804 (xcoff_start_psymtab): Update.
10805
48993951
SM
108062020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10807
10808 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10809 <expand_dependencies>: ... this.
10810 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10811 (partial_symtab::expand_dependencies): ... this.
10812 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10813 Update.
10814 (dwarf2_psymtab::expand_psymtab): Update.
10815 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10816 * mdebugread.c (psymtab_to_symtab_1): Update.
10817 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10818
3ad83046
SM
108192020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10820
10821 * psympriv.h (discard_psymtab): Remove.
10822 * dbxread.c (dbx_end_psymtab): Update.
10823 * xcoffread.c (xcoff_end_psymtab): Update.
10824
4d1b9ab6
TT
108252020-03-28 Tom Tromey <tom@tromey.com>
10826
10827 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10828 comment.
10829
f1749218
TT
108302020-03-28 Tom Tromey <tom@tromey.com>
10831
10832 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10833
ebea7626
HD
108342020-03-27 Hannes Domani <ssbssa@yahoo.de>
10835
10836 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10837
a879b4d5
JB
108382020-03-26 John Baldwin <jhb@FreeBSD.org>
10839
10840 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10841
0826b30a
TT
108422020-03-26 Tom Tromey <tom@tromey.com>
10843
10844 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10845 (mark_common_block_symbol_computed, read_tag_string_type)
10846 (attr_to_dynamic_prop, read_subrange_type): Update.
10847 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10848 to be methods on struct attribute.
10849 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10850 (read_call_site_scope, partial_die_info::read)
10851 (partial_die_info::read, lookup_die_type, follow_die_ref):
10852 Update.
10853 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10854 from dwarf2_get_ref_die_offset.
10855 (attribute::constant_value): New method, from
10856 dwarf2_get_attr_constant_value.
10857 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10858 Declare method.
10859 <constant_value>: New method.
10860
2b2558bf
TT
108612020-03-26 Tom Tromey <tom@tromey.com>
10862
10863 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10864 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10865 (dwarf_type_encoding_name): Move to stringify.c.
10866 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10867 * dwarf2/stringify.c: New file.
10868 * dwarf2/stringify.h: New file.
10869
eeb64781
TT
108702020-03-26 Tom Tromey <tom@tromey.com>
10871
10872 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10873 Rewrite.
10874
a39fdb41
TT
108752020-03-26 Tom Tromey <tom@tromey.com>
10876
10877 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10878 methods.
10879 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10880 (lookup_ranges_base): Likewise.
10881 (read_cutu_die_from_dwo, read_full_die_1): Update.
10882
436c571c
TT
108832020-03-26 Tom Tromey <tom@tromey.com>
10884
10885 * dwarf2/read.c (read_import_statement, read_file_scope)
10886 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10887 (read_lexical_block_scope, read_call_site_scope)
10888 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10889 (handle_struct_member_die, process_structure_scope)
10890 (update_enumeration_type_from_children)
10891 (process_enumeration_scope, read_array_type, read_common_block)
10892 (read_namespace, read_module, read_subroutine_type): Update.
10893 (sibling_die): Remove.
10894
052c8bb8
TT
108952020-03-26 Tom Tromey <tom@tromey.com>
10896
10897 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10898 (build_type_psymtabs_reader, read_structure_type)
10899 (read_enumeration_type, read_full_die_1): Update.
10900 (dwarf2_attr_no_follow): Move to die.h.
10901 * dwarf2/die.h (struct die_info) <attr>: New method.
10902
2b24b6e4
TT
109032020-03-26 Tom Tromey <tom@tromey.com>
10904
10905 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10906 <base_address>: Now an optional.
10907 (dwarf2_find_base_address, dwarf2_rnglists_process)
10908 (dwarf2_ranges_process, fill_in_loclist_baton)
10909 (dwarf2_symbol_mark_computed): Update.
10910
c2d50fd0
TT
109112020-03-26 Tom Tromey <tom@tromey.com>
10912
10913 * dwarf2/read.c (struct die_info): Move to die.h.
10914 * dwarf2/die.h: New file.
10915
0df7ad3a
TT
109162020-03-26 Tom Tromey <tom@tromey.com>
10917
10918 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10919 * dwarf2/read.c
10920 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10921 Move to line-header.c.
10922 (read_checked_initial_length_and_offset, read_formatted_entries):
10923 Likewise.
10924 (dwarf_decode_line_header): Split into two.
10925 * dwarf2/line-header.c
10926 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10927 Move from read.c.
10928 (read_checked_initial_length_and_offset, read_formatted_entries):
10929 Likewise.
10930 (dwarf_decode_line_header): New function, split from read.c.
10931
86c0bb4c
TT
109322020-03-26 Tom Tromey <tom@tromey.com>
10933
10934 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10935 Declare method.
10936 * dwarf2/read.c (read_attribute_value): Update.
10937 (dwarf2_per_objfile::read_line_string): Rename from
10938 read_indirect_line_string.
10939 (read_formatted_entries): Update.
10940
2ef46c2f
TT
109412020-03-26 Tom Tromey <tom@tromey.com>
10942
10943 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10944 variable.
10945
4f9c1eda
TT
109462020-03-26 Tom Tromey <tom@tromey.com>
10947
10948 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10949 const.
10950 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10951 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10952 parameter const.
10953
5a0e026f
TT
109542020-03-26 Tom Tromey <tom@tromey.com>
10955
10956 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10957 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10958 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10959 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10960
8844c11b
TT
109612020-03-26 Tom Tromey <tom@tromey.com>
10962
10963 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10964 file_names_size, file_full_name, file_file_name>: Use const.
10965 <file_name_at, file_names>: Add const overload.
10966 * dwarf2/line-header.c (line_header::file_file_name)
10967 (line_header::file_full_name): Update.
10968
c90ec28a
TT
109692020-03-26 Tom Tromey <tom@tromey.com>
10970
10971 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10972 (macro_start_file, consume_improper_spaces)
10973 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10974 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10975 (dwarf_decode_macros): Move to macro.c.
10976 * dwarf2/macro.c: New file.
10977 * dwarf2/macro.h: New file.
10978 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10979
4f44ae6c
TT
109802020-03-26 Tom Tromey <tom@tromey.com>
10981
10982 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10983 method.
10984 * dwarf2/section.c: New method. From
10985 read_indirect_string_at_offset_from.
10986 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10987 (read_indirect_string_at_offset_from): Move to section.c.
10988 (read_indirect_string_at_offset): Rewrite.
10989 (read_indirect_line_string_at_offset): Remove.
10990 (read_indirect_string, read_indirect_line_string)
10991 (dwarf_decode_macro_bytes): Update.
10992
a0194fa8
TT
109932020-03-26 Tom Tromey <tom@tromey.com>
10994
10995 * dwarf2/section.h (struct dwarf2_section_info)
10996 <overload_complaint>: Declare.
10997 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10998 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10999 Rename from dwarf2_section_buffer_overflow_complaint.
11000 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11001 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11002
3d27bbdb
TT
110032020-03-26 Tom Tromey <tom@tromey.com>
11004
11005 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11006 Declare.
11007 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11008 Move from read.c.
11009 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11010 to section.c.
11011
9eac9650
TT
110122020-03-26 Tom Tromey <tom@tromey.com>
11013
11014 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11015
bf80d710
TT
110162020-03-26 Tom Tromey <tom@tromey.com>
11017
11018 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11019 "builder".
11020 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11021 parameter.
11022 (dwarf_decode_macros): Update.
11023
0314b390
TT
110242020-03-26 Tom Tromey <tom@tromey.com>
11025
11026 * dwarf2/read.c (read_attribute_value): Update.
11027 (read_indirect_string_from_dwz): Move to dwz.c; change into
11028 method.
11029 (dwarf_decode_macro_bytes): Update.
11030 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11031 * dwarf2/dwz.c: New file.
11032 * Makefile.in (COMMON_SFILES): Add dwz.c.
11033
9fda78b6
TT
110342020-03-26 Tom Tromey <tom@tromey.com>
11035
11036 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11037 * dwarf2/read.c: Add include.
11038 * dwarf2/index-write.c: Add include.
11039 * dwarf2/index-cache.c: Add include.
11040 * dwarf2/dwz.h: New file.
11041
33aa3c10
TT
110422020-03-25 Tom Tromey <tom@tromey.com>
11043
11044 * compile/compile-object-load.c (get_out_value_type): Mention
11045 correct symbol name in error message.
11046
d503b685
HD
110472020-03-25 Hannes Domani <ssbssa@yahoo.de>
11048
11049 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11050
7b1eff95
TV
110512020-03-25 Tom de Vries <tdevries@suse.de>
11052
11053 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11054 * symmisc.c (dump_symtab_1): Print user and includes fields.
11055 (maintenance_info_symtabs): Same.
11056
dd895392
AB
110572020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11058
11059 PR gdb/25534
11060 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11061 (riscv_regcache_cooked_write): New function.
11062 (riscv_push_dummy_call): Use new function.
11063 (riscv_return_value): Likewise.
11064
5ab2fbf1
SM
110652020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11066
11067 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11068 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11069 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11070 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11071 * infrun.c (follow_fork): Likewise.
11072 (follow_fork_inferior): Likewise.
11073 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11074 * linux-nat.h (class linux_nat_target): Likewise.
11075 * remote.c (class remote_target) <follow_fork>: Likewise.
11076 (remote_target::follow_fork): Likewise.
11077 * target-delegates.c: Re-generate.
11078 * target.c (default_follow_fork): Likewise.
11079 (target_follow_fork): Likewise.
11080 * target.h (struct target_ops) <follow_fork>: Likewise.
11081 (target_follow_fork): Likewise.
11082
a64fafb5
TV
110832020-03-24 Tom de Vries <tdevries@suse.de>
11084
11085 * psymtab.c (maintenance_info_psymtabs): Print user field.
11086
fe26d3a3
TT
110872020-03-20 Tom Tromey <tromey@adacore.com>
11088
11089 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11090 const.
11091 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11092 const.
11093
c884cc46
SM
110942020-03-20 Simon Marchi <simon.marchi@efficios.com>
11095
11096 * ptrace.m4: Don't check for ptrace declaration.
11097 * config.in: Re-generate.
11098 * configure: Re-generate.
11099 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11100 not defined.
11101
1ff700c2
KR
111022020-03-20 Kamil Rytarowski <n54@gmx.com>
11103
11104 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11105 `PTRACE_TYPE_RET'.
11106 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11107 * sparc-nat.c (gdb_ptrace): Likewise.
11108 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11109
f7d4f0b1
TT
111102020-03-20 Tom Tromey <tromey@adacore.com>
11111
11112 * c-exp.y (lex_one_token): Fix assert.
11113
f67210ff
TT
111142020-03-20 Tom Tromey <tromey@adacore.com>
11115
11116 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11117 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11118 strncpy call.
11119
1773be9e
TT
111202020-03-20 Tom Tromey <tromey@adacore.com>
11121
11122 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11123
70304be9
TT
111242020-03-20 Tom Tromey <tromey@adacore.com>
11125
11126 * ada-valprint.c (print_variant_part): Remove parameters; switch
11127 to value-based API.
11128 (print_field_values): Likewise.
11129 (ada_val_print_struct_union): Likewise.
11130 (ada_value_print_1): Update.
11131
9faa006d
KR
111322020-03-20 Kamil Rytarowski <n54@gmx.com>
11133
11134 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11135 nbsd_nat_target instead of inf_ptrace_target.
11136 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11137 nbsd_nat_target.
11138
4a90f062
KR
111392020-03-20 Kamil Rytarowski <n54@gmx.com>
11140
11141 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11142 it to the ptrace call.
11143 * (store_registers): Likewise.
11144
111452020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11146
11147 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11148 it to the ptrace call.
11149 * (store_registers): Likewise.
11150
2d07da27
LM
111512020-03-19 Luis Machado <luis.machado@linaro.org>
11152
11153 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11154 valid, fetch vg value from ptrace.
11155
f09db380
KR
111562020-03-19 Kamil Rytarowski <n54@gmx.com>
11157 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11158 * inf-ptrace.c: Likewise.
11159 * (gdb_ptrace): Add.
11160 * (inf_ptrace_target::resume): Update.
11161 * (inf_ptrace_target::xfer_partial): Likewise.
11162 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11163 * (inf_ptrace_peek_poke): Update.
11164
fcc7376e
KR
111652020-03-19 Kamil Rytarowski <n54@gmx.com>
11166
11167 * x86-bsd-nat.c (gdb_ptrace): New.
11168 * (x86bsd_dr_set): Add new argument `ptid'.
11169 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11170 x86bsd_dr_set_addr): Update.
11171
cada5fc9
AB
111722020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11173
11174 * remote.c (remote_target::process_stop_reply): Handle events for
11175 all threads differently.
11176
19a2740f
AB
111772020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11178
11179 * completer.c (completion_tracker::remove_completion): Define new
11180 function.
11181 * completer.h (completion_tracker::remove_completion): Declare new
11182 function.
11183 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11184 when adding a C++ function symbol.
11185
724fd9ba
AB
111862020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11187
11188 * completer.c (completion_tracker::completion_hash_entry): Define
11189 new class.
11190 (advance_to_filename_complete_word_point): Call
11191 recompute_lowest_common_denominator.
11192 (completion_tracker::completion_tracker): Call discard_completions
11193 to setup the hash table.
11194 (completion_tracker::discard_completions): Allow for being called
11195 from the constructor, pass new equal function, and element deleter
11196 when constructing the hash table. Initialise new class member
11197 variables.
11198 (completion_tracker::maybe_add_completion): Remove use of
11199 m_entries_vec, and store more information into m_entries_hash.
11200 (completion_tracker::recompute_lcd_visitor): New function, most
11201 content taken from...
11202 (completion_tracker::recompute_lowest_common_denominator):
11203 ...here, this now just visits each item in the hash calling the
11204 above visitor.
11205 (completion_tracker::build_completion_result): Remove use of
11206 m_entries_vec, call recompute_lowest_common_denominator.
11207 * completer.h (completion_tracker::have_completions): Remove use
11208 of m_entries_vec.
11209 (completion_tracker::completion_hash_entry): Declare new class.
11210 (completion_tracker::recompute_lowest_common_denominator): Change
11211 function signature.
11212 (completion_tracker::recompute_lcd_visitor): Declare new function.
11213 (completion_tracker::m_entries_vec): Delete.
11214 (completion_tracker::m_entries_hash): Initialize to NULL.
11215 (completion_tracker::m_lowest_common_denominator_valid): New
11216 member variable.
11217 (completion_tracker::m_lowest_common_denominator_max_length): New
11218 member variable.
11219
5a82b8a1
KR
112202020-03-17 Kamil Rytarowski <n54@gmx.com>
11221
11222 * regformats/regdef.h: Put reg in gdb namespace.
11223
fb516a69
KR
112242020-03-17 Kamil Rytarowski <n54@gmx.com>
11225
11226 * i386-bsd-nat.c (gdb_ptrace): New.
11227 * (i386bsd_fetch_inferior_registers,
11228 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11229 * (i386bsd_fetch_inferior_registers,
11230 i386bsd_store_inferior_registers) Use gdb_ptrace.
11231
1c0aa1fb
KR
112322020-03-17 Kamil Rytarowski <n54@gmx.com>
11233
11234 * amd64-bsd-nat.c (gdb_ptrace): New.
11235 * (amd64bsd_fetch_inferior_registers,
11236 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11237 * (amd64bsd_fetch_inferior_registers,
11238 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11239
5ccd2fb7
KR
112402020-03-17 Kamil Rytarowski <n54@gmx.com>
11241
11242 * user-regs.c (user_reg::read): Rename to...
11243 (user_reg::xread): ...this.
11244 * (append_user_reg): Rename argument `read' to `xread'.
11245 * (user_reg_add_builtin): Likewise.
11246 * (user_reg_add): Likewise.
11247 * (value_of_user_reg): Likewise.
11248
2108a63a
KR
112492020-03-17 Kamil Rytarowski <n54@gmx.com>
11250
11251 * sparc-nat.c (gdb_ptrace): New.
11252 * sparc-nat.c (sparc_fetch_inferior_registers)
11253 (sparc_store_inferior_registers) Remove obsolete comment.
11254 * sparc-nat.c (sparc_fetch_inferior_registers)
11255 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11256 * sparc-nat.c (sparc_fetch_inferior_registers)
11257 (sparc_store_inferior_registers) Use gdb_ptrace.
11258
a225c9a8
KR
112592020-03-17 Kamil Rytarowski <n54@gmx.com>
11260
11261 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11262 it to the ptrace call.
11263 * sh-nbsd-nat.c (store_registers): Likewise.
11264
98097623
KR
112652020-03-17 Kamil Rytarowski <n54@gmx.com>
11266
11267 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11268 nbsd_nat_target instead of inf_ptrace_target.
11269 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11270 nbsd_nat_target.
11271
9e38d619
KR
112722020-03-17 Kamil Rytarowski <n54@gmx.com>
11273
11274 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11275
a2ecbe9f
KR
112762020-03-17 Kamil Rytarowski <n54@gmx.com>
11277
11278 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11279 <sys/sysctl.h>.
11280 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11281
58990295
TV
112822020-03-17 Tom de Vries <tdevries@suse.de>
11283
11284 PR gdb/23710
11285 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11286 fields.
11287 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11288 fields.
11289 (process_imported_unit_die): Skip import of c++ CUs.
11290
771dd3a8
TT
112912020-03-16 Tom Tromey <tom@tromey.com>
11292
11293 * p-valprint.c (pascal_object_print_value): Initialize
11294 base_value.
11295
817a7585
AK
112962020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11297 Shahab Vahedi <shahab@synopsys.com>
11298
11299 * Makefile.in: Add arch/arc.o
11300 * configure.tgt: Likewise.
11301 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11302 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11303 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11304 * arc-tdep.h (arc_read_description): Add proto type.
11305 * arch/arc.c: New file.
11306 * arch/arc.h: Likewise.
11307 * features/Makefile: Replace old target descriptions with new.
11308 * features/arc-arcompact.c: Remove.
11309 * features/arc-arcompact.xml: Likewise.
11310 * features/arc-v2.c: Likewise
11311 * features/arc-v2.xml: Likewise
11312 * features/arc/aux-arcompact.xml: New file.
11313 * features/arc/aux-v2.xml: Likewise.
11314 * features/arc/core-arcompact.xml: Likewise.
11315 * features/arc/core-v2.xml: Likewise.
11316 * features/arc/aux-arcompact.c: Generate.
11317 * features/arc/aux-v2.c: Likewise.
11318 * features/arc/core-arcompact.c: Likewise.
11319 * features/arc/core-v2.c: Likewise.
11320 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11321
67430cd0
TT
113222020-03-16 Tom Tromey <tromey@adacore.com>
11323
11324 PR gdb/25663:
11325 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11326 putting value into bcache.
11327
30efb6c7
SM
113282020-03-16 Simon Marchi <simon.marchi@efficios.com>
11329
11330 PR gdb/21500
11331 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11332 to...
11333 (amd64_windows_init_abi_common): ... this. Don't set size of
11334 long type.
11335 (amd64_windows_init_abi): New function.
11336 (amd64_cygwin_init_abi): New function.
11337 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11338 the Cygwin OS ABI.
11339 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11340 comment.
11341
8db52437
SM
113422020-03-16 Simon Marchi <simon.marchi@efficios.com>
11343
11344 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11345 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11346 (pe_import_directory_entry): New struct type.
11347 (is_linked_with_cygwin_dll): New function.
11348 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11349 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11350 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11351
5982a56a
SM
113522020-03-16 Simon Marchi <simon.marchi@efficios.com>
11353
11354 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11355 i386_cygwin_core_osabi_sniffer.
11356
7a1998df
SM
113572020-03-16 Simon Marchi <simon.marchi@efficios.com>
11358
11359 * i386-cygwin-tdep.c: Rename to...
11360 * i386-windows-tdep.c: ... this.
11361 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11362 i386-windows-tdep.c.
11363 * configure.tgt: Likewise.
11364
053205cc
SM
113652020-03-16 Simon Marchi <simon.marchi@efficios.com>
11366
11367 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11368 * osabi.c (gdb_osabi_names): Add "Windows".
11369 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11370 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11371 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11372 i386_cygwin_osabi_sniffer.
11373 (_initialize_i386_cygwin_tdep): Register OS ABI
11374 GDB_OSABI_WINDOWS for i386.
11375 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11376 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11377 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11378 for x86-64.
11379 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11380 when the target matches '*-*-mingw*'.
11381
fe4b2ee6
SM
113822020-03-16 Simon Marchi <simon.marchi@efficios.com>
11383
11384 * defs.h (enum gdb_osabi): Move to...
11385 * osabi.h (enum gdb_osabi): ... here.
11386 * gdbarch.sh: Include osabi.h in gdbarch.h.
11387 * gdbarch.h: Re-generate.
11388
cb9b645d
SM
113892020-03-16 Simon Marchi <simon.marchi@efficios.com>
11390
11391 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11392 function.
11393 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11394
3293bbaf
TT
113952020-03-14 Tom Tromey <tom@tromey.com>
11396
11397 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11398 for C++.
11399 (c_type_print_modifier): Likewise. Add "language" parameter.
11400 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11401 (c_type_print_base_1): Update.
11402 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11403 constants.
11404 * type-stack.c (type_stack::insert): Handle tp_atomic and
11405 tp_restrict.
11406 (type_stack::follow_type_instance_flags): Likewise.
11407 (type_stack::follow_types): Likewise. Merge type-following code.
11408 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11409 (space_identifier, cv_with_space_id)
11410 (const_or_volatile_or_space_identifier_noopt)
11411 (const_or_volatile_or_space_identifier): Remove.
11412 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11413 rules.
11414 (ptr_operator, typebase): Update.
11415 (enum token_flag) <FLAG_C>: New constant.
11416 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11417 "_Atomic".
11418 (lex_one_token): Handle FLAG_C.
11419
154151a6
KR
114202020-03-14 Kamil Rytarowski <n54@gmx.com>
11421
11422 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11423 it to the ptrace call.
11424 * m68k-bsd-nat.c (store_registers): Likewise.
11425
bc107784
KR
114262020-03-14 Kamil Rytarowski <n54@gmx.com>
11427
11428 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11429 gdb_byte *.
11430 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11431 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11432 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11433
01a80117
KR
114342020-03-14 Kamil Rytarowski <n54@gmx.com>
11435
11436 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11437 nbsd_nat_target instead of inf_ptrace_target.
11438 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11439 nbsd_nat_target.
11440
f90280ca
KR
114412020-03-14 Kamil Rytarowski <n54@gmx.com>
11442
11443 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11444 register_t.
11445
6def66f1
KR
114462020-03-14 Kamil Rytarowski <n54@gmx.com>
11447
11448 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11449 it to the ptrace call.
11450 * alpha-bsd-nat.c (store_registers): Likewise.
11451
66eaca97
KR
114522020-03-14 Kamil Rytarowski <n54@gmx.com>
11453
11454 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11455 includes.
11456 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11457 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11458 fill_fpregset): Likewise.
11459
4fed520b
KR
114602020-03-14 Kamil Rytarowski <n54@gmx.com>
11461
11462 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11463 nbsd_nat_target instead of inf_ptrace_target.
11464 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11465 nbsd_nat_target.
11466
2190cf06
KR
114672020-03-14 Kamil Rytarowski <n54@gmx.com>
11468
11469 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11470 register_t.
11471
75c56d3d
KR
114722020-03-14 Kamil Rytarowski <n54@gmx.com>
11473
11474 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11475 it to the ptrace call.
11476 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11477 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11478 * arm-nbsd-nat.c (store_register): Likewise.
11479 * arm-nbsd-nat.c (store_regs): Likewise.
11480 * arm-nbsd-nat.c (store_fp_register): Likewise.
11481 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11482
6018d381
KR
114832020-03-14 Kamil Rytarowski <n54@gmx.com>
11484
11485 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11486 nbsd_nat_target instead of inf_ptrace_target.
11487 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11488 nbsd_nat_target.
11489
013f99f0
KR
114902020-03-14 Kamil Rytarowski <n54@gmx.com>
11491
11492 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11493 it to the ptrace call.
11494 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11495
12753073
KR
114962020-03-14 Kamil Rytarowski <n54@gmx.com>
11497
6227b330
KR
11498 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11499 it to the ptrace call.
11500 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11501
115022020-03-14 Kamil Rytarowski <n54@gmx.com>
11503
11504 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11505 gdb_byte *.
12753073
KR
11506 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11507
d5be5fa4
KR
115082020-03-14 Kamil Rytarowski <n54@gmx.com>
11509
11510 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11511 instead of inf_ptrace_target.
11512 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11513 nbsd_nat_target.
11514
8110f842
KR
115152020-03-14 Kamil Rytarowski <n54@gmx.com>
11516
11517 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11518 register_t.
11519
52feded7
KR
115202020-03-14 Kamil Rytarowski <n54@gmx.com>
11521
11522 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11523 register_t.
11524
25567eee
KR
115252020-03-14 Kamil Rytarowski <n54@gmx.com>
11526
11527 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11528 register_t.
11529
426a9c18
TT
115302020-03-13 Tom Tromey <tom@tromey.com>
11531
11532 * value.h (val_print): Don't declare.
11533 * valprint.h (val_print_array_elements)
11534 (val_print_scalar_formatted, generic_val_print): Don't declare.
11535 * valprint.c (generic_val_print_array): Take a struct value.
11536 (generic_val_print_ptr, generic_val_print_memberptr)
11537 (generic_val_print_bool, generic_val_print_int)
11538 (generic_val_print_char, generic_val_print_complex)
11539 (generic_val_print): Remove.
11540 (generic_value_print): Update.
11541 (do_val_print): Remove unused parameters. Don't call
11542 la_val_print.
11543 (val_print): Remove.
11544 (common_val_print): Update. Don't call value_check_printable.
11545 (val_print_scalar_formatted, val_print_array_elements): Remove.
11546 * rust-lang.c (rust_val_print): Remove.
11547 (rust_language_defn): Update.
11548 * p-valprint.c (pascal_val_print): Remove.
11549 (pascal_value_print_inner): Update.
11550 (pascal_object_print_val_fields, pascal_object_print_val):
11551 Remove.
11552 (pascal_object_print_static_field): Update.
11553 * p-lang.h (pascal_val_print): Don't declare.
11554 * p-lang.c (pascal_language_defn): Update.
11555 * opencl-lang.c (opencl_language_defn): Update.
11556 * objc-lang.c (objc_language_defn): Update.
11557 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11558 * m2-lang.h (m2_val_print): Don't declare.
11559 * m2-lang.c (m2_language_defn): Update.
11560 * language.h (struct language_defn) <la_val_print>: Remove.
11561 * language.c (unk_lang_value_print_inner): Rename. Change
11562 argument types.
11563 (unknown_language_defn, auto_language_defn): Update.
11564 * go-valprint.c (go_val_print): Remove.
11565 * go-lang.h (go_val_print): Don't declare.
11566 * go-lang.c (go_language_defn): Update.
11567 * f-valprint.c (f_val_print): Remove.
11568 * f-lang.h (f_value_print): Don't declare.
11569 * f-lang.c (f_language_defn): Update.
11570 * d-valprint.c (d_val_print): Remove.
11571 * d-lang.h (d_value_print): Don't declare.
11572 * d-lang.c (d_language_defn): Update.
11573 * cp-valprint.c (cp_print_value_fields)
11574 (cp_print_value_fields_rtti, cp_print_value): Remove.
11575 (cp_print_static_field): Update.
11576 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11577 (c_val_print_struct, c_val_print_union, c_val_print_int)
11578 (c_val_print_memberptr, c_val_print): Remove.
11579 * c-lang.h (c_val_print_array, cp_print_value_fields)
11580 (cp_print_value_fields_rtti): Don't declare.
11581 * c-lang.c (c_language_defn, cplus_language_defn)
11582 (asm_language_defn, minimal_language_defn): Update.
11583 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11584 (ada_val_print_enum): Take a struct value.
11585 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11586 (ada_val_print): Remove.
11587 (ada_value_print_1): Update.
11588 (printable_val_type): Remove.
11589 * ada-lang.h (ada_val_print): Don't declare.
11590 * ada-lang.c (ada_language_defn): Update.
11591
42331a1e
TT
115922020-03-13 Tom Tromey <tom@tromey.com>
11593
11594 * valprint.c (do_val_print): Update.
11595 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11596 a struct value.
11597 (value_to_value_object_no_release): Declare.
11598 * python/py-value.c (value_to_value_object_no_release): New
11599 function.
11600 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11601 struct value.
11602 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11603 function.
11604 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11605 a struct value.
11606 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11607 Declare.
11608 (gdbscm_apply_val_pretty_printer): Take a struct value.
11609 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11610 value.
11611 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11612 value.
11613 * extension-priv.h (struct extension_language_ops)
11614 <apply_val_pretty_printer>: Take a struct value.
11615 * cp-valprint.c (cp_print_value): Create a struct value.
11616 (cp_print_value): Update.
11617
3a916a97
TT
116182020-03-13 Tom Tromey <tom@tromey.com>
11619
11620 * ada-valprint.c (print_field_values): Call common_val_print.
11621
b59eac37
TT
116222020-03-13 Tom Tromey <tom@tromey.com>
11623
11624 * ada-valprint.c (val_print_packed_array_elements): Remove
11625 bitoffset and val parameters. Call common_val_print.
11626 (ada_val_print_string): Remove offset, address, and original_value
11627 parameters.
11628 (ada_val_print_array): Update.
11629 (ada_value_print_array): New function.
11630 (ada_value_print_1): Call it.
11631
03371129
TT
116322020-03-13 Tom Tromey <tom@tromey.com>
11633
11634 * ada-valprint.c (ada_value_print): Use common_val_print.
11635
2e088f8b
TT
116362020-03-13 Tom Tromey <tom@tromey.com>
11637
11638 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11639
39ef85a8
TT
116402020-03-13 Tom Tromey <tom@tromey.com>
11641
11642 * ada-valprint.c (ada_value_print_num): New function.
11643 (ada_value_print_1): Use it.
11644
b9fa6e07
TT
116452020-03-13 Tom Tromey <tom@tromey.com>
11646
11647 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11648
416595d6
TT
116492020-03-13 Tom Tromey <tom@tromey.com>
11650
11651 * ada-valprint.c (ada_value_print_ptr): New function.
11652 (ada_value_print_1): Use it.
11653
5b5e15ec
TT
116542020-03-13 Tom Tromey <tom@tromey.com>
11655
11656 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11657 call common_val_print.
11658 (ada_val_print_1): Update.
11659 (ada_value_print_1): New function.
11660 (ada_value_print_inner): Rewrite.
11661
fbf54e75
TT
116622020-03-13 Tom Tromey <tom@tromey.com>
11663
11664 * cp-valprint.c (cp_print_value_fields): Update.
11665 (cp_print_value): New function.
11666
64b653ca
TT
116672020-03-13 Tom Tromey <tom@tromey.com>
11668
11669 * m2-valprint.c (m2_value_print_inner): Use
11670 cp_print_value_fields.
11671 * cp-valprint.c (cp_print_value_fields): New function.
11672 * c-valprint.c (c_value_print_struct): New function.
11673 (c_value_print_inner): Use c_value_print_struct.
11674 * c-lang.h (cp_print_value_fields): Declare.
11675
6999f067
TT
116762020-03-13 Tom Tromey <tom@tromey.com>
11677
11678 * c-valprint.c (c_value_print_array): New function.
11679 (c_value_print_inner): Use it.
11680
ce80b8bd
TT
116812020-03-13 Tom Tromey <tom@tromey.com>
11682
11683 * c-valprint.c (c_value_print_memberptr): New function.
11684 (c_value_print_inner): Use it.
11685
2faac269
TT
116862020-03-13 Tom Tromey <tom@tromey.com>
11687
11688 * c-valprint.c (c_value_print_int): New function.
11689 (c_value_print_inner): Use it.
11690
da3e2c29
TT
116912020-03-13 Tom Tromey <tom@tromey.com>
11692
11693 * c-valprint.c (c_value_print_ptr): New function.
11694 (c_value_print_inner): Use it.
11695
50836231
TT
116962020-03-13 Tom Tromey <tom@tromey.com>
11697
11698 * c-valprint.c (c_value_print_inner): Rewrite.
11699
4f412b6e
TT
117002020-03-13 Tom Tromey <tom@tromey.com>
11701
11702 * valprint.c (generic_value_print_complex): New function.
11703 (generic_value_print): Use it.
11704
f5354008
TT
117052020-03-13 Tom Tromey <tom@tromey.com>
11706
11707 * valprint.c (generic_val_print_float): Don't call
11708 val_print_scalar_formatted.
11709 (generic_val_print, generic_value_print): Update.
11710
3eec3b05
TT
117112020-03-13 Tom Tromey <tom@tromey.com>
11712
11713 * valprint.c (generic_value_print_char): New function
11714 (generic_value_print): Use it.
11715
fdddfccb
TT
117162020-03-13 Tom Tromey <tom@tromey.com>
11717
11718 * valprint.c (generic_value_print_int): New function.
11719 (generic_value_print): Use it.
11720
6dde7521
TT
117212020-03-13 Tom Tromey <tom@tromey.com>
11722
11723 * valprint.c (generic_value_print_bool): New function.
11724 (generic_value_print): Use it.
11725
4112d2e6
TT
117262020-03-13 Tom Tromey <tom@tromey.com>
11727
11728 * valprint.c (generic_val_print_func): Simplify.
11729 (generic_val_print, generic_value_print): Update.
11730
65786af6
TT
117312020-03-13 Tom Tromey <tom@tromey.com>
11732
11733 * valprint.c (generic_val_print_flags): Remove.
11734 (generic_val_print, generic_value_print): Update.
11735 (val_print_type_code_flags): Add original_value parameter.
11736
40f3ce18
TT
117372020-03-13 Tom Tromey <tom@tromey.com>
11738
11739 * valprint.c (generic_val_print): Update.
11740 (generic_value_print): Update.
11741 * valprint.c (generic_val_print_enum): Don't call
11742 val_print_scalar_formatted.
11743
2a5b130b
TT
117442020-03-13 Tom Tromey <tom@tromey.com>
11745
11746 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11747 * valprint.c (generic_value_print_ptr): New function.
11748
abc66ce9
TT
117492020-03-13 Tom Tromey <tom@tromey.com>
11750
11751 * valprint.c (generic_value_print): Rewrite.
11752
07a32858
TT
117532020-03-13 Tom Tromey <tom@tromey.com>
11754
11755 * p-valprint.c (pascal_object_print_value_fields)
11756 (pascal_object_print_value): New functions.
11757
64d64d3a
TT
117582020-03-13 Tom Tromey <tom@tromey.com>
11759
11760 * p-valprint.c (pascal_value_print_inner): Rewrite.
11761
6a95a1f5
TT
117622020-03-13 Tom Tromey <tom@tromey.com>
11763
11764 * f-valprint.c (f_value_print_innner): Rewrite.
11765
59fcdac6
TT
117662020-03-13 Tom Tromey <tom@tromey.com>
11767
11768 * m2-valprint.c (m2_print_unbounded_array): New overload.
11769 (m2_print_unbounded_array): Update.
11770 (m2_print_array_contents): Take a struct value.
11771 (m2_value_print_inner): Rewrite.
11772
d133c3e1
TT
117732020-03-13 Tom Tromey <tom@tromey.com>
11774
11775 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11776 (d_value_print_inner): New function.
11777 * d-lang.h (d_value_print_inner): Declare.
11778 * d-lang.c (d_language_defn): Use d_value_print_inner.
11779
23b0f06b
TT
117802020-03-13 Tom Tromey <tom@tromey.com>
11781
11782 * go-valprint.c (go_value_print_inner): New function.
11783 * go-lang.h (go_value_print_inner): Declare.
11784 * go-lang.c (go_language_defn): Use go_value_print_inner.
11785
5f56f7cb
TT
117862020-03-13 Tom Tromey <tom@tromey.com>
11787
11788 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11789 API.
11790 (rust_val_print): Rewrite.
11791 (rust_value_print_inner): New function, from rust_val_print.
11792 (rust_language_defn): Use rust_value_print_inner.
11793
26792ee0
TT
117942020-03-13 Tom Tromey <tom@tromey.com>
11795
11796 * ada-valprint.c (ada_value_print_inner): New function.
11797 * ada-lang.h (ada_value_print_inner): Declare.
11798 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11799
24051bbe
TT
118002020-03-13 Tom Tromey <tom@tromey.com>
11801
11802 * f-valprint.c (f_value_print_innner): New function.
11803 * f-lang.h (f_value_print_innner): Declare.
11804 * f-lang.c (f_language_defn): Use f_value_print_innner.
11805
c0941be6
TT
118062020-03-13 Tom Tromey <tom@tromey.com>
11807
11808 * p-valprint.c (pascal_value_print_inner): New function.
11809 * p-lang.h (pascal_value_print_inner): Declare.
11810 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11811
62c4663d
TT
118122020-03-13 Tom Tromey <tom@tromey.com>
11813
11814 * m2-valprint.c (m2_value_print_inner): New function.
11815 * m2-lang.h (m2_value_print_inner): Declare.
11816 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11817
62182190
TT
118182020-03-13 Tom Tromey <tom@tromey.com>
11819
11820 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11821 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11822 * c-valprint.c (c_value_print_inner): New function.
11823 * c-lang.h (c_value_print_inner): Declare.
11824 * c-lang.c (c_language_defn, cplus_language_defn)
11825 (asm_language_defn, minimal_language_defn): Use
11826 c_value_print_inner.
11827
1e592a8a
TT
118282020-03-13 Tom Tromey <tom@tromey.com>
11829
11830 * p-valprint.c (pascal_object_print_value_fields): Now static.
11831 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11832
7fe471e9
TT
118332020-03-13 Tom Tromey <tom@tromey.com>
11834
11835 * c-valprint.c (c_val_print_array): Simplify.
11836
d121c6ce
TT
118372020-03-13 Tom Tromey <tom@tromey.com>
11838
11839 * valprint.c (value_print_array_elements): New function.
11840 * valprint.h (value_print_array_elements): Declare.
11841
4dba70ee
TT
118422020-03-13 Tom Tromey <tom@tromey.com>
11843
11844 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11845 * mips-tdep.c (mips_print_register): Use
11846 value_print_scalar_formatted.
11847
4f9ae810
TT
118482020-03-13 Tom Tromey <tom@tromey.com>
11849
11850 * valprint.h (value_print_scalar_formatted): Declare.
11851 * valprint.c (value_print_scalar_formatted): New function.
11852
156bfec9
TT
118532020-03-13 Tom Tromey <tom@tromey.com>
11854
11855 * valprint.h (generic_value_print): Declare.
11856 * valprint.c (generic_value_print): New function.
11857
2b4e573d
TT
118582020-03-13 Tom Tromey <tom@tromey.com>
11859
11860 * valprint.c (do_val_print): Call la_value_print_inner, if
11861 available.
11862 * rust-lang.c (rust_language_defn): Update.
11863 * p-lang.c (pascal_language_defn): Update.
11864 * opencl-lang.c (opencl_language_defn): Update.
11865 * objc-lang.c (objc_language_defn): Update.
11866 * m2-lang.c (m2_language_defn): Update.
11867 * language.h (struct language_defn) <la_value_print_inner>: New
11868 member.
11869 * language.c (unknown_language_defn, auto_language_defn): Update.
11870 * go-lang.c (go_language_defn): Update.
11871 * f-lang.c (f_language_defn): Update.
11872 * d-lang.c (d_language_defn): Update.
11873 * c-lang.c (c_language_defn, cplus_language_defn)
11874 (asm_language_defn, minimal_language_defn): Update.
11875 * ada-lang.c (ada_language_defn): Update.
11876
a1f6a07c
TT
118772020-03-13 Tom Tromey <tom@tromey.com>
11878
11879 * c-valprint.c (c_value_print): Use common_val_print.
11880
410cf315
TT
118812020-03-13 Tom Tromey <tom@tromey.com>
11882
11883 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11884
72a45c93
TT
118852020-03-13 Tom Tromey <tom@tromey.com>
11886
11887 * f-valprint.c (f77_print_array_1, f_val_print): Use
11888 common_val_print.
11889
040f66bd
TT
118902020-03-13 Tom Tromey <tom@tromey.com>
11891
11892 * riscv-tdep.c (riscv_print_one_register_info): Use
11893 common_val_print.
11894
a6e05a6c
TT
118952020-03-13 Tom Tromey <tom@tromey.com>
11896
11897 * mi/mi-main.c (output_register): Use common_val_print.
11898
3444c526
TT
118992020-03-13 Tom Tromey <tom@tromey.com>
11900
11901 * infcmd.c (default_print_one_register_info): Use
11902 common_val_print.
11903
c2a44efe
TT
119042020-03-13 Tom Tromey <tom@tromey.com>
11905
11906 * valprint.h (common_val_print_checked): Declare.
11907 * valprint.c (common_val_print_checked): New function.
11908 * stack.c (print_frame_arg): Use common_val_print_checked.
11909
b0c26e99
TT
119102020-03-13 Tom Tromey <tom@tromey.com>
11911
11912 * valprint.c (do_val_print): New function, from val_print.
11913 (val_print): Use do_val_print.
11914 (common_val_print): Use do_val_print.
11915
ce3acbe9
TT
119162020-03-13 Tom Tromey <tom@tromey.com>
11917
11918 * valprint.c (value_print): Use scoped_value_mark.
11919
96c7f873
TV
119202020-03-13 Tom de Vries <tdevries@suse.de>
11921
11922 PR symtab/25646
11923 * psymtab.c (partial_symtab::partial_symtab): Don't set
11924 globals_offset and statics_offset. Push element onto
11925 current_global_psymbols and current_static_psymbols stacks.
11926 (concat): New function.
11927 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11928 element from current_global_psymbols and current_static_psymbols
11929 stacks. Concat popped elements to global_psymbols and
11930 static_symbols.
11931 (add_psymbol_to_list): Use current_global_psymbols and
11932 current_static_psymbols stacks.
11933 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11934 current_static_psymbols fields.
11935
6ba0a321
CB
119362020-03-12 Christian Biesinger <cbiesinger@google.com>
11937
11938 * corelow.c (sniff_core_bfd): Remove.
11939 (class core_target) <m_core_vec>: Remove.
11940 (core_target::core_target): Update.
11941 (core_file_fns): Remove.
11942 (deprecated_add_core_fns): Remove.
11943 (default_core_sniffer): Remove.
11944 (sniff_core_bfd): Remove.
11945 (default_check_format): Remove.
11946 (gdb_check_format): Remove.
11947 (core_target_open): Update.
11948 (core_target::get_core_register_section): Update.
11949 (get_core_registers_cb): Update.
11950 (core_target::fetch_registers): Update.
11951 * gdbcore.h (struct core_fns): Remove.
11952 (deprecated_add_core_fns): Remove.
11953 (default_core_sniffer): Remove.
11954 (default_check_format): Remove.
11955
227031b2
TT
119562020-03-12 Tom Tromey <tom@tromey.com>
11957
11958 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11959 CORE_ADDR.
11960 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11961
53807e9f
TT
119622020-03-12 Tom Tromey <tom@tromey.com>
11963
11964 * remote.c (remote_target::download_tracepoint)
11965 (remote_target::enable_tracepoint)
11966 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11967 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11968 sprintf_vma.
11969
64f25102
TT
119702020-03-12 Tom Tromey <tom@tromey.com>
11971
11972 * symfile-mem.c: Update CORE_ADDR size assert.
11973
272cd5a3
SM
119742020-03-12 Simon Marchi <simon.marchi@efficios.com>
11975
11976 * selftest.m4: Move to gdbsupport/.
11977 * acinclude.m4: Update path to selftest.m4.
11978
74cd3f9d
SM
119792020-03-12 Simon Marchi <simon.marchi@efficios.com>
11980
11981 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11982 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11983 gdbarch-selfselftests.c and selftest-arch.c.
11984 (SUBDIR_UNITTESTS_OBS): Rename to...
11985 (SELFTESTS_OBS): ... this.
11986 (COMMON_SFILES): Remove disasm-selftests.c and
11987 gdbarch-selftests.c.
11988 * configure.ac: Don't add selftest-arch.{c,o} to
11989 CONFIG_{SRCS,OBS}.
11990 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11991 preprocessor conditions.
11992
db6878ac
SM
119932020-03-12 Simon Marchi <simon.marchi@efficios.com>
11994
11995 * configure.ac: Don't source bfd/development.sh.
11996 * selftest.m4: Modify comment.
11997 * configure: Re-generate.
11998
4d696a5c
SM
119992020-03-12 Simon Marchi <simon.marchi@efficios.com>
12000
12001 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12002 not "true" or "false".
12003 * configure: Re-generate.
12004
8dd8e1c7
CB
120052020-03-12 Christian Biesinger <cbiesinger@google.com>
12006
12007 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12008 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12009 renamed to arm_nbsd_supply_gregset.
12010 (fetch_register): Update to call arm_nbsd_supply_gregset.
12011 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12012 (arm_netbsd_nat_target::fetch_registers): Update.
12013 (fetch_elfcore_registers): Removed.
12014 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12015 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12016 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12017 not require NetBSD system headers.
12018 (arm_nbsd_regset): New struct.
12019 (arm_nbsd_iterate_over_regset_sections): New function.
12020 (arm_netbsd_init_abi_common): Updated to call
12021 set_gdbarch_iterate_over_regset_sections.
12022 * arm-nbsd-tdep.h: New file.
12023
dd69bf7a
KB
120242020-03-11 Kevin Buettner <kevinb@redhat.com>
12025
12026 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12027 recursion.
12028
a0761e34
SM
120292020-03-11 Simon Marchi <simon.marchi@efficios.com>
12030
12031 * configure: Re-generate.
12032
e7a82140
TT
120332020-03-11 Tom Tromey <tromey@adacore.com>
12034
12035 * ada-typeprint.c (print_choices): Fix comment.
12036
dcc050c8
AB
120372020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12038
12039 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12040 previous item in the list, when the list has no items.
12041
1c33af77
TV
120422020-03-11 Tom de Vries <tdevries@suse.de>
12043
12044 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12045 PROP_LOCLIST handling code.
12046
8c95582d
AB
120472020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12048
12049 * buildsym-legacy.c (record_line): Pass extra parameter to
12050 record_line.
12051 * buildsym.c (buildsym_compunit::record_line): Take an extra
12052 parameter, reduce duplication in the line table, and record the
12053 is_stmt flag in the line table.
12054 * buildsym.h (buildsym_compunit::record_line): Add extra
12055 parameter.
12056 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12057 non-statement lines.
12058 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12059 this to the symtab builder.
12060 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12061 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12062 through to dwarf_record_line_1.
12063 * infrun.c (process_event_stop_test): When stepping, don't stop at
12064 a non-statement instruction, and only refresh the step info when
12065 we land in the middle of a line's range. Also add an extra
12066 comment.
12067 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12068 field.
12069 * record-btrace.c (btrace_find_line_range): Only record lines
12070 marked as is-statement.
12071 * stack.c (frame_show_address): Show the frame address if we are
12072 in a non-statement sal.
12073 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12074 (maintenance_print_one_line_table): Print a header for the is_stmt
12075 column, and include is_stmt information in the output.
12076 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12077 preference to non-statements.
12078 (find_pcs_for_symtab_line): Prefer is-statement entries.
12079 (find_line_common): Likewise.
12080 * symtab.h (struct linetable_entry): Add is_stmt field.
12081 (struct symtab_and_line): Likewise.
12082 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12083 arranging the line table.
12084
e4003a34
TV
120852020-03-07 Tom de Vries <tdevries@suse.de>
12086
12087 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12088 DIE.
12089
e8932576
TT
120902020-03-07 Tom Tromey <tom@tromey.com>
12091
12092 * valops.c (value_literal_complex): Remove obsolete comment.
12093 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12094 comment.
12095
29734269
SM
120962020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12097
12098 * infrun.h: Forward-declare thread_info.
12099 (set_step_info): Add thread_info parameter, add doc.
12100 * infrun.c (set_step_info): Add thread_info parameter, move doc
12101 to header.
12102 * infrun.c (process_event_stop_test): Pass thread to
12103 set_step_info call.
12104 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12105 set_step_info.
12106 (prepare_one_step): Add thread_info parameter, pass it to
12107 set_step_frame and prepare_one_step (recursive) call.
12108 (step_1): Pass thread to prepare_one_step call.
12109 (step_command_fsm::should_stop): Pass thread to
12110 prepare_one_step.
12111 (until_next_fsm): Pass thread to set_step_frame call.
12112 (finish_command): Pass thread to set_step_info call.
12113
b7d64b29
HD
121142020-03-06 Hannes Domani <ssbssa@yahoo.de>
12115
12116 * windows-tdep.c (windows_solib_create_inferior_hook):
12117 Check if inferior is running.
12118
09f2921c
TV
121192020-03-06 Tom de Vries <tdevries@suse.de>
12120
12121 * NEWS: Fix "the the".
12122 * ctfread.c: Same.
12123
fd760e79
TV
121242020-03-06 Tom de Vries <tdevries@suse.de>
12125
12126 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12127
20ea4a60
AB
121282020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12129
12130 * .dir-locals.el: Add a comment referencing the other copies of
12131 this file.
12132
0afbabf0
JB
121332020-03-05 John Baldwin <jhb@FreeBSD.org>
12134
12135 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12136 psargs.
12137
842806cb
TBA
121382020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12139
12140 * .gitattributes: New file.
12141
be1e3d3e
TT
121422020-03-04 Tom Tromey <tom@tromey.com>
12143
12144 * symmisc.c (print_symbol_bcache_statistics)
12145 (print_objfile_statistics): Update.
12146 * symfile.c (allocate_symtab): Use intern.
12147 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12148 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12149 macro_cache>: Remove.
12150 <string_cache>: New member.
12151 (struct objfile) <intern>: New methods.
12152 * elfread.c (elf_symtab_read): Use intern.
12153 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12154 (dwarf2_compute_name, dwarf2_physname)
12155 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12156 names.
12157 (guess_partial_die_structure_name): Update.
12158 (partial_die_info::fixup): Intern name.
12159 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12160 name.
12161 (dwarf2_name): Intern name. Update.
12162 * buildsym.c (buildsym_compunit::get_macro_table): Use
12163 string_cache.
12164
4e7625fd
TT
121652020-03-04 Tom Tromey <tom@tromey.com>
12166
12167 * jit.c (bfd_open_from_target_memory): Make "target" const.
12168 * corefile.c (gnutarget): Now const.
12169 * gdbcore.h (gnutarget): Now const.
12170
46f9f931
HD
121712020-03-04 Hannes Domani <ssbssa@yahoo.de>
12172
12173 * NEWS: Mention support for WOW64 processes.
12174 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12175 (amd64_windows_segment_register_p): Remove static.
12176 (_initialize_amd64_windows_nat): Update.
12177 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12178 * i386-windows-nat.c (context_offset): Update.
12179 (i386_mappings): Rename and remove static.
12180 (i386_windows_segment_register_p): Remove static.
12181 (_initialize_i386_windows_nat): Update.
12182 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12183 (STATUS_WX86_SINGLE_STEP): New macro.
12184 (EnumProcessModulesEx): New macro.
12185 (Wow64SuspendThread): New macro.
12186 (Wow64GetThreadContext): New macro.
12187 (Wow64SetThreadContext): New macro.
12188 (Wow64GetThreadSelectorEntry): New macro.
12189 (windows_set_context_register_offsets): Add static.
12190 (windows_set_segment_register_p): Likewise.
12191 (windows_add_thread): Adapt for WOW64 processes.
12192 (windows_fetch_one_register): Likewise.
12193 (windows_nat_target::fetch_registers): Likewise.
12194 (windows_store_one_register): Likewise.
12195 (display_selector): Likewise.
12196 (display_selectors): Likewise.
12197 (handle_exception): Likewise.
12198 (windows_continue): Likewise.
12199 (windows_nat_target::resume): Likewise.
12200 (windows_add_all_dlls): Likewise.
12201 (do_initial_windows_stuff): Likewise.
12202 (windows_nat_target::attach): Likewise.
12203 (windows_get_exec_module_filename): Likewise.
12204 (windows_nat_target::create_inferior): Likewise.
12205 (windows_xfer_siginfo): Likewise.
12206 (_initialize_loadable): Initialize Wow64SuspendThread,
12207 Wow64GetThreadContext, Wow64SetThreadContext,
12208 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12209 * windows-nat.h (windows_set_context_register_offsets):
12210 Remove declaration.
12211 (windows_set_segment_register_p): Likewise.
12212 (i386_windows_segment_register_p): Add declaration.
12213 (amd64_windows_segment_register_p): Likewise.
12214
440cf44e
LM
122152020-03-04 Luis Machado <luis.machado@linaro.org>
12216
12217 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12218 in "info registers" for AArch64/ARM.
12219
12220 The change caused "info registers" to not print GPR's.
12221
12222 gdb/ChangeLog:
12223
12224 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12225
12226 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12227 when reg->group is empty and reggroup is not.
12228
1009d92f
TT
122292020-03-03 Tom Tromey <tromey@adacore.com>
12230
12231 * dwarf2/frame.c (struct dwarf2_frame_cache)
12232 <checked_tailcall_bottom, entry_cfa_sp_offset,
12233 entry_cfa_sp_offset_p>: Remove members.
12234 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12235 (dwarf2_frame_prev_register): Don't call
12236 dwarf2_tailcall_sniffer_first.
12237 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12238 * frame-unwind.c (add_unwinder): New fuction.
12239 (frame_unwind_init): Use it. Add tailcall unwinder.
12240
5e5d66b6
AB
122412020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12242 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12243
12244 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12245 value should be printed as true.
12246
584cf46d
HD
122472020-03-03 Hannes Domani <ssbssa@yahoo.de>
12248
12249 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12250 (windows_init_abi): Set and use windows_so_ops.
12251
7b973adc
SDJ
122522020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12253
12254 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12255 when verifying if dealing with a convenience variable.
12256
bb7b70ab
LM
122572020-03-03 Luis Machado <luis.machado@linaro.org>
12258
12259 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12260
9822cb57
SM
122612020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12262
12263 * infrun.c (gdbarch_supports_displaced_stepping): New.
12264 (use_displaced_stepping): Break up conditions in smaller pieces.
12265 Use gdbarch_supports_displaced_stepping.
12266 (displaced_step_prepare_throw): Use
12267 gdbarch_supports_displaced_stepping.
12268
63e163f2
AB
122692020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12270
12271 * NEWS: Mention new behaviour of the history filename.
12272 * top.c (write_history_p): Add comment.
12273 (show_write_history_p): Add header comment, give a different
12274 message when history writing is on, but the history filename is
12275 empty.
12276 (history_filename): Add comment.
12277 (history_filename_empty): New function.
12278 (show_history_filename): Add header comment, give a different
12279 message when the filename is empty.
12280 (init_history): Compare history_filename against nullptr, and only
12281 read history if the filename is not empty.
12282 (set_history_filename): Add header comment, and only make
12283 non-empty filenames absolute.
12284 (init_main): Make the filename argument to 'set history filename'
12285 optional.
12286
81b86b97
CB
122872020-03-02 Christian Biesinger <cbiesinger@google.com>
12288
12289 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12290 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12291 (fetch_fp_register): Update.
12292 (fetch_fp_regs): Update.
12293 (store_fp_register): Update.
12294 (store_fp_regs): Update.
12295 (arm_netbsd_nat_target::read_description): New function.
12296 (fetch_elfcore_registers): Update.
12297
24ed6739
AB
122982020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12299
12300 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12301 general_thread if the stop reply is missing a thread-id.
12302 (remote_target::process_stop_reply): Use the first non-exited
12303 thread if the target didn't pass a thread-id.
12304 * infrun.c (do_target_wait): Move call to
12305 switch_to_inferior_no_thread to ....
12306 (do_target_wait_1): ... here.
12307
a84bb2a0
JT
123082020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12309
12310 * debuginfod-support.c: Include defs.h first.
12311
658dadf0
TV
123122020-02-28 Tom de Vries <tdevries@suse.de>
12313
12314 * symfile.c (set_initial_language): Use default language for lookup.
12315
4ebe4877
SM
123162020-02-28 Simon Marchi <simon.marchi@efficios.com>
12317
12318 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12319 reader variable, pass `this` to read_cutu_die_from_dwo.
12320
e5da1139
AM
123212020-02-27 Aaron Merey <amerey@redhat.com>
12322
12323 * source.c (open_source_file): Check for nullptr when computing
12324 srcpath.
12325
317f7127
TT
123262020-02-27 Tom Tromey <tromey@adacore.com>
12327
12328 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12329 member.
12330 (dwarf2_add_field): Don't update nfields.
12331 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12332
3104d9ee
AB
123332020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12334
12335 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12336 abs.
12337
b83470bf
TT
123382020-02-26 Tom Tromey <tom@tromey.com>
12339
12340 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12341 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12342 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12343 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12344 per_cu_data.
12345
edfe0a0c
TT
123462020-02-26 Tom Tromey <tom@tromey.com>
12347
12348 * dwarf2/index-write.c (psym_index_map): Change type.
12349 (add_address_entry_worker, write_one_signatured_type)
12350 (recursively_count_psymbols, recursively_write_psymbols)
12351 (class debug_names, psyms_seen_size, write_gdbindex)
12352 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12353
0d79cdc4
AM
123542020-02-26 Aaron Merey <amerey@redhat.com>
12355
12356 * Makefile.in: Handle optional debuginfod support.
12357 * NEWS: Update.
12358 * README: Add --with-debuginfod summary.
12359 * config.in: Regenerate.
12360 * configure: Regenerate.
12361 * configure.ac: Handle optional debuginfod support.
12362 * debuginfod-support.c: debuginfod helper functions.
12363 * debuginfod-support.h: Ditto.
12364 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12365 summary.
12366 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12367 when a dwz file cannot be found.
12368 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12369 debuginfo file cannot be found.
12370 * source.c (open_source_file): Query debuginfod servers when a
12371 source file cannot be found.
12372 * top.c (print_gdb_configuration): Include
12373 --{with,without}-debuginfod in the output.
12374
b65ce565
JG
123752020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12376
12377 * thread.c (thr_try_catch_cmd): Print thread name.
12378
d4c9a4f8
SM
123792020-02-26 Simon Marchi <simon.marchi@efficios.com>
12380
12381 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12382 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12383 dwarf2_fetch_die_type_sect_off): Move to...
12384 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12385 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12386 dwarf2_fetch_die_type_sect_off): ... here.
12387 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12388 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12389 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12390
0dce4280
TV
123912020-02-26 Tom de Vries <tdevries@suse.de>
12392
12393 PR gdb/25603
12394 * symfile.c (set_initial_language): Exit-early if
12395 language_mode == language_mode_manual.
12396
450a1bfc
SM
123972020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12398
12399 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12400 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12401 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12402
9e80cfa1
AB
124032020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12404
12405 * gdbtypes.c (create_array_type_with_stride): Handle negative
12406 array strides.
12407 * valarith.c (value_subscripted_rvalue): Likewise.
12408
09624f1f
LM
124092020-02-25 Luis Machado <luis.machado@linaro.org>
12410
12411 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12412
8cb5117c
SM
124132020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12414
12415 * loc.h (dwarf2_get_die_type): Move to...
12416 * read.h (dwarf2_get_die_type): ... here.
12417 * read.c (dwarf2_get_die_type): Move doc to header.
12418
c325c44e
JB
124192020-02-25 Joel Brobecker <brobecker@adacore.com>
12420
12421 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12422 'gnulib/Makefile.in' to the list.
12423
4ac93832
TT
124242020-02-24 Tom Tromey <tom@tromey.com>
12425
12426 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12427 Remove.
12428 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12429 XOBNEWVEC.
12430
197400e8
TT
124312020-02-24 Tom Tromey <tom@tromey.com>
12432
12433 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12434 New method.
12435 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12436 (dw2_do_instantiate_symtab, dw2_get_file_names)
12437 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12438
76935768
TT
124392020-02-24 Tom Tromey <tom@tromey.com>
12440
12441 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12442 make_scoped_restore.
12443 (dwarf2_psymtab::read_symtab): Don't clear
12444 reading_partial_symbols.
12445
a88ef40d
TV
124462020-02-24 Tom de Vries <tdevries@suse.de>
12447
12448 PR gdb/25592
12449 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12450
c9af6521
TV
124512020-02-24 Tom de Vries <tdevries@suse.de>
12452
12453 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12454 commands layout next/prev/regs.
12455
5707a07a
TT
124562020-02-22 Tom Tromey <tom@tromey.com>
12457
12458 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12459 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12460
3b0fb49e
TT
124612020-02-22 Tom Tromey <tom@tromey.com>
12462
12463 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12464
283be8bf
TT
124652020-02-22 Tom Tromey <tom@tromey.com>
12466
12467 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12468 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12469 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12470 * tui/tui.c (_initialize_tui): Add usage text.
12471
ca793b96
TT
124722020-02-22 Tom Tromey <tom@tromey.com>
12473
12474 * tui/tui-win.c (tui_set_focus_command)
12475 (tui_set_win_height_command): Use error_no_arg.
12476 (_initialize_tui_win): Update help text.
12477 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12478
432b5c40
TT
124792020-02-22 Tom Tromey <tom@tromey.com>
12480
12481 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12482 * tui/tui-disasm.h (struct tui_disasm_window)
12483 <display_start_addr>: Declare.
12484 * tui/tui-source.h (struct tui_source_window)
12485 <display_start_addr>: Declare.
12486 * tui/tui-winsource.h (struct tui_source_window_base)
12487 <show_source_line, display_start_addr>: New methods.
12488 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12489 Rename and move to protected section.
12490 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12491 (tui_source_window_base::do_erase_source_content): Update.
12492 (tui_source_window_base::show_source_line): Now a method.
12493 (tui_source_window_base::show_source_content)
12494 (tui_source_window_base::tui_source_window_base)
12495 (tui_source_window_base::rerender)
12496 (tui_source_window_base::refill)
12497 (tui_source_window_base::do_scroll_horizontal)
12498 (tui_source_window_base::set_is_exec_point_at)
12499 (tui_source_window_base::update_breakpoint_info)
12500 (tui_source_window_base::update_exec_info): Update.
12501 * tui/tui-source.c (tui_source_window::set_contents)
12502 (tui_source_window::showing_source_p)
12503 (tui_source_window::do_scroll_vertical)
12504 (tui_source_window::location_matches_p)
12505 (tui_source_window::line_is_displayed): Update.
12506 (tui_source_window::display_start_addr): New method.
12507 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12508 (tui_disasm_window::do_scroll_vertical)
12509 (tui_disasm_window::location_matches_p): Update.
12510 (tui_disasm_window::display_start_addr): New method.
12511
01b1af32
TT
125122020-02-22 Tom Tromey <tom@tromey.com>
12513
12514 * NEWS: Add entry for gdb.register_window_type.
12515 * tui/tui-layout.h (window_factory): New typedef.
12516 (tui_register_window): Declare.
12517 * tui/tui-layout.c (saved_tui_windows): New global.
12518 (tui_apply_current_layout): Use it.
12519 (tui_register_window): New function.
12520 * python/python.c (do_start_initialization): Call
12521 gdbpy_initialize_tui.
12522 (python_GdbMethods): Add "register_window_type" function.
12523 * python/python-internal.h (gdbpy_register_tui_window)
12524 (gdbpy_initialize_tui): Declare.
12525 * python/py-tui.c: New file.
12526 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12527
fc96d20b
TT
125282020-02-22 Tom Tromey <tom@tromey.com>
12529
12530 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12531
935c78c0
TT
125322020-02-22 Tom Tromey <tom@tromey.com>
12533
12534 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12535 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12536 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12537 (tui_set_win_focus_to): Move from tui-win.c.
12538
0240c8f1
TT
125392020-02-22 Tom Tromey <tom@tromey.com>
12540
12541 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12542 functions.
12543 (known_window_types): New global.
12544 (tui_get_window_by_name): Reimplement.
12545 (initialize_known_windows): New function.
12546 (validate_window_name): Rewrite.
12547 (_initialize_tui_layout): Call initialize_known_windows.
12548
fdb01f0c
TT
125492020-02-22 Tom Tromey <tom@tromey.com>
12550
12551 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12552 Remove constants.
12553 * tui/tui-winsource.h (struct tui_source_window_base)
12554 <tui_source_window_base>: Remove parameter.
12555 * tui/tui-winsource.c
12556 (tui_source_window_base::tui_source_window_base): Remove
12557 parameter.
12558 (tui_source_window_base::refill): Update.
12559 * tui/tui-stack.h (struct tui_locator_window)
12560 <tui_locator_window>: Update.
12561 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12562 Default the constructor.
12563 * tui/tui-regs.h (struct tui_data_item_window)
12564 <tui_data_item_window>: Default the constructor.
12565 (struct tui_data_window) <tui_data_window>: Likewise.
12566 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12567 Default the constructor.
12568 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12569 Default the constructor.
12570 <type>: Remove.
12571 (struct tui_win_info) <tui_win_info>: Default the constructor.
12572 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12573 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12574 Default the constructor.
12575
865a5aec
TT
125762020-02-22 Tom Tromey <tom@tromey.com>
12577
12578 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12579 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12580 * tui/tui-win.c (tui_resize_all): Don't call
12581 tui_delete_invisible_windows.
12582 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12583 done.
12584 (tui_set_layout): Update.
12585 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12586 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12587 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12588
e098d18c
TT
125892020-02-22 Tom Tromey <tom@tromey.com>
12590
12591 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12592 correctly.
12593
eb9c8874
TT
125942020-02-22 Tom Tromey <tom@tromey.com>
12595
12596 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12597
7eed1a8e
TT
125982020-02-22 Tom Tromey <tom@tromey.com>
12599
12600 * tui/tui-winsource.h (struct tui_source_window_iterator)
12601 <inner_iterator>: New etytypedef.
12602 <tui_source_window_iterator>: Take "end" parameter.
12603 <tui_source_window_iterator>: Take iterator.
12604 <operator*, advance>: Update.
12605 <m_iter>: Change type.
12606 <m_end>: New field.
12607 (struct tui_source_windows) <begin, end>: Update.
12608 * tui/tui-layout.c (tui_windows): New global.
12609 (tui_apply_current_layout): Clear tui_windows.
12610 (tui_layout_window::apply): Update tui_windows.
12611 * tui/tui-data.h (tui_windows): Declare.
12612 (all_tui_windows): Now inline function.
12613 (class tui_window_iterator, struct all_tui_windows): Remove.
12614
7c043ba6
TT
126152020-02-22 Tom Tromey <tom@tromey.com>
12616
12617 PR tui/17850:
12618 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12619 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12620 "height" argument.
12621 (class tui_layout_window) <get_sizes>: Likewise.
12622 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12623 argument.
12624 <get_sizes>: Add "height" argument.
12625 <m_vertical>: New field.
12626 * tui/tui-layout.c (tui_layout_split::clone): Update.
12627 (tui_layout_split::get_sizes): Add "height" argument.
12628 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12629 (tui_new_layout_command): Parse "-horizontal".
12630 (_initialize_tui_layout): Update help string.
12631 (tui_layout_split::specification): Add "-horizontal" when needed.
12632 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12633 argument.
12634 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12635 New methods.
12636
6bc56648
TT
126372020-02-22 Tom Tromey <tom@tromey.com>
12638
12639 * tui/tui-layout.h (enum tui_adjust_result): New.
12640 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12641 (class tui_layout_window) <adjust_size>: Return
12642 tui_adjust_result. Rewrite.
12643 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12644 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12645
c22fef7e
TT
126462020-02-22 Tom Tromey <tom@tromey.com>
12647
12648 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12649 parameter and return types.
12650 (class tui_layout_base) <specification>: Add "depth".
12651 (class tui_layout_window) <specification>: Add "depth".
12652 (class tui_layout_split) <specification>: Add "depth".
12653 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12654 and return types.
12655 (tui_new_layout_command): Parse sub-layouts.
12656 (_initialize_tui_layout): Update help string.
12657 (tui_layout_window::specification): Add "depth".
12658 (add_layout_command): Update.
12659
ee325b61
TT
126602020-02-22 Tom Tromey <tom@tromey.com>
12661
12662 * NEWS: Add "tui new-layout" item.
12663 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12664 Add new-layout command to help text.
12665 (validate_window_name): New function.
12666 (tui_new_layout_command): New function.
12667 (_initialize_tui_layout): Register "new-layout".
12668 (tui_layout_window::specification): New method.
12669 (tui_layout_window::specification): New method.
12670 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12671 method.
12672 (class tui_layout_window) <specification>: New method.
12673 (class tui_layout_split) <specification>: New method.
12674
416eb92d
TT
126752020-02-22 Tom Tromey <tom@tromey.com>
12676
12677 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12678 * tui/tui-win.c (window_name_completer): Update comment.
12679 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12680 Declare method.
12681 (class tui_layout_window) <replace_window>: Likewise.
12682 (class tui_layout_split) <replace_window>: Likewise.
12683 (tui_set_layout): Don't declare.
12684 (tui_set_initial_layout): Declare function.
12685 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12686 (asm_regs_layout): New globals.
12687 (tui_current_layout, show_layout): Remove.
12688 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12689 (find_layout, tui_apply_layout): New function.
12690 (layout_completer): Remove.
12691 (tui_next_layout): Reimplement.
12692 (tui_next_layout_command): New function.
12693 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12694 (tui_regs_layout): Reimplement.
12695 (tui_regs_layout_command): New function.
12696 (extract_display_start_addr): Rewrite.
12697 (next_layout, prev_layout): Remove.
12698 (tui_layout_window::replace_window): New method.
12699 (tui_layout_split::replace_window): New method.
12700 (destroy_layout): New function.
12701 (layout_list): New global.
12702 (add_layout_command): New function.
12703 (initialize_layouts): Update.
12704 (tui_layout_command): New function.
12705 (_initialize_tui_layout): Install "layout" commands.
12706 * tui/tui-data.h (enum tui_layout_type): Remove.
12707 (tui_current_layout): Don't declare.
12708
0dbc2fc7
TT
127092020-02-22 Tom Tromey <tom@tromey.com>
12710
12711 * tui/tui-regs.c (tui_reg_layout): Remove.
12712 (tui_reg_command): Use tui_regs_layout.
12713 * tui/tui-layout.h (tui_reg_command): Declare.
12714 * tui/tui-layout.c (tui_reg_command): New function.
12715
5afe342e
TT
127162020-02-22 Tom Tromey <tom@tromey.com>
12717
12718 * tui/tui.c (tui_rl_delete_other_windows): Call
12719 tui_remove_some_windows.
12720 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12721 Declare method.
12722 (class tui_layout_window) <remove_windows>: New method.
12723 (class tui_layout_split) <remove_windows>: Declare.
12724 (tui_remove_some_windows): Declare.
12725 * tui/tui-layout.c (tui_remove_some_windows): New function.
12726 (tui_layout_split::remove_windows): New method.
12727
427326a8
TT
127282020-02-22 Tom Tromey <tom@tromey.com>
12729
12730 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12731 * tui/tui-layout.h (tui_next_layout): Declare.
12732 * tui/tui-layout.c (tui_next_layout): New function.
12733
3fe12b6d
TT
127342020-02-22 Tom Tromey <tom@tromey.com>
12735
12736 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12737 correct coordinates.
12738
59b8b5d2
TT
127392020-02-22 Tom Tromey <tom@tromey.com>
12740
12741 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12742 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12743 DATA_WIN case.
12744
2a3d458b
TT
127452020-02-22 Tom Tromey <tom@tromey.com>
12746
12747 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12748 TUI_DISASM_WIN, not tui_win_list.
12749
3f0cbb04
TT
127502020-02-22 Tom Tromey <tom@tromey.com>
12751
12752 * valprint.c (generic_val_print_enum_1)
12753 (val_print_type_code_flags): Style member names.
12754 * rust-lang.c (val_print_struct, rust_print_enum)
12755 (rust_print_struct_def, rust_internal_print_type): Style member
12756 names.
12757 * p-valprint.c (pascal_object_print_value_fields): Style member
12758 names. Only call fprintf_symbol_filtered for static members.
12759 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12760 * f-valprint.c (f_val_print): Style member names.
12761 * f-typeprint.c (f_type_print_base): Style member names.
12762 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12763 call fprintf_symbol_filtered for static members.
12764 (cp_print_class_member): Style member names.
12765 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12766 member names.
12767 * ada-valprint.c (ada_print_scalar): Style enum names.
12768 (ada_val_print_enum): Likewise.
12769 * ada-typeprint.c (print_enum_type): Style enum names.
12770
d4d947ae
TT
127712020-02-21 Tom Tromey <tom@tromey.com>
12772
12773 * psympriv.h (struct partial_symtab): Update comment.
12774
e94e944b
TT
127752020-02-21 Tom Tromey <tromey@adacore.com>
12776
12777 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12778 type is CORE_ADDR.
12779
1eb73179
TV
127802020-02-21 Tom de Vries <tdevries@suse.de>
12781
12782 PR gdb/25534
12783 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12784 if dependencies[i]->user != NULL.
12785
4f180d53
AT
127862020-02-21 Ali Tamur <tamur@google.com>
12787
12788 * dwarf2/read.c (dwarf2_name): Add null check.
12789
22b6cd70
TT
127902020-02-20 Tom Tromey <tom@tromey.com>
12791
12792 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12793 ">=", in binary search.
12794 (dwarf2_find_containing_comp_unit): New overload.
12795 (run_test): New self-test.
12796 (_initialize_dwarf2_read): Register new test.
12797
bd0cf5a6
NC
127982020-02-20 Nelson Chu <nelson.chu@sifive.com>
12799
12800 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12801 * riscv-tdep.h: Likewise.
12802 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12803 rv32-only CSR.
12804 * features/riscv/64bit-csr.xml: Regenerated.
12805
3f702acd
SDJ
128062020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12807 Tom Tromey <tom@tromey.com>
12808
12809 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12810 of 'fputc_unfiltered'.
12811 (putchar_unfiltered): Call 'fputc_unfiltered'.
12812 (fputc_unfiltered): Call 'fputs_unfiltered'.
12813
d13c7322
AB
128142020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12815
12816 * config.in: Regenerate.
12817 * configure: Regenerate.
12818 * configure.ac: Add --with-python-libdir option.
12819 * main.c: Use WITH_PYTHON_LIBDIR.
12820
869d8950
TT
128212020-02-19 Tom Tromey <tom@tromey.com>
12822
12823 * symtab.c (general_symbol_info::compute_and_set_names): Use
12824 obstack_strndup. Simplify call to symbol_set_demangled_name.
12825
298e9637
SM
128262020-02-19 Simon Marchi <simon.marchi@efficios.com>
12827
12828 * dwarf2/read.c (allocate_signatured_type_table,
12829 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12830 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12831 Remove objfile parameter, update all callers.
12832
08410482
DE
128332020-02-19 Doug Evans <dje@google.com>
12834
12835 PR rust/25535
12836 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12837 rust_enum_variant calculation.
12838
dfdeeca1
TT
128392020-02-19 Tom Tromey <tromey@adacore.com>
12840
12841 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12842
2ef5453b
TT
128432020-02-19 Tom Tromey <tromey@adacore.com>
12844
12845 * ada-lang.c (cache_symbol): Use obstack_strdup.
12846
9f1528a1
AB
128472020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12848
12849 * configure: Regenerate.
12850
d3c22fa8
TT
128512020-02-19 Tom Tromey <tromey@adacore.com>
12852
12853 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12854 NULL check.
12855
bf84f706
MR
128562020-02-19 Maciej W. Rozycki <macro@wdc.com>
12857
12858 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12859
d1c9b20f
AB
128602020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12861
12862 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12863 if GDBSERVER is not defined.
12864 (riscv_tdesc_cache): Likewise, also store const target_desc.
12865 (STATIC_IN_GDB): Define.
12866 (riscv_create_target_description): Update declaration with
12867 STATIC_IN_GDB.
12868 (riscv_lookup_target_description): New function, only define if
12869 GDBSERVER is not defined.
12870 * arch/riscv.h (riscv_create_target_description): Declare only
12871 when GDBSERVER is defined.
12872 (riscv_lookup_target_description): New declaration when GDBSERVER
12873 is not defined.
12874 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12875 (riscv_linux_read_features): ...this, and return
12876 riscv_gdbarch_features instead of target_desc.
12877 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12878 (riscv_linux_read_description): Rename to...
12879 (riscv_linux_read_features): ...this.
12880 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12881 Update to use riscv_gdbarch_features and
12882 riscv_lookup_target_description.
12883 * riscv-tdep.c (riscv_find_default_target_description): Use
12884 riscv_lookup_target_description instead of
12885 riscv_create_target_description.
12886
373d7ac0
SM
128872020-02-18 Simon Marchi <simon.marchi@efficios.com>
12888
12889 * valprint.c (generic_val_print_enum_1): When printing a flag
12890 enum with value 0 and there is no enumerator with value 0, print
12891 just "0" instead of "(unknown: 0x0)".
12892
b29a2df0
SM
128932020-02-18 Simon Marchi <simon.marchi@efficios.com>
12894
12895 * valprint.c (generic_val_print_enum_1): Print unknown part of
12896 flag enum in hex.
12897
6740f0cc
SM
128982020-02-18 Simon Marchi <simon.marchi@efficios.com>
12899
12900 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12901 flag enums to contain duplicate enumerators.
12902 * valprint.c (generic_val_print_enum_1): Update comment.
12903
edd45eb0
SM
129042020-02-18 Simon Marchi <simon.marchi@efficios.com>
12905
12906 * dwarf2/read.c: Include "count-one-bits.h".
12907 (update_enumeration_type_from_children): If an enumerator has
12908 multiple bits set, don't treat the enumeration as a "flag enum".
12909 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12910 of flag enums have 0 or 1 bit set.
12911
6d0cf446
BE
129122020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12913
12914 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12915 conversion.
12916 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12917 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12918 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12919 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12920 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12921
7001c1b7
SM
129222020-02-18 Simon Marchi <simon.marchi@efficios.com>
12923
12924 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12925
fdb61c6c
SM
129262020-02-14 Simon Marchi <simon.marchi@efficios.com>
12927
12928 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12929 displaced_step_closure_up.
12930 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12931 (struct displaced_step_closure_up):
12932 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12933 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12934 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12935 Likewise.
12936 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12937 * gdbarch.c, gdbarch.h: Re-generate.
12938 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12939 displaced_step_closure_up.
12940 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12941 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12942 * infrun.h (displaced_step_closure_up): New type alias.
12943 (struct displaced_step_inferior_state) <step_closure>: Change
12944 type to displaced_step_closure_up.
12945 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12946 displaced_step_closure_up.
12947 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12948
a4a38eb4
TT
129492020-02-14 Tom Tromey <tom@tromey.com>
12950
12951 * minidebug.c (gnu_debug_key): New global.
12952 (find_separate_debug_file_in_section): Use it.
12953
e8217e61
SM
129542020-02-14 Simon Marchi <simon.marchi@efficios.com>
12955
12956 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12957 std::unique_ptr.
12958 * gdbarch.c: Re-generate.
12959 * gdbarch.h: Re-generate.
12960 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12961 change.
12962 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12963 type to std::unique_ptr.
12964 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12965 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12966 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12967 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12968 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12969 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12970 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12971 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12972 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12973
d8d83535
SM
129742020-02-14 Simon Marchi <simon.marchi@efficios.com>
12975
12976 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12977 std::unique_ptr.
12978 (displaced_step_clear): Rename to...
12979 (displaced_step_reset): ... this. Just call displaced->reset ().
12980 (displaced_step_clear_cleanup): Rename to...
12981 (displaced_step_reset_cleanup): ... this.
12982 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12983 (displaced_step_fixup): Likewise.
12984 (resume_1): Likewise.
12985 (handle_inferior_event): Restore child's memory before calling
12986 displaced_step_fixup on the parent.
12987 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12988 to std::unique_ptr.
12989 <step_closure>: Change type to std::unique_ptr.
12990
5f661e03
SM
129912020-02-14 Simon Marchi <simon.marchi@efficios.com>
12992
12993 * arm-tdep.c: Include count-one-bits.h.
12994 (cleanup_block_store_pc): Use count_one_bits.
12995 (cleanup_block_load_pc): Use count_one_bits.
12996 (arm_copy_block_xfer): Use count_one_bits.
12997 (thumb2_copy_block_xfer): Use count_one_bits.
12998 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12999 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13000 (thumb_get_next_pcs_raw): Use count_one_bits.
13001 (arm_get_next_pcs_raw): Use count_one_bits_l.
13002 * arch/arm.c (bitcount): Remove.
13003 * arch/arm.h (bitcount): Remove.
13004
8084e579
TT
130052020-02-14 Tom Tromey <tromey@adacore.com>
13006
13007 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13008 Update.
13009 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13010 * dwarf2/loc.c (call_site_find_chain_1): Return
13011 unique_xmalloc_ptr.
13012 (call_site_find_chain): Likewise.
13013
258bf0ee
RB
130142020-02-14 Richard Biener <rguenther@suse.de>
13015
13016 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13017 on expression with division operators.
13018
f98a8458
AKS
130192020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13020
13021 * MAINTAINERS (Write After Approval): Adding myself.
13022
d1437c0e
TT
130232020-02-12 Tom Tromey <tom@tromey.com>
13024
13025 * event-loop.c (event_data, gdb_event, event_handler_func):
13026 Remove.
13027
3d4560f7
TT
130282020-02-12 Tom Tromey <tom@tromey.com>
13029
13030 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13031 (dwarf2_frame_objfile_data): Add comment.
13032 (find_comp_unit, set_comp_unit): New functions.
13033 (dwarf2_frame_find_fde): Use find_comp_unit.
13034 (dwarf2_build_frame_info): Use set_comp_unit.
13035
21982304
TT
130362020-02-12 Tom Tromey <tom@tromey.com>
13037
13038 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13039 (comp_unit): Don't initialize objfile.
13040 (execute_cfa_program): Add text_offset parameter.
13041 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13042 (dwarf2_frame_cache): Update.
13043 (dwarf2_build_frame_info): Don't set "objfile" member.
13044
4debb237
TT
130452020-02-12 Tom Tromey <tom@tromey.com>
13046
13047 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13048 (decode_frame_entry): Likewise.
13049 (dwarf2_build_frame_info): Update.
13050
0d404d44
TT
130512020-02-12 Tom Tromey <tom@tromey.com>
13052
13053 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13054 (decode_frame_entry_1): Use the comp_unit obstack.
13055
a7a3ae5c
TT
130562020-02-12 Tom Tromey <tom@tromey.com>
13057
13058 * dwarf2/frame.c (struct comp_unit): Add initializers and
13059 constructor.
13060 (dwarf2_frame_objfile_data): Store a comp_unit.
13061 (dwarf2_frame_find_fde): Update.
13062 (dwarf2_build_frame_info): Use "new".
13063
a9d65418
TT
130642020-02-12 Tom Tromey <tom@tromey.com>
13065
13066 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13067 (dwarf2_fde_table): Typedef for std::vector.
13068 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13069 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13070 (decode_frame_entry): Update.
13071 (dwarf2_build_frame_info): Use "new".
13072
7559c217
CB
130732020-02-12 Christian Biesinger <cbiesinger@google.com>
13074
13075 * arm-tdep.c (arm_gdbarch_init): Update.
13076 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13077 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13078 have_neon, is_m>: Change to bool.
13079
aeefc73c
CB
130802020-02-12 Christian Biesinger <cbiesinger@google.com>
13081
13082 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13083
d27b8e5f
TT
130842020-02-12 Tom Tromey <tom@tromey.com>
13085
13086 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13087
cd5900f3
HD
130882020-02-12 Hannes Domani <ssbssa@yahoo.de>
13089
13090 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13091 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13092
f056b22b
TT
130932020-02-11 Tom Tromey <tom@tromey.com>
13094
13095 * psymtab.h: Update comment.
13096
f92ff6b5
TT
130972020-02-11 Tom Tromey <tom@tromey.com>
13098
13099 * gdb_obstack.h (struct auto_obstack): Use
13100 DISABLE_COPY_AND_ASSIGN.
13101
3fd6912b
TT
131022020-02-11 Tom Tromey <tom@tromey.com>
13103
13104 * dwarf2/frame.h (struct objfile): Don't forward declare.
13105
69ed9b74
CB
131062020-02-11 Christian Biesinger <cbiesinger@google.com>
13107
13108 * cris-tdep.c (cris_supply_gregset): Change signature to match
13109 what struct regset expects.
13110 (cris_regset): New struct.
13111 (fetch_core_registers): Remove.
13112 (cris_iterate_over_regset_sections): New function.
13113 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13114 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13115
bda874f6
CB
131162020-02-11 Christian Biesinger <cbiesinger@google.com>
13117
13118 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13119 registers.
13120
754e1564
CB
131212020-02-11 Christian Biesinger <cbiesinger@google.com>
13122
13123 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13124
8ddd8e0e
SM
131252020-02-11 Simon Marchi <simon.marchi@efficios.com>
13126
13127 * configure: Re-generate.
13128
898e7f60
SM
131292020-02-11 Simon Marchi <simon.marchi@efficios.com>
13130
13131 * configure: Re-generate.
13132
58df732b
SM
131332020-02-11 Simon Marchi <simon.marchi@efficios.com>
13134
13135 * acinclude: Update warning.m4 path.
13136 * warning.m4: Move to gdbsupport.
13137
da5bd37e
TT
131382020-02-11 Tom Tromey <tromey@adacore.com>
13139
13140 * remote.c (remote_console_output): Update.
13141 * printcmd.c (printf_command): Update.
13142 * event-loop.c (gdb_wait_for_event): Update.
13143 * linux-nat.c (sigchld_handler): Update.
13144 * remote-sim.c (gdb_os_write_stdout): Update.
13145 (gdb_os_flush_stdout): Update.
13146 (gdb_os_flush_stderr): Update.
13147 (gdb_os_write_stderr): Update.
13148 * exceptions.c (print_exception): Update.
13149 * remote-fileio.c (remote_fileio_func_read): Update.
13150 (remote_fileio_func_write): Update.
13151 * tui/tui.c (tui_enable): Update.
13152 * tui/tui-interp.c (tui_interp::init): Update.
13153 * utils.c (init_page_info): Update.
13154 (putchar_unfiltered, fputc_unfiltered): Update.
13155 (gdb_flush): Update.
13156 (emit_style_escape): Update.
13157 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13158 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13159 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13160 (stderr_file::write): Update.
13161 (stderr_file::puts): Update.
13162 * ui-file.h (ui_file_isatty, ui_file_write)
13163 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13164 (ui_file_puts): Don't declare.
13165
85f0dd3c
TV
131662020-02-10 Tom de Vries <tdevries@suse.de>
13167
13168 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13169 sentinel to char *.
13170
2e927613
TV
131712020-02-09 Tom de Vries <tdevries@suse.de>
13172
13173 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13174 filename if it matches "<artificial>".
13175
6bafc845
HD
131762020-02-09 Hannes Domani <ssbssa@yahoo.de>
13177
13178 * windows-tdep.c (struct enum_value_name): New struct.
13179 (create_enum): New function.
13180 (windows_get_siginfo_type): Create and use enum types.
13181
7928d571
HD
131822020-02-09 Hannes Domani <ssbssa@yahoo.de>
13183
13184 * NEWS: Mention $_siginfo support for Windows.
13185 * windows-nat.c (handle_exception): Set siginfo_er.
13186 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13187 (windows_xfer_siginfo): New function.
13188 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13189 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13190 (init_windows_gdbarch_data): New function.
13191 (get_windows_gdbarch_data): New function.
13192 (windows_get_siginfo_type): New function.
13193 (windows_init_abi): Register windows_get_siginfo_type.
13194 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13195
6751ebae
TT
131962020-02-08 Tom Tromey <tom@tromey.com>
13197
13198 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13199 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13200 <keep>: Declare method.
13201 <m_keep>: Remove member.
13202 <~cutu_reader>: Remove.
13203 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13204 (cutu_reader::cutu_reader): Update.
13205 (cutu_reader::keep): Rename from ~cutu_reader.
13206 (process_psymtab_comp_unit, build_type_psymtabs_1)
13207 (process_skeletonless_type_unit, load_partial_comp_unit)
13208 (load_full_comp_unit, dwarf2_read_addr_index)
13209 (read_signatured_type): Update.
13210
135f5437
TT
132112020-02-08 Tom Tromey <tom@tromey.com>
13212
13213 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13214 "want_partial_unit" parameter.
13215 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13216 Inline check for DW_TAG_partial_unit.
13217 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13218
9f66ff1c
TT
132192020-02-08 Tom Tromey <tom@tromey.com>
13220
13221 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13222 read.c.
13223 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13224 read.c.
13225
c8a7a66f
TT
132262020-02-08 Tom Tromey <tom@tromey.com>
13227
13228 * dwarf2/read.c (read_address): Move to comp-unit.c.
13229 (dwarf2_rnglists_process, dwarf2_ranges_process)
13230 (read_attribute_value, dwarf_decode_lines_1)
13231 (var_decode_location, decode_locdesc): Update.
13232 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13233 read.c. Remove "cu" parameter.
13234 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13235 method.
13236
8266302d
TT
132372020-02-08 Tom Tromey <tom@tromey.com>
13238
13239 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13240 (read_indirect_line_string): Update.
13241 * dwarf2/comp-unit.c (read_offset): Remove.
13242 (read_comp_unit_head): Update.
13243 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13244 method.
13245 (read_offset): Don't declare.
13246
4057dfde
TT
132472020-02-08 Tom Tromey <tom@tromey.com>
13248
13249 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13250 * dwarf2/read.c (struct comp_unit_head): Move to
13251 dwarf2/comp-unit.h.
13252 (enum class rcuh_kind): Move to comp-unit.h.
13253 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13254 (read_comp_unit_head, error_check_comp_unit_head)
13255 (read_and_check_comp_unit_head): Move to comp-unit.c.
13256 (read_offset, dwarf_unit_type_name): Likewise.
13257 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13258 (cutu_reader::cutu_reader, read_call_site_scope)
13259 (find_partial_die, follow_die_offset): Update.
13260 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13261
24aa364d
TT
132622020-02-08 Tom Tromey <tom@tromey.com>
13263
13264 * dwarf2/read.c (read_offset_1): Move to leb.c.
13265 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13266 (dwarf_decode_macro_bytes): Update.
13267 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13268 * dwarf2/leb.h (read_offset): Declare.
13269
2c7d5afc
TT
132702020-02-08 Tom Tromey <tom@tromey.com>
13271
13272 * dwarf2/read.c (dwarf2_section_size): Remove.
13273 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13274 Update.
13275 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13276
4075cb26
TT
132772020-02-08 Tom Tromey <tom@tromey.com>
13278
13279 * dwarf2/read.c (read_initial_length): Move to leb.c.
13280 * dwarf2/leb.h (read_initial_length): Declare.
13281 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13282 handle_nonstd parameter.
13283 * dwarf2/frame.c (read_initial_length): Remove.
13284 (decode_frame_entry_1): Update.
13285
09ba997f
TT
132862020-02-08 Tom Tromey <tom@tromey.com>
13287
13288 * dwarf2/loc.c (dwarf2_find_location_expression)
13289 (dwarf_evaluate_loc_desc::get_tls_address)
13290 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13291 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13292 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13293 (dwarf2_compile_property_to_c)
13294 (dwarf2_loc_desc_get_symbol_read_needs)
13295 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13296 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13297 (loclist_describe_location, loclist_tracepoint_var_ref)
13298 (loclist_generate_c_location): Update.
13299 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13300 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13301 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13302 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13303 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13304 (dwarf2_per_cu_data::addr_size)
13305 (dwarf2_per_cu_data::ref_addr_size)
13306 (dwarf2_per_cu_data::text_offset)
13307 (dwarf2_per_cu_data::addr_type): Now methods.
13308 (per_cu_header_read_in): Make per_cu "const".
13309 (dwarf2_version): Remove.
13310 (dwarf2_per_cu_data::int_type): Now a method.
13311 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13312 (set_die_type, read_array_type, read_subrange_index_type)
13313 (read_tag_string_type, read_subrange_type): Update.
13314 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13315 offset_size, ref_addr_size, text_offset, addr_type, version,
13316 objfile, int_type, addr_sized_int_type>: Declare methods.
13317
96c738c0
TT
133182020-02-08 Tom Tromey <tom@tromey.com>
13319
13320 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13321 Move earlier.
13322
8fdd972c
TT
133232020-02-08 Tom Tromey <tom@tromey.com>
13324
13325 * dwarf2/read.h (dwarf_line_debug): Declare.
13326 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13327 * dwarf2/read.c: Move line_header code to new files.
13328 (dwarf_line_debug): No longer static.
13329 * dwarf2/line-header.c: New file.
13330 * dwarf2/line-header.h: New file.
13331
03075812
TT
133322020-02-08 Tom Tromey <tom@tromey.com>
13333
13334 * dwarf2/read.c (struct line_header) <file_full_name,
13335 file_file_name>: Return unique_xmalloc_ptr.
13336 (line_header::file_file_name): Update.
13337 (line_header::file_full_name): Update.
13338 (dw2_get_file_names_reader): Update.
13339 (macro_start_file): Update.
13340
bb822404
TT
133412020-02-08 Tom Tromey <tom@tromey.com>
13342
13343 * dwarf2/read.c (struct line_header) <file_full_name,
13344 file_file_name>: Declare methods.
13345 (dw2_get_file_names_reader): Update.
13346 (file_file_name): Now a method.
13347 (file_full_name): Likewise.
13348 (macro_start_file): Update.
13349
009b64fc
TT
133502020-02-08 Tom Tromey <tom@tromey.com>
13351
13352 * dwarf2/read.c (dwarf_always_disassemble)
13353 (show_dwarf_always_disassemble): Move to loc.c.
13354 (_initialize_dwarf2_read): Move "always-disassemble" registration
13355 to loc.c.
13356 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13357 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13358 static.
13359 (show_dwarf_always_disassemble): Move from read.c.
13360 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13361
5895093f
TT
133622020-02-08 Tom Tromey <tom@tromey.com>
13363
13364 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13365 (create_quick_file_names_table): Return htab_up.
13366 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13367 Update.
13368 * dwarf2/read.h (struct dwarf2_per_objfile)
13369 <quick_file_names_table>: Now htab_up.
13370
b3b32279
TT
133712020-02-08 Tom Tromey <tom@tromey.com>
13372
13373 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13374
1d33d811
TT
133752020-02-08 Tom Tromey <tom@tromey.com>
13376
13377 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13378 Rewrite.
13379 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13380 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13381 (abbrev_table::abbrev_table): No longer inline.
13382 (ABBREV_HASH_SIZE): Remove.
13383 (abbrev_table::m_abbrevs): Now an htab_up.
13384
86de1d91
TT
133852020-02-08 Tom Tromey <tom@tromey.com>
13386
13387 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13388 (cutu_reader): Update.
13389 (build_type_psymtabs_1): Update.
13390 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13391 (abbrev_table::alloc_abbrev): Update.
13392 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13393 (abbrev_table::read): New static method, renamed from
13394 abbrev_table_read_table.
13395 (abbrev_table::alloc_abbrev)
13396 (abbrev_table::add_abbrev): Now private.
13397 (abbrev_table::abbrev_table): Now private.
13398 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13399
0335378b
TT
134002020-02-08 Tom Tromey <tom@tromey.com>
13401
13402 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13403 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13404 htab_up.
13405
48b490f2
TT
134062020-02-08 Tom Tromey <tom@tromey.com>
13407
13408 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13409 htab_up.
13410 (lookup_dwo_unit_in_dwp): Update.
13411 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13412 on obstack.
13413
bc68fb19
TT
134142020-02-08 Tom Tromey <tom@tromey.com>
13415
13416 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13417 obstack.
13418
d15acc42
TT
134192020-02-08 Tom Tromey <tom@tromey.com>
13420
13421 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13422 line_header_hash.
13423 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13424 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13425 Change type to htab_up.
13426
eaa5fa8b
TT
134272020-02-08 Tom Tromey <tom@tromey.com>
13428
13429 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13430 htab_up. Don't allocate on obstack.
13431 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13432 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13433 Change type to htab_up.
13434
b0b6a987
TT
134352020-02-08 Tom Tromey <tom@tromey.com>
13436
13437 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13438 Change type to htab_up.
13439 * dwarf2/read.c (create_signatured_type_table_from_index)
13440 (create_signatured_type_table_from_debug_names)
13441 (create_all_type_units, add_type_unit)
13442 (lookup_dwo_signatured_type, lookup_signatured_type)
13443 (process_skeletonless_type_unit): Update.
13444 (create_debug_type_hash_table, create_debug_types_hash_table):
13445 Change type of types_htab.
13446 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13447 htab_up. Don't allocate on obstack.
13448 (create_cus_hash_table): Change type of cus_htab parameter.
13449 (struct dwo_file) <cus, tus>: Now htab_up.
13450 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13451 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13452 (queue_and_load_all_dwo_tus): Update.
13453 * dwarf2/index-write.c (write_gdbindex): Update.
13454 (write_debug_names): Update.
13455
39856def
TT
134562020-02-08 Tom Tromey <tom@tromey.com>
13457
13458 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13459 dwarf2/read.c. Remove "next" member. Add constructor ntad
13460 destructor.
13461 (struct dwarf2_per_objfile) <queue>: New member.
13462 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13463 dwarf2/read.h.
13464 (dwarf2_queue, dwarf2_queue_tail): Remove.
13465 (class dwarf2_queue_guard): Add parameter to constructor. Use
13466 DISABLE_COPY_AND_ASSIGN.
13467 <m_per_objfile>: New member.
13468 <~dwarf2_queue_guard>: Rewrite.
13469 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13470 Update.
13471 (~dwarf2_queue_item): New.
13472
3e225074
TT
134732020-02-08 Tom Tromey <tom@tromey.com>
13474
13475 * dwarf2/read.c (struct die_info) <has_children>: New member.
13476 (dw2_get_file_names_reader): Remove has_children.
13477 (dw2_get_file_names): Update.
13478 (read_cutu_die_from_dwo): Remove has_children.
13479 (cutu_reader::init_tu_and_read_dwo_dies)
13480 (cutu_reader::cutu_reader): Update.
13481 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13482 Remove has_children.
13483 (build_type_psymtabs_1, process_skeletonless_type_unit)
13484 (load_partial_comp_unit, load_full_comp_unit): Update.
13485 (create_dwo_cu_reader): Remove has_children.
13486 (create_cus_hash_table, read_die_and_children): Update.
13487 (read_full_die_1,read_full_die): Remove has_children.
13488 (read_signatured_type): Update.
13489 (class cutu_reader) <has_children>: Remove.
13490
82ca8957
TT
134912020-02-08 Tom Tromey <tom@tromey.com>
13492
13493 * dwarf2/expr.c: Rename from dwarf2expr.c.
13494 * dwarf2/expr.h: Rename from dwarf2expr.h.
13495 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13496 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13497 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13498 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13499 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13500 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13501 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13502 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13503 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13504 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13505 * dwarf2/loc.c: Rename from dwarf2loc.c.
13506 * dwarf2/loc.h: Rename from dwarf2loc.h.
13507 * dwarf2/read.c: Rename from dwarf2read.c.
13508 * dwarf2/read.h: Rename from dwarf2read.h.
13509 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13510 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13511 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13512 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13513 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13514 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13515 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13516 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13517 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13518 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13519 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13520 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13521 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13522 Update.
13523 * Makefile.in (COMMON_SFILES): Update.
13524 (HFILES_NO_SRCDIR): Update.
13525
9e35d499
TT
135262020-02-08 Tom Tromey <tom@tromey.com>
13527
13528 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13529 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13530
1eba2311
TT
135312020-02-08 Tom Tromey <tom@tromey.com>
13532
13533 * dwarf2read.h (struct die_info): Don't declare.
13534
e41c2da2
TT
135352020-02-08 Tom Tromey <tom@tromey.com>
13536
13537 * dwarf2read.h (die_info_ptr): Remove typedef.
13538
4fc6c0d5
TT
135392020-02-08 Tom Tromey <tom@tromey.com>
13540
13541 * dwarf2read.c (read_call_site_scope)
13542 (handle_data_member_location, dwarf2_add_member_fn)
13543 (mark_common_block_symbol_computed, read_common_block)
13544 (attr_to_dynamic_prop, partial_die_info::read)
13545 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13546 (dwarf2_symbol_mark_computed, set_die_type): Update.
13547 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13548 method.
13549 (attr_form_is_block): Don't declare.
13550 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13551
cd6c91b4
TT
135522020-02-08 Tom Tromey <tom@tromey.com>
13553
13554 * dwarf2read.c (dwarf2_find_base_address, )
13555 (read_call_site_scope, rust_containing_type)
13556 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13557 (handle_data_member_location, dwarf2_add_member_fn)
13558 (get_alignment, read_structure_type, process_structure_scope)
13559 (mark_common_block_symbol_computed, read_common_block)
13560 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13561 (partial_die_info::read, read_attribute_value, new_symbol)
13562 (lookup_die_type, dwarf2_get_ref_die_offset)
13563 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13564 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13565 (dwarf2_symbol_mark_computed): Update.
13566 * dwarf2/attribute.h (struct attribute) <value_as_address,
13567 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13568 methods.
13569 (value_as_address, attr_form_is_section_offset)
13570 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13571 * dwarf2/attribute.c (attribute::value_as_address)
13572 (attribute::form_is_section_offset, attribute::form_is_constant)
13573 (attribute::form_is_ref): Now methods.
13574
162dce55
TT
135752020-02-08 Tom Tromey <tom@tromey.com>
13576
13577 * dwarf2read.c (struct attribute, DW_STRING)
13578 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13579 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13580 (attr_form_is_block, attr_form_is_section_offset)
13581 (attr_form_is_constant, attr_form_is_ref): Move.
13582 * dwarf2/attribute.h: New file.
13583 * dwarf2/attribute.c: New file, from dwarf2read.c.
13584 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13585
3054dd54
TT
135862020-02-08 Tom Tromey <tom@tromey.com>
13587
13588 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13589 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13590 Move.
13591 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13592 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13593 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13594 abbrev.c.
13595 * dwarf2/abbrev.h: New file.
13596 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13597 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13598
96b79293
TT
135992020-02-08 Tom Tromey <tom@tromey.com>
13600
13601 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13602 (dwarf2_section_size, dwarf2_get_section_info)
13603 (create_signatured_type_table_from_debug_names)
13604 (create_addrmap_from_aranges, read_debug_names_from_section)
13605 (get_gdb_index_contents_from_section, read_comp_unit_head)
13606 (error_check_comp_unit_head, read_abbrev_offset)
13607 (create_debug_type_hash_table, init_cu_die_reader)
13608 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13609 (read_comp_units_from_section, create_cus_hash_table)
13610 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13611 (create_dwp_v2_section, dwarf2_rnglists_process)
13612 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13613 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13614 (read_indirect_string_from_dwz, read_addr_index_1)
13615 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13616 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13617 (fill_in_loclist_baton): Update.
13618 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13619 get_containing_section, get_bfd_owner, get_bfd_section,
13620 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13621 (dwarf2_read_section, get_section_name, get_section_file_name)
13622 (get_containing_section, get_section_bfd_owner)
13623 (get_section_bfd_section, get_section_name, get_section_file_name)
13624 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13625 declare.
13626 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13627 (dwarf2_section_info::get_bfd_owner)
13628 (dwarf2_section_info::get_bfd_section)
13629 (dwarf2_section_info::get_name)
13630 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13631 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13632 (dwarf2_section_info::read): Now methods.
13633 * dwarf-index-write.c (class debug_names): Update.
13634
2c86cff9
TT
136352020-02-08 Tom Tromey <tom@tromey.com>
13636
13637 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13638 Move to dwarf2/section.h.
13639 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13640 (get_section_bfd_section, get_section_name)
13641 (get_section_file_name, get_section_id, get_section_flags)
13642 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13643 dwarf2/section.c.
13644 * dwarf2/section.h: New file.
13645 * dwarf2/section.c: New file, from dwarf2read.c.
13646 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13647
f4382c45
TT
136482020-02-08 Tom Tromey <tom@tromey.com>
13649
13650 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13651 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13652 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13653 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13654 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13655 * dwarf2/leb.h: New file, from dwarf2read.c.
13656 * dwarf2/leb.c: New file, from dwarf2read.c.
13657 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13658 Remove.
13659 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13660 (COMMON_SFILES): Add dwarf2/leb.c.
13661
01840b7a
JB
136622020-02-08 Joel Brobecker <brobecker@adacore.com>
13663
13664 GDB 9.1 released.
13665
dfcb27e4
IB
136662020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13667
13668 PR gdb/25190:
aac66a4c
SM
13669 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13670 * gdb/remote.c (remote_console_output): Update.
13671 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13672 (ui_file_puts): ...this.
13673 * gdb/ui-file.h (ui_file_puts): Add declaration.
13674 * gdb/utils.c (emit_style_escape): Update.
13675 (flush_wrap_buffer): Update.
13676 (fputs_maybe_filtered): Update.
13677 (fputs_unfiltered): Add function.
dfcb27e4 13678
faa17681
IB
136792020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13680
aac66a4c
SM
13681 * gdb/event-loop.c (gdb_wait_for_event): Update.
13682 * gdb/printcmd.c (printf_command): Update.
13683 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13684 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13685 (gdb_os_flush_stderr): Update.
13686 * gdb/remote.c (remote_console_output): Update.
13687 * gdb/ui-file.c (gdb_flush): Rename to...
13688 (ui_file_flush): ...this.
13689 (stderr_file::write): Update.
13690 (stderr_file::puts): Update.
13691 * gdb/ui-file.h (gdb_flush): Rename to...
13692 (ui_file_flush): ...this.
13693 * gdb/utils.c (gdb_flush): Add function.
13694 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13695
5abbbe1d
TT
136962020-02-07 Tom Tromey <tromey@adacore.com>
13697
13698 PR breakpoints/24915:
13699 * source.c (find_and_open_source): Do not check basenames_may_differ.
13700
919adfe8
TT
137012020-02-07 Tom Tromey <tom@tromey.com>
13702
13703 * README: Update gdbserver documentation.
13704 * gdbserver: Move to top level.
13705 * configure.tgt (build_gdbserver): Remove.
13706 * configure.ac: Remove --enable-gdbserver.
13707 * configure: Rebuild.
13708 * Makefile.in (distclean): Don't mention gdbserver.
13709
1d5d29e7
SV
137102020-02-06 Shahab Vahedi <shahab@synopsys.com>
13711
13712 * source-cache.c (source_cache::ensure): Surround
13713 get_plain_source_lines with a try/catch.
13714 (source_cache::get_line_charpos): Get rid of try/catch
13715 and only check for the return value of "ensure".
13716 * tui/tui-source.c (tui_source_window::set_contents):
13717 Simplify "nlines" calculation.
13718
6eb1129c
SV
137192020-02-06 Shahab Vahedi <shahab@synopsys.com>
13720
13721 * MAINTAINERS (Write After Approval): Add myself.
13722
c6a42d11
CB
137232020-02-05 Christian Biesinger <cbiesinger@google.com>
13724
13725 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13726 function call.
13727
c8ecdda6
CB
137282020-02-05 Christian Biesinger <cbiesinger@google.com>
13729
13730 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13731
f6480e70
MR
137322020-02-05 Maciej W. Rozycki <macro@wdc.com>
13733
13734 * nat/riscv-linux-tdesc.h: New file.
13735 * nat/riscv-linux-tdesc.c: New file, taking code from...
13736 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13737 ... here.
13738 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13739 NATDEPFILES.
13740
dcc9fbc6
AB
137412020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13742
13743 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13744 we don't set the fake simulator ptid to the null_ptid.
13745
719546c4
SM
137462020-02-03 Simon Marchi <simon.marchi@efficios.com>
13747
13748 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13749 * gdbthread.h (class thread_info) <resumed>: Likewise.
13750 * infrun.c (resume_1): Likewise.
13751 (proceed): Likewise.
13752 (infrun_thread_stop_requested): Likewise.
13753 (stop_all_threads): Likewise.
13754 (handle_inferior_event): Likewise.
13755 (restart_threads): Likewise.
13756 (finish_step_over): Likewise.
13757 (keep_going_stepped_thread): Likewise.
13758 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13759 (linux_handle_extended_wait): Likewise.
13760 * record-btrace.c (get_thread_current_frame_id): Likewise.
13761 * record-full.c (record_full_wait_1): Likewise.
13762 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13763 * target.c (target_resume): Likewise.
13764 * thread.c (set_running_thread): Likewise.
13765
e409c542
AKS
137662020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13767
13768 * f-valprint.c (f77_print_array_1): Changed datatype of index
13769 variable to LONGEST from int to enable it to contain bound
13770 values correctly.
13771
ee98c0da
MR
137722020-02-03 Maciej W. Rozycki <macro@wdc.com>
13773
13774 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13775 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13776 offsets according to FLEN determined.
13777 (riscv_linux_nat_target::read_description): Determine FLEN
13778 dynamically.
13779 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13780 according to FLEN determined.
13781 (riscv_linux_nat_target::store_registers): Likewise.
13782
aa66aac4
SV
137832020-02-01 Shahab Vahedi <shahab@synopsys.com>
13784
13785 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13786 when reg->group is empty and reggroup is not.
13787
fd9faca8
TT
137882020-01-31 Tom Tromey <tromey@adacore.com>
13789
13790 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13791 Call beneath target's mourn_inferior after unpushing.
13792
42330a68
AB
137932020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13794
13795 PR tui/9765
13796 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13797 have enough lines to fill the screen, still return the lowest
13798 address we found.
13799
7a27a45b
AB
138002020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13801
13802 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13803 '-', '<', and '>' commands.
13804
c47f70e2
PA
138052020-01-29 Pedro Alves <palves@redhat.com>
13806 Sergio Durigan Junior <sergiodj@redhat.com>
13807
13808 * infcmd.c (construct_inferior_arguments): Assert that
13809 'argc' is greater than 0.
13810
5133a315
LM
138112020-01-29 Luis Machado <luis.machado@linaro.org>
13812
13813 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13814 (BRK_INSN_MASK): Define to 0xd4200000.
13815 (aarch64_program_breakpoint_here_p): New function.
13816 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13817 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13818 breakpoint.c.
13819 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13820 breakpoint.h
13821 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13822 call gdbarch_program_breakpoint_here_p.
13823 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13824 default_program_breakpoint_here_p, changed return type to bool and
13825 simplified.
13826 * breakpoint.h (program_breakpoint_here): Moved prototype to
13827 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13828 return type to bool.
13829 * gdbarch.c: Regenerate.
13830 * gdbarch.h: Regenerate.
13831 * gdbarch.sh (program_breakpoint_here_p): New method.
13832 * infrun.c (handle_signal_stop): Call
13833 gdbarch_program_breakpoint_here_p.
13834
168f8c6b
TT
138352020-01-26 Tom Tromey <tom@tromey.com>
13836
13837 * ctfread.c (struct ctf_fp_info): Reindent.
13838 (_initialize_ctfread): Remove.
13839
128a391f
TT
138402020-01-26 Tom Tromey <tom@tromey.com>
13841
13842 * psymtab.c (partial_map_expand_apply)
13843 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13844 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13845 (psym_print_stats, psym_expand_symtabs_for_function)
13846 (psym_map_symbol_filenames, psym_map_matching_symbols)
13847 (psym_expand_symtabs_matching)
13848 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13849 (maintenance_check_psymtabs): Use new methods.
13850 * psympriv.h (struct partial_symtab) <readin_p,
13851 get_compunit_symtab>: New methods.
13852 <readin, compunit_symtab>: Remove members.
13853 (struct standard_psymtab): New.
13854 (struct legacy_psymtab): Derive from standard_psymtab.
13855 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13856 standard_psymtab.
13857 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13858
0494dbec
TT
138592020-01-26 Tom Tromey <tom@tromey.com>
13860
13861 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13862 read_dependencies. Add assert.
13863 * psymtab.c (partial_symtab::read_dependencies): New method.
13864 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13865 method.
13866 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13867 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13868 read_dependencies.
13869 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13870 Add assert.
13871
8566b89b
TT
138722020-01-26 Tom Tromey <tom@tromey.com>
13873
13874 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13875 Call expand_psymtab.
13876 (xcoff_read_symtab): Call expand_psymtab.
13877 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13878 legacy_expand_psymtab.
13879 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13880 method.
13881 (struct legacy_psymtab) <expand_psymtab>: Implement.
13882 <legacy_expand_psymtab>: New member.
13883 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13884 (parse_partial_symbols): Set legacy_expand_psymtab.
13885 (psymtab_to_symtab_1): Change argument order. Call
13886 expand_psymtab.
13887 (new_psymtab): Set legacy_expand_psymtab.
13888 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13889 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13890 expand_psymtab.
13891 (dwarf2_psymtab::expand_psymtab): Rename from
13892 psymtab_to_symtab_1. Call expand_psymtab.
13893 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13894 (dbx_end_psymtab): Likewise.
13895 (dbx_psymtab_to_symtab_1): Change argument order. Call
13896 expand_psymtab.
13897 (dbx_read_symtab): Call expand_psymtab.
13898 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13899 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13900 (ctf_psymtab::read_symtab): Call expand_psymtab.
13901
077cbab2
TT
139022020-01-26 Tom Tromey <tom@tromey.com>
13903
13904 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13905 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13906 messages.
13907 * mdebugread.c (mdebug_read_symtab): Remove prints.
13908 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13909 assert.
13910 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13911
891813be
TT
139122020-01-26 Tom Tromey <tom@tromey.com>
13913
13914 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13915 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13916 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13917 legacy_symtab.
13918 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13919 * psymtab.c (psymtab_to_symtab): Call method.
13920 (dump_psymtab): Update.
13921 * psympriv.h (struct partial_symtab): Add virtual destructor.
13922 <read_symtab>: New method.
13923 (struct legacy_symtab): New.
13924 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13925 (struct pst_map) <pst>: Now a legacy_psymtab.
13926 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13927 (new_psymtab): Use legacy_psymtab.
13928 * dwarf2read.h (struct dwarf2_psymtab): New.
13929 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13930 * dwarf2read.c (dwarf2_create_include_psymtab)
13931 (dwarf2_build_include_psymtabs, create_type_unit_group)
13932 (create_partial_symtab, process_psymtab_comp_unit_reader)
13933 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13934 (set_partial_user): Use dwarf2_psymtab.
13935 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13936 (psymtab_to_symtab_1, process_full_comp_unit)
13937 (process_full_type_unit, dwarf2_ranges_read)
13938 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13939 (dwarf_decode_lines): Use dwarf2_psymtab.
13940 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13941 (add_address_entry_worker, write_one_signatured_type)
13942 (recursively_count_psymbols, recursively_write_psymbols)
13943 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13944 (write_debug_names): Likewise.
13945 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13946 <pst>: Now a legacy_psymtab.
13947 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13948 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13949 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13950 * ctfread.c (struct ctf_psymtab): New.
13951 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13952 ctf_psymtab.
13953 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13954 (create_partial_symtab): Return a ctf_psymtab.
13955 (scan_partial_symbols): Update.
13956
c3693a1d
TT
139572020-01-26 Tom Tromey <tom@tromey.com>
13958
13959 * xcoffread.c (xcoff_start_psymtab): Use new.
13960 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13961 renamed from start_psymtab_common.
13962 * psympriv.h (struct partial_symtab): Add new constructor.
13963 (start_psymtab_common): Don't declare.
13964 * mdebugread.c (parse_partial_symbols): Use new.
13965 * dwarf2read.c (create_partial_symtab): Use new.
13966 * dbxread.c (start_psymtab): Use new.
13967 * ctfread.c (create_partial_symtab): Use new.
13968
32caafd0
TT
139692020-01-26 Tom Tromey <tom@tromey.com>
13970
13971 * xcoffread.c (xcoff_end_psymtab): Use new.
13972 * psymtab.c (start_psymtab_common): Use new.
13973 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13974 Update.
13975 * psympriv.h (struct partial_symtab): Add parameters to
13976 constructor. Don't inline.
13977 (allocate_psymtab): Don't declare.
13978 * mdebugread.c (new_psymtab): Use new.
13979 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13980 * dbxread.c (dbx_end_psymtab): Use new.
13981
abaa2f23
TT
139822020-01-26 Tom Tromey <tom@tromey.com>
13983
13984 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13985 allocate_psymtab. Update documentation.
13986 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13987 allocate_psymtab. Do not use new.
13988 (allocate_psymtab): Use new. Update.
13989
6d94535f
TT
139902020-01-26 Tom Tromey <tom@tromey.com>
13991
13992 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13993 * psymtab.c (psym_print_stats): Update.
13994 * psympriv.h (struct partial_symtab) <readin,
13995 psymtabs_addrmap_supported, anonymous>: Now bool.
13996 * mdebugread.c (psymtab_to_symtab_1): Update.
13997 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13998 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13999 (process_full_comp_unit, process_full_type_unit): Update.
14000 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14001 * ctfread.c (psymtab_to_symtab): Update.
14002
6f17252b
TT
140032020-01-26 Tom Tromey <tom@tromey.com>
14004
14005 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14006 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14007 * psymtab.c (psymtab_storage): Delete psymtabs.
14008 (psymtab_storage::allocate_psymtab): Use new.
14009 (psymtab_storage::discard_psymtab): Use delete.
14010 * psympriv.h (struct partial_symtab): Add constructor and
14011 initializers.
14012
f6f1cebc
TT
140132020-01-26 Tom Tromey <tom@tromey.com>
14014
14015 * machoread.c: Do not include psympriv.h.
14016
e47e48f6
PW
140172020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14018
14019 * NEWS: Mention the new option and the set/show commands.
14020
a2fedca9
PW
140212020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14022
14023 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14024 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14025 (validate_exec_file): New variables, enums, functions.
14026 (exec_file_locate_attach, print_section_info): Style the filenames.
14027 (_initialize_exec): Install show_exec_file_mismatch_command and
14028 set_exec_file_mismatch_command.
14029 * gdbcore.h (validate_exec_file): Declare.
14030 * infcmd.c (attach_command): Call validate_exec_file.
14031 * remote.c ( remote_target::remote_add_inferior): Likewise.
14032
7ffa82e1
AB
140332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14034
14035 * frame.c (find_frame_sal): Move call to get_next_frame into more
14036 inner scope.
14037 * inline-frame.c (inilne_state) <inline_state>: Update argument
14038 types.
14039 (inilne_state) <skipped_symbol>: Rename to...
14040 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14041 (skip_inline_frames): Build vector of skipped symbols and use this
14042 to reate the inline_state.
14043 (inline_skipped_symbol): Add a comment and some assertions, fetch
14044 skipped symbol from the list.
14045
3d92a3e3
AB
140462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14047
14048 * buildsym.c (lte_is_less_than): Delete.
14049 (buildsym_compunit::end_symtab_with_blockvector): Create local
14050 lambda function to sort line table entries, and use
14051 std::stable_sort instead of std::sort.
14052 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14053 markers when looking for a previous line.
14054
94a72be7
AB
140552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14056
14057 * dwarf2read.c (lnp_state_machine::record_line): Include
14058 end_sequence parameter in debug print out. Record the line if we
14059 are at an end_sequence marker even if it's not the start of a
14060 statement.
14061 * symmisc.c (maintenance_print_one_line_table): Print end of
14062 sequence markers with 'END' not '0'.
14063
53af73bf
PA
140642020-01-24 Pedro Alves <palves@redhat.com>
14065
14066 PR gdb/25410
14067 * thread.c (scoped_restore_current_thread::restore): Use
14068 switch_to_inferior_no_thread.
14069 * exec.c: Include "progspace-and-thread.h".
14070 (add_target_sections, remove_target_sections):
14071 scoped_restore_current_pspace_and_thread instead of
14072 scoped_restore_current_thread.
14073 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14074 and aspace to the inferior before calling clone_program_space.
14075 Remove stale comment.
14076
3050c6f4
CB
140772020-01-24 Christian Biesinger <cbiesinger@google.com>
14078
14079 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14080 (arm_netbsd_nat_target::fetch_registers): ...this.
14081 (arm_nbsd_nat_target::store_registers): Rename to...
14082 (arm_netbsd_nat_target::store_registers): ...this.
14083
73685c7e
CB
140842020-01-24 Christian Biesinger <cbiesinger@google.com>
14085
14086 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14087 register_t.
14088
89203d40
CB
140892020-01-24 Christian Biesinger <cbiesinger@google.com>
14090
14091 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14092 Update comment.
14093 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14094 Likewise.
14095 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14096 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14097 the correct replacement (iterate_over_regset_sections).
14098 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14099 Update comment.
14100
1ba1ac88
AB
141012020-01-24 Graham Markall <graham.markall@embecosm.com>
14102
14103 PR gdb/23718
14104 * gdb/python/python.c (execute_gdb_command): Call
14105 async_enable_stdin in catch block.
14106
f3364a6d
AB
141072020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14108
14109 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14110 SWITCH_THRU_ALL_UIS.
14111
733d0a67
AB
141122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14113
14114 PR tui/9765
14115 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14116 comment, add extra parameter, and update to store previous symbol
14117 when appropriate.
14118 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14119 add extra parameter.
14120 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14121 remove unneeded parameter, add try/catch around gdb_print_insn,
14122 rewrite to add items to asm_lines vector.
14123 (tui_find_backward_disassembly_start_address): New function.
14124 (tui_find_disassembly_address): Updated throughout.
14125 (tui_disasm_window::set_contents): Update for changes to
14126 tui_disassemble.
14127 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14128 number of lines to scroll.
14129
b3b3bada
SM
141302020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14131
14132 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14133 (SECT_OFF_DATA): Likewise.
14134 (SECT_OFF_RODATA): Likewise.
14135 (SECT_OFF_TEXT): Likewise.
14136 (SECT_OFF_BSS): Likewise.
14137 (struct objfile) <text_section_offset, data_section_offset>: New
14138 methods.
14139 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14140 objfile::text_section_offset.
14141 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14142 * coffread.c (coff_symtab_read): Likewise.
14143 (enter_linenos): Likewise.
14144 (process_coff_symbol): Likewise.
14145 * ctfread.c (get_objfile_text_range): Likewise.
14146 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14147 Use objfile::data_section_offset.
14148 * dwarf2-frame.c (execute_cfa_program): Use
14149 objfile::text_section_offset.
14150 (dwarf2_frame_find_fde): Likewise.
14151 * dwarf2read.c (create_addrmap_from_index): Likewise.
14152 (create_addrmap_from_aranges): Likewise.
14153 (dw2_find_pc_sect_compunit_symtab): Likewise.
14154 (process_psymtab_comp_unit_reader): Likewise.
14155 (add_partial_symbol): Likewise.
14156 (add_partial_subprogram): Likewise.
14157 (process_full_comp_unit): Likewise.
14158 (read_file_scope): Likewise.
14159 (read_func_scope): Likewise.
14160 (read_lexical_block_scope): Likewise.
14161 (read_call_site_scope): Likewise.
14162 (dwarf2_rnglists_process): Likewise.
14163 (dwarf2_ranges_process): Likewise.
14164 (dwarf2_ranges_read): Likewise.
14165 (dwarf_decode_lines_1): Likewise.
14166 (new_symbol): Likewise.
14167 (dwarf2_fetch_die_loc_sect_off): Likewise.
14168 (dwarf2_per_cu_text_offset): Likewise.
14169 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14170 * hppa-tdep.c (read_unwind_info): Likewise.
14171 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14172 * psympriv.h (struct partial_symtab): Likewise.
14173 * psymtab.c (find_pc_sect_psymtab): Likewise.
14174 * solib-svr4.c (enable_break): Likewise.
14175 * stap-probe.c (relocate_address): Use
14176 objfile::data_section_offset.
14177 * xcoffread.c (enter_line_range): Use
14178 objfile::text_section_offset.
14179 (read_xcoff_symtab): Likewise.
14180
ab53f382
SM
141812020-01-23 Simon Marchi <simon.marchi@efficios.com>
14182
14183 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14184 declaration to narrower scopes.
14185
e7eee665
SM
141862020-01-23 Simon Marchi <simon.marchi@efficios.com>
14187
14188 * darwin-nat.h (struct darwin_exception_msg, enum
14189 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14190 Move up.
14191 (class darwin_nat_target) <wait_1, check_new_threads,
14192 decode_exception_message, decode_message, stop_inferior,
14193 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14194 * darwin-nat.c (darwin_check_new_threads): Rename to...
14195 (darwin_nat_target::check_new_threads): ... this.
14196 (darwin_suspend_inferior_it): Remove.
14197 (darwin_decode_exception_message): Rename to...
14198 (darwin_nat_target::decode_exception_message): ... this.
14199 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14200 (darwin_decode_message): Rename to...
14201 (darwin_nat_target::decode_message): ... this.
14202 (cancel_breakpoint): Rename to...
14203 (darwin_nat_target::cancel_breakpoint): ... this.
14204 (darwin_wait): Rename to...
14205 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14206 instead of iterate_over_inferiors.
14207 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14208 (darwin_stop_inferior): Rename to...
14209 (darwin_nat_target::stop_inferior): ... this.
14210 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14211 (darwin_init_thread_list): Rename to...
14212 (darwin_nat_target::init_thread_list): ... this.
14213 (darwin_ptrace_him): Rename to...
14214 (darwin_nat_target::ptrace_him): ... this.
14215 (darwin_nat_target::create_inferior): Pass lambda function to
14216 fork_inferior.
14217 (darwin_nat_target::detach): Call stop_inferior instead of
14218 darwin_stop_inferior.
14219 * fork-inferior.h (fork_inferior): Change init_trace_fun
14220 parameter to gdb::function_view.
14221 * fork-inferior.c (fork_inferior): Likewise.
14222
c162ed3e
HD
142232020-01-23 Hannes Domani <ssbssa@yahoo.de>
14224
14225 * i386-cygwin-tdep.c (core_process_module_section): Update.
14226 * windows-nat.c (struct lm_info_windows): Add text_offset.
14227 (windows_xfer_shared_libraries): Update.
14228 * windows-tdep.c (windows_xfer_shared_library):
14229 Add text_offset_cached argument.
14230 * windows-tdep.h (windows_xfer_shared_library): Update.
14231
a1237872
SM
142322020-01-21 Simon Marchi <simon.marchi@efficios.com>
14233
14234 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14235
b3ee6dd9
SM
142362020-01-21 Simon Marchi <simon.marchi@efficios.com>
14237
14238 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14239 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14240 replace with range-based for.
14241 (gdbsim_interrupt_inferior): Remove.
14242 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14243 with a range-based for. Inline code from
14244 gdbsim_interrupt_inferior.
14245
f9fac3c8
SM
142462020-01-21 Simon Marchi <simon.marchi@efficios.com>
14247
14248 * infrun.c (proceed): Fix indentation.
14249
f6474de9
TT
142502020-01-21 Tom Tromey <tromey@adacore.com>
14251
14252 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14253 * python/python.c (python_extension_ops): Update.
14254 (gdbpy_colorize): New function.
14255 * python/lib/gdb/__init__.py (colorize): New function.
14256 * extension.h (ext_lang_colorize): Declare.
14257 * extension.c (ext_lang_colorize): New function.
14258 * extension-priv.h (struct extension_language_ops) <colorize>: New
14259 member.
14260 * cli/cli-style.c (_initialize_cli_style): Update help text.
14261
f0c702d4
LM
142622020-01-21 Luis Machado <luis.machado@linaro.org>
14263
14264 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14265 <cond>: Change type to bool.
14266 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14267 (aarch64_displaced_step_cb): Likewise.
14268 (aarch64_displaced_step_tb): Likewise.
14269
1ab139e5
LM
142702020-01-21 Luis Machado <luis.machado@linaro.org>
14271
14272 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14273 output.
14274
0c271889
LM
142752020-01-21 Luis Machado <luis.machado@linaro.org>
14276
14277 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14278 <pc_adjust>: Adjust the documentation.
14279 (aarch64_displaced_step_fixup): Check if PC really moved before
14280 adjusting it.
14281
4d89c1c7
TT
142822020-01-19 Tom Tromey <tom@tromey.com>
14283
14284 * disasm.c (~gdb_disassembler): New destructor.
14285 (gdb_buffered_insn_length): Call disassemble_free_target.
14286 * disasm.h (class gdb_disassembler): Declare destructor. Use
14287 DISABLE_COPY_AND_ASSIGN.
14288
c0ab21c2
TT
142892020-01-19 Tom Tromey <tom@tromey.com>
14290
14291 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14292 (die_reader_func_ftype): Remove.
14293 (cutu_reader): New class.
14294 (dw2_get_file_names_reader): Remove "data" parameter.
14295 (dw2_get_file_names): Use cutu_reader.
14296 (create_debug_type_hash_table): Update.
14297 (read_cutu_die_from_dwo): Update comment.
14298 (lookup_dwo_unit): Add dwo_name parameter.
14299 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14300 die_reader_func_ftype and data parameters.
14301 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14302 Remove die_reader_func_ftype and data parameters.
14303 (~cutu_reader): New; from init_cutu_and_read_dies.
14304 (cutu_reader::cutu_reader): Rename from
14305 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14306 and data parameters.
14307 (init_cutu_and_read_dies_simple): Remove.
14308 (struct process_psymtab_comp_unit_data): Remove.
14309 (process_psymtab_comp_unit_reader): Remove data parameter; add
14310 want_partial_unit and pretend_language parameters.
14311 (process_psymtab_comp_unit): Use cutu_reader.
14312 (build_type_psymtabs_reader): Remove data parameter.
14313 (build_type_psymtabs_1): Use cutu_reader.
14314 (process_skeletonless_type_unit): Likewise.
14315 (load_partial_comp_unit_reader): Remove.
14316 (load_partial_comp_unit): Use cutu_reader.
14317 (load_full_comp_unit_reader): Remove.
14318 (load_full_comp_unit): Use cutu_reader.
14319 (struct create_dwo_cu_data): Remove.
14320 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14321 dwo_unit parameters.
14322 (create_cus_hash_table): Use cutu_reader.
14323 (struct dwarf2_read_addr_index_data): Remove.
14324 (dwarf2_read_addr_index_reader): Remove.
14325 (dwarf2_read_addr_index): Use cutu_reader.
14326 (read_signatured_type_reader): Remove.
14327 (read_signatured_type): Use cutu_reader.
14328
45bbae5c
TT
143292020-01-19 Tom Tromey <tom@tromey.com>
14330
14331 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14332 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14333 (tui_wrefresh): Declare.
14334 * tui/tui-wingeneral.c (suppress_output): New global.
14335 (tui_suppress_output, ~tui_suppress_output): New constructor and
14336 destructor.
14337 (tui_wrefresh): New function.
14338 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14339 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14340 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14341 method.
14342 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14343 tui_wrefresh.
14344 (tui_data_window::no_refresh): New method.
14345 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14346 (tui_reg_command): Use tui_suppress_output
14347 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14348 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14349 method.
14350 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14351
4f13c1c0
TT
143522020-01-19 Tom Tromey <tom@tromey.com>
14353
14354 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14355 Handle case where symtab is null.
14356
fa47e446
SM
143572020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14358
14359 * linux-fork.c (one_fork_p): Simplify.
14360
26f42329
SM
143612020-01-17 Simon Marchi <simon.marchi@efficios.com>
14362
14363 * top.c (struct qt_args): Remove.
14364 (kill_or_detach): Change return type to void, replace `void *`
14365 parameter with a proper one.
14366 (print_inferior_quit_action): Likewise.
14367 (quit_confirm): Use range-based for loop to iterate over inferiors.
14368 (quit_force): Likewise.
14369
a9ac81b1
SM
143702020-01-17 Simon Marchi <simon.marchi@efficios.com>
14371
14372 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14373 `void *` parameter with proper parameters.
14374 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14375 (print_one_inferior): Change return type to void, replace `void *`
14376 parameter with proper parameters.
14377 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14378 inferiors.
14379 (get_other_inferior): Remove.
14380 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14381 inferiors.
14382
788eca49
SM
143832020-01-17 Simon Marchi <simon.marchi@efficios.com>
14384
14385 * mi/mi-interp.c (report_initial_inferior): Remove.
14386 (mi_interp::init): Use range-based for to iterate over inferiors.
14387
d9bc85b6
SM
143882020-01-17 Simon Marchi <simon.marchi@efficios.com>
14389
14390 * python/py-inferior.c (build_inferior_list): Remove.
14391 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14392
40c94099
CB
143932020-01-16 Christian Biesinger <cbiesinger@google.com>
14394
14395 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14396 (btrace_stitch_trace): Likewise.
14397 * charset.c (intermediate_encoding): Likewise (vaild).
14398 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14399 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14400 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14401
e0cdfe3c
HD
144022020-01-16 Hannes Domani <ssbssa@yahoo.de>
14403
14404 * windows-tdep.c (windows_get_tlb_type):
14405 Add rtl_user_process_parameters type.
14406
790f1718 144072020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14408 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14409
14410 PR build/24805
14411 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14412 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14413 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14414 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14415 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14416 (ps_plog): Redeclare exported functions with default visibility.
14417
3112ed97
NA
144182020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14419
14420 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14421 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14422
8dc3273e
SM
144232020-01-15 Simon Marchi <simon.marchi@efficios.com>
14424
14425 * infcmd.c (post_create_inferior): Use get_thread_regcache
14426 instead of get_current_regcache.
14427
ff47f4f0
TT
144282020-01-14 Tom Tromey <tom@tromey.com>
14429
14430 PR symtab/12535:
14431 * python/python.c (gdbpy_decode_line): Treat empty string the same
14432 as no argument.
14433
975f45b7
TT
144342020-01-14 Tom Tromey <tom@tromey.com>
14435
14436 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14437
25e57356
TT
144382020-01-14 Tom Tromey <tom@tromey.com>
14439
14440 * nat/linux-btrace.c: Don't include <config.h>.
14441 * nat/linux-ptrace.c: Don't include <config.h>.
14442 * nat/x86-linux-dregs.c: Don't include <config.h>.
14443
05ea2a05
TT
144442020-01-14 Tom Tromey <tom@tromey.com>
14445
14446 * configure: Rebuild.
14447 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14448
01027315
TT
144492020-01-14 Tom Tromey <tom@tromey.com>
14450
14451 * nat/x86-linux-dregs.c: Include configh.h.
14452 * nat/linux-ptrace.c: Include configh.h.
14453 * nat/linux-btrace.c: Include configh.h.
14454 * defs.h: Include config.h, bfd.h.
14455 * configure.ac: Don't source common.host.
14456 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14457 * configure: Rebuild.
14458 * acinclude.m4: Update path.
14459 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14460 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14461 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14462 (CLIBS): Add LIBSUPPORT.
14463 (CDEPS): Likewise.
14464 (COMMON_SFILES): Remove gdbsupport files.
14465 (HFILES_NO_SRCDIR): Likewise.
14466 (stamp-version): Update path to create-version.sh.
14467 (ALLDEPFILES): Remove gdbsupport files.
14468
b2ceabe8
TT
144692020-01-14 Tom Tromey <tom@tromey.com>
14470
14471 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14472 USE_WIN32API when needed.
14473 * configure.ac (USE_WIN32API): Don't define.
14474 (WIN32LIBS): Use WIN32APILIBS.
14475 * configure: Rebuild.
14476
25c51f71
TT
144772020-01-14 Tom Tromey <tom@tromey.com>
14478
14479 * configure: Rebuild.
14480 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14481
717c684d
BE
144822020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14483
14484 * skip.c (skip_function_command): Make skip w/o arguments use the
14485 name of the inlined function if pc is inside any inlined function.
14486
7da6a5b9
LM
144872020-01-14 Luis Machado <luis.machado@linaro.org>
14488
14489 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14490 * infrun.c (resume_1): Likewise.
14491 (handle_inferior_event): Remove stale comment.
14492 * linux-nat.c (linux_nat_target::resume): Update comments.
14493 (save_stop_reason): Likewise.
14494 (linux_nat_filter_event): Likewise.
14495 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14496
44e4c775
AB
144972020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14498
14499 * elfread.c (record_minimal_symbol): Set section index to 0 for
14500 non-allocatable sections.
14501
18a8505e
AT
14502
145032020-01-13 Ali Tamur <tamur@google.com>
14504
14505 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14506 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14507 to gdb::optional. Update comments.
14508 (dwo_file): Update comments.
14509 (read_attribute): Update API to take an additional out parameter,
14510 need_reprocess. This is used to mark attributes that need other
14511 attributes (e.g. str_offsets_base) for correct computation which may not
14512 have been read yet.
14513 (read_attribute_reprocess): New function declaration.
14514 (read_addr_index): Likewise.
14515 (read_dwo_str_index): Likewise.
14516 (read_stub_str_index): Likewise.
14517 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14518 (lookup_addr_base): New function definition.
14519 (lookup_ranges_base): Likewise.
14520 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14521 lookup_ranges_base.
14522 (init_cutu_and_read_dies): Update comments.
14523 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14524 unit. This is used to inherit parent's str_offsets_base and addr_base.
14525 Update comments.
14526 (init_cutu_and_read_dies_simple): Reflect API changes.
14527 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14528 (create_cus_hash_table): Change API to take parent compile unit.
14529 Reflect API changes.
14530 (open_and_init_dwo_file): Reflect API changes.
14531 (dwarf2_get_pc_bounds): Update comments.
14532 (dwarf2_record_block_ranges): Likewise.
14533 (read_full_die_1): Change implementation to reprocess attributes that
14534 need str_offsets_base and addr_base.
14535 (partial_die_info::read): Likewise.
14536 (read_attribute_reprocess): New function definition.
14537 (read_attribute_value): Change API to take an additional out parameter,
14538 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14539 when a non-dwo compile unit has index based attributes.
14540 (read_attribute): Reflect API changes.
14541 (read_addr_index_1): Reflect API changes. Update comments.
14542 (dwarf2_read_addr_index_data): Reflect API changes.
14543 (dwarf2_read_addr_index): Likewise.
14544 (read_str_index): Change API and implementation. This becomes a helper
14545 to be used by the new string index related methods. Update error
14546 message and comments.
14547 (read_dwo_str_index): New function definition.
14548 (read_stub_str_index): Likewise.
14549 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14550 * symfile.h (dwarf2_debug_sections): Likewise.
14551 * xcoffread.c (dwarf2_debug_sections): Likewise.
14552
0cac9354
SM
145532020-01-13 Simon Marchi <simon.marchi@efficios.com>
14554
14555 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14556 core_reg_sect type to gdb_byte *.
14557 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14558 * cris-tdep.c (fetch_core_registers): Likewise.
14559 * corelow.c (core_target::get_core_register_section): Change
14560 type of `contents` to gdb::byte_vector.
14561
9a6d629c
AB
145622020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14563
14564 * tui/tui-wingeneral.c (box_win): Position the title in the center
14565 of the border.
14566
d8b2f9e3
SM
145672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14568
14569 * corelow.c (core_target::get_core_register_section): Use
14570 std::vector instead of alloca.
14571
bb564c58
SM
145722020-01-13 Simon Marchi <simon.marchi@efficios.com>
14573
14574 * warning.m4: Add -Wmissing-declarations to build_warnings.
14575 * configure: Re-generate.
14576
6b366111
SM
145772020-01-13 Simon Marchi <simon.marchi@efficios.com>
14578
14579 * python/python.c (init__gdb_module): Add declaration.
14580
6c265988
SM
145812020-01-13 Simon Marchi <simon.marchi@efficios.com>
14582
14583 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14584 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14585 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14586 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14587 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14588 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14589 * ada-exp.y (_initialize_ada_exp): Add declaration.
14590 * ada-lang.c (_initialize_ada_language): Add declaration.
14591 * ada-tasks.c (_initialize_tasks): Add declaration.
14592 * agent.c (_initialize_agent): Add declaration.
14593 * aix-thread.c (_initialize_aix_thread): Add declaration.
14594 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14595 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14596 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14597 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14598 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14599 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14600 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14601 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14602 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14603 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14604 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14605 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14606 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14607 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14608 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14609 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14610 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14611 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14612 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14613 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14614 * annotate.c (_initialize_annotate): Add declaration.
14615 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14616 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14617 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14618 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14619 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14620 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14621 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14622 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14623 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14624 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14625 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14626 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14627 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14628 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14629 * auto-load.c (_initialize_auto_load): Add declaration.
14630 * auxv.c (_initialize_auxv): Add declaration.
14631 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14632 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14633 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14634 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14635 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14636 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14637 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14638 * breakpoint.c (_initialize_breakpoint): Add declaration.
14639 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14640 * btrace.c (_initialize_btrace): Add declaration.
14641 * charset.c (_initialize_charset): Add declaration.
14642 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14643 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14644 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14645 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14646 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14647 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14648 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14649 * coffread.c (_initialize_coffread): Add declaration.
14650 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14651 * compile/compile.c (_initialize_compile): Add declaration.
14652 * complaints.c (_initialize_complaints): Add declaration.
14653 * completer.c (_initialize_completer): Add declaration.
14654 * copying.c (_initialize_copying): Add declaration.
14655 * corefile.c (_initialize_core): Add declaration.
14656 * corelow.c (_initialize_corelow): Add declaration.
14657 * cp-abi.c (_initialize_cp_abi): Add declaration.
14658 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14659 * cp-support.c (_initialize_cp_support): Add declaration.
14660 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14661 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14662 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14663 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14664 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14665 * ctfread.c (_initialize_ctfread): Add declaration.
14666 * d-lang.c (_initialize_d_language): Add declaration.
14667 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14668 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14669 * dbxread.c (_initialize_dbxread): Add declaration.
14670 * dcache.c (_initialize_dcache): Add declaration.
14671 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14672 * disasm.c (_initialize_disasm): Add declaration.
14673 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14674 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14675 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14676 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14677 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14678 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14679 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14680 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14681 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14682 * elfread.c (_initialize_elfread): Add declaration.
14683 * exec.c (_initialize_exec): Add declaration.
14684 * extension.c (_initialize_extension): Add declaration.
14685 * f-lang.c (_initialize_f_language): Add declaration.
14686 * f-valprint.c (_initialize_f_valprint): Add declaration.
14687 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14688 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14689 * filesystem.c (_initialize_filesystem): Add declaration.
14690 * findcmd.c (_initialize_mem_search): Add declaration.
14691 * findvar.c (_initialize_findvar): Add declaration.
14692 * fork-child.c (_initialize_fork_child): Add declaration.
14693 * frame-base.c (_initialize_frame_base): Add declaration.
14694 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14695 * frame.c (_initialize_frame): Add declaration.
14696 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14697 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14698 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14699 * gcore.c (_initialize_gcore): Add declaration.
14700 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14701 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14702 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14703 * gdbarch.c (_initialize_gdbarch): Add declaration.
14704 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14705 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14706 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14707 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14708 * go-lang.c (_initialize_go_language): Add declaration.
14709 * go32-nat.c (_initialize_go32_nat): Add declaration.
14710 * guile/guile.c (_initialize_guile): Add declaration.
14711 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14712 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14713 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14714 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14715 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14716 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14717 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14718 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14719 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14720 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14721 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14722 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14723 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14724 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14725 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14726 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14727 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14728 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14729 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14730 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14731 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14732 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14733 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14734 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14735 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14736 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14737 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14738 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14739 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14740 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14741 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14742 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14743 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14744 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14745 * infcall.c (_initialize_infcall): Add declaration.
14746 * infcmd.c (_initialize_infcmd): Add declaration.
14747 * inflow.c (_initialize_inflow): Add declaration.
14748 * infrun.c (_initialize_infrun): Add declaration.
14749 * interps.c (_initialize_interpreter): Add declaration.
14750 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14751 * jit.c (_initialize_jit): Add declaration.
14752 * language.c (_initialize_language): Add declaration.
14753 * linux-fork.c (_initialize_linux_fork): Add declaration.
14754 * linux-nat.c (_initialize_linux_nat): Add declaration.
14755 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14756 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14757 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14758 * m2-lang.c (_initialize_m2_language): Add declaration.
14759 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14760 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14761 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14762 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14763 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14764 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14765 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14766 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14767 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14768 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14769 * machoread.c (_initialize_machoread): Add declaration.
14770 * macrocmd.c (_initialize_macrocmd): Add declaration.
14771 * macroscope.c (_initialize_macroscope): Add declaration.
14772 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14773 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14774 * maint.c (_initialize_maint_cmds): Add declaration.
14775 * mdebugread.c (_initialize_mdebugread): Add declaration.
14776 * memattr.c (_initialize_mem): Add declaration.
14777 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14778 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14779 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14780 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14781 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14782 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14783 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14784 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14785 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14786 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14787 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14788 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14789 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14790 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14791 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14792 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14793 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14794 * mipsread.c (_initialize_mipsread): Add declaration.
14795 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14796 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14797 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14798 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14799 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14800 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14801 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14802 * nto-procfs.c (_initialize_procfs): Add declaration.
14803 * objc-lang.c (_initialize_objc_language): Add declaration.
14804 * observable.c (_initialize_observer): Add declaration.
14805 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14806 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14807 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14808 * osabi.c (_initialize_gdb_osabi): Add declaration.
14809 * osdata.c (_initialize_osdata): Add declaration.
14810 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14811 * parse.c (_initialize_parse): Add declaration.
14812 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14813 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14814 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14815 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14816 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14817 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14818 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14819 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14820 * printcmd.c (_initialize_printcmd): Add declaration.
14821 * probe.c (_initialize_probe): Add declaration.
14822 * proc-api.c (_initialize_proc_api): Add declaration.
14823 * proc-events.c (_initialize_proc_events): Add declaration.
14824 * proc-service.c (_initialize_proc_service): Add declaration.
14825 * procfs.c (_initialize_procfs): Add declaration.
14826 * producer.c (_initialize_producer): Add declaration.
14827 * psymtab.c (_initialize_psymtab): Add declaration.
14828 * python/python.c (_initialize_python): Add declaration.
14829 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14830 * record-btrace.c (_initialize_record_btrace): Add declaration.
14831 * record-full.c (_initialize_record_full): Add declaration.
14832 * record.c (_initialize_record): Add declaration.
14833 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14834 * regcache.c (_initialize_regcache): Add declaration.
14835 * reggroups.c (_initialize_reggroup): Add declaration.
14836 * remote-notif.c (_initialize_notif): Add declaration.
14837 * remote-sim.c (_initialize_remote_sim): Add declaration.
14838 * remote.c (_initialize_remote): Add declaration.
14839 * reverse.c (_initialize_reverse): Add declaration.
14840 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14841 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14842 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14843 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14844 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14845 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14846 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14847 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14848 Add declaration.
14849 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14850 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14851 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14852 * rust-exp.y (_initialize_rust_exp): Add declaration.
14853 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14854 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14855 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14856 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14857 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14858 * score-tdep.c (_initialize_score_tdep): Add declaration.
14859 * ser-go32.c (_initialize_ser_dos): Add declaration.
14860 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14861 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14862 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14863 * ser-uds.c (_initialize_ser_socket): Add declaration.
14864 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14865 * serial.c (_initialize_serial): Add declaration.
14866 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14867 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14868 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14869 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14870 * skip.c (_initialize_step_skip): Add declaration.
14871 * sol-thread.c (_initialize_sol_thread): Add declaration.
14872 * solib-aix.c (_initialize_solib_aix): Add declaration.
14873 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14874 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14875 * solib-frv.c (_initialize_frv_solib): Add declaration.
14876 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14877 * solib-target.c (_initialize_solib_target): Add declaration.
14878 * solib.c (_initialize_solib): Add declaration.
14879 * source-cache.c (_initialize_source_cache): Add declaration.
14880 * source.c (_initialize_source): Add declaration.
14881 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14882 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14883 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14884 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14885 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14886 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14887 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14888 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14889 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14890 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14891 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14892 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14893 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14894 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14895 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14896 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14897 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14898 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14899 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14900 * stabsread.c (_initialize_stabsread): Add declaration.
14901 * stack.c (_initialize_stack): Add declaration.
14902 * stap-probe.c (_initialize_stap_probe): Add declaration.
14903 * std-regs.c (_initialize_frame_reg): Add declaration.
14904 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14905 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14906 * symfile.c (_initialize_symfile): Add declaration.
14907 * symmisc.c (_initialize_symmisc): Add declaration.
14908 * symtab.c (_initialize_symtab): Add declaration.
14909 * target.c (_initialize_target): Add declaration.
14910 * target-connection.c (_initialize_target_connection): Add
14911 declaration.
14912 * target-dcache.c (_initialize_target_dcache): Add declaration.
14913 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14914 * thread.c (_initialize_thread): Add declaration.
14915 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14916 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14917 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14918 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14919 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14920 * tracectf.c (_initialize_ctf): Add declaration.
14921 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14922 * tracefile.c (_initialize_tracefile): Add declaration.
14923 * tracepoint.c (_initialize_tracepoint): Add declaration.
14924 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14925 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14926 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14927 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14928 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14929 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14930 * tui/tui.c (_initialize_tui): Add declaration.
14931 * typeprint.c (_initialize_typeprint): Add declaration.
14932 * ui-style.c (_initialize_ui_style): Add declaration.
14933 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14934 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14935 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14936 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14937 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14938 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14939 * unittests/filtered_iterator-selftests.c
14940 (_initialize_filtered_iterator_selftests): Add declaration.
14941 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14942 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14943 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14944 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14945 * unittests/main-thread-selftests.c
14946 (_initialize_main_thread_selftests): Add declaration.
14947 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14948 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14949 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14950 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14951 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14952 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14953 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14954 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14955 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14956 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14957 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14958 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14959 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14960 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14961 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14962 declaration.
14963 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14964 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14965 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14966 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14967 * user-regs.c (_initialize_user_regs): Add declaration.
14968 * utils.c (_initialize_utils): Add declaration.
14969 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14970 * valops.c (_initialize_valops): Add declaration.
14971 * valprint.c (_initialize_valprint): Add declaration.
14972 * value.c (_initialize_values): Add declaration.
14973 * varobj.c (_initialize_varobj): Add declaration.
14974 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14975 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14976 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14977 * windows-nat.c (_initialize_windows_nat): Add declaration.
14978 (_initialize_check_for_gdb_ini): Add declaration.
14979 (_initialize_loadable): Add declaration.
14980 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14981 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14982 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14983 * xcoffread.c (_initialize_xcoffread): Add declaration.
14984 * xml-support.c (_initialize_xml_support): Add declaration.
14985 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14986 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14987 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14988 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14989
e2de1eec
SM
149902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14991
14992 * regformats/regdat.sh: Generate declaration for init function.
14993
e0037b4c
SM
149942020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14995
14996 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14997 up.
14998 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14999 close_one_inferior>: New methods.
15000 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15001 pass down target to find_inferior_pid.
15002 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15003 Pass down target to find_inferior_ptid.
15004 (gdbsim_target::create_inferior): Pass down target to
15005 add_thread_silent.
15006 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15007 target down to find_inferior_ptid and switch_to_thread.
15008 (gdbsim_target::close): Update to call close_one_inferior.
15009 (struct resume_data): Remove.
15010 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15011 directly, rather than through a void pointer.
15012 (gdbsim_target::resume): Update to call resume_one_inferior.
15013
58920b5b
SM
150142020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15015
15016 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15017
4ec89149
PA
150182020-01-12 Pedro Alves <palves@redhat.com>
15019
15020 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15021 directly for the current inferior instead of
15022 discard_all_inferiors.
15023 (discard_all_inferiors): Delete.
15024
7c392d1d
TT
150252020-01-11 Tom Tromey <tom@tromey.com>
15026
15027 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15028 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15029 deprecated_safe_get_selected_frame.
15030
d9ebdab7
TBA
150312020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15032
15033 * inferior.c (print_inferior): Switch inferior before printing it.
15034
f3c469b9
PA
150352020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15036 Pedro Alves <palves@redhat.com>
15037
15038 * progspace-and-thread.c (switch_to_program_space_and_thread):
15039 Assert there's an inferior for PSPACE. Use
15040 switch_to_inferior_no_thread to switch the inferior too.
15041 * progspace.c (program_space::~program_space): Call
15042 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15043 (program_space::free_all_objfiles): Don't call clear_symtab_users
15044 here.
15045 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15046
65c574f6
PA
150472020-01-10 Pedro Alves <palves@redhat.com>
15048
15049 * NEWS: Mention multi-target debugging, "info connections", and
15050 "add-inferior -no-connection".
15051
2f4fcf00
PA
150522020-01-10 Pedro Alves <palves@redhat.com>
15053
15054 * infrun.c: Include "target-connection.h".
15055 (check_multi_target_resumption): New.
15056 (proceed): Call it.
15057 * target-connection.c (make_target_connection_string): Make
15058 extern.
15059 * target-connection.h (make_target_connection_string): Declare.
15060
121b3efd
PA
150612020-01-10 Pedro Alves <palves@redhat.com>
15062
15063 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15064 * inferior.c (uiout_field_connection): New function.
15065 (print_inferior): Add new "connection-id" column.
15066 (add_inferior_command): Show connection number/string of added
15067 inferior.
15068 * process-stratum-target.h
15069 (process_stratum_target::connection_string): New virtual method.
15070 (process_stratum_target::connection_number): New field.
15071 * remote.c (remote_target::connection_string): New override.
15072 * target-connection.c: New file.
15073 * target-connection.h: New file.
15074 * target.c (decref_target): Remove process_stratum targets from
15075 the connection list.
15076 (target_stack::push): Add process_stratum targets to the
15077 connection list.
15078
4f837581
PA
150792020-01-10 Pedro Alves <palves@redhat.com>
15080
15081 Revert:
15082 2016-04-12 Pedro Alves <palves@redhat.com>
15083 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15084 Remove references to name.
15085 * serial.h (struct serial) <name>: Delete.
15086
f4ec508e
PA
150872020-01-10 Pedro Alves <palves@redhat.com>
15088
15089 * gdbarch-selftests.c (register_to_value_test): Remove "target
15090 already pushed" check.
15091
5b6d1e4f
PA
150922020-01-10 Pedro Alves <palves@redhat.com>
15093 John Baldwin <jhb@FreeBSD.org>
15094
15095 * aarch64-linux-nat.c
15096 (aarch64_linux_nat_target::thread_architecture): Adjust.
15097 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15098 (task_command_1): Likewise.
15099 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15100 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15101 (aix_thread_target::store_registers)
15102 (aix_thread_target::thread_alive): Adjust.
15103 * amd64-fbsd-tdep.c: Include "inferior.h".
15104 (amd64fbsd_get_thread_local_address): Pass down target.
15105 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15106 thread's gdbarch instead of target_gdbarch.
15107 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15108 get_last_target_status.
15109 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15110 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15111 inferiors.
15112 (update_inserted_breakpoint_locations): Skip if inferiors with no
15113 execution.
15114 (update_global_location_list): When handling moribund locations,
15115 find representative inferior for location's pspace, and use thread
15116 count of its process_stratum target.
15117 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15118 * bsd-uthread.c (bsd_uthread_target::wait): Use
15119 as_process_stratum_target and adjust thread_change_ptid and
15120 add_thread calls.
15121 (bsd_uthread_target::update_thread_list): Use
15122 as_process_stratum_target and adjust find_thread_ptid,
15123 thread_change_ptid and add_thread calls.
15124 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15125 find_thread_ptid call.
15126 * corelow.c (add_to_thread_list): Adjust add_thread call.
15127 (core_target_open): Adjust add_thread_silent and thread_count
15128 calls.
15129 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15130 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15131 * event-top.c (async_disconnect): Pop targets from all inferiors.
15132 * exec.c (add_target_sections): Push exec target on all inferiors
15133 sharing the program space.
15134 (remove_target_sections): Remove the exec target from all
15135 inferiors sharing the program space.
15136 (exec_on_vfork): New.
15137 * exec.h (exec_on_vfork): Declare.
15138 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15139 Pass it down.
15140 (fbsd_nat_target::update_thread_list): Adjust.
15141 (fbsd_nat_target::resume): Adjust.
15142 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15143 down.
15144 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15145 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15146 get_thread_arch_regcache call.
15147 * fork-child.c (gdb_startup_inferior): Pass target down to
15148 startup_inferior and set_executing.
15149 * gdbthread.h (struct process_stratum_target): Forward declare.
15150 (add_thread, add_thread_silent, add_thread_with_info)
15151 (in_thread_list): Add process_stratum_target parameter.
15152 (find_thread_ptid(inferior*, ptid_t)): New overload.
15153 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15154 parameter.
15155 (all_threads()): Delete overload.
15156 (all_threads, all_non_exited_threads): Add process_stratum_target
15157 parameter.
15158 (all_threads_safe): Use brace initialization.
15159 (thread_count): Add process_stratum_target parameter.
15160 (set_resumed, set_running, set_stop_requested, set_executing)
15161 (threads_are_executing, finish_thread_state): Add
15162 process_stratum_target parameter.
15163 (switch_to_thread): Use is_current_thread.
15164 * i386-fbsd-tdep.c: Include "inferior.h".
15165 (i386fbsd_get_thread_local_address): Pass down target.
15166 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15167 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15168 have_inferiors check.
15169 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15170 (inf_ptrace_target::attach): Adjust.
15171 * infcall.c (run_inferior_call): Adjust.
15172 * infcmd.c (run_command_1): Pass target to
15173 scoped_finish_thread_state.
15174 (proceed_thread_callback): Skip inferiors with no execution.
15175 (continue_command): Rename 'all_threads' local to avoid hiding
15176 'all_threads' function. Adjust get_last_target_status call.
15177 (prepare_one_step): Adjust set_running call.
15178 (signal_command): Use user_visible_resume_target. Compare thread
15179 pointers instead of inferior_ptid.
15180 (info_program_command): Adjust to pass down target.
15181 (attach_command): Mark target's 'thread_executing' flag.
15182 (stop_current_target_threads_ns): New, factored out from ...
15183 (interrupt_target_1): ... this. Switch inferior before making
15184 target calls.
15185 * inferior-iter.h
15186 (struct all_inferiors_iterator, struct all_inferiors_range)
15187 (struct all_inferiors_safe_range)
15188 (struct all_non_exited_inferiors_range): Filter on
15189 process_stratum_target too. Remove explicit.
15190 * inferior.c (inferior::inferior): Push dummy target on target
15191 stack.
15192 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15193 Add process_stratum_target parameter, and pass it down.
15194 (have_live_inferiors): Adjust.
15195 (switch_to_inferior_and_push_target): New.
15196 (add_inferior_command, clone_inferior_command): Handle
15197 "-no-connection" parameter. Use
15198 switch_to_inferior_and_push_target.
15199 (_initialize_inferior): Mention "-no-connection" option in
15200 the help of "add-inferior" and "clone-inferior" commands.
15201 * inferior.h: Include "process-stratum-target.h".
15202 (interrupt_target_1): Use bool.
15203 (struct inferior) <push_target, unpush_target, target_is_pushed,
15204 find_target_beneath, top_target, process_target, target_at,
15205 m_stack>: New.
15206 (discard_all_inferiors): Delete.
15207 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15208 (all_inferiors, all_non_exited_inferiors): Add
15209 process_stratum_target parameter.
15210 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15211 (target_last_proc_target): New global.
15212 (follow_fork_inferior): Push target on new inferior. Pass target
15213 to add_thread_silent. Call exec_on_vfork. Handle target's
15214 reference count.
15215 (follow_fork): Adjust get_last_target_status call. Also consider
15216 target.
15217 (follow_exec): Push target on new inferior.
15218 (struct execution_control_state) <target>: New field.
15219 (user_visible_resume_target): New.
15220 (do_target_resume): Call target_async.
15221 (resume_1): Set target's threads_executing flag. Consider resume
15222 target.
15223 (commit_resume_all_targets): New.
15224 (proceed): Also consider resume target. Skip threads of inferiors
15225 with no execution. Commit resumtion in all targets.
15226 (start_remote): Pass current inferior to wait_for_inferior.
15227 (infrun_thread_stop_requested): Consider target as well. Pass
15228 thread_info pointer to clear_inline_frame_state instead of ptid.
15229 (infrun_thread_thread_exit): Consider target as well.
15230 (random_pending_event_thread): New inferior parameter. Use it.
15231 (do_target_wait): Rename to ...
15232 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15233 down.
15234 (threads_are_resumed_pending_p, do_target_wait): New.
15235 (prepare_for_detach): Adjust calls.
15236 (wait_for_inferior): New inferior parameter. Handle it. Use
15237 do_target_wait_1 instead of do_target_wait.
15238 (fetch_inferior_event): Adjust. Switch to representative
15239 inferior. Pass target down.
15240 (set_last_target_status): Add process_stratum_target parameter.
15241 Save target in global.
15242 (get_last_target_status): Add process_stratum_target parameter and
15243 handle it.
15244 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15245 (context_switch): Check inferior_ptid == null_ptid before calling
15246 inferior_thread().
15247 (get_inferior_stop_soon): Pass down target.
15248 (wait_one): Rename to ...
15249 (poll_one_curr_target): ... this.
15250 (struct wait_one_event): New.
15251 (wait_one): New.
15252 (stop_all_threads): Adjust.
15253 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15254 event's target.
15255 (switch_back_to_stepped_thread): Also consider target.
15256 (print_stop_event): Update.
15257 (normal_stop): Update. Also consider the resume target.
15258 * infrun.h (wait_for_inferior): Remove declaration.
15259 (user_visible_resume_target): New declaration.
15260 (get_last_target_status, set_last_target_status): New
15261 process_stratum_target parameter.
15262 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15263 process_stratum_target parameter, and use it.
15264 (clear_inline_frame_state (thread_info*)): New.
15265 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15266 process_stratum_target parameter.
15267 (clear_inline_frame_state (thread_info*)): Declare.
15268 * linux-fork.c (delete_checkpoint_command): Pass target down to
15269 find_thread_ptid.
15270 (checkpoint_command): Adjust.
15271 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15272 instead of just tweaking inferior_ptid.
15273 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15274 (exit_lwp): Pass target down to find_thread_ptid.
15275 (attach_proc_task_lwp_callback): Pass target down to
15276 add_thread/set_running/set_executing.
15277 (linux_nat_target::attach): Pass target down to
15278 thread_change_ptid.
15279 (get_detach_signal): Pass target down to find_thread_ptid.
15280 Consider last target status's target.
15281 (linux_resume_one_lwp_throw, resume_lwp)
15282 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15283 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15284 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15285 (linux_nat_target::async_wait_fd): New.
15286 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15287 target down.
15288 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15289 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15290 * linux-thread-db.c (struct thread_db_info::process_target): New
15291 field.
15292 (add_thread_db_info): Save target.
15293 (get_thread_db_info): New process_stratum_target parameter. Also
15294 match target.
15295 (delete_thread_db_info): New process_stratum_target parameter.
15296 Also match target.
15297 (thread_from_lwp): Adjust to pass down target.
15298 (thread_db_notice_clone): Pass down target.
15299 (check_thread_db_callback): Pass down target.
15300 (try_thread_db_load_1): Always push the thread_db target.
15301 (try_thread_db_load, record_thread): Pass target down.
15302 (thread_db_target::detach): Pass target down. Always unpush the
15303 thread_db target.
15304 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15305 target down. Always unpush the thread_db target.
15306 (find_new_threads_callback, thread_db_find_new_threads_2)
15307 (thread_db_target::update_thread_list): Pass target down.
15308 (thread_db_target::pid_to_str): Pass current inferior down.
15309 (thread_db_target::get_thread_local_address): Pass target down.
15310 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15311 target down.
15312 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15313 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15314 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15315 (procfs_init_inferior): Rename to ...
15316 (procfs_target::procfs_init_inferior): ... this and adjust.
15317 (procfs_target::create_inferior, procfs_notice_thread)
15318 (procfs_do_thread_registers): Adjust.
15319 * ppc-fbsd-tdep.c: Include "inferior.h".
15320 (ppcfbsd_get_thread_local_address): Pass down target.
15321 * proc-service.c (ps_xfer_memory): Switch current inferior and
15322 program space as well.
15323 (get_ps_regcache): Pass target down.
15324 * process-stratum-target.c
15325 (process_stratum_target::thread_address_space)
15326 (process_stratum_target::thread_architecture): Pass target down.
15327 * process-stratum-target.h
15328 (process_stratum_target::threads_executing): New field.
15329 (as_process_stratum_target): New.
15330 * ravenscar-thread.c
15331 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15332 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15333 down.
15334 * record-btrace.c (record_btrace_target::info_record): Adjust.
15335 (record_btrace_target::record_method)
15336 (record_btrace_target::record_is_replaying)
15337 (record_btrace_target::fetch_registers)
15338 (get_thread_current_frame_id, record_btrace_target::resume)
15339 (record_btrace_target::wait, record_btrace_target::stop): Pass
15340 target down.
15341 * record-full.c (record_full_wait_1): Switch to event thread.
15342 Pass target down.
15343 * regcache.c (regcache::regcache)
15344 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15345 process_stratum_target parameter and handle it.
15346 (current_thread_target): New global.
15347 (get_thread_regcache): Add process_stratum_target parameter and
15348 handle it. Switch inferior before calling target method.
15349 (get_thread_regcache): Pass target down.
15350 (get_thread_regcache_for_ptid): Pass target down.
15351 (registers_changed_ptid): Add process_stratum_target parameter and
15352 handle it.
15353 (registers_changed_thread, registers_changed): Pass target down.
15354 (test_get_thread_arch_aspace_regcache): New.
15355 (current_regcache_test): Define a couple local test_target_ops
15356 instances and use them for testing.
15357 (readwrite_regcache): Pass process_stratum_target parameter.
15358 (cooked_read_test, cooked_write_test): Pass mock_target down.
15359 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15360 (get_thread_arch_aspace_regcache): Add process_stratum_target
15361 parameter.
15362 (regcache::target): New method.
15363 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15364 (regcache::registers_changed_ptid): Add process_stratum_target
15365 parameter.
15366 (regcache::m_target): New field.
15367 (registers_changed_ptid): Add process_stratum_target parameter.
15368 * remote.c (remote_state::supports_vCont_probed): New field.
15369 (remote_target::async_wait_fd): New method.
15370 (remote_unpush_and_throw): Add remote_target parameter.
15371 (get_current_remote_target): Adjust.
15372 (remote_target::remote_add_inferior): Push target.
15373 (remote_target::remote_add_thread)
15374 (remote_target::remote_notice_new_inferior)
15375 (get_remote_thread_info): Pass target down.
15376 (remote_target::update_thread_list): Skip threads of inferiors
15377 bound to other targets. (remote_target::close): Don't discard
15378 inferiors. (remote_target::add_current_inferior_and_thread)
15379 (remote_target::process_initial_stop_replies)
15380 (remote_target::start_remote)
15381 (remote_target::remote_serial_quit_handler): Pass down target.
15382 (remote_target::remote_unpush_target): New remote_target
15383 parameter. Unpush the target from all inferiors.
15384 (remote_target::remote_unpush_and_throw): New remote_target
15385 parameter. Pass it down.
15386 (remote_target::open_1): Check whether the current inferior has
15387 execution instead of checking whether any inferior is live. Pass
15388 target down.
15389 (remote_target::remote_detach_1): Pass down target. Use
15390 remote_unpush_target.
15391 (extended_remote_target::attach): Pass down target.
15392 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15393 (remote_target::append_resumption): Pass down target.
15394 (remote_target::append_pending_thread_resumptions)
15395 (remote_target::remote_resume_with_hc, remote_target::resume)
15396 (remote_target::commit_resume): Pass down target.
15397 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15398 (remote_target::interrupt_query)
15399 (remote_target::remove_new_fork_children)
15400 (remote_target::check_pending_events_prevent_wildcard_vcont)
15401 (remote_target::remote_parse_stop_reply)
15402 (remote_target::process_stop_reply): Pass down target.
15403 (first_remote_resumed_thread): New remote_target parameter. Pass
15404 it down.
15405 (remote_target::wait_as): Pass down target.
15406 (unpush_and_perror): New remote_target parameter. Pass it down.
15407 (remote_target::readchar, remote_target::remote_serial_write)
15408 (remote_target::getpkt_or_notif_sane_1)
15409 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15410 down target.
15411 (remote_target::mourn_inferior): Pass down target. Use
15412 remote_unpush_target.
15413 (remote_target::core_of_thread)
15414 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15415 (remote_target::pid_to_exec_file)
15416 (remote_target::thread_handle_to_thread_info): Pass down target.
15417 (remote_target::async_wait_fd): New.
15418 * riscv-fbsd-tdep.c: Include "inferior.h".
15419 (riscv_fbsd_get_thread_local_address): Pass down target.
15420 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15421 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15422 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15423 Adjust.
15424 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15425 * solib-svr4.c (enable_break): Pass down target.
15426 * spu-multiarch.c (parse_spufs_run): Pass down target.
15427 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15428 * target-delegates.c: Regenerate.
15429 * target.c (g_target_stack): Delete.
15430 (current_top_target): Return the current inferior's top target.
15431 (target_has_execution_1): Refer to the passed-in inferior's top
15432 target.
15433 (target_supports_terminal_ours): Check whether the initial
15434 inferior was already created.
15435 (decref_target): New.
15436 (target_stack::push): Incref/decref the target.
15437 (push_target, push_target, unpush_target): Adjust.
15438 (target_stack::unpush): Defref target.
15439 (target_is_pushed): Return bool. Adjust to refer to the current
15440 inferior's target stack.
15441 (dispose_inferior): Delete, and inline parts ...
15442 (target_preopen): ... here. Only dispose of the current inferior.
15443 (target_detach): Hold strong target reference while detaching.
15444 Pass target down.
15445 (target_thread_name): Add assertion.
15446 (target_resume): Pass down target.
15447 (target_ops::beneath, find_target_at): Adjust to refer to the
15448 current inferior's target stack.
15449 (get_dummy_target): New.
15450 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15451 has a thread running.
15452 (initialize_targets): Rename to ...
15453 (_initialize_target): ... this.
15454 * target.h: Include "gdbsupport/refcounted-object.h".
15455 (struct target_ops): Inherit refcounted_object.
15456 (target_ops::shortname, target_ops::longname): Make const.
15457 (target_ops::async_wait_fd): New method.
15458 (decref_target): Declare.
15459 (struct target_ops_ref_policy): New.
15460 (target_ops_ref): New typedef.
15461 (get_dummy_target): Declare function.
15462 (target_is_pushed): Return bool.
15463 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15464 (all_matching_threads_iterator::all_matching_threads_iterator):
15465 Handle filter target.
15466 * thread-iter.h (struct all_matching_threads_iterator, struct
15467 all_matching_threads_range, class all_non_exited_threads_range):
15468 Filter by target too. Remove explicit.
15469 * thread.c (threads_executing): Delete.
15470 (inferior_thread): Pass down current inferior.
15471 (clear_thread_inferior_resources): Pass down thread pointer
15472 instead of ptid_t.
15473 (add_thread_silent, add_thread_with_info, add_thread): Add
15474 process_stratum_target parameter. Use it for thread and inferior
15475 searches.
15476 (is_current_thread): New.
15477 (thread_info::deletable): Use it.
15478 (find_thread_ptid, thread_count, in_thread_list)
15479 (thread_change_ptid, set_resumed, set_running): New
15480 process_stratum_target parameter. Pass it down.
15481 (set_executing): New process_stratum_target parameter. Pass it
15482 down. Adjust reference to 'threads_executing'.
15483 (threads_are_executing): New process_stratum_target parameter.
15484 Adjust reference to 'threads_executing'.
15485 (set_stop_requested, finish_thread_state): New
15486 process_stratum_target parameter. Pass it down.
15487 (switch_to_thread): Also match inferior.
15488 (switch_to_thread): New process_stratum_target parameter. Pass it
15489 down.
15490 (update_threads_executing): Reimplement.
15491 * top.c (quit_force): Pop targets from all inferior.
15492 (gdb_init): Don't call initialize_targets.
15493 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15494 Declare.
15495 (windows_add_thread, windows_delete_thread): Adjust.
15496 (get_windows_debug_event): Rename to ...
15497 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15498 * tracefile-tfile.c (tfile_target_open): Pass down target.
15499 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15500 Forward declare.
15501 (switch_to_thread): Add process_stratum_target parameter.
15502 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15503 parameter. Use it.
15504 (mi_on_resume): Pass target down.
15505 * nat/fork-inferior.c (startup_inferior): Add
15506 process_stratum_target parameter. Pass it down.
15507 * nat/fork-inferior.h (startup_inferior): Add
15508 process_stratum_target parameter.
15509 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15510
75c6c844
PA
155112020-01-10 Pedro Alves <palves@redhat.com>
15512
15513 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15514 directly. Instead find the first thread in the thread list and
15515 use switch_to_thread.
15516
78f2c40a
PA
155172020-01-10 Pedro Alves <palves@redhat.com>
15518
15519 * remote.c (remote_target::remote_add_inferior): Don't bind a
15520 process to the current inferior if the current inferior is already
15521 bound to a process.
15522
e7af6c70
TBA
155232020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15524 Pedro Alves <palves@redhat.com>
15525
15526 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15527 If no process is specified, return null_ptid instead of
15528 inferior_ptid.
15529 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15530 TARGET_WAITKIND_SIGNALLED with no pid.
15531
31ba933e
PA
155322020-01-10 Pedro Alves <palves@redhat.com>
15533
15534 * remote.c (first_remote_resumed_thread): New.
15535 (remote_target::wait_as): Use it as default event_ptid instead of
15536 inferior_ptid.
15537
735fc2ca
PA
155382020-01-10 Pedro Alves <palves@redhat.com>
15539
15540 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15541
c17e02e1
PA
155422020-01-10 Pedro Alves <palves@redhat.com>
15543
15544 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15545 not -1.
15546
ab1ddbcf
PA
155472020-01-10 Pedro Alves <palves@redhat.com>
15548
15549 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15550 ptid to get_last_target_status.
15551 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15552 ptid to get_last_target_status.
15553 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15554 get_last_target_status.
15555 (info_program_command): Don't pass a target_waitstatus to
15556 get_last_target_status.
15557 * infrun.c (init_wait_for_inferior): Use
15558 nullify_last_target_wait_ptid.
15559 (get_last_target_status): Handle nullptr arguments.
15560 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15561 (print_stop_event): Don't pass a ptid to get_last_target_status.
15562 (normal_stop): Don't pass a ptid to get_last_target_status.
15563 * infrun.h (get_last_target_status, set_last_target_status): Move
15564 comments here and update.
15565 (nullify_last_target_wait_ptid): Declare.
15566 * linux-fork.c (fork_load_infrun_state): Remove local extern
15567 declaration of nullify_last_target_wait_ptid.
15568 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15569 to get_last_target_status.
15570
f3f8ece4
PA
155712020-01-10 Pedro Alves <palves@redhat.com>
15572
15573 * gdbthread.h (scoped_restore_current_thread)
15574 <dont_restore, restore, m_dont_restore>: Declare.
15575 * thread.c (thread_alive): Add assertion. Return bool.
15576 (switch_to_thread_if_alive): New.
15577 (prune_threads): Switch inferior/thread.
15578 (print_thread_info_1): Switch thread before calling target methods.
15579 (scoped_restore_current_thread::restore): New, factored out from
15580 ...
15581 (scoped_restore_current_thread::~scoped_restore_current_thread):
15582 ... this.
15583 (scoped_restore_current_thread::scoped_restore_current_thread):
15584 Add assertion.
15585 (thread_apply_all_command, thread_select): Use
15586 switch_to_thread_if_alive.
15587 * infrun.c (proceed, restart_threads, handle_signal_stop)
15588 (switch_back_to_stepped_thread): Switch current thread before
15589 calling target methods.
15590
db2d40f7
PA
155912020-01-10 Pedro Alves <palves@redhat.com>
15592
15593 * inferior.c (switch_to_inferior_no_thread): New function,
15594 factored out from ...
15595 (inferior_command): ... here.
15596 * inferior.h (switch_to_inferior_no_thread): Declare.
15597 * mi/mi-main.c (run_one_inferior): Use
15598 switch_to_inferior_no_thread.
15599
bd420a2d
PA
156002020-01-10 Pedro Alves <palves@redhat.com>
15601
15602 * infcmd.c (kill_command): Remove dead code.
15603
ddf5db90
PA
156042020-01-10 Pedro Alves <palves@redhat.com>
15605
15606 * remote.c (remote_target::mourn_inferior): No longer check
15607 whether the target is running.
15608
5018ce90
PA
156092020-01-10 Pedro Alves <palves@redhat.com>
15610
15611 * corelow.c (core_target::has_execution): Change parameter type to
15612 inferior pointer.
15613 * inferior.c (number_of_live_inferiors): Use
15614 inferior::has_execution instead of target_has_execution_1.
15615 * inferior.h (inferior::has_execution): New.
15616 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15617 inferior::has_execution instead of target_has_execution_1.
15618 * process-stratum-target.c
15619 (process_stratum_target::has_execution): Change parameter type to
15620 inferior pointer. Check the inferior's PID instead of
15621 inferior_ptid.
15622 * process-stratum-target.h
15623 (process_stratum_target::has_execution): Change parameter type to
15624 inferior pointer.
15625 * record-full.c (record_full_core_target::has_execution): Change
15626 parameter type to inferior pointer.
15627 * target.c (target_has_execution_1): Change parameter type to
15628 inferior pointer.
15629 (target_has_execution_current): Adjust.
15630 * target.h (target_ops::has_execution): Change parameter type to
15631 inferior pointer.
15632 (target_has_execution_1): Change parameter type to inferior
15633 pointer. Change return type to bool.
15634 * tracefile.h (tracefile_target::has_execution): Change parameter
15635 type to inferior pointer.
15636
74375d18
PA
156372020-01-10 Pedro Alves <palves@redhat.com>
15638
15639 * exceptions.c (print_flush): Remove current_top_target() check.
15640
acdf84a6
PA
156412020-01-10 Pedro Alves <palves@redhat.com>
15642
15643 * remote.c (show_remote_exec_file): Show the current inferior's
15644 exec-file instead of the command variable's value.
15645
ec506636
PA
156462020-01-10 Pedro Alves <palves@redhat.com>
15647
15648 * record-full.c (record_full_resume_ptid): New global.
15649 (record_full_target::resume): Set it.
15650 (record_full_wait_1): Use record_full_resume_ptid instead of
15651 inferior_ptid.
15652
873657b9
PA
156532020-01-10 Pedro Alves <palves@redhat.com>
15654
15655 * gdbthread.h (scoped_restore_current_thread)
15656 <dont_restore, restore, m_dont_restore>: Declare.
15657 * thread.c (thread_alive): Add assertion. Return bool.
15658 (switch_to_thread_if_alive): New.
15659 (prune_threads): Switch inferior/thread.
15660 (print_thread_info_1): Switch thread before calling target methods.
15661 (scoped_restore_current_thread::restore): New, factored out from
15662 ...
15663 (scoped_restore_current_thread::~scoped_restore_current_thread):
15664 ... this.
15665 (scoped_restore_current_thread::scoped_restore_current_thread):
15666 Add assertion.
15667 (thread_apply_all_command, thread_select): Use
15668 switch_to_thread_if_alive.
15669
7f0ae84c
GB
156702020-01-10 George Barrett <bob@bob131.so>
15671
15672 * stap-probe.c (stap_modify_semaphore): Don't check for null
15673 semaphores.
15674 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15675 for null semaphores.
15676
f5a7c406
AB
156772020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15678
15679 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15680 all source windows, and maintain horizontal scroll status while
15681 doing so.
15682
9ae6bf64
TT
156832020-01-09 Tom Tromey <tom@tromey.com>
15684
15685 PR tui/18932:
15686 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15687 update_source_window, not print_source_lines.
15688
b2efe70c
AB
156892020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15690
15691 * tui/tui.c (tui_enable): Register tui hooks after calling
15692 tui_display_main.
15693
5f23a082
CB
156942020-01-09 Christian Biesinger <cbiesinger@google.com>
15695
15696 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15697
3061113b
SM
156982020-01-08 Simon Marchi <simon.marchi@efficios.com>
15699
15700 * thread.c (print_thread_info_1): Fix indentation.
15701
57d75002
CB
157022020-01-09 Christian Biesinger <cbiesinger@google.com>
15703
15704 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15705 unique_xmalloc_ptr outside the if to always free the demangled name.
15706
6a053cb1
TT
157072020-01-08 Tom Tromey <tromey@adacore.com>
15708
15709 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15710 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15711 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15712 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15713 Remove.
15714 (section_offsets): New typedef.
15715 * symtab.c (fixup_section, get_msymbol_address): Update.
15716 * symmisc.c (dump_msymbols): Update.
15717 * symfile.h (relative_addr_info_to_section_offsets)
15718 (symfile_map_offsets_to_segments): Update.
15719 * symfile.c (build_section_addr_info_from_objfile)
15720 (init_objfile_sect_indices): Update.
15721 (struct place_section_arg): Change type of "offsets".
15722 (place_section): Update.
15723 (relative_addr_info_to_section_offsets): Change type of
15724 "section_offsets". Remove "num_sections" parameter.
15725 (default_symfile_offsets, syms_from_objfile_1)
15726 (set_objfile_default_section_offset): Update.
15727 (reread_symbols): No need to preserve section offsets by hand.
15728 (symfile_map_offsets_to_segments): Change type of "offsets".
15729 * stap-probe.c (relocate_address): Update.
15730 * stabsread.h (process_one_symbol): Update.
15731 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15732 (solib_target_relocate_section_addresses): Update.
15733 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15734 Update.
15735 * solib-frv.c (frv_relocate_main_executable): Update.
15736 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15737 * solib-aix.c (solib_aix_get_section_offsets): Change return
15738 type.
15739 (solib_aix_solib_create_inferior_hook): Update.
15740 * remote.c (remote_target::get_offsets): Update.
15741 * psymtab.c (find_pc_sect_psymtab): Update.
15742 * psympriv.h (struct partial_symbol) <address, text_low,
15743 text_high>: Update.
15744 * objfiles.h (obj_section_offset): Update.
15745 (struct objfile) <section_offsets>: Change type.
15746 <num_sections>: Remove.
15747 (objfile_relocate): Update.
15748 * objfiles.c (entry_point_address_query): Update
15749 (relocate_one_symbol): Change type of "section_offsets".
15750 (objfile_relocate1, objfile_relocate1): Change type of
15751 "new_offsets".
15752 (objfile_rebase1): Update.
15753 * mipsread.c (mipscoff_symfile_read): Update.
15754 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15755 parameter.
15756 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15757 (parse_external, psymtab_to_symtab_1): Update.
15758 * machoread.c (macho_symfile_offsets): Update.
15759 * ia64-tdep.c (ia64_find_unwind_table): Update.
15760 * hppa-tdep.c (read_unwind_info): Update.
15761 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15762 * dwarf2read.c (create_addrmap_from_index)
15763 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15764 (process_psymtab_comp_unit_reader, add_partial_symbol)
15765 (add_partial_subprogram, process_full_comp_unit)
15766 (read_file_scope, read_func_scope, read_lexical_block_scope)
15767 (read_call_site_scope, dwarf2_rnglists_process)
15768 (dwarf2_ranges_process, dwarf2_ranges_read)
15769 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15770 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15771 Update.
15772 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15773 Update.
15774 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15775 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15776 (process_one_symbol): Change type of "section_offsets".
15777 * ctfread.c (get_objfile_text_range): Update.
15778 * coffread.c (coff_symtab_read, enter_linenos)
15779 (process_coff_symbol): Update.
15780 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15781 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15782
456e800a
TT
157832020-01-08 Tom Tromey <tromey@adacore.com>
15784
15785 * dwarf2read.c (parse_macro_definition): Use std::string.
15786 (parse_macro_definition): Likewise.
15787
6dfa2fc2
TT
157882020-01-08 Tom Tromey <tromey@adacore.com>
15789
15790 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15791 (ATTR_ALLOC_CHUNK): Remove.
15792
421d1616
TT
157932020-01-08 Tom Tromey <tromey@adacore.com>
15794
15795 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15796
43816ebc
TT
157972020-01-08 Tom Tromey <tromey@adacore.com>
15798
15799 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15800 (dwarf2_compute_name, open_dwo_file): Likewise.
15801 (process_enumeration_scope): Use std::vector.
15802 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15803 (partial_die_info::fixup, dwarf2_start_subfile)
15804 (guess_full_die_structure_name, dwarf2_name): Likewise.
15805 (determine_prefix): Update.
15806 (guess_full_die_structure_name): Make return type const.
15807 (partial_die_full_name): Return unique_xmalloc_ptr.
15808 (DW_FIELD_ALLOC_CHUNK): Remove.
15809
4212d509
TT
158102020-01-07 Tom Tromey <tromey@adacore.com>
15811
15812 PR build/24937:
15813 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15814
06a6207a
JT
158152020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15816
15817 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15818
153d79c4
AB
158192020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15820
15821 * stack.c (print_frame_info): Move disassemble_next_line code
15822 inside source_print block.
15823
66182876
EZ
158242020-01-06 Eli Zaretskii <eliz@gnu.org>
15825
15826 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15827 gdb/signals.h, as we are now using native signal symbols.
15828
cbfa8581
SV
158292020-01-06 Shahab Vahedi <shahab@synopsys.com>
15830
15831 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15832 overflow by an early check of content vs threshold.
aac66a4c 15833 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15834 Likewise.
15835
3f602821
EZ
158362020-01-06 Eli Zaretskii <eliz@gnu.org>
15837
15838 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15839
a08c904d
JT
158402020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15841
15842 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15843 export table if no section contains it's RVA.
15844
89a65580
EZ
158452020-01-06 Eli Zaretskii <eliz@gnu.org>
15846
15847 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15848
8b7fcda2
HD
158492020-01-06 Hannes Domani <ssbssa@yahoo.de>
15850
15851 * source.c (print_source_lines_base): Set last_line_listed.
15852
a61b4f69
SV
158532020-01-06 Shahab Vahedi <shahab@synopsys.com>
15854
15855 * tui/tui-disasm.c: Remove trailing spaces.
15856
559e7e50
EZ
158572020-01-06 Eli Zaretskii <eliz@gnu.org>
15858 Pedro Alves <palves@redhat.com>
15859
15860 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15861 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15862 (windows_gdb_signal_to_target): New function, uses the above
15863 enumeration to convert GDB internal signal codes to equivalent
15864 Windows codes.
15865 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15866 * windows-nat.c: Include "gdb_wait.h".
15867 (get_windows_debug_event): Extract the fatal exception from the
15868 exit status and convert to the equivalent Posix signal number.
15869 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15870 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15871 * gdbsupport/gdb_wait.c: New file, implements
15872 windows_status_to_termsig.
15873 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15874 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15875
f2302a34
AB
158762020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15877
15878 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15879 show_layout.
15880
6a5206eb
LM
158812020-01-05 Luis Machado <luis.machado@linaro.org>
15882
15883 * aarch64-linux-nat.c
15884 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15885 and bfd_mach_aarch64.
15886
6ec1d75e
PW
158872020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15888
15889 * ui-file.c (stdio_file::can_emit_style_escape)
15890 (tee_file::can_emit_style_escape): Ensure style is used also on
15891 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15892 to gdb_stdout.
15893 * main.c (set_gdb_data_directory): Use file style to output the
15894 warning that the given pathname is not a directory.
15895 * top.c (show_history_filename, gdb_safe_append_history)
15896 (show_gdb_datadir): Use file style.
15897
44f81a76
HD
158982020-01-03 Hannes Domani <ssbssa@yahoo.de>
15899
15900 * solib-target.c (struct lm_info_target):
15901 Change offsets to be a unique_xmalloc_ptr.
15902 (solib_target_relocate_section_addresses): Update.
15903
25057eb0
HD
159042020-01-03 Hannes Domani <ssbssa@yahoo.de>
15905
15906 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15907
6e2118f5
BE
159082020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15909
15910 * MAINTAINERS (Write After Approval): Add myself.
15911
8133c7dc
LM
159122020-01-02 Luis Machado <luis.machado@linaro.org>
15913
15914 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15915 Cell BE architecture.
15916 * target.h (struct target_ops) <thread_architecture>: Likewise.
15917
48189bec
HD
159182020-01-01 Hannes Domani <ssbssa@yahoo.de>
15919
15920 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15921
ead1063b
HD
159222020-01-01 Hannes Domani <ssbssa@yahoo.de>
15923
15924 * MAINTAINERS (Write After Approval): Add myself.
15925
e5d78223
JB
159262020-01-01 Joel Brobecker <brobecker@adacore.com>
15927
15928 * gdbarch.sh: Update copyright year range of generated files.
15929
b811d2c2
JB
159302020-01-01 Joel Brobecker <brobecker@adacore.com>
15931
15932 Update copyright year range in all GDB files.
15933
5f4def5c
JB
159342020-01-01 Joel Brobecker <brobecker@adacore.com>
15935
15936 * copyright.py: Convert to Python 3.
15937
51fd4002
JB
159382020-01-01 Joel Brobecker <brobecker@adacore.com>
15939
15940 * copyright.py: Adapt after move of gnulib directory from gdb
15941 directory to toplevel directory.
15942
5fb651f2
JB
159432020-01-01 Joel Brobecker <brobecker@adacore.com>
15944
15945 * copyright.py (main): Exit if run from the wrong directory.
15946
5dd8bf88
JB
159472020-01-01 Joel Brobecker <brobecker@adacore.com>
15948
15949 * top.c (print_gdb_version): Change copyright year to 2020.
15950
9f71dacb 159512020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15952
9f71dacb 15953 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15954
9f71dacb 15955For older changes see ChangeLog-2019.
c906108c
SS
15956\f
15957Local Variables:
15958mode: change-log
15959left-margin: 8
15960fill-column: 74
15961version-control: never
57da7796 15962coding: utf-8
c906108c 15963End: