ld: Pass -fno-lto to non LTO tests
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6b4c676c
AB
12020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
4 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
5 * f-exp.y (arglist): Allow for a series of subranges.
6 (subrange): Add cases for subranges with strides.
7 * f-lang.c (value_f90_subarray): Catch use of array strides and
8 throw an error.
9 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
10
f2d8e4c5
AB
112020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
12
13 * expprint.c (print_subexp_standard): Change enum range_type to
14 range_flag and rename variables to match.
15 (dump_subexp_body_standard): Likewise.
16 * expression.h (enum range_type): Rename to...
17 (enum range_flag): ...this.
18 (range_types): Rename to...
19 (range_flags): ...this.
20 * f-lang.c (value_f90_subarray): Change enum range_type to
21 range_flag and rename variables to match.
22 * parse.c (operator_length_standard): Likewise.
23 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
24 range_type to range_flag.
25 * rust-lang.c (rust_evaluate_funcall): Likewise.
26 (rust_range): Likewise.
27 (rust_compute_range): Likewise.
28 (rust_subscript): Likewise.
29
2f1b18db
AB
302020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * expprint.c (print_subexp_standard): Update to reflect changes to
33 enum range_type.
34 (dump_subexp_body_standard): Likewise.
35 * expression.h (enum range_type): Convert to a bit field enum, and
36 make the enum unsigned.
37 * f-exp.y (subrange): Update to reflect changes to enum
38 range_type.
39 * f-lang.c (value_f90_subarray): Likewise.
40 * parse.c (operator_length_standard): Likewise.
41 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
42 * rust-lang.c (rust_range): Likewise.
43 (rust_compute_range): Likewise.
44 (rust_subscript): Likewise.
45
a46d1843
SM
462020-10-21 Simon Marchi <simon.marchi@efficios.com>
47
48 * infrun.c (displaced_step_in_progress_thread): Fix comment.
49 (displaced_step_in_progress): Fix comment.
50
c21f37a8
SM
512020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * gdbarch.sh (make_corefile_notes): Return unique pointer.
54 * gdbarch.c: Re-generate.
55 * gdbarch.h: Re-generate.
56 * gcore.c (write_gcore_file_1): Adjust.
57 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
58 constructor.
59 <note_data>: Change type to unique pointer.
60 <abort_iteration>: Change type to bool.
61 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
62 (fbsd_collect_thread_registers): Return void, adjust.
63 (struct fbsd_corefile_thread_data): Add construtor.
64 <note_data>: Change type to unique pointer.
65 (fbsd_corefile_thread): Adjust.
66 (fbsd_make_corefile_notes): Return unique pointer, adjust.
67 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
68 to unique pointer, adjust.
69 (struct linux_collect_regset_section_cb_data): Add constructor.
70 <note_data>: Change type to unique pointer.
71 <abort_iteration>: Change type to bool.
72 (linux_collect_thread_registers): Return void, adjust.
73 (struct linux_corefile_thread_data): Add constructor.
74 <note_data>: Change type to unique pointer.
75 (linux_corefile_thread): Adjust.
76 (linux_make_corefile_notes): Return unique pointer, adjust.
77
07fbbd01
SM
782020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
79
80 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
81 * gdbarch.c: Re-generate.
82 * gdbarch.h: Re-generate.
83 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
84 bool.
85 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
86 Likewise.
87 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
88 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
89 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
90 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
91
39535193
SM
922020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * gdbarch.sh: Make generated predicates return bool.
95 * gdbarch.c: Re-generate.
96 * gdbarch.h: Re-generate.
97
ad523d01
TT
982020-10-20 Tom Tromey <tom@tromey.com>
99
100 * varobj-iter.h (struct varobj_item): Remove typedef.
101
c4464ade
SM
1022020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * infrun.c (currently_stepping): Change int to bool
105 (maybe_software_singlestep): Likewise.
106 (show_stop_on_solib_events): Likewise.
107 (stepping_past_nonsteppable_watchpoint): Likewise.
108 (displaced_step_in_progress_any_inferior): Likewise.
109 (displaced_step_in_progress_thread): Likewise.
110 (keep_going_stepped_thread): Likewise.
111 (thread_still_needs_step_over): Likewise.
112 (start_step_over): Likewise.
113 (do_target_resume): Likewise.
114 (resume_1): Likewise.
115 (clear_proceed_status): Likewise.
116 (thread_still_needs_step_over_bp): Likewise.
117 (proceed): Likewise.
118 (switch_back_to_stepped_thread): Likewise.
119 (adjust_pc_after_break): Likewise.
120 (stepped_in_from): Likewise.
121 (handle_stop_requested): Likewise.
122 (handle_syscall_event): Likewise.
123 (handle_no_resumed): Likewise.
124 (handle_inferior_event): Likewise.
125 (finish_step_over): Likewise.
126 (handle_signal_stop): Likewise.
127 (process_event_stop_test): Likewise.
128
2eb20436
SM
1292020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
130
131 * infrun.c (get_displaced_stepping_state): Fix comment.
132
e0c45ded
AS
1332020-10-20 Andreas Schwab <schwab@linux-m68k.org>
134
135 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
136
22cc388e
TT
1372020-10-19 Tom Tromey <tromey@adacore.com>
138
139 PR tui/26719
140 * tui/tui-winsource.h (struct tui_source_window_base)
141 <refresh_window>: Rename from refresh_pad.
142 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
143 Rename from refresh_pad.
144 (tui_source_window_base::show_source_content)
145 (tui_source_window_base::do_scroll_horizontal): Update.
146
3c6eb4d4
TBA
1472020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
148
149 * thread.c (_initialize_thread): Fine-tune the help text of
150 'info threads'.
151
26703721
TBA
1522020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
153
154 * frame.c: Remove the unused 'uinteger_option_def' type alias.
155
61c26be8
MS
1562020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
157
158 * breakpoint.c (handle_jit_event): Add an argument, change how
159 `jit_event_handler` is called.
160
932539d7
TT
1612020-10-17 Tom Tromey <tom@tromey.com>
162
163 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
164 (scan_xcoff_symtab): Update.
165 * psymtab.h (class psymtab_storage) <global_psymbols,
166 static_psymbols, current_global_psymbols,
167 current_static_psymbols>: Remove.
168 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
169 (match_partial_symbol, lookup_partial_symbol): Update.
170 (print_partial_symbols): Change parameters.
171 (dump_psymtab, recursively_search_psymtabs)
172 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
173 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
174 (concat): Remove.
175 (end_psymtab_common): Simplify.
176 (append_psymbol_to_list): Change parameters.
177 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
178 (init_psymbol_list): Simplify.
179 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
180 * psympriv.h (struct partial_symtab) <empty>: New method.
181 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
182 Remove.
183 <global_psymbols, static_psymbols>: New members.
184 <add_psymbol>: New methods.
185 (add_psymbol_to_list): Don't declare.
186 (psymbol_placement): Move earlier.
187 * mdebugread.c (parse_partial_symbols): Update.
188 (handle_psymbol_enumerators): Change parameters.
189 (mdebug_expand_psymtab): Update.
190 * dwarf2/read.c (process_psymtab_comp_unit_reader)
191 (add_partial_symbol): Update.
192 * dwarf2/index-write.c (write_psymbols): Change parameters.
193 (write_one_signatured_type): Update.
194 (recursively_count_psymbols): Update.
195 (recursively_write_psymbols): Update.
196 (class debug_names) <recursively_write_psymbols>: Update.
197 <write_psymbols>: Change parameters.
198 <write_one_signatured_type>: Update.
199 * dbxread.c (read_dbx_symtab): Update.
200 (dbx_end_psymtab): Use partial_symtab::empty.
201 * ctfread.c (struct ctf_context) <pst>: New member.
202 (create_partial_symtab): Set it.
203 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
204 (scan_partial_symbols): Use the psymtab's context. Update.
205
cfabbd35
TT
2062020-10-17 Tom Tromey <tom@tromey.com>
207
208 * valprint.c (generic_value_print): Remove comment.
209 * m2-valprint.c (m2_value_print_inner): Remove comment.
210 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
211 type.
212
520596f2
TV
2132020-10-17 Tom de Vries <tdevries@suse.de>
214
215 PR symtab/26317
216 * source.c (select_source_symtab): Handling sal.symtab == NULL for
217 symbol main.
218
76547ab3
TV
2192020-10-14 Tom de Vries <tdevries@suse.de>
220
221 PR gdb/26733
222 * solib.c (solib_contains_address_p): Handle
223 'solib->sections == nullptr'.
224
d3a07122
SM
2252020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
226
227 PR gdb/26642
228 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
229 target can't do async.
230 * target.c (target_wait): Assert that we don't pass
231 TARGET_WNOHANG to a target that can't async.
232
1b71cfcf
KR
2332020-10-13 Kamil Rytarowski <n54@gmx.com>
234
235 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
236 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
237 * alpha-bsd-nat.c: Adjust include.
238 * alpha-bsd-tdep.h: Adjust comment.
239 * alpha-nbsd-tdep.c: Rename to ...
240 * alpha-netbsd-tdep.c: ... this, adjust include.
241 * amd64-nbsd-nat.c: Rename to ...
242 * amd64-netbsd-nat.c: ... this, adjust include.
243 * amd64-nbsd-tdep.c: Rename to ...
244 * amd64-netbsd-tdep.c: ... this, adjust include.
245 * amd64-tdep.h: Adjust include.
246 * arm-nbsd-nat.c: Rename to ...
247 * arm-netbsd-nat.c: ... this, adjust include.
248 * arm-nbsd-tdep.c: Rename to ...
249 * arm-netbsd-tdep.c: ... this, adjust include.
250 * arm-nbsd-tdep.h: Rename to ...
251 * arm-netbsd-tdep.h: ... this, adjust include.
252 * configure.nat: Adjust file lists.
253 * configure.tgt: Likewise.
254 * hppa-nbsd-nat.c: Rename to ...
255 * hppa-netbsd-nat.c: ... this, adjust include.
256 * hppa-nbsd-tdep.c: Rename to ...
257 * hppa-netbsd-tdep.c: ... this, adjust include.
258 * i386-nbsd-nat.c: Rename to ...
259 * i386-netbsd-nat.c: ... this, adjust include.
260 * i386-nbsd-tdep.c: Rename to ...
261 * i386-netbsd-tdep.c: ... this, adjust include.
262 * m68k-bsd-nat.c: Adjust include.
263 * mips-nbsd-nat.c: Rename to ...
264 * mips-netbsd-nat.c: ... this, adjust include.
265 * mips-nbsd-tdep.c: Rename to ...
266 * mips-netbsd-tdep.c: ... this, adjust include.
267 * mips-nbsd-tdep.h: Rename to ...
268 * mips-netbsd-tdep.h: ... this.
269 * nbsd-nat.c: Rename to ...
270 * netbsd-nat.c: ... this, adjust include.
271 * nbsd-nat.h: Rename to ...
272 * netbsd-nat.h: ... this, adjust include.
273 * nbsd-tdep.c: Rename to ...
274 * netbsd-tdep.c: ... this, adjust include.
275 * nbsd-tdep.h: Rename to ...
276 * netbsd-tdep.h: ... this.
277 * ppc-nbsd-nat.c: Rename to ...
278 * ppc-netbsd-nat.c: ... this, adjust include.
279 * ppc-nbsd-tdep.c: Rename to ...
280 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
281 * ppc-nbsd-tdep.h: Rename to ...
282 * ppc-netbsd-tdep.h: ... this.
283 * sh-nbsd-nat.c: Rename to ...
284 * sh-netbsd-nat.c: ... this, adjust include.
285 * sh-nbsd-tdep.c: Rename to ...
286 * sh-netbsd-tdep.c: ... this, adjust include.
287 * sparc-nbsd-nat.c: Rename to ...
288 * sparc-netbsd-nat.c: ... this.
289 * sparc-nbsd-tdep.c: Rename to ...
290 * sparc-netbsd-tdep.c: ... this, adjust include.
291 * sparc64-nbsd-nat.c: Rename to ...
292 * sparc64-netbsd-nat.c: ... this.
293 * sparc64-nbsd-tdep.c: Rename to ...
294 * sparc64-netbsd-tdep.c: ... this, adjust include.
295 * sparc64-tdep.h: Adjust comment.
296 * vax-bsd-nat.c: Adjust include.
297 * vax-nbsd-tdep.c: Rename to ...
298 * vax-netbsd-tdep.c: ... this, adjust include.
299
d7a78e5c
TT
3002020-10-12 Tom Tromey <tom@tromey.com>
301
302 * target.h (struct target_ops) <get_section_table>: Update.
303 (target_get_section_table): Update.
304 * target.c (target_get_section_table, target_section_by_addr)
305 (memory_xfer_partial_1): Update.
306 * target-section.h (target_section_table): Now an alias.
307 * target-delegates.c: Rebuild.
308 * target-debug.h (target_debug_print_target_section_table_p):
309 Rename from target_debug_print_struct_target_section_table_p.
310 * symfile.c (build_section_addr_info_from_section_table): Update.
311 * solib.c (solib_map_sections, solib_contains_address_p): Update.
312 * solib-svr4.c (scan_dyntag): Update.
313 * solib-dsbt.c (scan_dyntag): Update.
314 * remote.c (remote_target::remote_xfer_live_readonly_partial):
315 Update.
316 * record-full.c (record_full_core_target::xfer_partial): Update.
317 * progspace.h (struct program_space) <target_sections>: Update.
318 * exec.h (print_section_info): Update.
319 * exec.c (exec_target::close, build_section_table)
320 (add_target_sections, add_target_sections_of_objfile)
321 (remove_target_sections, exec_on_vfork)
322 (section_table_available_memory)
323 (section_table_xfer_memory_partial)
324 (exec_target::get_section_table, exec_target::xfer_partial)
325 (print_section_info, set_section_command)
326 (exec_set_section_address, exec_target::has_memory): Update.
327 * corelow.c (core_target::build_file_mappings)
328 (core_target::xfer_partial, core_target::info_proc_mappings)
329 (core_target::info_proc_mappings): Update.
330 * bfd-target.c (class target_bfd): Update
331
eda214ce
TT
3322020-10-12 Tom Tromey <tom@tromey.com>
333
334 * progspace.c (program_space::~program_space): Don't call
335 clear_section_table.
336 * exec.h (clear_section_table): Don't declare.
337 * exec.c (exec_target::close): Update.
338 (clear_section_table): Remove.
339
91840ee3
TT
3402020-10-12 Tom Tromey <tom@tromey.com>
341
342 * exec.c (add_target_sections_of_objfile): Simplify.
343
2d128614
TT
3442020-10-12 Tom Tromey <tom@tromey.com>
345
346 * solib.c (solib_map_sections): Update.
347 * record-full.c (record_full_core_open_1): Update.
348 * exec.h (build_section_table): Return a target_section_table.
349 * exec.c (exec_file_attach): Update.
350 (build_section_table): Return a target_section_table.
351 * corelow.c (core_target::core_target): Update.
352 * bfd-target.c (target_bfd::target_bfd): Update.
353
bb2a6777
TT
3542020-10-12 Tom Tromey <tom@tromey.com>
355
356 * target.c (target_section_by_addr, memory_xfer_partial_1):
357 Update.
358 * target-section.h (struct target_section_table): Use
359 std::vector.
360 * symfile.h (build_section_addr_info_from_section_table): Take a
361 target_section_table.
362 * symfile.c (build_section_addr_info_from_section_table): Take a
363 target_section_table.
364 * solist.h (struct so_list) <sections>: Change type.
365 <sections_end>: Remove.
366 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
367 (solib_contains_address_p): Update.
368 * solib-svr4.c (scan_dyntag): Update.
369 * solib-dsbt.c (scan_dyntag): Update.
370 * remote.c (remote_target::remote_xfer_live_readonly_partial):
371 Update.
372 * record-full.c (record_full_core_start, record_full_core_end):
373 Remove.
374 (record_full_core_sections): New global.
375 (record_full_core_open_1, record_full_core_target::xfer_partial):
376 Update.
377 * exec.h (build_section_table, section_table_xfer_memory_partial)
378 (add_target_sections): Take a target_section_table.
379 * exec.c (exec_file_attach, clear_section_table): Update.
380 (resize_section_table): Remove.
381 (build_section_table, add_target_sections): Take a
382 target_section_table.
383 (add_target_sections_of_objfile, remove_target_sections)
384 (exec_on_vfork): Update.
385 (section_table_available_memory): Take a target_section_table.
386 (section_table_read_available_memory): Update.
387 (section_table_xfer_memory_partial): Take a target_section_table.
388 (print_section_info, set_section_command)
389 (exec_set_section_address, exec_target::has_memory): Update.
390 * corelow.c (class core_target) <m_core_section_table,
391 m_core_file_mappings>: Remove braces.
392 <~core_target>: Remove.
393 (core_target::core_target): Update.
394 (core_target::~core_target): Remove.
395 (core_target::build_file_mappings)
396 (core_target::xfer_memory_via_mappings)
397 (core_target::xfer_partial, core_target::info_proc_mappings):
398 Update.
399 * bfd-target.c (target_bfd::xfer_partial): Update.
400 (target_bfd::target_bfd): Update.
401 (target_bfd::~target_bfd): Remove.
402
7b466b10
TT
4032020-10-12 Tom Tromey <tom@tromey.com>
404
405 * target.h (struct target_section, struct target_section_table):
406 Move to target-section.h.
407 * target-section.h: New file.
408
87a37e5e
PA
4092020-10-12 Pedro Alves <pedro@palves.net>
410
411 PR exp/26602
412 * valops.c (struct struct_field_searcher): New.
413 (update_search_result): Rename to ...
414 (struct_field_searcher::update_result): ... this. Simplify
415 prototype. Record all found fields.
416 (do_search_struct_field): Rename to ...
417 (struct_field_searcher::search): ... this. Simplify prototype.
418 Maintain stack of visited baseclass path. Call update_result for
419 fields too. Keep searching fields in baseclasses instead of
420 stopping at the first found field.
421 (search_struct_field): Use struct_field_searcher. When looking
422 for fields, report ambiguous access attempts.
423
9370fd51
AB
4242020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * frame.c (inside_main_func): Check full symbols as well as
427 minimal symbols.
428
59c8a30b
JB
4292020-10-09 Joel Brobecker <brobecker@adacore.com>
430
431 * ada-lang.c (advance_wild_match): Rewrite the function's
432 description. Change the type of target0, t0 and t1 to char.
433
7c184d33
TT
4342020-10-09 Tom Tromey <tromey@adacore.com>
435
436 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
437
5c4258f4
TT
4382020-10-09 Tom Tromey <tromey@adacore.com>
439
440 * ada-lang.h (ada_encode): Return std::string.
441 * ada-lang.c (ada_encode_1): Return std::string.
442 (ada_encode): Likewise.
443 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
444 Update.
445 * ada-exp.y (block_lookup, write_var_or_type): Update.
446
3d87245c
HD
4472020-10-09 Hannes Domani <ssbssa@yahoo.de>
448
449 PR exp/26714
450 * printcmd.c (print_formatted): Handle void results as
451 unformatted prints.
452
bbb826f5
AB
4532020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 * arch/aarch32.c (aarch32_create_target_description): Release the
456 target_desc_up as late as possible.
457 * arch/aarch64.c (aarch64_create_target_description): Likewise.
458 * arch/amd64.c (amd64_create_target_description): Likewise.
459 * arch/arc.c (arc_create_target_description): Return a
460 target_desc_up, don't release it.
461 * arch/arc.h (arc_create_target_description): Update declaration.
462 (arc_lookup_target_description): Move target_desc_up into the
463 cache, and return a borrowed pointer.
464 * arch/arm.c (arm_create_target_description): Release the
465 target_desc_up as late as possible.
466 * arch/i386.c (i386_create_target_description): Likewise.
467 * arch/riscv.h (riscv_create_target_description): Update
468 declaration to match definition.
469 * arch/tic6x.c (tic6x_create_target_description): Release the
470 target_desc_up as late as possible.
471
361cb219
AB
4722020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
473
474 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
475 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
476
f5c4b229
JV
4772020-10-09 Jan Vrany <jan.vrany@labware.com>
478
479 * source.c (directory_command): Notify observers that "directories"
480 parameter has changed.
481
b2701685
TT
4822020-10-08 Tom Tromey <tom@tromey.com>
483
484 * cli/cli-cmds.c (print_disassembly): Style function name and
485 addresses. Add _() wrappers.
486
ada508b6
SV
4872020-10-08 Shahab Vahedi <shahab@synopsys.com>
488
489 * NEWS: Mention ARC support in GDBserver.
490
51a948fd
AB
4912020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
492
493 * arch/aarch32.c (aarch32_create_target_description): Release
494 unique_ptr returned from allocate_target_description.
495 * arch/aarch64.c (aarch64_create_target_description): Likewise.
496 * arch/amd64.c (amd64_create_target_description): Likewise.
497 * arch/arc.c (arc_create_target_description): Likewise.
498 * arch/arm.c (arm_create_target_description): Likewise.
499 * arch/i386.c (i386_create_target_description): Likewise.
500 * arch/riscv.c (riscv_create_target_description): Update return
501 type. Handle allocate_target_description returning a unique_ptr.
502 (riscv_lookup_target_description): Update to handle unique_ptr.
503 * arch/tic6x.c (tic6x_create_target_description): Release
504 unique_ptr returned from allocate_target_description.
505 * features/microblaze-with-stack-protect.c: Regenerate.
506 * features/microblaze.c: Regenerate.
507 * features/mips-dsp-linux.c: Regenerate.
508 * features/mips-linux.c: Regenerate.
509 * features/mips64-dsp-linux.c: Regenerate.
510 * features/mips64-linux.c: Regenerate.
511 * features/nds32.c: Regenerate.
512 * features/nios2.c: Regenerate.
513 * features/or1k.c: Regenerate.
514 * features/rs6000/powerpc-32.c: Regenerate.
515 * features/rs6000/powerpc-32l.c: Regenerate.
516 * features/rs6000/powerpc-403.c: Regenerate.
517 * features/rs6000/powerpc-403gc.c: Regenerate.
518 * features/rs6000/powerpc-405.c: Regenerate.
519 * features/rs6000/powerpc-505.c: Regenerate.
520 * features/rs6000/powerpc-601.c: Regenerate.
521 * features/rs6000/powerpc-602.c: Regenerate.
522 * features/rs6000/powerpc-603.c: Regenerate.
523 * features/rs6000/powerpc-604.c: Regenerate.
524 * features/rs6000/powerpc-64.c: Regenerate.
525 * features/rs6000/powerpc-64l.c: Regenerate.
526 * features/rs6000/powerpc-7400.c: Regenerate.
527 * features/rs6000/powerpc-750.c: Regenerate.
528 * features/rs6000/powerpc-860.c: Regenerate.
529 * features/rs6000/powerpc-altivec32.c: Regenerate.
530 * features/rs6000/powerpc-altivec32l.c: Regenerate.
531 * features/rs6000/powerpc-altivec64.c: Regenerate.
532 * features/rs6000/powerpc-altivec64l.c: Regenerate.
533 * features/rs6000/powerpc-e500.c: Regenerate.
534 * features/rs6000/powerpc-e500l.c: Regenerate.
535 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
536 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
537 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
538 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
539 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
540 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
541 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
542 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
543 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
544 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
545 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
546 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
547 * features/rs6000/powerpc-vsx32.c: Regenerate.
548 * features/rs6000/powerpc-vsx32l.c: Regenerate.
549 * features/rs6000/powerpc-vsx64.c: Regenerate.
550 * features/rs6000/powerpc-vsx64l.c: Regenerate.
551 * features/rs6000/rs6000.c: Regenerate.
552 * features/rx.c: Regenerate.
553 * features/s390-gs-linux64.c: Regenerate.
554 * features/s390-linux32.c: Regenerate.
555 * features/s390-linux32v1.c: Regenerate.
556 * features/s390-linux32v2.c: Regenerate.
557 * features/s390-linux64.c: Regenerate.
558 * features/s390-linux64v1.c: Regenerate.
559 * features/s390-linux64v2.c: Regenerate.
560 * features/s390-te-linux64.c: Regenerate.
561 * features/s390-tevx-linux64.c: Regenerate.
562 * features/s390-vx-linux64.c: Regenerate.
563 * features/s390x-gs-linux64.c: Regenerate.
564 * features/s390x-linux64.c: Regenerate.
565 * features/s390x-linux64v1.c: Regenerate.
566 * features/s390x-linux64v2.c: Regenerate.
567 * features/s390x-te-linux64.c: Regenerate.
568 * features/s390x-tevx-linux64.c: Regenerate.
569 * features/s390x-vx-linux64.c: Regenerate.
570 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
571 from allocate_target_description.
572 * target-descriptions.c (allocate_target_description): Update
573 return type.
574 (print_c_tdesc::visit_pre): Release unique_ptr returned from
575 allocate_target_description.
576
485c47e5
TT
5772020-10-07 Tom Tromey <tromey@adacore.com>
578
579 * unittests/search-memory-selftests.c: New file.
580 * Makefile.in (SELFTESTS_SRCS): Add
581 unittests/search-memory-selftests.c.
582
3a135a91
TT
5832020-10-07 Tom Tromey <tromey@adacore.com>
584
585 PR gdb/16930:
586 * findcmd.c (_initialize_mem_search): Mention that the range is
587 inclusive.
588
4a72de73
TT
5892020-10-07 Tom Tromey <tromey@adacore.com>
590
591 * target.h (simple_search_memory): Don't declare.
592 * target.c (simple_search_memory): Move to gdbsupport.
593 (default_search_memory): Update.
594 * remote.c (remote_target::search_memory): Update.
595
a038ffd8
SM
5962020-10-07 Simon Marchi <simon.marchi@efficios.com>
597
598 * Makefile.in (COMPILE): Add CXXFLAGS.
599 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
600 (check-headers): Add CXXFLAGS.
601
cc463201
AK
6022020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
603
604 * arc-linux-tdep.h: New file.
605 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
606 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
607 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
608 arc_linux_gregset, arc_linux_v2_regset,
609 arc_linux_iterate_over_regset_sections,
610 arc_linux_core_read_description): Implement.
611 (arc_linux_init_osabi): Set iterate_over_regset_sections.
612 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
613 (arc_gdbarch_features_create): Add.
614 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
615
e4bd363f
SV
6162020-10-07 Shahab Vahedi <shahab@synopsys.com>
617
618 * arch/arc.h: Rename "arc_gdbarch_features" to
619 "arc_arch_features".
620 * arc-tdep.h: Likewise.
621 * arc-tdep.c: Likewise.
622
b68bef99
TBA
6232020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
624
625 * infcmd.c (attach_command): Remove the redundant call to
626 `clear_proceed_status`.
627
4641551a
KR
6282020-10-07 Kamil Rytarowski <n54@gmx.com>
629
630 * nat/netbsd-nat.c (write_memory, read_memory): Update.
631
91e5e8db
KR
6322020-10-07 Kamil Rytarowski <n54@gmx.com>
633
634 * nat/netbsd-nat.c (write_memory, read_memory): Add.
635 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
636 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
637
64c03bdb
SM
6382020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
641 (_initialize_break_catch_sig): Don't allocate array.
642
31a8f60f
AB
6432020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
644
645 * symtab.c (find_pc_line): Return unmapped addresses when the
646 requested address is also unmapped.
647
9e6dbd8b
SM
6482020-10-05 Simon Marchi <simon.marchi@efficios.com>
649
650 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
651 tui/tui-out.h.
652
a1d217e8
SM
6532020-10-05 Simon Marchi <simon.marchi@efficios.com>
654
655 * amd64-windows-tdep.c (amd64_windows_return_value): Use
656 type::is_vector instead of TYPE_VECTOR.
657
7d144117
SM
6582020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
659
660 * auto-load.c (auto_load_objfile_script_1): Don't use
661 debugfile_holder as temporary variable when stripping drive
662 letter.
663
cd096ec8
HD
6642020-10-05 Hannes Domani <ssbssa@yahoo.de>
665
666 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
667 Add TYPE_CODE_COMPLEX.
668 (amd64_windows_return_value): Fix types returned via XMM0.
669
b58e7f72
AH
6702020-10-05 Alan Hayward <alan.hayward@arm.com>
671
672 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
673 AArch64/ARM maintainers.
674
8d378f27
SM
6752020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
676
677 * NEWS: Mention set/show debug event-loop.
678
d5519913
TT
6792020-10-02 Tom Tromey <tromey@adacore.com>
680
681 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
682 REG_EXTENDED.
683
18b67edc
SM
6842020-10-02 Simon Marchi <simon.marchi@efficios.com>
685
686 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
687 * procfs.c (procfs_inferior_created): Remove.
688 (_initialize_procfs): Don't register procfs_inferior_created.
689
6b01403b
SM
6902020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * async-event.c (invoke_async_signal_handlers): Add debug
693 print.
694 (check_async_event_handlers): Likewise.
695 * event-top.c (show_debug_event_loop): New function.
696 (_initialize_event_top): Register "set debug event-loop"
697 setting.
698
ba988419
SM
6992020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
700
701 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
702 * debug.h: Remove.
703 * infrun.c: Include gdbsupport/common-debug.h.
704 * linux-nat.c: Likewise.
705
db20ebdf
SM
7062020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * async-event.h (create_async_signal_handler): Add name
709 parameter.
710 (create_async_event_handler): Likewise.
711 * async-event.c (struct async_signal_handler) <name>: New field.
712 (struct async_event_handler) <name>: New field.
713 (create_async_signal_handler): Assign name.
714 (create_async_event_handler): Assign name.
715 * event-top.c (async_init_signals): Pass name when creating
716 handler.
717 * infrun.c (_initialize_infrun): Likewise.
718 * record-btrace.c (record_btrace_push_target): Likewise.
719 * record-full.c (record_full_open): Likewise.
720 * remote-notif.c (remote_notif_state_allocate): Likewise.
721 * remote.c (remote_target::open_1): Likewise.
722 * tui/tui-win.c (tui_initialize_win): Likewise.
723
2554f6f5
SM
7242020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
725
726 * async-event.c (initialize_async_signal_handlers): Pass name to
727 add_file_handler
728 * event-top.c (ui_register_input_event_handler): Likewise.
729 * linux-nat.c (linux_nat_target::async): Likewise.
730 * run-on-main-thread.c (_initialize_run_on_main_thread):
731 Likewise
732 * ser-base.c (reschedule): Likewise.
733 (ser_base_async): Likewise.
734 * tui/tui-io.c: Likewise.
735 * top.h (struct ui) <num>: New field.
736 * top.c (highest_ui_num): New variable.
737 (ui::ui): Initialize num.
738
a7aba266
SM
7392020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
740
741 * observable.h <inferior_created>: Remove parameters. Update all
742 listeners.
743 * inferior.h (post_create_inferior): Remove target parameter.
744 Update all callers.
745
048fde1e 7462020-10-02 Nitika Achra <Nitika.Achra@amd.com>
747
748 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
749 and DW_MACRO_undef_strx.
750 (dwarf_decode_macros): Likewise
751 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
752 which is the value of DW_AT_str_offsets_base.
753 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
754 str_offsets_base.
755
064280be
KR
7562020-10-01 Kamil Rytarowski <n54@gmx.com>
757
758 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
759
6ff33035
KR
7602020-10-01 Kamil Rytarowski <n54@gmx.com>
761
762 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
763 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
764
1eb6eb79
KR
7652020-10-01 Kamil Rytarowski <n54@gmx.com>
766
767 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
768
95eb9e54
TV
7692020-09-30 Tom de Vries <tdevries@suse.de>
770
771 PR symtab/26683
772 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
773
cae21f8e
TT
7742020-09-30 Tom Tromey <tromey@adacore.com>
775
776 * dwarf2/read.c (handle_variant): Use constant_value.
777
529908cb
TT
7782020-09-29 Tom Tromey <tom@tromey.com>
779
780 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
781 (read_file_scope, dwarf2_get_pc_bounds)
782 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
783 (read_structure_type, handle_struct_member_die)
784 (read_enumeration_type, read_array_type, read_set_type)
785 (read_tag_pointer_type, read_tag_reference_type)
786 (read_subroutine_type, read_base_type, read_subrange_type)
787 (read_full_die_1, partial_die_info::read)
788 (partial_die_info::read, by, new_symbol)
789 (dwarf2_const_value_data, dwarf2_const_value_attr)
790 (dump_die_shallow, dwarf2_fetch_constant_bytes)
791 (prepare_one_comp_unit): Update.
792 * dwarf2/attribute.h (DW_UNSND): Remove.
793
c45bc3f8
TT
7942020-09-29 Tom Tromey <tom@tromey.com>
795
796 * dwarf2/read.c (read_func_scope, prototyped_function_p)
797 (read_subroutine_type, partial_die_info::read)
798 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
799 (dwarf2_add_member_fn): Update.
800 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
801 * dwarf2/attribute.c (attribute::as_boolean): New method.
802
23dca5c3
TT
8032020-09-29 Tom Tromey <tom@tromey.com>
804
805 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
806 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
807 method.
808 * dwarf2/attribute.c (attribute::as_virtuality): New method.
809
52c14d11
TT
8102020-09-29 Tom Tromey <tom@tromey.com>
811
812 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
813 the attribute's form.
814
e8e5c158
TT
8152020-09-29 Tom Tromey <tom@tromey.com>
816
817 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
818 (dwarf2_add_member_fn): Update.
819 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
820 * dwarf2/attribute.c (attribute::defaulted): New method, from
821 is_valid_DW_AT_defaulted.
822
d4df075e
TT
8232020-09-29 Tom Tromey <tom@tromey.com>
824
825 * dwarf2/read.c (dw2_get_file_names_reader)
826 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
827 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
828 (dwarf2_symbol_mark_computed): Use as_unsigned.
829 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
830 method.
831 <form_is_section_offset>: Update comment.
832
bf23a268
TT
8332020-09-29 Tom Tromey <tom@tromey.com>
834
835 * dwarf2/read.c (dwarf2_access_attribute): Rename from
836 dwarf2_default_access_attribute. Look up attribute.
837 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
838 Update.
839
7a5f294d
TT
8402020-09-29 Tom Tromey <tom@tromey.com>
841
842 * dwarf2/read.c (skip_one_die): Update.
843 (read_full_die_1): Change how reprocessing is done.
844 (partial_die_info::read): Update.
845 (read_attribute_value): Remove need_reprocess parameter.
846 (read_attribute): Likewise.
847 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
848 New method.
849
36d378cf
TT
8502020-09-29 Tom Tromey <tom@tromey.com>
851
852 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
853 (dwarf2_const_value_attr, dump_die_shallow)
854 (dwarf2_fetch_constant_bytes): Update.
855 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
856 comment.
857 <set_address>: New method.
858 (DW_ADDR): Remove.
859 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
860 (attribute::as_string, attribute::as_address): Add assert.
861
fe56917a
TT
8622020-09-29 Tom Tromey <tom@tromey.com>
863
864 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
865 (read_attribute_reprocess, read_attribute_value): Update.
866 (read_attribute): Clear requires_reprocessing.
867 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
868 form_requires_reprocessing>: New methods.
869 <string_init>: Clear requires_reprocessing.
870 <set_unsigned_reprocess>: New method.
871 <name>: Shrink by one bit.
872 <requires_reprocessing>: New member.
873 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
874 method.
875
414ad644
TT
8762020-09-29 Tom Tromey <tom@tromey.com>
877
878 * dwarf2/read.c (read_attribute_value): Update.
879 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
880 set_unsigned>: New methods.
881 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
882
1bc397c5
TT
8832020-09-29 Tom Tromey <tom@tromey.com>
884
885 * dwarf2/read.c (get_alignment, read_array_order)
886 (read_attribute_value, dwarf2_const_value_attr)
887 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
888 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
889 New methods.
890 (DW_SND): Remove.
891
630ed6b9
TT
8922020-09-29 Tom Tromey <tom@tromey.com>
893
894 * dwarf2/read.c (read_attribute_value, lookup_die_type)
895 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
896 Update.
897 * dwarf2/attribute.h (struct attribute) <as_signature,
898 set_signature>: New methods.
899 (DW_SIGNATURE): Remove.
900
9d2246fc
TT
9012020-09-29 Tom Tromey <tom@tromey.com>
902
903 * dwarf2/read.c (read_call_site_scope)
904 (handle_data_member_location, dwarf2_add_member_fn)
905 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
906 (partial_die_info::read, read_attribute_value)
907 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
908 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
909 (dwarf2_symbol_mark_computed): Update.
910 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
911 methods.
912 (DW_BLOCK): Remove.
913 * dwarf2/attribute.c (attribute::form_is_block): Add
914 DW_FORM_data16.
915
c6481205
TT
9162020-09-29 Tom Tromey <tom@tromey.com>
917
918 * dwarf2/read.c (read_cutu_die_from_dwo)
919 (read_attribute_reprocess, read_attribute_value, read_attribute)
920 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
921 (dwarf2_fetch_constant_bytes): Update.
922 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
923 <set_string_noncanonical, set_string_canonical>: New methods.
924 <string_is_canonical>: Update comment.
925 <canonical_string_p>: Add assert.
926 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
927 * dwarf2/attribute.c (attribute::form_is_string): New method.
928 (attribute::string): Use it.
929
3b64bf15
TT
9302020-09-29 Tom Tromey <tom@tromey.com>
931
932 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
933 (dump_die_shallow): Use canonical_string_p.
934 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
935 method.
936
2c830f54
TT
9372020-09-29 Tom Tromey <tom@tromey.com>
938
939 * dwarf2/read.c (partial_die_info::read)
940 (dwarf2_const_value_attr, anonymous_struct_prefix, )
941 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
942 attribute::as_string.
943
6c412691
TT
9442020-09-29 Tom Tromey <tom@tromey.com>
945
946 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
947 DW_ADDR.
948 (attribute::string): Don't use DW_STRING.
949 (attribute::get_ref_die_offset): Don't use DW_UNSND.
950 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
951
95f982e5
TT
9522020-09-29 Tom Tromey <tom@tromey.com>
953
954 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
955 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
956 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
957 * dwarf2/attribute.h (struct attribute): Rename methods.
958 * dwarf2/attribute.c (attribute::as_address): Rename from
959 value_as_address.
960 (attribute::as_string): Rename from value_as_string.
961
f800b00e
TT
9622020-09-29 Tom Tromey <tom@tromey.com>
963
964 * dwarf2/read.c (partial_die_info::read) <case
965 DW_AT_linkage_name>: Use value_as_string.
966 (dwarf2_string_attr): Use value_as_string.
967 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
968 method.
969 * dwarf2/attribute.c (attribute::value_as_string): New method.
970
de38d64a
PA
9712020-09-29 Pedro Alves <pedro@palves.net>
972
973 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
974 defined before using '#pragma GCC diagnostic' instead of checking
975 __clang__.
976
9aed480c
TT
9772020-09-28 Tom Tromey <tom@tromey.com>
978
979 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
980 (handle_signal_stop): Update.
981 * procfs.c (procfs_target::insert_watchpoint): Update.
982 * target.h (target_have_steppable_watchpoint): Now a function.
983
8a3ecb79
TT
9842020-09-28 Tom Tromey <tom@tromey.com>
985
986 * infrun.c (set_schedlock_func): Update.
987 * target.h (target_can_lock_scheduler): Now a function.
988
55f6301a
TT
9892020-09-28 Tom Tromey <tom@tromey.com>
990
991 * inferior.h (class inferior) <has_execution>: Update.
992 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
993 * valops.c (find_function_in_inferior)
994 (value_allocate_space_in_inferior): Update.
995 * top.c (kill_or_detach): Update.
996 * target.c (target_preopen, set_target_permissions): Update.
997 (target_has_execution_current): Remove.
998 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
999 Update.
1000 * solib.c (update_solib_list, reload_shared_libraries): Update.
1001 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1002 * solib-dsbt.c (enable_break): Update.
1003 * score-tdep.c (score7_fetch_inst): Update.
1004 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1005 Update.
1006 * remote.c (remote_target::start_remote)
1007 (remote_target::remote_check_symbols, remote_target::open_1)
1008 (remote_target::remote_detach_1, remote_target::verify_memory)
1009 (remote_target::xfer_partial, remote_target::read_description)
1010 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1011 * record-full.c (record_full_open_1): Update.
1012 * record-btrace.c (record_btrace_target_open): Update.
1013 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1014 (value_nsstring): Update.
1015 * linux-thread-db.c (add_thread_db_info)
1016 (thread_db_find_new_threads_silently, check_thread_db_callback)
1017 (try_thread_db_load_1, record_thread): Update.
1018 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1019 Update.
1020 * linux-fork.c (checkpoint_command): Update.
1021 * infrun.c (set_non_stop, set_observer_mode)
1022 (check_multi_target_resumption, for_each_just_stopped_thread)
1023 (maybe_remove_breakpoints, normal_stop)
1024 (class infcall_suspend_state): Update.
1025 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1026 (info_program_command, attach_command): Update.
1027 * infcall.c (call_function_by_hand_dummy): Update.
1028 * inf-loop.c (inferior_event_handler): Update.
1029 * gcore.c (gcore_command, derive_heap_segment): Update.
1030 * exec.c (exec_file_command): Update.
1031 * eval.c (evaluate_subexp): Update.
1032 * compile/compile.c (compile_to_object): Update.
1033 * cli/cli-dump.c (restore_command): Update.
1034 * breakpoint.c (update_watchpoint)
1035 (update_inserted_breakpoint_locations)
1036 (insert_breakpoint_locations, get_bpstat_thread): Update.
1037 * target.h (target_has_execution): Remove macro.
1038 (target_has_execution_current): Don't declare.
1039 (target_has_execution): Rename from target_has_execution_1. Add
1040 argument default.
1041
05374cfd
TT
10422020-09-28 Tom Tromey <tom@tromey.com>
1043
1044 * mi/mi-main.c (exec_reverse_continue)
1045 (mi_cmd_list_target_features): Update.
1046 * infrun.c (set_exec_direction_func): Update.
1047 * target.c (default_execution_direction): Update.
1048 * reverse.c (exec_reverse_once): Update.
1049 * target.h (target_can_execute_reverse): Now a function.
1050
9dccd06e
TT
10512020-09-28 Tom Tromey <tom@tromey.com>
1052
1053 * tui/tui-regs.c (tui_get_register)
1054 (tui_data_window::show_registers): Update.
1055 * thread.c (scoped_restore_current_thread::restore)
1056 (scoped_restore_current_thread::scoped_restore_current_thread):
1057 Update.
1058 * regcache-dump.c (regcache_print): Update.
1059 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1060 Update.
1061 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1062 * mep-tdep.c (current_me_module, current_options): Update.
1063 * linux-thread-db.c (thread_db_load): Update.
1064 * infcmd.c (registers_info, info_vector_command)
1065 (info_float_command): Update.
1066 * ia64-tdep.c (ia64_frame_prev_register)
1067 (ia64_sigtramp_frame_prev_register): Update.
1068 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1069 * gcore.c (derive_stack_segment): Update.
1070 * frame.c (get_current_frame, has_stack_frames): Update.
1071 * findvar.c (language_defn::read_var_value): Update.
1072 * arm-tdep.c (arm_pc_is_thumb): Update.
1073 * target.c (target_has_registers): Rename from
1074 target_has_registers_1.
1075 * target.h (target_has_registers): Remove macro.
1076 (target_has_registers): Rename from target_has_registers_1.
1077
841de120
TT
10782020-09-28 Tom Tromey <tom@tromey.com>
1079
1080 * windows-tdep.c (tlb_make_value): Update.
1081 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1082 * thread.c (scoped_restore_current_thread::restore)
1083 (scoped_restore_current_thread::scoped_restore_current_thread)
1084 (thread_command): Update.
1085 * stack.c (backtrace_command_1, frame_apply_level_command)
1086 (frame_apply_all_command, frame_apply_command): Update.
1087 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1088 Update.
1089 * gcore.c (derive_stack_segment): Update.
1090 * frame.c (get_current_frame, has_stack_frames): Update.
1091 * auxv.c (info_auxv_command): Update.
1092 * ada-tasks.c (ada_build_task_list): Update.
1093 * target.c (target_has_stack): Rename from target_has_stack_1.
1094 * target.h (target_has_stack): Remove macro.
1095 (target_has_stack): Rename from target_has_stack_1.
1096
a739972c
TT
10972020-09-28 Tom Tromey <tom@tromey.com>
1098
1099 * target.c (target_has_memory): Rename from target_has_memory_1.
1100 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1101 * thread.c (scoped_restore_current_thread::restore)
1102 (scoped_restore_current_thread::scoped_restore_current_thread):
1103 Update.
1104 * frame.c (get_current_frame, has_stack_frames): Update.
1105 * target.h (target_has_memory): Remove macro.
1106 (target_has_memory): Rename from target_has_memory_1.
1107
5b8a4776
TT
11082020-09-28 Tom Tromey <tom@tromey.com>
1109
1110 * target.c (target_has_all_memory_1): Remove.
1111 * target.h (target_has_all_memory): Remove define.
1112 (target_has_all_memory_1): Don't declare.
1113
bd356ec6
SM
11142020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1115
1116 * ser-base.c: Adjust comments formatting.
1117
2c72d5e5
TT
11182020-09-27 Tom Tromey <tom@tromey.com>
1119
1120 PR tui/25342:
1121 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1122
35a98237
TT
11232020-09-27 Tom Tromey <tom@tromey.com>
1124
1125 PR tui/25342:
1126 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1127
9e820dec
TT
11282020-09-27 Tom Tromey <tom@tromey.com>
1129
1130 * unittests/tui-selftests.c: Update.
1131 * tui/tui-winsource.h (struct tui_source_window_base)
1132 <extra_margin, show_line_number, refresh_pad>: New methods.
1133 <m_max_length, m_pad>: New members.
1134 (tui_copy_source_line): Update.
1135 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1136 first_col, line_width, ndigits parameters. Add length.
1137 (tui_source_window_base::show_source_line): Write to pad. Line
1138 number now 0-based.
1139 (tui_source_window_base::refresh_pad): New method.
1140 (tui_source_window_base::show_source_content): Write to pad. Call
1141 refresh_pad.
1142 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1143 not refill.
1144 (tui_source_window_base::update_exec_info): Call
1145 show_line_number.
1146 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1147 method.
1148 <m_digits>: New member.
1149 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1150 and m_max_length.
1151 (tui_source_window::show_line_number): New method.
1152 * tui/tui-io.h (tui_puts): Fix comment.
1153 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1154 m_max_length.
1155
c15c15c8
TT
11562020-09-27 Tom Tromey <tom@tromey.com>
1157
1158 * tui/tui-winsource.c
1159 (tui_source_window_base::set_is_exec_point_at): Don't call
1160 show_source_line.
1161
149830c1
TT
11622020-09-27 Tom Tromey <tom@tromey.com>
1163
1164 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1165 method.
1166 <erase>: Update.
1167 <cursor_x, cursor_y>: Remove.
1168 <m_inner_window>: New member.
1169 (tui_py_window::rerender): Create inner window.
1170 (tui_py_window::output): Write to inner window.
1171
8f9929bb
GR
11722020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1173
1174 PR python/26586
1175 * cli/cli-script.c (execute_control_commands): don't set
1176 instream to nullptr here as this breaks the from_tty argument
1177 to gdb.execute in Python.
1178 (execute_user_command): set instream to nullptr here instead.
1179
956bdb59
SM
11802020-09-25 Simon Marchi <simon.marchi@efficios.com>
1181
1182 * infrun.h (infrun_debug_printf): Fix formatting.
1183 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1184
3b93626b
SJ
11852020-09-25 Saagar Jha <saagar@saagarjha.com>
1186
1187 * compile/compile-object-load.h (struct munmap_list): Add
1188 explicitly-defined move constructor.
1189
b551a89f
TT
11902020-09-24 Tom Tromey <tromey@adacore.com>
1191
1192 PR tui/26638:
1193 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1194 method.
1195 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1196 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1197 (tui_prev_win): Rewrite.
1198
99bb393f
HD
11992020-09-23 Hannes Domani <ssbssa@yahoo.de>
1200
1201 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1202 in WOW64 processes as SIGINT.
1203 * nat/windows-nat.h: Make wow64_process a shared variable.
1204 * windows-nat.c: Remove static wow64_process variable.
1205
20a5fcbd
TT
12062020-09-23 Tom Tromey <tom@tromey.com>
1207
1208 PR symtab/25470:
1209 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1210 offset and bit size.
1211 * printcmd.c (print_scalar_formatted): Handle zero-length
1212 integer.
1213 (print_scalar_formatted): Use bit_size_differs_p.
1214 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1215 constant.
1216 (union type_specific): <int_stuff>: New member.
1217 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1218 methods.
1219 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1220 TYPE_SPECIFIC_FIELD.
1221 (recursive_dump_type, copy_type_recursive): Update.
1222 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1223 DW_AT_data_bit_offset.
1224
bac51ab7
TT
12252020-09-23 Tom Tromey <tom@tromey.com>
1226
1227 * utils.h (class gdb_argv): Add move operators.
1228 <append>: New methods.
1229 * compile/compile.c (build_argc_argv): Remove.
1230 (compile_args_argc): Remove.
1231 (compile_args_argv): Change type.
1232 (set_compile_args): Simplify.
1233 (append_args): Remove.
1234 (filter_args): Remove argcp parameter.
1235 (get_args): Return gdb_argv. Simplify.
1236 (compile_to_object): Update.
1237
92677124
TT
12382020-09-23 Tom Tromey <tom@tromey.com>
1239
1240 * compile/compile-object-run.c (do_module_cleanup)
1241 <~do_module_cleanup> :Remove.
1242 (do_module_cleanup): Update.
1243 * compile/compile-object-load.h (struct munmap_list): Add move
1244 assignment operator.
1245 <source_file>: Now a std::string.
1246 <munmap_list>: Rename. No longer a pointer.
1247 * compile/compile-object-load.c (struct setup_sections_data): Add
1248 constructor.
1249 <setup_one_section>: Declare.
1250 <munmap_list>: Move earlier.
1251 <m_bfd>: New member.
1252 <m_last_size, m_last_section_first, m_last_prot,
1253 m_last_max_alignment>: Rename, add initializers where needed.
1254 (setup_sections_data::setup_one_section): Rename from
1255 setup_sections. Update.
1256 (compile_object_load): Update. Don't use bfd_map_over_sections.
1257
e616f60a
TT
12582020-09-23 Tom Tromey <tom@tromey.com>
1259
1260 * compile/compile-object-run.c (struct do_module_cleanup): Add
1261 parameters to constructor. Update destructor.
1262 <source_file, scope, scope_data, out_value_type, out_value_addr,
1263 munmap_list_head, objfile_name_string>: Remove.
1264 <module>: New member.
1265 (do_module_cleanup): Update.
1266 (compile_object_run): Update.
1267
e947a848
TT
12682020-09-23 Tom Tromey <tom@tromey.com>
1269
1270 * compile/compile.c (eval_compile_command): Update.
1271 * compile/compile-object-run.h (compile_object_run): Take a
1272 compile_module_up.
1273 * compile/compile-object-run.c (compile_object_run): Take a
1274 compile_module_up.
1275 * compile/compile-object-load.h (struct compile_module): Add
1276 constructor, destructor.
1277 (compile_module_up): New typedef.
1278 (compile_object_load): Return compile_object_up.
1279 * compile/compile-object-load.c (compile_object_load): Return
1280 compile_module_up.
1281
0dbf6ee6
TT
12822020-09-23 Tom Tromey <tom@tromey.com>
1283
1284 * compile/compile-object-run.c (struct do_module_cleanup): Add
1285 constructor, destructor.
1286 <objfile_name_string>: Don't use struct hack.
1287 (do_module_cleanup): Use delete.
1288 (compile_object_run): Use new.
1289
ebe824f5
TT
12902020-09-23 Tom Tromey <tom@tromey.com>
1291
1292 * compile/compile-cplus-types.c
1293 (compile_cplus_convert_struct_or_union): Use std::vector.
1294 (compile_cplus_convert_func): Likewise.
1295 * compile/compile-c-types.c (convert_func): Use std::vector.
1296
5dd918d9
TT
12972020-09-21 Tom Tromey <tromey@adacore.com>
1298
1299 * sparc-tdep.c (sparc32_skip_prologue): Use
1300 skip_prologue_using_sal.
1301
5486c517
TT
13022020-09-19 Tom Tromey <tom@tromey.com>
1303
1304 * symfile.c (add_section_size_callback): Remove.
1305 (load_one_section): Rename from load_section_callback. Change
1306 parameters.
1307 (generic_load): Use foreach.
1308
8a6bb1d1
TT
13092020-09-19 Tom Tromey <tom@tromey.com>
1310
1311 * exec.c (add_to_section_table): Remove.
1312 (build_section_table): Use foreach.
1313
08f93a1a
TT
13142020-09-19 Tom Tromey <tom@tromey.com>
1315
1316 * elfread.c (elf_locate_sections): Change parameters.
1317 (elf_symfile_read): Use foreach.
1318
03cd72b8
TT
13192020-09-19 Tom Tromey <tom@tromey.com>
1320
1321 * cli/cli-dump.c (struct callback_data): Remove.
1322 (restore_one_section): Rename from restore_section_callback.
1323 Change parameters.
1324 (restore_binary_file): Change parameters.
1325 (restore_command): Use foreach.
1326
f4f2b85f
TT
13272020-09-19 Tom Tromey <tom@tromey.com>
1328
1329 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1330 (gcore_copy_callback): Likewise.
1331 (gcore_memory_sections): Use foreach.
1332
b35c1d1c
TT
13332020-09-19 Tom Tromey <tom@tromey.com>
1334
1335 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1336 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1337 parameters.
1338 (generic_elf_osabi_sniffer): Use foreach.
1339 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1340 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1341
5bb6e9dd
TT
13422020-09-19 Tom Tromey <tom@tromey.com>
1343
1344 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1345 (dwarf2_get_dwz_file): Use foreach.
1346 (dwarf2_locate_dwo_sections): Change parameters.
1347 (open_and_init_dwo_file): Use foreach.
1348 (dwarf2_locate_common_dwp_sections): Change parameters.
1349 (open_and_init_dwp_file): Use foreach.
1350
ad7277da
TT
13512020-09-19 Tom Tromey <tom@tromey.com>
1352
1353 * symfile.h: (find_lowest_section): Don't declare.
1354 * symfile.c (find_lowest_section): Now static. Change
1355 parameters.
1356 (struct place_section_arg): Remove.
1357 (place_section): Change parameters.
1358 (addr_info_make_relative): Use foreach.
1359 (symfile_dummy_outputs): Remove.
1360 (default_symfile_relocate): Use foreach.
1361
cb814f2e
TT
13622020-09-19 Tom Tromey <tom@tromey.com>
1363
1364 * objfiles.c (add_to_objfile_sections): Rename from
1365 add_to_objfile_sections_full.
1366 (add_to_objfile_sections): Remove.
1367 (build_objfile_section_table): Use foreach.
1368
3cabfd26
TT
13692020-09-19 Tom Tromey <tom@tromey.com>
1370
1371 * stap-probe.c (get_stap_base_address_1): Remove.
1372 (get_stap_base_address): Use foreach.
1373
1ce51eb5
TT
13742020-09-19 Tom Tromey <tom@tromey.com>
1375
1376 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1377 parameters.
1378 (gdb_bfd_close_or_warn): Use foreach.
1379
a190fabb
TT
13802020-09-19 Tom Tromey <tom@tromey.com>
1381
1382 * corelow.c (add_to_thread_list): Change parameters.
1383 (core_target_open): Use foreach.
1384
cafb0d81
TT
13852020-09-19 Tom Tromey <tom@tromey.com>
1386
1387 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1388 existing function.
1389
c8d5abea
AB
13902020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1393 for arrays.
1394
6d816919
AB
13952020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * eval.c: Remove 'f-lang.h' include.
1398 (value_f90_subarray): Moved to f-lang.c.
1399 (eval_call): Renamed to...
1400 (evaluate_subexp_do_call): ...this, is no longer static, header
1401 comment moved into header file.
1402 (evaluate_funcall): Update call to eval_call.
1403 (skip_undetermined_arglist): Moved to f-lang.c.
1404 (fortran_value_subarray): Likewise.
1405 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1406 moved to evaluate_subexp_f.
1407 (calc_f77_array_dims): Moved to f-lang.c
1408 * expprint.c (print_subexp_funcall): New function.
1409 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1410 moved to print_subexp_f, OP_FUNCALL uses new function.
1411 (dump_subexp_body_funcall): New function.
1412 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1413 moved to dump_subexp_f, OP_FUNCALL uses new function.
1414 * expression.h (evaluate_subexp_do_call): Declare.
1415 * f-lang.c (value_f90_subarray): Moved from eval.c.
1416 (skip_undetermined_arglist): Likewise.
1417 (calc_f77_array_dims): Likewise.
1418 (fortran_value_subarray): Likewise.
1419 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1420 (operator_length_f): Likewise.
1421 (print_subexp_f): Likewise.
1422 (dump_subexp_body_f): Likewise.
1423 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1424 declaration of this operation to here.
1425 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1426 support moved to operator_length_f.
1427 * parser-defs.h (dump_subexp_body_funcall): Declare.
1428 (print_subexp_funcall): Declare.
1429 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1430 fortran-operator.def.
1431
8c37706a
AB
14322020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * eval.c (fortran_value_subarray): New function, content is taken
1435 from...
1436 (evaluate_subexp_standard): ...here, in two places. Now arrays
1437 and strings both call the new function.
1438 (calc_f77_array_dims): Add header comment, handle strings.
1439
14f9473c
VC
14402020-09-18 Victor Collod <vcollod@nvidia.com>
1441
1442 PR gdb/26635
1443 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1444 (i386_analyze_prologue): Call i386_skip_endbr.
1445
b60cea74
TT
14462020-09-18 Tom Tromey <tromey@adacore.com>
1447
1448 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1449 (windows_nat_target::wait): Update.
1450 * target/wait.h (enum target_wait_flag): New. Use
1451 DEF_ENUM_FLAGS_TYPE.
1452 * target/target.h (target_wait): Change type of options.
1453 * target.h (target_options_to_string, default_target_wait):
1454 Update.
1455 (struct target_ops) <wait>: Change type of options.
1456 * target.c (target_wait, default_target_wait, do_option): Change
1457 type of "options".
1458 (target_options_to_string): Likewise.
1459 * target-delegates.c: Rebuild.
1460 * target-debug.h (target_debug_print_target_wait_flags): Rename
1461 from target_debug_print_options.
1462 * sol-thread.c (class sol_thread_target) <wait>: Update.
1463 (sol_thread_target::wait): Update.
1464 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1465 (rs6000_nat_target::wait): Update.
1466 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1467 Update.
1468 (remote_target::wait_ns, remote_target::wait_as): Change type of
1469 "options".
1470 (remote_target::wait): Update.
1471 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1472 (gdbsim_target::wait): Update.
1473 * record-full.c (class record_full_base_target) <wait>: Update.
1474 (record_full_wait_1): Change type of "options".
1475 (record_full_base_target::wait): Update.
1476 * record-btrace.c (class record_btrace_target) <wait>: Update.
1477 (record_btrace_target::wait): Update.
1478 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1479 Update.
1480 (ravenscar_thread_target::wait): Update.
1481 * procfs.c (class procfs_target) <wait>: Update.
1482 (procfs_target::wait): Update.
1483 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1484 * obsd-nat.c (obsd_nat_target::wait): Update.
1485 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1486 (nto_procfs_target::wait): Update.
1487 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1488 * nbsd-nat.c (nbsd_wait): Change type of "options".
1489 (nbsd_nat_target::wait): Update.
1490 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1491 (thread_db_target::wait): Update.
1492 * linux-nat.h (class linux_nat_target) <wait>: Update.
1493 * linux-nat.c (linux_nat_target::wait): Update.
1494 (linux_nat_wait_1): Update.
1495 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1496 "options".
1497 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1498 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1499 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1500 (go32_nat_target::wait): Update.
1501 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1502 * gnu-nat.c (gnu_nat_target::wait): Update.
1503 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1504 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1505 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1506 * darwin-nat.c (darwin_nat_target::wait): Update.
1507 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1508 (bsd_uthread_target::wait): Update.
1509 * aix-thread.c (class aix_thread_target) <wait>: Update.
1510 (aix_thread_target::wait): Update.
1511
0295dde6
AB
15122020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1513
1514 * compile/compile-object-run.c (create_copied_type_recursive): New
1515 function.
1516 (compile_object_run): Use new function.
1517
d3483b43
JT
15182020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1519
1520 * NEWS: Mention x86_64 Cygwin core file support.
1521
e7d612ad
JT
15222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1523
1524 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1525 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1526
aff9d387
JT
15272020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1528
62a5151b
JT
1529 * windows-tdep.h: Add prototypes.
1530 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1531 (i386_windows_core_pid_to_str): Move and rename ...
1532 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1533 (windows_core_pid_to_str): ... and here.
1534 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1535
15362020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1537 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1538 (amd64_windows_init_abi_common): ... and register.
1539
7d155da3
JT
15402020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1541
1542 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1543 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1544
e8ef12b9
PA
15452020-09-18 Pedro Alves <pedro@palves.net>
1546
1547 PR gdb/26631
1548 * thread.c (thread_find_command): Switch inferior before calling
1549 target methods.
1550
c1e1314d
TT
15512020-09-17 Tom Tromey <tromey@adacore.com>
1552
1553 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1554 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1555 (tdesc_arch_data_up): New typedef.
1556 (tdesc_use_registers, tdesc_data_alloc): Update.
1557 (tdesc_data_cleanup): Don't declare.
1558 * target-descriptions.c (tdesc_data_alloc): Return a
1559 tdesc_arch_data_up.
1560 (tdesc_arch_data_deleter::operator()): Rename from
1561 tdesc_data_cleanup. Change argument type.
1562 (tdesc_use_registers): Change early_data to an rvalue reference.
1563 (tdesc_use_registers): Don't use delete.
1564 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1565 * s390-tdep.c (s390_gdbarch_init): Update.
1566 * rx-tdep.c (rx_gdbarch_init): Update.
1567 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1568 * riscv-tdep.c (riscv_gdbarch_init): Update.
1569 * or1k-tdep.c (or1k_gdbarch_init): Update.
1570 * nios2-tdep.c (nios2_gdbarch_init): Update.
1571 * nds32-tdep.c (nds32_gdbarch_init): Update.
1572 * mips-tdep.c (mips_gdbarch_init): Update.
1573 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1574 * m68k-tdep.c (m68k_gdbarch_init): Update.
1575 * i386-tdep.c (i386_gdbarch_init): Update.
1576 * arm-tdep.c (arm_gdbarch_init): Update.
1577 * arc-tdep.c (arc_tdesc_init): Update.
1578 (arc_gdbarch_init): Update.
1579 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1580
0363df3d
HD
15812020-09-17 Hannes Domani <ssbssa@yahoo.de>
1582
1583 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1584 for WOW64 processes.
1585
280a9412
TT
15862020-09-17 Tom Tromey <tom@tromey.com>
1587
1588 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1589
6108fd18
TT
15902020-09-17 Tom Tromey <tom@tromey.com>
1591
1592 * value.c (preserve_values): Update.
1593 * python/py-type.c (save_objfile_types): Update.
1594 * guile/scm-type.c (save_objfile_types): Update.
1595 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1596 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1597 * compile/compile-object-run.c (compile_object_run): Update.
1598
fa9b1164
TT
15992020-09-17 Tom Tromey <tom@tromey.com>
1600
1601 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1602 Remove.
1603 <m_table>: Now htab_up.
1604 * typeprint.c (typedef_hash_table::recursively_update)
1605 (typedef_hash_table::add_template_parameters)
1606 (typedef_hash_table::typedef_hash_table): Update.
1607 (typedef_hash_table::~typedef_hash_table): Remove.
1608 (typedef_hash_table::typedef_hash_table)
1609 (typedef_hash_table::find_global_typedef)
1610 (typedef_hash_table::find_typedef): Update.
1611
eb53f105
TT
16122020-09-17 Tom Tromey <tom@tromey.com>
1613
1614 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1615
7a8a5d47
TT
16162020-09-17 Tom Tromey <tom@tromey.com>
1617
1618 * linespec.c (class decode_compound_collector)
1619 <~decode_compound_collector>: Remove.
1620 <m_unique_syms>: Now htab_up.
1621 (decode_compound_collector::operator ()): Update.
1622 (class symtab_collector) <~symtab_collector>: Remove.
1623 <m_symtab_table>: Now htab_up.
1624 (symtab_collector::operator ()): Update.
1625
99032cfc
TT
16262020-09-17 Tom Tromey <tom@tromey.com>
1627
1628 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1629 (filename_seen_cache::clear): Update.
1630 (~filename_seen_cache): Remove.
1631 (filename_seen_cache::seen): Update.
1632 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1633 htab_up.
1634 <~filename_seen_cache>: Remove.
1635 <traverse>: Update.
1636
32580f6d
TT
16372020-09-17 Tom Tromey <tom@tromey.com>
1638
1639 * completer.c (completion_tracker::discard_completions)
1640 (completion_tracker::~completion_tracker)
1641 (completion_tracker::maybe_add_completion)
1642 (completion_tracker::remove_completion)
1643 (completion_tracker::recompute_lowest_common_denominator)
1644 (completion_tracker::build_completion_result): Update.
1645 * completer.h (class completion_tracker) <have_completions>:
1646 Update.
1647 <m_entries_hash>: Now htab_up.
1648
c1fb9836
TT
16492020-09-17 Tom Tromey <tom@tromey.com>
1650
1651 * breakpoint.c (ambiguous_names_p): Use htab_up.
1652
88f07206
TT
16532020-09-17 Tom Tromey <tom@tromey.com>
1654
1655 * auto-load.c (struct auto_load_pspace_info)
1656 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1657 <loaded_script_files, loaded_script_texts>: Change type to
1658 htab_up.
1659 (~auto_load_pspace_info) Remove.
1660 (init_loaded_scripts_info, maybe_add_script_file)
1661 (maybe_add_script_text, auto_load_info_scripts): Update.
1662
9519b2ee
TT
16632020-09-17 Tom Tromey <tromey@adacore.com>
1664
1665 * c-exp.y (name_obstack): Now static.
1666
d2cd4113
CC
16672020-09-17 Chungyi Chi <demonic@csie.io>
1668
1669 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1670
b650a282
SM
16712020-09-16 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1674 (add_solib_catchpoint): Likewise.
1675 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1676 to bool.
1677 (add_solib_catchpoint): Change int parameter/variable to bool.
1678 (catch_load_or_unload): Likewise.
1679 (init_catchpoint): Likewise.
1680 (create_fork_vfork_event_catchpoint): Likewise.
1681 (catch_fork_command_1): Likewise.
1682 (catch_exec_command_1): Likewise.
1683
4d0bcfcf
SM
16842020-09-16 Simon Marchi <simon.marchi@efficios.com>
1685
1686 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1687 Change instance_flags to m_instance_flags.
1688
fe830662
TT
16892020-09-16 Tom Tromey <tromey@adacore.com>
1690
1691 PR gdb/26598:
1692 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1693
fe5ddfc3
JB
16942020-09-16 John Baldwin <jhb@FreeBSD.org>
1695
1696 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1697 PL_FLAG_EXEC.
1698 (fbsd_nat_target::insert_exec_catchpoint)
1699 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1700 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1701 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1702
e911c666
JB
17032020-09-16 John Baldwin <jhb@FreeBSD.org>
1704
1705 * configure.ac: Remove check for kinfo_getvmmap().
1706 * configure, config.in: Regenerate.
1707 * fbsd-nat.c (fbsd_read_mapping): Remove
1708 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1709 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1710 kinfo_get_vmmap() are always present.
1711
1f17d372
JB
17122020-09-16 John Baldwin <jhb@FreeBSD.org>
1713
1714 * fbsd-nat.c: Always include support for
1715 TARGET_OBJECT_SIGNAL_INFO.
1716
bcb1da7f
JB
17172020-09-16 John Baldwin <jhb@FreeBSD.org>
1718
1719 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1720 sysctl and remove procfs fallback.
1721
5515f729
JB
17222020-09-16 John Baldwin <jhb@FreeBSD.org>
1723
1724 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1725 * fbsd-nat.h: Likewise.
1726
da1df1db
TBA
17272020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1728
1729 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1730 argument.
1731
0e25e767
AB
17322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1733
1734 * ada-lang.c (ada_language_data): Delete.
1735 (ada_language): Remove references to ada_language_data.
1736 * c-lang.c (c_language_data): Delete.
1737 (c_language): Remove references to c_language_data.
1738 (cplus_language_data): Delete.
1739 (cplus_language): Remove references to cplus_language_data.
1740 (asm_language_data): Delete.
1741 (asm_language): Remove references to asm_language_data.
1742 (minimal_language_data): Delete.
1743 (minimal_language): Remove references to minimal_language_data.
1744 * d-lang.c (d_language_data): Delete.
1745 (d_language): Remove references to d_language_data.
1746 * f-lang.c (f_language_data): Delete.
1747 (f_language): Remove references to f_language_data.
1748 * go-lang.c (go_language_data): Delete.
1749 (go_language): Remove references to go_language_data.
1750 * language.c (unknown_language_data): Delete.
1751 (unknown_language): Remove references to unknown_language_data.
1752 (auto_language_data): Delete.
1753 (auto_language): Remove references to auto_language_data.
1754 * language.h (language_data): Delete struct.
1755 (language_defn): No longer inherit from language_data.
1756 * m2-lang.c (m2_language_data): Delete.
1757 (m2_language): Remove references to m2_language_data.
1758 * objc-lang.c (objc_language_data): Delete.
1759 (objc_language): Remove references to objc_language_data.
1760 * opencl-lang.c (opencl_language_data): Delete.
1761 (opencl_language): Remove references to opencl_language_data.
1762 * p-lang.c (pascal_language_data): Delete.
1763 (pascal_language): Remove references to pascal_language_data.
1764 * rust-lang.c (rust_language_data): Delete.
1765 (rust_language): Remove references to rust_language_data.
1766
b7c6e27d
AB
17672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1768
1769 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1770 initializer.
1771 (ada_language::opcode_print_table): New member function.
1772 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1773 (c_language::opcode_print_table): New member function.
1774 (cplus_language_data): Remove la_op_print_tab initializer.
1775 (cplus_language::opcode_print_table): New member function.
1776 (asm_language_data): Remove la_op_print_tab initializer.
1777 (asm_language::opcode_print_table): New member function.
1778 (minimal_language_data): Remove la_op_print_tab initializer.
1779 (minimal_language::opcode_print_table): New member function.
1780 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1781 (d_language::opcode_print_table): New member function.
1782 * expprint.c (print_subexp_standard): Update call to
1783 opcode_print_table.
1784 (op_string): Likewise.
1785 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1786 (f_language::opcode_print_table): New member function.
1787 * go-lang.c (go_language_data): Remove la_op_print_tab
1788 initializer.
1789 (go_language::opcode_print_table): New member function.
1790 * language.c (unknown_language_data): Remove la_op_print_tab
1791 initializer.
1792 (unknown_language::opcode_print_table): New member function.
1793 (auto_language_data): Remove la_op_print_tab initializer.
1794 (auto_language::opcode_print_table): New member function.
1795 * language.h (language_data): Remove la_op_print_tab field.
1796 (language_defn::opcode_print_table): Declare new member function.
1797 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1798 initializer.
1799 (m2_language::opcode_print_table): New member function.
1800 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1801 initializer.
1802 (objc_language::opcode_print_table): New member function.
1803 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1804 initializer.
1805 (opencl_language::opcode_print_table): New member function.
1806 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1807 initializer.
1808 (pascal_language::opcode_print_table): New member function.
1809 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1810 initializer.
1811 (rust_language::opcode_print_table): New member function.
1812
5aba6ebe
AB
18132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1816 (ada_language::expression_ops): New member function.
1817 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1818 (c_language::expression_ops): New member function.
1819 (cplus_language_data): Remove la_exp_desc initializer.
1820 (cplus_language::expression_ops): New member function.
1821 (asm_language_data): Remove la_exp_desc initializer.
1822 (asm_language::expression_ops): New member function.
1823 (minimal_language_data): Remove la_exp_desc initializer.
1824 (minimal_language::expression_ops): New member function.
1825 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1826 (d_language::expression_ops): New member function.
1827 * eval.c (evaluate_subexp): Update call to expression_ops.
1828 * expprint.c (print_subexp): Likewise.
1829 (op_name): Likewise.
1830 (dump_subexp_body): Likewise.
1831 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1832 (f_language::expression_ops): New member function.
1833 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1834 (go_language::expression_ops): New member function.
1835 * language.c (language_defn::expression_ops): New function.
1836 (unknown_language_data): Remove la_exp_desc initializer.
1837 (auto_language_data): Likewise.
1838 * language.h (language_data): Remove la_exp_desc field.
1839 (language_defn::expression_ops): Declare new member function.
1840 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1841 (m2_language::expression_ops): New member function.
1842 * objc-lang.c (objc_language_data): Remove la_exp_desc
1843 initializer.
1844 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1845 initializer.
1846 (opencl_language::expression_ops): New member function.
1847 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1848 * parse.c (operator_length): Update call to expression_ops.
1849 (exp_iterate): Likewise.
1850 * rust-lang.c (rust_language_data): Remove la_exp_desc
1851 initializer.
1852 (ruse_language::expression_ops): New member function.
1853
b63a3f3f
AB
18542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1857 initializer.
1858 (ada_language::varobj_ops): New member function.
1859 * c-lang.c (c_language_data): Remove la_varobj_ops
1860 initializer.
1861 (cplus_language_data): Likewise.
1862 (cplus_language::varobj_ops): New member function.
1863 (asm_language_data): Remove la_varobj_ops initializer.
1864 (minimal_language_data): Likewise.
1865 * d-lang.c (d_language_data): Likewise.
1866 * f-lang.c (f_language_data): Likewise.
1867 * go-lang.c (go_language_data): Likewise.
1868 * language.c (language_defn::varobj_ops): New function.
1869 (unknown_language_data): Remove la_varobj_ops
1870 initializer.
1871 (auto_language_data): Likewise.
1872 * language.h (language_data): Remove la_varobj_ops field.
1873 (language_defn::varobj_ops): Declare new member function.
1874 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1875 * objc-lang.c (objc_language_data): Likewise.
1876 * opencl-lang.c (opencl_language_data): Likewise.
1877 * p-lang.c (pascal_language_data): Likewise.
1878 * rust-lang.c (rust_language_data): Likewise.
1879 * varobj.c (varobj_create): Update call to varobj_ops.
1880 * varobj.h (default_varobj_ops): Delete define.
1881
1ac14a04
AB
18822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1885 initializer.
1886 * c-lang.c (c_language_data): Likewise.
1887 (c_language::macro_expansion): New member function.
1888 (cplus_language_data): Likewise.
1889 (cplus_language::macro_expansion): New member function.
1890 (asm_language_data): Likewise.
1891 (asm_language::macro_expansion): New member function.
1892 (minimal_language_data): Likewise.
1893 (minimal_language::macro_expansion): New member function.
1894 * d-lang.c (d_language_data): Remove la_macro_expansion
1895 initializer.
1896 * f-lang.c (f_language_data): Likewise.
1897 * go-lang.c (go_language_data): Likewise.
1898 * language.c (unknown_language_data): Likewise.
1899 (auto_language_data): Likewise.
1900 * language.h (language_data): Remove la_macro_expansion field.
1901 (language_defn::macro_expansion): New member function.
1902 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1903 initializer.
1904 * objc-lang.c (objc_language_data): Likewise.
1905 (objc_language::macro_expansion): New member function.
1906 * opencl-lang.c (opencl_language_data): Likewise.
1907 (opencl_language::macro_expansion): New member function.
1908 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1909 initializer.
1910 * rust-lang.c (rust_language_data): Likewise.
1911 * symtab.c (default_collect_symbol_completion_matches_break_on):
1912 Update call to macro_expansion.
1913
3a3440fb
AB
19142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * ada-lang.c (ada_language_data): Remove la_array_ordering
1917 initializer.
1918 * c-lang.c (c_language_data): Likewise.
1919 (cplus_language_data): Likewise.
1920 (asm_language_data): Likewise.
1921 (minimal_language_data): Likewise.
1922 * d-lang.c (d_language_data): Likewise.
1923 * dwarf2/read.c (read_array_order): Update for call to
1924 array_ordering.
1925 * f-lang.c (f_language_data): Remove la_array_ordering
1926 initializer.
1927 (f_language::array_ordering): New member function.
1928 * go-lang.c (go_language_data): Remove la_array_ordering
1929 initializer.
1930 * language.c (unknown_language_data): Likewise.
1931 (auto_language_data): Likewise.
1932 * language.h (language_data): Delete la_array_ordering field.
1933 (language_defn::array_ordering): New member function.
1934 * m2-lang.c (m2_language_data): Remove la_array_ordering
1935 initializer.
1936 * objc-lang.c (objc_language_data): Likewise.
1937 * opencl-lang.c (opencl_language_data): Likewise.
1938 * p-lang.c (pascal_language_data): Likewise.
1939 * rust-lang.c (rust_language_data): Likewise.
1940
0d201fa4
AB
19412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1944 initializer.
1945 * c-lang.c (c_language_data): Likewise.
1946 (cplus_language_data): Likewise.
1947 (asm_language_data): Likewise.
1948 (minimal_language_data): Likewise.
1949 * d-lang.c (d_language_data): Likewise.
1950 * f-lang.c (f_language_data): Likewise.
1951 (f_language::case_sensitivity): New member function.
1952 * go-lang.c (go_language_data): Remove la_case_sensitivity
1953 initializer.
1954 * language.c (enum case_mode): Moved here from language.h.
1955 (case_mode): Make static.
1956 (show_case_command): Update for case_sensitivity being a method.
1957 (set_case_command): Likewise.
1958 (set_range_case): Likewise.
1959 (unknown_language_data): Remove la_case_sensitivity initializer.
1960 (auto_language_data): Likewise.
1961 * language.h (case_mode): Delete, move enum declaration to
1962 language.c.
1963 (language_data): Delete la_case_sensitivity field.
1964 (language_defn::case_sensitivity): New member function.
1965 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1966 initializer.
1967 * objc-lang.c (objc_language_data): Likewise.
1968 * opencl-lang.c (opencl_language_data): Likewise.
1969 * p-lang.c (pascal_language_data): Likewise.
1970 * rust-lang.c (rust_language_data): Likewise.
1971
efdf6a73
AB
19722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * ada-lang.c (ada_language_data): Remove la_range_check
1975 initializer.
1976 * c-lang.c (c_language_data): Likewise.
1977 (cplus_language_data): Likewise.
1978 (asm_language_data): Likewise.
1979 (minimal_language_data): Likewise.
1980 * d-lang.c (d_language_data): Likewise.
1981 * f-lang.c (f_language_data): Likewise.
1982 (f_language::range_checking_on_by_default): New member function.
1983 * go-lang.c (go_language_data): Remove la_range_check initializer.
1984 * language.c (enum range_mode): Moved here from language.h.
1985 (range_mode): Made static.
1986 (show_range_command): Update to use
1987 range_checking_on_by_default.
1988 (set_range_command): Likewise.
1989 (set_range_case): Likewise.
1990 (unknown_language_data): Remove la_range_check initializer.
1991 (auto_language_data): Likewise.
1992 * language.h (range_mode): Delete. Enum definition moved to
1993 language.c.
1994 (language_data): Remove la_range_check field.
1995 (language_defn::range_checking_on_by_default): New member
1996 function.
1997 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1998 (m2_language::range_checking_on_by_default): New member function.
1999 * objc-lang.c (objc_language_data): Remove la_range_check
2000 initializer.
2001 * opencl-lang.c (opencl_language_data): Likewise.
2002 * p-lang.c (pascal_language_data): Likewise.
2003 (pascal_language::range_checking_on_by_default): New member
2004 function.
2005 * rust-lang.c (rust_language_data): Remove la_range_check
2006 initializer.
2007 (rust_language::range_checking_on_by_default): New member
2008 function.
2009
bf92aec5
AB
20102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2011
2012 * dwarf2/read.c (dwarf2_physname): Remove special case for
2013 language_go.
2014 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2015 member function.
2016
d3355e4d
AB
20172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2018
2019 * ada-lang.c (ada_language_data): Remove
2020 la_store_sym_names_in_linkage_form_p initializer.
2021 (ada_language::store_sym_names_in_linkage_form_p): New member
2022 function.
2023 * c-lang.c (c_language_data): Remove
2024 la_store_sym_names_in_linkage_form_p initializer.
2025 (c_language::store_sym_names_in_linkage_form_p): New member
2026 function.
2027 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2028 initializer.
2029 (asm_language_data): Likewise.
2030 (asm_language::store_sym_names_in_linkage_form_p): New member
2031 function.
2032 (minimal_language_data): Remove
2033 la_store_sym_names_in_linkage_form_p initializer.
2034 (minimal_language::store_sym_names_in_linkage_form_p): New member
2035 function.
2036 * d-lang.c (d_language_data): Remove
2037 la_store_sym_names_in_linkage_form_p initializer.
2038 * dwarf2/read.c (dwarf2_physname): Update call to
2039 store_sym_names_in_linkage_form_p.
2040 * f-lang.c (f_language_data): Remove
2041 la_store_sym_names_in_linkage_form_p initializer.
2042 * go-lang.c (go_language_data): Remove
2043 la_store_sym_names_in_linkage_form_p initializer.
2044 * language.c (unknown_language_data): Remove
2045 la_store_sym_names_in_linkage_form_p initializer.
2046 (unknown_language::store_sym_names_in_linkage_form_p): New member
2047 function.
2048 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2049 initializer.
2050 (auto_language::store_sym_names_in_linkage_form_p): New member
2051 function.
2052 * language.h (language_data): Remove
2053 la_store_sym_names_in_linkage_form_p member variable.
2054 (language_defn::store_sym_names_in_linkage_form_p): New member
2055 function.
2056 * m2-lang.c (m2_language_data): Remove
2057 la_store_sym_names_in_linkage_form_p initializer.
2058 * objc-lang.c (objc_language_data): Likewise.
2059 * opencl-lang.c (opencl_language_data): Likewise.
2060 * p-lang.c (pascal_language_data): Likewise.
2061 * rust-lang.c (rust_language_data): Likewise.
2062
22c12a6c
AB
20632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * ada-lang.c (ada_language_data): Remove string_lower_bound
2066 initializer.
2067 * c-lang.c (c_language_data): Likewise.
2068 (cplus_language_data): Likewise.
2069 (asm_language_data): Likewise.
2070 (minimal_language_data): Likewise.
2071 * d-lang.c (d_language_data): Likewise.
2072 * f-lang.c (f_language_data): Likewise.
2073 * go-lang.c (go_language_data): Likewise.
2074 * language.c (unknown_language_data): Likewise.
2075 (auto_language_data): Likewise.
2076 * language.h (language_data): Remove string_lower_bound field.
2077 (language_defn::string_lower_bound): New member function.
2078 * m2-lang.c (m2_language_data): Remove string_lower_bound
2079 initializer.
2080 (m2_language::string_lower_bound): New member function.
2081 * objc-lang.c (objc_language_data): Remove string_lower_bound
2082 initializer.
2083 * opencl-lang.c (opencl_language_data): Likewise.
2084 * p-lang.c (pascal_language_data): Likewise.
2085 * rust-lang.c (rust_language_data): Likewise.
2086 * valops.c (value_cstring): Update call to string_lower_bound.
2087 (value_string): Likewise.
2088 * value.c (allocate_repeated_value): Likewise.
2089
1c236ddd
AB
20902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2091
2092 * valops.c (value_repeat): Fix incorrect argument name in comment.
2093
67bd3fd5
AB
20942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * ada-lang.c (ada_language_data): Remove c_style_arrays
2097 initializer.
2098 (ada_language::c_style_arrays_p): New member fuction.
2099 * c-lang.c (c_language_data): Remove c_style_arrays
2100 initializer.
2101 (cplus_language_data): Likewise.
2102 (asm_language_data): Likewise.
2103 (minimal_language_data): Likewise.
2104 * d-lang.c (d_language_data): Likewise.
2105 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2106 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2107 (f_language::c_style_arrays_p): New member function.
2108 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2109 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2110 * language.c (unknown_language_data): Remove c_style_arrays
2111 initializer.
2112 (auto_language_data): Likewise.
2113 * language.h (language_data): Remove c_style_arrays field.
2114 (language_defn::c_style_arrays_p): New member function.
2115 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2116 (m2_language::c_style_arrays_p): New member function.
2117 * objc-lang.c (objc_language_data): Remove c_style_arrays
2118 initializer.
2119 * opencl-lang.c (opencl_language_data): Likewise.
2120 * p-lang.c (pascal_language_data): Likewise.
2121 * rust-lang.c (rust_language_data): Likewise.
2122 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2123 and update local variable to a bool.
2124 * valops.c (value_cast): Update call to c_style_arrays_p.
2125 (value_array): Likewise.
2126 * value.c (coerce_array): Likewise.
2127
85967615
AB
21282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * ada-lang.c (ada_language_data): Remove la_language initializer.
2131 * c-lang.c (c_language_data): Likewise.
2132 (cplus_language_data): Likewise.
2133 (asm_language_data): Likewise.
2134 (minimal_language_data): Likewise.
2135 * d-lang.c (d_language_data): Likewise.
2136 * f-lang.c (f_language_data): Likewise.
2137 * go-lang.c (go_language_data): Likewise.
2138 * language.c (unknown_language_data): Likewise.
2139 (auto_language_data): Likewise.
2140 * language.h (language_data): Remove la_language field.
2141 (language_defn::language_defn): Initialise la_language field.
2142 (language_defn::la_language): New member variable.
2143 * m2-lang.c (m2_language_data): Remove la_language field.
2144 * objc-lang.c (objc_language_data): Likewise.
2145 * opencl-lang.c (opencl_language_data): Likewise.
2146 * p-lang.c (pascal_language_data): Likewise.
2147 * rust-lang.c (rust_language_data): Likewise.
2148
e171d6f1
AB
21492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2150
2151 * ada-lang.c (ada_extensions): Delete, moved into
2152 ada_language::filename_extensions.
2153 (ada_language_data): Remove la_filename_extensions initializer.
2154 (ada_language::filename_extensions): New member function.
2155 * c-lang.c (c_extensions): Delete, moved into
2156 c_language::filename_extensions.
2157 (c_language_data): Remove la_filename_extensions initializer.
2158 (c_language::filename_extensions): New member function.
2159 (cplus_extensions): Delete, moved into
2160 cplus_language::filename_extensions.
2161 (cplus_language_data): Remove la_filename_extensions initializer.
2162 (cplus_language::filename_extensions): New member function.
2163 (asm_extensions): Delete, moved into
2164 asm_language::filename_extensions.
2165 (asm_language_data): Remove la_filename_extensions initializer.
2166 (asm_language::filename_extensions): New member function.
2167 (minimal_language_data): Remove la_filename_extensions
2168 initializer.
2169 * d-lang.c (d_extensions): Delete, moved into
2170 d_language::filename_extensions.
2171 (d_language_data): Remove la_filename_extensions initializer.
2172 (d_language::filename_extensions): New member function.
2173 * f-lang.c (f_extensions): Delete, moved into
2174 f_language::filename_extensions.
2175 (f_language_data): Remove la_filename_extensions initializer.
2176 (f_language::filename_extensions): New member function.
2177 * go-lang.c (go_language_data): Remove la_filename_extensions
2178 initializer.
2179 * language.c (add_set_language_command): Update now that
2180 filename_extensions returns a vector.
2181 (unknown_language_data): Remove la_filename_extensions
2182 initializer.
2183 (auto_language_data): Likewise.
2184 * language.h (language_data): Remove la_filename_extensions field.
2185 (language_defn::filename_extensions): New member function.
2186 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2187 initializer.
2188 * objc-lang.c (objc_extensions): Delete, moved into
2189 objc_language::filename_extensions.
2190 (objc_language_data): Remove la_filename_extensions initializer.
2191 (objc_language::filename_extensions): New member function.
2192 * opencl-lang.c (opencl_language_data): Remove
2193 la_filename_extensions initializer.
2194 * p-lang.c (pascal_extensions): Delete, moved into
2195 pascal_language::filename_extensions.
2196 (pascal_language_data): Remove la_filename_extensions initializer.
2197 (pascal_language::filename_extensions): New member function.
2198 * rust-lang.c (rust_extensions): Delete, moved into
2199 rust_language::filename_extensions.
2200 (rust_language_data): Remove la_filename_extensions initializer.
2201 (rust_language::filename_extensions): New member function.
2202 * symfile.c (add_filename_language): Add new assert.
2203
6f7664a9
AB
22042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2205
2206 * ada-lang.c (ada_language_data): Remove la_name and
2207 la_natural_name initializers.
2208 (ada_language::name): New member function.
2209 (ada_language::natural_name): New member function.
2210 * c-lang.c (c_language_data): Remove la_name and
2211 la_natural_name initializers.
2212 (c_language::name): New member function.
2213 (c_language::natural_name): New member function.
2214 (cplus_language_data): Remove la_name and
2215 la_natural_name initializers.
2216 (cplus_language::name): New member function.
2217 (cplus_language::natural_name): New member function.
2218 (asm_language_data): Remove la_name and
2219 la_natural_name initializers.
2220 (asm_language::name): New member function.
2221 (asm_language::natural_name): New member function.
2222 (minimal_language_data): Remove la_name and
2223 la_natural_name initializers.
2224 (minimal_language::name): New member function.
2225 (minimal_language::natural_name): New member function.
2226 * compile/compile.c (compile_to_object): Update call to
2227 lanugage_defn::name.
2228 * d-lang.c (d_language_data): Remove la_name and
2229 la_natural_name initializers.
2230 (d_language::name): New member function.
2231 (d_language::natural_name): New member function.
2232 * expprint.c (print_subexp_standard): Update call to
2233 language_defn::name.
2234 (dump_raw_expression): Likewise
2235 (dump_prefix_expression): Likewise.
2236 * f-lang.c (f_language_data): Remove la_name and
2237 la_natural_name initializers.
2238 (f_language::name): New member function.
2239 (f_language::natural_name): New member function.
2240 * go-lang.c (go_language_data): Remove la_name and
2241 la_natural_name initializers.
2242 (go_language::name): New member function.
2243 (go_language::natural_name): New member function.
2244 * language.c (show_language_command): Update call to
2245 language_defn::name.
2246 (set_language_command): Likewise.
2247 (language_enum): Likewise.
2248 (language_str): Likewise.
2249 (add_set_language_command): Likewise, use
2250 language_defn::natural_name in the doc string.
2251 (unknown_language_data): Remove la_name and
2252 la_natural_name initializers.
2253 (unknown_language::name): New member function.
2254 (unknown_language::natural_name): New member function.
2255 (auto_language_data): Remove la_name and
2256 la_natural_name initializers.
2257 (auto_language::name): New member function.
2258 (auto_language::natural_name): New member function.
2259 (language_lookup_primitive_type_as_symbol): Update call to
2260 language_defn::name.
2261 * language.h (language_data): Remove la_name and la_natural_name
2262 member variables.
2263 (language_defn::name): New member function.
2264 (language_defn::natural_name): New member function.
2265 * m2-lang.c (m2_language_data): Remove la_name and
2266 la_natural_name initializers.
2267 (m2_language::name): New member function.
2268 (m2_language::natural_name): New member function.
2269 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2270 language_defn::natural_name.
2271 * objc-lang.c (objc_language_data): Remove la_name and
2272 la_natural_name initializers.
2273 (objc_language::name): New member function.
2274 (objc_language::natural_name): New member function.
2275 * opencl-lang.c (opencl_language_data): Remove la_name and
2276 la_natural_name initializers.
2277 (opencl_language::name): New member function.
2278 (opencl_language::natural_name): New member function.
2279 * p-lang.c (pascal_language_data): Remove la_name and
2280 la_natural_name initializers.
2281 (pascal_language::name): New member function.
2282 (pascal_language::natural_name): New member function.
2283 * rust-lang.c (rust_language_data): Remove la_name and
2284 la_natural_name initializers.
2285 (rust_language::name): New member function.
2286 (rust_language::natural_name): New member function.
2287 * symtab.c (lookup_language_this): Update call to
2288 language_defn::name.
2289
5bae7c4e
AB
22902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2291
2292 * ada-lang.c (ada_language_data): Remove la_name_of_this
2293 initializer.
2294 * ax-gdb.c (gen_expr): Update call to name_of_this.
2295 * c-exp.y (classify_name): Likewise.
2296 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2297 (cplus_language_data): Likewise.
2298 (cplus_language::name_of_this): New member function.
2299 (asm_language_data): Remove la_name_of_this initializer.
2300 (minimal_language_data): Likewise.
2301 * d-lang.c (d_language_data): Likewise.
2302 (d_language::name_of_this): New member function.
2303 * expprint.c (print_subexp_standard): Update call to name_of_this.
2304 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2305 * go-lang.c (go_language_data): Likewise.
2306 * language.c (unknown_language_data): Likewise.
2307 (unknown_language::name_of_this): New member function.
2308 (auto_language_data): Remove la_name_of_this initializer.
2309 (auto_language::name_of_this): New member function.
2310 * language.h (language_data): Delete la_name_of_this member
2311 variable.
2312 (language_defn::name_of_this): New member function.
2313 * m2-lang.c (m2_language_data): Remove la_name_of_this
2314 initializer.
2315 * objc-lang.c (objc_language_data): Likewise.
2316 (objc_language::name_of_this): New member function.
2317 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2318 initializer.
2319 * p-lang.c (pascal_language_data): Likewise.
2320 (pascal_language::name_of_this): New member function.
2321 * rust-lang.c (rust_language_data): Remove la_name_of_this
2322 initializer.
2323 * symtab.c (lookup_language_this): Update call to name_of_this.
2324 (lookup_symbol_aux): Likewise.
2325 * valops.c (value_of_this): Likewise.
2326
22e3f3ed
AB
23272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2328
2329 * ada-lang.c (ada_language_data): Remove
2330 la_struct_too_deep_ellipsis initializer.
2331 (ada_language::struct_too_deep_ellipsis): New member function.
2332 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2333 initializer.
2334 (cplus_language_data): Likewise.
2335 (asm_language_data): Likewise.
2336 (minimal_language_data): Likewise.
2337 * cp-valprint.c (cp_print_value): Update call to
2338 struct_too_deep_ellipsis.
2339 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2340 initializer.
2341 * f-lang.c (f_language_data): Likewise.
2342 (f_language::struct_too_deep_ellipsis): New member function.
2343 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2344 initializer.
2345 * language.c (unknown_language_data): Likewise.
2346 (auto_language_data): Likewise.
2347 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2348 member variable.
2349 (language_defn::struct_too_deep_ellipsis): New member function.
2350 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2351 initializer.Q
2352 * objc-lang.c (objc_language_data): Likewise.
2353 * opencl-lang.c (opencl_language_data): Likewise.
2354 * p-lang.c (pascal_language_data): Likewise.
2355 * rust-lang.c (rust_language_data): Likewise.
2356 * valprint.c (val_print_check_max_depth): Update call to
2357 struct_too_deep_ellipsis.
2358
ed29e1c7
FW
23592020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2360
2361 * MAINTAINERS (Write After Approval): Add myself.
2362
12d8f940
TT
23632020-09-15 Tom Tromey <tom@tromey.com>
2364
2365 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2366 Remove.
2367
6b5a7bc7
TT
23682020-09-15 Tom Tromey <tom@tromey.com>
2369
2370 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2371 and TYPE_CODE_METHODPTR cases.
2372 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2373 (c_value_print_inner): Update.
2374 * valprint.c (generic_value_print_memberptr): New function, from
2375 c_value_print_memberptr.
2376 (generic_value_print): Use it. Call cplus_print_method_ptr.
2377
47f0e2ff
TT
23782020-09-15 Tom Tromey <tromey@adacore.com>
2379
2380 * python/python-internal.h (PyInt_FromLong): Remove define.
2381 * python/py-value.c (convert_value_from_python): Use
2382 gdb_py_object_from_longest.
2383 * python/py-type.c (typy_get_code): Use
2384 gdb_py_object_from_longest.
2385 * python/py-symtab.c (salpy_get_line): Use
2386 gdb_py_object_from_longest.
2387 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2388 gdb_py_object_from_longest.
2389 * python/py-record.c (recpy_gap_reason_code): Use
2390 gdb_py_object_from_longest.
2391 * python/py-record-btrace.c (recpy_bt_insn_size)
2392 (recpy_bt_func_level, btpy_list_count): Use
2393 gdb_py_object_from_longest.
2394 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2395 gdb_py_object_from_longest. Fix error handling.
2396 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2397 gdb_py_object_from_longest.
2398 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2399 gdb_py_object_from_longest.
2400 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2401 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2402 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2403
512116ce
TT
24042020-09-15 Tom Tromey <tromey@adacore.com>
2405
2406 * python/python.c (gdbpy_parameter_value): Use
2407 gdb_py_object_from_ulongest.
2408
4ab1029c
TT
24092020-09-15 Tom Tromey <tromey@adacore.com>
2410
2411 * python/py-infevents.c (create_register_changed_event_object):
2412 Use gdb_py_object_from_longest.
2413 * python/py-exitedevent.c (create_exited_event_object): Use
2414 gdb_py_object_from_longest.
2415
062534d4
TT
24162020-09-15 Tom Tromey <tromey@adacore.com>
2417
2418 * python/python.c (gdbpy_parameter_value): Use
2419 gdb_py_object_from_longest.
2420 * python/py-type.c (convert_field, typy_range): Use
2421 gdb_py_object_from_longest.
2422 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2423 gdb_py_object_from_longest.
2424 * python/py-lazy-string.c (stpy_get_length): Use
2425 gdb_py_object_from_longest.
2426 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2427 gdb_py_object_from_longest.
2428 * python/py-infevents.c (create_memory_changed_event_object): Use
2429 gdb_py_object_from_longest.
2430 * python/py-inferior.c (infpy_get_num): Use
2431 gdb_py_object_from_longest.
2432 (infpy_get_pid): Likewise.
2433
d1cab987
TT
24342020-09-15 Tom Tromey <tromey@adacore.com>
2435
2436 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2437 defines.
2438 * python/py-value.c (valpy_long): Use
2439 gdb_py_object_from_ulongest.
2440 * python/py-symtab.c (salpy_get_pc): Use
2441 gdb_py_object_from_ulongest.
2442 (salpy_get_last): Likewise.
2443 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2444 gdb_py_object_from_ulongest.
2445 * python/py-lazy-string.c (stpy_get_address): Use
2446 gdb_py_object_from_ulongest.
2447 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2448 * python/py-arch.c (archpy_disassemble): Use
2449 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2450 error handling.
2451
4bde49dc
TT
24522020-09-15 Tom Tromey <tromey@adacore.com>
2453
2454 * python/python-internal.h (gdb_py_long_from_longest): Remove
2455 defines.
2456 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2457 * python/py-type.c (convert_field, typy_get_sizeof): Use
2458 gdb_py_object_from_longest.
2459 * python/py-record-btrace.c (btpy_list_index): Use
2460 gdb_py_object_from_longest.
2461
37431074
TT
24622020-09-15 Tom Tromey <tromey@adacore.com>
2463
2464 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2465 * python/py-record.c (recpy_element_number): Use
2466 gdb_py_object_from_longest.
2467 (recpy_gap_number): Likewise.
2468
cbe25684
TT
24692020-09-15 Tom Tromey <tromey@adacore.com>
2470
2471 * top.c (ui::ui): Update.
2472 (highest_ui_num): Remove.
2473 * top.h (struct ui) <num>: Remove.
2474
db92ac45
TT
24752020-09-15 Tom Tromey <tromey@adacore.com>
2476
2477 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2478 * ui-style.c (ansi_regex_text): Now array.
2479 * rust-exp.y (number_regex_text): Now array.
2480 * linespec.c (linespec_quote_characters): Now array.
2481 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2482 Now arrays.
2483
d2b31b67
SM
24842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2485
2486 * debuginfod-support.c (debuginfod_client_deleter): New.
2487 (debuginfod_client_up): New.
2488 (debuginfod_init): Return debuginfod_client_up.
2489 (debuginfod_source_query): Adjust.
2490 (debuginfod_debuginfo_query): Adjust.
2491
3246bd8e
SM
24922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2493
2494 * debuginfod-support.c (debuginfod_source_query): Use
2495 make_unique_xstrdup.
2496
10242f36
SM
24972020-09-14 Simon Marchi <simon.marchi@efficios.com>
2498
2499 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2500 with `type::instance_flags`.
2501
e1044e6a
MM
25022020-09-14 Michael Mullin <masmullin@gmail.com>
2503
2504 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2505 Remove baton parameter.
2506
04902b09
PA
25072020-09-14 Pedro Alves <pedro@palves.net>
2508
2509 * Makefile.in (SELFTESTS_SRCS): Add
2510 unittests/enum-flags-selftests.c.
2511 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2512 btrace_function_flags instead of enum btrace_function_flag.
2513 * compile/compile-c-types.c (convert_qualified): Use
2514 enum_flags::raw.
2515 * compile/compile-cplus-symbols.c (convert_one_symbol)
2516 (convert_symbol_bmsym):
2517 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2518 (compile_cplus_convert_struct_or_union_methods)
2519 (compile_cplus_instance::convert_qualified_base):
2520 * go-exp.y (parse_string_or_char): Add cast to int.
2521 * unittests/enum-flags-selftests.c: New file.
2522 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2523 type to btrace_thread_flags from btrace_thread_flag.
2524 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2525 local's type to btrace_thread_flags from btrace_thread_flag. Add
2526 cast in DEBUG call.
2527
69896a2c
PA
25282020-09-14 Pedro Alves <pedro@palves.net>
2529
2530 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2531 * gdbtypes.c (address_space_name_to_int): Rename to ...
2532 (address_space_name_to_type_instance_flags): ... this.
2533 (address_space_int_to_name): Rename to ...
2534 (address_space_type_instance_flags_to_name): ... this.
2535 * gdbtypes.h (address_space_name_to_int): Rename to ...
2536 (address_space_name_to_type_instance_flags): ... this.
2537 (address_space_int_to_name): Rename to ...
2538 (address_space_type_instance_flags_to_name): ... this.
2539 * type-stack.c (type_stack::insert): Adjust to rename.
2540 * type-stack.h (type_stack::insert): Likewise.
2541
314ad88d
PA
25422020-09-14 Pedro Alves <pedro@palves.net>
2543 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * avr-tdep.c (avr_address_class_type_flags): Return
2546 type_instance_flags.
2547 (avr_address_class_type_flags_to_name): Take a
2548 type_instance_flags.
2549 (avr_address_class_name_to_type_flags): Return bool and take a
2550 type_instance_flags.
2551 * d-lang.c (build_d_types): Use type::set_instance_flags.
2552 * ft32-tdep.c (ft32_address_class_type_flags): Return
2553 type_instance_flags.
2554 (ft32_address_class_type_flags_to_name): Take a
2555 type_instance_flags.
2556 (ft32_address_class_name_to_type_flags): Return bool and take a
2557 type_instance_flags.
2558 (ft32_gdbarch_init): Use type::set_instance_flags.
2559 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2560 * gdbarch.h, gdbarch.c: Regenerate.
2561 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2562 (address_class_name_to_type_flags): Use type_instance_flags and
2563 bool.
2564 * gdbtypes.c (address_space_name_to_int)
2565 (address_space_int_to_name, make_qualified_type): Use
2566 type_instance_flags.
2567 (make_qualified_type): Use type_instance_flags and
2568 type::set_instance_flags.
2569 (make_type_with_address_space, make_cv_type, make_vector_type)
2570 (check_typedef): Use type_instance_flags.
2571 (recursive_dump_type): Cast type_instance_flags to unsigned for
2572 printing.
2573 (copy_type_recursive): Use type::set_instance_flags.
2574 (gdbtypes_post_init): Use type::set_instance_flags.
2575 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2576 <m_instance_flags>: ... this.
2577 <instance_flags, set_instance_flags>: New methods.
2578 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2579 (SET_TYPE_INSTANCE_FLAGS): New.
2580 (address_space_name_to_int, address_space_int_to_name)
2581 (make_type_with_address_space): Pass flags using
2582 type_instance_flags instead of int.
2583 * stabsread.c (cleanup_undefined_types_noname): Use
2584 type::set_instance_flags.
2585 * s390-tdep.c (s390_address_class_type_flags): Return
2586 type_instance_flags.
2587 (s390_address_class_type_flags_to_name): Take a
2588 type_instance_flags.
2589 (s390_address_class_name_to_type_flags): Return bool and take a
2590 type_instance_flags.
2591 * type-stack.c (type_stack::follow_types): Use
2592 type_instance_flags.
2593 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2594
27087b7f
TT
25952020-09-14 Tom Tromey <tromey@adacore.com>
2596
2597 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2598 * x86-tdep.c (x86_is_thunk_register_name)
2599 (x86_in_indirect_branch_thunk): Update.
2600 * sparc64-tdep.c (sparc64_fpu_register_names)
2601 (sparc64_cp0_register_names, sparc64_register_names)
2602 (sparc64_pseudo_register_names): Now const.
2603 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2604 cp0_registers_num>: Now const.
2605 * sparc-tdep.c (sparc_core_register_names)
2606 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2607 (sparc32_pseudo_register_names): Now const.
2608 (validate_tdesc_registers): Update.
2609 * rust-lang.c (rust_extensions): Now const.
2610 * p-lang.c (p_extensions): Now const.
2611 * objc-lang.c (objc_extensions): Now const.
2612 * nto-tdep.c (nto_thread_state_str): Now const.
2613 * moxie-tdep.c (moxie_register_names): Now const.
2614 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2615 Now const.
2616 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2617 (mips_linux_reg_names): Now const.
2618 (mips_gdbarch_init): Update.
2619 * microblaze-tdep.c (microblaze_register_names): Now const.
2620 * m68k-tdep.c (m68k_register_names): Now const.
2621 * m32r-tdep.c (m32r_register_names): Now const.
2622 * ia64-tdep.c (ia64_register_names): Now const.
2623 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2624 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2625 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2626 ymm_avx512_register_names, pkeys_register_names>: Now const.
2627 * i386-tdep.c (i386_register_names, i386_zmm_names)
2628 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2629 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2630 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2631 * f-lang.c (f_extensions): Now const.
2632 * d-lang.c (d_extensions): Now const.
2633 * csky-tdep.c (csky_register_names): Now const.
2634 * charset.c (default_charset_names, charset_enum): Now const.
2635 (_initialize_charset): Update.
2636 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2637 const.
2638 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2639 (bsd_uthread_solib_loaded): Update.
2640 (bsd_uthread_state): Now const.
2641 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2642 (amd64_ymm_avx512_names, amd64_ymmh_names)
2643 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2644 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2645 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2646 (amd64_dword_names): Now const.
2647 * agent.c (can_use_agent_enum): Now const.
2648 * ada-tasks.c (task_states, long_task_states): Now const.
2649 * ada-lang.c (known_runtime_file_name_patterns)
2650 (known_auxiliary_function_name_patterns, attribute_names)
2651 (standard_exc, ada_extensions): Now const.
2652
89806626
SM
26532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2654
2655 * bcache.h (struct bcache) <bcache>: Remove constructor.
2656 <m_hash_function, m_compare_function>: Remove.
2657 <~bcache>: Make virtual.
2658 <compare>: Remove static method, introduce virtual method.
2659 <default_hash>: Remove.
2660 <hash>: New virtual method.
2661 * bcache.c (bcache::expand_hash_table): Update.
2662 (bcache::insert): Update.
2663 (bcache::hash): New.
2664 (bcache::compare): Update comment and parameter names.
2665 * gdbtypes.c (types_deeply_equal): Update.
2666 * psymtab.h (struct psymbol_bcache): New struct.
2667 (class psymtab_storage) <psymtab_storage>: Make default.
2668 <psymbol_cache>: Change type to psymbol_bcache.
2669 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2670 (psymbol_hash): Change to...
2671 (psymbol_bcache::hash): ... this.
2672 (psymbol_compare): Change to...
2673 (psymbol_bcache::compare): ... this.
2674
677c92fe
SM
26752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2676
2677 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2678 checking for initial lwp.
2679
3eba3a01
TT
26802020-09-14 Tom Tromey <tromey@adacore.com>
2681
2682 * m68k-tdep.c (m68k_extract_return_value): Use
2683 pointer_result_regnum.
2684 (m68k_store_return_value): Likewise.
2685 (m68k_reg_struct_return_p): Handle vectors and arrays.
2686 (m68k_return_value): Handle arrays.
2687 (m68k_svr4_return_value): Fix single-element aggregate handling.
2688 Handle long double. Adjust for embedded ABI.
2689 (m68k_svr4_init_abi): Set pointer_result_regnum.
2690 (m68k_embedded_init_abi): New function.
2691 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2692 (m68k_osabi_sniffer): New function.
2693 (_initialize_m68k_tdep): Register osabi sniffer.
2694 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2695 member.
2696
33f4dd48
SM
26972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2700 with gdb::unique_xmalloc_ptr<char>.
2701
8400a90d
SM
27022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * xml-support.h (xml_fetch_another): Change type to be a
2705 function_view.
2706 (xml_process_xincludes): Remove baton parameter.
2707 (xml_fetch_content_from_file): Change baton parameter to
2708 dirname.
2709 * xml-support.c (struct xinclude_parsing_data)
2710 <xinclude_parsing_data>: Remove baton parameter.
2711 <fetcher_baton>: Remove.
2712 (xinclude_start_include): Adjust.
2713 (xml_process_xincludes): Adjust.
2714 (xml_fetch_content_from_file): Replace baton parameter with
2715 dirname.
2716 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2717 (xml_init_syscalls_info): Use a lambda.
2718 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2719 (file_read_description_xml): Use a lambda.
2720 (fetch_available_features_from_target): Change baton parameter
2721 to target_ops.
2722 (target_read_description_xml): Use a lambda.
2723 (target_fetch_description_xml): Use a lambda.
2724 (string_read_description_xml): Update.
2725
04f5bab2
SM
27262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2727
2728 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2729 uses with type::endianity_is_not_default.
2730
db558e34
SM
27312020-09-14 Simon Marchi <simon.marchi@efficios.com>
2732
2733 * gdbtypes.h (struct type) <endianity_is_not_default,
2734 set_endianity_is_not_default>: New methods.
2735 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2736 type::endianity_is_not_default, change all write call sites to
2737 use type::set_endianity_is_not_default.
2738
22c4c60c
SM
27392020-09-14 Simon Marchi <simon.marchi@efficios.com>
2740
2741 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2742 uses with type::is_fixed_instance.
2743
9cdd0d12
SM
27442020-09-14 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * gdbtypes.h (struct type) <is_fixed_instance,
2747 set_is_fixed_instance>: New methods.
2748 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2749 write call sites to use type::set_is_fixed_instance.
2750
0becda7a
SM
27512020-09-14 Simon Marchi <simon.marchi@efficios.com>
2752
2753 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2754 uses with type::is_gnu_ifunc.
2755
03cc7249
SM
27562020-09-14 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2759 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2760 use type::set_is_gnu_ifunc.
2761
3f46044c
SM
27622020-09-14 Simon Marchi <simon.marchi@efficios.com>
2763
2764 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2765 uses with type::stub_is_supported.
2766
9baccff6
SM
27672020-09-14 Simon Marchi <simon.marchi@efficios.com>
2768
2769 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2770 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2771 use type::set_stub_is_supported.
2772
bd63c870
SM
27732020-09-14 Simon Marchi <simon.marchi@efficios.com>
2774
2775 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2776 uses with type::is_vector.
2777
2062087b
SM
27782020-09-14 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2781 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2782 use type::set_is_vector.
2783
a409645d
SM
27842020-09-14 Simon Marchi <simon.marchi@efficios.com>
2785
2786 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2787 uses with type::has_varargs.
2788
1d6286ed
SM
27892020-09-14 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2792 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2793 use type::set_has_varargs.
2794
7f9f399b
SM
27952020-09-14 Simon Marchi <simon.marchi@efficios.com>
2796
2797 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2798 uses with type::is_prototyped.
2799
27e69b7a
SM
28002020-09-14 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2803 New methods.
2804 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2805 call sites to use type::set_is_prototyped.
2806
d2183968
SM
28072020-09-14 Simon Marchi <simon.marchi@efficios.com>
2808
2809 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2810 uses with type::target_is_stub.
2811
8f53807e
SM
28122020-09-14 Simon Marchi <simon.marchi@efficios.com>
2813
2814 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2815 New methods.
2816 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2817 sites to use type::set_target_is_stub.
2818
e46d3488
SM
28192020-09-14 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * gdbtypes.h (TYPE_STUB): Remove, replace all
2822 uses with type::is_stub.
2823
b4b73759
SM
28242020-09-14 Simon Marchi <simon.marchi@efficios.com>
2825
2826 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2827 (TYPE_STUB): Use type::is_stub, change all write call sites to
2828 use type::set_is_stub.
2829
20ce4123
SM
28302020-09-14 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2833 type::has_no_signedness.
2834
15152a54
SM
28352020-09-14 Simon Marchi <simon.marchi@efficios.com>
2836
2837 * gdbtypes.h (struct type) <has_no_signedness,
2838 set_has_no_signedness>: New methods.
2839 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2840 call sites to use type::set_has_no_signedness.
2841
c6d940a9
SM
28422020-09-14 Simon Marchi <simon.marchi@efficios.com>
2843
2844 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2845 type::is_unsigned.
2846
653223d3
SM
28472020-09-14 Simon Marchi <simon.marchi@efficios.com>
2848
2849 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2850 methods.
2851 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2852 sites to use type::set_is_unsigned.
2853
55ea94da 28542020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2855 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2856
e851246a
SM
2857 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2858 pointer and stack frame offset when unwinding.
55ea94da 2859
6791b117
PA
28602020-09-13 Pedro Alves <pedro@palves.net>
2861
2862 * NEWS: Document "-break-insert --qualified".
2863 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2864
77f2120b
PA
28652020-09-13 Pedro Alves <pedro@palves.net>
2866
2867 * linespec.c (classify_mtype, compare_msyms): Delete.
2868 (search_minsyms_for_name): Remove classification logic. Instead
2869 filter out trampoline symbols if we also found an external
2870 function of the same name.
2871
ed6a896c
JB
28722020-09-13 Joel Brobecker <brobecker@adacore.com>
2873
2874 * NEWS: Create a new section for the next release branch.
2875 Rename the section of the current branch, now that it has
2876 been cut.
2877
32aea73e
JB
28782020-09-13 Joel Brobecker <brobecker@adacore.com>
2879
2880 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2881 * version.in: Bump version to 11.0.50.DATE-git.
2882
8087c3fa
JB
28832020-09-12 Joel Brobecker <brobecker@adacore.com>
2884
2885 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2886
2a67f09d
FW
28872020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2888 Felix Willgerodt <Felix.Willgerodt@intel.com>
2889
2890 * gdbarch.sh: Added bfloat16 type.
2891 * gdbarch.c: Regenerated.
2892 * gdbarch.h: Regenerated.
2893 * gdbtypes.c (floatformats_bfloat16): New struct.
2894 (gdbtypes_post_init): Add builtin_bfloat16.
2895 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2896 (floatformats_bfloat16): New struct.
2897 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2898 (i386_ymm_type): Add field "v16_bfloat16"
2899 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2900 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2901 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2902 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2903 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2904 * features/i386/64bit-avx512.c: Regenerated.
2905 * features/i386/64bit-sse.xml: Add bfloat16 type.
2906 * features/i386/64bit-sse.c: Regenerated.
2907
1347d111
FW
29082020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2909
2910 * i386-tdep.c (i386_zmm_type): Fix field names.
2911 (i386_ymm_type): Fix field names.
2912
7a4e8e7d
TBA
29132020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2914
2915 * breakpoint.c: Fix typo in the help message of the
2916 "set breakpoint condition-evaluation" command.
2917
cf4ac4be
KR
29182020-09-10 Kamil Rytarowski <n54@gmx.com>
2919
2920 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2921 * (nbsd_nat_target::pid_to_exec_file)
2922 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2923 (nbsd_nat_target::post_startup_inferior)
2924 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2925 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2926 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2927 * (nbsd_thread_lister): Remove.
2928
f404573e
KR
29292020-09-10 Kamil Rytarowski <n54@gmx.com>
2930
2931 * fork-inferior.c (startup_inferior): Avoid double free.
2932
1ccb2c17
KR
29332020-09-10 Kamil Rytarowski <n54@gmx.com>
2934
2935 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2936 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2937
feedfcc7
KR
29382020-09-10 Kamil Rytarowski <n54@gmx.com>
2939
2940 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2941 * netbsd-nat.c: Include <sys/ptrace.h>.
2942 * (netbsd_nat::enable_proc_events): Add.
2943
c489f8c6
KR
29442020-09-10 Kamil Rytarowski <n54@gmx.com>
2945
2946 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2947 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2948 (netbsd_nat::for_each_thread): Add.
2949 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2950 "gdbsupport/common-debug.h".
2951 * (netbsd_nat::netbsd_thread_lister)
2952 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2953 (netbsd_nat::for_each_thread): Add.
2954
330662f6
KR
29552020-09-10 Kamil Rytarowski <n54@gmx.com>
2956
2957 * netbsd-nat.h: Include <unistd.h>.
2958 * (netbsd_nat::pid_to_exec_file): Add.
2959 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2960 * (netbsd_nat::pid_to_exec_file) Add.
2961
70b67307
KR
29622020-09-10 Kamil Rytarowski <n54@gmx.com>
2963
2964 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2965
99cf6da6
KR
29662020-09-10 Kamil Rytarowski <n54@gmx.com>
2967
2968 * netbsd-nat.h: New file.
2969 * netbsd-nat.c: Likewise.
2970
1b788fb6
TT
29712020-09-09 Tom Tromey <tromey@adacore.com>
2972
2973 * ada-lang.c (remove_extra_symbols): Do not increment when
2974 removing an element
2975
03b0a45f
TT
29762020-09-08 Tom Tromey <tromey@adacore.com>
2977
2978 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2979
3cae4447
TT
29802020-09-08 Tom Tromey <tromey@adacore.com>
2981
2982 PR win32/25302:
2983 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2984 (gdb_bfd_init_data): New function.
2985 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2986
7f08fd51
TBA
29872020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2988
2989 * infrun.c (fetch_inferior_event): Use
2990 `switch_to_target_no_thread` to switch the target.
2991
3e6ff933
TT
29922020-09-06 Tom Tromey <tom@tromey.com>
2993
2994 * symfile.h (dwarf2_free_objfile): Don't declare.
2995
e56798df
AKS
29962020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2997
2998 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2999 to match 16 byte real/complex type generated by Flang compiler.
3000
8f5c6526
TV
30012020-09-03 Tom de Vries <tdevries@suse.de>
3002
3003 PR breakpoint/26546
3004 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3005 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3006
c5065df0
SM
30072020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3008
3009 * maint.c (index_digits): New function.
3010 (struct maint_print_section_data): Remove.
3011 (print_bfd_section_info): Remove print_data parameter, add arg
3012 and index_digits.
3013 (print_objfile_section_info): Likewise.
3014 (print_bfd_section_info_maybe_relocated): Likewise (plus
3015 objfile).
3016 (maintenance_info_sections): Adjust calls.
3017
02c6f3f1
TT
30182020-09-02 Tom Tromey <tromey@adacore.com>
3019
3020 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3021 for null pointers.
3022 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3023
ef5e5b0b
SM
30242020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3025
3026 * bcache.h (struct bcache) <insert>: Change type of `added` to
3027 pointer to bool.
3028 * bcache.c (bcache::insert): Likewise.
3029 * gdbtypes.c (check_types_worklist): Adjust.
3030 * psymtab.c (add_psymbol_to_bcache): Adjust.
3031
973695d6
KB
30322020-08-31 Kevin Buettner <kevinb@redhat.com>
3033
3034 * corelow.c (unordered_set): Include.
3035 (class core_target): Add field 'm_core_unavailable_mappings'.
3036 (core_target::build_file_mappings): Print only one warning
3037 per inaccessible file. Add unavailable/broken mappings
3038 to m_core_unavailable_mappings.
3039 (core_target::xfer_partial): Call...
3040 (core_target::xfer_memory_via_mappings): New method.
3041
264fc0e2
SM
30422020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3043
3044 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3045 type to bool.
3046
2de01bdb
SM
30472020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3048
3049 * dwarf2/read.c (struct field_info): Fix indentation.
3050
f3bd50f1
SM
30512020-08-31 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3054 ordering in comment.
3055 * frame.c (frame_id_eq): Fix indentation.
3056
22b9b4b0
SL
30572020-08-31 Scott Linder <scott@scottlinder.com>
3058 Simon Marchi <simon.marchi@efficios.com>
3059
3060 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3061 inline frame ids in outer frame.
3062
84154d16
SM
30632020-08-31 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3066 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3067 (outer_frame_id): Use FID_STACK_OUTER instead of
3068 FID_STACK_INVALID.
3069 (frame_id_p): Don't check for outer_frame_id.
3070
8efaf6b3
SM
30712020-08-31 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3074 regnum/frame in value. Call allocate_value_lazy.
3075 * frame.c (frame_unwind_register_value): Use
3076 val_print_not_saved.
3077
fe1fe7ea
SM
30782020-08-31 Simon Marchi <simon.marchi@efficios.com>
3079
3080 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3081
f7c7700d
PA
30822020-08-29 Pedro Alves <pedro@palves.net>
3083
3084 * progspace.c (print_program_space): Use all_inferiors. Switch to
3085 the inferior before calling target_pid_to_str.
3086
e0814aae
TT
30872020-08-28 Tom Tromey <tom@tromey.com>
3088
3089 * xcoffread.c (xcoff_end_psymtab): Update comment.
3090 * dbxread.c (dbx_end_psymtab): Update comment.
3091
626d2320
TV
30922020-08-28 Tom de Vries <tdevries@suse.de>
3093
3094 PR breakpoint/26544
3095 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3096 event_location.
3097 (create_breakpoint): Same.
3098 (base_breakpoint_decode_location): Same.
3099 (bkpt_create_sals_from_location): Same.
3100 (bkpt_decode_location): Same.
3101 (bkpt_probe_create_sals_from_location): Same.
3102 (bkpt_probe_decode_location): Same.
3103 (tracepoint_create_sals_from_location): Same.
3104 (tracepoint_decode_location): Same.
3105 (tracepoint_probe_decode_location): Same.
3106 (strace_marker_create_sals_from_location): Same.
3107 (strace_marker_decode_location): Same.
3108 (create_sals_from_location_default): Same.
3109 (decode_location_default): Same.
3110 * breakpoint.h (struct breakpoint_ops): Same.
3111 (create_breakpoint): Same.
3112 * linespec.h (decode_line_full): Same.
3113 * linespec.c (decode_line_full): Same. Throw error if
3114 result.size () == 0.
3115
df631783
PA
31162020-08-27 Pedro Alves <pedro@palves.net>
3117
3118 PR gdb/26524
3119 * breakpoint.c (until_break_fsm) <location_breakpoint,
3120 caller_breakpoint>: Delete fields.
3121 <breakpoints>: New field.
3122 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3123 two individual breakpoints.
3124 (until_break_fsm::should_stop): Loop over breakpoints in the
3125 breakpoint vector.
3126 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3127 vector.
3128 (until_break_command): Handle location expanding into multiple
3129 sals.
3130
b2b38aa4
PA
31312020-08-27 Pedro Alves <pedro@palves.net>
3132
3133 PR gdb/26523
3134 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3135 bp_until breakpoints user-specified locations. Update intro
3136 comment.
3137
b886559f
SM
31382020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3139
3140 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3141 gdb_bfd_sections): New.
3142 * maint.c (print_bfd_section_info): Change param type to
3143 maint_print_section_data.
3144 (print_objfile_section_info): Likewise.
3145 (print_bfd_section_info_maybe_relocated): Likewise.
3146 (maintenance_info_sections): Use gdb_bfd_sections.
3147
4c6e63bf
SV
31482020-08-25 Shahab Vahedi <shahab@synopsys.com>
3149
3150 * MAINTAINERS: Add ARC target and maintainer.
3151
8d7f0635
AK
31522020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3153
3154 * configure.tgt: ARC support for GNU/Linux.
3155 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3156 * arc-linux-tdep.c: New file.
3157 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3158 * arc-tdep.c (arc_write_pc): Use it.
3159
fdd8731b
SV
31602020-08-25 Shahab Vahedi <shahab@synopsys.com>
3161
3162 * arc-tdep.c (arc_check_for_hardware_loop): New.
3163 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3164
22459524
SV
31652020-08-25 Shahab Vahedi <shahab@synopsys.com>
3166
3167 * arc-tdep.h: Include "gdbarch.h".
3168
995d3a19
SV
31692020-08-25 Shahab Vahedi <shahab@synopsys.com>
3170
3171 * arch/arc.h
3172 (arc_gdbarch_features): New class to stir the selection of target XML.
3173 (arc_create_target_description): Use FEATURES to choose XML target.
3174 (arc_lookup_target_description): Use arc_create_target_description
3175 to create _new_ target descriptions or return the already created
3176 ones if the FEATURES is the same.
3177 * arch/arc.c: Implementation of prototypes described above.
3178 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3179 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3180 * arc-tdep.c (*_feature_name): Make feature names consistent.
3181 (arc_register_feature): A new struct to hold information about
3182 registers of a particular target/feature.
3183 (arc_check_tdesc_feature): Check if XML provides registers in
3184 compliance with ARC_REGISTER_FEATURE structs.
3185 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3186 (determine_*_reg_feature_set): Which feature name to look for.
3187 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3188 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3189 to expected ISA enums to be used in arc_gdbarch_features structs.
3190 * features/Makefile (FEATURE_XMLFILES): Add new files.
3191 * gdb/features/arc/v1-aux.c: New file.
3192 * gdb/features/arc/v1-aux.xml: Likewise.
3193 * gdb/features/arc/v1-core.c: Likewise.
3194 * gdb/features/arc/v1-core.xml: Likewise.
3195 * gdb/features/arc/v2-aux.c: Likewise.
3196 * gdb/features/arc/v2-aux.xml: Likewise.
3197 * gdb/features/arc/v2-core.c: Likewise.
3198 * gdb/features/arc/v2-core.xml: Likewise.
3199 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3200
3945d2d7
GM
32012020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3202 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 PR m2/26372
fc5d6901 3205 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3206 an assert. Remove single element array indexing pattern as the
3207 MULTI_SUBSCRIPT support will handle this case too.
3208
2677f2d3
SM
32092020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * value.h (valprint_check_validity): Move declaration from
3212 here...
3213 * valprint.h (valprint_check_validity): ... to here.
3214
c426fddb
SM
32152020-08-24 Simon Marchi <simon.marchi@efficios.com>
3216
3217 * debug.h: New file.
3218 * debug.c (debug_prefixed_vprintf): New function.
3219 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3220 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3221
1eb8556f
SM
32222020-08-24 Simon Marchi <simon.marchi@efficios.com>
3223
3224 * infrun.h (infrun_debug_printf_1): New function declaration.
3225 (infrun_debug_printf): New macro.
3226 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3227 throughout.
3228 (infrun_debug_printf): New function.
3229 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3230 (handle_jit_event): Likewise.
3231
b8fff44e
MW
32322020-08-21 Mark Wielaard <mark@klomp.org>
3233
3234 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3235
d19c3068
SM
32362020-08-22 Simon Marchi <simon.marchi@efficios.com>
3237
3238 * frame.c (enum class frame_id_status): New.
3239 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3240 (fprintf_frame): Update.
3241 (compute_frame_id): Set frame id status to "computing" on entry.
3242 Set it back to "not_computed" on failure and to "computed" on
3243 success.
3244 (get_frame_id): Assert the frame id is not being computed.
3245 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3246 (create_new_frame): Likewise.
3247 (frame_cleanup_after_sniffer): Update assert.
3248
b70e516e
SM
32492020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * regcache.c (pid_ptid_regcache_map): New type.
3252 (target_ptid_regcache_map): Remove.
3253 (target_pid_ptid_regcache_map): New type.
3254 (regcaches): Change type to target_pid_ptid_regcache_map.
3255 (get_thread_arch_aspace_regcache): Update.
3256 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3257 case.
3258 (regcaches_size): Update.
3259 (regcache_count): Update.
3260 (registers_changed_ptid_target_pid_test): New.
3261 (_initialize_regcache): Register new test.
3262
cdd9148a
SM
32632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3264
3265 * regcache.c (regcache_count): New.
3266 (struct regcache_test_data): New.
3267 (regcache_test_data_up): New.
3268 (populate_regcaches_for_test): New.
3269 (regcaches_test): Remove.
3270 (get_thread_arch_aspace_regcache_test): New.
3271 (registers_changed_ptid_all_test): New.
3272 (registers_changed_ptid_target_test): New.
3273 (registers_changed_ptid_target_ptid_test): New.
3274 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3275 (_initialize_regcache): Register new tests.
3276
dd125343
SM
32772020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3278
3279 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3280 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3281 gdbarch and aspace parameter. Use current inferior's aspace.
3282 Validate regcache's arch value.
3283 (regcaches_test): Update.
3284
3ee93972
SM
32852020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3286
3287 * regcache.c (regcaches_test): Call registers_changed.
3288
33bf4c5c
TBA
32892020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3290
3291 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3292
c2fd7fae
AKS
32932020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3294
3295 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3296 to find the end of prologue for flang compiled binaries.
3297 * arm-tdep.c (arm_skip_prologue): Likewise.
3298 * i386-tdep.c (i386_skip_prologue): Likewise.
3299 * producer.c (producer_is_llvm): New function.
3300 (producer_parsing_tests): Added new tests for clang/flang.
3301 * producer.h (producer_is_llvm): New declaration.
3302
9327494e
SM
33032020-08-18 Simon Marchi <simon.marchi@efficios.com>
3304
3305 * linux-nat.c (linux_nat_debug_printf): New function.
3306 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3307
d138725a
AM
33082020-08-18 Aaron Merey <amerey@redhat.com>
3309
3310 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3311 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3312 (CLIBS): Add DEBUGINFOD_LIBS.
3313
f9b11e6b
ST
33142020-08-17 Sergei Trofimovich <siarheit@google.com>
3315
3316 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3317 'gdbarch_num_regs'.
3318
3ae7ab99
TT
33192020-08-17 Tom Tromey <tromey@adacore.com>
3320
3321 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3322 ada_get_decoded_value returns NULL.
3323
b017825f
TT
33242020-08-17 Tom Tromey <tromey@adacore.com>
3325
3326 * python/py-inferior.c (infpy_search_memory): Use
3327 gdb_py_object_from_ulongest.
3328 * python/py-infevents.c (create_inferior_call_event_object)
3329 (create_memory_changed_event_object): Use
3330 gdb_py_object_from_ulongest.
3331 * python/py-linetable.c (ltpy_entry_get_pc): Use
3332 gdb_py_object_from_ulongest.
3333
7635cf79
SM
33342020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3335
3336 * loc.c (class symbol_needs_eval_context): Fix indentation.
3337
f54be24b
SM
33382020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3339
3340 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3341 bool.
3342
53d5a2a5
TV
33432020-08-17 Tom de Vries <tdevries@suse.de>
3344
3345 PR gdb/26393
3346 * gdbtypes.c (dump_dynamic_prop): New function.
3347 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3348
547ce8f0
TV
33492020-08-15 Tom de Vries <tdevries@suse.de>
3350
3351 PR backtrace/26390
3352 * stack.c (print_frame_args): Temporarily set the selected
3353 frame to FRAME while printing the frame's arguments.
3354
6ea815e7
PFC
33552020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3356
3357 PR breakpoints/26385
3358 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3359 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3360
6e562fa3
PFC
33612020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3362
3363 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3364 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3365 and >= to check return value instead of == -1 and != -1.
3366
d369b608
SM
33672020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3368
3369 * utils.h (class gdb_argv) <as_array_view>: New method.
3370 * utils.c (gdb_argv_as_array_view_test): New.
3371 (_initialize_utils): Register selftest.
3372 * maint.c (maintenance_selftest): Use the new method.
3373
b31488a3
KR
33742020-08-13 Kamil Rytarowski <n54@gmx.com>
3375
3376 * target.h (supports_dumpcore, dumpcore): New
3377 function declarations.
3378 * target.c (supports_dumpcore, dumpcore): New
3379 functions.
3380 * target-delegates.c: Rebuild.
3381 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3382 and target_dumpcore ().
3383
002a3166
AM
33842020-08-13 Aaron Merey <amerey@redhat.com>
3385
3386 * debuginfod-support.c: Replace global variables with user_data.
3387
ece5bc8a
SM
33882020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3389
3390 * maint.c (maintenance_selftest): Split args and pass array_view
3391 to run_tests.
3392
6d8a0a5e
LM
33932020-08-12 Luis Machado <luis.machado@linaro.org>
3394
3395 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3396 type's length.
3397 Use %s and pulongest to print the length.
3398
7cf663a9
PA
33992020-08-12 Pedro Alves <palves@redhat.com>
3400
3401 * NEWS: Move "Multi-target debugging support" item to the
3402 "Changes since GDB 9" section.
3403
27c7b875
PA
34042020-08-12 Pedro Alves <palves@redhat.com>
3405
3406 PR gdb/26336
3407 * progspace.c (program_space::remove_objfile): Invalidate the
3408 frame cache.
3409
1796a2a1
TV
34102020-08-11 Tom de Vries <tdevries@suse.de>
3411
3412 * MAINTAINERS: Mark ms1 as deleted.
3413
f8e3fe0d
LM
34142020-08-10 Luis Machado <luis.machado@linaro.org>
3415
3416 PR gdb/26310
3417
3418 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3419 act accordingly.
3420 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3421 movz/str/stur/stp skipping behavior.
3422
cc308722
LM
34232020-08-10 Luis Machado <luis.machado@linaro.org>
3424
3425 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3426 struct user_sve_header instead of struct sve_context.
3427
041d9819
SM
34282020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3429
3430 * read.h (dwarf2_fetch_die_loc_sect_off,
3431 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3432 `void *` parameter with function_view.
3433 * read.c (dwarf2_fetch_die_loc_sect_off,
3434 dwarf2_fetch_die_loc_cu_off): Likewise.
3435 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3436 (per_cu_dwarf_call): Adjust.
3437 (get_frame_address_in_block_wrapper): Remove.
3438 (indirect_synthetic_pointer): Adjust.
3439 (get_ax_pc): Remove.
3440 (dwarf2_compile_expr_to_ax): Adjust.
3441
38f8aa06
TV
34422020-08-08 Tom de Vries <tdevries@suse.de>
3443
3444 PR build/26344
3445 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3446 constructor.
3447 * regcache.c (get_thread_arch_aspace_regcache): Same.
3448
a52b3ae2
TT
34492020-08-07 Tom Tromey <tromey@adacore.com>
3450
3451 * ravenscar-thread.c
3452 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3453 New method.
3454 (ravenscar_thread_target::wait): Check
3455 runtime_initialized.
3456 (ravenscar_thread_target::prepare_to_store)
3457 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3458 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3459 (ravenscar_thread_target::stopped_by_watchpoint)
3460 (ravenscar_thread_target::stopped_data_address)
3461 (ravenscar_thread_target::core_of_thread): Use
3462 scoped_restore_current_thread and
3463 set_base_thread_from_ravenscar_task.
3464
0e29517d
TT
34652020-08-07 Tom Tromey <tromey@adacore.com>
3466
3467 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3468
592f9bd7
TT
34692020-08-07 Tom Tromey <tromey@adacore.com>
3470
3471 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3472 update_inferior_ptid before update_thread_list.
3473 (temporarily_change_regcache_ptid): New class.
3474 (ravenscar_thread_target::fetch_registers)
3475 (ravenscar_thread_target::store_registers)
3476 (ravenscar_thread_target::prepare_to_store): Use base thread when
3477 forwarding operation.
3478
39e2018a
TT
34792020-08-07 Tom Tromey <tromey@adacore.com>
3480
3481 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3482 "is_pid" case.
3483
2080266b
TT
34842020-08-07 Tom Tromey <tromey@adacore.com>
3485
3486 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3487 New methods.
3488 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3489 first.
3490 (ravenscar_thread_target::add_thread): Rename from
3491 ravenscar_add_thread.
3492 (ravenscar_thread_target::update_thread_list): Use a lambda.
3493 (ravenscar_thread_target::xfer_partial): New method.
3494
78c02f21
TT
34952020-08-07 Tom Tromey <tromey@adacore.com>
3496
3497 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3498 gdb::function_view.
3499 (iterate_over_live_ada_tasks): Change type of argument.
3500 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3501 of argument.
3502
d5d833af
TT
35032020-08-07 Tom Tromey <tromey@adacore.com>
3504
3505 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3506 Remove.
3507 (ravenscar_thread_target::extra_thread_info): Remove.
3508 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3509 defer to target beneath for non-Ravenscar threads.
3510
a8ac85bb
TT
35112020-08-07 Tom Tromey <tromey@adacore.com>
3512
3513 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3514 get_base_thread_from_ravenscar_task>: Now methods.
3515 <m_cpu_map>: New member.
3516 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3517 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3518 (ravenscar_thread_target::task_is_currently_active): Update.
3519 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3520 Now a method.
3521 (ravenscar_thread_target::add_active_thread): Put initial thread
3522 into the m_cpu_map.
3523
550ab58d
TT
35242020-08-07 Tom Tromey <tromey@adacore.com>
3525
3526 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3527 event_ptid.
3528
e9546579
TT
35292020-08-07 Tom Tromey <tromey@adacore.com>
3530
3531 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3532 runtime_initialized.
3533
3d4470e5
TT
35342020-08-07 Tom Tromey <tromey@adacore.com>
3535
3536 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3537 add_active_thread.
3538 (ravenscar_thread_target::add_active_thread): Now public.
3539 (ravenscar_inferior_created): Call add_active_thread after pushing
3540 the target.
3541
888bdb2b
SM
35422020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 * regcache.c (ptid_regcache_map): New type.
3545 (target_ptid_regcache_map): New type.
3546 (regcaches): Change type to target_ptid_regcache_map.
3547 (get_thread_arch_aspace_regcache): Update to regcaches' new
3548 type.
3549 (regcache_thread_ptid_changed): Likewise.
3550 (registers_changed_ptid): Likewise.
3551 (regcaches_size): Likewise.
3552 (regcaches_test): Update.
3553 (regcache_thread_ptid_changed): Update.
3554 * regcache.h (regcache_up): New type.
3555 * gdbsupport/ptid.h (hash_ptid): New struct.
3556
b161a60d
SM
35572020-08-07 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * observable.h (thread_ptid_changed): Add parameter
3560 `process_stratum_target *`.
3561 * infrun.c (infrun_thread_ptid_changed): Add parameter
3562 `process_stratum_target *` and use it.
3563 (selftests): New namespace.
3564 (infrun_thread_ptid_changed): New function.
3565 (_initialize_infrun): Register selftest.
3566 * regcache.c (regcache_thread_ptid_changed): Add parameter
3567 `process_stratum_target *` and use it.
3568 (regcache_thread_ptid_changed): New function.
3569 (_initialize_regcache): Register selftest.
3570 * thread.c (thread_change_ptid): Pass target to
3571 thread_ptid_changed observable.
3572
d2854d8d
CT
35732020-08-06 Caroline Tice <cmtice@google.com>
3574
fe4c3d43
SM
3575 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3576 (struct dwp_sections): Update field comments. Add loclists and
3577 rnglists fields.
3578 (struct virtual_v2_dwo_sections): Rename struct to
3579 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3580 size & offset fields for loclists and rnglists.
3581 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3582 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3583 skipping dummy type units.
3584 (create_dwp_hash_table): Update the large comment above the function to
3585 discuss Version 5 DWP files as well, with references. Update all the
3586 version checks in the function to check for version 5 as well. Add new
3587 section at the end to create dwp hash table for version 5.
3588 (create_dwp_v2_section): Rename function to
3589 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3590 Add V5 to error message text.
3591 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3592 into calls to create_dwp_v2_or_v5_section.
3593 (create_dwo_unit_in_dwp_v5): New function.
3594 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3595 check for version2; add else clause to handle version 5.
3596 (open_and_init_dwo_file): Add code to check dwarf version & only call
3597 create_debug_types_hash_table (with sections.types) if version is not 5;
3598 else call create_debug_type_hash_table, with sections.info.
3599 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3600 version 5.
3601 (dwarf2_locate_v5_dwp_sections): New function.
3602 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3603 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3604
159ed7d9
SM
36052020-08-06 Simon Marchi <simon.marchi@efficios.com>
3606
3607 * regcache.h (class regcache): Remove friend
3608 registers_changed_ptid.
3609 <regcache_thread_ptid_changed>: Remove.
3610 <regcaches>: Remove.
3611 * regcache.c (regcache::regcaches): Rename to...
3612 (regcaches): ... this. Make static.
3613 (get_thread_arch_aspace_regcache): Update.
3614 (regcache::regcache_thread_ptid_changed): Rename to...
3615 (regcache_thread_ptid_changed): ... this. Update.
3616 (class regcache_access): Remove.
3617 (regcaches_test): Update.
3618 (_initialize_regcache): Update.
3619 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3620 <forward_list>.
3621
174981ae
SM
36222020-08-06 Simon Marchi <simon.marchi@efficios.com>
3623
3624 * regcache.h (class regcache) <current_regcache>: Rename to...
3625 <regcaches>: ... this. Move doc here.
3626 * regcache.c (regcache::current_regcache) Rename to...
3627 (regcache::regcaches): ... this. Move doc to header.
3628 (get_thread_arch_aspace_regcache): Update.
3629 (regcache::regcache_thread_ptid_changed): Update.
3630 (registers_changed_ptid): Update.
3631 (class regcache_access) <current_regcache_size>: Rename to...
3632 <regcaches_size>: ... this.
3633 (current_regcache_test): Rename to...
3634 (regcaches_test): ... this.
3635 (_initialize_regcache): Update.
3636
ed908db6
VC
36372020-08-06 Victor Collod <vcollod@nvidia.com>
3638
3639 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3640
b5582ab7
KB
36412020-08-05 Kevin Buettner <kevinb@redhat.com>
3642
3643 * corelow.c (core_target::build_file_mappings): Don't output
3644 null pathname in warning.
3645
ea946b86
SM
36462020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3647
3648 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3649 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3650 gdb.dwarf2/dw2-single-line-discriminators.exp,
3651 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3652
57d02173
TT
36532020-08-05 Tom Tromey <tromey@adacore.com>
3654
3655 PR rust/26197:
3656 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3657 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3658 Fix off-by-one and type size errors in ordinary case.
3659
5555c86d
TV
36602020-08-05 Tom de Vries <tdevries@suse.de>
3661
3662 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3663 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3664
97916bfe
SM
36652020-08-04 Simon Marchi <simon.marchi@efficios.com>
3666
3667 * frame.h (frame_id_p): Return bool.
3668 (frame_id_artificial_p): Return bool.
3669 (frame_id_eq): Return bool.
3670 (has_stack_frames): Return bool.
3671 (get_selected_frame): Fix typo in comment.
3672 (get_frame_pc_if_available): Return bool.
3673 (get_frame_address_in_block_if_available): Return bool.
3674 (get_frame_func_if_available): Return bool.
3675 (read_frame_register_unsigned): Return bool.
3676 (get_frame_register_bytes): Return bool.
3677 (safe_frame_unwind_memory): Return bool.
3678 (deprecated_frame_register_read): Return bool.
3679 (frame_unwinder_is): Return bool.
3680 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3681 bool.
3682 <this_id::p>: Likewise.
3683 <prev_p>: Likewise.
3684 (frame_stash_add): Return bool.
3685 (get_frame_id): Use bool.
3686 (frame_id_build_special) Use bool.
3687 (frame_id_build_unavailable_stack): Use bool.
3688 (frame_id_build): Use bool.
3689 (frame_id_p): Return bool, use true/false instead of 1/0.
3690 (frame_id_artificial_p): Likewise.
3691 (frame_id_eq): Likewise.
3692 (frame_id_inner): Likewise.
3693 (get_frame_func_if_available): Likewise.
3694 (read_frame_register_unsigned): Likewise.
3695 (deprecated_frame_register_read): Likewise.
3696 (get_frame_register_bytes): Likewise.
3697 (has_stack_frames): Likewise.
3698 (inside_main_func): Likewise.
3699 (inside_entry_func): Likewise.
3700 (get_frame_pc_if_available): Likewise.
3701 (get_frame_address_in_block_if_available): Likewise.
3702 (frame_unwinder_is): Likewise.
3703 (safe_frame_unwind_memory): Likewise.
3704 (frame_unwind_arch): Likewise.
3705
fedfee88
SM
37062020-08-04 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3709 type to cached_copy_status.
3710 (fprintf_frame): Adjust.
3711 (get_frame_func_if_available): Adjust.
3712 (frame_cleanup_after_sniffer): Adjust.
3713
6cfa9b59
MW
37142020-08-04 Mark Wielaard <mark@klomp.org>
3715
3716 * MAINTAINERS (Write After Approval): Update email address.
3717
66d6346b
SM
37182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3719
3720 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3721 dynamic_prop::const_val.
3722
8a6d5e35
SM
37232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3724
3725 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3726 dynamic_prop::kind.
3727
51d6067d
SM
37282020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3729
3730 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3731
b26e2ae7
JM
37322020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3733
3734 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3735
39791af2
JM
37362020-08-04 Weimin Pan <weimin.pan@oracle.com>
3737 Jose E. Marchesi <jose.marchesi@oracle.com>
3738
3739 * configure.tgt: Add entry for bpf-*-*.
3740 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3741 (ALLDEPFILES): Add bpf-tdep.c.
3742 * bpf-tdep.c: New file.
3743 * MAINTAINERS: Add bpf target and maintainer.
3744 * NEWS: Mention the support for the new target.
3745
521894aa
TV
37462020-08-04 Tom de Vries <tdevries@suse.de>
3747
3748 PR symtab/23270
3749 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3750 Error.
3751
5d6356e9
JB
37522020-08-03 John Baldwin <jhb@FreeBSD.org>
3753
3754 * syscalls/freebsd.xml: Regenerate.
3755
0cf82b81
JB
37562020-08-03 John Baldwin <jhb@FreeBSD.org>
3757
3758 * syscalls/update-freebsd.sh: Fix usage and year range.
3759
8f34b746
TV
37602020-08-03 Tom de Vries <tdevries@suse.de>
3761
3762 PR symtab/26333
3763 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3764 DW_LNE_lo_user/DW_LNE_hi_user range.
3765
5e500d33
SM
37662020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3767
3768 PR ada/26318
3769 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3770 kind.
3771
78319c15
TBA
37722020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3773
3774 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3775
4c55e970
TBA
37762020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3777
3778 * breakpoint.c (set_breakpoint_condition): Update the condition
3779 expressions after checking that the input condition string parses
3780 successfully and does not contain junk at the end.
3781
1e620590
TBA
37822020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3783
3784 * breakpoint.c (set_breakpoint_condition): Update the
3785 condition string after parsing the new condition successfully.
3786
c8693053
RO
37872020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3788
3789 * proc-api.c (_STRUCTURED_PROC): Don't define.
3790 * proc-events.c: Likewise.
3791 * proc-flags.c: Likewise.
3792 * proc-why.c: Likewise.
3793 * procfs.c: Likewise.
3794
3795 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3796 * configure, config.in: Regenerate.
3797
5a99adb8
TV
37982020-07-30 Tom de Vries <tdevries@suse.de>
3799
3800 PR build/26320
3801 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3802 m_red/m_green/m_blue in a union.
3803
8ba83e91
TV
38042020-07-29 Tom de Vries <tdevries@suse.de>
3805
3806 PR tdep/26280
3807 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3808
f75a0693
AB
38092020-07-28 Tom Tromey <tromey@adacore.com>
3810
3811 PR symtab/26270:
3812 * symtab.h (find_pc_partial_function_sym): Declare.
3813 * cli/cli-cmds.c (disassemble_command): Use
3814 find_pc_partial_function_sym. Check asm_demangle.
3815 * blockframe.c (cache_pc_function_sym): New global.
3816 (cache_pc_function_name): Remove.
3817 (clear_pc_function_cache): Update.
3818 (find_pc_partial_function_sym): New function, from
3819 find_pc_partial_function.
3820 (find_pc_partial_function): Rewrite using
3821 find_pc_partial_function_sym.
3822
16f3242c
TT
38232020-07-28 Tom Tromey <tromey@adacore.com>
3824
3825 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3826 help. Add usage.
3827
4888741a
TT
38282020-07-28 Tom Tromey <tromey@adacore.com>
3829
3830 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3831 <DW_OP_GNU_variable_value>: Cast to address type.
3832
4d46f402
KR
38332020-07-28 Kamil Rytarowski <n54@gmx.com>
3834
3835 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3836 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3837 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3838 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3839 (nbsd_get_siginfo_type): New.
3840 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3841 (_initialize_nbsd_tdep): New.
3842
d70f978b
L
38432020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3844
3845 PR binutils/26301
3846 * configure: Regenerated.
3847
377170fa
L
38482020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3849
3850 PR binutils/26301
3851 * configure: Regenerated.
3852
43d5901d
AB
38532020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3854
3855 * python/py-frame.c: Remove 'user-regs.h' include.
3856 (frapy_read_register): Rewrite to make use of
3857 gdbpy_parse_register_id.
3858 * python/py-registers.c (gdbpy_parse_register_id): New function,
3859 moved here from python/py-unwind.c. Updated the return type, and
3860 also accepts register descriptor objects.
3861 * python/py-unwind.c: Remove 'user-regs.h' include.
3862 (pyuw_parse_register_id): Moved to python/py-registers.c.
3863 (unwind_infopy_add_saved_register): Update to use
3864 gdbpy_parse_register_id.
3865 (pending_framepy_read_register): Likewise.
3866 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3867
14fa8fb3
AB
38682020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3869
3870 * python/py-registers.c: Add 'user-regs.h' include.
3871 (register_descriptor_iter_find): New function.
3872 (register_descriptor_iterator_object_methods): New static global
3873 methods array.
3874 (register_descriptor_iterator_object_type): Add pointer to methods
3875 array.
3876
ddce1758
JB
38772020-07-27 John Baldwin <jhb@FreeBSD.org>
3878
3879 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3880 for all architectures on FreeBSD 11.3 and later.
3881
a4089f52
TT
38822020-07-27 Tom Tromey <tromey@adacore.com>
3883
3884 * gcore.h (load_corefile): Don't declare.
3885
95420d30
TV
38862020-07-27 Tom de Vries <tdevries@suse.de>
3887
3888 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3889 * config.in: Regenerate.
3890 * configure: Regenerate.
3891
05a6b8c2
EZ
38922020-07-26 Eli Zaretskii <eliz@gnu.org>
3893
3894 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3895 ws2tcpip.h. When checking whether socklen_t type is defined, use
3896 ws2tcpip.h if it is available and sys/socket.h isn't.
3897 * configure: Regenerate.
3898 * config.in: Regenerate.
3899
e79eb02f
AB
39002020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3901
3902 PR fortran/23051
3903 PR fortran/26139
3904 * valops.c (value_ind): Pass address to
3905 readjust_indirect_value_type.
3906 * value.c (readjust_indirect_value_type): Make parameter
3907 non-const, and add extra address parameter. Resolve original type
3908 before using it.
3909 * value.h (readjust_indirect_value_type): Update function
3910 signature and comment.
3911
876518dd
TV
39122020-07-25 Tom de Vries <tdevries@suse.de>
3913
3914 PR symtab/26243
3915 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3916 entries.
3917
f6720b1c
AM
39182020-07-24 Aaron Merey <amerey@redhat.com>
3919
3920 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3921 * configure: Rebuild.
3922
513487e1
KB
39232020-07-23 Kevin Buettner <kevinb@redhat.com>
3924
3925 PR corefiles/26294
3926 * corelow.c (_initialize_corelow): Add period to help text
3927 for "maintenance print core-file-backed-mappings".
3928
e7bc9db8
PA
39292020-07-23 Pedro Alves <pedro@palves.net>
3930
3931 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3932 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3933 meanwhile.
3934 * frame.c (frame_cache_generation, get_frame_cache_generation):
3935 New.
3936 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3937 (get_prev_frame_if_no_cycle): On exception, don't touch
3938 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3939 * frame.h (get_frame_cache_generation): Declare.
3940
90fcc466
TV
39412020-07-23 Tom de Vries <tdevries@suse.de>
3942
3943 PR tui/26282
3944 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3945 New default constructor.
3946
78344df7
AB
39472020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3948
3949 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3950 exclude non-statement entries.
3951
b089853a
KB
39522020-07-22 Kevin Buettner <kevinb@redhat.com>
3953
3954 * NEWS (New commands): Mention new command
3955 "maintenance print core-file-backed-mappings".
3956
09c2f5d4
KB
39572020-07-22 Kevin Buettner <kevinb@redhat.com>
3958
3959 * corelow.c (gdbcmd.h): Include.
3960 (core_target::info_proc_mappings): New method.
3961 (get_current_core_target): New function.
3962 (maintenance_print_core_file_backed_mappings): New function.
3963 (_initialize_corelow): Add core-file-backed-mappings to
3964 "maint print" commands.
3965
9c5ec5c2 39662020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3967
9c5ec5c2
KB
3968 * linux-tdep.c (dump_note_entry_p): New function.
3969 (linux_dump_mapping_p_ftype): New typedef.
3970 (linux_find_memory_regions_full): Add new parameter,
3971 should_dump_mapping_p.
3972 (linux_find_memory_regions): Adjust call to
3973 linux_find_memory_regions_full.
3974 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3975 call to linux_find_memory_regions_full.
3976
db082f59
KB
39772020-07-22 Kevin Buettner <kevinb@redhat.com>
3978
3979 * corelow.c (solist.h, unordered_map): Include.
3980 (class core_target): Add field m_core_file_mappings and
3981 method build_file_mappings.
3982 (core_target::core_target): Call build_file_mappings.
3983 (core_target::~core_target): Free memory associated with
3984 m_core_file_mappings.
3985 (core_target::build_file_mappings): New method.
3986 (core_target::xfer_partial): Use m_core_file_mappings
3987 for memory transfers.
3988 * linux-tdep.c (linux_read_core_file_mappings): New
3989 function.
3990 (linux_core_info_proc_mappings): Rewrite to use
3991 linux_read_core_file_mappings.
3992 (linux_init_abi): Register linux_read_core_file_mappings.
3993
7e183d27
KB
39942020-07-22 Kevin Buettner <kevinb@redhat.com>
3995
3996 * arch-utils.c (default_read_core_file_mappings): New function.
3997 * arch-utils.c (default_read_core_file_mappings): Declare.
3998 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3999 * gdbarch.h, gdbarch.c: Regenerate.
4000
2735d421
KB
40012020-07-22 Kevin Buettner <kevinb@redhat.com>
4002
4003 PR corefiles/25631
4004 * corelow.c (core_target:xfer_partial): Revise
4005 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4006 case after first checking the stratum beneath the core
4007 target.
4008 (has_all_memory): Return true.
4009 * target.c (raw_memory_xfer_partial): Revise comment
4010 regarding use of has_all_memory.
4011
e56cb451
KB
40122020-07-22 Kevin Buettner <kevinb@redhat.com>
4013
4014 * exec.h (section_table_xfer_memory): Revise declaration,
4015 replacing section name parameter with an optional callback
4016 predicate.
4017 * exec.c (section_table_xfer_memory): Likewise.
4018 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4019 of section_table_xfer_memory.
4020
32fa152e
TT
40212020-07-22 Tom Tromey <tromey@adacore.com>
4022
4023 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4024 lookup_symbol_search_name.
4025
a67a1c41
AB
40262020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4029 redundant local variable.
4030 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4031 reference, not pointer, update code accordingly.
4032
a7b4ff4f
SM
40332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4034 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4035
4036 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4037 * jit.c (jit_breakpoint_re_set_internal): Use the
4038 `skip_jit_symbol_lookup` field.
4039
2340e834
SM
40402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4041 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4042
4043 * jit.c (jit_read_descriptor): Define the descriptor address once,
4044 use twice.
4045 (jit_breakpoint_deleted): Move the declaration of the loop variable
4046 `iter` into the loop header.
4047 (jit_breakpoint_re_set_internal): Move the declaration of the local
4048 variable `objf_data` to the first point of definition.
4049 (jit_event_handler): Move the declaration of local variables
4050 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4051 Rename `objf` to `jited`.
4052
c1072906
SM
40532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4054
4055 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4056 Remove.
4057 * jit.c (get_jiter_objfile_data): Update.
4058
c8474dc3
TBA
40592020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4060 Simon Marchi <simon.marchi@polymtl.ca>
4061
4062 * jit.c (struct jit_program_space_data): Remove.
4063 (jit_program_space_key): Remove.
4064 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4065 stuff.
4066 (get_jit_program_space_data): Remove.
4067 (jit_breakpoint_deleted): Iterate on all of the program space's
4068 objfiles.
4069 (jit_inferior_init): Likewise.
4070 (jit_breakpoint_re_set_internal): Likewise. Also change return
4071 type to void.
4072 (jit_breakpoint_re_set): Pass current_program_space to
4073 jit_breakpoint_re_set_internal.
4074
77208eb7
SM
40752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4076
4077 * jit.h (struct jiter_objfile_data) <cached_code_address,
4078 jit_breakpoint>: Move to here from ...
4079 * jit.c (jit_program_space_data): ... here.
4080 (jiter_objfile_data::~jiter_objfile_data): Update.
4081 (jit_breakpoint_deleted): Update.
4082 (jit_breakpoint_re_set_internal): Update.
4083
8c1c720f
SM
40842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4085
4086 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4087 checks.
4088 (jit_read_descriptor): Remove NULL check.
4089 (jit_event_handler): Add an assertion.
4090
0e74a041
SM
40912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4092
4093 * jit.h (struct jit_objfile_data): Split into...
4094 (struct jiter_objfile_data): ... this ...
4095 (struct jited_objfile_data): ... and this.
4096 * objfiles.h (struct objfile) <jit_data>: Remove.
4097 <jiter_data, jited_data>: New fields.
4098 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4099 (jiter_objfile_data::~jiter_objfile_data): ... this.
4100 (get_jit_objfile_data): Rename to ...
4101 (get_jiter_objfile_data): ... this.
4102 (add_objfile_entry): Update.
4103 (jit_read_descriptor): Use get_jiter_objfile_data.
4104 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4105 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4106 (jit_inferior_exit_hook): Use objfile's jited_data field.
4107
238b5c9f
SM
41082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4109
4110 * jit.h: Forward-declare `struct minimal_symbol`.
4111 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4112 constructor, destructor, and an objfile* field.
4113 * jit.c (jit_objfile_data): Remove.
4114 (struct jit_objfile_data): Migrate from here to jit.h.
4115 (jit_objfile_data::~jit_objfile_data): New destructor
4116 implementation with code moved from free_objfile_data.
4117 (free_objfile_data): Delete.
4118 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4119 (jit_find_objf_with_entry_addr): Ditto.
4120 (jit_inferior_exit_hook): Ditto.
4121 (_initialize_jit): Remove the call to
4122 register_objfile_data_with_cleanup.
4123 * objfiles.h (struct objfile) <jit_data>: New field.
4124
fe053b9e
TBA
41252020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4126
4127 * jit.h: Forward-declare `struct objfile`.
4128 (jit_event_handler): Add a second parameter, the JITer objfile.
4129 * jit.c (jit_read_descriptor): Change the signature to take the
4130 JITer objfile as an argument instead of the jit_program_space_data.
4131 (jit_inferior_init): Update the call to jit_read_descriptor.
4132 (jit_event_handler): Use the new JITer objfile argument when calling
4133 jit_read_descriptor.
4134 * breakpoint.c (handle_jit_event): Update the call to
4135 jit_event_handler to pass the JITer objfile.
4136
4cec0c66
JB
41372020-07-21 John Baldwin <jhb@FreeBSD.org>
4138
4139 * gdbarch.c: Regenerate.
4140 * gdbarch.h: Regenerate.
4141 * gdbarch.sh (handle_segmentation_fault): Remove method.
4142 * infrun.c (handle_segmentation_fault): Remove.
4143 (print_signal_received_reason): Remove call to
4144 handle_segmentation_fault.
4145
0e42f66a
JB
41462020-07-21 John Baldwin <jhb@FreeBSD.org>
4147
4148 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4149 Rename to sparc64_linux_report_signal_info and add siggnal
4150 argument.
4151 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4152 instead of sparc64_linux_handle_segmentation_fault.
4153
77bdfeb2
JB
41542020-07-21 John Baldwin <jhb@FreeBSD.org>
4155
4156 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4157 i386_linux_report_signal_info instead of
4158 i386_linux_handle_segmentation_fault.
4159 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4160 to i386_linux_report_signal_info and add siggnal argument.
4161 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4162 of i386_linux_handle_segmentation_fault.
4163 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4164 to i386_linux_report_signal_info and add siggnal argument.
4165
ad97bfc5
JB
41662020-07-21 John Baldwin <jhb@FreeBSD.org>
4167
4168 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4169 hook if present.
4170
272bb05c
JB
41712020-07-21 John Baldwin <jhb@FreeBSD.org>
4172
4173 * gdbarch.c: Regenerate.
4174 * gdbarch.h: Regenerate.
4175 * gdbarch.sh (report_signal_info): New method.
4176 * infrun.c (print_signal_received_reason): Invoke gdbarch
4177 report_signal_info hook if present.
4178
baf8791e
AB
41792020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4180
4181 * python/py-registers.c : Add 'unordered_map' include.
4182 (gdbpy_new_reggroup): Renamed to...
4183 (gdbpy_get_reggroup): ...this. Update to only create register
4184 group descriptors when needed.
4185 (gdbpy_reggroup_iter_next): Update.
4186
f7306dac
AB
41872020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4188
4189 * python/py-registers.c (gdbpy_register_object_data): New static
4190 global.
4191 (gdbpy_register_object_data_init): New function.
4192 (gdbpy_new_register_descriptor): Renamed to...
4193 (gdbpy_get_register_descriptor): ...this, and update to reuse
4194 existing register descriptors where possible.
4195 (gdbpy_register_descriptor_iter_next): Update.
4196 (gdbpy_initialize_registers): Register new gdbarch data.
4197
05c309a8
SM
41982020-07-21 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * linux-nat.c (stopped_pids): Make static.
4201
d1fd641e
SM
42022020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4203
4204 PR ada/26235
4205 * gdbtypes.c (ada_discrete_type_low_bound,
4206 ada_discrete_type_high_bound): Handle undefined bounds.
4207
1de14d77
KR
42082020-07-21 Kamil Rytarowski <n54@gmx.com>
4209
4210 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4211 declaration.
4212 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4213 function.
4214
ed810cc7
JB
42152020-07-20 John Baldwin <jhb@FreeBSD.org>
4216
4217 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4218 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4219 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4220 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4221 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4222 method.
4223
ae5369e7
LC
42242020-07-20 Ludovic Courtès <ludo@gnu.org>
4225
4226 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4227 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4228 which are deprecated in Guile 3.0.
4229 * configure.ac (try_guile_versions): Add "guile-3.0".
4230 * configure (try_guile_versions): Regenerate.
4231 * NEWS: Update entry.
4232
68cf161c
LC
42332020-07-20 Ludovic Courtès <ludo@gnu.org>
4234 Doug Evans <dje@google.com>
4235
4236 PR gdb/21104
4237 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4238 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4239 USING_GUILE_BEFORE_2_2.
4240 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4241 Change type to 'scm_t_port_type *'.
4242 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4243 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4244 parameter and honor it. Update callers.
4245 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4246 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4247 functions.
4248 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4249 USING_GUILE_BEFORE_2_2.
4250 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4251 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4252 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4253 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4254 and 'SCM_PORT_TYPE'.
4255 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4256 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4257 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4258 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4259 [!USING_GUILE_BEFORE_2_2]: New functions.
4260 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4261 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4262 'gdbscm_memory_port_read'.
4263 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4264 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4265 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4266 function.
4267 (ioscm_init_memory_port): Remove.
4268 (ioscm_init_memory_port_stream): New function
4269 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4270 function.
4271 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4272 Return scm_from_uint (0).
4273 (gdbscm_set_memory_port_read_buffer_size_x)
4274 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4275 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4276 Return scm_from_uint (0).
4277 (gdbscm_set_memory_port_write_buffer_size_x)
4278 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4279 * configure.ac (try_guile_versions): Add "guile-2.2".
4280 * configure: Regenerate.
4281 * NEWS: Add entry.
4282
aee91db3
TT
42832020-07-18 Tom Tromey <tom@tromey.com>
4284
4285 * linux-nat.c (linux_multi_process): Remove.
4286 (linux_nat_target::supports_multi_process): Return true.
4287
0e267416
AB
42882020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4289
4290 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4291 (riscv_lookup_target_description): Return pointer out of
4292 unique_ptr.
4293 * target-descriptions.c (allocate_target_description): Add
4294 comment.
4295 (target_desc_deleter::operator()): Likewise.
4296 * target-descriptions.h (struct target_desc_deleter): Moved to
4297 gdbsupport/tdesc.h.
4298 (target_desc_up): Likewise.
4299
f80c8ec4
TT
43002020-07-17 Tom Tromey <tromey@adacore.com>
4301
4302 * linux-nat.c (linux_nat_target::supports_non_stop)
4303 (linux_nat_target::always_non_stop_p): Use "true".
4304 (linux_nat_target::supports_disable_randomization): Use "true" and
4305 "false".
4306
d0ce17d8
CT
43072020-07-16 Caroline Tice <cmtice@google.com>
4308
4309 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4310 (RNGLIST_HEADER_SIZE64): New constant definition.
4311 (struct dwop_section_names): Add rnglists_dwo.
4312 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4313 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4314 (struct dwo_sections): Add rnglists field.
4315 (read_attribut_reprocess): Add tag parameter.
4316 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4317 (cu_debug_rnglists_section): New function (decl & definition).
4318 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4319 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4320 die whose range is being checked; get rnglist section from
4321 cu_debug_rnglists_section, to get from either objfile or dwo file as
4322 appropriate. Add cases for DW_RLE_base_addressx,
4323 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4324 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4325 test inside if-condition and updating complaint message.
4326 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4327 dwarf2_rnglists_process.
4328 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4329 dwarf2_ranges_process.
4330 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4331 need_ranges_base and update comment appropriately. Also pass die tag
4332 to dwarf2_ranges_read.
4333 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4334 need_ranges_base and update comment appropriately. Also pass die tag
4335 to dwarf2_ranges_process.
4336 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4337 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4338 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4339 need_ranges_base and update comment appropriately. Also pass die tag
4340 to read_attribute_reprocess and dwarf2_ranges_read.
4341 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4342 and update function comment appropriately.
4343 (read_loclist_index): Call read_loclists_rnglists_header instead of
4344 read_loclist_header.
4345 (read_rnglist_index): New function.
4346 (read_attribute_reprocess): Add tag parameter. Add code for
4347 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4348 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4349
3dcc261c
AB
43502020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4353 being resolved.
4354
ccb9eba6
AB
43552020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4356
4357 * arch-utils.c (show_architecture): Update formatting of messages.
4358
cf88be68
SM
43592020-07-12 Simon Marchi <simon.marchi@efficios.com>
4360
4361 * gdbtypes.h (struct type) <bounds>: Handle array and string
4362 types.
4363 * ada-lang.c (assign_aggregate): Use type::bounds on
4364 array/string type.
4365 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4366 * c-varobj.c (c_number_of_children): Likewise.
4367 (c_describe_child): Likewise.
4368 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4369 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4370 (f_type_print_base): Likewise.
4371 * f-valprint.c (f77_array_offset_tbl): Likewise.
4372 (f77_get_upperbound): Likewise.
4373 (f77_print_array_1): Likewise.
4374 * guile/scm-type.c (gdbscm_type_range): Likewise.
4375 * m2-typeprint.c (m2_array): Likewise.
4376 (m2_is_long_set_of_type): Likewise.
4377 * m2-valprint.c (get_long_set_bounds): Likewise.
4378 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4379 * python/py-type.c (typy_range): Likewise.
4380 * rust-lang.c (rust_internal_print_type): Likewise.
4381 * type-stack.c (type_stack::follow_types): Likewise.
4382 * valarith.c (value_subscripted_rvalue): Likewise.
4383 * valops.c (value_cast): Likewise.
4384
509971ae
SM
43852020-07-12 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4388 callers to use the equivalent accessor methods.
4389
107406b7
SM
43902020-07-12 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4393 (struct type) <bit_stride>: New method.
4394 (TYPE_BIT_STRIDE): Remove.
4395 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4396
bb789949
SM
43972020-07-12 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4400 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4401 callers to use the equivalent accessor methods instead.
4402
39498edb
SM
44032020-07-12 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4406 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4407 callers to use the equivalent accessor methods instead.
4408
3b606f38
SM
44092020-07-12 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4412 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4413 to use dynamic_prop::kind.
4414
064d9cb9
SM
44152020-07-12 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4418 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4419 to get the bound property's kind and check against
4420 PROP_UNDEFINED.
4421
5537ddd0
SM
44222020-07-12 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4425 all callers to use type::range_bounds followed by
4426 dynamic_prop::{low,high}.
4427
8c2e4e06
SM
44282020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4429
4430 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4431 const_val, set_const_val, baton, set_locexpr, set_loclist,
4432 set_addr_offset, variant_parts, set_variant_parts,
4433 original_type, set_original_type>: New methods.
4434 <kind>: Rename to...
4435 <m_kind>: ... this. Update all users to use the new methods
4436 instead.
4437 <data>: Rename to...
4438 <m_data>: ... this. Update all users to use the new methods
4439 instead.
4440
7c6f2712
SM
44412020-07-12 Simon Marchi <simon.marchi@efficios.com>
4442
4443 * gdbtypes.c (get_discrete_bounds): Return failure if
4444 the range type's bounds are not both defined and constant
4445 values.
4446 (get_array_bounds): Update comment. Remove undefined bound check.
4447
599088e3
SM
44482020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4449
4450 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4451 the type::bounds method directly.
4452
c4dfcb36
SM
44532020-07-12 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4456 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4457 are used to set the range type's bounds to use set_bounds.
4458
0a278aa7
PW
44592020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4460
4461 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4462
cce20f10
PA
44632020-07-10 Pedro Alves <pedro@palves.net>
4464
4465 * gdbthread.h (inferior_ref): Define.
4466 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4467 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4468 * thread.c
4469 (scoped_restore_current_thread::restore):
4470 Adjust to gdb::ref_ptr.
4471 (scoped_restore_current_thread::~scoped_restore_current_thread):
4472 Remove manual decref handling.
4473 (scoped_restore_current_thread::scoped_restore_current_thread):
4474 Adjust to use
4475 inferior_ref::new_reference/thread_info_ref::new_reference.
4476 Incref the thread before calling get_frame_id instead of after.
4477 Let TARGET_CLOSE_ERROR propagate.
4478
6d7aa592
PA
44792020-07-10 Pedro Alves <pedro@palves.net>
4480
4481 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4482 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4483 NOT_AVAILABLE_ERROR.
4484 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4485 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4486
b3e3a4c1
SM
44872020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4488 Pedro Alves <pedro@palves.net>
4489
4490 PR gdb/26199
4491 * infrun.c (threads_are_resumed_pending_p): Delete.
4492 (do_target_wait): Remove threads_are_executing and
4493 threads_are_resumed_pending_p checks from the inferior_matches
4494 lambda. Update comments.
4495
d6cc5d98
PA
44962020-07-10 Pedro Alves <pedro@palves.net>
4497
4498 PR gdb/26199
4499 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4500 executing threads.
4501
7d3badc6
PA
45022020-07-10 Pedro Alves <pedro@palves.net>
4503
4504 PR gdb/26199
4505 * infrun.c (handle_no_resumed): Handle multiple targets.
4506
42bd97a6
PA
45072020-07-10 Pedro Alves <pedro@palves.net>
4508
4509 PR gdb/26199
4510 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4511 target_is_async_p.
4512
43667cc6
PA
45132020-07-10 Pedro Alves <pedro@palves.net>
4514
4515 PR gdb/26199
4516 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4517 threads, not all threads.
4518
96118d11
PA
45192020-07-10 Pedro Alves <pedro@palves.net>
4520
4521 PR gdb/26199
4522 * remote.c (remote_target::open_1): Pass remote target pointer as
4523 data to create_async_event_handler.
4524 (remote_async_inferior_event_handler): Mark async event handler
4525 before returning if the remote target still has either pending
4526 events or unacknowledged notifications.
4527
54904d81
JB
45282020-07-10 John Baldwin <jhb@FreeBSD.org>
4529
4530 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4531 declaration.
4532 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4533 function.
4534
f37e5866
JB
45352020-07-09 John Baldwin <jhb@FreeBSD.org>
4536
4537 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4538 inferior_ptid.
4539
fc238d4a
JB
45402020-07-09 John Baldwin <jhb@FreeBSD.org>
4541
4542 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4543 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4544 AT_FREEBSD_PS_STRINGS.
4545
6e2469ff
HD
45462020-07-08 Hannes Domani <ssbssa@yahoo.de>
4547
4548 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4549 of debugfile path on Windows.
4550
d1076c41
JB
45512020-07-08 John Baldwin <jhb@FreeBSD.org>
4552
4553 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4554 argument to 'data'.
4555
15f3b077
TT
45562020-07-08 Tom Tromey <tromey@adacore.com>
4557
4558 * ada-lang.c (ada_exception_message_1): Use read_memory.
4559
9fc501fd
AB
45602020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 PR python/22748
4563 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4564 special handling for inline frames.
4565 * findvar.c (value_of_register_lazy): Skip inline frames when
4566 creating lazy register values.
4567 * frame.c (frame_id_computed_p): Delete definition.
4568 * frame.h (frame_id_computed_p): Delete declaration.
4569
64cb3757
AB
45702020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4571
4572 * NEWS: Mention additions to Python API.
4573 * python/py-arch.c (archpy_register_groups): New function.
4574 (arch_object_methods): Add 'register_groups' method.
4575 * python/py-registers.c (reggroup_iterator_object): New struct.
4576 (reggroup_object): New struct.
4577 (gdbpy_new_reggroup): New function.
4578 (gdbpy_reggroup_to_string): New function.
4579 (gdbpy_reggroup_name): New function.
4580 (gdbpy_reggroup_iter): New function.
4581 (gdbpy_reggroup_iter_next): New function.
4582 (gdbpy_new_reggroup_iterator): New function
4583 (gdbpy_initialize_registers): Register new types.
4584 (reggroup_iterator_object_type): Define new Python type.
4585 (gdbpy_reggroup_getset): New static global.
4586 (reggroup_object_type): Define new Python type.
4587 * python/python-internal.h
4588
0f767f94
AB
45892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4590
4591 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4592 * python/py-arch.c (archpy_registers): New function.
4593 (arch_object_methods): Add 'registers' method.
4594 * python/py-registers.c: New file.
4595 * python/python-internal.h
4596 (gdbpy_new_register_descriptor_iterator): Declare.
4597 (gdbpy_initialize_registers): Declare.
4598 * python/python.c (do_start_initialization): Call
4599 gdbpy_initialize_registers.
4600 * NEWS: Mention additions to the Python API.
4601
87dbc774
AB
46022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4603
4604 * NEWS: Mention new Python API method.
4605 * python/py-unwind.c (pending_framepy_architecture): New function.
4606 (pending_frame_object_methods): Add architecture method.
4607
3bc98c0c
AB
46082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4609
4610 * gdbarch.c: Regenerate.
4611 * gdbarch.h: Regenerate.
4612 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4613 (gdbarch_data): Use internal_error for the case where
4614 deprecated_set_gdbarch_data was originally needed.
4615 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4616 and use passed in obstack.
4617 (libunwind_frame_set_descr): Should no longer get back NULL from
4618 gdbarch_data.
4619 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4620 type.
4621 * user-regs.c (user_regs_init): Update parameters, and use passed
4622 in obstack.
4623 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4624 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4625
d8cc8af6
TV
46262020-07-06 Tom de Vries <tdevries@suse.de>
4627
4628 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4629 End-Of-Sequence in lte_is_less_than.
4630 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4631 "gdb: Don't reorder line table entries too much when sorting".
4632
947f7597
TV
46332020-07-06 Tom de Vries <tdevries@suse.de>
4634
4635 PR tui/26205
4636 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4637
1e7c1b22
TV
46382020-07-05 Tom de Vries <tdevries@suse.de>
4639
4640 PR build/26187
4641 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4642 std::uncaught_exceptions instead of deprecated
4643 std::uncaught_exception.
4644
a36158ec
SM
46452020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4646
4647 * macroexp.h (macro_stringify): Return
4648 gdb::unique_xmalloc_ptr<char>.
4649 * macroexp.c (macro_stringify): Likewise.
4650 * macrotab.c (fixup_definition): Update.
4651
14d960c8
SM
46522020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4653
4654 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4655 (lex_one_token): Update.
4656 * macroexp.c (struct macro_buffer) <release>: Return
4657 gdb::unique_xmalloc_ptr<char>.
4658 (macro_stringify): Update.
4659 (macro_expand): Update.
4660 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4661 * macroexp.h (macro_expand_next): Likewise.
4662
211d5b1c
SM
46632020-07-02 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * macroexp.h (macro_lookup_ftype): Remove.
4666 (macro_expand, macro_expand_once, macro_expand_next): Remove
4667 lookup function parameters, add scope parameter.
4668 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4669 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4670 * macroscope.h (standard_macro_lookup): Change parameter type
4671 to macro_scope.
4672 * macroscope.c (standard_macro_lookup): Likewise.
4673 * c-exp.y (lex_one_token): Update.
4674 * macrocmd.c (macro_expand_command): Likewise.
4675 (macro_expand_once_command): Likewise.
4676
b1a35af2
SM
46772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4678
4679 * inf-loop.c (inferior_event_handler): Remove client_data param.
4680 * inf-loop.h (inferior_event_handler): Likewise.
4681 * infcmd.c (step_1): Adjust.
4682 * infrun.c (proceed): Adjust.
4683 (fetch_inferior_event): Remove client_data param.
4684 (infrun_async_inferior_event_handler): Adjust.
4685 * infrun.h (fetch_inferior_event): Remove `void *` param.
4686 * linux-nat.c (handle_target_event): Adjust.
4687 * record-btrace.c (record_btrace_handle_async_inferior_event):
4688 Adjust.
4689 * record-full.c (record_full_async_inferior_event_handler):
4690 Adjust.
4691 * remote.c (remote_async_inferior_event_handler): Adjust.
4692
1cdf9e33
TT
46932020-07-01 Tom Tromey <tom@tromey.com>
4694
4695 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4696 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4697
32c1e210
TT
46982020-07-01 Tom Tromey <tom@tromey.com>
4699
4700 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4701 tui_gen_win_info.
4702 (tui_win_info::make_window): Merge with
4703 tui_gen_win_info::make_window.
4704 (tui_win_info::make_visible): Move from tui_gen_win_info.
4705 * tui/tui-win.c (tui_win_info::max_width): Move from
4706 tui_gen_win_info.
4707 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4708 type.
4709 <window_factory>: Likewise.
4710 * tui/tui-layout.c (tui_win_info::resize): Move from
4711 tui_gen_win_info.
4712 (make_standard_window): Change return type.
4713 (get_locator_window, tui_get_window_by_name): Likewise.
4714 (tui_layout_window::apply): Remove a cast.
4715 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4716 (struct tui_win_info): Merge with tui_gen_win_info.
4717 (struct tui_gen_win_info): Remove.
4718
a30cb6da
TT
47192020-07-01 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-stack.h (struct tui_locator_window): Derive from
4722 tui_win_info.
4723 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4724 <can_box>: New method.
4725
1eb2161f
TT
47262020-07-01 Tom Tromey <tom@tromey.com>
4727
4728 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4729
7134f2eb
TT
47302020-07-01 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-regs.c (tui_data_window::display_registers_from)
4733 (tui_data_window::display_registers_from)
4734 (tui_data_window::first_data_item_displayed)
4735 (tui_data_window::delete_data_content_windows): Update.
4736 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4737 Remove.
4738 (tui_data_window::check_register_values): Update.
4739 (tui_data_item_window::rerender): Add parameters. Update.
4740 (tui_data_item_window::refresh_window): Remove.
4741 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4742 virtual.
4743 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4744 tui_gen_win_info.
4745 <refresh_window, max_height, min_height>: Remove.
4746 <rerender>: Add parameters.
4747 <x, y, visible>: New members.
4748 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4749 <m_item_width>: New member.
4750
22b7b041
TT
47512020-07-01 Tom Tromey <tom@tromey.com>
4752
4753 * tui/tui-regs.c (tui_data_window::show_register_group)
4754 (tui_data_window::check_register_values): Update.
4755 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4756 from item_no.
4757
c9753adb
TT
47582020-07-01 Tom Tromey <tom@tromey.com>
4759
4760 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4761 useless "if".
4762
9ab26b4a
TT
47632020-07-01 Tom Tromey <tom@tromey.com>
4764
4765 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4766 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4767
e555083f
TT
47682020-07-01 Tom Tromey <tom@tromey.com>
4769
4770 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4771 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4772 (struct tui_line_or_address): Move from tui-data.h.
4773 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4774 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4775 (tui_cmd_window, tui_source_window_base, tui_source_window)
4776 (tui_disasm_window): Don't declare.
4777 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4778 to tui-winsource.h.
4779 (SINGLE_KEY): Move to tui-stack.c.
4780
7a02bab7
TT
47812020-07-01 Tom Tromey <tom@tromey.com>
4782
4783 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4784 std::string.
4785 * tui/tui-regs.c (class tab_expansion_file): New.
4786 (tab_expansion_file::write): New method.
4787 (tui_register_format): Change return type. Use
4788 tab_expansion_file.
4789 (tui_get_register, tui_data_window::display_registers_from)
4790 (tui_data_item_window::rerender): Update.
4791 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4792 * tui/tui-io.c (tui_expand_tabs): Remove.
4793
ea68593b
TT
47942020-07-01 Tom Tromey <tom@tromey.com>
4795
4796 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4797
a8caed5d
FS
47982020-07-01 Fangrui Song <maskray@google.com>
4799
4800 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4801
9cdf9820
AKS
48022020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4803
4804 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4805 forms for DW_AT_associated and DW_AT_allocated attributes,
4806 which is already checked in function attr_to_dynamic_prop.
4807
a1520ad8
TT
48082020-06-30 Tom Tromey <tromey@adacore.com>
4809
4810 * dwarf2/read.c (quirk_rust_enum): Correctly call
4811 alloc_rust_variant for default-less enum.
4812
5ac58899
TT
48132020-06-30 Tom Tromey <tromey@adacore.com>
4814
4815 PR build/26183:
4816 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4817 gdb::to_string.
4818
19b187a9
SM
48192020-06-29 Simon Marchi <simon.marchi@efficios.com>
4820
4821 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4822 * gdbarch.h: Re-generate.
4823
cd4c4c07
TT
48242020-06-28 Tom Tromey <tom@tromey.com>
4825
4826 * command.h (cmd_types): Remove.
4827 (cmd_type): Don't declare.
4828 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4829 typedef.
4830 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4831 * cli/cli-decode.c (cmd_type): Remove.
4832
05779d57
PA
48332020-06-27 Pedro Alves <palves@redhat.com>
4834
4835 * fork-child.c (prefork_hook): Adjust.
4836 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4837 Delete.
4838 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4839 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4840 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4841 Remove declarations.
4842 (struct inferior) <set_tty, tty>: New methods.
4843 (struct inferior) <terminal>: Rename to ...
4844 (struct inferior) <m_terminal>: ... this and make private.
4845 * main.c (captured_main_1): Adjust.
4846 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4847 (mi_cmd_inferior_tty_show): Adjust.
4848 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4849 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4850
1776e3e5
NA
48512020-06-26 Nick Alcock <nick.alcock@oracle.com>
4852
4853 * configure.ac: Add --enable-libctf: handle --disable-static
4854 properly.
4855 * acinclude.m4: sinclude ../config/enable.m4.
4856 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4857 (LIBCTF): Substitute in.
4858 (CTF_DEPS): New, likewise.
4859 (CLIBS): libctf needs symbols from libbfd: move earlier.
4860 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4861 flags.
4862 * ctfread.c: Surround in ENABLE_LIBCTF.
4863 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4864 * configure: Regenerate.
4865 * config.in: Likewise.
4866
58373b80
SM
48672020-06-25 Simon Marchi <simon.marchi@efficios.com>
4868
4869 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4870
277474ee
SM
48712020-06-25 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * inferior.h (struct inferior) <terminal>: Change type to
4874 gdb::unique_xmalloc_ptr<char>.
4875 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4876 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4877 field, adjust to unique pointer.
4878 (get_inferior_io_terminal): Adjust to unique pointer.
4879
6d74da72
AB
48802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4881
4882 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4883 registers, not just the known core set of registers.
4884
2e52d038
AB
48852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4886
4887 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4888 fflags, frm, and fcsr registers.
4889 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4890 restore groups.
4891 (riscv_tdesc_unknown_reg): New function.
4892 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4893 tdesc_use_registers.
4894 * riscv-tdep.h (struct gdbarch_tdep): Add
4895 unknown_csrs_first_regnum, unknown_csrs_count,
4896 duplicate_fflags_regnum, duplicate_frm_regnum, and
4897 duplicate_fcsr_regnum fields.
4898
be64fd07
AB
48992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4902 callback, use the callback (when not null) to help number unknown
4903 registers.
4904 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4905 (tdesc_use_registers): Add extra parameter to declaration.
4906
3b9fce96
AB
49072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4908
4909 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4910 in the file.
4911 (class riscv_pending_register_alias): Likewise.
4912 (riscv_register_feature::register_info): Change 'required_p' field
4913 to 'required', and change its type. Add 'check' member function.
4914 (riscv_register_feature::register_info::check): Define new member
4915 function.
4916 (riscv_xreg_feature): Change initialisation of 'required' field.
4917 (riscv_freg_feature): Likewise.
4918 (riscv_virtual_feature): Likewise.
4919 (riscv_csr_feature): Likewise.
4920 (riscv_check_tdesc_feature): Take extra parameter, the csr
4921 tdesc_feature, rewrite the function to use the new
4922 riscv_register_feature::register_info::check function.
4923 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4924
865bad26
AB
49252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4926
4927 * features/Makefile: Remove all references to the deleted files
4928 below.
4929 * features/riscv/32bit-csr.c: Deleted.
4930 * features/riscv/32bit-csr.xml: Deleted.
4931 * features/riscv/64bit-csr.c: Deleted.
4932 * features/riscv/64bit-csr.xml: Deleted.
4933 * features/riscv/rebuild-csr-xml.sh: Deleted.
4934
ed69cbc8
AB
49352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4938 whitespace error for declaration of names member variable.
4939 (struct riscv_register_feature): Add new prefer_first_name member
4940 variable, and fix whitespace error in declaration of registers.
4941 (riscv_xreg_feature): Initialize prefer_first_name field.
4942 (riscv_freg_feature): Likewise.
4943 (riscv_virtual_feature): Likewise.
4944 (riscv_csr_feature): Likewise.
4945 (riscv_register_name): Expand on comments. Remove register name
4946 modifications for CSR and virtual registers.
4947
4445e8f5
AB
49482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4949
4950 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4951 errors.
4952
767a879e
AB
49532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4954
4955 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4956 riscv-opc.h.
4957 (class riscv_pending_register_alias): New class.
4958 (riscv_check_tdesc_feature): Take vector of pending aliases and
4959 populate it as appropriate.
4960 (riscv_setup_register_aliases): Delete.
4961 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4962 to riscv_check_tdesc_feature in all cases. Use the vector to
4963 create the register aliases.
4964
bb6e55f3
RO
49652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4966
4967 * sol2-tdep.c (sol2_static_transform_name): Remove.
4968 (sol2_init_abi): Don't register it.
4969 * gdbarch.sh (static_transform_name): Remove.
4970 * gdbarch.c, gdbarch.h: Regenerate.
4971
4972 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4973 gdbarch_static_transform_name.
4974 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4975 * stabsread.c (define_symbol) <'X'>: Remove.
4976 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4977 handling.
4978 <'V'>: Likewise.
4979 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4980 <'S'>: Remove call to gdbarch_static_transform_name.
4981
c6d36836
RO
49822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4983
4984 * procfs.c (procfs_pre_trace): New function.
4985 (procfs_target::create_inferior): Pass it to fork_inferior.
4986
a7e6196b
RO
49872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4988
4989 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4990 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4991 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4992 sol2-tdep.o, sparc-sol2-tdep.o.
4993 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4994 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4995 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4996 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4997
d412e696
RO
49982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4999
5000 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5001 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5002 Call sol2_init_abi.
5003 Remove calls to set_gdbarch_skip_solib_resolver,
5004 set_gdbarch_core_pid_to_str.
5005 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5006 (i386_sol2_static_transform_name): Remove.
5007 (i386_sol2_init_abi): Call sol2_init_abi.
5008 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5009 set_gdbarch_static_transform_name,
5010 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5011 Use sol2_sigtramp_p.
5012 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5013 (sol2_sigtramp_p): New function.
5014 (sol2_static_transform_name): New function.
5015 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5016 (sol2_init_abi): New function.
5017 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5018 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5019 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5020 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5021 (sparc_sol2_static_transform_name): Remove.
5022 (sparc32_sol2_init_abi): Call sol2_init_abi.
5023 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5024 set_gdbarch_static_transform_name,
5025 set_gdbarch_skip_solib_resolver,
5026 set_gdbarch_core_pid_to_str.
5027 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5028 (sparc_sol2_static_transform_name): Remove
5029 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5030 call sol2_sigtramp_p.
5031 (sparc64_sol2_init_abi): Call sol2_init_abi.
5032 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5033 set_gdbarch_static_transform_name,
5034 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5035
a8654e7d
PW
50362020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5037
5038 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5039 * exec.c (validate_exec_file): If from_tty, set both
5040 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5041 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5042 and from_tty, unconditionally ask a confirmation.
5043
caa7fd04
AB
50442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5045
5046 * target-descriptions.c (tdesc_architecture_name): Protect against
5047 NULL pointer dereference.
5048 (maint_print_xml_tdesc_cmd): New function.
5049 (_initialize_target_descriptions): Register new 'maint print
5050 xml-tdesc' command and give it the filename completer.
5051 * NEWS: Mention new 'maint print xml-tdesc' command.
5052
fbf42f4e
AB
50532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5054
5055 * target-descriptions.c (class tdesc_compatible_info): New class.
5056 (struct target_desc): Change type of compatible vector.
5057 (tdesc_compatible_p): Update for change in type of
5058 target_desc::compatible.
5059 (tdesc_compatible_info_list): New function.
5060 (tdesc_compatible_info_arch_name): New function.
5061 (tdesc_add_compatible): Update for change in type of
5062 target_desc::compatible.
5063 (print_c_tdesc::visit_pre): Likewise.
5064
20821f4e
AB
50652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5066
5067 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5068 whitespace to underscore.
5069 (maint_print_c_tdesc_cmd): Use fake filename for target
5070 descriptions that came from the target.
5071 (_initialize_target_descriptions): Add filename command completion
5072 for 'maint print c-tdesc'.
5073
1fb5ee62
SM
50742020-06-23 Simon Marchi <simon.marchi@efficios.com>
5075
5076 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5077 lines.
5078
fc3ecb3e
SM
50792020-06-23 Simon Marchi <simon.marchi@efficios.com>
5080
5081 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5082 lines.
5083 (dwarf2_find_location_expression): Likewise.
5084 (call_site_parameter_matches): Likewise.
5085 (dwarf2_compile_expr_to_ax): Likewise.
5086 (disassemble_dwarf_expression): Likewise.
5087 (loclist_describe_location): Likewise.
5088
236ef034
PA
50892020-06-23 Pedro Alves <palves@redhat.com>
5090
5091 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5092 progspace-and-thread.h. Include scoped-mock-context.h instead.
5093 (register_to_value_test): Use scoped_mock_context.
5094 * regcache.c: Include "scoped-mock-context.h".
5095 (cooked_read_test): Don't error out if a target is already pushed.
5096 Use scoped_mock_context. Adjust.
5097 * scoped-mock-context.h: New file.
5098
39e7ecca
AB
50992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5100
5101 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5102 initializer.
5103 (ada_language::is_string_type_p): New member function.
5104 * c-lang.c (c_language_data): Delete la_is_string_type_p
5105 initializer.
5106 (cplus_language_data): Likewise.
5107 (asm_language_data): Likewise.
5108 (minimal_language_data): Likewise.
5109 * d-lang.c (d_language_data): Likewise.
5110 * f-lang.c (f_is_string_type_p): Delete function, implementation
5111 moved to f_language::is_string_type_p.
5112 (f_language_data): Delete la_is_string_type_p initializer.
5113 (f_language::is_string_type_p): New member function,
5114 implementation from f_is_string_type_p.
5115 * go-lang.c (go_is_string_type_p): Delete function, implementation
5116 moved to go_language::is_string_type_p.
5117 (go_language_data): Delete la_is_string_type_p initializer.
5118 (go_language::is_string_type_p): New member function,
5119 implementation from go_is_string_type_p.
5120 * language.c (language_defn::is_string_type_p): Define new member
5121 function.
5122 (default_is_string_type_p): Make static, add comment copied from
5123 header file.
5124 (unknown_language_data): Delete la_is_string_type_p initializer.
5125 (unknown_language::is_string_type_p): New member function.
5126 (auto_language_data): Delete la_is_string_type_p initializer.
5127 (auto_language::is_string_type_p): New member function.
5128 * language.h (language_data): Delete la_is_string_type_p field.
5129 (language_defn::is_string_type_p): Declare new function.
5130 (default_is_string_type_p): Delete desclaration, move comment to
5131 definition.
5132 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5133 moved to m2_language::is_string_type_p.
5134 (m2_language_data): Delete la_is_string_type_p initializer.
5135 (m2_language::is_string_type_p): New member function,
5136 implementation from m2_is_string_type_p.
5137 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5138 initializer.
5139 * opencl-lang.c (opencl_language_data): Likewise.
5140 * p-lang.c (pascal_is_string_type_p): Delete function,
5141 implementation moved to pascal_language::is_string_type_p.
5142 (pascal_language_data): Delete la_is_string_type_p initializer.
5143 (pascal_language::is_string_type_p): New member function,
5144 implementation from pascal_is_string_type_p.
5145 * rust-lang.c (rust_is_string_type_p): Delete function,
5146 implementation moved to rust_language::is_string_type_p.
5147 (rust_language_data): Delete la_is_string_type_p initializer.
5148 (rust_language::is_string_type_p): New member function,
5149 implementation from rust_is_string_type_p.
5150 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5151 is_string_type_p.
5152
4ffc13fb
AB
51532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5154
5155 * ada-lang.c (ada_language_data): Delete la_print_typedef
5156 initializer.
5157 (ada_language::print_typedef): New member function.
5158 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5159 (cplus_language_data): Likewise.
5160 (asm_language_data): Likewise.
5161 (minimal_language_data): Likewise.
5162 * d-lang.c (d_language_data): Likewise.
5163 * f-lang.c (f_language_data): Likewise.
5164 (f_language::print_typedef): New member function.
5165 * go-lang.c (go_language_data): Delete la_print_typedef
5166 initializer.
5167 * language.c (language_defn::print_typedef): Define member
5168 function.
5169 (unknown_language_data): Delete la_print_typedef initializer.
5170 (unknown_language::print_typedef): New member function.
5171 (auto_language_data): Delete la_print_typedef initializer.
5172 (auto_language::print_typedef): New member function.
5173 * language.h (language_data): Delete la_print_typedef field.
5174 (language_defn::print_typedef): Declare new member function.
5175 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5176 (default_print_typedef): Delete declaration.
5177 * m2-lang.c (m2_language_data): Delete la_print_typedef
5178 initializer.
5179 (m2_language::print_typedef): New member function.
5180 * objc-lang.c (objc_language_data): Delete la_print_typedef
5181 initializer.
5182 * opencl-lang.c (opencl_language_data): Likewise.
5183 * p-lang.c (pascal_language_data): Likewise.
5184 (pascal_language::print_typedef): New member function.
5185 * rust-lang.c (rust_print_typedef): Delete function,
5186 implementation moved to rust_language::print_typedef.
5187 (rust_language): Delete la_print_typedef initializer.
5188 (rust_language::print_typedef): New member function,
5189 implementation from rust_print_typedef.
5190 * typeprint.c (default_print_typedef): Delete.
5191
d711ee67
AB
51922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5193
5194 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5195 (ada_language::printstr): New member function.
5196 * c-lang.c (c_language_data): Delete la_printstr initializer.
5197 (cplus_language_data): Likewise.
5198 (asm_language_data): Likewise.
5199 (minimal_language_data): Likewise.
5200 * d-lang.c (d_language_data): Likewise.
5201 * f-lang.c (f_printstr): Rename to f_language::printstr.
5202 (f_language_data): Delete la_printstr initializer.
5203 (f_language::printstr): New member function, implementation from
5204 f_printstr.
5205 * go-lang.c (go_language_data): Delete la_printstr initializer.
5206 * language.c (language_defn::printstr): Define new member
5207 function.
5208 (unk_lang_printstr): Delete.
5209 (unknown_language_data): Delete la_printstr initializer.
5210 (unknown_language::printstr): New member function.
5211 (auto_language_data): Delete la_printstr initializer.
5212 (auto_language::printstr): New member function.
5213 * language.h (language_data): Delete la_printstr field.
5214 (language_defn::printstr): Declare new member function.
5215 (LA_PRINT_STRING): Update call to printstr.
5216 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5217 (m2_language_data): Delete la_printstr initializer.
5218 (m2_language::printstr): New member function, implementation from
5219 m2_printstr.
5220 * objc-lang.c (objc_language_data): Delete la_printstr
5221 initializer.
5222 * opencl-lang.c (opencl_language_data): Likewise.
5223 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5224 (pascal_language_data): Delete la_printstr initializer.
5225 (pascal_language::printstr): New member function, implementation
5226 from pascal_printstr.
5227 * p-lang.h (pascal_printstr): Delete declaration.
5228 * rust-lang.c (rust_printstr): Update header comment.
5229 (rust_language_data): Delete la_printstr initializer.
5230 (rust_language::printstr): New member function.
5231
52b50f2c
AB
52322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5233
5234 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5235 (ada_language::printchar): New member function.
5236 * c-lang.c (c_language_data): Delete la_printchar initializer.
5237 (cplus_language_data): Likewise.
5238 (asm_language_data): Likewise.
5239 (minimal_language_data): Likewise.
5240 * d-lang.c (d_language_data): Likewise.
5241 * f-lang.c (f_printchar): Rename to f_language::printchar.
5242 (f_language_data): Delete la_printchar initializer.
5243 (f_language::printchar): New member function, implementation from
5244 f_printchar.
5245 * go-lang.c (go_language_data): Delete la_printchar initializer.
5246 * language.c (unk_lang_printchar): Delete.
5247 (language_defn::printchar): Define new member function.
5248 (unknown_language_data): Delete la_printchar initializer.
5249 (unknown_language::printchar): New member function.
5250 (auto_language_data): Delete la_printchar initializer.
5251 (auto_language::printchar): New member function.
5252 * language.h (language_data): Delete la_printchar field.
5253 (language_defn::printchar): Declare new member function.
5254 (LA_PRINT_CHAR): Update call to printchar.
5255 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5256 (m2_language::printchar): New member function.
5257 * objc-lang.c (objc_language_data): Delete la_printchar
5258 initializer.
5259 * opencl-lang.c (opencl_language_data): Likewise.
5260 * p-lang.c (pascal_language_data): Delete la_printchar
5261 initializer.
5262 (pascal_language::printchar): New member function.
5263 * rust-lang.c (rust_printchar): Rename to
5264 rust_language::printchar.
5265 (rust_language_data): Delete la_printchar initializer.
5266 (rust_language::printchar): New member function, implementation
5267 from rust_printchar.
5268
ec8cec5b
AB
52692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5270
5271 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5272 (ada_language_data): Delete la_emitchar initializer.
5273 (ada_language::emitchar): New member function, implementation from
5274 emit_char.
5275 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5276 (cplus_language_data): Likewise.
5277 (asm_language_data): Likewise.
5278 (minimal_language_data): Likewise.
5279 * d-lang.c (d_language_data): Likewise.
5280 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5281 (f_language_data): Delete la_emitchar initializer.
5282 (f_language::emitchar): New member function, implementation from
5283 f_emit_char.
5284 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5285 * language.c (unk_lang_emit_char): Delete.
5286 (language_defn::emitchar): New member function definition.
5287 (unknown_language_data): Delete la_emitchar initializer.
5288 (unknown_language::emitchar): New member function.
5289 (auto_language_data): Delete la_emitchar initializer.
5290 (auto_language::emitchar): New member function.
5291 * language.h (language_data): Delete la_emitchar field.
5292 (language_defn::emitchar): New member field declaration.
5293 (LA_EMIT_CHAR): Update call to emitchar.
5294 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5295 (m2_language_data): Delete la_emitchar initializer.
5296 (m2_language::emitchar): New member function, implementation from
5297 m2_emit_char.
5298 * objc-lang.c (objc_language_data): Delete la_emitchar
5299 initializer.
5300 * opencl-lang.c (opencl_language_data): Likewise.
5301 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5302 (pascal_language_data): Delete la_emitchar initializer.
5303 (pascal_language::emitchar): New member function, implementation
5304 from pascal_emit_char.
5305 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5306 (rust_language_data): Delete la_emitchar initializer.
5307 (rust_language::emitchar): New member function, implementation
5308 from rust_emitchar.
5309
1bf9c363
AB
53102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5313 (ada_language_data): Delete la_post_parser initializer.
5314 (ada_language::post_parser): New member function.
5315 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5316 (cplus_language_data): Likewise.
5317 (asm_language_data): Likewise.
5318 (minimal_language_data): Likewise.
5319 * d-lang.c (d_language_data): Likewise.
5320 * f-lang.c (f_language_data): Likewise.
5321 * go-lang.c (go_language_data): Likewise.
5322 * language.c (unknown_language_data): Likewise.
5323 (auto_language_data): Likewise.
5324 * language.h (language_data): Delete la_post_parser field.
5325 (language_defn::post_parser): New member function.
5326 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5327 * objc-lang.c (objc_language_data): Likewise.
5328 * opencl-lang.c (opencl_language_data): Likewise.
5329 * p-lang.c (pascal_language_data): Likewise.
5330 * parse.c (parse_exp_in_context): Update call to post_parser.
5331 (null_post_parser): Delete definition.
5332 * parser-defs.h (null_post_parser): Delete declaration.
5333 * rust-lang.c (rust_language_data): Delete la_post_parser
5334 initializer.
5335
87afa652
AB
53362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5337
5338 * ada-lang.c (parse): Rename to ada_language::parser.
5339 (ada_language_data): Delete la_parser initializer.
5340 (ada_language::parser): New member function, implementation from
5341 parse.
5342 * c-lang.c (c_language_data): Delete la_parser initializer.
5343 (cplus_language_data): Likewise.
5344 (asm_language_data): Likewise.
5345 (minimal_language_data): Likewise.
5346 * d-lang.c (d_language_data): Likewise.
5347 (d_language::parser): New member function.
5348 * f-lang.c (f_language_data): Delete la_parser initializer.
5349 (f_language::parser): New member function.
5350 * go-lang.c (go_language_data): Delete la_parser initializer.
5351 (go_language::parser): New member function.
5352 * language.c (unk_lang_parser): Delete.
5353 (language_defn::parser): Define new member function.
5354 (unknown_language_data): Delete la_parser initializer.
5355 (unknown_language::parser): New member function.
5356 (auto_language_data): Delete la_parser initializer.
5357 (auto_language::parser): New member function.
5358 * language.h (language_data): Delete la_parser field.
5359 (language_defn::parser): Declare new member function.
5360 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5361 (m2_language::parser): New member function.
5362 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5363 * opencl-lang.c (opencl_language_data): Likewise.
5364 * p-lang.c (pascal_language_data): Likewise.
5365 (pascal_language::parser): New member function.
5366 * parse.c (parse_exp_in_context): Update call to parser.
5367 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5368 (rust_language::parser): New member function.
5369
37825800
AB
53702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5371
5372 * top.c (print_gdb_configuration): Print --with-python-libdir
5373 configuration value.
5374
5b860c93
PW
53752020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5376
5377 * NEWS: Mention change to the alias command.
5378
cf00cd6f
PW
53792020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5380
5381 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5382 (alias_command_completer)
5383 (make_alias_options_def_group): New functions.
5384 (alias_opts, alias_option_defs): New struct and array.
5385 (alias_usage_error): Update usage.
5386 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5387 Use option framework.
5388 (_initialize_cli_cmds): Update alias command help.
5389 Update aliases command help.
5390 (show_user):
5391 Add NULL for new default_args lookup_cmd argument.
5392 (valid_command_p): Rename to validate_aliased_command.
5393 Add NULL for new default_args lookup_cmd argument. Verify that the
5394 aliased_command has no default args.
5395 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5396 (lookup_cmd_1, lookup_cmd): New argument default_args.
5397 (add_alias_cmd):
5398 Add NULL for new default_args lookup_cmd argument.
5399 (print_help_for_command): Show default args under the layout
5400 alias some_alias = some_aliased_cmd some_alias_default_arg.
5401 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5402 xfree default_args in destructor.
5403 * cli/cli-script.c (process_next_line, do_define_command):
5404 Add NULL for new default_args lookup_cmd argument.
5405 * command.h: Declare new default_args argument in lookup_cmd
5406 and lookup_cmd_1.
5407 * completer.c (complete_line_internal_1):
5408 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5409 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5410 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5411 Likewise.
5412 * infcmd.c (_initialize_infcmd): Likewise.
5413 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5414 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5415 * python/py-param.c (add_setshow_generic): Likewise.
5416 * remote.c (_initialize_remote): Likewise.
5417 * top.c (execute_command): Prepend default_args if command has some.
5418 (set_verbose):
5419 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5420 * tracepoint.c (validate_actionline, encode_actions_1):
5421 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5422
bd920864
TBA
54232020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5424
5425 * jit.c (jit_read_descriptor): Use bool as the return type.
5426 (jit_breakpoint_re_set_internal): Use bool as the return type.
5427 Invert the return value logic; return true if the jit breakpoint
5428 has been successfully initialized.
5429 (jit_inferior_init): Update the call to
5430 jit_breakpoint_re_set_internal.
5431
f8098322
PA
54322020-06-22 Pedro Alves <palves@redhat.com>
5433
5434 PR gdb/25939
5435 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5436 Use the current inferior instead. Don't return
5437 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5438 wait again.
5439 * sol-thread.c (sol_thread_target::wait): Don't reference
5440 inferior_ptid.
5441 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5442 (sol_update_thread_list_callback): Use the current inferior's pid
5443 instead of inferior_ptid.
5444
196535a6
RO
54452020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5446
5447 * procfs.c: Cleanup many comments.
5448
5449 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5450 (AFTER_WATCHFLAG): Replace by value.
5451
5452 (MAIN_PROC_NAME_FORMAT): Inline ...
5453 (create_procinfo): ... here.
5454
5455 (procfs_debug_inferior): Remove SYS_exec handling.
5456 (syscall_is_exec): Likewise.
5457 (procfs_set_exec_trap): Likewise.
5458
5459 (syscall_is_lwp_exit): Inline in callers.
5460 (syscall_is_exit): Likewise.
5461 (syscall_is_exec): Likewise.
5462 (syscall_is_lwp_create): Likewise.
5463
5464 (invalidate_cache): Remove #if 0 code.
5465
5466 (make_signal_thread_runnable): Remove.
5467 (procfs_target::resume): Remove #if 0 code.
5468
cf6f3e86
RO
54692020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5470
5471 PR gdb/25939
5472 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5473 call ...
5474 (procfs_target::create_inferior): ... here.
5475
48e9cc84
PW
54762020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5477
5478 * exec.c (validate_exec_file): Ensure the build-id is up to
5479 date by calling reopen_exec_file (that checks file timestamp
5480 to decide to re-read the file).
5481
3922b302
PA
54822020-06-18 Pedro Alves <palves@redhat.com>
5483
5484 PR gdb/25412
5485 * gdbthread.h (delete_thread, delete_thread_silent)
5486 (find_thread_ptid): Update comments.
5487 * thread.c (current_thread_): New global.
5488 (is_current_thread): Move higher, and reimplement.
5489 (inferior_thread): Reimplement.
5490 (set_thread_exited): Use bool. Add assertions.
5491 (add_thread_silent): Simplify thread-reuse handling by always
5492 calling delete_thread.
5493 (delete_thread): Remove intro comment.
5494 (find_thread_ptid): Skip exited threads.
5495 (switch_to_thread_no_regs): Write to current_thread_.
5496 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5497 INFERIOR_PTID. Clear current_thread_.
5498
6dbdab44
PA
54992020-06-18 Pedro Alves <palves@redhat.com>
5500
5501 * aix-thread.c (pd_update): Use switch_to_thread.
5502
2da4b788
PA
55032020-06-18 Pedro Alves <palves@redhat.com>
5504
5505 * ravenscar-thread.c (ravenscar_thread_target): Update.
5506 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5507 (ravenscar_thread_target::add_active_thread): ... this. Don't
5508 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5509 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5510
50838d1b
PA
55112020-06-18 Pedro Alves <palves@redhat.com>
5512
5513 * nat/windows-nat.c (current_windows_thread): Remove.
5514 * nat/windows-nat.h (current_windows_thread): Remove.
5515 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5516 Adjust.
5517 (display_selectors): Adjust to fetch the current
5518 windows_thread_info based on inferior_ptid.
5519 (fake_create_process): No longer write to current_windows_thread.
5520 (windows_nat_target::get_windows_debug_event):
5521 Don't set inferior_ptid or current_windows_thread.
5522 (windows_nat_target::wait): Adjust to not rely on
5523 current_windows_thread.
5524 (do_initial_windows_stuff): Now a method of windows_nat_target.
5525 Switch to the last_ptid thread.
5526 (windows_nat_target::attach): Adjust.
5527 (windows_nat_target::detach): Use switch_to_no_thread instead of
5528 writing to inferior_ptid directly.
5529 (windows_nat_target::create_inferior): Adjust.
5530
31ce04e9
PA
55312020-06-18 Pedro Alves <palves@redhat.com>
5532
5533 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5534
1ee1a363
PA
55352020-06-18 Pedro Alves <palves@redhat.com>
5536
5537 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5538 after creating it, instead of writing to inferior_ptid. Don't
5539 write to inferior_ptid.
5540
6d350754
PA
55412020-06-18 Pedro Alves <palves@redhat.com>
5542
5543 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5544
5d971d48
PA
55452020-06-18 Pedro Alves <palves@redhat.com>
5546
5547 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5548 it, instead of writing to inferior_ptid.
5549
86e57d1b
PA
55502020-06-18 Pedro Alves <palves@redhat.com>
5551
5552 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5553 to inferior_ptid.
5554
f2e1c129
PA
55552020-06-18 Pedro Alves <palves@redhat.com>
5556
5557 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5558 instead of writing to inferior_ptid directly.
5559
60db1b85
PA
55602020-06-18 Pedro Alves <palves@redhat.com>
5561
5562 * corelow.c (core_target::close): Use switch_to_no_thread instead
5563 of writing to inferior_ptid directly.
5564 (add_to_thread_list, core_target_open): Use switch_to_thread
5565 instead of writing to inferior_ptid directly.
5566
fe7d6a8d
PA
55672020-06-18 Pedro Alves <palves@redhat.com>
5568
5569 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5570 inferior_ptid.
5571 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5572 inferior_ptid.
5573 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5574 inferior_ptid directly.
5575 (darwin_nat_target::init_thread_list): Switch to thread, instead
5576 of writing to inferior_ptid.
5577 (darwin_nat_target::attach): Don't write to inferior_ptid.
5578 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5579
975f8708
PA
55802020-06-18 Pedro Alves <palves@redhat.com>
5581
5582 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5583 thread.
5584 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5585 Instead use switch_to_thread.
5586 (gnu_nat_target::detach): Use switch_to_no_thread
5587 instead of writing to inferior_ptid directly. Used passed-in
5588 inferior instead of looking up the inferior by pid.
5589
1a204730
PA
55902020-06-18 Pedro Alves <palves@redhat.com>
5591
5592 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5593 inferior_ptid.
5594
ebe84f23
PA
55952020-06-18 Pedro Alves <palves@redhat.com>
5596
5597 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5598 inferior_ptid.
5599 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5600 thread.
5601 (nto_procfs_target::detach): Avoid referencing
5602 inferior_ptid. Use switch_to_no_thread instead of writing to
5603 inferior_ptid directly.
5604 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5605 instead of writing to inferior_ptid directly.
5606 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5607 to thread.
5608
191f02e5
PA
56092020-06-18 Pedro Alves <palves@redhat.com>
5610
5611 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5612 after creating it, instead of writing to inferior_ptid.
5613 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5614 to inferior_ptid directly.
5615 (gdbsim_target::wait): Don't write to inferior_ptid.
5616
0ac55310
PA
56172020-06-18 Pedro Alves <palves@redhat.com>
5618
5619 * remote.c (remote_target::remote_notice_new_inferior): Use
5620 switch_to_thread instead of writing to inferior_ptid directly.
5621 (remote_target::add_current_inferior_and_thread): Use
5622 switch_to_no_thread instead of writing to inferior_ptid directly.
5623 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5624 and switch_to_thread instead of using set_current_inferior or
5625 writing to inferior_ptid directly.
5626
5233f39b
PA
56272020-06-18 Pedro Alves <palves@redhat.com>
5628
5629 * tracectf.c (ctf_target_open): Switch to added thread instead of
5630 writing to inferior_ptid directly.
5631 (ctf_target::close): Use switch_to_no_thread instead of writing to
5632 inferior_ptid directly.
5633
087e161b
PA
56342020-06-18 Pedro Alves <palves@redhat.com>
5635
5636 * tracefile-tfile.c (tfile_target_open): Don't write to
5637 inferior_ptid directly, instead switch to added thread.
5638 (tfile_target::close): Use switch_to_no_thread instead of writing
5639 to inferior_ptid directly.
5640
7fb43e53
PA
56412020-06-18 Pedro Alves <palves@redhat.com>
5642
5643 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5644 (procfs_target::detach): Use switch_to_no_thread
5645 instead of writing to inferior_ptid directly.
5646 (do_attach): Change return type to void. Switch to the added
5647 thread.
5648 (procfs_target::create_inferior): Switch to the added thread.
5649 (procfs_do_thread_registers): Don't write to inferior_ptid.
5650
18493a00
PA
56512020-06-18 Pedro Alves <palves@redhat.com>
5652
5653 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5654 of writing to inferior_ptid.
5655 (scoped_restore_exited_inferior): Delete.
5656 (handle_vfork_child_exec_or_exit): Simplify using
5657 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5658 instead of writing to inferior_ptid.
5659 (THREAD_STOPPED_BY): Delete.
5660 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5661 (thread_stopped_by_hw_breakpoint): Delete.
5662 (save_waitstatus): Use
5663 scoped_restore_current_thread+switch_to_thread, and call
5664 target_stopped_by_watchpoint instead of
5665 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5666 instead of thread_stopped_by_sw_breakpoint, and
5667 target_stopped_by_hw_breakpoint instead of
5668 thread_stopped_by_hw_breakpoint.
5669 (handle_inferior_event)
5670 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5671 inferior_ptid directly, nor
5672 set_current_inferior/set_current_program_space. Use
5673 switch_to_thread / switch_to_inferior_no_thread instead.
5674
a0776b13
PA
56752020-06-18 Pedro Alves <palves@redhat.com>
5676
5677 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5678 instead of writing to inferior_ptid.
5679
6155c136
PA
56802020-06-18 Pedro Alves <palves@redhat.com>
5681
5682 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5683 added thread.
5684 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5685 to the added thread.
5686 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5687 instead of writing to inferior_ptid.
5688
c5316fc6
PA
56892020-06-18 Pedro Alves <palves@redhat.com>
5690
5691 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5692 (register_to_value_test): Mock a program_space too. Heap-allocate
5693 the address space. Don't write to inferior_ptid. Use
5694 switch_to_thread instead.
5695
8df01799
PA
56962020-06-18 Pedro Alves <palves@redhat.com>
5697
5698 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5699 Delete.
5700 (find_signalled_thread()): New, factored out from
5701 linux_make_corefile_notes and adjusted to handle exited threads.
5702 (linux_make_corefile_notes): Adjust to use the new
5703 find_signalled_thread.
5704
41792d68
PA
57052020-06-18 Pedro Alves <palves@redhat.com>
5706
5707 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5708 of saving/restoring inferior_ptid.
5709
612f258a
TT
57102020-06-17 Tom Tromey <tom@tromey.com>
5711
5712 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5713 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5714 declare.
5715 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5716
efb763a5
SM
57172020-06-15 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5720 of partial symtabs.
5721
2951f6c0
SM
57222020-06-17 Simon Marchi <simon.marchi@efficios.com>
5723
5724 * regformats/reg-arm.dat: Remove.
5725 * regformats/reg-bfin.dat: Remove.
5726 * regformats/reg-cris.dat: Remove.
5727 * regformats/reg-crisv32.dat: Remove.
5728 * regformats/reg-m32r.dat: Remove.
5729 * regformats/reg-tilegx.dat: Remove.
5730 * regformats/reg-tilegx32.dat: Remove.
5731
7d458ea5
SM
57322020-06-17 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * features/Makefile (WHICH): Remove arm files.
5735 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5736 * regformats/arm/arm-with-neon.dat: Remove.
5737 * regformats/arm/arm-with-vfpv2.dat: Remove.
5738 * regformats/arm/arm-with-vfpv3.dat: Remove.
5739
3af96c0d
SM
57402020-06-17 Simon Marchi <simon.marchi@efficios.com>
5741
5742 * features/Makefile (XMLTOC): Remove rx.xml.
5743
b25e22fd
PA
57442020-06-17 Pedro Alves <palves@redhat.com>
5745
5746 * gdbthread.h (thread_control_state) <trap_expected> Update
5747 comments.
5748
a78a19b1
AB
57492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5750
5751 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5752 ada_language::lookup_symbol_nonlocal.
5753 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5754 (ada_language::lookup_symbol_nonlocal): New member function,
5755 implementation from ada_lookup_symbol_nonlocal.
5756 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5757 initializer.
5758 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5759 initializer.
5760 (cplus_language::lookup_symbol_nonlocal): New member function.
5761 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5762 (minimal_language_data) Likewise.
5763 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5764 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5765 initializer.
5766 (d_language::lookup_symbol_nonlocal): New member function.
5767 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5768 initializer.
5769 (f_language::lookup_symbol_nonlocal): New member function.
5770 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5771 initializer.
5772 * language.c (unknown_language_data): Likewise.
5773 (auto_language_data): Likewise.
5774 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5775 field.
5776 (language_defn::lookup_symbol_nonlocal): New member function.
5777 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5778 initializer.
5779 * objc-lang.c (objc_language_data): Likewise.
5780 * opencl-lang.c (opencl_language_data): Likewise.
5781 * p-lang.c (pascal_language_data): Likewise.
5782 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5783 rust_language::lookup_symbol_nonlocal.
5784 (rust_language_data): Delete la_lookup_symbol_nonlocal
5785 initializer.
5786 (rust_language::lookup_symbol_nonlocal): New member function,
5787 implementation from rust_lookup_symbol_nonlocal.
5788 * symtab.c (lookup_symbol_aux): Update call to
5789 lookup_symbol_nonlocal.
5790 (basic_lookup_symbol_nonlocal): Rename to...
5791 (language_defn::lookup_symbol_nonlocal): ...this, and update
5792 header comment. Remove language_defn parameter, and replace with
5793 uses of `this'.
5794 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5795
ebe2334e
AB
57962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5797
5798 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5799 initializer.
5800 (ada_language::value_print_inner): New member function.
5801 * c-lang.c (c_language_data): Delete la_value_print_inner
5802 initializer.
5803 (cplus_language_data): Likewise.
5804 (asm_language_data): Likewise.
5805 (minimal_language_data): Likewise.
5806 * d-lang.c (d_language_data): Likewise.
5807 (d_language::value_print_inner): New member function.
5808 * f-lang.c (f_language_data): Delete la_value_print_inner
5809 initializer.
5810 (f_language::value_print_inner): New member function.
5811 * f-lang.h (f_value_print_innner): Rename to...
5812 (f_value_print_inner): ...this (note spelling of 'inner').
5813 * f-valprint.c (f_value_print_innner): Rename to...
5814 (f_value_print_inner): ...this (note spelling of 'inner').
5815 * go-lang.c (go_language_data): Delete la_value_print_inner
5816 initializer.
5817 (go_language::value_print_inner): New member function.
5818 * language.c (language_defn::value_print_inner): Define new member
5819 function.
5820 (unk_lang_value_print_inner): Delete.
5821 (unknown_language_data): Delete la_value_print_inner initializer.
5822 (unknown_language::value_print_inner): New member function.
5823 (auto_language_data): Delete la_value_print_inner initializer.
5824 (auto_language::value_print_inner): New member function.
5825 * language.h (language_data): Delete la_value_print_inner field.
5826 (language_defn::value_print_inner): Delcare new member function.
5827 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5828 initializer.
5829 (m2_language::value_print_inner): New member function.
5830 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5831 initializer.
5832 * opencl-lang.c (opencl_language_data): Likewise.
5833 * p-lang.c (pascal_language_data): Likewise.
5834 (pascal_language::value_print_inner): New member function.
5835 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5836 initializer.
5837 (rust_language::value_print_inner): New member function.
5838 * valprint.c (do_val_print): Update call to value_print_inner.
5839
a1d1fa3e
AB
58402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5841
5842 * ada-lang.c (ada_language_data): Delete la_value_print
5843 initializer.
5844 (ada_language::value_print): New member function.
5845 * c-lang.c (c_language_data): Delete la_value_print initializer.
5846 (cplus_language_data): Likewise.
5847 (asm_language_data): Likewise.
5848 (minimal_language_data): Likewise.
5849 * d-lang.c (d_language_data): Likewise.
5850 * f-lang.c (f_language_data): Likewise.
5851 * go-lang.c (go_language_data): Likewise.
5852 * language.c (unk_lang_value_print): Delete.
5853 (language_defn::value_print): Define new member function.
5854 (unknown_language_data): Delete la_value_print initializer.
5855 (unknown_language::value_print): New member function.
5856 (auto_language_data): Delete la_value_print initializer.
5857 (auto_language::value_print): New member function.
5858 * language.h (language_data): Delete la_value_print field.
5859 (language_defn::value_print): Declare new member function.
5860 (LA_VALUE_PRINT): Update call to value_print.
5861 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5862 * objc-lang.c (objc_language_data): Likewise.
5863 * opencl-lang.c (opencl_language_data): Likewise.
5864 * p-lang.c (pascal_language_data): Likewise.
5865 (pascal_language::value_print): New member function.
5866 * rust-lang.c (rust_language_data): Delete la_value_print
5867 initializer.
5868
f16a9f57
AB
58692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5870
5871 * ada-lang.c (ada_watch_location_expression): Rename to
5872 ada_language::watch_location_expression.
5873 (ada_language_data): Delete la_watch_location_expression
5874 initializer.
5875 (ada_language::watch_location_expression): New member function,
5876 implementation from ada_watch_location_expression.
5877 * breakpoint.c (watch_command_1): Update call to
5878 watch_location_expression.
5879 * c-lang.c (c_watch_location_expression): Rename to
5880 language_defn::watch_location_expression.
5881 (c_language_data): Delete la_watch_location_expression
5882 initializer.
5883 (cplus_language_data): Likewise.
5884 (asm_language_data): Likewise.
5885 (minimal_language_data): Likewise.
5886 * c-lang.h (c_watch_location_expression): Delete declaration.
5887 * d-lang.c (d_language_data): Delete la_watch_location_expression
5888 initializer.
5889 * f-lang.c (f_language_data): Likewise.
5890 * go-lang.c (go_language_data): Likewise.
5891 * language.c (language_defn::watch_location_expression): Member
5892 function implementation from c_watch_location_expression.
5893 (unknown_language_data): Delete la_watch_location_expression
5894 initializer.
5895 (auto_language_data): Likewise.
5896 * language.h (language_data): Delete la_watch_location_expression
5897 field.
5898 (language_defn::watch_location_expression): Declare new member
5899 function.
5900 * m2-lang.c (m2_language_data): Delete
5901 la_watch_location_expression initializer.
5902 * objc-lang.c (objc_language_data): Likewise.
5903 * opencl-lang.c (opencl_language_data): Likewise.
5904 * p-lang.c (pascal_language_data): Likewise.
5905 * rust-lang.c (rust_watch_location_expression): Rename to
5906 rust_language::watch_location_expression.
5907 (rust_language_data): Delete la_watch_location_expression
5908 initializer.
5909 (rust_language::watch_location_expression): New member function,
5910 implementation from rust_watch_location_expression.
5911
7e56227d
AB
59122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5913
5914 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5915 ada_language::collect_symbol_completion_matches.
5916 (ada_language_data): Delete la_collect_symbol_completion_matches
5917 initializer.
5918 (ada_language::collect_symbol_completion_matches): New member
5919 function, implementation from
5920 ada_collect_symbol_completion_matches.
5921 * c-lang.c (c_language_data): Delete
5922 la_collect_symbol_completion_matches initializer.
5923 (cplus_language_data): Likewise.
5924 (asm_language_data): Likewise.
5925 (minimal_language_data): Likewise.
5926 * d-lang.c (d_language_data): Likewise.
5927 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5928 f_language::collect_symbol_completion_matches.
5929 (f_language_data): Delete la_collect_symbol_completion_matches
5930 initializer.
5931 (f_language::collect_symbol_completion_matches) New member
5932 function, implementation from f_collect_symbol_completion_matches.
5933 * go-lang.c (go_language_data): Delete
5934 la_collect_symbol_completion_matches initializer.
5935 * language.c (unknown_language_data): Likewise.
5936 (auto_language_data): Likewise.
5937 * language.h (language_data): Delete
5938 la_collect_symbol_completion_matches field.
5939 (language_defn::collect_symbol_completion_matches): New member
5940 function.
5941 * m2-lang.c (m2_language_data): Delete
5942 la_collect_symbol_completion_matches initializer.
5943 * objc-lang.c (objc_language_data): Likewise.
5944 * opencl-lang.c (opencl_language_data): Likewise.
5945 * p-lang.c (pascal_language_data): Likewise.
5946 * rust-lang.c (rust_language_data): Likewise.
5947 * symtab.c (default_collect_symbol_completion_matches): Delete.
5948 (collect_symbol_completion_matches): Update call to
5949 collect_symbol_completion_matches.
5950 (collect_symbol_completion_matches_type): Likewise.
5951 * symtab.h (default_collect_symbol_completion_matches): Delete
5952 declaration.
5953
53fc67f8
AB
59542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5955
5956 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5957 (ada_language_data): Delete la_word_break_characters initializer.
5958 (ada_language::word_break_characters): New member function.
5959 * c-lang.c (c_language_data): Delete la_word_break_characters
5960 initializer.
5961 (cplus_language_data): Likewise.
5962 (asm_language_data): Likewise.
5963 (minimal_language_data): Likewise.
5964 * completer.c: Update global comment.
5965 (advance_to_expression_complete_word_point): Update call to
5966 word_break_characters.
5967 (complete_files_symbols): Likewise.
5968 (complete_line_internal_1): Likewise.
5969 (default_completer_handle_brkchars): Likewise.
5970 (skip_quoted_chars): Likewise.
5971 * d-lang.c (d_language_data): Delete la_word_break_characters
5972 initializer.
5973 * f-lang.c (f_word_break_characters): Delete.
5974 (f_language_data): Delete la_word_break_characters initializer.
5975 (f_language::word_break_characters): New member function.
5976 * go-lang.c (go_language_data): Delete la_word_break_characters
5977 initializer.
5978 * language.c (unknown_language_data): Likewise.
5979 (auto_language_data): Likewise.
5980 * language.h (default_word_break_characters): Move declaration to
5981 earlier in the file.
5982 (language_data): Delete la_word_break_characters field.
5983 (language_defn::word_break_characters): New member function.
5984 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5985 initializer.
5986 * objc-lang.c (objc_language_data): Likewise.
5987 * opencl-lang.c (opencl_language_data): Likewise.
5988 * p-lang.c (pascal_language_data): Likewise.
5989 * rust-lang.c (rust_language_data): Likewise.
5990
c9debfb9
AB
59912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5992
5993 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5994 (ada_language_data): Delete la_get_symbol_name_matcher
5995 initializer.
5996 (language_defn::get_symbol_name_matcher_inner): New member
5997 function.
5998 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5999 initializer.
6000 (cplus_language_data): Likewise.
6001 (cplus_language::get_symbol_name_matcher_inner): New member
6002 function.
6003 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6004 (minimal_language_data): Likewise.
6005 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6006 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6007 initializer.
6008 * dictionary.c (iter_match_first_hashed): Update call to
6009 get_symbol_name_matcher.
6010 (iter_match_next_hashed): Likewise.
6011 (iter_match_next_linear): Likewise.
6012 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6013 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6014 initializer.
6015 (f_language::get_symbol_name_matcher_inner): New member function.
6016 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6017 initializer.
6018 * language.c (default_symbol_name_matcher): Update header comment,
6019 make static.
6020 (language_defn::get_symbol_name_matcher): New definition.
6021 (language_defn::get_symbol_name_matcher_inner): Likewise.
6022 (get_symbol_name_matcher): Delete.
6023 (unknown_language_data): Delete la_get_symbol_name_matcher
6024 initializer.
6025 (auto_language_data): Likewise.
6026 * language.h (language_data): Delete la_get_symbol_name_matcher
6027 field.
6028 (language_defn::get_symbol_name_matcher): New member function.
6029 (language_defn::get_symbol_name_matcher_inner): Likewise.
6030 (default_symbol_name_matcher): Delete declaration.
6031 * linespec.c (find_methods): Update call to
6032 get_symbol_name_matcher.
6033 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6034 initializer.
6035 * minsyms.c (lookup_minimal_symbol): Update call to
6036 get_symbol_name_matcher.
6037 (iterate_over_minimal_symbols): Likewise.
6038 * objc-lang.c (objc_language_data): Delete
6039 la_get_symbol_name_matcher initializer.
6040 * opencl-lang.c (opencl_language_data): Likewise.
6041 * p-lang.c (pascal_language_data): Likewise.
6042 * psymtab.c (psymbol_name_matches): Update call to
6043 get_symbol_name_matcher.
6044 * rust-lang.c (rust_language_data): Delete
6045 la_get_symbol_name_matcher initializer.
6046 * symtab.c (symbol_matches_search_name): Update call to
6047 get_symbol_name_matcher.
6048 (compare_symbol_name): Likewise.
6049
9a49ad8c
AB
60502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6051
6052 * ada-lang.c (ada_language_data): Delete la_compute_program
6053 initializer.
6054 * c-lang.c (c_language_data): Likewise.
6055 (c_language::compute_program): New member function.
6056 (cplus_language_data): Delete la_compute_program initializer.
6057 (cplus_language::compute_program): New member function.
6058 (asm_language_data): Delete la_compute_program initializer.
6059 (minimal_language_data): Likewise.
6060 * c-lang.h (c_compute_program): Update comment.
6061 (cplus_compute_program): Likewise.
6062 * compile/compile-c-support.c (c_compute_program): Likewise.
6063 (cplus_compute_program): Likewise.
6064 * compile/compile.c (compile_to_object): Update call to
6065 la_compute_program.
6066 * d-lang.c (d_language_data): Delete la_compute_program
6067 initializer.
6068 * f-lang.c (f_language_data): Likewise.
6069 * go-lang.c (go_language_data): Likewise.
6070 * language.c (unknown_language_data): Likewise.
6071 (auto_language_data): Likewise.
6072 * language.h (language_data): Delete la_compute_program field.
6073 (language_defn::compute_program): New member function.
6074 * m2-lang.c (m2_language_data): Delete la_compute_program
6075 initializer.
6076 * objc-lang.c (objc_language_data): Likewise.
6077 * opencl-lang.c (opencl_language_data): Likewise.
6078 * p-lang.c (pascal_language_data): Likewise.
6079 * rust-lang.c (rust_language_data): Likewise.
6080
eff93b4d
AB
60812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6082
6083 * ada-lang.c (ada_language_data) Delete
6084 la_class_name_from_physname initializer.
6085 * c-lang.c (c_language_data): Likewise.
6086 (cplus_language_data): Likewise.
6087 (cplus_language::class_name_from_physname): New member function.
6088 (asm_language_data): Delete la_class_name_from_physname
6089 initializer.
6090 (minimal_language_data): Likewise.
6091 * d-lang.c (d_language_data): Likewise.
6092 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6093 method on language_defn class.
6094 (guess_full_die_structure_name): Likewise.
6095 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6096 initializer.
6097 * go-lang.c (go_language_data): Likewise.
6098 * language.c (language_class_name_from_physname): Delete.
6099 (unk_lang_class_name): Delete.
6100 (unknown_language_data): Delete la_class_name_from_physname
6101 initializer.
6102 (auto_language_data): Likewise.
6103 * language.h (language_data): Delete la_class_name_from_physname
6104 field.
6105 (language_defn::class_name_from_physname): New function.
6106 (language_class_name_from_physname): Delete declaration.
6107 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6108 initializer.
6109 * objc-lang.c (objc_language_data): Likewise.
6110 * opencl-lang.c (opencl_language_data): Likewise.
6111 * p-lang.c (pascal_language_data): Likewise.
6112 * rust-lang.c (rust_language_data): Likewise.
6113
de543742
TT
61142020-06-16 Tom Tromey <tom@tromey.com>
6115
6116 * tui/tui-data.h (STATUS_NAME): New macro.
6117 * tui/tui-layout.c (tui_remove_some_windows)
6118 (initialize_known_windows, tui_register_window)
6119 (tui_layout_split::remove_windows, initialize_layouts)
6120 (tui_new_layout_command): Don't use hard-coded window names.
6121
a350efd4
TT
61222020-06-16 Tom Tromey <tom@tromey.com>
6123
6124 PR tui/25348:
6125 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6126 tui_initialize_readline. Only run once. Call rl_initialize.
6127 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6128 tui_initialize_readline.
6129 * tui/tui-io.c (tui_setup_io): Call
6130 tui_ensure_readline_initialized.
6131 * tui/tui-interp.c (tui_interp::init): Update.
6132
39ec0490
TT
61332020-06-16 Tom Tromey <tom@tromey.com>
6134
6135 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6136 Also preserve the status window.
6137
d2d1ea20
TT
61382020-06-16 Tom Tromey <tom@tromey.com>
6139
6140 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6141 where m_window==nullptr.
6142
66920317
TT
61432020-06-15 Tom Tromey <tromey@adacore.com>
6144
6145 * windows-nat.c (windows_nat::handle_output_debug_string):
6146 Update.
6147 (windows_nat::handle_ms_vc_exception): Update.
6148 * target.h (target_read_string): Change API.
6149 * target.c (target_read_string): Change API.
6150 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6151 Update.
6152 * solib-frv.c (frv_current_sos): Update.
6153 * solib-dsbt.c (dsbt_current_sos): Update.
6154 * solib-darwin.c (darwin_current_sos): Update.
6155 * linux-thread-db.c (inferior_has_bug): Update.
6156 * expprint.c (print_subexp_standard): Update.
6157 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6158 (ada_exception_message_1): Update.
6159
a5d871dd
TT
61602020-06-15 Tom Tromey <tromey@adacore.com>
6161
6162 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6163
670e35fa
TT
61642020-06-15 Tom Tromey <tromey@adacore.com>
6165
6166 * valprint.c (read_string): Update comment.
6167 * target.c (MIN): Remove.
6168 (target_read_string): Rewrite.
6169
f5272a3b
TT
61702020-06-15 Tom Tromey <tromey@adacore.com>
6171
6172 * corefile.c (read_memory_string): Remove.
6173 * ada-valprint.c (ada_value_print_ptr): Update.
6174 * ada-lang.h (ada_tag_name): Change return type.
6175 * ada-lang.c (type_from_tag): Update.
6176 (ada_tag_name_from_tsd): Change return type. Use
6177 target_read_string.
6178 (ada_tag_name): Likewise.
6179 * gdbcore.h (read_memory_string): Don't declare.
6180
2c074f49
HD
61812020-06-14 Hannes Domani <ssbssa@yahoo.de>
6182
6183 * symtab.c (rbreak_command): Ignore Windows drive colon.
6184
6a17d503
SM
61852020-06-12 Simon Marchi <simon.marchi@efficios.com>
6186
6187 * NEWS: Mention removed GDBserver host support.
6188
453c733f
NC
61892020-06-12 Nelson Chu <nelson.chu@sifive.com>
6190
6191 * features/riscv/rebuild-csr-xml.sh: Updated.
6192
2b4e6a3f
TT
61932020-06-11 Tom Tromey <tom@tromey.com>
6194
6195 PR gdb/18318:
6196 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6197
4412332f
JG
61982020-06-09 Jonny Grant <jg@jguk.org>
61992020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * main.c (captured_main_1): Don't print new line after help.
6202 (print_gdb_help): add mailing list and IRC channel information
6203 to --help. Add new lines between items in the footer. Remove
6204 quotes around bug url.
6205
2f33032a
KS
62062020-06-11 Keith Seitz <keiths@redhat.com>
6207
6208 PR gdb/21356
6209 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6210 Resolve typedefs for type length calculations.
6211
7ab96794
TV
62122020-06-10 Tom de Vries <tdevries@suse.de>
6213
6214 PR ada/24713
6215 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6216 (write_psymbols): Enable .gdb_index for ada.
6217 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6218 ada.
6219
e5f3ece2
TV
62202020-06-10 Tom de Vries <tdevries@suse.de>
6221
6222 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6223 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6224 namei" instead of "const char *name" argument.
6225 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6226 dw2_symtab_iter_init.
6227
940da03e
SM
62282020-06-08 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6231 to use type::field and field::type instead.
6232
b6cdac4b
SM
62332020-06-08 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6236 to use field::type instead.
6237
5d14b6e5
SM
62382020-06-08 Simon Marchi <simon.marchi@efficios.com>
6239
6240 * gdbtypes.h (struct field) <type, set_type>: New methods.
6241 Rename `type` field to...
6242 <m_type>: ... this. Change references throughout to use type or
6243 set_type methods.
6244 (FIELD_TYPE): Use field::type. Change call sites that modify
6245 the field's type to use field::set_type instead.
6246
3d967001
SM
62472020-06-08 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6250 to use type::index_type instead.
6251
262abc0d
SM
62522020-06-08 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6255 methods.
6256 (TYPE_INDEX_TYPE): Use type::index_type.
6257 * gdbtypes.c (create_array_type_with_stride): Likewise.
6258
82836c92
TT
62592020-06-07 Tom Tromey <tom@tromey.com>
6260
6261 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6262 parameter.
6263 (generic_value_print): Update.
6264
940dace9
AB
62652020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6266
6267 Revert commit 982a38f60b0.
6268 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6269
982a38f6
AB
62702020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6271
6272 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6273 avoid use after free.
6274
82f06518
TV
62752020-06-05 Tom de Vries <tdevries@suse.de>
6276
6277 * NEWS: Fix typos.
6278
f8c41851
SM
62792020-06-04 Simon Marchi <simon.marchi@efficios.com>
6280
6281 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6282 the per_bfd object.
6283 (dwarf2_read_debug_names): Likewise.
6284 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6285 object when re-using a per_bfd object with an index.
6286
f9b5d5ea
TV
62872020-06-03 Tom de Vries <tdevries@suse.de>
6288
6289 PR symtab/26046
6290 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6291 children for C++.
6292 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6293 DW_TAG_subprogram.
6294
f6eee2d0
AB
62952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6296
6297 * ada-lang.c (ada_language_data): Delete skip_trampoline
6298 initializer.
6299 * c-lang.c (c_language_data): Likewise.
6300 (cplus_language_data): Likewise.
6301 (cplus_language::skip_trampoline): New member function.
6302 (asm_language_data): Delete skip_trampoline initializer.
6303 (minimal_language_data): Likewise.
6304 * d-lang.c (d_language_data): Likewise.
6305 * f-lang.c (f_language_data): Likewise.
6306 * go-lang.c (go_language_data): Likewise.
6307 * language.c (unk_lang_trampoline): Delete function.
6308 (skip_language_trampoline): Update.
6309 (unknown_language_data): Delete skip_trampoline initializer.
6310 (auto_language_data): Likewise.
6311 * language.h (language_data): Delete skip_trampoline field.
6312 (language_defn::skip_trampoline): New function.
6313 * m2-lang.c (m2_language_data): Delete skip_trampoline
6314 initializer.
6315 * objc-lang.c (objc_skip_trampoline): Delete function, move
6316 implementation to objc_language::skip_trampoline.
6317 (objc_language_data): Delete skip_trampoline initializer.
6318 (objc_language::skip_trampoline): New member function with
6319 implementation from objc_skip_trampoline.
6320 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6321 initializer.
6322 * p-lang.c (pascal_language_data): Likewise.
6323 * rust-lang.c (rust_language_data): Likewise.
6324
0a50df5d
AB
63252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6326
6327 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6328 (ada_language::demangle): New member function.
6329 * c-lang.c (c_language_data): Delete la_demangle initializer.
6330 (cplus_language_data): Delete la_demangle initializer.
6331 (cplus_language::demangle): New member function.
6332 (asm_language_data): Delete la_demangle initializer.
6333 (minimal_language_data): Delete la_demangle initializer.
6334 * d-lang.c (d_language_data): Delete la_demangle initializer.
6335 (d_language::demangle): New member function.
6336 * f-lang.c (f_language_data): Delete la_demangle initializer.
6337 (f_language::demangle): New member function.
6338 * go-lang.c (go_language_data): Delete la_demangle initializer.
6339 (go_language::demangle): New member function.
6340 * language.c (language_demangle): Update.
6341 (unk_lang_demangle): Delete.
6342 (unknown_language_data): Delete la_demangle initializer.
6343 (unknown_language::demangle): New member function.
6344 (auto_language_data): Delete la_demangle initializer.
6345 (auto_language::demangle): New member function.
6346 * language.h (language_data): Delete la_demangle field.
6347 (language_defn::demangle): New function.
6348 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6349 * objc-lang.c (objc_language_data): Delete la_demangle
6350 initializer.
6351 (objc_language::demangle): New member function.
6352 * opencl-lang.c (opencl_language_data): Delete la_demangle
6353 initializer.
6354 * p-lang.c (pascal_language_data): Likewise.
6355 * rust-lang.c (rust_language_data): Likewise.
6356 (rust_language::demangle): New member function.
6357
fbfb0a46
AB
63582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6359
6360 * ada-lang.c (ada_language_data): Delete la_print_type
6361 initializer.
6362 (ada_language::print_type): New member function.
6363 * c-lang.c (c_language_data): Delete la_print_type initializer.
6364 (c_language::print_type): New member function.
6365 (cplus_language_data): Delete la_print_type initializer.
6366 (cplus_language::print_type): New member function.
6367 (asm_language_data): Delete la_print_type initializer.
6368 (asm_language::print_type): New member function.
6369 (minimal_language_data): Delete la_print_type initializer.
6370 (minimal_language::print_type): New member function.
6371 * d-lang.c (d_language_data): Delete la_print_type initializer.
6372 (d_language::print_type): New member function.
6373 * f-lang.c (f_language_data): Delete la_print_type initializer.
6374 (f_language::print_type): New member function.
6375 * go-lang.c (go_language_data): Delete la_print_type initializer.
6376 (go_language::print_type): New member function.
6377 * language.c (unk_lang_print_type): Delete.
6378 (unknown_language_data): Delete la_print_type initializer.
6379 (unknown_language::print_type): New member function.
6380 (auto_language_data): Delete la_print_type initializer.
6381 (auto_language::print_type): New member function.
6382 * language.h (language_data): Delete la_print_type field.
6383 (language_defn::print_type): New function.
6384 (LA_PRINT_TYPE): Update.
6385 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6386 (m2_language::print_type): New member function.
6387 * objc-lang.c (objc_language_data): Delete la_print_type
6388 initializer.
6389 (objc_language::print_type): New member function.
6390 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6391 to opencl_language::print_type.
6392 (opencl_language_data): Delete la_print_type initializer.
6393 (opencl_language::print_type): New member function, implementation
6394 from opencl_print_type.
6395 * p-lang.c (pascal_language_data): Delete la_print_type
6396 initializer.
6397 (pascal_language::print_type): New member function.
6398 * rust-lang.c (rust_print_type): Delete, implementation moved to
6399 rust_language::print_type.
6400 (rust_language_data): Delete la_print_type initializer.
6401 (rust_language::print_type): New member function, implementation
6402 from rust_print_type.
6403
6f827019
AB
64042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6405
6406 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6407 implementation moves to...
6408 (ada_language::sniff_from_mangled_name): ...here. Update return
6409 type.
6410 (ada_language_data): Delete la_sniff_from_mangled_name
6411 initializer.
6412 * c-lang.c (c_language_data): Likewise.
6413 (cplus_language_data): Likewise.
6414 (cplus_language::sniff_from_mangled_name): New member function,
6415 implementation taken from gdb_sniff_from_mangled_name.
6416 (asm_language_data): Delete la_sniff_from_mangled_name
6417 initializer.
6418 (minimal_language_data): Likewise.
6419 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6420 implementation moves to cplus_language::sniff_from_mangled_name.
6421 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6422 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6423 moves to...
6424 (d_language::sniff_from_mangled_name): ...here.
6425 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6426 * f-lang.c (f_language_data): Likewise.
6427 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6428 moves to...
6429 (go_language::sniff_from_mangled_name): ...here.
6430 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6431 * language.c (language_sniff_from_mangled_name): Delete.
6432 (unknown_language_data): Delete la_sniff_from_mangled_name
6433 initializer.
6434 (auto_language_data): Likewise.
6435 * language.h (language_data): Delete la_sniff_from_mangled_name
6436 field.
6437 (language_defn::sniff_from_mangled_name): New function.
6438 (language_sniff_from_mangled_name): Delete declaration.
6439 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6440 field.
6441 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6442 implementation moves to...
6443 (objc_language::sniff_from_mangled_name): ...here.
6444 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6445 * opencl-lang.c (opencl_language_data): Likewise.
6446 * p-lang.c (pascal_language_data): Likewise.
6447 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6448 implementation moves to...
6449 (rust_language::sniff_from_mangled_name): ...here.
6450 (rust_language_data): Delete la_sniff_from_mangled_name
6451 initializer.
6452 * symtab.c (symbol_find_demangled_name): Call
6453 sniff_from_mangled_name member function.
6454
fb8006fd
AB
64552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6456
6457 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6458 initializer.
6459 * c-lang.c (c_language_data): Likewise.
6460 (cplus_language_data): Likewise.
6461 (cplus_language::search_name_hash): New member function.
6462 (asm_language_data): Delete la_search_name_hash initializer.
6463 (minimal_language_data): Likewise.
6464 * d-lang.c (d_language_data): Likewise.
6465 * dictionary.c (default_search_name_hash): Rename to...
6466 (language_defn::search_name_hash): ...this.
6467 * f-lang.c (f_language_data): Likewise.
6468 (f_language::search_name_hash): New member function.
6469 * go-lang.c (go_language_data): Delete la_search_name_hash
6470 initializer.
6471 * language.c (unknown_language_data): Likewise.
6472 (auto_language_data): Likewise.
6473 * language.h (struct language_data): Delete la_search_name_hash
6474 field.
6475 (language_defn::search_name_hash): Declare new member function.
6476 (default_search_name_hash): Delete declaration.
6477 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6478 initializer.
6479 * objc-lang.c (objc_language_data): Likewise.
6480 * opencl-lang.c (opencl_language_data): Likewise.
6481 * p-lang.c (pascal_language_data): Likewise.
6482 * rust-lang.c (rust_language_data): Likewise.
6483 * symtab.c (search_name_hash): Update call.
6484
8e25bafe
AB
64852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6486
6487 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6488 initializer.
6489 * c-lang.c (class compile_instance): Declare.
6490 (c_language_data): Delete la_get_compile_instance initializer.
6491 (c_language::get_compile_instance): New member function.
6492 (cplus_language_data): Delete la_get_compile_instance initializer.
6493 (cplus_language::get_compile_instance): New member function.
6494 (asm_language_data): Delete la_get_compile_instance initializer.
6495 (minimal_language_data): Likewise.
6496 * c-lang.h (c_get_compile_context): Update comment.
6497 (cplus_get_compile_context): Update comment.
6498 * compile/compile.c (compile_to_object): Update calls, don't rely
6499 on function pointer being NULL.
6500 * d-lang.c (d_language_data): Delete la_get_compile_instance
6501 initializer.
6502 * f-lang.c (f_language_data): Likewise.
6503 * go-lang.c (go_language_data): Likewise.
6504 * language.c (unknown_language_data): Likewise.
6505 (auto_language_data): Likewise.
6506 * language.h (language_data): Delete la_get_compile_instance field.
6507 (language_defn::get_compile_instance): New member function.
6508 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6509 initializer.
6510 * objc-lang.c (objc_language_data): Likewise.
6511 * opencl-lang.c (opencl_language_data): Likewise.
6512 * p-lang.c (pascal_language_data): Likewise.
6513 * rust-lang.c (rust_language_data): Likewise.
6514
4009ee92
AB
65152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6516
6517 * ada-lang.c (ada_add_all_symbols): Update comment.
6518 (ada_iterate_over_symbols): Delete, move implementation to...
6519 (ada_language::iterate_over_symbols): ...here, a new member
6520 function, rewrite to use range based for loop.
6521 (ada_language_data): Delete la_iterate_over_symbols initializer.
6522 * c-lang.c (c_language_data): Likewise.
6523 (cplus_language_data): Likewise.
6524 (asm_language_data): Likewise.
6525 (minimal_language_data): Likewise.
6526 * d-lang.c (d_language_data): Likewise.
6527 * f-lang.c (f_language_data): Likewise.
6528 * go-lang.c (go_language_data): Likewise.
6529 * language.c (unknown_language_data): Likewise.
6530 (auto_language_data): Likewise.
6531 * language.h (language_data): Delete la_iterate_over_symbols field.
6532 (language_defn::iterate_over_symbols): New member function.
6533 (LA_ITERATE_OVER_SYMBOLS): Update.
6534 * linespec.c (iterate_over_all_matching_symtabs): Update.
6535 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6536 initializer.
6537 * objc-lang.c (objc_language_data): Likewise.
6538 * opencl-lang.c (opencl_language_data): Likewise.
6539 * p-lang.c (pascal_language_data): Likewise.
6540 * rust-lang.c (rust_language_data): Likewise.
6541
54f4ca46
AB
65422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6543
6544 * ada-lang.c (ada_language_data): Delete
6545 la_lookup_transparent_type initializer.
6546 * c-lang.c (c_language_data): Likewise.
6547 (cplus_language_data): Likewise.
6548 (cplus_language::lookup_transparent_type): New member function.
6549 (asm_language_data): Delete la_lookup_transparent_type
6550 initializer.
6551 (minimal_language_data): Likewise.
6552 * d-lang.c (d_language_data): Likewise.
6553 * f-lang.c (f_language_data): Likewise.
6554 * go-lang.c (go_language_data): Likewise.
6555 * language.c (unknown_language_data): Likewise.
6556 (auto_language_data): Likewise.
6557 * language.h (struct language_data): Delete
6558 la_lookup_transparent_type field.
6559 (language_defn::lookup_transparent_type): New member function.
6560 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6561 initializer.
6562 * objc-lang.c (objc_language_data): Likewise.
6563 * opencl-lang.c (opencl_language_data): Likewise.
6564 * p-lang.c (pascal_language_data): Likewise.
6565 * rust-lang.c (rust_language_data): Likewise.
6566 * symtab.c (symbol_matches_domain): Update call.
6567
1fb314aa
AB
65682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6569
6570 * ada-lang.c (ada_language_arch_info): Delete function, move
6571 implementation to...
6572 (ada_language::language_arch_info): ...here, a new member
6573 function.
6574 (ada_language_data): Delete la_language_arch_info.
6575 * c-lang.c (c_language_data): Likewise.
6576 (c_language::language_arch_info): New member function.
6577 (cplus_language_arch_info): Delete function, move
6578 implementation to...
6579 (cplus_language::language_arch_info): ...here, a new member
6580 function.
6581 (cplus_language_data): Delete la_language_arch_info.
6582 (asm_language_data): Likewise.
6583 (asm_language::language_arch_info): New member function.
6584 (minimal_language_data): Delete la_language_arch_info.
6585 (minimal_language::language_arch_info): New member function.
6586 * d-lang.c (d_language_arch_info): Delete function, move
6587 implementation to...
6588 (d_language::language_arch_info): ...here, a new member
6589 function.
6590 (d_language_data): Delete la_language_arch_info.
6591 * f-lang.c (f_language_arch_info): Delete function, move
6592 implementation to...
6593 (f_language::language_arch_info): ...here, a new member
6594 function.
6595 (f_language_data): Delete la_language_arch_info.
6596 * go-lang.c (go_language_arch_info): Delete function, move
6597 implementation to...
6598 (go_language::language_arch_info): ...here, a new member
6599 function.
6600 (go_language_data): Delete la_language_arch_info.
6601 * language.c (unknown_language_data): Likewise.
6602 (unknown_language::language_arch_info): New member function.
6603 (auto_language_data): Delete la_language_arch_info.
6604 (auto_language::language_arch_info): New member function.
6605 (language_gdbarch_post_init): Update call to
6606 la_language_arch_info.
6607 * language.h (language_data): Delete la_language_arch_info
6608 function pointer.
6609 (language_defn::language_arch_info): New function.
6610 * m2-lang.c (m2_language_arch_info): Delete function, move
6611 implementation to...
6612 (m2_language::language_arch_info): ...here, a new member
6613 function.
6614 (m2_language_data): Delete la_language_arch_info.
6615 * objc-lang.c (objc_language_arch_info): Delete function, move
6616 implementation to...
6617 (objc_language::language_arch_info): ...here, a new member
6618 function.
6619 (objc_language_data): Delete la_language_arch_info.
6620 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6621 implementation to...
6622 (opencl_language::language_arch_info): ...here, a new member
6623 function.
6624 (opencl_language_data): Delete la_language_arch_info.
6625 * p-lang.c (pascal_language_arch_info): Delete function, move
6626 implementation to...
6627 (pascal_language::language_arch_info): ...here, a new member
6628 function.
6629 (pascal_language_data): Delete la_language_arch_info.
6630 * rust-lang.c (rust_language_arch_info): Delete function, move
6631 implementation to...
6632 (rust_language::language_arch_info): ...here, a new member
6633 function.
6634 (rust_language_data): Delete la_language_arch_info.
6635
48448202
AB
66362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6637
6638 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6639 initializer.
6640 * c-lang.c (c_language_data): Likewise.
6641 (cplus_language_data): Likewise.
6642 (cplus_language::pass_by_reference_info): New method.
6643 (asm_language_data): Delete la_pass_by_reference initializer.
6644 (minimal_language_data): Likewise.
6645 * cp-abi.c (cp_pass_by_reference): Remove use of
6646 default_pass_by_reference.
6647 * d-lang.c (d_language_data): Likewise.
6648 * f-lang.c (f_language_data): Likewise.
6649 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6650 default_pass_by_reference.
6651 * go-lang.c (go_language_data): Likewise.
6652 * language.c (language_pass_by_reference): Update.
6653 (default_pass_by_reference): Delete.
6654 (unknown_language_data): Delete la_pass_by_reference
6655 initializer.
6656 (auto_language_data): Likewise.
6657 * language.h (struct language_data): Delete la_pass_by_reference
6658 field.
6659 (language_defn::pass_by_reference_info): New member function.
6660 (default_pass_by_reference): Delete declaration.
6661 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6662 initializer.
6663 * objc-lang.c (objc_language_data): Likewise.
6664 * opencl-lang.c (opencl_language_data): Likewise.
6665 * p-lang.c (pascal_language_data): Likewise.
6666 * rust-lang.c (rust_language_data): Likewise.
6667
15e5fd35
AB
66682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6669
6670 * ada-lang.c (ada_read_var_value): Delete function, move
6671 implementation to...
6672 (ada_language::read_var_value): ...here.
6673 (ada_language_data): Delete la_read_var_value initializer.
6674 * c-lang.c (c_language_data): Likewise.
6675 (cplus_language_data): Likewise.
6676 (minimal_language_data): Likewise.
6677 * d-lang.c (d_language_data): Likewise.
6678 * f-lang.c (f_language_data): Likewise.
6679 * findvar.c (default_read_var_value): Rename to...
6680 (language_defn::read_var_value): ...this.
6681 * findvar.c (read_var_value): Update header comment, and change to
6682 call member function instead of function pointer.
6683 * go-lang.c (go_language_data): Likewise.
6684 * language.c (unknown_language_data): Delete la_read_var_value
6685 initializer.
6686 (auto_language_data): Likewise.
6687 * language.h (struct language_data): Delete la_read_var_value
6688 field.
6689 (language_defn::read_var_value): New member function.
6690 (default_read_var_value): Delete declaration.
6691 * m2-lang.c (m2_language_data): Delete la_read_var_value
6692 initializer.
6693 * objc-lang.c (objc_language_data): Likewise.
6694 * opencl-lang.c (opencl_language_data): Likewise.
6695 * p-lang.c (pascal_language_data): Likewise.
6696 * rust-lang.c (rust_language_data): Likewise.
6697 * value.h (default_read_var_value): Delete declaration.
6698
5bd40f2a
AB
66992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6700
6701 * ada-lang.c (ada_print_array_index): Delete function, move
6702 implementation to...
6703 (ada_language::print_array_index): ...here.
6704 (ada_language_data): Delete la_print_array_index initializer.
6705 * c-lang.c (c_language_data): Likewise.
6706 (cplus_language_data): Likewise.
6707 (minimal_language_data): Likewise.
6708 * d-lang.c (d_language_data): Likewise.
6709 * f-lang.c (f_language_data): Likewise.
6710 * go-lang.c (go_language_data): Likewise.
6711 * language.c (default_print_array_index): Delete function, move
6712 implementation to...
6713 (language_defn::print_array_index): ...here.
6714 (unknown_language_data): Delete la_print_array_index initializer.
6715 (auto_language_data): Likewise.
6716 * language.h (struct language_data): Delete la_print_array_index
6717 field.
6718 (language_defn::print_array_index): New member function.
6719 (LA_PRINT_ARRAY_INDEX): Update.
6720 (default_print_array_index): Delete declaration.
6721 * m2-lang.c (m2_language_data): Delete la_print_array_index
6722 initializer.
6723 * objc-lang.c (objc_language_data): Likewise.
6724 * opencl-lang.c (opencl_language_data): Likewise.
6725 * p-lang.c (pascal_language_data): Likewise.
6726 * rust-lang.c (rust_language_data): Likewise.
6727
0874fd07
AB
67282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6729
6730 * gdb/ada-lang.c (ada_language_defn): Convert to...
6731 (ada_language_data): ...this.
6732 (class ada_language): New class.
6733 (ada_language_defn): New static global.
6734 * gdb/c-lang.c (c_language_defn): Convert to...
6735 (c_language_data): ...this.
6736 (class c_language): New class.
6737 (c_language_defn): New static global.
6738 (cplus_language_defn): Convert to...
6739 (cplus_language_data): ...this.
6740 (class cplus_language): New class.
6741 (cplus_language_defn): New static global.
6742 (asm_language_defn): Convert to...
6743 (asm_language_data): ...this.
6744 (class asm_language): New class.
6745 (asm_language_defn): New static global.
6746 (minimal_language_defn): Convert to...
6747 (minimal_language_data): ...this.
6748 (class minimal_language): New class.
6749 (minimal_language_defn): New static global.
6750 * gdb/d-lang.c (d_language_defn): Convert to...
6751 (d_language_data): ...this.
6752 (class d_language): New class.
6753 (d_language_defn): New static global.
6754 * gdb/f-lang.c (f_language_defn): Convert to...
6755 (f_language_data): ...this.
6756 (class f_language): New class.
6757 (f_language_defn): New static global.
6758 * gdb/go-lang.c (go_language_defn): Convert to...
6759 (go_language_data): ...this.
6760 (class go_language): New class.
6761 (go_language_defn): New static global.
6762 * gdb/language.c (unknown_language_defn): Remove declaration.
6763 (current_language): Initialize to nullptr, real initialization is
6764 moved to _initialize_language.
6765 (languages): Delete global.
6766 (language_defn::languages): Define.
6767 (set_language_command): Use language_defn::languages.
6768 (set_language): Likewise.
6769 (range_error): Likewise.
6770 (language_enum): Likewise.
6771 (language_def): Likewise.
6772 (add_set_language_command): Use language_def::languages for the
6773 language list, and language_def to lookup language pointers.
6774 (skip_language_trampoline): Use language_defn::languages.
6775 (unknown_language_defn): Convert to...
6776 (unknown_language_data): ...this.
6777 (class unknown_language): New class.
6778 (unknown_language_defn): New static global.
6779 (auto_language_defn): Convert to...
6780 (auto_language_data): ...this.
6781 (class auto_language): New class.
6782 (auto_language_defn): New static global.
6783 (language_gdbarch_post_init): Use language_defn::languages.
6784 (_initialize_language): Initialize current_language.
6785 * gdb/language.h (struct language_defn): Rename to...
6786 (struct language_data): ...this.
6787 (struct language_defn): New.
6788 (auto_language_defn): Delete.
6789 (unknown_language_defn): Delete.
6790 (minimal_language_defn): Delete.
6791 (ada_language_defn): Delete.
6792 (asm_language_defn): Delete.
6793 (c_language_defn): Delete.
6794 (cplus_language_defn): Delete.
6795 (d_language_defn): Delete.
6796 (f_language_defn): Delete.
6797 (go_language_defn): Delete.
6798 (m2_language_defn): Delete.
6799 (objc_language_defn): Delete.
6800 (opencl_language_defn): Delete.
6801 (pascal_language_defn): Delete.
6802 (rust_language_defn): Delete.
6803 * gdb/m2-lang.c (m2_language_defn): Convert to...
6804 (m2_language_data): ...this.
6805 (class m2_language): New class.
6806 (m2_language_defn): New static global.
6807 * gdb/objc-lang.c (objc_language_defn): Convert to...
6808 (objc_language_data): ...this.
6809 (class objc_language): New class.
6810 (objc_language_defn): New static global.
6811 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6812 (opencl_language_data): ...this.
6813 (class opencl_language): New class.
6814 (opencl_language_defn): New static global.
6815 * gdb/p-lang.c (pascal_language_defn): Convert to...
6816 (pascal_language_data): ...this.
6817 (class pascal_language): New class.
6818 (pascal_language_defn): New static global.
6819 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6820 language pointer, update comment format.
6821 * gdb/rust-lang.c (rust_language_defn): Convert to...
6822 (rust_language_data): ...this.
6823 (class rust_language): New class.
6824 (rust_language_defn): New static global.
6825
1313c56e
AB
68262020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6827
6828 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6829 member variable.
6830 <m_stmt_at_address>: New member variable.
6831 (lnp_state_machine::record_line): Don't record some lines, update
6832 tracking of is_stmt at the same address.
6833 (lnp_state_machine::lnp_state_machine): Initialise new member
6834 variables.
6835
b7ed9f3d
ST
68362020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6837
6838 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6839 "-include gnu-nat-mig.h".
6840 * gnu-nat-mig.h: New file.
6841 * gnu-nat.c: Include "gnu-nat-mig.h".
6842 (exc_server, msg_reply_server, notify_server,
6843 process_reply_server): Remove declarations.
6844
14a8ad62
ST
68452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6846
6847 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6848 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6849 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6850 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6851 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6852 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6853 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6854 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6855 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6856 to gnu_nat_target class.
6857 * gnu-nat.c: Likewise.
6858 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6859 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6860 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6861 object.
6862 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6863 instead of `gnu_target'.
6864
0af5e106
ST
68652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6866
6867 * i386-gnu-tdep.c: Include "gdbcore.h"
6868 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6869 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6870 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6871 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6872 i386_gnu_sigcontext_addr): New functions
6873 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6874 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6875 tdep.
6876
078f2fc9
ST
68772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6878
6879 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6880 before fork_inferior call. Avoid calling it if target_is_pushed returns
6881 true.
6882
53dff92c
ST
68832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6884
6885 * gnu-nat.h (gnu_target): New variable declaration.
6886 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6887 gnu_target.
6888 * gnu-nat.c (gnu_target): New variable.
6889 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6890 add_thread_silent, and add_thread calls.
6891 (gnu_nat_target::create_inferior): Pass gnu_target to
6892 add_thread_silent, thread_change_ptid call.
6893 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6894 call.
6895
5a8b8627
ST
68962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6897
6898 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6899 (gnu_nat_target::find_memory_regions): Remove unused
6900 `old_address' variable.
6901
366f550a
ST
69022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6903
6904 * gnu-nat.c: Include "gdbarch.h".
6905
f14871bf
ST
69062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6907
6908 * reply_mig_hack.awk (Error return): Cast function through
6909 void *, to bypass compiler function call check.
6910
c6887cfb
ST
69112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6912
6913 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6914 $(srcdir)/reply_mig_hack.awk.
6915
6930bffe
ST
69162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6917
6918 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6919
112c22ed
JG
69202020-05-30 Jonny Grant <jg@jguk.org>
6921
6922 * configure.ac (ACX_BUGURL): change bug URL to https.
6923
f68f85b5
PA
69242020-05-30 Pedro Alves <palves@redhat.com>
6925
6926 * cp-support.c (replace_typedefs_template): New.
6927 (replace_typedefs_qualified_name): Handle
6928 DEMANGLE_COMPONENT_TEMPLATE.
6929
976ca316
SM
69302020-05-29 Simon Marchi <simon.marchi@efficios.com>
6931
6932 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6933 dwarf2/index-cache.h, dwarf2/index-write.c,
6934 dwarf2/index-write.h, dwarf2/line-header.c,
6935 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6936 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6937 variables and fields from `dwarf2_per_objfile` to just
6938 `per_objfile` throughout.
6939
989ade05
SM
69402020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6941
6942 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6943 <push_dwarf_reg_entry_value>: Add comment.
6944
c47bae85
KB
69452020-05-28 Kevin Buettner <kevinb@redhat.com>
6946 Keith Seitz <keiths@redhat.com>
6947
6948 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6949 instead of PyEval_ReleaseLock.
6950 (class gdbpy_gil): Move to earlier in file.
6951 (finalize_python): Set gdb_python_initialized.
6952 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6953 when not initialized.
6954
44486dcf
SM
69552020-05-28 Simon Marchi <simon.marchi@efficios.com>
6956
6957 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6958 <push_dwarf_reg_entry_value>: Remove assert. Override
6959 per_objfile with caller_per_objfile.
6960
f030440d
TV
69612020-05-28 Tom de Vries <tdevries@suse.de>
6962
6963 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6964 PR gold/15646 workaround to symbol kind "type".
6965
f0fbb768
TT
69662020-05-27 Tom Tromey <tromey@adacore.com>
6967
6968 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6969
af0b2a3e
TT
69702020-05-27 Tom Tromey <tromey@adacore.com>
6971
6972 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6973 Use htab_find_with_hash.
6974 <add_abbrev>: Remove "abbrev_number" parameter.
6975 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6976 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6977 (hash_abbrev): Add comment.
6978 (abbrev_table::lookup_abbrev): Move to header file.
6979 (abbrev_table::read): Update.
6980
7d00ffec
TT
69812020-05-27 Tom Tromey <tromey@adacore.com>
6982
6983 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6984 method.
6985 <canonical_name>: New member.
6986 <raw_name>: Rename from "name".
6987 (partial_die_info): Initialize canonical_name.
6988 (scan_partial_symbols): Check raw_name.
6989 (partial_die_parent_scope, partial_die_full_name)
6990 (add_partial_symbol, add_partial_subprogram)
6991 (add_partial_enumeration, load_partial_dies): Use "name" method.
6992 (partial_die_info::name): New method.
6993 (partial_die_info::read, guess_partial_die_structure_name)
6994 (partial_die_info::fixup): Update.
6995
697bba18
TT
69962020-05-27 Tom Tromey <tromey@adacore.com>
6997
6998 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6999 <get_ref_die_offset>: Inline.
7000 <get_ref_die_offset_complaint>: New method.
7001 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7002 (attribute::get_ref_die_offset_complaint): Rename from
7003 get_ref_die_offset. Just issue complaint.
7004
c17ace43
HD
70052020-05-27 Hannes Domani <ssbssa@yahoo.de>
7006
7007 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7008
96445f0b
HD
70092020-05-27 Hannes Domani <ssbssa@yahoo.de>
7010
7011 * exec.c (exec_file_attach): Use errno value of first openp failure.
7012
ac637ec3
HD
70132020-05-27 Hannes Domani <ssbssa@yahoo.de>
7014
7015 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7016 Don't close thread handle.
7017
17ee85fc
TT
70182020-05-27 Tom Tromey <tom@tromey.com>
7019 Simon Marchi <simon.marchi@efficios.com>
7020
7021 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7022 shared_ptr.
7023 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7024 member.
7025 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7026 dwarf2_per_bfd_objfile_data_key>: New globals.
7027 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7028 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7029 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7030 shared.
7031 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7032 short-circuit when sharing.
7033 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7034 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7035
39b16f87
SM
70362020-05-27 Simon Marchi <simon.marchi@efficios.com>
7037
7038 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7039 to...
7040 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7041 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7042
fcf23d5b
SM
70432020-05-27 Simon Marchi <simon.marchi@efficios.com>
7044
7045 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7046 build_name_components, find_name_components_bounds>:
7047 Add per_objfile parameter.
7048 (struct mapped_index) <symbol_name_at>: Likewise.
7049 (struct mapped_debug_names): Remove constructor.
7050 <dwarf2_per_objfile>: Remove field.
7051 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7052 (mapped_index_base::find_name_components_bounds,
7053 mapped_index_base::build_name_components,
7054 dw2_expand_symtabs_matching_symbol): Likewise.
7055 (class mock_mapped_index) <symbol_name_at>: Likewise.
7056 (check_match): Likewise.
7057 (check_find_bounds_finds): Likewise.
7058 (test_mapped_index_find_name_component_bounds): Update.
7059 (CHECK_MATCH): Update.
7060 (dw2_expand_symtabs_matching): Update.
7061 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7062 per_objfile parameter.
7063 <find_vec_in_debug_names>: Likewise.
7064 <m_per_objfile>: New field.
7065 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7066 parameter.
7067 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7068 (dw2_debug_names_iterator::next): Update.
7069 (dw2_debug_names_lookup_symbol): Update.
7070 (dw2_debug_names_expand_symtabs_for_function): Update.
7071 (dw2_debug_names_map_matching_symbols): Update.
7072 (dw2_debug_names_expand_symtabs_matching): Update.
7073 (dwarf2_read_debug_names): Update.
7074
7188ed02
SM
70752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7076
7077 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7078 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7079 move to dwarf2_per_objfile.
7080 <read_in_chain>: Remove.
7081 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7082 remove_all_cus, age_comp_units>: New methods.
7083 <m_dwarf2_cus>: New member.
7084 (struct dwarf2_per_cu_data) <cu>: Remove.
7085 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7086 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7087 moved to methods of dwarf2_per_objfile.
7088 (dwarf2_clear_marks): Remove.
7089 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7090 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7091 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7092 (dwarf2_per_objfile::remove_all_cus): New.
7093 (class free_cached_comp_units) <~free_cached_comp_units>:
7094 Update.
7095 (load_cu): Update.
7096 (dw2_do_instantiate_symtab): Adjust.
7097 (fill_in_sig_entry_from_dwo_entry): Adjust.
7098 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7099 (cutu_reader::cutu_reader): Likewise.
7100 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7101 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7102 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7103 and dwarf2_per_objfile::age_comp_units.
7104 (load_partial_comp_unit): Update.
7105 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7106 (process_queue): Likewise.
7107 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7108 backlink.
7109 (dwarf2_read_addr_index): Likewise.
7110 (follow_die_offset): Likewise.
7111 (dwarf2_fetch_die_loc_sect_off): Likewise.
7112 (dwarf2_fetch_constant_bytes): Likewise.
7113 (dwarf2_fetch_die_type_sect_off): Likewise.
7114 (follow_die_sig_1): Likewise.
7115 (load_full_type_unit): Likewise.
7116 (read_signatured_type): Likewise.
7117 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7118 (dwarf2_cu::~dwarf2_cu): Remove.
7119 (dwarf2_per_objfile::get_cu): New.
7120 (dwarf2_per_objfile::set_cu): New.
7121 (age_cached_comp_units): Rename to...
7122 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7123 to std::unordered_map.
7124 (free_one_cached_comp_unit): Rename to...
7125 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7126 to std::unordered_map.
7127 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7128 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7129 a dwarf2_per_objfile in data.
7130 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7131 (dwarf2_clear_marks): Remove.
7132
2e671100
SM
71332020-05-27 Simon Marchi <simon.marchi@efficios.com>
7134
7135 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7136 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7137 (init_tu_and_read_dwo_dies): Likewise.
7138 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7139 (cutu_reader::cutu_reader): Likewise.
7140 (load_partial_comp_unit): Likewise.
7141 (process_psymtab_comp_unit): Update.
7142 (build_type_psymtabs_1): Update.
7143 (process_skeletonless_type_unit): Update.
7144 (load_full_comp_unit): Update.
7145 (find_partial_die): Update.
7146 (dwarf2_read_addr_index): Update.
7147 (read_signatured_type): Update.
7148
2e6a9f79
SM
71492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7150
7151 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7152 m_header_read_in>: New fields.
7153 <get_header>: New method.
7154 * dwarf2/read.c (per_cu_header_read_in): Remove.
7155 (dwarf2_per_cu_data::get_header): New.
7156 (dwarf2_per_cu_data::addr_size): Update.
7157 (dwarf2_per_cu_data::offset_size): Update.
7158 (dwarf2_per_cu_data::ref_addr_size): Update.
7159
1b555f17
SM
71602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7161
7162 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7163 (dw2_do_instantiate_symtab): Update.
7164 (queue_and_load_all_dwo_tus): Change parameter from
7165 dwarf2_per_cu_data to dwarf2_cu.
7166 (dwarf2_fetch_die_loc_sect_off): Update.
7167 (dwarf2_fetch_constant_bytes): Update.
7168 (dwarf2_fetch_die_type_sect_off): Update.
7169
8fc0b21d
SM
71702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7171
7172 * dwarf2/read.c (process_full_comp_unit,
7173 process_full_type_unit): Remove per_cu, per_objfile paramters.
7174 Add dwarf2_cu parameter.
7175 (process_queue): Update.
7176
168c9250
SM
71772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7178
7179 * dwarf2/read.c (create_cu_from_index_list): Replace
7180 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7181 (create_cus_from_index_list): Likewise.
7182 (create_cus_from_index): Likewise.
7183 (create_signatured_type_table_from_index): Likewise.
7184 (create_cus_from_debug_names_list): Likewise.
7185 (create_cus_from_debug_names): Likewise.
7186 (dwarf2_read_gdb_index): Update.
7187 (dwarf2_read_debug_names): Update.
7188
e286671b
TT
71892020-05-27 Tom Tromey <tom@tromey.com>
7190 Simon Marchi <simon.marchi@efficios.com>
7191
7192 * dwarf2/read.h (struct dwarf2_per_objfile)
7193 <get_type_for_signatured_type, set_type_for_signatured_type>:
7194 New methods.
7195 <m_type_map>: New member.
7196 (struct signatured_type) <type>: Remove.
7197 * dwarf2/read.c
7198 (dwarf2_per_objfile::get_type_for_signatured_type,
7199 dwarf2_per_objfile::set_type_for_signatured_type): New.
7200 (get_signatured_type): Use new methods.
7201
8adb8487
TT
72022020-05-27 Tom Tromey <tom@tromey.com>
7203 Simon Marchi <simon.marchi@efficios.com>
7204
7205 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7206 (struct dwarf2_per_objfile) <type_units>: New member.
7207 <get_type_unit_group_unshareable>: New method.
7208 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7209 num_symtabs, symtabs>: Remove; move to
7210 type_unit_group_unshareable.
7211 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7212 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7213 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7214
127bbf4b
SM
72152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7216
7217 * dwarf2/read.h (struct dwarf2_per_cu_data):
7218 <dwarf2_per_objfile>: Remove.
7219 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7220 dwarf2_per_objfile.
7221 (create_signatured_type_table_from_index): Likewise.
7222 (create_signatured_type_table_from_debug_names): Likewise.
7223 (create_debug_type_hash_table): Likewise.
7224 (fill_in_sig_entry_from_dwo_entry): Likewise.
7225 (create_type_unit_group): Likewise.
7226 (read_comp_units_from_section): Likewise.
7227 (create_cus_hash_table): Likewise.
7228
f6e649dd
SM
72292020-05-27 Simon Marchi <simon.marchi@efficios.com>
7230
7231 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7232 dwarf2_per_cu_data::dwarf2_per_objfile.
7233 (compute_compunit_symtab_includes): Likewise.
7234 (dwarf2_cu::start_symtab): Likewise.
7235
aa66c379
SM
72362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7237
7238 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7239 parameter.
7240 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7241 (read_namespace_alias): Update.
7242 (lookup_die_type): Update.
7243 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7244 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7245 Update.
7246 (disassemble_dwarf_expression): Update.
7247
120ce1b5
SM
72482020-05-27 Simon Marchi <simon.marchi@efficios.com>
7249
7250 * dwarf2/read.h (struct dwarf2_queue_item): Add
7251 dwarf2_per_objfile parameter, assign new parameter.
7252 <per_objfile>: New field.
7253 * dwarf2/read.c (free_one_cached_comp_unit): Add
7254 dwarf2_per_objfile parameter.
7255 (queue_comp_unit): Likewise.
7256 (dw2_do_instantiate_symtab): Update.
7257 (process_psymtab_comp_unit): Update.
7258 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7259 (process_imported_unit_die): Update.
7260 (queue_and_load_dwo_tu): Update.
7261 (follow_die_offset): Update.
7262 (follow_die_sig_1): Update.
7263
9f47c707
SM
72642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7265
7266 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7267 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7268 (read_call_site_scope): Assign per_objfile.
7269 (dwarf2_per_cu_data::objfile): Remove.
7270 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7271 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7272 dwarf2_per_objfile parameter.
7273 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7274 dwarf2_per_objfile parameter.
7275 (dwarf_expr_reg_to_entry_parameter): Add output
7276 dwarf2_per_objfile parameter.
7277 (locexpr_get_frame_base): Update.
7278 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7279 <push_dwarf_reg_entry_value>: Update.
7280 <call_site_to_target_addr>: Update.
7281 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7282 parameter.
7283 (value_of_dwarf_reg_entry): Update.
7284 (rw_pieced_value): Update.
7285 (indirect_synthetic_pointer): Update.
7286 (dwarf2_evaluate_property): Update.
7287 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7288 parameter.
7289 (locexpr_read_variable): Update.
7290 (locexpr_get_symbol_read_needs): Update.
7291 (loclist_read_variable): Update.
7292
14095eb3
SM
72932020-05-27 Simon Marchi <simon.marchi@efficios.com>
7294
7295 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7296 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7297 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7298 parameter.
7299 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7300 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7301 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7302 parameter.
7303 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7304 sect_variable_value): Add dwarf2_per_objfile parameter.
7305 (class dwarf_evaluate_loc_desc) <dwarf_call,
7306 dwarf_variable_value>: Update.
7307 (fetch_const_value_from_synthetic_pointer): Add
7308 dwarf2_per_objfile parameter.
7309 (fetch_const_value_from_synthetic_pointer): Update.
7310 (coerced_pieced_ref): Update.
7311 (class symbol_needs_eval_context) <dwarf_call,
7312 dwarf_variable_value>: Update.
7313 (dwarf2_compile_expr_to_ax): Update.
7314
3c3cd3d4
SM
73152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7316
7317 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7318 parameter.
7319 (dwarf2_evaluate_loc_desc_full): Update.
7320
82ca3f51
SM
73212020-05-27 Simon Marchi <simon.marchi@efficios.com>
7322
7323 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7324 parameter.
7325 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7326 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7327 dwarf2_per_objfile parameter.
7328 (decode_debug_loc_dwo_addresses): Likewise.
7329 (dwarf2_find_location_expression): Update.
7330 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7331 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7332 parameter.
7333 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7334 parameter.
7335 (locexpr_describe_location_1): Likewise.
7336 (locexpr_describe_location): Update.
7337
4b167ea1
SM
73382020-05-27 Simon Marchi <simon.marchi@efficios.com>
7339
7340 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7341 Remove.
7342 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7343 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7344 (dwarf2_compile_property_to_c): Update.
7345 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7346 use text offset from objfile.
7347 (locexpr_tracepoint_var_ref): Update.
7348 (locexpr_generate_c_location): Update.
7349 (loclist_describe_location): Update.
7350 (loclist_tracepoint_var_ref): Update.
7351 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7352 dwarf2_per_objfile parameter.
7353 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7354 use text offset from objfile.
7355 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7356
89b07335
SM
73572020-05-27 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * dwarf2/expr.h (struct dwarf_expr_context)
7360 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7361 <offset>: Remove.
7362 <per_objfile>: New member.
7363 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7364 dwarf2_per_objfile parameter. Don't set offset, set
7365 per_objfile.
7366 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7367 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7368 a dwarf2_per_objfile object instead of an offset.
7369 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7370 constructor.
7371 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7372 to dwarf2_expr_executor constructor. Don't set offset.
7373 (dwarf2_fetch_cfa_info): Update.
7374 (struct dwarf2_frame_cache) <text_offset>: Remove.
7375 <per_objfile>: New field.
7376 (dwarf2_frame_cache): Update.
7377 (dwarf2_frame_prev_register): Update.
7378 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7379 <dwarf_evaluate_loc_desc>: Add constructor.
7380 (dwarf2_evaluate_loc_desc_full): Update.
7381 (dwarf2_locexpr_baton_eval): Update.
7382 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7383 Add constructor.
7384 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7385
293e7e51
SM
73862020-05-27 Simon Marchi <simon.marchi@efficios.com>
7387
7388 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7389 addr_sized_int_type>: Move to dwarf2_cu.
7390 <int_type>: Move to dwarf2_per_objfile.
7391 (struct dwarf2_per_objfile) <int_type>: Move here.
7392 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7393 addr_sized_int_type>: Move here.
7394 (read_func_scope): Update.
7395 (read_array_type): Update.
7396 (read_tag_string_type): Update.
7397 (attr_to_dynamic_prop): Update.
7398 (dwarf2_per_cu_data::int_type): Rename to...
7399 (dwarf2_per_objfile::int_type): ... this.
7400 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7401 (dwarf2_cu::addr_sized_int_type): ... this.
7402 (read_subrange_type): Update.
7403 (dwarf2_per_cu_data::addr_type): Rename to...
7404 (dwarf2_cu::addr_type): ... this.
7405 (set_die_type): Update.
7406
64874a40
SM
74072020-05-27 Simon Marchi <simon.marchi@efficios.com>
7408
7409 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7410 data through per_cu->cu.
7411
4ab09049
SM
74122020-05-27 Simon Marchi <simon.marchi@efficios.com>
7413
7414 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7415 dwarf2_per_cu_data parameter fo dwarf2_cu.
7416 (lookup_dwo_type_unit): Likewise.
7417 (read_cutu_die_from_dwo): Likewise.
7418 (lookup_dwo_unit): Likewise.
7419 (open_and_init_dwo_file): Likewise.
7420 (lookup_dwo_cutu): Likewise.
7421 (lookup_dwo_comp_unit): Likewise.
7422 (lookup_dwo_type_unit): Likewise.
7423 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7424 (cutu_reader::cutu_reader): Update.
7425
47b14e86
SM
74262020-05-27 Simon Marchi <simon.marchi@efficios.com>
7427
7428 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7429 parameter.
7430 (process_full_type_unit): Likewise.
7431 (process_queue): Update.
7432
43182c09
SM
74332020-05-27 Simon Marchi <simon.marchi@efficios.com>
7434
7435 * dwarf2/read.c (recursively_compute_inclusions): Add
7436 dwarf2_per_objfile parameter.
7437 (compute_compunit_symtab_includes): Likewise.
7438 (process_cu_includes): Update.
7439
7aa104c4
SM
74402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7441
7442 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7443 parameter.
7444 (create_type_unit_group): Update.
7445 (process_psymtab_comp_unit_reader): Update.
7446 (build_type_psymtabs_reader): Update.
7447
e3beb21d
SM
74482020-05-27 Simon Marchi <simon.marchi@efficios.com>
7449
7450 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7451 object through m_this_cu->cu.
7452
d460f660
SM
74532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7454
7455 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7456 the info parameter.
7457 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7458
ab432490
SM
74592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7460
7461 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7462 per_objfile parameter.
7463 (load_full_type_unit): Add per_objfile parameter.
7464 (read_signatured_type): Likewise.
7465 (load_full_comp_unit): Likewise.
7466 (load_cu): Likewise.
7467 (dw2_do_instantiate_symtab): Likewise.
7468 (dw2_get_file_names): Likewise.
7469 (dw2_map_symtabs_matching_filename): Update.
7470 (dw_expand_symtabs_matching_file_matcher): Update.
7471 (dw2_map_symbol_filenames): Update.
7472 (process_psymtab_comp_unit): Add per_objfile parameter.
7473 (build_type_psymtabs_1): Update.
7474 (process_skeletonless_type_unit): Update.
7475 (dwarf2_build_psymtabs_hard): Update.
7476 (load_partial_comp_unit): Add per_objfile parameter.
7477 (scan_partial_symbols): Update.
7478 (load_full_comp_unit): Add per_objfile parameter.
7479 (process_imported_unit_die): Update.
7480 (create_cus_hash_table): Update.
7481 (find_partial_die): Update.
7482 (dwarf2_read_addr_index): Update.
7483 (follow_die_offset): Update.
7484 (dwarf2_fetch_die_loc_sect_off): Update.
7485 (dwarf2_fetch_constant_bytes): Update.
7486 (dwarf2_fetch_die_type_sect_off): Update.
7487 (follow_die_sig_1): Update.
7488 (load_full_type_unit): Add per_objfile parameter.
7489 (read_signatured_type): Likewise.
7490
313bad1b
SM
74912020-05-27 Simon Marchi <simon.marchi@efficios.com>
7492
7493 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7494 of objfile_name.
7495
c3699833
SM
74962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7497
7498 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7499 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7500 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7501 field.
7502 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7503 (create_cus_from_index): Update.
7504 (dwarf2_read_gdb_index): Update.
7505 (create_cus_from_debug_names): Update.
7506 (dwarf2_read_debug_names): Update.
7507 (get_abbrev_section_for_cu): Update.
7508 (create_all_comp_units): Update.
7509 (read_attribute_value): Update.
7510 (get_debug_line_section): Update.
7511 * dwarf2/index-cache.c (index_cache::store): Update.
7512 * dwarf2/index-write.c (save_gdb_index_command): Update.
7513 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7514
1859c670
SM
75152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7516
7517 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7518 member.
7519 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7520 dwarf2_per_cu_data::per_bfd.
7521 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7522 (create_type_unit_group): Likewise.
7523 (queue_comp_unit): Remove reference to
7524 per_cu->dwarf2_per_objfile.
7525 (maybe_queue_comp_unit): Likewise.
7526 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7527 (create_cus_hash_table): Assign new field.
7528
5e22e966
SM
75292020-05-27 Simon Marchi <simon.marchi@efficios.com>
7530
7531 * dwarf2/read.c: Replace
7532 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7533 dwarf2_cu->per_objfile throughout.
7534
97a1449a
SM
75352020-05-27 Simon Marchi <simon.marchi@efficios.com>
7536
7537 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7538 parameter, don't use per_cu->dwarf2_per_objfile.
7539 (dw2_instantiate_symtab): Likewise.
7540 (dw2_find_last_source_symtab): Update.
7541 (dw2_map_expand_apply): Update.
7542 (dw2_lookup_symbol): Update.
7543 (dw2_expand_symtabs_for_function): Update.
7544 (dw2_expand_all_symtabs): Update.
7545 (dw2_expand_symtabs_with_fullname): Update.
7546 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7547 don't use per_cu->dwarf2_per_objfile.
7548 (dw2_expand_marked_cus): Update.
7549 (dw2_find_pc_sect_compunit_symtab): Update.
7550 (dw2_debug_names_lookup_symbol): Update.
7551 (dw2_debug_names_expand_symtabs_for_function): Update.
7552 (dw2_debug_names_map_matching_symbols): Update.
7553 (dwarf2_psymtab::expand_psymtab): Update.
7554
9e021579
SM
75552020-05-27 Simon Marchi <simon.marchi@efficios.com>
7556
7557 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7558 <per_objfile>: New member.
7559 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7560 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7561 call to dwarf2_cu.
7562 (cutu_reader::cutu_reader): Update.
7563 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7564
ae090bdb
SM
75652020-05-27 Simon Marchi <simon.marchi@efficios.com>
7566
7567 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7568 struct dwarf2_per_objfile.
7569 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7570 dwarf2_per_bfd.
7571 * dwarf2/read.c (set_die_type): Update.
7572 (get_die_type_at_offset): Update.
7573
af758d11
SM
75742020-05-27 Tom Tromey <tom@tromey.com>
7575 Simon Marchi <simon.marchi@efficios.com>
7576
7577 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7578 method.
7579 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7580 get_symtab, set_symtab>: New methods.
7581 <m_symtabs>: New field.
7582 (struct dwarf2_psymtab): Derive from partial_symtab.
7583 <readin_p, get_compunit_symtab>: Declare methods.
7584 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7585 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7586 New methods.
7587 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7588 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7589 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7590 (dw2_symtab_iter_next, dw2_print_stats)
7591 (dw2_expand_symtabs_with_fullname)
7592 (dw2_expand_symtabs_matching_one)
7593 (dw_expand_symtabs_matching_file_matcher)
7594 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7595 (dw2_debug_names_iterator::next)
7596 (dw2_debug_names_map_matching_symbols)
7597 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7598 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7599 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7600 New methods.
7601 (get_compunit_symtab, process_full_comp_unit)
7602 (process_full_type_unit): Update.
7603 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7604
5989a64e
SM
76052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7606
7607 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7608 then introduce a new dwarf2_per_objfile type.
7609 <read_line_string>: Move to the new dwarf2_per_objfile type.
7610 <objfile>: Likewise.
7611 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7612 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7613 dwarf2_per_objfile->per_bfd.
7614 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7615 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7616 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7617 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7618 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7619 (dwarf2_per_objfile::locate_sections): Rename to...
7620 (dwarf2_per_bfd::locate_sections): ... this.
7621 (dwarf2_per_objfile::get_cutu): Rename to...
7622 (dwarf2_per_bfd::get_cutu): ... this.
7623 (dwarf2_per_objfile::get_cu): Rename to...
7624 (dwarf2_per_bfd::get_cu): ... this.
7625 (dwarf2_per_objfile::get_tu): Rename to...
7626 (dwarf2_per_bfd::get_tu): ... this.
7627 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7628 (dwarf2_per_bfd::allocate_per_cu): ... this.
7629 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7630 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7631 (get_gdb_index_contents_ftype): Change parameter from
7632 dwarf2_per_objfile to dwarf2_per_bfd.
7633 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7634 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7635
a50264ba
TT
76362020-05-27 Tom Tromey <tom@tromey.com>
7637 Simon Marchi <simon.marchi@efficios.com>
7638
7639 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7640 (allocate_piece_closure): Set "per_objfile" member.
7641 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7642 (locexpr_describe_location, loclist_describe_location): Use new
7643 member.
7644 * dwarf2/read.c (read_call_site_scope)
7645 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7646 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7647 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7648 handle_data_member_location): Set per_objfile member.
7649 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7650 member.
7651 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7652
d3473f0c
TT
76532020-05-27 Tom Tromey <tom@tromey.com>
7654
7655 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7656 allocate_signatured_type>: Declare new methods.
7657 <m_num_psymtabs>: New member.
7658 (struct dwarf2_per_cu_data) <index>: New member.
7659 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7660 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7661 (create_cu_from_index_list): Use allocate_per_cu.
7662 (create_signatured_type_table_from_index)
7663 (create_signatured_type_table_from_debug_names)
7664 (create_debug_type_hash_table, add_type_unit)
7665 (read_comp_units_from_section): Use allocate_signatured_type.
7666
5717c425
TT
76672020-05-27 Tom Tromey <tom@tromey.com>
7668
7669 * psymtab.c (partial_map_expand_apply)
7670 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7671 (psym_lookup_global_symbol_language)
7672 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7673 (psym_print_stats, psym_expand_symtabs_for_function)
7674 (psym_map_symbol_filenames, psym_map_matching_symbols)
7675 (psym_expand_symtabs_matching)
7676 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7677 (maintenance_check_psymtabs): Update.
7678 * psympriv.h (struct partial_symtab) <readin_p,
7679 get_compunit_symtab>: Add objfile parameter.
7680 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7681 Likewise.
7682 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7683 get_compunit_symtab>: Likewise.
7684 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7685
45940949
TT
76862020-05-27 Tom Tromey <tom@tromey.com>
7687
7688 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7689 member.
7690 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7691 (create_cu_from_index_list)
7692 (create_signatured_type_table_from_index)
7693 (create_signatured_type_table_from_debug_names)
7694 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7695 (dwarf2_create_include_psymtab)
7696 (create_debug_type_hash_table, add_type_unit)
7697 (create_type_unit_group, read_comp_units_from_section)
7698 (dwarf2_compute_name, create_cus_hash_table)
7699 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7700 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7701 obstack.
7702 (dw2_get_real_path): Likewise. Change argument to
7703 dwarf2_per_objfile.
7704
f8c6d152
LM
77052020-05-27 Luis Machado <luis.machado@linaro.org>
7706
7707 PR tdep/26000
7708 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7709 for ldrd (immediate).
7710
e98d2e6d
PW
77112020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7712
7713 * command.h: Add comment giving the name of class_tui.
7714 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7715 create the fake command for the help for class_tui.
7716
53a47a3e
TT
77172020-05-26 Tom Tromey <tromey@adacore.com>
7718
7719 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7720 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7721 (val_atr): New function.
7722 (value_val_atr): Use it.
7723 * ada-valprint.c (print_optional_low_bound): Change low bound
7724 handling for enums.
7725 (val_print_packed_array_elements): Don't call discrete_position.
7726 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7727 discrete_position for enum types.
7728 * language.c (default_print_array_index): Change type.
7729 * language.h (struct language_defn) <la_print_array_index>: Add
7730 index_type parameter, change type of index_value.
7731 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7732 (default_print_array_index): Update.
7733 * valprint.c (maybe_print_array_index): Don't call
7734 value_from_longest. Update.
7735 (value_print_array_elements): Don't call discrete_position.
7736
0bc2354b
TT
77372020-05-26 Tom Tromey <tromey@adacore.com>
7738
7739 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7740 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7741
1218a4bf
CDA
77422020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7743
7744 PR gdb/13519
7745 * avr-tdep.c (avr_integer_to_address): Return data or code
7746 address accordingly to the second 'type' argument of the
7747 function.
7748
92651b1d
MW
77492020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7750
7751 * infcmd.c, inferior.h: (construct_inferior_arguments):
7752 Moved function from here to gdbsupport/common-inferior.{h,cc}
7753
0a4f5f8c
TT
77542020-05-23 Tom Tromey <tom@tromey.com>
7755
7756 Revert commit eca1f90c:
7757 * NEWS: Remove entry for completion styling.
7758 * completer.c (_rl_completion_prefix_display_length): Move
7759 declaration later.
7760 (gdb_fnprint): Revert.
7761 (gdb_display_match_list_1): Likewise.
7762 * cli/cli-style.c (completion_prefix_style)
7763 (completion_difference_style, completion_suffix_style): Remove.
7764 (_initialize_cli_style): Revert.
7765 * cli/cli-style.h (completion_prefix_style)
7766 (completion_difference_style, completion_suffix_style): Don't
7767 declare.
7768
e08bd6c5
PA
77692020-05-24 Pedro Alves <palves@redhat.com>
7770
7771 * symtab.c (completion_list_add_name): Return boolean indication
7772 of whether the symbol matched.
7773 (completion_list_add_symbol): Don't try to remove C++ aliases if
7774 the symbol didn't match in the first place.
7775 * symtab.h (completion_list_add_name): Return bool.
7776
ceacbf6e
SM
77772020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7778
7779 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7780 type::field.
7781
26f16254
JB
77822020-05-23 Joel Brobecker <brobecker@adacore.com>
7783
7784 GDB 9.2 released.
7785
eca1f90c
TT
77862020-05-23 Tom Tromey <tom@tromey.com>
7787
7788 * NEWS: Add entry for completion styling.
7789 * completer.c (_rl_completion_prefix_display_length): Move
7790 declaration earlier.
7791 (gdb_fnprint): Use completion_style.
7792 (gdb_display_match_list_1): Likewise.
7793 * cli/cli-style.c (completion_prefix_style)
7794 (completion_difference_style, completion_suffix_style): New
7795 globals.
7796 (_initialize_cli_style): Register new globals.
7797 * cli/cli-style.h (completion_prefix_style)
7798 (completion_difference_style, completion_suffix_style): Declare.
7799
51e2cfa2
PA
78002020-05-23 Pedro Alves <palves@redhat.com>
7801
7802 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7803 (parse_escape): Use ISDIGIT instead of isdigit.
7804 (puts_debug): Use gdb_isprint instead of isprint.
7805 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7806 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7807 ISSPACE instead of isspace.
7808 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7809 instead of isspace.
7810 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7811 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7812 instead of isxdigit and ISDIGIT instead of isdigit.
7813
80fc5e77
SM
78142020-05-22 Simon Marchi <simon.marchi@efficios.com>
7815
7816 * gdbtypes.h (struct type) <field>: New method.
7817 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7818 or type::field.
7819
3cabb6b0
SM
78202020-05-22 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7823 (TYPE_FIELDS): Use type::fields. Change all call sites that
7824 modify the propery to use type::set_fields instead.
7825
1f704f76
SM
78262020-05-22 Simon Marchi <simon.marchi@efficios.com>
7827
7828 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7829 type::num_fields instead.
7830
5e33d5f4
SM
78312020-05-22 Simon Marchi <simon.marchi@efficios.com>
7832
7833 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7834 methods.
7835 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7836 that modify the number of fields to use type::set_num_fields
7837 instead.
7838
9392ebb3
TT
78392020-05-22 Tom Tromey <tromey@adacore.com>
7840
7841 * compile/compile-object-load.h (munmap_list_free): Don't
7842 declare.
7843
7c13f4e8
AB
78442020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * annotate.c (annotate_source_line): Update return type, add call
7847 to update current symtab and line.
7848 * annotate.h (annotate_source_line): Update return type, and
7849 extend header comment.
7850 * source.c (info_line_command): Check annotation_level before
7851 calling annotate_source_line.
7852 * stack.c (print_frame_info): If calling annotate_source_line
7853 returns true, then don't print any other source line information.
7854
aa370940
SM
78552020-05-21 Simon Marchi <simon.marchi@efficios.com>
7856
7857 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7858
84d53fa9
SM
78592020-05-21 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * coffread.c (patch_type): Remove NULL check before xfree.
7862 * corefile.c (set_gnutarget): Likewise.
7863 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7864 * exec.c (build_section_table): Likewise.
7865 * remote.c (remote_target::pass_signals): Likewise.
7866 * utils.c (n_spaces): Likewise.
7867 * cli/cli-script.c (document_command): Likewise.
7868 * i386-windows-tdep.c (core_process_module_section): Likewise.
7869 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7870
9d428aae
SM
78712020-05-20 Simon Marchi <simon.marchi@efficios.com>
7872
7873 * symfile.c (reread_symbols): Clear objfile's section_offsets
7874 vector and section indices, re-compute them by calling
7875 sym_offsets.
7876
250106a7
TT
78772020-05-20 Tom Tromey <tromey@adacore.com>
7878
7879 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7880 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7881
9a0bacfb
TV
78822020-05-20 Tom de Vries <tdevries@suse.de>
7883
7884 PR symtab/25833
7885 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7886
7b958a48
AM
78872020-05-20 Alan Modra <amodra@gmail.com>
7888
7889 PR 25993
7890 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7891 bfd_set_filename.
7892 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7893 passed to bfd_set_filename.
7894 * symfile-mem.c (add_vsyscall_page): Likewise for string
7895 passed to symbol_file_add_from_memory.
7896 (symbol_file_add_from_memory): Make name param a const char* and
7897 don't strdup.
7898
c7e97679
AM
78992020-05-20 Alan Modra <amodra@gmail.com>
7900
7901 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7902 rather than accessing bfd->filename directly.
7903 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7904 and use bfd_section_name.
7905 * dwarf2/frame.c (decode_frame_entry): Likewise.
7906 * exec.c (exec_set_section_address): Likewise.
7907 * solib-aix.c (solib_aix_bfd_open): Likewise.
7908 * stap-probe.c (get_stap_base_address): Likewise.
7909 * symfile.c (reread_symbols): Likewise.
7910
563c591b
TT
79112020-05-19 Tom Tromey <tromey@adacore.com>
7912
7913 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7914
f408d82c
SM
79152020-05-19 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7918
98c59b52
PA
79192020-05-19 Pedro Alves <palves@redhat.com>
7920
7921 * NEWS (set exec-file-mismatch): Adjust entry.
7922 * exec.c: Include "build-id.h".
7923 (validate_exec_file): Try to match build IDs instead of filenames.
7924 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7925 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7926 and pass down 'warn_if_slow'.
7927 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7928 gdb_bfd_open_closure to pass it down.
7929 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7930
4111f652
PA
79312020-05-19 Pedro Alves <palves@redhat.com>
7932
7933 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7934 * target.c (target_fileio_open_1): Rename to target_fileio_open
7935 and make extern. Use bool.
7936 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7937 (target_fileio_read_alloc_1): Adjust.
7938 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7939 (target_fileio_open_warn_if_slow): Delete declaration.
7940
ad80db5b
PA
79412020-05-19 Pedro Alves <palves@redhat.com>
7942
7943 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7944 Adjust all callers.
7945
1d6ce4d3
YS
79462020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7947
7948 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7949 whether disp is negative.
7950
9005fbbb
SM
79512020-05-19 Simon Marchi <simon.marchi@efficios.com>
7952
7953 * symfile.h (struct symfile_segment_data)
7954 <~symfile_segment_data>: Remove.
7955 <segment_info>: Change to std::vector.
7956 * symfile.c (default_symfile_segments): Update.
7957 * elfread.c (elf_symfile_segments): Update.
7958
68b888ff
SM
79592020-05-19 Simon Marchi <simon.marchi@efficios.com>
7960
7961 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7962 <segments>: New.
7963 <segment_bases, segment_sizes>: Remove.
7964 * symfile.c (default_symfile_segments): Update.
7965 * elfread.c (elf_symfile_segments): Update.
7966 * remote.c (remote_target::get_offsets): Update.
7967 * solib-target.c (solib_target_relocate_section_addresses):
7968 Update.
7969
62982abd
SM
79702020-05-19 Simon Marchi <simon.marchi@efficios.com>
7971
7972 * symfile.h (struct symfile_segment_data): Initialize fields.
7973 <~symfile_segment_data>: Add.
7974 (symfile_segment_data_up): New.
7975 (struct sym_fns) <sym_segments>: Return a
7976 symfile_segment_data_up.
7977 (default_symfile_segments): Return a symfile_segment_data_up.
7978 (free_symfile_segment_data): Remove.
7979 (get_symfile_segment_data): Return a symfile_segment_data_up.
7980 * symfile.c (default_symfile_segments): Likewise.
7981 (get_symfile_segment_data): Likewise.
7982 (free_symfile_segment_data): Remove.
7983 (symfile_find_segment_sections): Update.
7984 * elfread.c (elf_symfile_segments): Return a
7985 symfile_segment_data_up.
7986 * remote.c (remote_target::get_offsets): Update.
7987 * solib-target.c (solib_target_relocate_section_addresses):
7988 Update.
7989 * symfile-debug.c (debug_sym_segments): Return a
7990 symfile_segment_data_up.
7991
7f204339
RO
79922020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7993
e52a0f1b
RO
7994 PR build/25981
7995 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7996 Hardcode register numbers.
7997
7f204339
RO
7998 PR build/25981
7999 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8000 procfs_find_LDT_entry): Remove.
8001 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8002 procfs_find_LDT_entry): Remove.
8003 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8004 Remove.
8005
7f32a4d5
PA
80062020-05-17 Pedro Alves <palves@redhat.com>
8007 Andrew Burgess <andrew.burgess@embecosm.com>
8008 Keno Fischer <keno@juliacomputing.com>
8009
8010 PR gdb/25741
8011 * breakpoint.c (build_target_condition_list): Update comments.
8012 (build_target_command_list): Update comments and skip matching
8013 locations.
8014 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8015 a separate function. Simplify "set breakpoint auto-hw off"
8016 handling.
8017 (insert_breakpoints): Update comment.
8018 (tracepoint_locations_match): New parameter. For breakpoints,
8019 compare location types too, if the caller wants to.
8020 (handle_automatic_hardware_breakpoints): New functions.
8021 (bp_location_is_less_than): Also sort by location type and
8022 hardware breakpoint length.
8023 (update_global_location_list): Handle "set breakpoint auto-hw on"
8024 here.
8025 (update_breakpoint_locations): Ask breakpoint_locations_match to
8026 ignore location types.
8027
7d93a1e0
SM
80282020-05-16 Simon Marchi <simon.marchi@efficios.com>
8029
8030 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8031 type::name instead.
8032
d0e39ea2
SM
80332020-05-16 Simon Marchi <simon.marchi@efficios.com>
8034
8035 * gdbtypes.h (struct type) <name, set_name>: New methods.
8036 (TYPE_CODE): Use type::name. Change all call sites used to set
8037 the name to use type::set_name instead.
8038
2dab0c7b
TT
80392020-05-16 Tom Tromey <tom@tromey.com>
8040
8041 * top.c (quit_force): Update.
8042 * infrun.c (handle_no_resumed): Update.
8043 * top.h (all_uis): New function.
8044 (ALL_UIS): Remove.
8045
59f7bd8d
SM
80462020-05-16 Simon Marchi <simon.marchi@efficios.com>
8047
8048 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8049
9bf058f0
PA
80502020-05-16 Pedro Alves <palves@redhat.com>
8051
8052 * ia64-linux-nat.c
8053 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8054 Declare method.
8055 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8056
8f86ae1a
SM
80572020-05-15 Simon Marchi <simon.marchi@efficios.com>
8058
8059 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8060 (sparc64_adi_info): Likewise.
8061
d6bc0792
TT
80622020-05-15 Tom Tromey <tom@tromey.com>
8063
8064 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8065 block_objfile.
8066 (lookup_objfile_from_block): Remove.
8067 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8068 (lookup_global_symbol): Use block_objfile.
8069 * symtab.h (lookup_objfile_from_block): Don't declare.
8070 * printcmd.c (clear_dangling_display_expressions): Use
8071 block_objfile.
8072 * parse.c (operator_check_standard): Use block_objfile.
8073
8c14c3a3
TT
80742020-05-15 Tom Tromey <tom@tromey.com>
8075
8076 * language.c (language_alloc_type_symbol): Set
8077 SYMBOL_SECTION.
8078 * symtab.c (initialize_objfile_symbol): Remove.
8079 (allocate_symbol): Remove.
8080 (allocate_template_symbol): Remove.
8081 * dwarf2/read.c (fixup_go_packaging): Use "new".
8082 (new_symbol): Use "new".
8083 (read_variable): Don't call initialize_objfile_symbol. Use
8084 "new".
8085 (read_func_scope): Use "new".
8086 * xcoffread.c (process_xcoff_symbol): Don't call
8087 initialize_objfile_symbol.
8088 (SYMBOL_DUP): Remove.
8089 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8090 "new".
8091 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8092 (allocate_template_symbol): Don't declare.
8093 (struct symbol): Add copy constructor. Change defaults.
8094 * jit.c (finalize_symtab): Use "new".
8095 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8096 Use "new".
8097 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8098 (common_block_end): Use "new".
8099 * mdebugread.c (parse_symbol): Use "new".
8100 (new_symbol): Likewise.
8101
5b4a1a8d
PW
81022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8103
8104 * NEWS: Mention changes to help and apropos.
8105
57b4f16e
PW
81062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8107
8108 * command.h (enum command_class): Improve comments, document
8109 that class_alias is for user-defined aliases, give the class
8110 name for each class, remove unused class_xdb.
8111 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8112 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8113 by a precise class.
8114 * infcmd.c (_initialize_infcmd): Likewise.
8115 * reverse.c (_initialize_reverse): Likewise.
8116 * stack.c (_initialize_stack): Likewise.
8117 * symfile.c (_initialize_symfile): Likewise.
8118 * tracepoint.c (_initialize_tracepoint): Likewise.
8119
7c05caf7
PW
81202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8121
8122 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8123 when their aliased command is traversed.
8124 (help_cmd): Add fput_command_names_styled call to
8125 output command name and aliases when command has an alias.
8126
3b3aaacb
PW
81272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8128
8129 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8130 * cli/cli-decode.c (help_cmd_list): Declare as static,
8131 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8132 a command together with the command.
8133 (fput_command_name_styled, fput_command_names_styled): New functions.
8134 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8135 fput_command_name_styled.
8136 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8137 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8138
7aa1b46f
PW
81392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8140
8141 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8142 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8143 * command.h (cmd_show_list): Likewise.
8144 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8145 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8146
89bcba74
PW
81472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8148
8149 * unittests/command-def-selftests.c (traverse_command_structure):
8150 Verify all commands of a list have the same prefix command and
8151 that only the top cmdlist commands have a null prefix.
8152
3f4d92eb
PW
81532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8154
8155 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8156 as prefix, not one of its aliases.
8157 (set_cmd_prefix): Remove.
8158 (do_add_cmd): Centralize the setting of the prefix of a command, when
8159 command is defined after its full chain of prefix commands.
8160 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8161 (add_setshow_cmd_full): Likewise.
8162 (update_prefix_field_of_prefixed_commands): New function.
8163 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8164 update_prefix_field_of_prefixed_commands.
8165 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8166 addresses of remote_set_cmdlist and remote_show_cmdlist given
8167 as argument, not the address of an argument.
8168 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8169 * gdb/remote.c (_initialize_remote): Likewise.
8170
0605465f
PW
81712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8172
8173 * cli/cli-cmds.c (alias_command): Check for an existing alias
8174 using lookup_cmd_composition, as valid_command_p is too strict
8175 and forbids aliases that are the prefix of an existing alias
8176 or command.
8177 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8178 command is properly recognised as a valid command.
8179
58e6ac70
PW
81802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8181
8182 * unittests/help-doc-selftests.c: Rename to
8183 unittests/command-def-selftests.c
8184 * unittests/command-def-selftests.c (help_doc_tests): Update some
8185 comments.
8186 (command_structure_tests, traverse_command_structure): New namespace
8187 and function.
8188 (command_structure_invariants_tests): New function.
8189 (_initialize_command_def_selftests) Renamed from
8190 _initialize_help_doc_selftests, register command_structure_invariants
8191 selftest.
8192
a7b9ceb8
PW
81932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8194
8195 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8196 an alias of 'show'.
8197
b2188a06
JB
81982020-05-15 Joel Brobecker <brobecker@adacore.com>
8199
8200 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8201 ada_is_fixed_point_type. Update all callers.
8202 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8203 all callers.
8204 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8205 Update all callers.
8206 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8207 print_fixed_point_type. Update all callers.
8208 * ada-valprint.c (ada_value_print_num): Replace call to
8209 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8210
a51951c2
KB
82112020-05-14 Kevin Buettner <kevinb@redhat.com>
8212
8213 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8214 processors.
8215 (cpu_supports_bts): Add CV_AMD case.
8216
29d6859f
LM
82172020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8218 Simon Marchi <simon.marchi@efficios.com>
8219
8220 * infrun.c (stop_all_threads): Collect multiple wait events at
8221 each pass.
8222
78134374
SM
82232020-05-14 Simon Marchi <simon.marchi@efficios.com>
8224
8225 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8226 type::code instead.
8227
67607e24
SM
82282020-05-14 Simon Marchi <simon.marchi@efficios.com>
8229
8230 * gdbtypes.h (struct type) <code, set_code>: New methods.
8231 (TYPE_CODE): Use type::code. Change all call sites used to set
8232 the code to use type::set_code instead.
8233
a05575d3
TBA
82342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8235 Tom de Vries <tdevries@suse.de>
8236 Pedro Alves <palves@redhat.com>
8237
8238 PR threads/25478
8239 * infrun.c (stop_all_threads): Do NOT ignore
8240 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8241 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8242 received.
8243 (handle_no_resumed): Remove code handling a live inferior with no
8244 threads.
8245 * remote.c (has_single_non_exited_thread): New.
8246 (remote_target::update_thread_list): Do not delete a thread if is
8247 the last thread of the process.
8248 * thread.c (thread_select): Call delete_exited_threads instead of
8249 prune_threads.
8250
6ad82919
TBA
82512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8252
8253 * infrun.c (stop_all_threads): Enable/disable thread events of all
8254 targets. Move a debug message denoting the end of the function
8255 into the SCOPED_EXIT block.
8256
d890404b
TBA
82572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8258
8259 * process-stratum-target.h: Include <set>.
8260 (all_non_exited_process_targets, switch_to_target_no_thread): New
8261 function declarations.
8262 * process-stratum-target.c (all_non_exited_process_targets)
8263 (switch_to_target_no_thread): New function implementations.
8264
293b3ebc
TBA
82652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8266
8267 * infrun.c (handle_inferior_event): Extract out a piece of code
8268 into...
8269 (mark_non_executing_threads): ...this new function.
8270
7ca9b62a
TBA
82712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8272
8273 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8274 use.
8275
fc75c28b
TBA
82762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8277
8278 * regcache.c (regcache_read_pc_protected): New function
8279 implementation that returns 0 if the PC cannot read via
8280 'regcache_read_pc'.
8281 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8282 instead of 'regcache_read_pc'.
8283 (keep_going_pass_signal): Ditto.
8284
a89febbd
TT
82852020-05-13 Tom Tromey <tromey@adacore.com>
8286
8287 * ada-lang.c (align_value): Remove.
8288 (ada_template_to_fixed_record_type_1): Use align_up.
8289
f7e23710
TBA
82902020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8291
8292 * async-event.c: Update the copyright year.
8293 * async-event.h: Update the copyright year.
8294
02ff80c2
SM
82952020-05-12 Simon Marchi <simon.marchi@efficios.com>
8296
8297 * objfiles.h (is_addr_in_objfile,
8298 shared_objfile_contains_address_p): Return bool.
8299 * objfile.c (is_addr_in_objfile,
8300 shared_objfile_contains_address_p): Return bool.
8301
4fd6c7e8
TT
83022020-05-11 Tom Tromey <tromey@adacore.com>
8303
8304 * cli/cli-cmds.c (info_command): Restore.
8305 (_initialize_cli_cmds): Use add_prefix_command for "info".
8306 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8307
5eb68a39
TT
83082020-05-11 Tom Tromey <tromey@adacore.com>
8309
8310 * ada-lang.c (ada_value_primitive_field): Now public.
8311 * ada-lang.h (ada_value_primitive_field): Declare.
8312 * ada-valprint.c (print_field_values): Use
8313 ada_value_primitive_field for wrapper fields.
8314
7666722f
TV
83152020-05-11 Tom de Vries <tdevries@suse.de>
8316
8317 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8318 MODULE_DOMAIN.
8319
3ee6bb11
TV
83202020-05-11 Tom de Vries <tdevries@suse.de>
8321
8322 PR symtab/25941
8323 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8324 with length 0, if not gdb-produced.
8325 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8326
43434996
TV
83272020-05-09 Tom de Vries <tdevries@suse.de>
8328
8329 PR gdb/25955
8330 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8331 calculation.
8332
2f78cffc
TT
83332020-05-09 Tom Tromey <tom@tromey.com>
8334
8335 * top.c (server_command): Now bool.
8336 * top.h (server_command): Now bool.
8337
4f7bc5ed
TT
83382020-05-08 Tom Tromey <tromey@adacore.com>
8339
8340 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8341 already being processed.
8342
8be4b118
TT
83432020-05-08 Tom Tromey <tom@tromey.com>
8344
8345 * printcmd.c (struct display) <next>: Remove.
8346 <display>: New constructor.
8347 <exp_string>: Now a std::string.
8348 <enabled_p>: Now a bool.
8349 (display_number): Move definition earlier.
8350 (displays): Rename from display_chain. Now a std::vector.
8351 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8352 (display_command): Update.
8353 (do_one_display, disable_display)
8354 (enable_disable_display_command, do_enable_disable_display):
8355 Update.
8356 (free_display): Remove.
8357 (clear_displays): Rewrite.
8358 (delete_display): Update.
8359 (map_display_numbers): Use function_view. Remove "data"
8360 parameter. Update.
8361 (do_delete_display): Remove.
8362 (undisplay_command): Update.
8363 (do_one_display, do_displays, disable_display)
8364 (info_display_command): Update.
8365 (do_enable_disable_display): Remove.
8366 (enable_disable_display_command)
8367 (clear_dangling_display_expressions): Update.
8368
94c93c35
TT
83692020-05-08 Tom Tromey <tom@tromey.com>
8370
8371 * symtab.c (set_symbol_cache_size)
8372 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8373 (maintenance_print_symbol_cache_statistics): Update.
8374 * symmisc.c (print_symbol_bcache_statistics)
8375 (print_objfile_statistics, maintenance_print_objfiles)
8376 (maintenance_info_symtabs, maintenance_check_symtabs)
8377 (maintenance_expand_symtabs, maintenance_info_line_tables):
8378 Update.
8379 * symfile-debug.c (set_debug_symfile): Update.
8380 * source.c (forget_cached_source_info): Update.
8381 * python/python.c (gdbpy_progspaces): Update.
8382 * psymtab.c (maintenance_info_psymtabs): Update.
8383 * probe.c (parse_probes): Update.
8384 * linespec.c (iterate_over_all_matching_symtabs)
8385 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8386 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8387 * exec.c (exec_target::close): Update.
8388 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8389 * breakpoint.c (print_one_breakpoint_location)
8390 (create_longjmp_master_breakpoint)
8391 (create_std_terminate_master_breakpoint): Update.
8392 * progspace.c (program_spaces): Now a std::vector.
8393 (maybe_new_address_space): Update.
8394 (add_program_space): Remove.
8395 (program_space::program_space): Update.
8396 (remove_program_space): Update.
8397 (number_of_program_spaces): Remove.
8398 (print_program_space, update_address_spaces): Update.
8399 * progspace.h (program_spaces): Change type.
8400 (ALL_PSPACES): Remove.
8401 (number_of_program_spaces): Don't declare.
8402 (struct program_space) <next>: Remove.
8403
a1fd1ac9
TT
84042020-05-08 Tom Tromey <tom@tromey.com>
8405
8406 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8407 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8408 (enable_break): Update.
8409 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8410 (frv_fdpic_find_canonical_descriptor): Update.
8411 (frv_fetch_objfile_link_map): Update.
8412 * progspace.c (program_space::free_all_objfiles): Update.
8413 (program_space::solibs): New method.
8414 * progspace.h (struct program_space) <solibs>: New method.
8415 * solist.h (master_so_list): Don't declare.
8416 (ALL_SO_LIBS): Remove.
8417 * solib.h (so_list_head): Remove.
8418 (update_solib_list): Update comment.
8419 * solib.c (master_so_list): Remove.
8420 (solib_used, update_solib_list, solib_add)
8421 (info_sharedlibrary_command, clear_solib)
8422 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8423
38eae084
TT
84242020-05-08 Tom Tromey <tom@tromey.com>
8425
8426 * extension.c (extension_languages): Now a std::array.
8427 (ALL_EXTENSION_LANGUAGES): Remove.
8428 (get_ext_lang_defn, get_ext_lang_of_file)
8429 (eval_ext_lang_from_control_command): Update.
8430 (finish_ext_lang_initialization)
8431 (auto_load_ext_lang_scripts_for_objfile)
8432 (ext_lang_type_printers::ext_lang_type_printers)
8433 (apply_ext_lang_type_printers)
8434 (ext_lang_type_printers::~ext_lang_type_printers)
8435 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8436 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8437 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8438 (get_matching_xmethod_workers, ext_lang_colorize)
8439 (ext_lang_before_prompt): Update.
8440 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8441
596dc4ad
TT
84422020-05-08 Tom Tromey <tom@tromey.com>
8443
8444 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8445 overload.
8446 <swap_string, m_string>: Remove.
8447 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8448 Update.
8449 * stabsread.c (define_symbol, read_type): Update.
8450 * linespec.c (find_linespec_symbols): Update.
8451 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8452 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8453 * dbxread.c (read_dbx_symtab): Update.
8454 * cp-support.h (cp_canonicalize_string_full)
8455 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8456 Return unique_xmalloc_ptr.
8457 * cp-support.c (inspect_type): Update.
8458 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8459 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8460 Likewise.
8461 * c-typeprint.c (print_name_maybe_canonical): Update.
8462 * break-catch-throw.c (check_status_exception_catchpoint):
8463 Update.
8464
bf4cb9be
TV
84652020-05-08 Tom de Vries <tdevries@suse.de>
8466
8467 * infrun.c (follow_fork): Copy current_line and current_symtab to
8468 child thread.
8469
a1b68f28
SM
84702020-05-07 Simon Marchi <simon.marchi@efficios.com>
8471
8472 * async-event.c (struct async_signal_handler, struct
8473 async_event_handler): Reformat, remove typedef.
8474
98d48915
SM
84752020-05-07 Simon Marchi <simon.marchi@efficios.com>
8476
8477 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8478 access thistype->main_type->dyn_prop_list directly.
8479
7aa91313
SM
84802020-05-07 Simon Marchi <simon.marchi@efficios.com>
8481
8482 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8483 (remove_dyn_prop): Remove. Update all users to use
8484 type::remove_dyn_prop.
8485 * gdbtypes.c (remove_dyn_prop): Rename to...
8486 (type::remove_dyn_prop): ... this.
8487
5c54719c
SM
84882020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8489
8490 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8491 (add_dyn_prop): Remove. Update all users to use
8492 type::add_dyn_prop.
8493 * gdbtypes.c (add_dyn_prop): Rename to...
8494 (type::add_dyn_prop): ... this.
8495
24e99c6c
SM
84962020-05-07 Simon Marchi <simon.marchi@efficios.com>
8497
8498 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8499 (get_dyn_prop): Remove. Update all users to use
8500 type::dyn_prop.
8501 * gdbtypes.c (get_dyn_prop): Rename to...
8502 (type::dyn_prop): ... this.
8503
0d4bf016
SM
85042020-05-06 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8507
ac4a4f1c
SM
85082020-05-06 Simon Marchi <simon.marchi@efficios.com>
8509
8510 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8511 instruction, skip it if it's there.
8512
a3bbacc1
SM
85132020-05-05 Simon Marchi <simon.marchi@efficios.com>
8514
8515 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8516
c3236f84
SM
85172020-05-04 Simon Marchi <simon.marchi@efficios.com>
8518
8519 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8520 * gdbtypes.c (recursive_dump_type): Remove use of
8521 TYPE_INCOMPLETE.
8522
3b6acaee
TT
85232020-05-03 Tom Tromey <tom@tromey.com>
8524
8525 * breakpoint.c (catch_command, tcatch_command): Remove.
8526 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8527 add_show_prefix_cmd.
8528 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8529 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8530 Remove.
8531 (add_internal_problem_command): Use add_basic_prefix_cmd,
8532 add_show_prefix_cmd.
8533 * mips-tdep.c (set_mipsfpu_command): Remove.
8534 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8535 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8536 (_initialize_index_cache): Use add_basic_prefix_cmd.
8537 * memattr.c (dummy_cmd): Remove.
8538 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8539 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8540 (_initialize_tui_win): Use add_basic_prefix_cmd,
8541 add_show_prefix_cmd.
8542 * cli/cli-logging.c (set_logging_command): Remove.
8543 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8544 add_show_prefix_cmd.
8545 (show_logging_command): Remove.
8546 * target.c (target_command): Remove.
8547 (add_target): Use add_basic_prefix_cmd.
8548
a51119cd
HD
85492020-05-02 Hannes Domani <ssbssa@yahoo.de>
8550
8551 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8552
652fc23a 85532020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8554
652fc23a
PW
8555 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8556 info_command.
8557
117539e6
KR
85582020-04-30 Kamil Rytarowski <n54@gmx.com>
8559
8560 * nbsd-nat.c (nbsd_enable_proc_events)
8561 (nbsd_nat_target::post_startup_inferior): Add.
8562 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8563 (nbsd_nat_target::update_thread_list): Rewrite.
8564 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8565 "PTRACE_LWP_CREATE".
8566 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8567
102e38eb 85682020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8569
102e38eb
PW
8570 * stack.c (_initialize_stack): Remove duplicated creation
8571 of "frame" command and "f" alias.
8572
ee9d1e5f
HD
85732020-04-30 Hannes Domani <ssbssa@yahoo.de>
8574
8575 PR gdb/18706
8576 * gdbtypes.c (check_typedef): Calculate size of array of
8577 stubbed type.
8578
627c7fb8
HD
85792020-04-30 Hannes Domani <ssbssa@yahoo.de>
8580
8581 PR gdb/15559
8582 * i386-tdep.c (i386_push_dummy_call): Call
8583 i386_thiscall_push_dummy_call.
8584 (i386_thiscall_push_dummy_call): New function.
8585 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8586 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8587 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8588
ffc2844e
SM
85892020-04-29 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * gdbarch.sh (do_read): Add shellcheck disable directive for
8592 warning SC2162.
8593
1207375d
SM
85942020-04-29 Simon Marchi <simon.marchi@efficios.com>
8595
8596 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8597 "referenced but not assigned" warning.
8598
9fdb2916
SM
85992020-04-29 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * gdbarch.sh: Remove code that sets fallbackdefault.
8602
759cea5e
SM
86032020-04-29 Simon Marchi <simon.marchi@efficios.com>
8604
8605 * gdbarch.sh: Use shell operators && and || instead of
8606 -a and -o.
8607
cb02ab24
SM
86082020-04-29 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * gdbarch.sh: Use $(...) instead of `...`.
8611
a6fc5ffc
SM
86122020-04-29 Simon Marchi <simon.marchi@efficios.com>
8613
8614 * gdbarch.sh: Use double quotes around variables.
8615
8d113d13
SM
86162020-04-29 Simon Marchi <simon.marchi@efficios.com>
8617
8618 * gdbarch.sh: Use %s with printf, instead of variables in the
8619 format string.
8620
ed6acedd
TT
86212020-04-29 Tom Tromey <tromey@adacore.com>
8622
8623 PR ada/25875:
8624 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8625 type fields here.
8626 (read_enumeration_type): Call
8627 update_enumeration_type_from_children later. Update comments.
8628 (process_enumeration_scope): Don't create type fields.
8629
b68b1b58
KR
86302020-04-29 Kamil Rytarowski <n54@gmx.com>
8631
8632 * nbsd-tdep.c: Include "xml-syscall.h".
8633 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8634
f94b2e03
KR
86352020-04-29 Kamil Rytarowski <n54@gmx.com>
8636
8637 * nbsd-nat.c: Include "sys/wait.h".
8638 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8639 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8640 (nbsd_nat_target::remove_exec_catchpoint)
8641 (nbsd_nat_target::set_syscall_catchpoint): Add.
8642 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8643 (nbsd_nat_target::insert_exec_catchpoint)
8644 (nbsd_nat_target::remove_exec_catchpoint)
8645 (nbsd_nat_target::set_syscall_catchpoint): Add.
8646 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8647 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8648 `nbsd_get_syscall_number'.
8649
fc49bc72
TT
86502020-04-29 Tom Tromey <tom@tromey.com>
8651
8652 * stack.c (print_block_frame_labels): Remove.
8653
d642b692
HD
86542020-04-29 Hannes Domani <ssbssa@yahoo.de>
8655
8656 PR gdb/17320
8657 * ada-valprint.c (val_print_packed_array_elements): Move array
8658 end bracket to new line.
8659 (ada_val_print_string): Remove extra spaces before first array
8660 element.
8661 * c-valprint.c (c_value_print_array): Likewise.
8662 * m2-valprint.c (m2_print_array_contents): Likewise.
8663 (m2_value_print_inner): Likewise.
8664 * p-valprint.c (pascal_value_print_inner): Likewise.
8665 * valprint.c (generic_val_print_array): Likewise.
8666 (value_print_array_elements): Move first array element and array
8667 end bracket to new line.
8668
ea90f227
TV
86692020-04-29 Tom de Vries <tdevries@suse.de>
8670
8671 PR symtab/25889
8672 * linespec.c (find_method): Fix ix calculation.
8673
4498ef4f
KR
86742020-04-28 Kamil Rytarowski <n54@gmx.com>
8675
8676 * syscalls/update-netbsd.sh: New file.
8677 * syscalls/netbsd.xml: Regenerate.
8678 * data-directory/Makefile.in: Register `netbsd.xml' in
8679 `SYSCALLS_FILES'.
8680
a55e30b5
SM
86812020-04-28 Simon Marchi <simon.marchi@efficios.com>
8682
8683 * syscalls/update-freebsd.sh: Add double quotes.
8684
2b2fbab8
TT
86852020-04-28 Tom Tromey <tom@tromey.com>
8686
8687 * NEWS: Update.
8688 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8689 (cmdpy_init): Allow class_tui.
8690
a65189c9
TV
86912020-04-28 Mark Williams <mark@myosotissp.com>
8692
8693 PR gdb/24480
8694 * dwarf2read.c: Add missing assingments to list_in_scope when
8695 start_symtab was already called.
8696
1b95cdb7
SM
86972020-04-28 Simon Marchi <simon.marchi@efficios.com>
8698
8699 PR gdb/25881
8700 * dwarf2/read.c (offset_map_type): Use
8701 gdb:hash_enum<sect_offset> as hash function.
8702
15cd93d0
TV
87032020-04-28 Tom de Vries <tdevries@suse.de>
8704
8705 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8706 with DW_AT_signature.
8707
1eb39914
SM
87082020-04-27 Simon Marchi <simon.marchi@efficios.com>
8709
8710 * configure.ac: Remove check for fs_base/gs_base in
8711 user_regs_struct.
8712 * configure: Re-generate.
8713 * config.in: Re-generate.
8714 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8715 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8716 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8717
991a3e2e
LM
87182020-04-27 Luis Machado <luis.machado@linaro.org>
8719
8720 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8721 problematic inline frame unwinding situation.
8722 * frame.c (frame_id_computed_p): New function.
8723 * frame.h (frame_id_computed_p): New prototype.
8724
361ba0e8
TT
87252020-04-26 Tom Tromey <tom@tromey.com>
8726
8727 * command.h (enum command_class) <class_pseudo>: Remove.
8728
bc3609fd
PW
87292020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8730
8731 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8732 and whitespace.
8733
b9771db7
KR
87342020-04-25 Kamil Rytarowski <n54@gmx.com>
8735
ec16513e
SM
8736 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8737 `PT_GET_PROCESS_STATE' block.
b9771db7 8738
7151c1af
TT
87392020-04-24 Tom Tromey <tom@tromey.com>
8740
8741 * symtab.h (symbol_get_demangled_name): Don't declare.
8742 * symtab.c (symbol_get_demangled_name): Remove.
8743 (general_symbol_info::natural_name)
8744 (general_symbol_info::demangled_name): Update.
8745
906bb4c5
TT
87462020-04-24 Tom Tromey <tom@tromey.com>
8747
8748 PR rust/25025:
8749 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8750
bcfe6157
TT
87512020-04-24 Tom Tromey <tom@tromey.com>
8752
8753 PR symtab/12707:
8754 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8755 exists.
8756 (new_symbol): Likewise.
8757 * compile/compile-object-load.c (get_out_value_type): Use
8758 symbol_matches_search_name.
8759
f049a313
TT
87602020-04-24 Tom Tromey <tom@tromey.com>
8761
8762 * dwarf2/read.c (add_partial_symbol): Do not call
8763 compute_and_set_names.
8764
76e288d1
TT
87652020-04-24 Tom Tromey <tom@tromey.com>
8766
8767 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8768 overload.
8769
2467f4f6
TT
87702020-04-24 Tom Tromey <tom@tromey.com>
8771
8772 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8773 (add_psymbol_to_list): New overload. Make old overload call new
8774 one.
8775 * psympriv.h (add_psymbol_to_list): New overload.
8776
e61108c9
TT
87772020-04-24 Tom Tromey <tom@tromey.com>
8778
8779 * dwarf2/read.c (partial_die_info::read) <case
8780 DW_AT_linkage_name>: Use value_as_string.
8781 (dwarf2_string_attr): Use value_as_string.
8782 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8783 method.
8784 * dwarf2/attribute.c (attribute::value_as_string): New method.
8785
8c87a452
TT
87862020-04-24 Tom Tromey <tom@tromey.com>
8787
8788 * symtab.c (general_symbol_info::natural_name)
8789 (general_symbol_info::demangled_name): Check for language_rust.
8790
787de330
TT
87912020-04-24 Tom Tromey <tom@tromey.com>
8792
8793 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8794 (dwarf2_physname): ... from here.
8795 (partial_die_info::read): Add Rust "{" hack.
8796
ff985671
TT
87972020-04-24 Tom Tromey <tom@tromey.com>
8798
8799 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8800 method.
8801 (symbol_set_demangled_name): Don't declare.
8802 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8803 symbol_set_demangled_name.
8804 (general_symbol_info::set_language)
8805 (general_symbol_info::compute_and_set_names): Update.
8806 * minsyms.c (minimal_symbol_reader::install): Update.
8807 * dwarf2/read.c (new_symbol): Update.
8808
1acda803
TT
88092020-04-24 Tom Tromey <tromey@adacore.com>
8810
8811 PR python/23662:
8812 * python/py-type.c (convert_field): Handle
8813 FIELD_LOC_KIND_DWARF_BLOCK.
8814 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8815 (typy_get_dynamic): Nw function.
8816 (type_object_getset): Add "dynamic".
8817 * NEWS: Add entry.
8818
d656f129
TT
88192020-04-24 Tom Tromey <tromey@adacore.com>
8820
8821 * ada-typeprint.c (print_choices, print_variant_part)
8822 (print_record_field_types_dynamic): New functions.
8823 (print_record_field_types): Use print_record_field_types_dynamic.
8824
7d79de9a
TT
88252020-04-24 Tom Tromey <tromey@adacore.com>
8826
8827 * dwarf2/read.c (handle_data_member_location): New overload.
8828 (dwarf2_add_field): Use it.
8829 (decode_locdesc): Add "computed" parameter. Update comment.
8830 * gdbtypes.c (is_dynamic_type_internal): Also look for
8831 FIELD_LOC_KIND_DWARF_BLOCK.
8832 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8833 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8834 virtual base classes.
8835 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8836 FIELD_LOC_KIND_DWARF_BLOCK.
8837
f8e89861
TT
88382020-04-24 Tom Tromey <tromey@adacore.com>
8839
8840 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8841 * gdbtypes.c (is_dynamic_type_internal): Check
8842 TYPE_HAS_DYNAMIC_LENGTH.
8843 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8844 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8845 New macros.
8846 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8847 constant.
8848
9c6a1327
TT
88492020-04-24 Tom Tromey <tromey@adacore.com>
8850
8851 * dwarf2/read.c (struct variant_field): Rewrite.
8852 (struct variant_part_builder): New.
8853 (struct nextfield): Remove "variant" field. Add "offset".
8854 (struct field_info): Add "current_variant_part" and
8855 "variant_parts".
8856 (alloc_discriminant_info): Remove.
8857 (alloc_rust_variant): New function.
8858 (quirk_rust_enum): Update.
8859 (dwarf2_add_field): Set "offset" member. Don't handle
8860 DW_TAG_variant_part.
8861 (offset_map_type): New typedef.
8862 (convert_variant_range, create_one_variant)
8863 (create_one_variant_part, create_variant_parts)
8864 (add_variant_property): New functions.
8865 (dwarf2_attach_fields_to_type): Call add_variant_property.
8866 (read_structure_type): Don't handle DW_TAG_variant_part.
8867 (handle_variant_part, handle_variant): New functions.
8868 (handle_struct_member_die): Use them.
8869 (process_structure_scope): Don't handle variant parts.
8870 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8871 (struct discriminant_info): Remove.
8872 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8873 (struct main_type) <flag_discriminated_union>: Remove.
8874 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8875 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8876 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8877 Update.
8878 * valops.c (value_union_variant): Remove.
8879 * value.h (value_union_variant): Don't declare.
8880
b249d2c2
TT
88812020-04-24 Tom Tromey <tromey@adacore.com>
8882
8883 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8884 (ada_value_primitive_packed_val): Update.
8885 * ada-valprint.c (ada_value_print_1): Update.
8886 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8887 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8888 just an address. Use evaluate_for_locexpr_baton.
8889 (dwarf2_evaluate_property): Update.
8890 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8891 array_view.
8892 * findvar.c (default_read_var_value): Update.
8893 * gdbtypes.c (compute_variant_fields_inner)
8894 (resolve_dynamic_type_internal): Update.
8895 (resolve_dynamic_type): Change type of valaddr parameter.
8896 * gdbtypes.h (resolve_dynamic_type): Update.
8897 * valarith.c (value_subscripted_rvalue): Update.
8898 * value.c (value_from_contents_and_address): Update.
8899
61122aa9
TT
89002020-04-24 Tom Tromey <tromey@adacore.com>
8901
8902 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8903 "push_initial_value" parameter.
8904 (dwarf2_evaluate_property): Likewise.
8905 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8906
ef83a141
TT
89072020-04-24 Tom Tromey <tromey@adacore.com>
8908
8909 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8910 (variant::matches, compute_variant_fields_recurse)
8911 (compute_variant_fields_inner, compute_variant_fields): New
8912 functions.
8913 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8914 Use resolved_type after type is made.
8915 (operator==): Add new cases.
8916 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8917 (struct discriminant_range, struct variant, struct variant_part):
8918 New.
8919 (union dynamic_prop_data) <variant_parts, original_type>: New
8920 members.
8921 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8922 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8923 constants.
8924 * value.c (unpack_bits_as_long): Now public.
8925 * value.h (unpack_bits_as_long): Declare.
8926
675127ec
TT
89272020-04-24 Tom Tromey <tromey@adacore.com>
8928
8929 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8930 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8931
9852ceef
HD
89322020-04-24 Hannes Domani <ssbssa@yahoo.de>
8933
8934 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8935
7632c6ce
KR
89362020-04-24 Kamil Rytarowski <n54@gmx.com>
8937
8938 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8939 (remove_fork_catchpoint, post_startup_inferior)
8940 (post_attach): Move...
8941 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8942 (remove_fork_catchpoint, post_startup_inferior)
8943 (post_attach): ...here.
8944 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8945 (remove_fork_catchpoint, post_startup_inferior)
8946 (post_attach): Move...
8947 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8948 (remove_fork_catchpoint, post_startup_inferior)
8949 (post_attach): ...here.
8950
7be2bb4f
TT
89512020-04-24 Tom Tromey <tromey@adacore.com>
8952
8953 * nat/windows-nat.h (struct windows_thread_info)
8954 <pc_adjusted>: New member.
8955 * windows-nat.c (windows_fetch_one_register): Check
8956 pc_adjusted.
8957 (windows_nat_target::get_windows_debug_event)
8958 (windows_nat_target::wait): Set pc_adjusted.
8959
f80cb3b4
TV
89602020-04-24 Tom de Vries <tdevries@suse.de>
8961
8962 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8963 Run gdb-add-index inside temp dir.
8964
29514b87
TT
89652020-04-23 Tom Tromey <tromey@adacore.com>
8966
8967 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8968 in loop.
8969
5939967b
LM
89702020-04-23 Luis Machado <luis.machado@linaro.org>
8971
8972 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8973 get_frame_register instead of gdbarch_unwind_pc.
8974
70bc38f5
TV
89752020-04-23 Tom de Vries <tdevries@suse.de>
8976
8977 * symtab.c (lookup_global_symbol): Prefer def over decl.
8978
de82891c
TV
89792020-04-23 Tom de Vries <tdevries@suse.de>
8980
8981 PR symtab/25807
8982 * block.c (best_symbol, better_symbol): Promote to external.
8983 * block.h (best_symbol, better_symbol): Declare.
8984 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8985 decl.
8986
ecc6c606
TT
89872020-04-23 Tom Tromey <tromey@adacore.com>
8988
8989 PR ada/25837:
8990 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8991 "const char *", not a "const std::string &".
8992 <name_and_matcher::operator==>: Update.
8993 * unittests/lookup_name_info-selftests.c: Change type of
8994 "result".
8995
740480b8
TT
89962020-04-23 Tom Tromey <tom@tromey.com>
8997
8998 * inferior.h (iterate_over_inferiors): Don't declare.
8999 * inferior.c (iterate_over_inferiors): Remove.
9000 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9001 Remove.
9002 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9003 use iterate_over_inferiors.
9004 (darwin_resume_inferior_it)
9005 (struct resume_inferior_threads_param)
9006 (darwin_resume_inferior_threads_it): Remove.
9007 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9008
ae3ab1f0
TV
90092020-04-23 Tom de Vries <tdevries@suse.de>
9010
9011 * blockframe.c (find_pc_partial_function): Use
9012 find_pc_sect_compunit_symtab rather than
9013 objfile->sf->qf->find_pc_sect_compunit_symtab.
9014
317d2668
TV
90152020-04-22 Tom de Vries <tdevries@suse.de>
9016
9017 PR symtab/25764
9018 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9019 in psymtabs.
9020
eea9e357
TV
90212020-04-22 Tom de Vries <tdevries@suse.de>
9022
9023 PR symtab/25801
9024 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9025 symtabs.
9026
3d5afab3
TV
90272020-04-22 Tom de Vries <tdevries@suse.de>
9028
9029 PR symtab/25700
9030 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9031 CU if already created.
9032
d43b7a2d
TBA
90332020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9034
9035 * infrun.c (displaced_step_fixup): Switch to the event_thread
9036 before calling displaced_step_restore, not after.
9037
d89edf9b
MM
90382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9039
9040 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9041 its inferior is not recorded by us.
9042 (record_btrace_target_open): Replace call to
9043 all_non_exited_threads () with call to current_inferior
9044 ()->non_exited_threads ().
9045 (record_btrace_target::stop_recording): Likewise.
9046 (record_btrace_target::close): Likewise.
9047 (record_btrace_target::wait): Likewise.
9048 (record_btrace_target::record_stop_replaying): Likewise.
9049
5897fd49
MM
90502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9051
9052 * btrace.c (btrace_enable): Throw an error on double enables and
9053 when enabling recording fails.
9054 (btrace_disable): Throw an error if the thread is not recorded.
9055
1a476b6d
MM
90562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9057
9058 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9059 request if we do not have a thread_info.
9060
4778a5f8
TV
90612020-04-21 Tom de Vries <tdevries@suse.de>
9062
9063 PR gdb/25471
9064 * thread.c
9065 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9066 exception in get_frame_id.
9067
0fa7617d
TT
90682020-04-20 Tom Tromey <tromey@adacore.com>
9069
9070 * python/python.c (struct gdbpy_event): Mark move constructor as
9071 noexcept.
9072 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9073 constructor as noexcept.
9074 * completer.h (struct completion_result): Mark move constructor as
9075 noexcept.
9076 * completer.c (completion_result::completion_result): Use
9077 initialization style. Don't call reset_match_list.
9078
ad23bda0
MS
90792020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9080
9081 * MAINTAINERS (Write After Approval): Add myself.
9082
45e1f031
TT
90832020-04-18 Tom Tromey <tom@tromey.com>
9084
9085 * windows-tdep.c (init_w32_command_list)
9086 (w32_prefix_command_valid): Restore.
9087 (_initialize_windows_tdep): Call init_w32_command_list.
9088
08feed99
TT
90892020-04-18 Tom Tromey <tom@tromey.com>
9090
9091 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9092 * value.c (value_fn_field): Update.
9093 * valops.c (find_function_in_inferior)
9094 (value_allocate_space_in_inferior): Update.
9095 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9096 Update.
9097 * tui/tui-source.c (tui_source_window::set_contents): Update.
9098 * symtab.c (lookup_global_or_static_symbol)
9099 (find_function_start_sal_1, skip_prologue_sal)
9100 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9101 * symmisc.c (dump_msymbols, dump_symtab_1)
9102 (maintenance_print_one_line_table): Update.
9103 * symfile.c (init_entry_point_info, section_is_mapped)
9104 (list_overlays_command, simple_read_overlay_table)
9105 (simple_overlay_update_1): Update.
9106 * stap-probe.c (handle_stap_probe): Update.
9107 * stabsread.c (dbx_init_float_type, define_symbol)
9108 (read_one_struct_field, read_enum_type, read_range_type): Update.
9109 * source.c (info_line_command): Update.
9110 * python/python.c (gdbpy_source_objfile_script)
9111 (gdbpy_execute_objfile_script): Update.
9112 * python/py-type.c (save_objfile_types): Update.
9113 * python/py-objfile.c (py_free_objfile): Update.
9114 * python/py-inferior.c (python_new_objfile): Update.
9115 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9116 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9117 (maintenance_check_psymtabs): Update.
9118 * printcmd.c (info_address_command): Update.
9119 * objfiles.h (struct objfile) <arch>: New method, from
9120 get_objfile_arch.
9121 (get_objfile_arch): Don't declare.
9122 * objfiles.c (get_objfile_arch): Remove.
9123 (filter_overlapping_sections): Update.
9124 * minsyms.c (msymbol_is_function): Update.
9125 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9126 (output_nondebug_symbol): Update.
9127 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9128 (mdebug_expand_psymtab): Update.
9129 * machoread.c (macho_add_oso_symfile): Update.
9130 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9131 Update.
9132 * linux-fork.c (checkpoint_command): Update.
9133 * linespec.c (convert_linespec_to_sals): Update.
9134 * jit.c (finalize_symtab): Update.
9135 * infrun.c (insert_exception_resume_from_probe): Update.
9136 * ia64-tdep.c (ia64_find_unwind_table): Update.
9137 * hppa-tdep.c (internalize_unwinds): Update.
9138 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9139 Update.
9140 * gcore.c (call_target_sbrk): Update.
9141 * elfread.c (record_minimal_symbol, elf_symtab_read)
9142 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9143 (elf_gnu_ifunc_resolve_by_got): Update.
9144 * dwarf2/read.c (create_addrmap_from_index)
9145 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9146 (read_debug_names_from_section)
9147 (process_psymtab_comp_unit_reader, add_partial_symbol)
9148 (add_partial_subprogram, process_full_comp_unit)
9149 (read_file_scope, read_func_scope, read_lexical_block_scope)
9150 (read_call_site_scope, dwarf2_ranges_read)
9151 (dwarf2_record_block_ranges, dwarf2_add_field)
9152 (mark_common_block_symbol_computed, read_tag_pointer_type)
9153 (read_tag_string_type, dwarf2_init_float_type)
9154 (dwarf2_init_complex_target_type, read_base_type)
9155 (partial_die_info::read, partial_die_info::read)
9156 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9157 (dwarf2_fetch_die_loc_sect_off): Update.
9158 * dwarf2/loc.c (dwarf2_find_location_expression)
9159 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9160 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9161 (dwarf2_loc_desc_get_symbol_read_needs)
9162 (locexpr_describe_location_piece, locexpr_describe_location_1)
9163 (loclist_describe_location): Update.
9164 * dwarf2/index-write.c (write_debug_names): Update.
9165 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9166 * dtrace-probe.c (dtrace_process_dof): Update.
9167 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9168 (process_one_symbol): Update.
9169 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9170 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9171 (coff_read_enum_type): Update.
9172 * cli/cli-cmds.c (edit_command, list_command): Update.
9173 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9174 * breakpoint.c (create_overlay_event_breakpoint)
9175 (create_longjmp_master_breakpoint)
9176 (create_std_terminate_master_breakpoint)
9177 (create_exception_master_breakpoint, get_sal_arch): Update.
9178 * block.c (block_gdbarch): Update.
9179 * annotate.c (annotate_source_line): Update.
9180
0743fc83
TT
91812020-04-17 Tom Tromey <tromey@adacore.com>
9182
9183 * auto-load.c (show_auto_load_cmd): Remove.
9184 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9185 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9186 (maintenance_print_arc_command): Remove.
9187 * tui/tui-win.c (tui_command): Remove.
9188 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9189 * tui/tui-layout.c (tui_layout_command): Remove.
9190 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9191 * python/python.c (user_set_python, user_show_python): Remove.
9192 (_initialize_python): Use add_basic_prefix_cmd,
9193 add_show_prefix_cmd.
9194 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9195 (install_gdb_commands): Use add_basic_prefix_cmd,
9196 add_show_prefix_cmd.
9197 (info_guile_command): Remove.
9198 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9199 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9200 add_show_prefix_cmd.
9201 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9202 Remove do_set and do_show parameters.
9203 * cli/cli-style.c (set_style, show_style): Remove.
9204 (_initialize_cli_style): Use add_basic_prefix_cmd,
9205 add_show_prefix_cmd.
9206 (cli_style_option::add_setshow_commands): Remove do_set and
9207 do_show parameters.
9208 (cli_style_option::add_setshow_commands): Use
9209 add_basic_prefix_cmd, add_show_prefix_cmd.
9210 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9211 (set_style_name): Remove.
9212 * cli/cli-dump.c (dump_command, append_command): Remove.
9213 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9214 (tekhex_dump_command, binary_dump_command)
9215 (binary_append_command): Remove.
9216 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9217 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9218 (init_w32_command_list): Remove; move into ...
9219 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9220 * valprint.c (set_print, show_print, set_print_raw)
9221 (show_print_raw): Remove.
9222 (_initialize_valprint): Use add_basic_prefix_cmd,
9223 add_show_prefix_cmd.
9224 * typeprint.c (set_print_type, show_print_type): Remove.
9225 (_initialize_typeprint): Use add_basic_prefix_cmd,
9226 add_show_prefix_cmd.
9227 * record.c (set_record_command, show_record_command): Remove.
9228 (_initialize_record): Use add_basic_prefix_cmd,
9229 add_show_prefix_cmd.
9230 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9231 add_show_prefix_cmd.
9232 (info_command, show_command, set_debug, show_debug): Remove.
9233 * top.h (set_history, show_history): Don't declare.
9234 * top.c (set_history, show_history): Remove.
9235 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9236 (unset_tdesc_cmd): Remove.
9237 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9238 add_show_prefix_cmd.
9239 * symtab.c (info_module_command): Remove.
9240 (_initialize_symtab): Use add_basic_prefix_cmd.
9241 * symfile.c (overlay_command): Remove.
9242 (_initialize_symfile): Use add_basic_prefix_cmd.
9243 * sparc64-tdep.c (info_adi_command): Remove.
9244 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9245 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9246 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9247 add_show_prefix_cmd.
9248 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9249 (_initialize_serial): Use add_basic_prefix_cmd,
9250 add_show_prefix_cmd.
9251 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9252 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9253 add_show_prefix_cmd.
9254 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9255 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9256 add_show_prefix_cmd.
9257 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9258 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9259 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9260 add_show_prefix_cmd.
9261 * remote.c (remote_command, set_remote_cmd): Remove.
9262 (_initialize_remote): Use add_basic_prefix_cmd.
9263 * record-full.c (set_record_full_command)
9264 (show_record_full_command): Remove.
9265 (_initialize_record_full): Use add_basic_prefix_cmd,
9266 add_show_prefix_cmd.
9267 * record-btrace.c (cmd_set_record_btrace)
9268 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9269 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9270 (cmd_show_record_btrace_pt): Remove.
9271 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9272 add_show_prefix_cmd.
9273 * ravenscar-thread.c (set_ravenscar_command)
9274 (show_ravenscar_command): Remove.
9275 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9276 add_show_prefix_cmd.
9277 * mips-tdep.c (show_mips_command, set_mips_command)
9278 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9279 add_show_prefix_cmd.
9280 * maint.c (maintenance_command, maintenance_info_command)
9281 (maintenance_check_command, maintenance_print_command)
9282 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9283 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9284 add_show_prefix_cmd.
9285 (show_per_command_cmd): Remove.
9286 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9287 Remove.
9288 (maintenance_show_test_settings_cmd): Remove.
9289 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9290 add_show_prefix_cmd.
9291 * maint-test-options.c (maintenance_test_options_command):
9292 Remove.
9293 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9294 * macrocmd.c (macro_command): Remove
9295 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9296 * language.c (set_check, show_check): Remove.
9297 (_initialize_language): Use add_basic_prefix_cmd,
9298 add_show_prefix_cmd.
9299 * infcmd.c (unset_command): Remove.
9300 (_initialize_infcmd): Use add_basic_prefix_cmd.
9301 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9302 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9303 add_show_prefix_cmd.
9304 * go32-nat.c (go32_info_dos_command): Remove.
9305 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9306 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9307 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9308 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9309 (_initialize_frame): Use add_basic_prefix_cmd,
9310 add_show_prefix_cmd.
9311 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9312 (_initialize_dcache): Use add_basic_prefix_cmd,
9313 add_show_prefix_cmd.
9314 * cp-support.c (maint_cplus_command): Remove.
9315 (_initialize_cp_support): Use add_basic_prefix_cmd.
9316 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9317 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9318 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9319 add_basic_prefix_cmd, add_show_prefix_cmd.
9320 * breakpoint.c (save_command): Remove.
9321 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9322 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9323 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9324 add_show_prefix_cmd.
9325 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9326 (set_ada_command, show_ada_command): Remove.
9327 (_initialize_ada_language): Use add_basic_prefix_cmd,
9328 add_show_prefix_cmd.
9329 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9330
3557f442
KR
93312020-04-16 Kamil Rytarowski <n54@gmx.com>
9332
9333 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9334 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9335
16197208
SM
93362020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9337
9338 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9339 warning messages.
9340
00ac85d3
SM
93412020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9342
9343 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9344 import table is not at beginning of .idata section.
9345
381ce63f
PA
93462020-04-16 Pedro Alves <palves@redhat.com>
9347
9348 * inferior.c (delete_inferior): Use delete operator directly
9349 instead of delete_program_space.
9350 * progspace.c (add_program_space): New, factored out from
9351 program_space::program_space.
9352 (remove_program_space): New, factored out from
9353 delete_program_space.
9354 (program_space::program_space): Remove intro comment. Rewrite.
9355 (program_space::~program_space): Remove intro comment. Call
9356 remove_program_space.
9357 (delete_program_space): Delete.
9358 * progspace.h (program_space::program_space): Make explicit. Move
9359 intro comment here, adjusted.
9360 (program_space::~program_space): Move intro comment here,
9361 adjusted.
9362 (delete_program_space): Remove.
9363
a010605f
TT
93642020-04-16 Tom Tromey <tromey@adacore.com>
9365
9366 * windows-nat.c (windows_nat::handle_access_violation): New
9367 function.
9368 * nat/windows-nat.h (handle_access_violation): Declare.
9369 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9370 windows-nat.c. Call handle_access_violation.
9371
efba5c23
TV
93722020-04-16 Tom de Vries <tdevries@suse.de>
9373
9374 PR symtab/25791
9375 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9376 CUs without psymtab.
9377
97ed802d
KB
93782020-04-16 Kevin Buettner <kevinb@redhat.com>
9379
9380 * python/python.c (do_start_initialization): Don't call
9381 PyEval_InitThreads for Python 3.9 and beyond.
9382
c7d64809
KR
93832020-04-15 Kamil Rytarowski <n54@gmx.com>
9384
9385 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9386 thread functions.
9387 (obsd_nat_target::wait): Likewise.
9388
ce127a96
TT
93892020-04-15 Tom Tromey <tromey@adacore.com>
9390
9391 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9392 (DEBUG_EXCEPT): Use debug_printf.
9393
99f1bc6a
AB
93942020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9395
9396 * completer.c (class completion_tracker::completion_hash_entry)
9397 <hash_name>: New member function.
9398 (completion_tracker::discard_completions): New callback to hash a
9399 completion_hash_entry, pass this to htab_create_alloc.
9400
a0e9b532
JT
94012016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9402
9403 * windows-nat.c (windows_make_so): Warn rather than stopping with
9404 an error if realpath() fails.
9405
06ca5dd4
KR
94062020-04-14 Kamil Rytarowski <n54@gmx.com>
9407
9408 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9409 (nbsd_nat_target::info_proc): Add do_status.
9410
194d088f
TV
94112020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9412 Tom de Vries <tdevries@suse.de>
9413
9414 PR symtab/25718
9415 * psympriv.h (struct partial_symtab::read_symtab)
9416 (struct partial_symtab::expand_psymtab)
9417 (struct partial_symtab::read_dependencies): Update comments.
9418 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9419 read_symtab for includer.
9420 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9421 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9422 (struct dwarf2_include_psymtab::m_readin): Remove.
9423 (struct dwarf2_include_psymtab::includer): New member function.
9424 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9425
c1a66c06
TV
94262020-04-14 Tom de Vries <tdevries@suse.de>
9427
9428 PR symtab/25720
9429 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9430 with NULL symbol_matcher and lookup_name.
9431 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9432 and lookup_name.
9433 * dwarf2/read.c (dw2_expand_symtabs_matching)
9434 (dw2_debug_names_expand_symtabs_matching): Same.
9435 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9436 Make lookup_name a pointer. Update comment.
9437 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9438 lookup_name being a pointer.
9439 * symfile.c (expand_symtabs_matching): Same.
9440 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9441 * linespec.c (iterate_over_all_matching_symtabs): Same.
9442
400b5eca
TT
94432020-04-13 Tom Tromey <tom@tromey.com>
9444
9445 * run-on-main-thread.c: Update include.
9446 * unittests/main-thread-selftests.c: Update include.
9447 * tui/tui-win.c: Update include.
9448 * tui/tui-io.c: Update include.
9449 * tui/tui-interp.c: Update include.
9450 * tui/tui-hooks.c: Update include.
9451 * top.h: Update include.
9452 * top.c: Update include.
9453 * ser-base.c: Update include.
9454 * remote.c: Update include.
9455 * remote-notif.c: Update include.
9456 * remote-fileio.c: Update include.
9457 * record-full.c: Update include.
9458 * record-btrace.c: Update include.
9459 * python/python.c: Update include.
9460 * posix-hdep.c: Update include.
9461 * mingw-hdep.c: Update include.
9462 * mi/mi-main.c: Update include.
9463 * mi/mi-interp.c: Update include.
9464 * main.c: Update include.
9465 * linux-nat.c: Update include.
9466 * interps.c: Update include.
9467 * infrun.c: Update include.
9468 * inf-loop.c: Update include.
9469 * event-top.c: Update include.
9470 * event-loop.c: Move to ../gdbsupport/.
9471 * event-loop.h: Move to ../gdbsupport/.
9472 * async-event.h: Update include.
9473 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9474
93b54c8e
TT
94752020-04-13 Tom Tromey <tom@tromey.com>
9476
9477 * tui/tui-win.c: Include async-event.h.
9478 * remote.c: Include async-event.h.
9479 * remote-notif.c: Include async-event.h.
9480 * record-full.c: Include async-event.h.
9481 * record-btrace.c: Include async-event.h.
9482 * infrun.c: Include async-event.h.
9483 * event-top.c: Include async-event.h.
9484 * event-loop.h: Move some declarations to async-event.h.
9485 * event-loop.c: Don't include ser-event.h or top.h. Move some
9486 code to async-event.c.
9487 * async-event.h: New file.
9488 * async-event.c: New file.
9489 * Makefile.in (COMMON_SFILES): Add async-event.c.
9490 (HFILES_NO_SRCDIR): Add async-event.h.
9491
c1cd3163
TT
94922020-04-13 Tom Tromey <tom@tromey.com>
9493
9494 * utils.c (flush_streams): New function.
9495 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9496
29f2bf4f
TT
94972020-04-13 Tom Tromey <tom@tromey.com>
9498
9499 * event-loop.c (handle_file_event): Use warning, not
9500 printf_unfiltered.
9501
98029d02
TT
95022020-04-13 Tom Tromey <tom@tromey.com>
9503
9504 * event-loop.c: Include <chrono>.
9505
06cc9596
TT
95062020-04-13 Tom Tromey <tom@tromey.com>
9507
9508 * gdb_select.h: Move to ../gdbsupport/.
9509 * event-loop.c: Update include path.
9510 * top.c: Update include path.
9511 * ser-base.c: Update include path.
9512 * ui-file.c: Update include path.
9513 * ser-tcp.c: Update include path.
9514 * guile/scm-ports.c: Update include path.
9515 * posix-hdep.c: Update include path.
9516 * ser-unix.c: Update include path.
9517 * gdb_usleep.c: Update include path.
9518 * mingw-hdep.c: Update include path.
9519 * inflow.c: Update include path.
9520 * infrun.c: Update include path.
9521 * event-top.c: Update include path.
9522
8ae8e197
TT
95232020-04-13 Tom Tromey <tom@tromey.com>
9524
9525 * configure: Rebuild.
9526 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9527
58cf28e8
TT
95282020-04-13 Tom Tromey <tom@tromey.com>
9529
9530 * event-loop.h (start_event_loop): Don't declare.
9531 * event-loop.c (start_event_loop): Move...
9532 * main.c (start_event_loop): ...here. Now static.
9533
b7f999ae
SDJ
95342020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9535
9536 * MAINTAINERS: Update my email address.
9537
1085dfd4
KR
95382020-04-12 Kamil Rytarowski <n54@gmx.com>
9539
9540 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9541 IP_ALL.
9542
49d1d1f5
KR
95432020-04-12 Kamil Rytarowski <n54@gmx.com>
9544
9545 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9546 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9547
b4848d2a
KR
95482020-04-12 Kamil Rytarowski <n54@gmx.com>
9549
9550 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9551 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9552
51c133d5
KR
95532020-04-12 Kamil Rytarowski <n54@gmx.com>
9554
9555 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9556
54b8cbd0
KR
95572020-04-11 Kamil Rytarowski <n54@gmx.com>
9558
9559 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9560 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9561 (nbsd_nat_target::info_proc): New functions.
9562 * nbsd-nat.c (kinfo_get_vmmap): New function.
9563 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9564 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9565 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9566 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9567 functions.
9568 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9569 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9570 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9571 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9572 (KINFO_VME_FLAG_GROWS_DOWN): New.
9573
cf83625d
AS
95742020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9575
9576 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9577 bit shift.
9578
0c4311ab
TT
95792020-04-10 Tom Tromey <tromey@adacore.com>
9580
9581 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9582
3e65b3e9
TT
95832020-04-10 Tom Tromey <tromey@adacore.com>
9584
9585 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9586 separate debug files.
9587
13302e95
HD
95882020-04-10 Hannes Domani <ssbssa@yahoo.de>
9589
9590 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9591 Move to...
9592 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9593 ... here.
9594 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9595 Check for STATUS_WX86_BREAKPOINT.
9596 (windows_nat_target::wait): Same.
9597
bdfc1e8a
TV
95982020-04-10 Tom de Vries <tdevries@suse.de>
9599
9600 PR cli/25808
9601 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9602
f4460aec
SM
96032020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9604
9605 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9606 (Write After Approval): Remove Tom de Vries.
9607
a25198bb
BE
96082020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9609
9610 revert partially:
9611 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9612
aac66a4c
SM
9613 * buildsym.c (record_line): Fix undefined behavior and preserve
9614 lines at eof.
a25198bb 9615
206c98a6
KR
96162020-04-09 Kamil Rytarowski <n54@gmx.com>
9617
9618 * auxv.h (svr4_auxv_parse): New.
9619 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9620 and generic_auxv_parse.
9621 (svr4_auxv_parse): Add.
9622 * obsd-tdep.c: Include "auxv.h".
9623 (obsd_auxv_parse): Remove.
9624 (obsd_init_abi): Remove comment.
9625 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9626 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9627 * nbsd-tdep.c: Include "auxv.h".
9628 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9629
71fbdbaf
TT
96302020-04-08 Tom Tromey <tromey@adacore.com>
9631
9632 * nat/windows-nat.h (last_wait_event): Don't declare.
9633 (wait_for_debug_event): Update comment.
9634 * nat/windows-nat.c (last_wait_event): Now static.
9635
2c1d95e8
TT
96362020-04-08 Tom Tromey <tromey@adacore.com>
9637
9638 * windows-nat.c (wait_for_debug_event): Move to
9639 nat/windows-nat.c.
9640 * nat/windows-nat.h (wait_for_debug_event): Declare.
9641 * nat/windows-nat.c (wait_for_debug_event): Move from
9642 windows-nat.c. No longer static.
9643
d2977bc4
TT
96442020-04-08 Tom Tromey <tromey@adacore.com>
9645
9646 * windows-nat.c (get_windows_debug_event): Use
9647 fetch_pending_stop.
9648 * nat/windows-nat.h (fetch_pending_stop): Declare.
9649 * nat/windows-nat.c (fetch_pending_stop): New function.
9650
e758e19c
TT
96512020-04-08 Tom Tromey <tromey@adacore.com>
9652
9653 * windows-nat.c (windows_continue): Use matching_pending_stop and
9654 continue_last_debug_event.
9655 * nat/windows-nat.h (matching_pending_stop)
9656 (continue_last_debug_event): Declare.
9657 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9658 (matching_pending_stop, continue_last_debug_event): New
9659 functions.
9660
8d30e395
TT
96612020-04-08 Tom Tromey <tromey@adacore.com>
9662
9663 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9664 (handle_exception_result): Move to nat/windows-nat.h.
9665 (DEBUG_EXCEPTION_SIMPLE): Remove.
9666 (windows_nat::handle_ms_vc_exception): New function.
9667 (handle_exception): Move to nat/windows-nat.c.
9668 (get_windows_debug_event): Update.
9669 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9670 nat/windows-nat.c.
9671 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9672 (handle_exception_result): Move from windows-nat.c.
9673 (handle_exception): Declare.
9674 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9675 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9676 windows-nat.c.
9677
29de418d
TT
96782020-04-08 Tom Tromey <tromey@adacore.com>
9679
9680 * windows-nat.c (exception_count, event_count): Remove.
9681 (handle_exception, get_windows_debug_event)
9682 (do_initial_windows_stuff): Update.
9683
a816ba18
TT
96842020-04-08 Tom Tromey <tromey@adacore.com>
9685
9686 * windows-nat.c (windows_nat::handle_load_dll)
9687 (windows_nat::handle_unload_dll): Rename. No longer static.
9688 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9689 Declare.
9690
a00caa12
TT
96912020-04-08 Tom Tromey <tromey@adacore.com>
9692
9693 * complaints.h (stop_whining): Declare at top-level.
9694 (complaint): Don't declare stop_whining.
9695
d41b524f
TT
96962020-04-08 Tom Tromey <tromey@adacore.com>
9697
9698 * windows-nat.c (windows_nat::handle_output_debug_string):
9699 Rename. No longer static.
9700 * nat/windows-nat.h (handle_output_debug_string): Declare.
9701
3c76026d
TT
97022020-04-08 Tom Tromey <tromey@adacore.com>
9703
9704 * windows-nat.c (current_process_handle, current_process_id)
9705 (main_thread_id, last_sig, current_event, last_wait_event)
9706 (current_windows_thread, desired_stop_thread_id, pending_stops)
9707 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9708 (display_selectors, fake_create_process)
9709 (get_windows_debug_event): Update.
9710 * nat/windows-nat.h (current_process_handle, current_process_id)
9711 (main_thread_id, last_sig, current_event, last_wait_event)
9712 (current_windows_thread, desired_stop_thread_id, pending_stops)
9713 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9714 * nat/windows-nat.c (current_process_handle, current_process_id)
9715 (main_thread_id, last_sig, current_event, last_wait_event)
9716 (current_windows_thread, desired_stop_thread_id, pending_stops)
9717 (siginfo_er): New globals. Move from windows-nat.c.
9718
9d8679cc
TT
97192020-04-08 Tom Tromey <tromey@adacore.com>
9720
9721 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9722 (handle_load_dll): Update.
9723 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9724
28688adf
TT
97252020-04-08 Tom Tromey <tromey@adacore.com>
9726
9727 * windows-nat.c (enum thread_disposition_type): Move to
9728 nat/windows-nat.h.
9729 (windows_nat::thread_rec): Rename from thread_rec. No longer
9730 static.
9731 (windows_add_thread, windows_nat_target::fetch_registers)
9732 (windows_nat_target::store_registers, handle_exception)
9733 (windows_nat_target::resume, get_windows_debug_event)
9734 (windows_nat_target::get_tib_address)
9735 (windows_nat_target::thread_name)
9736 (windows_nat_target::thread_alive): Update.
9737 * nat/windows-nat.h (enum thread_disposition_type): Move from
9738 windows-nat.c.
9739 (thread_rec): Declare.
9740
4834dad0
TT
97412020-04-08 Tom Tromey <tromey@adacore.com>
9742
9743 * windows-nat.c: Add "using namespace".
9744 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9745 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9746
65bafd5b
TT
97472020-04-08 Tom Tromey <tromey@adacore.com>
9748
9749 * nat/windows-nat.h (struct windows_thread_info): Declare
9750 destructor.
9751 * nat/windows-nat.c (~windows_thread_info): New.
9752
0a4afda3
TT
97532020-04-08 Tom Tromey <tromey@adacore.com>
9754
9755 PR gdb/22992
9756 * windows-nat.c (current_event): Update comment.
9757 (last_wait_event, desired_stop_thread_id): New globals.
9758 (struct pending_stop): New.
9759 (pending_stops): New global.
9760 (windows_nat_target) <stopped_by_sw_breakpoint>
9761 <supports_stopped_by_sw_breakpoint>: New methods.
9762 (windows_fetch_one_register): Add assertions. Adjust PC.
9763 (windows_continue): Handle pending stops. Suspend other threads
9764 when stepping. Use last_wait_event
9765 (wait_for_debug_event): New function.
9766 (get_windows_debug_event): Use wait_for_debug_event. Handle
9767 pending stops. Queue spurious stops.
9768 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9769 (windows_nat_target::kill): Use wait_for_debug_event.
9770 * nat/windows-nat.h (struct windows_thread_info)
9771 <stopped_at_software_breakpoint>: New field.
9772 * nat/windows-nat.c (windows_thread_info::resume): Clear
9773 stopped_at_software_breakpoint.
9774
8e61ebec
TT
97752020-04-08 Tom Tromey <tromey@adacore.com>
9776
9777 * windows-nat.c (enum thread_disposition_type): New.
9778 (thread_rec): Replace "get_context" parameter with "disposition";
9779 change type.
9780 (windows_add_thread, windows_nat_target::fetch_registers)
9781 (windows_nat_target::store_registers, handle_exception)
9782 (windows_nat_target::resume, get_windows_debug_event)
9783 (windows_nat_target::get_tib_address)
9784 (windows_nat_target::thread_name)
9785 (windows_nat_target::thread_alive): Update.
9786
98a03287
TT
97872020-04-08 Tom Tromey <tromey@adacore.com>
9788
9789 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9790 (windows_continue): Use windows_continue::resume.
9791 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9792 resume>: Declare new methods.
9793 * nat/windows-nat.c: New file.
9794 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9795
7c7411bc
TT
97962020-04-08 Tom Tromey <tromey@adacore.com>
9797
9798 * windows-nat.c (windows_add_thread, windows_delete_thread)
9799 (windows_nat_target::fetch_registers)
9800 (windows_nat_target::store_registers, fake_create_process)
9801 (windows_nat_target::resume, windows_nat_target::resume)
9802 (get_windows_debug_event, windows_nat_target::wait)
9803 (windows_nat_target::pid_to_str)
9804 (windows_nat_target::get_tib_address)
9805 (windows_nat_target::get_ada_task_ptid)
9806 (windows_nat_target::thread_name)
9807 (windows_nat_target::thread_alive): Use lwp, not tid.
9808
2950fdf7
TT
98092020-04-08 Tom Tromey <tromey@adacore.com>
9810
9811 * windows-nat.c (handle_exception)
9812 (windows_nat_target::thread_name): Update.
9813 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9814 <name>: Now unique_xmalloc_ptr.
9815
62fe396b
TT
98162020-04-08 Tom Tromey <tromey@adacore.com>
9817
9818 * windows-nat.c (thread_rec)
9819 (windows_nat_target::fetch_registers): Update.
9820 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9821 Update comment.
9822 <debug_registers_changed, reload_context>: Now bool.
9823
e9534bd2
TT
98242020-04-08 Tom Tromey <tromey@adacore.com>
9825
9826 * windows-nat.c (windows_add_thread): Use new.
9827 (windows_init_thread_list, windows_delete_thread): Use delete.
9828 (get_windows_debug_event): Update.
9829 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9830 destructor, and initializers.
9831
ae1f8880
TT
98322020-04-08 Tom Tromey <tromey@adacore.com>
9833
9834 * windows-nat.c (struct windows_thread_info): Remove.
9835 * nat/windows-nat.h: New file.
9836
55a1e039
TT
98372020-04-08 Tom Tromey <tromey@adacore.com>
9838
9839 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9840 (thread_rec, windows_add_thread, windows_delete_thread)
9841 (windows_continue): Update.
9842
93366324
TT
98432020-04-08 Tom Tromey <tromey@adacore.com>
9844
9845 * windows-nat.c (struct windows_thread_info): Remove typedef.
9846 (thread_head): Remove.
9847 (thread_list): New global.
9848 (thread_rec, windows_add_thread, windows_init_thread_list)
9849 (windows_delete_thread, windows_continue): Update.
9850
0f2265e2
SM
98512020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9852
9853 * windows-tdep.h (windows_init_abi): Add comment.
9854 (cygwin_init_abi): New declaration.
9855 * windows-tdep.c: Split signal enumeration in two, one for
9856 Windows and one for Cygwin.
9857 (windows_gdb_signal_to_target): Only deal with signal of the
9858 Windows OS ABI.
9859 (cygwin_gdb_signal_to_target): New function.
9860 (windows_init_abi): Rename to windows_init_abi_common, don't set
9861 gdb_signal_to_target gdbarch method. Add new new function with
9862 this name.
9863 (cygwin_init_abi): New function.
9864 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9865 comment. Don't call windows_init_abi.
9866 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9867 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9868 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9869 i386_windows_init_abi_common, don't call windows_init_abi. Add
9870 a new function of this name.
9871 (i386_cygwin_init_abi): New function.
9872 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9873 OS ABI Cygwin.
9874
3810f182
SM
98752020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9876
9877 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9878 parameter.c.
9879 (dwarf2_read_gdb_index): Update.
9880
063f8e80
KR
98812020-04-07 Kamil Rytarowski <n54@gmx.com>
9882
9883 * nbsd-tdep.c: Include "objfiles.h".
9884 (nbsd_skip_solib_resolver): New.
9885 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9886
85a9510c 98872020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9888
9889 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9890 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9891 with DW_LLE_base_addressx are being emitted in DWARFv5.
9892 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9893 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9894 unsigned integer.
9895
9fc3eaae 98962020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9897
9898 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9899 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9900 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9901 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9902 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9903 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9904 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9905
9906
41144253 99072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9908
9909 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9910 (read_loclist_index): New function definition.
9911 (lookup_loclist_base): New function definition.
9912 (read_loclist_header): New function definition.
9913 (dwarf2_cu): Add loclist_base and loclist_header field.
9914 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9915 (read_full_die_1): Read the value of DW_AT_loclists_base.
9916 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9917 (read_attribute_value): Handle DW_FORM_loclistx.
9918 (skip_one_die): Handle DW_FORM_loclistx.
9919 (loclist_header): New structure declaration.
9920 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9921
9f4e76a4
SM
99222020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9923
9924 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9925 constructor. Remove `addr` parameter from other constructor and
9926 add `per_cu` parameter.
9927 * dwarf2/read.c (create_partial_symtab): Update.
9928
25c11aca
TV
99292020-04-07 Tom de Vries <tdevries@suse.de>
9930
9931 PR symtab/25796
9932 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9933 (partial_die_info::fixup): Inherit has_const_value.
9934
5707e24b
TV
99352020-04-07 Tom de Vries <tdevries@suse.de>
9936
9937 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9938 symbols without address.
9939
05f00e22
KR
99402020-04-06 Kamil Rytarowski <n54@gmx.com>
9941
9942 * nbsd-nat.h (struct thread_info): Add forward declaration.
9943 (nbsd_nat_target::thread_alive): Add.
9944 (nbsd_nat_target::thread_name): Likewise.
9945 (nbsd_nat_target::update_thread_list): Likewise.
9946 (update_thread_list::post_attach): Likewise.
9947 (post_attach::pid_to_str): Likewise.
9948 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9949 (nbsd_thread_lister): Add.
9950 (nbsd_nat_target::thread_alive): Likewise.
9951 (nbsd_nat_target::thread_name): Likewise.
9952 (nbsd_add_threads): Likewise.
9953 (update_thread_list::post_attach): Likewise.
9954 (nbsd_nat_target::update_thread_list): Likewise.
9955 (post_attach::pid_to_str): Likewise.
9956
6ee448cc
TT
99572020-04-06 Tom Tromey <tromey@adacore.com>
9958
9959 * ada-valprint.c (print_variant_part): Extract the variant field.
9960 (print_field_values): Use the field as the outer value when
9961 recursing.
9962
dea34e8c
TT
99632020-04-06 Tom Tromey <tromey@adacore.com>
9964
9965 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9966 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9967 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9968 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9969 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9970
93689ce9
TT
99712020-04-06 Tom Tromey <tromey@adacore.com>
9972
9973 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9974 TYPE_CODE_ERROR.
9975
79743962
KR
99762020-04-06 Kamil Rytarowski <n54@gmx.com>
9977
9978 * nbsd-tdep.c: Include "gdbarch.h".
9979 Define enum with NetBSD signal numbers.
9980 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9981 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9982 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9983 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9984 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9985 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9986 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9987 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9988 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9989 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9990 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9991 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9992
9e7c9a03
HD
99932020-04-03 Hannes Domani <ssbssa@yahoo.de>
9994
9995 PR gdb/25325
9996 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9997
d9e49b61
TT
99982020-04-03 Tom Tromey <tromey@adacore.com>
9999
10000 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10001 Read constant block.
10002
e0fc5c3f
SM
100032020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10004
10005 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10006 (gdb_bfd_get_full_section_contents): New declaration.
10007 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10008 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10009 gdb_bfd_get_full_section_contents.
10010
e2ff18a0
SM
100112020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10012
10013 * exec.c (build_section_table): Replace internal_error with
10014 gdb_assert.
10015 (section_table_xfer_memory_partial): Likewise.
10016 * mdebugread.c (parse_partial_symbols): Likewise.
10017 * psymtab.c (lookup_partial_symbol): Likewise.
10018 * utils.c (wrap_here): Likewise.
10019
0830d301
TT
100202020-04-02 Tom Tromey <tromey@adacore.com>
10021
10022 * f-lang.c (build_fortran_types): Use arch_type to initialize
10023 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10024
e7da7f8f
TT
100252020-04-02 Tom Tromey <tromey@adacore.com>
10026
10027 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10028 of attributes.
10029
c90d28ac
AB
100302020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10031 Bernd Edlinger <bernd.edlinger@hotmail.de>
10032 Tom Tromey <tromey@adacore.com>
10033
10034 * buildsym.c (buildsym_compunit::record_line): Remove
10035 deduplication code.
10036
1aa98955
TV
100372020-04-02 Tom de Vries <tdevries@suse.de>
10038
10039 PR ada/24671
10040 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10041
d3214198
TV
100422020-04-02 Tom de Vries <tdevries@suse.de>
10043
10044 * dwarf2/read.c (dwarf2_gdb_index_functions,
10045 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10046 NULL.
10047 * psymtab.c (psym_lookup_global_symbol_language): New function.
10048 (psym_functions): Init psym_lookup_global_symbol_language with
10049 psym_lookup_global_symbol_language.
10050 * symfile-debug.c (debug_sym_quick_functions): Init
10051 lookup_global_symbol_language with NULL.
10052 * symfile.c (set_initial_language): Remove fixme comment.
10053 * symfile.h (struct quick_symbol_functions): Add
10054 lookup_global_symbol_language.
10055 * symtab.c (find_quick_global_symbol_language): New function.
10056 (find_main_name): Use find_quick_global_symbol_language.
10057
2836752f
SM
100582020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10059
10060 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10061
64dc2d4b
BE
100622020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10063
10064 * buildsym.c (record_line): Fix undefined behavior and preserve
10065 lines at eof.
10066
bbe3dc41
BE
100672020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10068
10069 * buildsym.c (record_line): Fix the resizing condition.
10070
6b4a335b
TT
100712020-04-01 Tom Tromey <tom@tromey.com>
10072
10073 * value.h (value_literal_complex): Add comment.
10074 * valops.c (value_literal_complex): Refer to value.h.
10075
3638a098
TT
100762020-04-01 Tom Tromey <tom@tromey.com>
10077
10078 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10079 (scalar_type): New rule, from typebase.
10080 (typebase): Use scalar_type. Recognize complex types.
10081 (field_name): Handle FLOAT_KEYWORD.
10082 (ident_tokens): Add _Complex and __complex__.
10083
c34e8714
TT
100842020-04-01 Tom Tromey <tom@tromey.com>
10085
10086 PR exp/25299:
10087 * valarith.c (promotion_type, complex_binop): New functions.
10088 (scalar_binop): Handle complex numbers. Use promotion_type.
10089 (value_pos, value_neg, value_complement): Handle complex numbers.
10090
fa649bb7
TT
100912020-04-01 Tom Tromey <tom@tromey.com>
10092
10093 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10094 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10095 (parse_number): Handle complex numbers.
10096
981c08ce
TT
100972020-04-01 Tom Tromey <tom@tromey.com>
10098
10099 * c-valprint.c (c_decorations): Change complex suffix to "i".
10100
4c99290d
TT
101012020-04-01 Tom Tromey <tom@tromey.com>
10102
10103 * valprint.c (generic_value_print_complex): Use accessors.
10104 * value.h (value_real_part, value_imaginary_part): Declare.
10105 * valops.c (value_real_part, value_imaginary_part): New
10106 functions.
10107 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10108
5b930b45
TT
101092020-04-01 Tom Tromey <tom@tromey.com>
10110
10111 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10112 (read_range_type): Update.
10113 * mdebugread.c (basic_type): Update.
10114 * go-lang.c (build_go_types): Use init_complex_type.
10115 * gdbtypes.h (struct main_type) <complex_type>: New member.
10116 (init_complex_type): Update.
10117 (arch_complex_type): Don't declare.
10118 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10119 Make name if none given. Use alloc_type_copy. Look for cached
10120 complex type.
10121 (arch_complex_type): Remove.
10122 (gdbtypes_post_init): Use init_complex_type.
10123 * f-lang.c (build_fortran_types): Use init_complex_type.
10124 * dwarf2/read.c (read_base_type): Update.
10125 * d-lang.c (build_d_types): Use init_complex_type.
10126 * ctfread.c (read_base_type): Update.
10127
53cccef1
TBA
101282020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10129
10130 * infrun.c (stop_all_threads): Update assertion, plus when
10131 stopping threads, take into account that we might be trying
10132 to stop an all-stop target.
10133 (stop_waiting): Call 'stop_all_threads' if there exists a
10134 non-stop target.
10135
a0714d30
TBA
101362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10137
10138 * target.h (exists_non_stop_target): New function declaration.
10139 * target.c (exists_non_stop_target): New function.
10140
60e22c1e
HD
101412020-04-01 Hannes Domani <ssbssa@yahoo.de>
10142
10143 PR gdb/24789
10144 * eval.c (is_integral_or_integral_reference): New function.
10145 (evaluate_subexp_standard): Allow integer references in
10146 pointer arithmetic.
10147
e139a727
TBA
101482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10149
10150 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10151 check for no ptid in the stop reply when the target is non-stop.
10152
e0802d59
TT
101532020-04-01 Tom Tromey <tromey@adacore.com>
10154
10155 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10156 "name" parameter to rvalue reference. Initialize m_name_holder.
10157 <lookup_name_info>: New overloads.
10158 <name>: Return gdb::string_view.
10159 <c_str>: New method.
10160 <make_ignore_params>: Update.
10161 <search_name_hash>: Update.
10162 <language_lookup_name>: Return const char *.
10163 <m_name>: Change type.
10164 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10165 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10166 (lookup_name_info::match_any): Update.
10167 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10168 Update.
10169 * minsyms.c (linkage_name_str): Update.
10170 * language.c (default_symbol_name_matcher): Update.
10171 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10172 Update.
10173 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10174 (ada_lookup_name_info::ada_lookup_name_info): Update.
10175 (literal_symbol_name_matcher): Update.
10176
8c072cb6
TT
101772020-04-01 Tom Tromey <tromey@adacore.com>
10178
10179 * psymtab.c (psymtab_search_name): Remove function.
10180 (psym_lookup_symbol): Create search name and lookup name here.
10181 (lookup_partial_symbol): Remove "name" parameter; add
10182 lookup_name.
10183 (psym_expand_symtabs_for_function): Update.
10184
6f29a534
TT
101852020-03-31 Joel Jones <joelkevinjones@gmail.com>
10186
10187 PR tui/25597:
10188 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10189
af62665e
TT
101902020-03-31 Tom Tromey <tromey@adacore.com>
10191
10192 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10193 memcpy.
10194
d1a89da5
NC
101952020-03-30 Nelson Chu <nelson.chu@sifive.com>
10196
10197 * features/riscv/32bit-csr.xml: Regenerated.
10198 * features/riscv/64bit-csr.xml: Regenerated.
10199
d8af9068
TT
102002020-03-30 Tom Tromey <tromey@adacore.com>
10201
10202 * ada-valprint.c (print_variant_part): Update.
10203 * ada-lang.h (ada_which_variant_applies): Update.
10204 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10205 outer_valaddr parameters; replace with "outer" value parameter.
10206 (to_fixed_variant_branch_type): Update.
10207
227c0bf4
PFC
102082020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10209
10210 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10211 <list>. Remove inclusion of observable.h.
10212 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10213 (struct arch_lwp_info): New struct.
10214 (class ppc_linux_dreg_interface): New class.
10215 (struct ppc_linux_process_info): New struct.
10216 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10217 <low_new_clone, low_forget_process, low_prepare_to_resume>
10218 <copy_thread_dreg_state, mark_thread_stale>
10219 <mark_debug_registers_changed, register_hw_breakpoint>
10220 <clear_hw_breakpoint, register_wp, clear_wp>
10221 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10222 <num_memory_accesses, get_trigger_type>
10223 <create_watchpoint_request, hwdebug_point_cmp>
10224 <init_arch_lwp_info, get_arch_lwp_info>
10225 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10226 methods.
10227 <struct ptid_hash>: New inner struct.
10228 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10229 members.
10230 (saved_dabr_value, hwdebug_info, max_slots_number)
10231 (struct hw_break_tuple, struct thread_points, ppc_threads)
10232 (have_ptrace_hwdebug_interface)
10233 (hwdebug_find_thread_points_by_tid)
10234 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10235 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10236 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10237 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10238 use m_dreg_interface.
10239 (hwdebug_point_cmp): Change to...
10240 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10241 reference arguments instead of pointers.
10242 (ppc_linux_nat_target::ranged_break_num_registers): Use
10243 m_dreg_interface.
10244 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10245 m_dreg_interface. Call register_hw_breakpoint.
10246 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10247 m_dreg_interface. Call clear_hw_breakpoint.
10248 (get_trigger_type): Change to...
10249 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10250 comment.
10251 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10252 use m_dreg_interface. Call register_hw_breakpoint.
10253 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10254 use m_dreg_interface. Call clear_hw_breakpoint.
10255 (can_use_watchpoint_cond_accel): Change to...
10256 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10257 method. Update comment, use m_dreg_interface and
10258 m_process_info.
10259 (calculate_dvc): Change to...
10260 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10261 m_dreg_interface.
10262 (num_memory_accesses): Change to...
10263 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10264 (check_condition): Change to...
10265 (ppc_linux_nat_target::check_condition): ...this method.
10266 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10267 comment, use m_dreg_interface.
10268 (create_watchpoint_request): Change to...
10269 (ppc_linux_nat_target::create_watchpoint_request): ...this
10270 method. Use m_dreg_interface.
10271 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10272 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10273 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10274 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10275 (ppc_linux_nat_target::low_forget_process)
10276 (ppc_linux_nat_target::low_new_fork)
10277 (ppc_linux_nat_target::low_new_clone)
10278 (ppc_linux_nat_target::low_delete_thread)
10279 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10280 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10281 only call mark_thread_stale.
10282 (ppc_linux_thread_exit): Remove.
10283 (ppc_linux_nat_target::stopped_data_address): Change to...
10284 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10285 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10286 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10287 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10288 comment. Call low_stopped_data_address.
10289 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10290 m_dreg_interface.
10291 (ppc_linux_nat_target::masked_watch_num_registers): Use
10292 m_dreg_interface.
10293 (ppc_linux_nat_target::copy_thread_dreg_state)
10294 (ppc_linux_nat_target::mark_thread_stale)
10295 (ppc_linux_nat_target::mark_debug_registers_changed)
10296 (ppc_linux_nat_target::register_hw_breakpoint)
10297 (ppc_linux_nat_target::clear_hw_breakpoint)
10298 (ppc_linux_nat_target::register_wp)
10299 (ppc_linux_nat_target::clear_wp)
10300 (ppc_linux_nat_target::init_arch_lwp_info)
10301 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10302 (_initialize_ppc_linux_nat): Remove observer callback.
10303
4db10d8f
PFC
103042020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10305
10306 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10307 (ppc_linux_nat_target::auxv_parse)
10308 (ppc_linux_nat_target::read_description)
10309 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10310 Move up.
10311
1310c1b0
PFC
103122020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10313
10314 * linux-nat.h (low_new_clone): New method.
10315 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10316
69b037c3
SM
103172020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10318
10319 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10320 (dbx_expand_psymtab): ... this.
10321 (start_psymtab): Update.
10322 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10323 (mdebug_expand_psymtab): ... this.
10324 (parse_partial_symbols): Update.
10325 (new_psymtab): Update.
10326 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10327 (xcoff_expand_psymtab): ... this.
10328 (xcoff_start_psymtab): Update.
10329
48993951
SM
103302020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10331
10332 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10333 <expand_dependencies>: ... this.
10334 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10335 (partial_symtab::expand_dependencies): ... this.
10336 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10337 Update.
10338 (dwarf2_psymtab::expand_psymtab): Update.
10339 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10340 * mdebugread.c (psymtab_to_symtab_1): Update.
10341 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10342
3ad83046
SM
103432020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10344
10345 * psympriv.h (discard_psymtab): Remove.
10346 * dbxread.c (dbx_end_psymtab): Update.
10347 * xcoffread.c (xcoff_end_psymtab): Update.
10348
4d1b9ab6
TT
103492020-03-28 Tom Tromey <tom@tromey.com>
10350
10351 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10352 comment.
10353
f1749218
TT
103542020-03-28 Tom Tromey <tom@tromey.com>
10355
10356 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10357
ebea7626
HD
103582020-03-27 Hannes Domani <ssbssa@yahoo.de>
10359
10360 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10361
a879b4d5
JB
103622020-03-26 John Baldwin <jhb@FreeBSD.org>
10363
10364 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10365
0826b30a
TT
103662020-03-26 Tom Tromey <tom@tromey.com>
10367
10368 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10369 (mark_common_block_symbol_computed, read_tag_string_type)
10370 (attr_to_dynamic_prop, read_subrange_type): Update.
10371 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10372 to be methods on struct attribute.
10373 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10374 (read_call_site_scope, partial_die_info::read)
10375 (partial_die_info::read, lookup_die_type, follow_die_ref):
10376 Update.
10377 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10378 from dwarf2_get_ref_die_offset.
10379 (attribute::constant_value): New method, from
10380 dwarf2_get_attr_constant_value.
10381 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10382 Declare method.
10383 <constant_value>: New method.
10384
2b2558bf
TT
103852020-03-26 Tom Tromey <tom@tromey.com>
10386
10387 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10388 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10389 (dwarf_type_encoding_name): Move to stringify.c.
10390 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10391 * dwarf2/stringify.c: New file.
10392 * dwarf2/stringify.h: New file.
10393
eeb64781
TT
103942020-03-26 Tom Tromey <tom@tromey.com>
10395
10396 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10397 Rewrite.
10398
a39fdb41
TT
103992020-03-26 Tom Tromey <tom@tromey.com>
10400
10401 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10402 methods.
10403 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10404 (lookup_ranges_base): Likewise.
10405 (read_cutu_die_from_dwo, read_full_die_1): Update.
10406
436c571c
TT
104072020-03-26 Tom Tromey <tom@tromey.com>
10408
10409 * dwarf2/read.c (read_import_statement, read_file_scope)
10410 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10411 (read_lexical_block_scope, read_call_site_scope)
10412 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10413 (handle_struct_member_die, process_structure_scope)
10414 (update_enumeration_type_from_children)
10415 (process_enumeration_scope, read_array_type, read_common_block)
10416 (read_namespace, read_module, read_subroutine_type): Update.
10417 (sibling_die): Remove.
10418
052c8bb8
TT
104192020-03-26 Tom Tromey <tom@tromey.com>
10420
10421 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10422 (build_type_psymtabs_reader, read_structure_type)
10423 (read_enumeration_type, read_full_die_1): Update.
10424 (dwarf2_attr_no_follow): Move to die.h.
10425 * dwarf2/die.h (struct die_info) <attr>: New method.
10426
2b24b6e4
TT
104272020-03-26 Tom Tromey <tom@tromey.com>
10428
10429 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10430 <base_address>: Now an optional.
10431 (dwarf2_find_base_address, dwarf2_rnglists_process)
10432 (dwarf2_ranges_process, fill_in_loclist_baton)
10433 (dwarf2_symbol_mark_computed): Update.
10434
c2d50fd0
TT
104352020-03-26 Tom Tromey <tom@tromey.com>
10436
10437 * dwarf2/read.c (struct die_info): Move to die.h.
10438 * dwarf2/die.h: New file.
10439
0df7ad3a
TT
104402020-03-26 Tom Tromey <tom@tromey.com>
10441
10442 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10443 * dwarf2/read.c
10444 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10445 Move to line-header.c.
10446 (read_checked_initial_length_and_offset, read_formatted_entries):
10447 Likewise.
10448 (dwarf_decode_line_header): Split into two.
10449 * dwarf2/line-header.c
10450 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10451 Move from read.c.
10452 (read_checked_initial_length_and_offset, read_formatted_entries):
10453 Likewise.
10454 (dwarf_decode_line_header): New function, split from read.c.
10455
86c0bb4c
TT
104562020-03-26 Tom Tromey <tom@tromey.com>
10457
10458 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10459 Declare method.
10460 * dwarf2/read.c (read_attribute_value): Update.
10461 (dwarf2_per_objfile::read_line_string): Rename from
10462 read_indirect_line_string.
10463 (read_formatted_entries): Update.
10464
2ef46c2f
TT
104652020-03-26 Tom Tromey <tom@tromey.com>
10466
10467 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10468 variable.
10469
4f9c1eda
TT
104702020-03-26 Tom Tromey <tom@tromey.com>
10471
10472 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10473 const.
10474 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10475 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10476 parameter const.
10477
5a0e026f
TT
104782020-03-26 Tom Tromey <tom@tromey.com>
10479
10480 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10481 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10482 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10483 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10484
8844c11b
TT
104852020-03-26 Tom Tromey <tom@tromey.com>
10486
10487 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10488 file_names_size, file_full_name, file_file_name>: Use const.
10489 <file_name_at, file_names>: Add const overload.
10490 * dwarf2/line-header.c (line_header::file_file_name)
10491 (line_header::file_full_name): Update.
10492
c90ec28a
TT
104932020-03-26 Tom Tromey <tom@tromey.com>
10494
10495 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10496 (macro_start_file, consume_improper_spaces)
10497 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10498 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10499 (dwarf_decode_macros): Move to macro.c.
10500 * dwarf2/macro.c: New file.
10501 * dwarf2/macro.h: New file.
10502 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10503
4f44ae6c
TT
105042020-03-26 Tom Tromey <tom@tromey.com>
10505
10506 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10507 method.
10508 * dwarf2/section.c: New method. From
10509 read_indirect_string_at_offset_from.
10510 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10511 (read_indirect_string_at_offset_from): Move to section.c.
10512 (read_indirect_string_at_offset): Rewrite.
10513 (read_indirect_line_string_at_offset): Remove.
10514 (read_indirect_string, read_indirect_line_string)
10515 (dwarf_decode_macro_bytes): Update.
10516
a0194fa8
TT
105172020-03-26 Tom Tromey <tom@tromey.com>
10518
10519 * dwarf2/section.h (struct dwarf2_section_info)
10520 <overload_complaint>: Declare.
10521 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10522 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10523 Rename from dwarf2_section_buffer_overflow_complaint.
10524 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10525 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10526
3d27bbdb
TT
105272020-03-26 Tom Tromey <tom@tromey.com>
10528
10529 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10530 Declare.
10531 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10532 Move from read.c.
10533 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10534 to section.c.
10535
9eac9650
TT
105362020-03-26 Tom Tromey <tom@tromey.com>
10537
10538 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10539
bf80d710
TT
105402020-03-26 Tom Tromey <tom@tromey.com>
10541
10542 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10543 "builder".
10544 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10545 parameter.
10546 (dwarf_decode_macros): Update.
10547
0314b390
TT
105482020-03-26 Tom Tromey <tom@tromey.com>
10549
10550 * dwarf2/read.c (read_attribute_value): Update.
10551 (read_indirect_string_from_dwz): Move to dwz.c; change into
10552 method.
10553 (dwarf_decode_macro_bytes): Update.
10554 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10555 * dwarf2/dwz.c: New file.
10556 * Makefile.in (COMMON_SFILES): Add dwz.c.
10557
9fda78b6
TT
105582020-03-26 Tom Tromey <tom@tromey.com>
10559
10560 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10561 * dwarf2/read.c: Add include.
10562 * dwarf2/index-write.c: Add include.
10563 * dwarf2/index-cache.c: Add include.
10564 * dwarf2/dwz.h: New file.
10565
33aa3c10
TT
105662020-03-25 Tom Tromey <tom@tromey.com>
10567
10568 * compile/compile-object-load.c (get_out_value_type): Mention
10569 correct symbol name in error message.
10570
d503b685
HD
105712020-03-25 Hannes Domani <ssbssa@yahoo.de>
10572
10573 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10574
7b1eff95
TV
105752020-03-25 Tom de Vries <tdevries@suse.de>
10576
10577 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10578 * symmisc.c (dump_symtab_1): Print user and includes fields.
10579 (maintenance_info_symtabs): Same.
10580
dd895392
AB
105812020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10582
10583 PR gdb/25534
10584 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10585 (riscv_regcache_cooked_write): New function.
10586 (riscv_push_dummy_call): Use new function.
10587 (riscv_return_value): Likewise.
10588
5ab2fbf1
SM
105892020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10590
10591 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10592 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10593 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10594 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10595 * infrun.c (follow_fork): Likewise.
10596 (follow_fork_inferior): Likewise.
10597 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10598 * linux-nat.h (class linux_nat_target): Likewise.
10599 * remote.c (class remote_target) <follow_fork>: Likewise.
10600 (remote_target::follow_fork): Likewise.
10601 * target-delegates.c: Re-generate.
10602 * target.c (default_follow_fork): Likewise.
10603 (target_follow_fork): Likewise.
10604 * target.h (struct target_ops) <follow_fork>: Likewise.
10605 (target_follow_fork): Likewise.
10606
a64fafb5
TV
106072020-03-24 Tom de Vries <tdevries@suse.de>
10608
10609 * psymtab.c (maintenance_info_psymtabs): Print user field.
10610
fe26d3a3
TT
106112020-03-20 Tom Tromey <tromey@adacore.com>
10612
10613 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10614 const.
10615 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10616 const.
10617
c884cc46
SM
106182020-03-20 Simon Marchi <simon.marchi@efficios.com>
10619
10620 * ptrace.m4: Don't check for ptrace declaration.
10621 * config.in: Re-generate.
10622 * configure: Re-generate.
10623 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10624 not defined.
10625
1ff700c2
KR
106262020-03-20 Kamil Rytarowski <n54@gmx.com>
10627
10628 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10629 `PTRACE_TYPE_RET'.
10630 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10631 * sparc-nat.c (gdb_ptrace): Likewise.
10632 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10633
f7d4f0b1
TT
106342020-03-20 Tom Tromey <tromey@adacore.com>
10635
10636 * c-exp.y (lex_one_token): Fix assert.
10637
f67210ff
TT
106382020-03-20 Tom Tromey <tromey@adacore.com>
10639
10640 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10641 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10642 strncpy call.
10643
1773be9e
TT
106442020-03-20 Tom Tromey <tromey@adacore.com>
10645
10646 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10647
70304be9
TT
106482020-03-20 Tom Tromey <tromey@adacore.com>
10649
10650 * ada-valprint.c (print_variant_part): Remove parameters; switch
10651 to value-based API.
10652 (print_field_values): Likewise.
10653 (ada_val_print_struct_union): Likewise.
10654 (ada_value_print_1): Update.
10655
9faa006d
KR
106562020-03-20 Kamil Rytarowski <n54@gmx.com>
10657
10658 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10659 nbsd_nat_target instead of inf_ptrace_target.
10660 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10661 nbsd_nat_target.
10662
4a90f062
KR
106632020-03-20 Kamil Rytarowski <n54@gmx.com>
10664
10665 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10666 it to the ptrace call.
10667 * (store_registers): Likewise.
10668
106692020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10670
10671 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10672 it to the ptrace call.
10673 * (store_registers): Likewise.
10674
2d07da27
LM
106752020-03-19 Luis Machado <luis.machado@linaro.org>
10676
10677 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10678 valid, fetch vg value from ptrace.
10679
f09db380
KR
106802020-03-19 Kamil Rytarowski <n54@gmx.com>
10681 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10682 * inf-ptrace.c: Likewise.
10683 * (gdb_ptrace): Add.
10684 * (inf_ptrace_target::resume): Update.
10685 * (inf_ptrace_target::xfer_partial): Likewise.
10686 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10687 * (inf_ptrace_peek_poke): Update.
10688
fcc7376e
KR
106892020-03-19 Kamil Rytarowski <n54@gmx.com>
10690
10691 * x86-bsd-nat.c (gdb_ptrace): New.
10692 * (x86bsd_dr_set): Add new argument `ptid'.
10693 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10694 x86bsd_dr_set_addr): Update.
10695
cada5fc9
AB
106962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10697
10698 * remote.c (remote_target::process_stop_reply): Handle events for
10699 all threads differently.
10700
19a2740f
AB
107012020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10702
10703 * completer.c (completion_tracker::remove_completion): Define new
10704 function.
10705 * completer.h (completion_tracker::remove_completion): Declare new
10706 function.
10707 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10708 when adding a C++ function symbol.
10709
724fd9ba
AB
107102020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10711
10712 * completer.c (completion_tracker::completion_hash_entry): Define
10713 new class.
10714 (advance_to_filename_complete_word_point): Call
10715 recompute_lowest_common_denominator.
10716 (completion_tracker::completion_tracker): Call discard_completions
10717 to setup the hash table.
10718 (completion_tracker::discard_completions): Allow for being called
10719 from the constructor, pass new equal function, and element deleter
10720 when constructing the hash table. Initialise new class member
10721 variables.
10722 (completion_tracker::maybe_add_completion): Remove use of
10723 m_entries_vec, and store more information into m_entries_hash.
10724 (completion_tracker::recompute_lcd_visitor): New function, most
10725 content taken from...
10726 (completion_tracker::recompute_lowest_common_denominator):
10727 ...here, this now just visits each item in the hash calling the
10728 above visitor.
10729 (completion_tracker::build_completion_result): Remove use of
10730 m_entries_vec, call recompute_lowest_common_denominator.
10731 * completer.h (completion_tracker::have_completions): Remove use
10732 of m_entries_vec.
10733 (completion_tracker::completion_hash_entry): Declare new class.
10734 (completion_tracker::recompute_lowest_common_denominator): Change
10735 function signature.
10736 (completion_tracker::recompute_lcd_visitor): Declare new function.
10737 (completion_tracker::m_entries_vec): Delete.
10738 (completion_tracker::m_entries_hash): Initialize to NULL.
10739 (completion_tracker::m_lowest_common_denominator_valid): New
10740 member variable.
10741 (completion_tracker::m_lowest_common_denominator_max_length): New
10742 member variable.
10743
5a82b8a1
KR
107442020-03-17 Kamil Rytarowski <n54@gmx.com>
10745
10746 * regformats/regdef.h: Put reg in gdb namespace.
10747
fb516a69
KR
107482020-03-17 Kamil Rytarowski <n54@gmx.com>
10749
10750 * i386-bsd-nat.c (gdb_ptrace): New.
10751 * (i386bsd_fetch_inferior_registers,
10752 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10753 * (i386bsd_fetch_inferior_registers,
10754 i386bsd_store_inferior_registers) Use gdb_ptrace.
10755
1c0aa1fb
KR
107562020-03-17 Kamil Rytarowski <n54@gmx.com>
10757
10758 * amd64-bsd-nat.c (gdb_ptrace): New.
10759 * (amd64bsd_fetch_inferior_registers,
10760 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10761 * (amd64bsd_fetch_inferior_registers,
10762 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10763
5ccd2fb7
KR
107642020-03-17 Kamil Rytarowski <n54@gmx.com>
10765
10766 * user-regs.c (user_reg::read): Rename to...
10767 (user_reg::xread): ...this.
10768 * (append_user_reg): Rename argument `read' to `xread'.
10769 * (user_reg_add_builtin): Likewise.
10770 * (user_reg_add): Likewise.
10771 * (value_of_user_reg): Likewise.
10772
2108a63a
KR
107732020-03-17 Kamil Rytarowski <n54@gmx.com>
10774
10775 * sparc-nat.c (gdb_ptrace): New.
10776 * sparc-nat.c (sparc_fetch_inferior_registers)
10777 (sparc_store_inferior_registers) Remove obsolete comment.
10778 * sparc-nat.c (sparc_fetch_inferior_registers)
10779 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10780 * sparc-nat.c (sparc_fetch_inferior_registers)
10781 (sparc_store_inferior_registers) Use gdb_ptrace.
10782
a225c9a8
KR
107832020-03-17 Kamil Rytarowski <n54@gmx.com>
10784
10785 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10786 it to the ptrace call.
10787 * sh-nbsd-nat.c (store_registers): Likewise.
10788
98097623
KR
107892020-03-17 Kamil Rytarowski <n54@gmx.com>
10790
10791 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10792 nbsd_nat_target instead of inf_ptrace_target.
10793 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10794 nbsd_nat_target.
10795
9e38d619
KR
107962020-03-17 Kamil Rytarowski <n54@gmx.com>
10797
10798 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10799
a2ecbe9f
KR
108002020-03-17 Kamil Rytarowski <n54@gmx.com>
10801
10802 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10803 <sys/sysctl.h>.
10804 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10805
58990295
TV
108062020-03-17 Tom de Vries <tdevries@suse.de>
10807
10808 PR gdb/23710
10809 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10810 fields.
10811 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10812 fields.
10813 (process_imported_unit_die): Skip import of c++ CUs.
10814
771dd3a8
TT
108152020-03-16 Tom Tromey <tom@tromey.com>
10816
10817 * p-valprint.c (pascal_object_print_value): Initialize
10818 base_value.
10819
817a7585
AK
108202020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10821 Shahab Vahedi <shahab@synopsys.com>
10822
10823 * Makefile.in: Add arch/arc.o
10824 * configure.tgt: Likewise.
10825 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10826 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10827 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10828 * arc-tdep.h (arc_read_description): Add proto type.
10829 * arch/arc.c: New file.
10830 * arch/arc.h: Likewise.
10831 * features/Makefile: Replace old target descriptions with new.
10832 * features/arc-arcompact.c: Remove.
10833 * features/arc-arcompact.xml: Likewise.
10834 * features/arc-v2.c: Likewise
10835 * features/arc-v2.xml: Likewise
10836 * features/arc/aux-arcompact.xml: New file.
10837 * features/arc/aux-v2.xml: Likewise.
10838 * features/arc/core-arcompact.xml: Likewise.
10839 * features/arc/core-v2.xml: Likewise.
10840 * features/arc/aux-arcompact.c: Generate.
10841 * features/arc/aux-v2.c: Likewise.
10842 * features/arc/core-arcompact.c: Likewise.
10843 * features/arc/core-v2.c: Likewise.
10844 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10845
67430cd0
TT
108462020-03-16 Tom Tromey <tromey@adacore.com>
10847
10848 PR gdb/25663:
10849 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10850 putting value into bcache.
10851
30efb6c7
SM
108522020-03-16 Simon Marchi <simon.marchi@efficios.com>
10853
10854 PR gdb/21500
10855 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10856 to...
10857 (amd64_windows_init_abi_common): ... this. Don't set size of
10858 long type.
10859 (amd64_windows_init_abi): New function.
10860 (amd64_cygwin_init_abi): New function.
10861 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10862 the Cygwin OS ABI.
10863 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10864 comment.
10865
8db52437
SM
108662020-03-16 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10869 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10870 (pe_import_directory_entry): New struct type.
10871 (is_linked_with_cygwin_dll): New function.
10872 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10873 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10874 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10875
5982a56a
SM
108762020-03-16 Simon Marchi <simon.marchi@efficios.com>
10877
10878 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10879 i386_cygwin_core_osabi_sniffer.
10880
7a1998df
SM
108812020-03-16 Simon Marchi <simon.marchi@efficios.com>
10882
10883 * i386-cygwin-tdep.c: Rename to...
10884 * i386-windows-tdep.c: ... this.
10885 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10886 i386-windows-tdep.c.
10887 * configure.tgt: Likewise.
10888
053205cc
SM
108892020-03-16 Simon Marchi <simon.marchi@efficios.com>
10890
10891 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10892 * osabi.c (gdb_osabi_names): Add "Windows".
10893 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10894 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10895 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10896 i386_cygwin_osabi_sniffer.
10897 (_initialize_i386_cygwin_tdep): Register OS ABI
10898 GDB_OSABI_WINDOWS for i386.
10899 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10900 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10901 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10902 for x86-64.
10903 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10904 when the target matches '*-*-mingw*'.
10905
fe4b2ee6
SM
109062020-03-16 Simon Marchi <simon.marchi@efficios.com>
10907
10908 * defs.h (enum gdb_osabi): Move to...
10909 * osabi.h (enum gdb_osabi): ... here.
10910 * gdbarch.sh: Include osabi.h in gdbarch.h.
10911 * gdbarch.h: Re-generate.
10912
cb9b645d
SM
109132020-03-16 Simon Marchi <simon.marchi@efficios.com>
10914
10915 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10916 function.
10917 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10918
3293bbaf
TT
109192020-03-14 Tom Tromey <tom@tromey.com>
10920
10921 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10922 for C++.
10923 (c_type_print_modifier): Likewise. Add "language" parameter.
10924 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10925 (c_type_print_base_1): Update.
10926 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10927 constants.
10928 * type-stack.c (type_stack::insert): Handle tp_atomic and
10929 tp_restrict.
10930 (type_stack::follow_type_instance_flags): Likewise.
10931 (type_stack::follow_types): Likewise. Merge type-following code.
10932 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10933 (space_identifier, cv_with_space_id)
10934 (const_or_volatile_or_space_identifier_noopt)
10935 (const_or_volatile_or_space_identifier): Remove.
10936 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10937 rules.
10938 (ptr_operator, typebase): Update.
10939 (enum token_flag) <FLAG_C>: New constant.
10940 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10941 "_Atomic".
10942 (lex_one_token): Handle FLAG_C.
10943
154151a6
KR
109442020-03-14 Kamil Rytarowski <n54@gmx.com>
10945
10946 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10947 it to the ptrace call.
10948 * m68k-bsd-nat.c (store_registers): Likewise.
10949
bc107784
KR
109502020-03-14 Kamil Rytarowski <n54@gmx.com>
10951
10952 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10953 gdb_byte *.
10954 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10955 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10956 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10957
01a80117
KR
109582020-03-14 Kamil Rytarowski <n54@gmx.com>
10959
10960 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10961 nbsd_nat_target instead of inf_ptrace_target.
10962 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10963 nbsd_nat_target.
10964
f90280ca
KR
109652020-03-14 Kamil Rytarowski <n54@gmx.com>
10966
10967 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10968 register_t.
10969
6def66f1
KR
109702020-03-14 Kamil Rytarowski <n54@gmx.com>
10971
10972 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10973 it to the ptrace call.
10974 * alpha-bsd-nat.c (store_registers): Likewise.
10975
66eaca97
KR
109762020-03-14 Kamil Rytarowski <n54@gmx.com>
10977
10978 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10979 includes.
10980 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10981 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10982 fill_fpregset): Likewise.
10983
4fed520b
KR
109842020-03-14 Kamil Rytarowski <n54@gmx.com>
10985
10986 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10987 nbsd_nat_target instead of inf_ptrace_target.
10988 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10989 nbsd_nat_target.
10990
2190cf06
KR
109912020-03-14 Kamil Rytarowski <n54@gmx.com>
10992
10993 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10994 register_t.
10995
75c56d3d
KR
109962020-03-14 Kamil Rytarowski <n54@gmx.com>
10997
10998 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10999 it to the ptrace call.
11000 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11001 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11002 * arm-nbsd-nat.c (store_register): Likewise.
11003 * arm-nbsd-nat.c (store_regs): Likewise.
11004 * arm-nbsd-nat.c (store_fp_register): Likewise.
11005 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11006
6018d381
KR
110072020-03-14 Kamil Rytarowski <n54@gmx.com>
11008
11009 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11010 nbsd_nat_target instead of inf_ptrace_target.
11011 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11012 nbsd_nat_target.
11013
013f99f0
KR
110142020-03-14 Kamil Rytarowski <n54@gmx.com>
11015
11016 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11017 it to the ptrace call.
11018 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11019
12753073
KR
110202020-03-14 Kamil Rytarowski <n54@gmx.com>
11021
6227b330
KR
11022 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11023 it to the ptrace call.
11024 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11025
110262020-03-14 Kamil Rytarowski <n54@gmx.com>
11027
11028 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11029 gdb_byte *.
12753073
KR
11030 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11031
d5be5fa4
KR
110322020-03-14 Kamil Rytarowski <n54@gmx.com>
11033
11034 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11035 instead of inf_ptrace_target.
11036 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11037 nbsd_nat_target.
11038
8110f842
KR
110392020-03-14 Kamil Rytarowski <n54@gmx.com>
11040
11041 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11042 register_t.
11043
52feded7
KR
110442020-03-14 Kamil Rytarowski <n54@gmx.com>
11045
11046 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11047 register_t.
11048
25567eee
KR
110492020-03-14 Kamil Rytarowski <n54@gmx.com>
11050
11051 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11052 register_t.
11053
426a9c18
TT
110542020-03-13 Tom Tromey <tom@tromey.com>
11055
11056 * value.h (val_print): Don't declare.
11057 * valprint.h (val_print_array_elements)
11058 (val_print_scalar_formatted, generic_val_print): Don't declare.
11059 * valprint.c (generic_val_print_array): Take a struct value.
11060 (generic_val_print_ptr, generic_val_print_memberptr)
11061 (generic_val_print_bool, generic_val_print_int)
11062 (generic_val_print_char, generic_val_print_complex)
11063 (generic_val_print): Remove.
11064 (generic_value_print): Update.
11065 (do_val_print): Remove unused parameters. Don't call
11066 la_val_print.
11067 (val_print): Remove.
11068 (common_val_print): Update. Don't call value_check_printable.
11069 (val_print_scalar_formatted, val_print_array_elements): Remove.
11070 * rust-lang.c (rust_val_print): Remove.
11071 (rust_language_defn): Update.
11072 * p-valprint.c (pascal_val_print): Remove.
11073 (pascal_value_print_inner): Update.
11074 (pascal_object_print_val_fields, pascal_object_print_val):
11075 Remove.
11076 (pascal_object_print_static_field): Update.
11077 * p-lang.h (pascal_val_print): Don't declare.
11078 * p-lang.c (pascal_language_defn): Update.
11079 * opencl-lang.c (opencl_language_defn): Update.
11080 * objc-lang.c (objc_language_defn): Update.
11081 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11082 * m2-lang.h (m2_val_print): Don't declare.
11083 * m2-lang.c (m2_language_defn): Update.
11084 * language.h (struct language_defn) <la_val_print>: Remove.
11085 * language.c (unk_lang_value_print_inner): Rename. Change
11086 argument types.
11087 (unknown_language_defn, auto_language_defn): Update.
11088 * go-valprint.c (go_val_print): Remove.
11089 * go-lang.h (go_val_print): Don't declare.
11090 * go-lang.c (go_language_defn): Update.
11091 * f-valprint.c (f_val_print): Remove.
11092 * f-lang.h (f_value_print): Don't declare.
11093 * f-lang.c (f_language_defn): Update.
11094 * d-valprint.c (d_val_print): Remove.
11095 * d-lang.h (d_value_print): Don't declare.
11096 * d-lang.c (d_language_defn): Update.
11097 * cp-valprint.c (cp_print_value_fields)
11098 (cp_print_value_fields_rtti, cp_print_value): Remove.
11099 (cp_print_static_field): Update.
11100 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11101 (c_val_print_struct, c_val_print_union, c_val_print_int)
11102 (c_val_print_memberptr, c_val_print): Remove.
11103 * c-lang.h (c_val_print_array, cp_print_value_fields)
11104 (cp_print_value_fields_rtti): Don't declare.
11105 * c-lang.c (c_language_defn, cplus_language_defn)
11106 (asm_language_defn, minimal_language_defn): Update.
11107 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11108 (ada_val_print_enum): Take a struct value.
11109 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11110 (ada_val_print): Remove.
11111 (ada_value_print_1): Update.
11112 (printable_val_type): Remove.
11113 * ada-lang.h (ada_val_print): Don't declare.
11114 * ada-lang.c (ada_language_defn): Update.
11115
42331a1e
TT
111162020-03-13 Tom Tromey <tom@tromey.com>
11117
11118 * valprint.c (do_val_print): Update.
11119 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11120 a struct value.
11121 (value_to_value_object_no_release): Declare.
11122 * python/py-value.c (value_to_value_object_no_release): New
11123 function.
11124 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11125 struct value.
11126 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11127 function.
11128 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11129 a struct value.
11130 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11131 Declare.
11132 (gdbscm_apply_val_pretty_printer): Take a struct value.
11133 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11134 value.
11135 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11136 value.
11137 * extension-priv.h (struct extension_language_ops)
11138 <apply_val_pretty_printer>: Take a struct value.
11139 * cp-valprint.c (cp_print_value): Create a struct value.
11140 (cp_print_value): Update.
11141
3a916a97
TT
111422020-03-13 Tom Tromey <tom@tromey.com>
11143
11144 * ada-valprint.c (print_field_values): Call common_val_print.
11145
b59eac37
TT
111462020-03-13 Tom Tromey <tom@tromey.com>
11147
11148 * ada-valprint.c (val_print_packed_array_elements): Remove
11149 bitoffset and val parameters. Call common_val_print.
11150 (ada_val_print_string): Remove offset, address, and original_value
11151 parameters.
11152 (ada_val_print_array): Update.
11153 (ada_value_print_array): New function.
11154 (ada_value_print_1): Call it.
11155
03371129
TT
111562020-03-13 Tom Tromey <tom@tromey.com>
11157
11158 * ada-valprint.c (ada_value_print): Use common_val_print.
11159
2e088f8b
TT
111602020-03-13 Tom Tromey <tom@tromey.com>
11161
11162 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11163
39ef85a8
TT
111642020-03-13 Tom Tromey <tom@tromey.com>
11165
11166 * ada-valprint.c (ada_value_print_num): New function.
11167 (ada_value_print_1): Use it.
11168
b9fa6e07
TT
111692020-03-13 Tom Tromey <tom@tromey.com>
11170
11171 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11172
416595d6
TT
111732020-03-13 Tom Tromey <tom@tromey.com>
11174
11175 * ada-valprint.c (ada_value_print_ptr): New function.
11176 (ada_value_print_1): Use it.
11177
5b5e15ec
TT
111782020-03-13 Tom Tromey <tom@tromey.com>
11179
11180 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11181 call common_val_print.
11182 (ada_val_print_1): Update.
11183 (ada_value_print_1): New function.
11184 (ada_value_print_inner): Rewrite.
11185
fbf54e75
TT
111862020-03-13 Tom Tromey <tom@tromey.com>
11187
11188 * cp-valprint.c (cp_print_value_fields): Update.
11189 (cp_print_value): New function.
11190
64b653ca
TT
111912020-03-13 Tom Tromey <tom@tromey.com>
11192
11193 * m2-valprint.c (m2_value_print_inner): Use
11194 cp_print_value_fields.
11195 * cp-valprint.c (cp_print_value_fields): New function.
11196 * c-valprint.c (c_value_print_struct): New function.
11197 (c_value_print_inner): Use c_value_print_struct.
11198 * c-lang.h (cp_print_value_fields): Declare.
11199
6999f067
TT
112002020-03-13 Tom Tromey <tom@tromey.com>
11201
11202 * c-valprint.c (c_value_print_array): New function.
11203 (c_value_print_inner): Use it.
11204
ce80b8bd
TT
112052020-03-13 Tom Tromey <tom@tromey.com>
11206
11207 * c-valprint.c (c_value_print_memberptr): New function.
11208 (c_value_print_inner): Use it.
11209
2faac269
TT
112102020-03-13 Tom Tromey <tom@tromey.com>
11211
11212 * c-valprint.c (c_value_print_int): New function.
11213 (c_value_print_inner): Use it.
11214
da3e2c29
TT
112152020-03-13 Tom Tromey <tom@tromey.com>
11216
11217 * c-valprint.c (c_value_print_ptr): New function.
11218 (c_value_print_inner): Use it.
11219
50836231
TT
112202020-03-13 Tom Tromey <tom@tromey.com>
11221
11222 * c-valprint.c (c_value_print_inner): Rewrite.
11223
4f412b6e
TT
112242020-03-13 Tom Tromey <tom@tromey.com>
11225
11226 * valprint.c (generic_value_print_complex): New function.
11227 (generic_value_print): Use it.
11228
f5354008
TT
112292020-03-13 Tom Tromey <tom@tromey.com>
11230
11231 * valprint.c (generic_val_print_float): Don't call
11232 val_print_scalar_formatted.
11233 (generic_val_print, generic_value_print): Update.
11234
3eec3b05
TT
112352020-03-13 Tom Tromey <tom@tromey.com>
11236
11237 * valprint.c (generic_value_print_char): New function
11238 (generic_value_print): Use it.
11239
fdddfccb
TT
112402020-03-13 Tom Tromey <tom@tromey.com>
11241
11242 * valprint.c (generic_value_print_int): New function.
11243 (generic_value_print): Use it.
11244
6dde7521
TT
112452020-03-13 Tom Tromey <tom@tromey.com>
11246
11247 * valprint.c (generic_value_print_bool): New function.
11248 (generic_value_print): Use it.
11249
4112d2e6
TT
112502020-03-13 Tom Tromey <tom@tromey.com>
11251
11252 * valprint.c (generic_val_print_func): Simplify.
11253 (generic_val_print, generic_value_print): Update.
11254
65786af6
TT
112552020-03-13 Tom Tromey <tom@tromey.com>
11256
11257 * valprint.c (generic_val_print_flags): Remove.
11258 (generic_val_print, generic_value_print): Update.
11259 (val_print_type_code_flags): Add original_value parameter.
11260
40f3ce18
TT
112612020-03-13 Tom Tromey <tom@tromey.com>
11262
11263 * valprint.c (generic_val_print): Update.
11264 (generic_value_print): Update.
11265 * valprint.c (generic_val_print_enum): Don't call
11266 val_print_scalar_formatted.
11267
2a5b130b
TT
112682020-03-13 Tom Tromey <tom@tromey.com>
11269
11270 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11271 * valprint.c (generic_value_print_ptr): New function.
11272
abc66ce9
TT
112732020-03-13 Tom Tromey <tom@tromey.com>
11274
11275 * valprint.c (generic_value_print): Rewrite.
11276
07a32858
TT
112772020-03-13 Tom Tromey <tom@tromey.com>
11278
11279 * p-valprint.c (pascal_object_print_value_fields)
11280 (pascal_object_print_value): New functions.
11281
64d64d3a
TT
112822020-03-13 Tom Tromey <tom@tromey.com>
11283
11284 * p-valprint.c (pascal_value_print_inner): Rewrite.
11285
6a95a1f5
TT
112862020-03-13 Tom Tromey <tom@tromey.com>
11287
11288 * f-valprint.c (f_value_print_innner): Rewrite.
11289
59fcdac6
TT
112902020-03-13 Tom Tromey <tom@tromey.com>
11291
11292 * m2-valprint.c (m2_print_unbounded_array): New overload.
11293 (m2_print_unbounded_array): Update.
11294 (m2_print_array_contents): Take a struct value.
11295 (m2_value_print_inner): Rewrite.
11296
d133c3e1
TT
112972020-03-13 Tom Tromey <tom@tromey.com>
11298
11299 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11300 (d_value_print_inner): New function.
11301 * d-lang.h (d_value_print_inner): Declare.
11302 * d-lang.c (d_language_defn): Use d_value_print_inner.
11303
23b0f06b
TT
113042020-03-13 Tom Tromey <tom@tromey.com>
11305
11306 * go-valprint.c (go_value_print_inner): New function.
11307 * go-lang.h (go_value_print_inner): Declare.
11308 * go-lang.c (go_language_defn): Use go_value_print_inner.
11309
5f56f7cb
TT
113102020-03-13 Tom Tromey <tom@tromey.com>
11311
11312 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11313 API.
11314 (rust_val_print): Rewrite.
11315 (rust_value_print_inner): New function, from rust_val_print.
11316 (rust_language_defn): Use rust_value_print_inner.
11317
26792ee0
TT
113182020-03-13 Tom Tromey <tom@tromey.com>
11319
11320 * ada-valprint.c (ada_value_print_inner): New function.
11321 * ada-lang.h (ada_value_print_inner): Declare.
11322 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11323
24051bbe
TT
113242020-03-13 Tom Tromey <tom@tromey.com>
11325
11326 * f-valprint.c (f_value_print_innner): New function.
11327 * f-lang.h (f_value_print_innner): Declare.
11328 * f-lang.c (f_language_defn): Use f_value_print_innner.
11329
c0941be6
TT
113302020-03-13 Tom Tromey <tom@tromey.com>
11331
11332 * p-valprint.c (pascal_value_print_inner): New function.
11333 * p-lang.h (pascal_value_print_inner): Declare.
11334 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11335
62c4663d
TT
113362020-03-13 Tom Tromey <tom@tromey.com>
11337
11338 * m2-valprint.c (m2_value_print_inner): New function.
11339 * m2-lang.h (m2_value_print_inner): Declare.
11340 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11341
62182190
TT
113422020-03-13 Tom Tromey <tom@tromey.com>
11343
11344 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11345 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11346 * c-valprint.c (c_value_print_inner): New function.
11347 * c-lang.h (c_value_print_inner): Declare.
11348 * c-lang.c (c_language_defn, cplus_language_defn)
11349 (asm_language_defn, minimal_language_defn): Use
11350 c_value_print_inner.
11351
1e592a8a
TT
113522020-03-13 Tom Tromey <tom@tromey.com>
11353
11354 * p-valprint.c (pascal_object_print_value_fields): Now static.
11355 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11356
7fe471e9
TT
113572020-03-13 Tom Tromey <tom@tromey.com>
11358
11359 * c-valprint.c (c_val_print_array): Simplify.
11360
d121c6ce
TT
113612020-03-13 Tom Tromey <tom@tromey.com>
11362
11363 * valprint.c (value_print_array_elements): New function.
11364 * valprint.h (value_print_array_elements): Declare.
11365
4dba70ee
TT
113662020-03-13 Tom Tromey <tom@tromey.com>
11367
11368 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11369 * mips-tdep.c (mips_print_register): Use
11370 value_print_scalar_formatted.
11371
4f9ae810
TT
113722020-03-13 Tom Tromey <tom@tromey.com>
11373
11374 * valprint.h (value_print_scalar_formatted): Declare.
11375 * valprint.c (value_print_scalar_formatted): New function.
11376
156bfec9
TT
113772020-03-13 Tom Tromey <tom@tromey.com>
11378
11379 * valprint.h (generic_value_print): Declare.
11380 * valprint.c (generic_value_print): New function.
11381
2b4e573d
TT
113822020-03-13 Tom Tromey <tom@tromey.com>
11383
11384 * valprint.c (do_val_print): Call la_value_print_inner, if
11385 available.
11386 * rust-lang.c (rust_language_defn): Update.
11387 * p-lang.c (pascal_language_defn): Update.
11388 * opencl-lang.c (opencl_language_defn): Update.
11389 * objc-lang.c (objc_language_defn): Update.
11390 * m2-lang.c (m2_language_defn): Update.
11391 * language.h (struct language_defn) <la_value_print_inner>: New
11392 member.
11393 * language.c (unknown_language_defn, auto_language_defn): Update.
11394 * go-lang.c (go_language_defn): Update.
11395 * f-lang.c (f_language_defn): Update.
11396 * d-lang.c (d_language_defn): Update.
11397 * c-lang.c (c_language_defn, cplus_language_defn)
11398 (asm_language_defn, minimal_language_defn): Update.
11399 * ada-lang.c (ada_language_defn): Update.
11400
a1f6a07c
TT
114012020-03-13 Tom Tromey <tom@tromey.com>
11402
11403 * c-valprint.c (c_value_print): Use common_val_print.
11404
410cf315
TT
114052020-03-13 Tom Tromey <tom@tromey.com>
11406
11407 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11408
72a45c93
TT
114092020-03-13 Tom Tromey <tom@tromey.com>
11410
11411 * f-valprint.c (f77_print_array_1, f_val_print): Use
11412 common_val_print.
11413
040f66bd
TT
114142020-03-13 Tom Tromey <tom@tromey.com>
11415
11416 * riscv-tdep.c (riscv_print_one_register_info): Use
11417 common_val_print.
11418
a6e05a6c
TT
114192020-03-13 Tom Tromey <tom@tromey.com>
11420
11421 * mi/mi-main.c (output_register): Use common_val_print.
11422
3444c526
TT
114232020-03-13 Tom Tromey <tom@tromey.com>
11424
11425 * infcmd.c (default_print_one_register_info): Use
11426 common_val_print.
11427
c2a44efe
TT
114282020-03-13 Tom Tromey <tom@tromey.com>
11429
11430 * valprint.h (common_val_print_checked): Declare.
11431 * valprint.c (common_val_print_checked): New function.
11432 * stack.c (print_frame_arg): Use common_val_print_checked.
11433
b0c26e99
TT
114342020-03-13 Tom Tromey <tom@tromey.com>
11435
11436 * valprint.c (do_val_print): New function, from val_print.
11437 (val_print): Use do_val_print.
11438 (common_val_print): Use do_val_print.
11439
ce3acbe9
TT
114402020-03-13 Tom Tromey <tom@tromey.com>
11441
11442 * valprint.c (value_print): Use scoped_value_mark.
11443
96c7f873
TV
114442020-03-13 Tom de Vries <tdevries@suse.de>
11445
11446 PR symtab/25646
11447 * psymtab.c (partial_symtab::partial_symtab): Don't set
11448 globals_offset and statics_offset. Push element onto
11449 current_global_psymbols and current_static_psymbols stacks.
11450 (concat): New function.
11451 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11452 element from current_global_psymbols and current_static_psymbols
11453 stacks. Concat popped elements to global_psymbols and
11454 static_symbols.
11455 (add_psymbol_to_list): Use current_global_psymbols and
11456 current_static_psymbols stacks.
11457 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11458 current_static_psymbols fields.
11459
6ba0a321
CB
114602020-03-12 Christian Biesinger <cbiesinger@google.com>
11461
11462 * corelow.c (sniff_core_bfd): Remove.
11463 (class core_target) <m_core_vec>: Remove.
11464 (core_target::core_target): Update.
11465 (core_file_fns): Remove.
11466 (deprecated_add_core_fns): Remove.
11467 (default_core_sniffer): Remove.
11468 (sniff_core_bfd): Remove.
11469 (default_check_format): Remove.
11470 (gdb_check_format): Remove.
11471 (core_target_open): Update.
11472 (core_target::get_core_register_section): Update.
11473 (get_core_registers_cb): Update.
11474 (core_target::fetch_registers): Update.
11475 * gdbcore.h (struct core_fns): Remove.
11476 (deprecated_add_core_fns): Remove.
11477 (default_core_sniffer): Remove.
11478 (default_check_format): Remove.
11479
227031b2
TT
114802020-03-12 Tom Tromey <tom@tromey.com>
11481
11482 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11483 CORE_ADDR.
11484 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11485
53807e9f
TT
114862020-03-12 Tom Tromey <tom@tromey.com>
11487
11488 * remote.c (remote_target::download_tracepoint)
11489 (remote_target::enable_tracepoint)
11490 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11491 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11492 sprintf_vma.
11493
64f25102
TT
114942020-03-12 Tom Tromey <tom@tromey.com>
11495
11496 * symfile-mem.c: Update CORE_ADDR size assert.
11497
272cd5a3
SM
114982020-03-12 Simon Marchi <simon.marchi@efficios.com>
11499
11500 * selftest.m4: Move to gdbsupport/.
11501 * acinclude.m4: Update path to selftest.m4.
11502
74cd3f9d
SM
115032020-03-12 Simon Marchi <simon.marchi@efficios.com>
11504
11505 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11506 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11507 gdbarch-selfselftests.c and selftest-arch.c.
11508 (SUBDIR_UNITTESTS_OBS): Rename to...
11509 (SELFTESTS_OBS): ... this.
11510 (COMMON_SFILES): Remove disasm-selftests.c and
11511 gdbarch-selftests.c.
11512 * configure.ac: Don't add selftest-arch.{c,o} to
11513 CONFIG_{SRCS,OBS}.
11514 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11515 preprocessor conditions.
11516
db6878ac
SM
115172020-03-12 Simon Marchi <simon.marchi@efficios.com>
11518
11519 * configure.ac: Don't source bfd/development.sh.
11520 * selftest.m4: Modify comment.
11521 * configure: Re-generate.
11522
4d696a5c
SM
115232020-03-12 Simon Marchi <simon.marchi@efficios.com>
11524
11525 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11526 not "true" or "false".
11527 * configure: Re-generate.
11528
8dd8e1c7
CB
115292020-03-12 Christian Biesinger <cbiesinger@google.com>
11530
11531 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11532 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11533 renamed to arm_nbsd_supply_gregset.
11534 (fetch_register): Update to call arm_nbsd_supply_gregset.
11535 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11536 (arm_netbsd_nat_target::fetch_registers): Update.
11537 (fetch_elfcore_registers): Removed.
11538 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11539 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11540 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11541 not require NetBSD system headers.
11542 (arm_nbsd_regset): New struct.
11543 (arm_nbsd_iterate_over_regset_sections): New function.
11544 (arm_netbsd_init_abi_common): Updated to call
11545 set_gdbarch_iterate_over_regset_sections.
11546 * arm-nbsd-tdep.h: New file.
11547
dd69bf7a
KB
115482020-03-11 Kevin Buettner <kevinb@redhat.com>
11549
11550 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11551 recursion.
11552
a0761e34
SM
115532020-03-11 Simon Marchi <simon.marchi@efficios.com>
11554
11555 * configure: Re-generate.
11556
e7a82140
TT
115572020-03-11 Tom Tromey <tromey@adacore.com>
11558
11559 * ada-typeprint.c (print_choices): Fix comment.
11560
dcc050c8
AB
115612020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11562
11563 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11564 previous item in the list, when the list has no items.
11565
1c33af77
TV
115662020-03-11 Tom de Vries <tdevries@suse.de>
11567
11568 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11569 PROP_LOCLIST handling code.
11570
8c95582d
AB
115712020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11572
11573 * buildsym-legacy.c (record_line): Pass extra parameter to
11574 record_line.
11575 * buildsym.c (buildsym_compunit::record_line): Take an extra
11576 parameter, reduce duplication in the line table, and record the
11577 is_stmt flag in the line table.
11578 * buildsym.h (buildsym_compunit::record_line): Add extra
11579 parameter.
11580 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11581 non-statement lines.
11582 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11583 this to the symtab builder.
11584 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11585 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11586 through to dwarf_record_line_1.
11587 * infrun.c (process_event_stop_test): When stepping, don't stop at
11588 a non-statement instruction, and only refresh the step info when
11589 we land in the middle of a line's range. Also add an extra
11590 comment.
11591 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11592 field.
11593 * record-btrace.c (btrace_find_line_range): Only record lines
11594 marked as is-statement.
11595 * stack.c (frame_show_address): Show the frame address if we are
11596 in a non-statement sal.
11597 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11598 (maintenance_print_one_line_table): Print a header for the is_stmt
11599 column, and include is_stmt information in the output.
11600 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11601 preference to non-statements.
11602 (find_pcs_for_symtab_line): Prefer is-statement entries.
11603 (find_line_common): Likewise.
11604 * symtab.h (struct linetable_entry): Add is_stmt field.
11605 (struct symtab_and_line): Likewise.
11606 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11607 arranging the line table.
11608
e4003a34
TV
116092020-03-07 Tom de Vries <tdevries@suse.de>
11610
11611 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11612 DIE.
11613
e8932576
TT
116142020-03-07 Tom Tromey <tom@tromey.com>
11615
11616 * valops.c (value_literal_complex): Remove obsolete comment.
11617 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11618 comment.
11619
29734269
SM
116202020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11621
11622 * infrun.h: Forward-declare thread_info.
11623 (set_step_info): Add thread_info parameter, add doc.
11624 * infrun.c (set_step_info): Add thread_info parameter, move doc
11625 to header.
11626 * infrun.c (process_event_stop_test): Pass thread to
11627 set_step_info call.
11628 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11629 set_step_info.
11630 (prepare_one_step): Add thread_info parameter, pass it to
11631 set_step_frame and prepare_one_step (recursive) call.
11632 (step_1): Pass thread to prepare_one_step call.
11633 (step_command_fsm::should_stop): Pass thread to
11634 prepare_one_step.
11635 (until_next_fsm): Pass thread to set_step_frame call.
11636 (finish_command): Pass thread to set_step_info call.
11637
b7d64b29
HD
116382020-03-06 Hannes Domani <ssbssa@yahoo.de>
11639
11640 * windows-tdep.c (windows_solib_create_inferior_hook):
11641 Check if inferior is running.
11642
09f2921c
TV
116432020-03-06 Tom de Vries <tdevries@suse.de>
11644
11645 * NEWS: Fix "the the".
11646 * ctfread.c: Same.
11647
fd760e79
TV
116482020-03-06 Tom de Vries <tdevries@suse.de>
11649
11650 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11651
20ea4a60
AB
116522020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11653
11654 * .dir-locals.el: Add a comment referencing the other copies of
11655 this file.
11656
0afbabf0
JB
116572020-03-05 John Baldwin <jhb@FreeBSD.org>
11658
11659 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11660 psargs.
11661
842806cb
TBA
116622020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11663
11664 * .gitattributes: New file.
11665
be1e3d3e
TT
116662020-03-04 Tom Tromey <tom@tromey.com>
11667
11668 * symmisc.c (print_symbol_bcache_statistics)
11669 (print_objfile_statistics): Update.
11670 * symfile.c (allocate_symtab): Use intern.
11671 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11672 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11673 macro_cache>: Remove.
11674 <string_cache>: New member.
11675 (struct objfile) <intern>: New methods.
11676 * elfread.c (elf_symtab_read): Use intern.
11677 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11678 (dwarf2_compute_name, dwarf2_physname)
11679 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11680 names.
11681 (guess_partial_die_structure_name): Update.
11682 (partial_die_info::fixup): Intern name.
11683 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11684 name.
11685 (dwarf2_name): Intern name. Update.
11686 * buildsym.c (buildsym_compunit::get_macro_table): Use
11687 string_cache.
11688
4e7625fd
TT
116892020-03-04 Tom Tromey <tom@tromey.com>
11690
11691 * jit.c (bfd_open_from_target_memory): Make "target" const.
11692 * corefile.c (gnutarget): Now const.
11693 * gdbcore.h (gnutarget): Now const.
11694
46f9f931
HD
116952020-03-04 Hannes Domani <ssbssa@yahoo.de>
11696
11697 * NEWS: Mention support for WOW64 processes.
11698 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11699 (amd64_windows_segment_register_p): Remove static.
11700 (_initialize_amd64_windows_nat): Update.
11701 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11702 * i386-windows-nat.c (context_offset): Update.
11703 (i386_mappings): Rename and remove static.
11704 (i386_windows_segment_register_p): Remove static.
11705 (_initialize_i386_windows_nat): Update.
11706 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11707 (STATUS_WX86_SINGLE_STEP): New macro.
11708 (EnumProcessModulesEx): New macro.
11709 (Wow64SuspendThread): New macro.
11710 (Wow64GetThreadContext): New macro.
11711 (Wow64SetThreadContext): New macro.
11712 (Wow64GetThreadSelectorEntry): New macro.
11713 (windows_set_context_register_offsets): Add static.
11714 (windows_set_segment_register_p): Likewise.
11715 (windows_add_thread): Adapt for WOW64 processes.
11716 (windows_fetch_one_register): Likewise.
11717 (windows_nat_target::fetch_registers): Likewise.
11718 (windows_store_one_register): Likewise.
11719 (display_selector): Likewise.
11720 (display_selectors): Likewise.
11721 (handle_exception): Likewise.
11722 (windows_continue): Likewise.
11723 (windows_nat_target::resume): Likewise.
11724 (windows_add_all_dlls): Likewise.
11725 (do_initial_windows_stuff): Likewise.
11726 (windows_nat_target::attach): Likewise.
11727 (windows_get_exec_module_filename): Likewise.
11728 (windows_nat_target::create_inferior): Likewise.
11729 (windows_xfer_siginfo): Likewise.
11730 (_initialize_loadable): Initialize Wow64SuspendThread,
11731 Wow64GetThreadContext, Wow64SetThreadContext,
11732 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11733 * windows-nat.h (windows_set_context_register_offsets):
11734 Remove declaration.
11735 (windows_set_segment_register_p): Likewise.
11736 (i386_windows_segment_register_p): Add declaration.
11737 (amd64_windows_segment_register_p): Likewise.
11738
440cf44e
LM
117392020-03-04 Luis Machado <luis.machado@linaro.org>
11740
11741 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11742 in "info registers" for AArch64/ARM.
11743
11744 The change caused "info registers" to not print GPR's.
11745
11746 gdb/ChangeLog:
11747
11748 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11749
11750 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11751 when reg->group is empty and reggroup is not.
11752
1009d92f
TT
117532020-03-03 Tom Tromey <tromey@adacore.com>
11754
11755 * dwarf2/frame.c (struct dwarf2_frame_cache)
11756 <checked_tailcall_bottom, entry_cfa_sp_offset,
11757 entry_cfa_sp_offset_p>: Remove members.
11758 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11759 (dwarf2_frame_prev_register): Don't call
11760 dwarf2_tailcall_sniffer_first.
11761 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11762 * frame-unwind.c (add_unwinder): New fuction.
11763 (frame_unwind_init): Use it. Add tailcall unwinder.
11764
5e5d66b6
AB
117652020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11766 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11767
11768 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11769 value should be printed as true.
11770
584cf46d
HD
117712020-03-03 Hannes Domani <ssbssa@yahoo.de>
11772
11773 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11774 (windows_init_abi): Set and use windows_so_ops.
11775
7b973adc
SDJ
117762020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11777
11778 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11779 when verifying if dealing with a convenience variable.
11780
bb7b70ab
LM
117812020-03-03 Luis Machado <luis.machado@linaro.org>
11782
11783 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11784
9822cb57
SM
117852020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11786
11787 * infrun.c (gdbarch_supports_displaced_stepping): New.
11788 (use_displaced_stepping): Break up conditions in smaller pieces.
11789 Use gdbarch_supports_displaced_stepping.
11790 (displaced_step_prepare_throw): Use
11791 gdbarch_supports_displaced_stepping.
11792
63e163f2
AB
117932020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11794
11795 * NEWS: Mention new behaviour of the history filename.
11796 * top.c (write_history_p): Add comment.
11797 (show_write_history_p): Add header comment, give a different
11798 message when history writing is on, but the history filename is
11799 empty.
11800 (history_filename): Add comment.
11801 (history_filename_empty): New function.
11802 (show_history_filename): Add header comment, give a different
11803 message when the filename is empty.
11804 (init_history): Compare history_filename against nullptr, and only
11805 read history if the filename is not empty.
11806 (set_history_filename): Add header comment, and only make
11807 non-empty filenames absolute.
11808 (init_main): Make the filename argument to 'set history filename'
11809 optional.
11810
81b86b97
CB
118112020-03-02 Christian Biesinger <cbiesinger@google.com>
11812
11813 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11814 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11815 (fetch_fp_register): Update.
11816 (fetch_fp_regs): Update.
11817 (store_fp_register): Update.
11818 (store_fp_regs): Update.
11819 (arm_netbsd_nat_target::read_description): New function.
11820 (fetch_elfcore_registers): Update.
11821
24ed6739
AB
118222020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11823
11824 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11825 general_thread if the stop reply is missing a thread-id.
11826 (remote_target::process_stop_reply): Use the first non-exited
11827 thread if the target didn't pass a thread-id.
11828 * infrun.c (do_target_wait): Move call to
11829 switch_to_inferior_no_thread to ....
11830 (do_target_wait_1): ... here.
11831
a84bb2a0
JT
118322020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11833
11834 * debuginfod-support.c: Include defs.h first.
11835
658dadf0
TV
118362020-02-28 Tom de Vries <tdevries@suse.de>
11837
11838 * symfile.c (set_initial_language): Use default language for lookup.
11839
4ebe4877
SM
118402020-02-28 Simon Marchi <simon.marchi@efficios.com>
11841
11842 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11843 reader variable, pass `this` to read_cutu_die_from_dwo.
11844
e5da1139
AM
118452020-02-27 Aaron Merey <amerey@redhat.com>
11846
11847 * source.c (open_source_file): Check for nullptr when computing
11848 srcpath.
11849
317f7127
TT
118502020-02-27 Tom Tromey <tromey@adacore.com>
11851
11852 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11853 member.
11854 (dwarf2_add_field): Don't update nfields.
11855 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11856
3104d9ee
AB
118572020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11858
11859 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11860 abs.
11861
b83470bf
TT
118622020-02-26 Tom Tromey <tom@tromey.com>
11863
11864 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11865 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11866 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11867 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11868 per_cu_data.
11869
edfe0a0c
TT
118702020-02-26 Tom Tromey <tom@tromey.com>
11871
11872 * dwarf2/index-write.c (psym_index_map): Change type.
11873 (add_address_entry_worker, write_one_signatured_type)
11874 (recursively_count_psymbols, recursively_write_psymbols)
11875 (class debug_names, psyms_seen_size, write_gdbindex)
11876 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11877
0d79cdc4
AM
118782020-02-26 Aaron Merey <amerey@redhat.com>
11879
11880 * Makefile.in: Handle optional debuginfod support.
11881 * NEWS: Update.
11882 * README: Add --with-debuginfod summary.
11883 * config.in: Regenerate.
11884 * configure: Regenerate.
11885 * configure.ac: Handle optional debuginfod support.
11886 * debuginfod-support.c: debuginfod helper functions.
11887 * debuginfod-support.h: Ditto.
11888 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11889 summary.
11890 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11891 when a dwz file cannot be found.
11892 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11893 debuginfo file cannot be found.
11894 * source.c (open_source_file): Query debuginfod servers when a
11895 source file cannot be found.
11896 * top.c (print_gdb_configuration): Include
11897 --{with,without}-debuginfod in the output.
11898
b65ce565
JG
118992020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11900
11901 * thread.c (thr_try_catch_cmd): Print thread name.
11902
d4c9a4f8
SM
119032020-02-26 Simon Marchi <simon.marchi@efficios.com>
11904
11905 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11906 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11907 dwarf2_fetch_die_type_sect_off): Move to...
11908 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11909 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11910 dwarf2_fetch_die_type_sect_off): ... here.
11911 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11912 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11913 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11914
0dce4280
TV
119152020-02-26 Tom de Vries <tdevries@suse.de>
11916
11917 PR gdb/25603
11918 * symfile.c (set_initial_language): Exit-early if
11919 language_mode == language_mode_manual.
11920
450a1bfc
SM
119212020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11922
11923 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11924 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11925 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11926
9e80cfa1
AB
119272020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11928
11929 * gdbtypes.c (create_array_type_with_stride): Handle negative
11930 array strides.
11931 * valarith.c (value_subscripted_rvalue): Likewise.
11932
09624f1f
LM
119332020-02-25 Luis Machado <luis.machado@linaro.org>
11934
11935 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11936
8cb5117c
SM
119372020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11938
11939 * loc.h (dwarf2_get_die_type): Move to...
11940 * read.h (dwarf2_get_die_type): ... here.
11941 * read.c (dwarf2_get_die_type): Move doc to header.
11942
c325c44e
JB
119432020-02-25 Joel Brobecker <brobecker@adacore.com>
11944
11945 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11946 'gnulib/Makefile.in' to the list.
11947
4ac93832
TT
119482020-02-24 Tom Tromey <tom@tromey.com>
11949
11950 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11951 Remove.
11952 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11953 XOBNEWVEC.
11954
197400e8
TT
119552020-02-24 Tom Tromey <tom@tromey.com>
11956
11957 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11958 New method.
11959 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11960 (dw2_do_instantiate_symtab, dw2_get_file_names)
11961 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11962
76935768
TT
119632020-02-24 Tom Tromey <tom@tromey.com>
11964
11965 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11966 make_scoped_restore.
11967 (dwarf2_psymtab::read_symtab): Don't clear
11968 reading_partial_symbols.
11969
a88ef40d
TV
119702020-02-24 Tom de Vries <tdevries@suse.de>
11971
11972 PR gdb/25592
11973 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11974
c9af6521
TV
119752020-02-24 Tom de Vries <tdevries@suse.de>
11976
11977 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11978 commands layout next/prev/regs.
11979
5707a07a
TT
119802020-02-22 Tom Tromey <tom@tromey.com>
11981
11982 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11983 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11984
3b0fb49e
TT
119852020-02-22 Tom Tromey <tom@tromey.com>
11986
11987 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11988
283be8bf
TT
119892020-02-22 Tom Tromey <tom@tromey.com>
11990
11991 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11992 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11993 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11994 * tui/tui.c (_initialize_tui): Add usage text.
11995
ca793b96
TT
119962020-02-22 Tom Tromey <tom@tromey.com>
11997
11998 * tui/tui-win.c (tui_set_focus_command)
11999 (tui_set_win_height_command): Use error_no_arg.
12000 (_initialize_tui_win): Update help text.
12001 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12002
432b5c40
TT
120032020-02-22 Tom Tromey <tom@tromey.com>
12004
12005 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12006 * tui/tui-disasm.h (struct tui_disasm_window)
12007 <display_start_addr>: Declare.
12008 * tui/tui-source.h (struct tui_source_window)
12009 <display_start_addr>: Declare.
12010 * tui/tui-winsource.h (struct tui_source_window_base)
12011 <show_source_line, display_start_addr>: New methods.
12012 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12013 Rename and move to protected section.
12014 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12015 (tui_source_window_base::do_erase_source_content): Update.
12016 (tui_source_window_base::show_source_line): Now a method.
12017 (tui_source_window_base::show_source_content)
12018 (tui_source_window_base::tui_source_window_base)
12019 (tui_source_window_base::rerender)
12020 (tui_source_window_base::refill)
12021 (tui_source_window_base::do_scroll_horizontal)
12022 (tui_source_window_base::set_is_exec_point_at)
12023 (tui_source_window_base::update_breakpoint_info)
12024 (tui_source_window_base::update_exec_info): Update.
12025 * tui/tui-source.c (tui_source_window::set_contents)
12026 (tui_source_window::showing_source_p)
12027 (tui_source_window::do_scroll_vertical)
12028 (tui_source_window::location_matches_p)
12029 (tui_source_window::line_is_displayed): Update.
12030 (tui_source_window::display_start_addr): New method.
12031 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12032 (tui_disasm_window::do_scroll_vertical)
12033 (tui_disasm_window::location_matches_p): Update.
12034 (tui_disasm_window::display_start_addr): New method.
12035
01b1af32
TT
120362020-02-22 Tom Tromey <tom@tromey.com>
12037
12038 * NEWS: Add entry for gdb.register_window_type.
12039 * tui/tui-layout.h (window_factory): New typedef.
12040 (tui_register_window): Declare.
12041 * tui/tui-layout.c (saved_tui_windows): New global.
12042 (tui_apply_current_layout): Use it.
12043 (tui_register_window): New function.
12044 * python/python.c (do_start_initialization): Call
12045 gdbpy_initialize_tui.
12046 (python_GdbMethods): Add "register_window_type" function.
12047 * python/python-internal.h (gdbpy_register_tui_window)
12048 (gdbpy_initialize_tui): Declare.
12049 * python/py-tui.c: New file.
12050 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12051
fc96d20b
TT
120522020-02-22 Tom Tromey <tom@tromey.com>
12053
12054 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12055
935c78c0
TT
120562020-02-22 Tom Tromey <tom@tromey.com>
12057
12058 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12059 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12060 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12061 (tui_set_win_focus_to): Move from tui-win.c.
12062
0240c8f1
TT
120632020-02-22 Tom Tromey <tom@tromey.com>
12064
12065 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12066 functions.
12067 (known_window_types): New global.
12068 (tui_get_window_by_name): Reimplement.
12069 (initialize_known_windows): New function.
12070 (validate_window_name): Rewrite.
12071 (_initialize_tui_layout): Call initialize_known_windows.
12072
fdb01f0c
TT
120732020-02-22 Tom Tromey <tom@tromey.com>
12074
12075 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12076 Remove constants.
12077 * tui/tui-winsource.h (struct tui_source_window_base)
12078 <tui_source_window_base>: Remove parameter.
12079 * tui/tui-winsource.c
12080 (tui_source_window_base::tui_source_window_base): Remove
12081 parameter.
12082 (tui_source_window_base::refill): Update.
12083 * tui/tui-stack.h (struct tui_locator_window)
12084 <tui_locator_window>: Update.
12085 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12086 Default the constructor.
12087 * tui/tui-regs.h (struct tui_data_item_window)
12088 <tui_data_item_window>: Default the constructor.
12089 (struct tui_data_window) <tui_data_window>: Likewise.
12090 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12091 Default the constructor.
12092 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12093 Default the constructor.
12094 <type>: Remove.
12095 (struct tui_win_info) <tui_win_info>: Default the constructor.
12096 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12097 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12098 Default the constructor.
12099
865a5aec
TT
121002020-02-22 Tom Tromey <tom@tromey.com>
12101
12102 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12103 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12104 * tui/tui-win.c (tui_resize_all): Don't call
12105 tui_delete_invisible_windows.
12106 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12107 done.
12108 (tui_set_layout): Update.
12109 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12110 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12111 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12112
e098d18c
TT
121132020-02-22 Tom Tromey <tom@tromey.com>
12114
12115 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12116 correctly.
12117
eb9c8874
TT
121182020-02-22 Tom Tromey <tom@tromey.com>
12119
12120 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12121
7eed1a8e
TT
121222020-02-22 Tom Tromey <tom@tromey.com>
12123
12124 * tui/tui-winsource.h (struct tui_source_window_iterator)
12125 <inner_iterator>: New etytypedef.
12126 <tui_source_window_iterator>: Take "end" parameter.
12127 <tui_source_window_iterator>: Take iterator.
12128 <operator*, advance>: Update.
12129 <m_iter>: Change type.
12130 <m_end>: New field.
12131 (struct tui_source_windows) <begin, end>: Update.
12132 * tui/tui-layout.c (tui_windows): New global.
12133 (tui_apply_current_layout): Clear tui_windows.
12134 (tui_layout_window::apply): Update tui_windows.
12135 * tui/tui-data.h (tui_windows): Declare.
12136 (all_tui_windows): Now inline function.
12137 (class tui_window_iterator, struct all_tui_windows): Remove.
12138
7c043ba6
TT
121392020-02-22 Tom Tromey <tom@tromey.com>
12140
12141 PR tui/17850:
12142 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12143 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12144 "height" argument.
12145 (class tui_layout_window) <get_sizes>: Likewise.
12146 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12147 argument.
12148 <get_sizes>: Add "height" argument.
12149 <m_vertical>: New field.
12150 * tui/tui-layout.c (tui_layout_split::clone): Update.
12151 (tui_layout_split::get_sizes): Add "height" argument.
12152 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12153 (tui_new_layout_command): Parse "-horizontal".
12154 (_initialize_tui_layout): Update help string.
12155 (tui_layout_split::specification): Add "-horizontal" when needed.
12156 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12157 argument.
12158 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12159 New methods.
12160
6bc56648
TT
121612020-02-22 Tom Tromey <tom@tromey.com>
12162
12163 * tui/tui-layout.h (enum tui_adjust_result): New.
12164 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12165 (class tui_layout_window) <adjust_size>: Return
12166 tui_adjust_result. Rewrite.
12167 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12168 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12169
c22fef7e
TT
121702020-02-22 Tom Tromey <tom@tromey.com>
12171
12172 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12173 parameter and return types.
12174 (class tui_layout_base) <specification>: Add "depth".
12175 (class tui_layout_window) <specification>: Add "depth".
12176 (class tui_layout_split) <specification>: Add "depth".
12177 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12178 and return types.
12179 (tui_new_layout_command): Parse sub-layouts.
12180 (_initialize_tui_layout): Update help string.
12181 (tui_layout_window::specification): Add "depth".
12182 (add_layout_command): Update.
12183
ee325b61
TT
121842020-02-22 Tom Tromey <tom@tromey.com>
12185
12186 * NEWS: Add "tui new-layout" item.
12187 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12188 Add new-layout command to help text.
12189 (validate_window_name): New function.
12190 (tui_new_layout_command): New function.
12191 (_initialize_tui_layout): Register "new-layout".
12192 (tui_layout_window::specification): New method.
12193 (tui_layout_window::specification): New method.
12194 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12195 method.
12196 (class tui_layout_window) <specification>: New method.
12197 (class tui_layout_split) <specification>: New method.
12198
416eb92d
TT
121992020-02-22 Tom Tromey <tom@tromey.com>
12200
12201 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12202 * tui/tui-win.c (window_name_completer): Update comment.
12203 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12204 Declare method.
12205 (class tui_layout_window) <replace_window>: Likewise.
12206 (class tui_layout_split) <replace_window>: Likewise.
12207 (tui_set_layout): Don't declare.
12208 (tui_set_initial_layout): Declare function.
12209 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12210 (asm_regs_layout): New globals.
12211 (tui_current_layout, show_layout): Remove.
12212 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12213 (find_layout, tui_apply_layout): New function.
12214 (layout_completer): Remove.
12215 (tui_next_layout): Reimplement.
12216 (tui_next_layout_command): New function.
12217 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12218 (tui_regs_layout): Reimplement.
12219 (tui_regs_layout_command): New function.
12220 (extract_display_start_addr): Rewrite.
12221 (next_layout, prev_layout): Remove.
12222 (tui_layout_window::replace_window): New method.
12223 (tui_layout_split::replace_window): New method.
12224 (destroy_layout): New function.
12225 (layout_list): New global.
12226 (add_layout_command): New function.
12227 (initialize_layouts): Update.
12228 (tui_layout_command): New function.
12229 (_initialize_tui_layout): Install "layout" commands.
12230 * tui/tui-data.h (enum tui_layout_type): Remove.
12231 (tui_current_layout): Don't declare.
12232
0dbc2fc7
TT
122332020-02-22 Tom Tromey <tom@tromey.com>
12234
12235 * tui/tui-regs.c (tui_reg_layout): Remove.
12236 (tui_reg_command): Use tui_regs_layout.
12237 * tui/tui-layout.h (tui_reg_command): Declare.
12238 * tui/tui-layout.c (tui_reg_command): New function.
12239
5afe342e
TT
122402020-02-22 Tom Tromey <tom@tromey.com>
12241
12242 * tui/tui.c (tui_rl_delete_other_windows): Call
12243 tui_remove_some_windows.
12244 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12245 Declare method.
12246 (class tui_layout_window) <remove_windows>: New method.
12247 (class tui_layout_split) <remove_windows>: Declare.
12248 (tui_remove_some_windows): Declare.
12249 * tui/tui-layout.c (tui_remove_some_windows): New function.
12250 (tui_layout_split::remove_windows): New method.
12251
427326a8
TT
122522020-02-22 Tom Tromey <tom@tromey.com>
12253
12254 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12255 * tui/tui-layout.h (tui_next_layout): Declare.
12256 * tui/tui-layout.c (tui_next_layout): New function.
12257
3fe12b6d
TT
122582020-02-22 Tom Tromey <tom@tromey.com>
12259
12260 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12261 correct coordinates.
12262
59b8b5d2
TT
122632020-02-22 Tom Tromey <tom@tromey.com>
12264
12265 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12266 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12267 DATA_WIN case.
12268
2a3d458b
TT
122692020-02-22 Tom Tromey <tom@tromey.com>
12270
12271 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12272 TUI_DISASM_WIN, not tui_win_list.
12273
3f0cbb04
TT
122742020-02-22 Tom Tromey <tom@tromey.com>
12275
12276 * valprint.c (generic_val_print_enum_1)
12277 (val_print_type_code_flags): Style member names.
12278 * rust-lang.c (val_print_struct, rust_print_enum)
12279 (rust_print_struct_def, rust_internal_print_type): Style member
12280 names.
12281 * p-valprint.c (pascal_object_print_value_fields): Style member
12282 names. Only call fprintf_symbol_filtered for static members.
12283 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12284 * f-valprint.c (f_val_print): Style member names.
12285 * f-typeprint.c (f_type_print_base): Style member names.
12286 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12287 call fprintf_symbol_filtered for static members.
12288 (cp_print_class_member): Style member names.
12289 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12290 member names.
12291 * ada-valprint.c (ada_print_scalar): Style enum names.
12292 (ada_val_print_enum): Likewise.
12293 * ada-typeprint.c (print_enum_type): Style enum names.
12294
d4d947ae
TT
122952020-02-21 Tom Tromey <tom@tromey.com>
12296
12297 * psympriv.h (struct partial_symtab): Update comment.
12298
e94e944b
TT
122992020-02-21 Tom Tromey <tromey@adacore.com>
12300
12301 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12302 type is CORE_ADDR.
12303
1eb73179
TV
123042020-02-21 Tom de Vries <tdevries@suse.de>
12305
12306 PR gdb/25534
12307 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12308 if dependencies[i]->user != NULL.
12309
4f180d53
AT
123102020-02-21 Ali Tamur <tamur@google.com>
12311
12312 * dwarf2/read.c (dwarf2_name): Add null check.
12313
22b6cd70
TT
123142020-02-20 Tom Tromey <tom@tromey.com>
12315
12316 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12317 ">=", in binary search.
12318 (dwarf2_find_containing_comp_unit): New overload.
12319 (run_test): New self-test.
12320 (_initialize_dwarf2_read): Register new test.
12321
bd0cf5a6
NC
123222020-02-20 Nelson Chu <nelson.chu@sifive.com>
12323
12324 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12325 * riscv-tdep.h: Likewise.
12326 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12327 rv32-only CSR.
12328 * features/riscv/64bit-csr.xml: Regenerated.
12329
3f702acd
SDJ
123302020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12331 Tom Tromey <tom@tromey.com>
12332
12333 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12334 of 'fputc_unfiltered'.
12335 (putchar_unfiltered): Call 'fputc_unfiltered'.
12336 (fputc_unfiltered): Call 'fputs_unfiltered'.
12337
d13c7322
AB
123382020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12339
12340 * config.in: Regenerate.
12341 * configure: Regenerate.
12342 * configure.ac: Add --with-python-libdir option.
12343 * main.c: Use WITH_PYTHON_LIBDIR.
12344
869d8950
TT
123452020-02-19 Tom Tromey <tom@tromey.com>
12346
12347 * symtab.c (general_symbol_info::compute_and_set_names): Use
12348 obstack_strndup. Simplify call to symbol_set_demangled_name.
12349
298e9637
SM
123502020-02-19 Simon Marchi <simon.marchi@efficios.com>
12351
12352 * dwarf2/read.c (allocate_signatured_type_table,
12353 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12354 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12355 Remove objfile parameter, update all callers.
12356
08410482
DE
123572020-02-19 Doug Evans <dje@google.com>
12358
12359 PR rust/25535
12360 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12361 rust_enum_variant calculation.
12362
dfdeeca1
TT
123632020-02-19 Tom Tromey <tromey@adacore.com>
12364
12365 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12366
2ef5453b
TT
123672020-02-19 Tom Tromey <tromey@adacore.com>
12368
12369 * ada-lang.c (cache_symbol): Use obstack_strdup.
12370
9f1528a1
AB
123712020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12372
12373 * configure: Regenerate.
12374
d3c22fa8
TT
123752020-02-19 Tom Tromey <tromey@adacore.com>
12376
12377 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12378 NULL check.
12379
bf84f706
MR
123802020-02-19 Maciej W. Rozycki <macro@wdc.com>
12381
12382 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12383
d1c9b20f
AB
123842020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12385
12386 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12387 if GDBSERVER is not defined.
12388 (riscv_tdesc_cache): Likewise, also store const target_desc.
12389 (STATIC_IN_GDB): Define.
12390 (riscv_create_target_description): Update declaration with
12391 STATIC_IN_GDB.
12392 (riscv_lookup_target_description): New function, only define if
12393 GDBSERVER is not defined.
12394 * arch/riscv.h (riscv_create_target_description): Declare only
12395 when GDBSERVER is defined.
12396 (riscv_lookup_target_description): New declaration when GDBSERVER
12397 is not defined.
12398 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12399 (riscv_linux_read_features): ...this, and return
12400 riscv_gdbarch_features instead of target_desc.
12401 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12402 (riscv_linux_read_description): Rename to...
12403 (riscv_linux_read_features): ...this.
12404 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12405 Update to use riscv_gdbarch_features and
12406 riscv_lookup_target_description.
12407 * riscv-tdep.c (riscv_find_default_target_description): Use
12408 riscv_lookup_target_description instead of
12409 riscv_create_target_description.
12410
373d7ac0
SM
124112020-02-18 Simon Marchi <simon.marchi@efficios.com>
12412
12413 * valprint.c (generic_val_print_enum_1): When printing a flag
12414 enum with value 0 and there is no enumerator with value 0, print
12415 just "0" instead of "(unknown: 0x0)".
12416
b29a2df0
SM
124172020-02-18 Simon Marchi <simon.marchi@efficios.com>
12418
12419 * valprint.c (generic_val_print_enum_1): Print unknown part of
12420 flag enum in hex.
12421
6740f0cc
SM
124222020-02-18 Simon Marchi <simon.marchi@efficios.com>
12423
12424 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12425 flag enums to contain duplicate enumerators.
12426 * valprint.c (generic_val_print_enum_1): Update comment.
12427
edd45eb0
SM
124282020-02-18 Simon Marchi <simon.marchi@efficios.com>
12429
12430 * dwarf2/read.c: Include "count-one-bits.h".
12431 (update_enumeration_type_from_children): If an enumerator has
12432 multiple bits set, don't treat the enumeration as a "flag enum".
12433 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12434 of flag enums have 0 or 1 bit set.
12435
6d0cf446
BE
124362020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12437
12438 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12439 conversion.
12440 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12441 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12442 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12443 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12444 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12445
7001c1b7
SM
124462020-02-18 Simon Marchi <simon.marchi@efficios.com>
12447
12448 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12449
fdb61c6c
SM
124502020-02-14 Simon Marchi <simon.marchi@efficios.com>
12451
12452 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12453 displaced_step_closure_up.
12454 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12455 (struct displaced_step_closure_up):
12456 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12457 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12458 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12459 Likewise.
12460 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12461 * gdbarch.c, gdbarch.h: Re-generate.
12462 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12463 displaced_step_closure_up.
12464 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12465 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12466 * infrun.h (displaced_step_closure_up): New type alias.
12467 (struct displaced_step_inferior_state) <step_closure>: Change
12468 type to displaced_step_closure_up.
12469 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12470 displaced_step_closure_up.
12471 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12472
a4a38eb4
TT
124732020-02-14 Tom Tromey <tom@tromey.com>
12474
12475 * minidebug.c (gnu_debug_key): New global.
12476 (find_separate_debug_file_in_section): Use it.
12477
e8217e61
SM
124782020-02-14 Simon Marchi <simon.marchi@efficios.com>
12479
12480 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12481 std::unique_ptr.
12482 * gdbarch.c: Re-generate.
12483 * gdbarch.h: Re-generate.
12484 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12485 change.
12486 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12487 type to std::unique_ptr.
12488 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12489 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12490 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12491 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12492 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12493 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12494 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12495 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12496 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12497
d8d83535
SM
124982020-02-14 Simon Marchi <simon.marchi@efficios.com>
12499
12500 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12501 std::unique_ptr.
12502 (displaced_step_clear): Rename to...
12503 (displaced_step_reset): ... this. Just call displaced->reset ().
12504 (displaced_step_clear_cleanup): Rename to...
12505 (displaced_step_reset_cleanup): ... this.
12506 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12507 (displaced_step_fixup): Likewise.
12508 (resume_1): Likewise.
12509 (handle_inferior_event): Restore child's memory before calling
12510 displaced_step_fixup on the parent.
12511 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12512 to std::unique_ptr.
12513 <step_closure>: Change type to std::unique_ptr.
12514
5f661e03
SM
125152020-02-14 Simon Marchi <simon.marchi@efficios.com>
12516
12517 * arm-tdep.c: Include count-one-bits.h.
12518 (cleanup_block_store_pc): Use count_one_bits.
12519 (cleanup_block_load_pc): Use count_one_bits.
12520 (arm_copy_block_xfer): Use count_one_bits.
12521 (thumb2_copy_block_xfer): Use count_one_bits.
12522 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12523 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12524 (thumb_get_next_pcs_raw): Use count_one_bits.
12525 (arm_get_next_pcs_raw): Use count_one_bits_l.
12526 * arch/arm.c (bitcount): Remove.
12527 * arch/arm.h (bitcount): Remove.
12528
8084e579
TT
125292020-02-14 Tom Tromey <tromey@adacore.com>
12530
12531 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12532 Update.
12533 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12534 * dwarf2/loc.c (call_site_find_chain_1): Return
12535 unique_xmalloc_ptr.
12536 (call_site_find_chain): Likewise.
12537
258bf0ee
RB
125382020-02-14 Richard Biener <rguenther@suse.de>
12539
12540 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12541 on expression with division operators.
12542
f98a8458
AKS
125432020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12544
12545 * MAINTAINERS (Write After Approval): Adding myself.
12546
d1437c0e
TT
125472020-02-12 Tom Tromey <tom@tromey.com>
12548
12549 * event-loop.c (event_data, gdb_event, event_handler_func):
12550 Remove.
12551
3d4560f7
TT
125522020-02-12 Tom Tromey <tom@tromey.com>
12553
12554 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12555 (dwarf2_frame_objfile_data): Add comment.
12556 (find_comp_unit, set_comp_unit): New functions.
12557 (dwarf2_frame_find_fde): Use find_comp_unit.
12558 (dwarf2_build_frame_info): Use set_comp_unit.
12559
21982304
TT
125602020-02-12 Tom Tromey <tom@tromey.com>
12561
12562 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12563 (comp_unit): Don't initialize objfile.
12564 (execute_cfa_program): Add text_offset parameter.
12565 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12566 (dwarf2_frame_cache): Update.
12567 (dwarf2_build_frame_info): Don't set "objfile" member.
12568
4debb237
TT
125692020-02-12 Tom Tromey <tom@tromey.com>
12570
12571 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12572 (decode_frame_entry): Likewise.
12573 (dwarf2_build_frame_info): Update.
12574
0d404d44
TT
125752020-02-12 Tom Tromey <tom@tromey.com>
12576
12577 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12578 (decode_frame_entry_1): Use the comp_unit obstack.
12579
a7a3ae5c
TT
125802020-02-12 Tom Tromey <tom@tromey.com>
12581
12582 * dwarf2/frame.c (struct comp_unit): Add initializers and
12583 constructor.
12584 (dwarf2_frame_objfile_data): Store a comp_unit.
12585 (dwarf2_frame_find_fde): Update.
12586 (dwarf2_build_frame_info): Use "new".
12587
a9d65418
TT
125882020-02-12 Tom Tromey <tom@tromey.com>
12589
12590 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12591 (dwarf2_fde_table): Typedef for std::vector.
12592 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12593 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12594 (decode_frame_entry): Update.
12595 (dwarf2_build_frame_info): Use "new".
12596
7559c217
CB
125972020-02-12 Christian Biesinger <cbiesinger@google.com>
12598
12599 * arm-tdep.c (arm_gdbarch_init): Update.
12600 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12601 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12602 have_neon, is_m>: Change to bool.
12603
aeefc73c
CB
126042020-02-12 Christian Biesinger <cbiesinger@google.com>
12605
12606 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12607
d27b8e5f
TT
126082020-02-12 Tom Tromey <tom@tromey.com>
12609
12610 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12611
cd5900f3
HD
126122020-02-12 Hannes Domani <ssbssa@yahoo.de>
12613
12614 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12615 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12616
f056b22b
TT
126172020-02-11 Tom Tromey <tom@tromey.com>
12618
12619 * psymtab.h: Update comment.
12620
f92ff6b5
TT
126212020-02-11 Tom Tromey <tom@tromey.com>
12622
12623 * gdb_obstack.h (struct auto_obstack): Use
12624 DISABLE_COPY_AND_ASSIGN.
12625
3fd6912b
TT
126262020-02-11 Tom Tromey <tom@tromey.com>
12627
12628 * dwarf2/frame.h (struct objfile): Don't forward declare.
12629
69ed9b74
CB
126302020-02-11 Christian Biesinger <cbiesinger@google.com>
12631
12632 * cris-tdep.c (cris_supply_gregset): Change signature to match
12633 what struct regset expects.
12634 (cris_regset): New struct.
12635 (fetch_core_registers): Remove.
12636 (cris_iterate_over_regset_sections): New function.
12637 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12638 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12639
bda874f6
CB
126402020-02-11 Christian Biesinger <cbiesinger@google.com>
12641
12642 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12643 registers.
12644
754e1564
CB
126452020-02-11 Christian Biesinger <cbiesinger@google.com>
12646
12647 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12648
8ddd8e0e
SM
126492020-02-11 Simon Marchi <simon.marchi@efficios.com>
12650
12651 * configure: Re-generate.
12652
898e7f60
SM
126532020-02-11 Simon Marchi <simon.marchi@efficios.com>
12654
12655 * configure: Re-generate.
12656
58df732b
SM
126572020-02-11 Simon Marchi <simon.marchi@efficios.com>
12658
12659 * acinclude: Update warning.m4 path.
12660 * warning.m4: Move to gdbsupport.
12661
da5bd37e
TT
126622020-02-11 Tom Tromey <tromey@adacore.com>
12663
12664 * remote.c (remote_console_output): Update.
12665 * printcmd.c (printf_command): Update.
12666 * event-loop.c (gdb_wait_for_event): Update.
12667 * linux-nat.c (sigchld_handler): Update.
12668 * remote-sim.c (gdb_os_write_stdout): Update.
12669 (gdb_os_flush_stdout): Update.
12670 (gdb_os_flush_stderr): Update.
12671 (gdb_os_write_stderr): Update.
12672 * exceptions.c (print_exception): Update.
12673 * remote-fileio.c (remote_fileio_func_read): Update.
12674 (remote_fileio_func_write): Update.
12675 * tui/tui.c (tui_enable): Update.
12676 * tui/tui-interp.c (tui_interp::init): Update.
12677 * utils.c (init_page_info): Update.
12678 (putchar_unfiltered, fputc_unfiltered): Update.
12679 (gdb_flush): Update.
12680 (emit_style_escape): Update.
12681 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12682 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12683 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12684 (stderr_file::write): Update.
12685 (stderr_file::puts): Update.
12686 * ui-file.h (ui_file_isatty, ui_file_write)
12687 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12688 (ui_file_puts): Don't declare.
12689
85f0dd3c
TV
126902020-02-10 Tom de Vries <tdevries@suse.de>
12691
12692 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12693 sentinel to char *.
12694
2e927613
TV
126952020-02-09 Tom de Vries <tdevries@suse.de>
12696
12697 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12698 filename if it matches "<artificial>".
12699
6bafc845
HD
127002020-02-09 Hannes Domani <ssbssa@yahoo.de>
12701
12702 * windows-tdep.c (struct enum_value_name): New struct.
12703 (create_enum): New function.
12704 (windows_get_siginfo_type): Create and use enum types.
12705
7928d571
HD
127062020-02-09 Hannes Domani <ssbssa@yahoo.de>
12707
12708 * NEWS: Mention $_siginfo support for Windows.
12709 * windows-nat.c (handle_exception): Set siginfo_er.
12710 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12711 (windows_xfer_siginfo): New function.
12712 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12713 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12714 (init_windows_gdbarch_data): New function.
12715 (get_windows_gdbarch_data): New function.
12716 (windows_get_siginfo_type): New function.
12717 (windows_init_abi): Register windows_get_siginfo_type.
12718 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12719
6751ebae
TT
127202020-02-08 Tom Tromey <tom@tromey.com>
12721
12722 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12723 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12724 <keep>: Declare method.
12725 <m_keep>: Remove member.
12726 <~cutu_reader>: Remove.
12727 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12728 (cutu_reader::cutu_reader): Update.
12729 (cutu_reader::keep): Rename from ~cutu_reader.
12730 (process_psymtab_comp_unit, build_type_psymtabs_1)
12731 (process_skeletonless_type_unit, load_partial_comp_unit)
12732 (load_full_comp_unit, dwarf2_read_addr_index)
12733 (read_signatured_type): Update.
12734
135f5437
TT
127352020-02-08 Tom Tromey <tom@tromey.com>
12736
12737 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12738 "want_partial_unit" parameter.
12739 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12740 Inline check for DW_TAG_partial_unit.
12741 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12742
9f66ff1c
TT
127432020-02-08 Tom Tromey <tom@tromey.com>
12744
12745 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12746 read.c.
12747 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12748 read.c.
12749
c8a7a66f
TT
127502020-02-08 Tom Tromey <tom@tromey.com>
12751
12752 * dwarf2/read.c (read_address): Move to comp-unit.c.
12753 (dwarf2_rnglists_process, dwarf2_ranges_process)
12754 (read_attribute_value, dwarf_decode_lines_1)
12755 (var_decode_location, decode_locdesc): Update.
12756 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12757 read.c. Remove "cu" parameter.
12758 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12759 method.
12760
8266302d
TT
127612020-02-08 Tom Tromey <tom@tromey.com>
12762
12763 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12764 (read_indirect_line_string): Update.
12765 * dwarf2/comp-unit.c (read_offset): Remove.
12766 (read_comp_unit_head): Update.
12767 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12768 method.
12769 (read_offset): Don't declare.
12770
4057dfde
TT
127712020-02-08 Tom Tromey <tom@tromey.com>
12772
12773 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12774 * dwarf2/read.c (struct comp_unit_head): Move to
12775 dwarf2/comp-unit.h.
12776 (enum class rcuh_kind): Move to comp-unit.h.
12777 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12778 (read_comp_unit_head, error_check_comp_unit_head)
12779 (read_and_check_comp_unit_head): Move to comp-unit.c.
12780 (read_offset, dwarf_unit_type_name): Likewise.
12781 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12782 (cutu_reader::cutu_reader, read_call_site_scope)
12783 (find_partial_die, follow_die_offset): Update.
12784 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12785
24aa364d
TT
127862020-02-08 Tom Tromey <tom@tromey.com>
12787
12788 * dwarf2/read.c (read_offset_1): Move to leb.c.
12789 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12790 (dwarf_decode_macro_bytes): Update.
12791 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12792 * dwarf2/leb.h (read_offset): Declare.
12793
2c7d5afc
TT
127942020-02-08 Tom Tromey <tom@tromey.com>
12795
12796 * dwarf2/read.c (dwarf2_section_size): Remove.
12797 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12798 Update.
12799 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12800
4075cb26
TT
128012020-02-08 Tom Tromey <tom@tromey.com>
12802
12803 * dwarf2/read.c (read_initial_length): Move to leb.c.
12804 * dwarf2/leb.h (read_initial_length): Declare.
12805 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12806 handle_nonstd parameter.
12807 * dwarf2/frame.c (read_initial_length): Remove.
12808 (decode_frame_entry_1): Update.
12809
09ba997f
TT
128102020-02-08 Tom Tromey <tom@tromey.com>
12811
12812 * dwarf2/loc.c (dwarf2_find_location_expression)
12813 (dwarf_evaluate_loc_desc::get_tls_address)
12814 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12815 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12816 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12817 (dwarf2_compile_property_to_c)
12818 (dwarf2_loc_desc_get_symbol_read_needs)
12819 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12820 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12821 (loclist_describe_location, loclist_tracepoint_var_ref)
12822 (loclist_generate_c_location): Update.
12823 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12824 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12825 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12826 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12827 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12828 (dwarf2_per_cu_data::addr_size)
12829 (dwarf2_per_cu_data::ref_addr_size)
12830 (dwarf2_per_cu_data::text_offset)
12831 (dwarf2_per_cu_data::addr_type): Now methods.
12832 (per_cu_header_read_in): Make per_cu "const".
12833 (dwarf2_version): Remove.
12834 (dwarf2_per_cu_data::int_type): Now a method.
12835 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12836 (set_die_type, read_array_type, read_subrange_index_type)
12837 (read_tag_string_type, read_subrange_type): Update.
12838 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12839 offset_size, ref_addr_size, text_offset, addr_type, version,
12840 objfile, int_type, addr_sized_int_type>: Declare methods.
12841
96c738c0
TT
128422020-02-08 Tom Tromey <tom@tromey.com>
12843
12844 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12845 Move earlier.
12846
8fdd972c
TT
128472020-02-08 Tom Tromey <tom@tromey.com>
12848
12849 * dwarf2/read.h (dwarf_line_debug): Declare.
12850 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12851 * dwarf2/read.c: Move line_header code to new files.
12852 (dwarf_line_debug): No longer static.
12853 * dwarf2/line-header.c: New file.
12854 * dwarf2/line-header.h: New file.
12855
03075812
TT
128562020-02-08 Tom Tromey <tom@tromey.com>
12857
12858 * dwarf2/read.c (struct line_header) <file_full_name,
12859 file_file_name>: Return unique_xmalloc_ptr.
12860 (line_header::file_file_name): Update.
12861 (line_header::file_full_name): Update.
12862 (dw2_get_file_names_reader): Update.
12863 (macro_start_file): Update.
12864
bb822404
TT
128652020-02-08 Tom Tromey <tom@tromey.com>
12866
12867 * dwarf2/read.c (struct line_header) <file_full_name,
12868 file_file_name>: Declare methods.
12869 (dw2_get_file_names_reader): Update.
12870 (file_file_name): Now a method.
12871 (file_full_name): Likewise.
12872 (macro_start_file): Update.
12873
009b64fc
TT
128742020-02-08 Tom Tromey <tom@tromey.com>
12875
12876 * dwarf2/read.c (dwarf_always_disassemble)
12877 (show_dwarf_always_disassemble): Move to loc.c.
12878 (_initialize_dwarf2_read): Move "always-disassemble" registration
12879 to loc.c.
12880 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12881 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12882 static.
12883 (show_dwarf_always_disassemble): Move from read.c.
12884 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12885
5895093f
TT
128862020-02-08 Tom Tromey <tom@tromey.com>
12887
12888 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12889 (create_quick_file_names_table): Return htab_up.
12890 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12891 Update.
12892 * dwarf2/read.h (struct dwarf2_per_objfile)
12893 <quick_file_names_table>: Now htab_up.
12894
b3b32279
TT
128952020-02-08 Tom Tromey <tom@tromey.com>
12896
12897 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12898
1d33d811
TT
128992020-02-08 Tom Tromey <tom@tromey.com>
12900
12901 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12902 Rewrite.
12903 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12904 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12905 (abbrev_table::abbrev_table): No longer inline.
12906 (ABBREV_HASH_SIZE): Remove.
12907 (abbrev_table::m_abbrevs): Now an htab_up.
12908
86de1d91
TT
129092020-02-08 Tom Tromey <tom@tromey.com>
12910
12911 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12912 (cutu_reader): Update.
12913 (build_type_psymtabs_1): Update.
12914 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12915 (abbrev_table::alloc_abbrev): Update.
12916 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12917 (abbrev_table::read): New static method, renamed from
12918 abbrev_table_read_table.
12919 (abbrev_table::alloc_abbrev)
12920 (abbrev_table::add_abbrev): Now private.
12921 (abbrev_table::abbrev_table): Now private.
12922 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12923
0335378b
TT
129242020-02-08 Tom Tromey <tom@tromey.com>
12925
12926 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12927 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12928 htab_up.
12929
48b490f2
TT
129302020-02-08 Tom Tromey <tom@tromey.com>
12931
12932 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12933 htab_up.
12934 (lookup_dwo_unit_in_dwp): Update.
12935 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12936 on obstack.
12937
bc68fb19
TT
129382020-02-08 Tom Tromey <tom@tromey.com>
12939
12940 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12941 obstack.
12942
d15acc42
TT
129432020-02-08 Tom Tromey <tom@tromey.com>
12944
12945 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12946 line_header_hash.
12947 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12948 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12949 Change type to htab_up.
12950
eaa5fa8b
TT
129512020-02-08 Tom Tromey <tom@tromey.com>
12952
12953 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12954 htab_up. Don't allocate on obstack.
12955 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12956 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12957 Change type to htab_up.
12958
b0b6a987
TT
129592020-02-08 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12962 Change type to htab_up.
12963 * dwarf2/read.c (create_signatured_type_table_from_index)
12964 (create_signatured_type_table_from_debug_names)
12965 (create_all_type_units, add_type_unit)
12966 (lookup_dwo_signatured_type, lookup_signatured_type)
12967 (process_skeletonless_type_unit): Update.
12968 (create_debug_type_hash_table, create_debug_types_hash_table):
12969 Change type of types_htab.
12970 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12971 htab_up. Don't allocate on obstack.
12972 (create_cus_hash_table): Change type of cus_htab parameter.
12973 (struct dwo_file) <cus, tus>: Now htab_up.
12974 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12975 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12976 (queue_and_load_all_dwo_tus): Update.
12977 * dwarf2/index-write.c (write_gdbindex): Update.
12978 (write_debug_names): Update.
12979
39856def
TT
129802020-02-08 Tom Tromey <tom@tromey.com>
12981
12982 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12983 dwarf2/read.c. Remove "next" member. Add constructor ntad
12984 destructor.
12985 (struct dwarf2_per_objfile) <queue>: New member.
12986 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12987 dwarf2/read.h.
12988 (dwarf2_queue, dwarf2_queue_tail): Remove.
12989 (class dwarf2_queue_guard): Add parameter to constructor. Use
12990 DISABLE_COPY_AND_ASSIGN.
12991 <m_per_objfile>: New member.
12992 <~dwarf2_queue_guard>: Rewrite.
12993 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12994 Update.
12995 (~dwarf2_queue_item): New.
12996
3e225074
TT
129972020-02-08 Tom Tromey <tom@tromey.com>
12998
12999 * dwarf2/read.c (struct die_info) <has_children>: New member.
13000 (dw2_get_file_names_reader): Remove has_children.
13001 (dw2_get_file_names): Update.
13002 (read_cutu_die_from_dwo): Remove has_children.
13003 (cutu_reader::init_tu_and_read_dwo_dies)
13004 (cutu_reader::cutu_reader): Update.
13005 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13006 Remove has_children.
13007 (build_type_psymtabs_1, process_skeletonless_type_unit)
13008 (load_partial_comp_unit, load_full_comp_unit): Update.
13009 (create_dwo_cu_reader): Remove has_children.
13010 (create_cus_hash_table, read_die_and_children): Update.
13011 (read_full_die_1,read_full_die): Remove has_children.
13012 (read_signatured_type): Update.
13013 (class cutu_reader) <has_children>: Remove.
13014
82ca8957
TT
130152020-02-08 Tom Tromey <tom@tromey.com>
13016
13017 * dwarf2/expr.c: Rename from dwarf2expr.c.
13018 * dwarf2/expr.h: Rename from dwarf2expr.h.
13019 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13020 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13021 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13022 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13023 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13024 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13025 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13026 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13027 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13028 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13029 * dwarf2/loc.c: Rename from dwarf2loc.c.
13030 * dwarf2/loc.h: Rename from dwarf2loc.h.
13031 * dwarf2/read.c: Rename from dwarf2read.c.
13032 * dwarf2/read.h: Rename from dwarf2read.h.
13033 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13034 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13035 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13036 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13037 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13038 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13039 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13040 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13041 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13042 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13043 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13044 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13045 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13046 Update.
13047 * Makefile.in (COMMON_SFILES): Update.
13048 (HFILES_NO_SRCDIR): Update.
13049
9e35d499
TT
130502020-02-08 Tom Tromey <tom@tromey.com>
13051
13052 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13053 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13054
1eba2311
TT
130552020-02-08 Tom Tromey <tom@tromey.com>
13056
13057 * dwarf2read.h (struct die_info): Don't declare.
13058
e41c2da2
TT
130592020-02-08 Tom Tromey <tom@tromey.com>
13060
13061 * dwarf2read.h (die_info_ptr): Remove typedef.
13062
4fc6c0d5
TT
130632020-02-08 Tom Tromey <tom@tromey.com>
13064
13065 * dwarf2read.c (read_call_site_scope)
13066 (handle_data_member_location, dwarf2_add_member_fn)
13067 (mark_common_block_symbol_computed, read_common_block)
13068 (attr_to_dynamic_prop, partial_die_info::read)
13069 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13070 (dwarf2_symbol_mark_computed, set_die_type): Update.
13071 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13072 method.
13073 (attr_form_is_block): Don't declare.
13074 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13075
cd6c91b4
TT
130762020-02-08 Tom Tromey <tom@tromey.com>
13077
13078 * dwarf2read.c (dwarf2_find_base_address, )
13079 (read_call_site_scope, rust_containing_type)
13080 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13081 (handle_data_member_location, dwarf2_add_member_fn)
13082 (get_alignment, read_structure_type, process_structure_scope)
13083 (mark_common_block_symbol_computed, read_common_block)
13084 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13085 (partial_die_info::read, read_attribute_value, new_symbol)
13086 (lookup_die_type, dwarf2_get_ref_die_offset)
13087 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13088 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13089 (dwarf2_symbol_mark_computed): Update.
13090 * dwarf2/attribute.h (struct attribute) <value_as_address,
13091 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13092 methods.
13093 (value_as_address, attr_form_is_section_offset)
13094 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13095 * dwarf2/attribute.c (attribute::value_as_address)
13096 (attribute::form_is_section_offset, attribute::form_is_constant)
13097 (attribute::form_is_ref): Now methods.
13098
162dce55
TT
130992020-02-08 Tom Tromey <tom@tromey.com>
13100
13101 * dwarf2read.c (struct attribute, DW_STRING)
13102 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13103 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13104 (attr_form_is_block, attr_form_is_section_offset)
13105 (attr_form_is_constant, attr_form_is_ref): Move.
13106 * dwarf2/attribute.h: New file.
13107 * dwarf2/attribute.c: New file, from dwarf2read.c.
13108 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13109
3054dd54
TT
131102020-02-08 Tom Tromey <tom@tromey.com>
13111
13112 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13113 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13114 Move.
13115 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13116 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13117 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13118 abbrev.c.
13119 * dwarf2/abbrev.h: New file.
13120 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13121 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13122
96b79293
TT
131232020-02-08 Tom Tromey <tom@tromey.com>
13124
13125 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13126 (dwarf2_section_size, dwarf2_get_section_info)
13127 (create_signatured_type_table_from_debug_names)
13128 (create_addrmap_from_aranges, read_debug_names_from_section)
13129 (get_gdb_index_contents_from_section, read_comp_unit_head)
13130 (error_check_comp_unit_head, read_abbrev_offset)
13131 (create_debug_type_hash_table, init_cu_die_reader)
13132 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13133 (read_comp_units_from_section, create_cus_hash_table)
13134 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13135 (create_dwp_v2_section, dwarf2_rnglists_process)
13136 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13137 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13138 (read_indirect_string_from_dwz, read_addr_index_1)
13139 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13140 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13141 (fill_in_loclist_baton): Update.
13142 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13143 get_containing_section, get_bfd_owner, get_bfd_section,
13144 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13145 (dwarf2_read_section, get_section_name, get_section_file_name)
13146 (get_containing_section, get_section_bfd_owner)
13147 (get_section_bfd_section, get_section_name, get_section_file_name)
13148 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13149 declare.
13150 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13151 (dwarf2_section_info::get_bfd_owner)
13152 (dwarf2_section_info::get_bfd_section)
13153 (dwarf2_section_info::get_name)
13154 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13155 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13156 (dwarf2_section_info::read): Now methods.
13157 * dwarf-index-write.c (class debug_names): Update.
13158
2c86cff9
TT
131592020-02-08 Tom Tromey <tom@tromey.com>
13160
13161 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13162 Move to dwarf2/section.h.
13163 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13164 (get_section_bfd_section, get_section_name)
13165 (get_section_file_name, get_section_id, get_section_flags)
13166 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13167 dwarf2/section.c.
13168 * dwarf2/section.h: New file.
13169 * dwarf2/section.c: New file, from dwarf2read.c.
13170 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13171
f4382c45
TT
131722020-02-08 Tom Tromey <tom@tromey.com>
13173
13174 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13175 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13176 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13177 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13178 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13179 * dwarf2/leb.h: New file, from dwarf2read.c.
13180 * dwarf2/leb.c: New file, from dwarf2read.c.
13181 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13182 Remove.
13183 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13184 (COMMON_SFILES): Add dwarf2/leb.c.
13185
01840b7a
JB
131862020-02-08 Joel Brobecker <brobecker@adacore.com>
13187
13188 GDB 9.1 released.
13189
dfcb27e4
IB
131902020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13191
13192 PR gdb/25190:
aac66a4c
SM
13193 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13194 * gdb/remote.c (remote_console_output): Update.
13195 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13196 (ui_file_puts): ...this.
13197 * gdb/ui-file.h (ui_file_puts): Add declaration.
13198 * gdb/utils.c (emit_style_escape): Update.
13199 (flush_wrap_buffer): Update.
13200 (fputs_maybe_filtered): Update.
13201 (fputs_unfiltered): Add function.
dfcb27e4 13202
faa17681
IB
132032020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13204
aac66a4c
SM
13205 * gdb/event-loop.c (gdb_wait_for_event): Update.
13206 * gdb/printcmd.c (printf_command): Update.
13207 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13208 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13209 (gdb_os_flush_stderr): Update.
13210 * gdb/remote.c (remote_console_output): Update.
13211 * gdb/ui-file.c (gdb_flush): Rename to...
13212 (ui_file_flush): ...this.
13213 (stderr_file::write): Update.
13214 (stderr_file::puts): Update.
13215 * gdb/ui-file.h (gdb_flush): Rename to...
13216 (ui_file_flush): ...this.
13217 * gdb/utils.c (gdb_flush): Add function.
13218 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13219
5abbbe1d
TT
132202020-02-07 Tom Tromey <tromey@adacore.com>
13221
13222 PR breakpoints/24915:
13223 * source.c (find_and_open_source): Do not check basenames_may_differ.
13224
919adfe8
TT
132252020-02-07 Tom Tromey <tom@tromey.com>
13226
13227 * README: Update gdbserver documentation.
13228 * gdbserver: Move to top level.
13229 * configure.tgt (build_gdbserver): Remove.
13230 * configure.ac: Remove --enable-gdbserver.
13231 * configure: Rebuild.
13232 * Makefile.in (distclean): Don't mention gdbserver.
13233
1d5d29e7
SV
132342020-02-06 Shahab Vahedi <shahab@synopsys.com>
13235
13236 * source-cache.c (source_cache::ensure): Surround
13237 get_plain_source_lines with a try/catch.
13238 (source_cache::get_line_charpos): Get rid of try/catch
13239 and only check for the return value of "ensure".
13240 * tui/tui-source.c (tui_source_window::set_contents):
13241 Simplify "nlines" calculation.
13242
6eb1129c
SV
132432020-02-06 Shahab Vahedi <shahab@synopsys.com>
13244
13245 * MAINTAINERS (Write After Approval): Add myself.
13246
c6a42d11
CB
132472020-02-05 Christian Biesinger <cbiesinger@google.com>
13248
13249 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13250 function call.
13251
c8ecdda6
CB
132522020-02-05 Christian Biesinger <cbiesinger@google.com>
13253
13254 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13255
f6480e70
MR
132562020-02-05 Maciej W. Rozycki <macro@wdc.com>
13257
13258 * nat/riscv-linux-tdesc.h: New file.
13259 * nat/riscv-linux-tdesc.c: New file, taking code from...
13260 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13261 ... here.
13262 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13263 NATDEPFILES.
13264
dcc9fbc6
AB
132652020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13266
13267 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13268 we don't set the fake simulator ptid to the null_ptid.
13269
719546c4
SM
132702020-02-03 Simon Marchi <simon.marchi@efficios.com>
13271
13272 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13273 * gdbthread.h (class thread_info) <resumed>: Likewise.
13274 * infrun.c (resume_1): Likewise.
13275 (proceed): Likewise.
13276 (infrun_thread_stop_requested): Likewise.
13277 (stop_all_threads): Likewise.
13278 (handle_inferior_event): Likewise.
13279 (restart_threads): Likewise.
13280 (finish_step_over): Likewise.
13281 (keep_going_stepped_thread): Likewise.
13282 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13283 (linux_handle_extended_wait): Likewise.
13284 * record-btrace.c (get_thread_current_frame_id): Likewise.
13285 * record-full.c (record_full_wait_1): Likewise.
13286 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13287 * target.c (target_resume): Likewise.
13288 * thread.c (set_running_thread): Likewise.
13289
e409c542
AKS
132902020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13291
13292 * f-valprint.c (f77_print_array_1): Changed datatype of index
13293 variable to LONGEST from int to enable it to contain bound
13294 values correctly.
13295
ee98c0da
MR
132962020-02-03 Maciej W. Rozycki <macro@wdc.com>
13297
13298 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13299 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13300 offsets according to FLEN determined.
13301 (riscv_linux_nat_target::read_description): Determine FLEN
13302 dynamically.
13303 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13304 according to FLEN determined.
13305 (riscv_linux_nat_target::store_registers): Likewise.
13306
aa66aac4
SV
133072020-02-01 Shahab Vahedi <shahab@synopsys.com>
13308
13309 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13310 when reg->group is empty and reggroup is not.
13311
fd9faca8
TT
133122020-01-31 Tom Tromey <tromey@adacore.com>
13313
13314 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13315 Call beneath target's mourn_inferior after unpushing.
13316
42330a68
AB
133172020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13318
13319 PR tui/9765
13320 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13321 have enough lines to fill the screen, still return the lowest
13322 address we found.
13323
7a27a45b
AB
133242020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13325
13326 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13327 '-', '<', and '>' commands.
13328
c47f70e2
PA
133292020-01-29 Pedro Alves <palves@redhat.com>
13330 Sergio Durigan Junior <sergiodj@redhat.com>
13331
13332 * infcmd.c (construct_inferior_arguments): Assert that
13333 'argc' is greater than 0.
13334
5133a315
LM
133352020-01-29 Luis Machado <luis.machado@linaro.org>
13336
13337 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13338 (BRK_INSN_MASK): Define to 0xd4200000.
13339 (aarch64_program_breakpoint_here_p): New function.
13340 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13341 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13342 breakpoint.c.
13343 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13344 breakpoint.h
13345 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13346 call gdbarch_program_breakpoint_here_p.
13347 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13348 default_program_breakpoint_here_p, changed return type to bool and
13349 simplified.
13350 * breakpoint.h (program_breakpoint_here): Moved prototype to
13351 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13352 return type to bool.
13353 * gdbarch.c: Regenerate.
13354 * gdbarch.h: Regenerate.
13355 * gdbarch.sh (program_breakpoint_here_p): New method.
13356 * infrun.c (handle_signal_stop): Call
13357 gdbarch_program_breakpoint_here_p.
13358
168f8c6b
TT
133592020-01-26 Tom Tromey <tom@tromey.com>
13360
13361 * ctfread.c (struct ctf_fp_info): Reindent.
13362 (_initialize_ctfread): Remove.
13363
128a391f
TT
133642020-01-26 Tom Tromey <tom@tromey.com>
13365
13366 * psymtab.c (partial_map_expand_apply)
13367 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13368 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13369 (psym_print_stats, psym_expand_symtabs_for_function)
13370 (psym_map_symbol_filenames, psym_map_matching_symbols)
13371 (psym_expand_symtabs_matching)
13372 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13373 (maintenance_check_psymtabs): Use new methods.
13374 * psympriv.h (struct partial_symtab) <readin_p,
13375 get_compunit_symtab>: New methods.
13376 <readin, compunit_symtab>: Remove members.
13377 (struct standard_psymtab): New.
13378 (struct legacy_psymtab): Derive from standard_psymtab.
13379 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13380 standard_psymtab.
13381 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13382
0494dbec
TT
133832020-01-26 Tom Tromey <tom@tromey.com>
13384
13385 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13386 read_dependencies. Add assert.
13387 * psymtab.c (partial_symtab::read_dependencies): New method.
13388 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13389 method.
13390 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13391 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13392 read_dependencies.
13393 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13394 Add assert.
13395
8566b89b
TT
133962020-01-26 Tom Tromey <tom@tromey.com>
13397
13398 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13399 Call expand_psymtab.
13400 (xcoff_read_symtab): Call expand_psymtab.
13401 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13402 legacy_expand_psymtab.
13403 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13404 method.
13405 (struct legacy_psymtab) <expand_psymtab>: Implement.
13406 <legacy_expand_psymtab>: New member.
13407 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13408 (parse_partial_symbols): Set legacy_expand_psymtab.
13409 (psymtab_to_symtab_1): Change argument order. Call
13410 expand_psymtab.
13411 (new_psymtab): Set legacy_expand_psymtab.
13412 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13413 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13414 expand_psymtab.
13415 (dwarf2_psymtab::expand_psymtab): Rename from
13416 psymtab_to_symtab_1. Call expand_psymtab.
13417 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13418 (dbx_end_psymtab): Likewise.
13419 (dbx_psymtab_to_symtab_1): Change argument order. Call
13420 expand_psymtab.
13421 (dbx_read_symtab): Call expand_psymtab.
13422 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13423 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13424 (ctf_psymtab::read_symtab): Call expand_psymtab.
13425
077cbab2
TT
134262020-01-26 Tom Tromey <tom@tromey.com>
13427
13428 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13429 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13430 messages.
13431 * mdebugread.c (mdebug_read_symtab): Remove prints.
13432 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13433 assert.
13434 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13435
891813be
TT
134362020-01-26 Tom Tromey <tom@tromey.com>
13437
13438 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13439 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13440 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13441 legacy_symtab.
13442 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13443 * psymtab.c (psymtab_to_symtab): Call method.
13444 (dump_psymtab): Update.
13445 * psympriv.h (struct partial_symtab): Add virtual destructor.
13446 <read_symtab>: New method.
13447 (struct legacy_symtab): New.
13448 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13449 (struct pst_map) <pst>: Now a legacy_psymtab.
13450 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13451 (new_psymtab): Use legacy_psymtab.
13452 * dwarf2read.h (struct dwarf2_psymtab): New.
13453 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13454 * dwarf2read.c (dwarf2_create_include_psymtab)
13455 (dwarf2_build_include_psymtabs, create_type_unit_group)
13456 (create_partial_symtab, process_psymtab_comp_unit_reader)
13457 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13458 (set_partial_user): Use dwarf2_psymtab.
13459 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13460 (psymtab_to_symtab_1, process_full_comp_unit)
13461 (process_full_type_unit, dwarf2_ranges_read)
13462 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13463 (dwarf_decode_lines): Use dwarf2_psymtab.
13464 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13465 (add_address_entry_worker, write_one_signatured_type)
13466 (recursively_count_psymbols, recursively_write_psymbols)
13467 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13468 (write_debug_names): Likewise.
13469 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13470 <pst>: Now a legacy_psymtab.
13471 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13472 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13473 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13474 * ctfread.c (struct ctf_psymtab): New.
13475 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13476 ctf_psymtab.
13477 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13478 (create_partial_symtab): Return a ctf_psymtab.
13479 (scan_partial_symbols): Update.
13480
c3693a1d
TT
134812020-01-26 Tom Tromey <tom@tromey.com>
13482
13483 * xcoffread.c (xcoff_start_psymtab): Use new.
13484 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13485 renamed from start_psymtab_common.
13486 * psympriv.h (struct partial_symtab): Add new constructor.
13487 (start_psymtab_common): Don't declare.
13488 * mdebugread.c (parse_partial_symbols): Use new.
13489 * dwarf2read.c (create_partial_symtab): Use new.
13490 * dbxread.c (start_psymtab): Use new.
13491 * ctfread.c (create_partial_symtab): Use new.
13492
32caafd0
TT
134932020-01-26 Tom Tromey <tom@tromey.com>
13494
13495 * xcoffread.c (xcoff_end_psymtab): Use new.
13496 * psymtab.c (start_psymtab_common): Use new.
13497 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13498 Update.
13499 * psympriv.h (struct partial_symtab): Add parameters to
13500 constructor. Don't inline.
13501 (allocate_psymtab): Don't declare.
13502 * mdebugread.c (new_psymtab): Use new.
13503 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13504 * dbxread.c (dbx_end_psymtab): Use new.
13505
abaa2f23
TT
135062020-01-26 Tom Tromey <tom@tromey.com>
13507
13508 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13509 allocate_psymtab. Update documentation.
13510 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13511 allocate_psymtab. Do not use new.
13512 (allocate_psymtab): Use new. Update.
13513
6d94535f
TT
135142020-01-26 Tom Tromey <tom@tromey.com>
13515
13516 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13517 * psymtab.c (psym_print_stats): Update.
13518 * psympriv.h (struct partial_symtab) <readin,
13519 psymtabs_addrmap_supported, anonymous>: Now bool.
13520 * mdebugread.c (psymtab_to_symtab_1): Update.
13521 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13522 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13523 (process_full_comp_unit, process_full_type_unit): Update.
13524 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13525 * ctfread.c (psymtab_to_symtab): Update.
13526
6f17252b
TT
135272020-01-26 Tom Tromey <tom@tromey.com>
13528
13529 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13530 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13531 * psymtab.c (psymtab_storage): Delete psymtabs.
13532 (psymtab_storage::allocate_psymtab): Use new.
13533 (psymtab_storage::discard_psymtab): Use delete.
13534 * psympriv.h (struct partial_symtab): Add constructor and
13535 initializers.
13536
f6f1cebc
TT
135372020-01-26 Tom Tromey <tom@tromey.com>
13538
13539 * machoread.c: Do not include psympriv.h.
13540
e47e48f6
PW
135412020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13542
13543 * NEWS: Mention the new option and the set/show commands.
13544
a2fedca9
PW
135452020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13546
13547 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13548 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13549 (validate_exec_file): New variables, enums, functions.
13550 (exec_file_locate_attach, print_section_info): Style the filenames.
13551 (_initialize_exec): Install show_exec_file_mismatch_command and
13552 set_exec_file_mismatch_command.
13553 * gdbcore.h (validate_exec_file): Declare.
13554 * infcmd.c (attach_command): Call validate_exec_file.
13555 * remote.c ( remote_target::remote_add_inferior): Likewise.
13556
7ffa82e1
AB
135572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13558
13559 * frame.c (find_frame_sal): Move call to get_next_frame into more
13560 inner scope.
13561 * inline-frame.c (inilne_state) <inline_state>: Update argument
13562 types.
13563 (inilne_state) <skipped_symbol>: Rename to...
13564 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13565 (skip_inline_frames): Build vector of skipped symbols and use this
13566 to reate the inline_state.
13567 (inline_skipped_symbol): Add a comment and some assertions, fetch
13568 skipped symbol from the list.
13569
3d92a3e3
AB
135702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13571
13572 * buildsym.c (lte_is_less_than): Delete.
13573 (buildsym_compunit::end_symtab_with_blockvector): Create local
13574 lambda function to sort line table entries, and use
13575 std::stable_sort instead of std::sort.
13576 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13577 markers when looking for a previous line.
13578
94a72be7
AB
135792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13580
13581 * dwarf2read.c (lnp_state_machine::record_line): Include
13582 end_sequence parameter in debug print out. Record the line if we
13583 are at an end_sequence marker even if it's not the start of a
13584 statement.
13585 * symmisc.c (maintenance_print_one_line_table): Print end of
13586 sequence markers with 'END' not '0'.
13587
53af73bf
PA
135882020-01-24 Pedro Alves <palves@redhat.com>
13589
13590 PR gdb/25410
13591 * thread.c (scoped_restore_current_thread::restore): Use
13592 switch_to_inferior_no_thread.
13593 * exec.c: Include "progspace-and-thread.h".
13594 (add_target_sections, remove_target_sections):
13595 scoped_restore_current_pspace_and_thread instead of
13596 scoped_restore_current_thread.
13597 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13598 and aspace to the inferior before calling clone_program_space.
13599 Remove stale comment.
13600
3050c6f4
CB
136012020-01-24 Christian Biesinger <cbiesinger@google.com>
13602
13603 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13604 (arm_netbsd_nat_target::fetch_registers): ...this.
13605 (arm_nbsd_nat_target::store_registers): Rename to...
13606 (arm_netbsd_nat_target::store_registers): ...this.
13607
73685c7e
CB
136082020-01-24 Christian Biesinger <cbiesinger@google.com>
13609
13610 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13611 register_t.
13612
89203d40
CB
136132020-01-24 Christian Biesinger <cbiesinger@google.com>
13614
13615 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13616 Update comment.
13617 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13618 Likewise.
13619 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13620 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13621 the correct replacement (iterate_over_regset_sections).
13622 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13623 Update comment.
13624
1ba1ac88
AB
136252020-01-24 Graham Markall <graham.markall@embecosm.com>
13626
13627 PR gdb/23718
13628 * gdb/python/python.c (execute_gdb_command): Call
13629 async_enable_stdin in catch block.
13630
f3364a6d
AB
136312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13632
13633 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13634 SWITCH_THRU_ALL_UIS.
13635
733d0a67
AB
136362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13637
13638 PR tui/9765
13639 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13640 comment, add extra parameter, and update to store previous symbol
13641 when appropriate.
13642 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13643 add extra parameter.
13644 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13645 remove unneeded parameter, add try/catch around gdb_print_insn,
13646 rewrite to add items to asm_lines vector.
13647 (tui_find_backward_disassembly_start_address): New function.
13648 (tui_find_disassembly_address): Updated throughout.
13649 (tui_disasm_window::set_contents): Update for changes to
13650 tui_disassemble.
13651 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13652 number of lines to scroll.
13653
b3b3bada
SM
136542020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13655
13656 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13657 (SECT_OFF_DATA): Likewise.
13658 (SECT_OFF_RODATA): Likewise.
13659 (SECT_OFF_TEXT): Likewise.
13660 (SECT_OFF_BSS): Likewise.
13661 (struct objfile) <text_section_offset, data_section_offset>: New
13662 methods.
13663 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13664 objfile::text_section_offset.
13665 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13666 * coffread.c (coff_symtab_read): Likewise.
13667 (enter_linenos): Likewise.
13668 (process_coff_symbol): Likewise.
13669 * ctfread.c (get_objfile_text_range): Likewise.
13670 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13671 Use objfile::data_section_offset.
13672 * dwarf2-frame.c (execute_cfa_program): Use
13673 objfile::text_section_offset.
13674 (dwarf2_frame_find_fde): Likewise.
13675 * dwarf2read.c (create_addrmap_from_index): Likewise.
13676 (create_addrmap_from_aranges): Likewise.
13677 (dw2_find_pc_sect_compunit_symtab): Likewise.
13678 (process_psymtab_comp_unit_reader): Likewise.
13679 (add_partial_symbol): Likewise.
13680 (add_partial_subprogram): Likewise.
13681 (process_full_comp_unit): Likewise.
13682 (read_file_scope): Likewise.
13683 (read_func_scope): Likewise.
13684 (read_lexical_block_scope): Likewise.
13685 (read_call_site_scope): Likewise.
13686 (dwarf2_rnglists_process): Likewise.
13687 (dwarf2_ranges_process): Likewise.
13688 (dwarf2_ranges_read): Likewise.
13689 (dwarf_decode_lines_1): Likewise.
13690 (new_symbol): Likewise.
13691 (dwarf2_fetch_die_loc_sect_off): Likewise.
13692 (dwarf2_per_cu_text_offset): Likewise.
13693 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13694 * hppa-tdep.c (read_unwind_info): Likewise.
13695 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13696 * psympriv.h (struct partial_symtab): Likewise.
13697 * psymtab.c (find_pc_sect_psymtab): Likewise.
13698 * solib-svr4.c (enable_break): Likewise.
13699 * stap-probe.c (relocate_address): Use
13700 objfile::data_section_offset.
13701 * xcoffread.c (enter_line_range): Use
13702 objfile::text_section_offset.
13703 (read_xcoff_symtab): Likewise.
13704
ab53f382
SM
137052020-01-23 Simon Marchi <simon.marchi@efficios.com>
13706
13707 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13708 declaration to narrower scopes.
13709
e7eee665
SM
137102020-01-23 Simon Marchi <simon.marchi@efficios.com>
13711
13712 * darwin-nat.h (struct darwin_exception_msg, enum
13713 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13714 Move up.
13715 (class darwin_nat_target) <wait_1, check_new_threads,
13716 decode_exception_message, decode_message, stop_inferior,
13717 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13718 * darwin-nat.c (darwin_check_new_threads): Rename to...
13719 (darwin_nat_target::check_new_threads): ... this.
13720 (darwin_suspend_inferior_it): Remove.
13721 (darwin_decode_exception_message): Rename to...
13722 (darwin_nat_target::decode_exception_message): ... this.
13723 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13724 (darwin_decode_message): Rename to...
13725 (darwin_nat_target::decode_message): ... this.
13726 (cancel_breakpoint): Rename to...
13727 (darwin_nat_target::cancel_breakpoint): ... this.
13728 (darwin_wait): Rename to...
13729 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13730 instead of iterate_over_inferiors.
13731 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13732 (darwin_stop_inferior): Rename to...
13733 (darwin_nat_target::stop_inferior): ... this.
13734 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13735 (darwin_init_thread_list): Rename to...
13736 (darwin_nat_target::init_thread_list): ... this.
13737 (darwin_ptrace_him): Rename to...
13738 (darwin_nat_target::ptrace_him): ... this.
13739 (darwin_nat_target::create_inferior): Pass lambda function to
13740 fork_inferior.
13741 (darwin_nat_target::detach): Call stop_inferior instead of
13742 darwin_stop_inferior.
13743 * fork-inferior.h (fork_inferior): Change init_trace_fun
13744 parameter to gdb::function_view.
13745 * fork-inferior.c (fork_inferior): Likewise.
13746
c162ed3e
HD
137472020-01-23 Hannes Domani <ssbssa@yahoo.de>
13748
13749 * i386-cygwin-tdep.c (core_process_module_section): Update.
13750 * windows-nat.c (struct lm_info_windows): Add text_offset.
13751 (windows_xfer_shared_libraries): Update.
13752 * windows-tdep.c (windows_xfer_shared_library):
13753 Add text_offset_cached argument.
13754 * windows-tdep.h (windows_xfer_shared_library): Update.
13755
a1237872
SM
137562020-01-21 Simon Marchi <simon.marchi@efficios.com>
13757
13758 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13759
b3ee6dd9
SM
137602020-01-21 Simon Marchi <simon.marchi@efficios.com>
13761
13762 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13763 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13764 replace with range-based for.
13765 (gdbsim_interrupt_inferior): Remove.
13766 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13767 with a range-based for. Inline code from
13768 gdbsim_interrupt_inferior.
13769
f9fac3c8
SM
137702020-01-21 Simon Marchi <simon.marchi@efficios.com>
13771
13772 * infrun.c (proceed): Fix indentation.
13773
f6474de9
TT
137742020-01-21 Tom Tromey <tromey@adacore.com>
13775
13776 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13777 * python/python.c (python_extension_ops): Update.
13778 (gdbpy_colorize): New function.
13779 * python/lib/gdb/__init__.py (colorize): New function.
13780 * extension.h (ext_lang_colorize): Declare.
13781 * extension.c (ext_lang_colorize): New function.
13782 * extension-priv.h (struct extension_language_ops) <colorize>: New
13783 member.
13784 * cli/cli-style.c (_initialize_cli_style): Update help text.
13785
f0c702d4
LM
137862020-01-21 Luis Machado <luis.machado@linaro.org>
13787
13788 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13789 <cond>: Change type to bool.
13790 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13791 (aarch64_displaced_step_cb): Likewise.
13792 (aarch64_displaced_step_tb): Likewise.
13793
1ab139e5
LM
137942020-01-21 Luis Machado <luis.machado@linaro.org>
13795
13796 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13797 output.
13798
0c271889
LM
137992020-01-21 Luis Machado <luis.machado@linaro.org>
13800
13801 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13802 <pc_adjust>: Adjust the documentation.
13803 (aarch64_displaced_step_fixup): Check if PC really moved before
13804 adjusting it.
13805
4d89c1c7
TT
138062020-01-19 Tom Tromey <tom@tromey.com>
13807
13808 * disasm.c (~gdb_disassembler): New destructor.
13809 (gdb_buffered_insn_length): Call disassemble_free_target.
13810 * disasm.h (class gdb_disassembler): Declare destructor. Use
13811 DISABLE_COPY_AND_ASSIGN.
13812
c0ab21c2
TT
138132020-01-19 Tom Tromey <tom@tromey.com>
13814
13815 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13816 (die_reader_func_ftype): Remove.
13817 (cutu_reader): New class.
13818 (dw2_get_file_names_reader): Remove "data" parameter.
13819 (dw2_get_file_names): Use cutu_reader.
13820 (create_debug_type_hash_table): Update.
13821 (read_cutu_die_from_dwo): Update comment.
13822 (lookup_dwo_unit): Add dwo_name parameter.
13823 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13824 die_reader_func_ftype and data parameters.
13825 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13826 Remove die_reader_func_ftype and data parameters.
13827 (~cutu_reader): New; from init_cutu_and_read_dies.
13828 (cutu_reader::cutu_reader): Rename from
13829 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13830 and data parameters.
13831 (init_cutu_and_read_dies_simple): Remove.
13832 (struct process_psymtab_comp_unit_data): Remove.
13833 (process_psymtab_comp_unit_reader): Remove data parameter; add
13834 want_partial_unit and pretend_language parameters.
13835 (process_psymtab_comp_unit): Use cutu_reader.
13836 (build_type_psymtabs_reader): Remove data parameter.
13837 (build_type_psymtabs_1): Use cutu_reader.
13838 (process_skeletonless_type_unit): Likewise.
13839 (load_partial_comp_unit_reader): Remove.
13840 (load_partial_comp_unit): Use cutu_reader.
13841 (load_full_comp_unit_reader): Remove.
13842 (load_full_comp_unit): Use cutu_reader.
13843 (struct create_dwo_cu_data): Remove.
13844 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13845 dwo_unit parameters.
13846 (create_cus_hash_table): Use cutu_reader.
13847 (struct dwarf2_read_addr_index_data): Remove.
13848 (dwarf2_read_addr_index_reader): Remove.
13849 (dwarf2_read_addr_index): Use cutu_reader.
13850 (read_signatured_type_reader): Remove.
13851 (read_signatured_type): Use cutu_reader.
13852
45bbae5c
TT
138532020-01-19 Tom Tromey <tom@tromey.com>
13854
13855 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13856 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13857 (tui_wrefresh): Declare.
13858 * tui/tui-wingeneral.c (suppress_output): New global.
13859 (tui_suppress_output, ~tui_suppress_output): New constructor and
13860 destructor.
13861 (tui_wrefresh): New function.
13862 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13863 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13864 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13865 method.
13866 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13867 tui_wrefresh.
13868 (tui_data_window::no_refresh): New method.
13869 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13870 (tui_reg_command): Use tui_suppress_output
13871 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13872 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13873 method.
13874 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13875
4f13c1c0
TT
138762020-01-19 Tom Tromey <tom@tromey.com>
13877
13878 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13879 Handle case where symtab is null.
13880
fa47e446
SM
138812020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13882
13883 * linux-fork.c (one_fork_p): Simplify.
13884
26f42329
SM
138852020-01-17 Simon Marchi <simon.marchi@efficios.com>
13886
13887 * top.c (struct qt_args): Remove.
13888 (kill_or_detach): Change return type to void, replace `void *`
13889 parameter with a proper one.
13890 (print_inferior_quit_action): Likewise.
13891 (quit_confirm): Use range-based for loop to iterate over inferiors.
13892 (quit_force): Likewise.
13893
a9ac81b1
SM
138942020-01-17 Simon Marchi <simon.marchi@efficios.com>
13895
13896 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13897 `void *` parameter with proper parameters.
13898 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13899 (print_one_inferior): Change return type to void, replace `void *`
13900 parameter with proper parameters.
13901 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13902 inferiors.
13903 (get_other_inferior): Remove.
13904 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13905 inferiors.
13906
788eca49
SM
139072020-01-17 Simon Marchi <simon.marchi@efficios.com>
13908
13909 * mi/mi-interp.c (report_initial_inferior): Remove.
13910 (mi_interp::init): Use range-based for to iterate over inferiors.
13911
d9bc85b6
SM
139122020-01-17 Simon Marchi <simon.marchi@efficios.com>
13913
13914 * python/py-inferior.c (build_inferior_list): Remove.
13915 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13916
40c94099
CB
139172020-01-16 Christian Biesinger <cbiesinger@google.com>
13918
13919 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13920 (btrace_stitch_trace): Likewise.
13921 * charset.c (intermediate_encoding): Likewise (vaild).
13922 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13923 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13924 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13925
e0cdfe3c
HD
139262020-01-16 Hannes Domani <ssbssa@yahoo.de>
13927
13928 * windows-tdep.c (windows_get_tlb_type):
13929 Add rtl_user_process_parameters type.
13930
790f1718 139312020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13932 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13933
13934 PR build/24805
13935 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13936 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13937 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13938 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13939 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13940 (ps_plog): Redeclare exported functions with default visibility.
13941
3112ed97
NA
139422020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13943
13944 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13945 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13946
8dc3273e
SM
139472020-01-15 Simon Marchi <simon.marchi@efficios.com>
13948
13949 * infcmd.c (post_create_inferior): Use get_thread_regcache
13950 instead of get_current_regcache.
13951
ff47f4f0
TT
139522020-01-14 Tom Tromey <tom@tromey.com>
13953
13954 PR symtab/12535:
13955 * python/python.c (gdbpy_decode_line): Treat empty string the same
13956 as no argument.
13957
975f45b7
TT
139582020-01-14 Tom Tromey <tom@tromey.com>
13959
13960 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13961
25e57356
TT
139622020-01-14 Tom Tromey <tom@tromey.com>
13963
13964 * nat/linux-btrace.c: Don't include <config.h>.
13965 * nat/linux-ptrace.c: Don't include <config.h>.
13966 * nat/x86-linux-dregs.c: Don't include <config.h>.
13967
05ea2a05
TT
139682020-01-14 Tom Tromey <tom@tromey.com>
13969
13970 * configure: Rebuild.
13971 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13972
01027315
TT
139732020-01-14 Tom Tromey <tom@tromey.com>
13974
13975 * nat/x86-linux-dregs.c: Include configh.h.
13976 * nat/linux-ptrace.c: Include configh.h.
13977 * nat/linux-btrace.c: Include configh.h.
13978 * defs.h: Include config.h, bfd.h.
13979 * configure.ac: Don't source common.host.
13980 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13981 * configure: Rebuild.
13982 * acinclude.m4: Update path.
13983 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13984 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13985 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13986 (CLIBS): Add LIBSUPPORT.
13987 (CDEPS): Likewise.
13988 (COMMON_SFILES): Remove gdbsupport files.
13989 (HFILES_NO_SRCDIR): Likewise.
13990 (stamp-version): Update path to create-version.sh.
13991 (ALLDEPFILES): Remove gdbsupport files.
13992
b2ceabe8
TT
139932020-01-14 Tom Tromey <tom@tromey.com>
13994
13995 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13996 USE_WIN32API when needed.
13997 * configure.ac (USE_WIN32API): Don't define.
13998 (WIN32LIBS): Use WIN32APILIBS.
13999 * configure: Rebuild.
14000
25c51f71
TT
140012020-01-14 Tom Tromey <tom@tromey.com>
14002
14003 * configure: Rebuild.
14004 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14005
717c684d
BE
140062020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14007
14008 * skip.c (skip_function_command): Make skip w/o arguments use the
14009 name of the inlined function if pc is inside any inlined function.
14010
7da6a5b9
LM
140112020-01-14 Luis Machado <luis.machado@linaro.org>
14012
14013 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14014 * infrun.c (resume_1): Likewise.
14015 (handle_inferior_event): Remove stale comment.
14016 * linux-nat.c (linux_nat_target::resume): Update comments.
14017 (save_stop_reason): Likewise.
14018 (linux_nat_filter_event): Likewise.
14019 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14020
44e4c775
AB
140212020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14022
14023 * elfread.c (record_minimal_symbol): Set section index to 0 for
14024 non-allocatable sections.
14025
18a8505e
AT
14026
140272020-01-13 Ali Tamur <tamur@google.com>
14028
14029 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14030 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14031 to gdb::optional. Update comments.
14032 (dwo_file): Update comments.
14033 (read_attribute): Update API to take an additional out parameter,
14034 need_reprocess. This is used to mark attributes that need other
14035 attributes (e.g. str_offsets_base) for correct computation which may not
14036 have been read yet.
14037 (read_attribute_reprocess): New function declaration.
14038 (read_addr_index): Likewise.
14039 (read_dwo_str_index): Likewise.
14040 (read_stub_str_index): Likewise.
14041 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14042 (lookup_addr_base): New function definition.
14043 (lookup_ranges_base): Likewise.
14044 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14045 lookup_ranges_base.
14046 (init_cutu_and_read_dies): Update comments.
14047 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14048 unit. This is used to inherit parent's str_offsets_base and addr_base.
14049 Update comments.
14050 (init_cutu_and_read_dies_simple): Reflect API changes.
14051 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14052 (create_cus_hash_table): Change API to take parent compile unit.
14053 Reflect API changes.
14054 (open_and_init_dwo_file): Reflect API changes.
14055 (dwarf2_get_pc_bounds): Update comments.
14056 (dwarf2_record_block_ranges): Likewise.
14057 (read_full_die_1): Change implementation to reprocess attributes that
14058 need str_offsets_base and addr_base.
14059 (partial_die_info::read): Likewise.
14060 (read_attribute_reprocess): New function definition.
14061 (read_attribute_value): Change API to take an additional out parameter,
14062 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14063 when a non-dwo compile unit has index based attributes.
14064 (read_attribute): Reflect API changes.
14065 (read_addr_index_1): Reflect API changes. Update comments.
14066 (dwarf2_read_addr_index_data): Reflect API changes.
14067 (dwarf2_read_addr_index): Likewise.
14068 (read_str_index): Change API and implementation. This becomes a helper
14069 to be used by the new string index related methods. Update error
14070 message and comments.
14071 (read_dwo_str_index): New function definition.
14072 (read_stub_str_index): Likewise.
14073 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14074 * symfile.h (dwarf2_debug_sections): Likewise.
14075 * xcoffread.c (dwarf2_debug_sections): Likewise.
14076
0cac9354
SM
140772020-01-13 Simon Marchi <simon.marchi@efficios.com>
14078
14079 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14080 core_reg_sect type to gdb_byte *.
14081 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14082 * cris-tdep.c (fetch_core_registers): Likewise.
14083 * corelow.c (core_target::get_core_register_section): Change
14084 type of `contents` to gdb::byte_vector.
14085
9a6d629c
AB
140862020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14087
14088 * tui/tui-wingeneral.c (box_win): Position the title in the center
14089 of the border.
14090
d8b2f9e3
SM
140912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14092
14093 * corelow.c (core_target::get_core_register_section): Use
14094 std::vector instead of alloca.
14095
bb564c58
SM
140962020-01-13 Simon Marchi <simon.marchi@efficios.com>
14097
14098 * warning.m4: Add -Wmissing-declarations to build_warnings.
14099 * configure: Re-generate.
14100
6b366111
SM
141012020-01-13 Simon Marchi <simon.marchi@efficios.com>
14102
14103 * python/python.c (init__gdb_module): Add declaration.
14104
6c265988
SM
141052020-01-13 Simon Marchi <simon.marchi@efficios.com>
14106
14107 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14108 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14109 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14110 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14111 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14112 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14113 * ada-exp.y (_initialize_ada_exp): Add declaration.
14114 * ada-lang.c (_initialize_ada_language): Add declaration.
14115 * ada-tasks.c (_initialize_tasks): Add declaration.
14116 * agent.c (_initialize_agent): Add declaration.
14117 * aix-thread.c (_initialize_aix_thread): Add declaration.
14118 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14119 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14120 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14121 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14122 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14123 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14124 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14125 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14126 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14127 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14128 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14129 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14130 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14131 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14132 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14133 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14134 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14135 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14136 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14137 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14138 * annotate.c (_initialize_annotate): Add declaration.
14139 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14140 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14141 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14142 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14143 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14144 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14145 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14146 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14147 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14148 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14149 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14150 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14151 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14152 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14153 * auto-load.c (_initialize_auto_load): Add declaration.
14154 * auxv.c (_initialize_auxv): Add declaration.
14155 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14156 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14157 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14158 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14159 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14160 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14161 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14162 * breakpoint.c (_initialize_breakpoint): Add declaration.
14163 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14164 * btrace.c (_initialize_btrace): Add declaration.
14165 * charset.c (_initialize_charset): Add declaration.
14166 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14167 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14168 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14169 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14170 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14171 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14172 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14173 * coffread.c (_initialize_coffread): Add declaration.
14174 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14175 * compile/compile.c (_initialize_compile): Add declaration.
14176 * complaints.c (_initialize_complaints): Add declaration.
14177 * completer.c (_initialize_completer): Add declaration.
14178 * copying.c (_initialize_copying): Add declaration.
14179 * corefile.c (_initialize_core): Add declaration.
14180 * corelow.c (_initialize_corelow): Add declaration.
14181 * cp-abi.c (_initialize_cp_abi): Add declaration.
14182 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14183 * cp-support.c (_initialize_cp_support): Add declaration.
14184 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14185 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14186 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14187 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14188 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14189 * ctfread.c (_initialize_ctfread): Add declaration.
14190 * d-lang.c (_initialize_d_language): Add declaration.
14191 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14192 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14193 * dbxread.c (_initialize_dbxread): Add declaration.
14194 * dcache.c (_initialize_dcache): Add declaration.
14195 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14196 * disasm.c (_initialize_disasm): Add declaration.
14197 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14198 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14199 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14200 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14201 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14202 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14203 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14204 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14205 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14206 * elfread.c (_initialize_elfread): Add declaration.
14207 * exec.c (_initialize_exec): Add declaration.
14208 * extension.c (_initialize_extension): Add declaration.
14209 * f-lang.c (_initialize_f_language): Add declaration.
14210 * f-valprint.c (_initialize_f_valprint): Add declaration.
14211 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14212 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14213 * filesystem.c (_initialize_filesystem): Add declaration.
14214 * findcmd.c (_initialize_mem_search): Add declaration.
14215 * findvar.c (_initialize_findvar): Add declaration.
14216 * fork-child.c (_initialize_fork_child): Add declaration.
14217 * frame-base.c (_initialize_frame_base): Add declaration.
14218 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14219 * frame.c (_initialize_frame): Add declaration.
14220 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14221 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14222 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14223 * gcore.c (_initialize_gcore): Add declaration.
14224 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14225 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14226 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14227 * gdbarch.c (_initialize_gdbarch): Add declaration.
14228 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14229 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14230 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14231 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14232 * go-lang.c (_initialize_go_language): Add declaration.
14233 * go32-nat.c (_initialize_go32_nat): Add declaration.
14234 * guile/guile.c (_initialize_guile): Add declaration.
14235 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14236 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14237 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14238 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14239 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14240 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14241 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14242 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14243 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14244 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14245 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14246 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14247 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14248 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14249 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14250 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14251 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14252 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14253 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14254 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14255 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14256 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14257 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14258 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14259 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14260 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14261 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14262 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14263 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14264 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14265 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14266 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14267 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14268 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14269 * infcall.c (_initialize_infcall): Add declaration.
14270 * infcmd.c (_initialize_infcmd): Add declaration.
14271 * inflow.c (_initialize_inflow): Add declaration.
14272 * infrun.c (_initialize_infrun): Add declaration.
14273 * interps.c (_initialize_interpreter): Add declaration.
14274 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14275 * jit.c (_initialize_jit): Add declaration.
14276 * language.c (_initialize_language): Add declaration.
14277 * linux-fork.c (_initialize_linux_fork): Add declaration.
14278 * linux-nat.c (_initialize_linux_nat): Add declaration.
14279 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14280 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14281 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14282 * m2-lang.c (_initialize_m2_language): Add declaration.
14283 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14284 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14285 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14286 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14287 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14288 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14289 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14290 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14291 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14292 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14293 * machoread.c (_initialize_machoread): Add declaration.
14294 * macrocmd.c (_initialize_macrocmd): Add declaration.
14295 * macroscope.c (_initialize_macroscope): Add declaration.
14296 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14297 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14298 * maint.c (_initialize_maint_cmds): Add declaration.
14299 * mdebugread.c (_initialize_mdebugread): Add declaration.
14300 * memattr.c (_initialize_mem): Add declaration.
14301 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14302 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14303 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14304 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14305 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14306 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14307 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14308 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14309 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14310 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14311 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14312 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14313 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14314 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14315 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14316 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14317 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14318 * mipsread.c (_initialize_mipsread): Add declaration.
14319 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14320 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14321 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14322 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14323 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14324 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14325 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14326 * nto-procfs.c (_initialize_procfs): Add declaration.
14327 * objc-lang.c (_initialize_objc_language): Add declaration.
14328 * observable.c (_initialize_observer): Add declaration.
14329 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14330 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14331 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14332 * osabi.c (_initialize_gdb_osabi): Add declaration.
14333 * osdata.c (_initialize_osdata): Add declaration.
14334 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14335 * parse.c (_initialize_parse): Add declaration.
14336 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14337 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14338 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14339 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14340 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14341 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14342 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14343 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14344 * printcmd.c (_initialize_printcmd): Add declaration.
14345 * probe.c (_initialize_probe): Add declaration.
14346 * proc-api.c (_initialize_proc_api): Add declaration.
14347 * proc-events.c (_initialize_proc_events): Add declaration.
14348 * proc-service.c (_initialize_proc_service): Add declaration.
14349 * procfs.c (_initialize_procfs): Add declaration.
14350 * producer.c (_initialize_producer): Add declaration.
14351 * psymtab.c (_initialize_psymtab): Add declaration.
14352 * python/python.c (_initialize_python): Add declaration.
14353 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14354 * record-btrace.c (_initialize_record_btrace): Add declaration.
14355 * record-full.c (_initialize_record_full): Add declaration.
14356 * record.c (_initialize_record): Add declaration.
14357 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14358 * regcache.c (_initialize_regcache): Add declaration.
14359 * reggroups.c (_initialize_reggroup): Add declaration.
14360 * remote-notif.c (_initialize_notif): Add declaration.
14361 * remote-sim.c (_initialize_remote_sim): Add declaration.
14362 * remote.c (_initialize_remote): Add declaration.
14363 * reverse.c (_initialize_reverse): Add declaration.
14364 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14365 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14366 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14367 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14368 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14369 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14370 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14371 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14372 Add declaration.
14373 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14374 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14375 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14376 * rust-exp.y (_initialize_rust_exp): Add declaration.
14377 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14378 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14379 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14380 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14381 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14382 * score-tdep.c (_initialize_score_tdep): Add declaration.
14383 * ser-go32.c (_initialize_ser_dos): Add declaration.
14384 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14385 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14386 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14387 * ser-uds.c (_initialize_ser_socket): Add declaration.
14388 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14389 * serial.c (_initialize_serial): Add declaration.
14390 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14391 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14392 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14393 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14394 * skip.c (_initialize_step_skip): Add declaration.
14395 * sol-thread.c (_initialize_sol_thread): Add declaration.
14396 * solib-aix.c (_initialize_solib_aix): Add declaration.
14397 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14398 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14399 * solib-frv.c (_initialize_frv_solib): Add declaration.
14400 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14401 * solib-target.c (_initialize_solib_target): Add declaration.
14402 * solib.c (_initialize_solib): Add declaration.
14403 * source-cache.c (_initialize_source_cache): Add declaration.
14404 * source.c (_initialize_source): Add declaration.
14405 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14406 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14407 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14408 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14409 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14410 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14411 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14412 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14413 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14414 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14415 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14416 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14417 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14418 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14419 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14420 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14421 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14422 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14423 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14424 * stabsread.c (_initialize_stabsread): Add declaration.
14425 * stack.c (_initialize_stack): Add declaration.
14426 * stap-probe.c (_initialize_stap_probe): Add declaration.
14427 * std-regs.c (_initialize_frame_reg): Add declaration.
14428 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14429 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14430 * symfile.c (_initialize_symfile): Add declaration.
14431 * symmisc.c (_initialize_symmisc): Add declaration.
14432 * symtab.c (_initialize_symtab): Add declaration.
14433 * target.c (_initialize_target): Add declaration.
14434 * target-connection.c (_initialize_target_connection): Add
14435 declaration.
14436 * target-dcache.c (_initialize_target_dcache): Add declaration.
14437 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14438 * thread.c (_initialize_thread): Add declaration.
14439 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14440 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14441 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14442 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14443 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14444 * tracectf.c (_initialize_ctf): Add declaration.
14445 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14446 * tracefile.c (_initialize_tracefile): Add declaration.
14447 * tracepoint.c (_initialize_tracepoint): Add declaration.
14448 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14449 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14450 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14451 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14452 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14453 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14454 * tui/tui.c (_initialize_tui): Add declaration.
14455 * typeprint.c (_initialize_typeprint): Add declaration.
14456 * ui-style.c (_initialize_ui_style): Add declaration.
14457 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14458 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14459 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14460 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14461 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14462 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14463 * unittests/filtered_iterator-selftests.c
14464 (_initialize_filtered_iterator_selftests): Add declaration.
14465 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14466 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14467 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14468 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14469 * unittests/main-thread-selftests.c
14470 (_initialize_main_thread_selftests): Add declaration.
14471 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14472 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14473 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14474 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14475 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14476 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14477 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14478 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14479 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14480 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14481 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14482 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14483 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14484 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14485 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14486 declaration.
14487 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14488 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14489 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14490 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14491 * user-regs.c (_initialize_user_regs): Add declaration.
14492 * utils.c (_initialize_utils): Add declaration.
14493 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14494 * valops.c (_initialize_valops): Add declaration.
14495 * valprint.c (_initialize_valprint): Add declaration.
14496 * value.c (_initialize_values): Add declaration.
14497 * varobj.c (_initialize_varobj): Add declaration.
14498 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14499 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14500 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14501 * windows-nat.c (_initialize_windows_nat): Add declaration.
14502 (_initialize_check_for_gdb_ini): Add declaration.
14503 (_initialize_loadable): Add declaration.
14504 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14505 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14506 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14507 * xcoffread.c (_initialize_xcoffread): Add declaration.
14508 * xml-support.c (_initialize_xml_support): Add declaration.
14509 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14510 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14511 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14512 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14513
e2de1eec
SM
145142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14515
14516 * regformats/regdat.sh: Generate declaration for init function.
14517
e0037b4c
SM
145182020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14519
14520 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14521 up.
14522 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14523 close_one_inferior>: New methods.
14524 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14525 pass down target to find_inferior_pid.
14526 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14527 Pass down target to find_inferior_ptid.
14528 (gdbsim_target::create_inferior): Pass down target to
14529 add_thread_silent.
14530 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14531 target down to find_inferior_ptid and switch_to_thread.
14532 (gdbsim_target::close): Update to call close_one_inferior.
14533 (struct resume_data): Remove.
14534 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14535 directly, rather than through a void pointer.
14536 (gdbsim_target::resume): Update to call resume_one_inferior.
14537
58920b5b
SM
145382020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14539
14540 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14541
4ec89149
PA
145422020-01-12 Pedro Alves <palves@redhat.com>
14543
14544 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14545 directly for the current inferior instead of
14546 discard_all_inferiors.
14547 (discard_all_inferiors): Delete.
14548
7c392d1d
TT
145492020-01-11 Tom Tromey <tom@tromey.com>
14550
14551 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14552 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14553 deprecated_safe_get_selected_frame.
14554
d9ebdab7
TBA
145552020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14556
14557 * inferior.c (print_inferior): Switch inferior before printing it.
14558
f3c469b9
PA
145592020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14560 Pedro Alves <palves@redhat.com>
14561
14562 * progspace-and-thread.c (switch_to_program_space_and_thread):
14563 Assert there's an inferior for PSPACE. Use
14564 switch_to_inferior_no_thread to switch the inferior too.
14565 * progspace.c (program_space::~program_space): Call
14566 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14567 (program_space::free_all_objfiles): Don't call clear_symtab_users
14568 here.
14569 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14570
65c574f6
PA
145712020-01-10 Pedro Alves <palves@redhat.com>
14572
14573 * NEWS: Mention multi-target debugging, "info connections", and
14574 "add-inferior -no-connection".
14575
2f4fcf00
PA
145762020-01-10 Pedro Alves <palves@redhat.com>
14577
14578 * infrun.c: Include "target-connection.h".
14579 (check_multi_target_resumption): New.
14580 (proceed): Call it.
14581 * target-connection.c (make_target_connection_string): Make
14582 extern.
14583 * target-connection.h (make_target_connection_string): Declare.
14584
121b3efd
PA
145852020-01-10 Pedro Alves <palves@redhat.com>
14586
14587 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14588 * inferior.c (uiout_field_connection): New function.
14589 (print_inferior): Add new "connection-id" column.
14590 (add_inferior_command): Show connection number/string of added
14591 inferior.
14592 * process-stratum-target.h
14593 (process_stratum_target::connection_string): New virtual method.
14594 (process_stratum_target::connection_number): New field.
14595 * remote.c (remote_target::connection_string): New override.
14596 * target-connection.c: New file.
14597 * target-connection.h: New file.
14598 * target.c (decref_target): Remove process_stratum targets from
14599 the connection list.
14600 (target_stack::push): Add process_stratum targets to the
14601 connection list.
14602
4f837581
PA
146032020-01-10 Pedro Alves <palves@redhat.com>
14604
14605 Revert:
14606 2016-04-12 Pedro Alves <palves@redhat.com>
14607 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14608 Remove references to name.
14609 * serial.h (struct serial) <name>: Delete.
14610
f4ec508e
PA
146112020-01-10 Pedro Alves <palves@redhat.com>
14612
14613 * gdbarch-selftests.c (register_to_value_test): Remove "target
14614 already pushed" check.
14615
5b6d1e4f
PA
146162020-01-10 Pedro Alves <palves@redhat.com>
14617 John Baldwin <jhb@FreeBSD.org>
14618
14619 * aarch64-linux-nat.c
14620 (aarch64_linux_nat_target::thread_architecture): Adjust.
14621 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14622 (task_command_1): Likewise.
14623 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14624 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14625 (aix_thread_target::store_registers)
14626 (aix_thread_target::thread_alive): Adjust.
14627 * amd64-fbsd-tdep.c: Include "inferior.h".
14628 (amd64fbsd_get_thread_local_address): Pass down target.
14629 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14630 thread's gdbarch instead of target_gdbarch.
14631 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14632 get_last_target_status.
14633 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14634 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14635 inferiors.
14636 (update_inserted_breakpoint_locations): Skip if inferiors with no
14637 execution.
14638 (update_global_location_list): When handling moribund locations,
14639 find representative inferior for location's pspace, and use thread
14640 count of its process_stratum target.
14641 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14642 * bsd-uthread.c (bsd_uthread_target::wait): Use
14643 as_process_stratum_target and adjust thread_change_ptid and
14644 add_thread calls.
14645 (bsd_uthread_target::update_thread_list): Use
14646 as_process_stratum_target and adjust find_thread_ptid,
14647 thread_change_ptid and add_thread calls.
14648 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14649 find_thread_ptid call.
14650 * corelow.c (add_to_thread_list): Adjust add_thread call.
14651 (core_target_open): Adjust add_thread_silent and thread_count
14652 calls.
14653 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14654 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14655 * event-top.c (async_disconnect): Pop targets from all inferiors.
14656 * exec.c (add_target_sections): Push exec target on all inferiors
14657 sharing the program space.
14658 (remove_target_sections): Remove the exec target from all
14659 inferiors sharing the program space.
14660 (exec_on_vfork): New.
14661 * exec.h (exec_on_vfork): Declare.
14662 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14663 Pass it down.
14664 (fbsd_nat_target::update_thread_list): Adjust.
14665 (fbsd_nat_target::resume): Adjust.
14666 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14667 down.
14668 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14669 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14670 get_thread_arch_regcache call.
14671 * fork-child.c (gdb_startup_inferior): Pass target down to
14672 startup_inferior and set_executing.
14673 * gdbthread.h (struct process_stratum_target): Forward declare.
14674 (add_thread, add_thread_silent, add_thread_with_info)
14675 (in_thread_list): Add process_stratum_target parameter.
14676 (find_thread_ptid(inferior*, ptid_t)): New overload.
14677 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14678 parameter.
14679 (all_threads()): Delete overload.
14680 (all_threads, all_non_exited_threads): Add process_stratum_target
14681 parameter.
14682 (all_threads_safe): Use brace initialization.
14683 (thread_count): Add process_stratum_target parameter.
14684 (set_resumed, set_running, set_stop_requested, set_executing)
14685 (threads_are_executing, finish_thread_state): Add
14686 process_stratum_target parameter.
14687 (switch_to_thread): Use is_current_thread.
14688 * i386-fbsd-tdep.c: Include "inferior.h".
14689 (i386fbsd_get_thread_local_address): Pass down target.
14690 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14691 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14692 have_inferiors check.
14693 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14694 (inf_ptrace_target::attach): Adjust.
14695 * infcall.c (run_inferior_call): Adjust.
14696 * infcmd.c (run_command_1): Pass target to
14697 scoped_finish_thread_state.
14698 (proceed_thread_callback): Skip inferiors with no execution.
14699 (continue_command): Rename 'all_threads' local to avoid hiding
14700 'all_threads' function. Adjust get_last_target_status call.
14701 (prepare_one_step): Adjust set_running call.
14702 (signal_command): Use user_visible_resume_target. Compare thread
14703 pointers instead of inferior_ptid.
14704 (info_program_command): Adjust to pass down target.
14705 (attach_command): Mark target's 'thread_executing' flag.
14706 (stop_current_target_threads_ns): New, factored out from ...
14707 (interrupt_target_1): ... this. Switch inferior before making
14708 target calls.
14709 * inferior-iter.h
14710 (struct all_inferiors_iterator, struct all_inferiors_range)
14711 (struct all_inferiors_safe_range)
14712 (struct all_non_exited_inferiors_range): Filter on
14713 process_stratum_target too. Remove explicit.
14714 * inferior.c (inferior::inferior): Push dummy target on target
14715 stack.
14716 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14717 Add process_stratum_target parameter, and pass it down.
14718 (have_live_inferiors): Adjust.
14719 (switch_to_inferior_and_push_target): New.
14720 (add_inferior_command, clone_inferior_command): Handle
14721 "-no-connection" parameter. Use
14722 switch_to_inferior_and_push_target.
14723 (_initialize_inferior): Mention "-no-connection" option in
14724 the help of "add-inferior" and "clone-inferior" commands.
14725 * inferior.h: Include "process-stratum-target.h".
14726 (interrupt_target_1): Use bool.
14727 (struct inferior) <push_target, unpush_target, target_is_pushed,
14728 find_target_beneath, top_target, process_target, target_at,
14729 m_stack>: New.
14730 (discard_all_inferiors): Delete.
14731 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14732 (all_inferiors, all_non_exited_inferiors): Add
14733 process_stratum_target parameter.
14734 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14735 (target_last_proc_target): New global.
14736 (follow_fork_inferior): Push target on new inferior. Pass target
14737 to add_thread_silent. Call exec_on_vfork. Handle target's
14738 reference count.
14739 (follow_fork): Adjust get_last_target_status call. Also consider
14740 target.
14741 (follow_exec): Push target on new inferior.
14742 (struct execution_control_state) <target>: New field.
14743 (user_visible_resume_target): New.
14744 (do_target_resume): Call target_async.
14745 (resume_1): Set target's threads_executing flag. Consider resume
14746 target.
14747 (commit_resume_all_targets): New.
14748 (proceed): Also consider resume target. Skip threads of inferiors
14749 with no execution. Commit resumtion in all targets.
14750 (start_remote): Pass current inferior to wait_for_inferior.
14751 (infrun_thread_stop_requested): Consider target as well. Pass
14752 thread_info pointer to clear_inline_frame_state instead of ptid.
14753 (infrun_thread_thread_exit): Consider target as well.
14754 (random_pending_event_thread): New inferior parameter. Use it.
14755 (do_target_wait): Rename to ...
14756 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14757 down.
14758 (threads_are_resumed_pending_p, do_target_wait): New.
14759 (prepare_for_detach): Adjust calls.
14760 (wait_for_inferior): New inferior parameter. Handle it. Use
14761 do_target_wait_1 instead of do_target_wait.
14762 (fetch_inferior_event): Adjust. Switch to representative
14763 inferior. Pass target down.
14764 (set_last_target_status): Add process_stratum_target parameter.
14765 Save target in global.
14766 (get_last_target_status): Add process_stratum_target parameter and
14767 handle it.
14768 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14769 (context_switch): Check inferior_ptid == null_ptid before calling
14770 inferior_thread().
14771 (get_inferior_stop_soon): Pass down target.
14772 (wait_one): Rename to ...
14773 (poll_one_curr_target): ... this.
14774 (struct wait_one_event): New.
14775 (wait_one): New.
14776 (stop_all_threads): Adjust.
14777 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14778 event's target.
14779 (switch_back_to_stepped_thread): Also consider target.
14780 (print_stop_event): Update.
14781 (normal_stop): Update. Also consider the resume target.
14782 * infrun.h (wait_for_inferior): Remove declaration.
14783 (user_visible_resume_target): New declaration.
14784 (get_last_target_status, set_last_target_status): New
14785 process_stratum_target parameter.
14786 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14787 process_stratum_target parameter, and use it.
14788 (clear_inline_frame_state (thread_info*)): New.
14789 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14790 process_stratum_target parameter.
14791 (clear_inline_frame_state (thread_info*)): Declare.
14792 * linux-fork.c (delete_checkpoint_command): Pass target down to
14793 find_thread_ptid.
14794 (checkpoint_command): Adjust.
14795 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14796 instead of just tweaking inferior_ptid.
14797 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14798 (exit_lwp): Pass target down to find_thread_ptid.
14799 (attach_proc_task_lwp_callback): Pass target down to
14800 add_thread/set_running/set_executing.
14801 (linux_nat_target::attach): Pass target down to
14802 thread_change_ptid.
14803 (get_detach_signal): Pass target down to find_thread_ptid.
14804 Consider last target status's target.
14805 (linux_resume_one_lwp_throw, resume_lwp)
14806 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14807 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14808 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14809 (linux_nat_target::async_wait_fd): New.
14810 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14811 target down.
14812 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14813 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14814 * linux-thread-db.c (struct thread_db_info::process_target): New
14815 field.
14816 (add_thread_db_info): Save target.
14817 (get_thread_db_info): New process_stratum_target parameter. Also
14818 match target.
14819 (delete_thread_db_info): New process_stratum_target parameter.
14820 Also match target.
14821 (thread_from_lwp): Adjust to pass down target.
14822 (thread_db_notice_clone): Pass down target.
14823 (check_thread_db_callback): Pass down target.
14824 (try_thread_db_load_1): Always push the thread_db target.
14825 (try_thread_db_load, record_thread): Pass target down.
14826 (thread_db_target::detach): Pass target down. Always unpush the
14827 thread_db target.
14828 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14829 target down. Always unpush the thread_db target.
14830 (find_new_threads_callback, thread_db_find_new_threads_2)
14831 (thread_db_target::update_thread_list): Pass target down.
14832 (thread_db_target::pid_to_str): Pass current inferior down.
14833 (thread_db_target::get_thread_local_address): Pass target down.
14834 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14835 target down.
14836 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14837 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14838 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14839 (procfs_init_inferior): Rename to ...
14840 (procfs_target::procfs_init_inferior): ... this and adjust.
14841 (procfs_target::create_inferior, procfs_notice_thread)
14842 (procfs_do_thread_registers): Adjust.
14843 * ppc-fbsd-tdep.c: Include "inferior.h".
14844 (ppcfbsd_get_thread_local_address): Pass down target.
14845 * proc-service.c (ps_xfer_memory): Switch current inferior and
14846 program space as well.
14847 (get_ps_regcache): Pass target down.
14848 * process-stratum-target.c
14849 (process_stratum_target::thread_address_space)
14850 (process_stratum_target::thread_architecture): Pass target down.
14851 * process-stratum-target.h
14852 (process_stratum_target::threads_executing): New field.
14853 (as_process_stratum_target): New.
14854 * ravenscar-thread.c
14855 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14856 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14857 down.
14858 * record-btrace.c (record_btrace_target::info_record): Adjust.
14859 (record_btrace_target::record_method)
14860 (record_btrace_target::record_is_replaying)
14861 (record_btrace_target::fetch_registers)
14862 (get_thread_current_frame_id, record_btrace_target::resume)
14863 (record_btrace_target::wait, record_btrace_target::stop): Pass
14864 target down.
14865 * record-full.c (record_full_wait_1): Switch to event thread.
14866 Pass target down.
14867 * regcache.c (regcache::regcache)
14868 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14869 process_stratum_target parameter and handle it.
14870 (current_thread_target): New global.
14871 (get_thread_regcache): Add process_stratum_target parameter and
14872 handle it. Switch inferior before calling target method.
14873 (get_thread_regcache): Pass target down.
14874 (get_thread_regcache_for_ptid): Pass target down.
14875 (registers_changed_ptid): Add process_stratum_target parameter and
14876 handle it.
14877 (registers_changed_thread, registers_changed): Pass target down.
14878 (test_get_thread_arch_aspace_regcache): New.
14879 (current_regcache_test): Define a couple local test_target_ops
14880 instances and use them for testing.
14881 (readwrite_regcache): Pass process_stratum_target parameter.
14882 (cooked_read_test, cooked_write_test): Pass mock_target down.
14883 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14884 (get_thread_arch_aspace_regcache): Add process_stratum_target
14885 parameter.
14886 (regcache::target): New method.
14887 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14888 (regcache::registers_changed_ptid): Add process_stratum_target
14889 parameter.
14890 (regcache::m_target): New field.
14891 (registers_changed_ptid): Add process_stratum_target parameter.
14892 * remote.c (remote_state::supports_vCont_probed): New field.
14893 (remote_target::async_wait_fd): New method.
14894 (remote_unpush_and_throw): Add remote_target parameter.
14895 (get_current_remote_target): Adjust.
14896 (remote_target::remote_add_inferior): Push target.
14897 (remote_target::remote_add_thread)
14898 (remote_target::remote_notice_new_inferior)
14899 (get_remote_thread_info): Pass target down.
14900 (remote_target::update_thread_list): Skip threads of inferiors
14901 bound to other targets. (remote_target::close): Don't discard
14902 inferiors. (remote_target::add_current_inferior_and_thread)
14903 (remote_target::process_initial_stop_replies)
14904 (remote_target::start_remote)
14905 (remote_target::remote_serial_quit_handler): Pass down target.
14906 (remote_target::remote_unpush_target): New remote_target
14907 parameter. Unpush the target from all inferiors.
14908 (remote_target::remote_unpush_and_throw): New remote_target
14909 parameter. Pass it down.
14910 (remote_target::open_1): Check whether the current inferior has
14911 execution instead of checking whether any inferior is live. Pass
14912 target down.
14913 (remote_target::remote_detach_1): Pass down target. Use
14914 remote_unpush_target.
14915 (extended_remote_target::attach): Pass down target.
14916 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14917 (remote_target::append_resumption): Pass down target.
14918 (remote_target::append_pending_thread_resumptions)
14919 (remote_target::remote_resume_with_hc, remote_target::resume)
14920 (remote_target::commit_resume): Pass down target.
14921 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14922 (remote_target::interrupt_query)
14923 (remote_target::remove_new_fork_children)
14924 (remote_target::check_pending_events_prevent_wildcard_vcont)
14925 (remote_target::remote_parse_stop_reply)
14926 (remote_target::process_stop_reply): Pass down target.
14927 (first_remote_resumed_thread): New remote_target parameter. Pass
14928 it down.
14929 (remote_target::wait_as): Pass down target.
14930 (unpush_and_perror): New remote_target parameter. Pass it down.
14931 (remote_target::readchar, remote_target::remote_serial_write)
14932 (remote_target::getpkt_or_notif_sane_1)
14933 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14934 down target.
14935 (remote_target::mourn_inferior): Pass down target. Use
14936 remote_unpush_target.
14937 (remote_target::core_of_thread)
14938 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14939 (remote_target::pid_to_exec_file)
14940 (remote_target::thread_handle_to_thread_info): Pass down target.
14941 (remote_target::async_wait_fd): New.
14942 * riscv-fbsd-tdep.c: Include "inferior.h".
14943 (riscv_fbsd_get_thread_local_address): Pass down target.
14944 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14945 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14946 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14947 Adjust.
14948 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14949 * solib-svr4.c (enable_break): Pass down target.
14950 * spu-multiarch.c (parse_spufs_run): Pass down target.
14951 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14952 * target-delegates.c: Regenerate.
14953 * target.c (g_target_stack): Delete.
14954 (current_top_target): Return the current inferior's top target.
14955 (target_has_execution_1): Refer to the passed-in inferior's top
14956 target.
14957 (target_supports_terminal_ours): Check whether the initial
14958 inferior was already created.
14959 (decref_target): New.
14960 (target_stack::push): Incref/decref the target.
14961 (push_target, push_target, unpush_target): Adjust.
14962 (target_stack::unpush): Defref target.
14963 (target_is_pushed): Return bool. Adjust to refer to the current
14964 inferior's target stack.
14965 (dispose_inferior): Delete, and inline parts ...
14966 (target_preopen): ... here. Only dispose of the current inferior.
14967 (target_detach): Hold strong target reference while detaching.
14968 Pass target down.
14969 (target_thread_name): Add assertion.
14970 (target_resume): Pass down target.
14971 (target_ops::beneath, find_target_at): Adjust to refer to the
14972 current inferior's target stack.
14973 (get_dummy_target): New.
14974 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14975 has a thread running.
14976 (initialize_targets): Rename to ...
14977 (_initialize_target): ... this.
14978 * target.h: Include "gdbsupport/refcounted-object.h".
14979 (struct target_ops): Inherit refcounted_object.
14980 (target_ops::shortname, target_ops::longname): Make const.
14981 (target_ops::async_wait_fd): New method.
14982 (decref_target): Declare.
14983 (struct target_ops_ref_policy): New.
14984 (target_ops_ref): New typedef.
14985 (get_dummy_target): Declare function.
14986 (target_is_pushed): Return bool.
14987 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14988 (all_matching_threads_iterator::all_matching_threads_iterator):
14989 Handle filter target.
14990 * thread-iter.h (struct all_matching_threads_iterator, struct
14991 all_matching_threads_range, class all_non_exited_threads_range):
14992 Filter by target too. Remove explicit.
14993 * thread.c (threads_executing): Delete.
14994 (inferior_thread): Pass down current inferior.
14995 (clear_thread_inferior_resources): Pass down thread pointer
14996 instead of ptid_t.
14997 (add_thread_silent, add_thread_with_info, add_thread): Add
14998 process_stratum_target parameter. Use it for thread and inferior
14999 searches.
15000 (is_current_thread): New.
15001 (thread_info::deletable): Use it.
15002 (find_thread_ptid, thread_count, in_thread_list)
15003 (thread_change_ptid, set_resumed, set_running): New
15004 process_stratum_target parameter. Pass it down.
15005 (set_executing): New process_stratum_target parameter. Pass it
15006 down. Adjust reference to 'threads_executing'.
15007 (threads_are_executing): New process_stratum_target parameter.
15008 Adjust reference to 'threads_executing'.
15009 (set_stop_requested, finish_thread_state): New
15010 process_stratum_target parameter. Pass it down.
15011 (switch_to_thread): Also match inferior.
15012 (switch_to_thread): New process_stratum_target parameter. Pass it
15013 down.
15014 (update_threads_executing): Reimplement.
15015 * top.c (quit_force): Pop targets from all inferior.
15016 (gdb_init): Don't call initialize_targets.
15017 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15018 Declare.
15019 (windows_add_thread, windows_delete_thread): Adjust.
15020 (get_windows_debug_event): Rename to ...
15021 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15022 * tracefile-tfile.c (tfile_target_open): Pass down target.
15023 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15024 Forward declare.
15025 (switch_to_thread): Add process_stratum_target parameter.
15026 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15027 parameter. Use it.
15028 (mi_on_resume): Pass target down.
15029 * nat/fork-inferior.c (startup_inferior): Add
15030 process_stratum_target parameter. Pass it down.
15031 * nat/fork-inferior.h (startup_inferior): Add
15032 process_stratum_target parameter.
15033 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15034
75c6c844
PA
150352020-01-10 Pedro Alves <palves@redhat.com>
15036
15037 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15038 directly. Instead find the first thread in the thread list and
15039 use switch_to_thread.
15040
78f2c40a
PA
150412020-01-10 Pedro Alves <palves@redhat.com>
15042
15043 * remote.c (remote_target::remote_add_inferior): Don't bind a
15044 process to the current inferior if the current inferior is already
15045 bound to a process.
15046
e7af6c70
TBA
150472020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15048 Pedro Alves <palves@redhat.com>
15049
15050 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15051 If no process is specified, return null_ptid instead of
15052 inferior_ptid.
15053 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15054 TARGET_WAITKIND_SIGNALLED with no pid.
15055
31ba933e
PA
150562020-01-10 Pedro Alves <palves@redhat.com>
15057
15058 * remote.c (first_remote_resumed_thread): New.
15059 (remote_target::wait_as): Use it as default event_ptid instead of
15060 inferior_ptid.
15061
735fc2ca
PA
150622020-01-10 Pedro Alves <palves@redhat.com>
15063
15064 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15065
c17e02e1
PA
150662020-01-10 Pedro Alves <palves@redhat.com>
15067
15068 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15069 not -1.
15070
ab1ddbcf
PA
150712020-01-10 Pedro Alves <palves@redhat.com>
15072
15073 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15074 ptid to get_last_target_status.
15075 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15076 ptid to get_last_target_status.
15077 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15078 get_last_target_status.
15079 (info_program_command): Don't pass a target_waitstatus to
15080 get_last_target_status.
15081 * infrun.c (init_wait_for_inferior): Use
15082 nullify_last_target_wait_ptid.
15083 (get_last_target_status): Handle nullptr arguments.
15084 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15085 (print_stop_event): Don't pass a ptid to get_last_target_status.
15086 (normal_stop): Don't pass a ptid to get_last_target_status.
15087 * infrun.h (get_last_target_status, set_last_target_status): Move
15088 comments here and update.
15089 (nullify_last_target_wait_ptid): Declare.
15090 * linux-fork.c (fork_load_infrun_state): Remove local extern
15091 declaration of nullify_last_target_wait_ptid.
15092 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15093 to get_last_target_status.
15094
f3f8ece4
PA
150952020-01-10 Pedro Alves <palves@redhat.com>
15096
15097 * gdbthread.h (scoped_restore_current_thread)
15098 <dont_restore, restore, m_dont_restore>: Declare.
15099 * thread.c (thread_alive): Add assertion. Return bool.
15100 (switch_to_thread_if_alive): New.
15101 (prune_threads): Switch inferior/thread.
15102 (print_thread_info_1): Switch thread before calling target methods.
15103 (scoped_restore_current_thread::restore): New, factored out from
15104 ...
15105 (scoped_restore_current_thread::~scoped_restore_current_thread):
15106 ... this.
15107 (scoped_restore_current_thread::scoped_restore_current_thread):
15108 Add assertion.
15109 (thread_apply_all_command, thread_select): Use
15110 switch_to_thread_if_alive.
15111 * infrun.c (proceed, restart_threads, handle_signal_stop)
15112 (switch_back_to_stepped_thread): Switch current thread before
15113 calling target methods.
15114
db2d40f7
PA
151152020-01-10 Pedro Alves <palves@redhat.com>
15116
15117 * inferior.c (switch_to_inferior_no_thread): New function,
15118 factored out from ...
15119 (inferior_command): ... here.
15120 * inferior.h (switch_to_inferior_no_thread): Declare.
15121 * mi/mi-main.c (run_one_inferior): Use
15122 switch_to_inferior_no_thread.
15123
bd420a2d
PA
151242020-01-10 Pedro Alves <palves@redhat.com>
15125
15126 * infcmd.c (kill_command): Remove dead code.
15127
ddf5db90
PA
151282020-01-10 Pedro Alves <palves@redhat.com>
15129
15130 * remote.c (remote_target::mourn_inferior): No longer check
15131 whether the target is running.
15132
5018ce90
PA
151332020-01-10 Pedro Alves <palves@redhat.com>
15134
15135 * corelow.c (core_target::has_execution): Change parameter type to
15136 inferior pointer.
15137 * inferior.c (number_of_live_inferiors): Use
15138 inferior::has_execution instead of target_has_execution_1.
15139 * inferior.h (inferior::has_execution): New.
15140 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15141 inferior::has_execution instead of target_has_execution_1.
15142 * process-stratum-target.c
15143 (process_stratum_target::has_execution): Change parameter type to
15144 inferior pointer. Check the inferior's PID instead of
15145 inferior_ptid.
15146 * process-stratum-target.h
15147 (process_stratum_target::has_execution): Change parameter type to
15148 inferior pointer.
15149 * record-full.c (record_full_core_target::has_execution): Change
15150 parameter type to inferior pointer.
15151 * target.c (target_has_execution_1): Change parameter type to
15152 inferior pointer.
15153 (target_has_execution_current): Adjust.
15154 * target.h (target_ops::has_execution): Change parameter type to
15155 inferior pointer.
15156 (target_has_execution_1): Change parameter type to inferior
15157 pointer. Change return type to bool.
15158 * tracefile.h (tracefile_target::has_execution): Change parameter
15159 type to inferior pointer.
15160
74375d18
PA
151612020-01-10 Pedro Alves <palves@redhat.com>
15162
15163 * exceptions.c (print_flush): Remove current_top_target() check.
15164
acdf84a6
PA
151652020-01-10 Pedro Alves <palves@redhat.com>
15166
15167 * remote.c (show_remote_exec_file): Show the current inferior's
15168 exec-file instead of the command variable's value.
15169
ec506636
PA
151702020-01-10 Pedro Alves <palves@redhat.com>
15171
15172 * record-full.c (record_full_resume_ptid): New global.
15173 (record_full_target::resume): Set it.
15174 (record_full_wait_1): Use record_full_resume_ptid instead of
15175 inferior_ptid.
15176
873657b9
PA
151772020-01-10 Pedro Alves <palves@redhat.com>
15178
15179 * gdbthread.h (scoped_restore_current_thread)
15180 <dont_restore, restore, m_dont_restore>: Declare.
15181 * thread.c (thread_alive): Add assertion. Return bool.
15182 (switch_to_thread_if_alive): New.
15183 (prune_threads): Switch inferior/thread.
15184 (print_thread_info_1): Switch thread before calling target methods.
15185 (scoped_restore_current_thread::restore): New, factored out from
15186 ...
15187 (scoped_restore_current_thread::~scoped_restore_current_thread):
15188 ... this.
15189 (scoped_restore_current_thread::scoped_restore_current_thread):
15190 Add assertion.
15191 (thread_apply_all_command, thread_select): Use
15192 switch_to_thread_if_alive.
15193
7f0ae84c
GB
151942020-01-10 George Barrett <bob@bob131.so>
15195
15196 * stap-probe.c (stap_modify_semaphore): Don't check for null
15197 semaphores.
15198 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15199 for null semaphores.
15200
f5a7c406
AB
152012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15202
15203 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15204 all source windows, and maintain horizontal scroll status while
15205 doing so.
15206
9ae6bf64
TT
152072020-01-09 Tom Tromey <tom@tromey.com>
15208
15209 PR tui/18932:
15210 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15211 update_source_window, not print_source_lines.
15212
b2efe70c
AB
152132020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15214
15215 * tui/tui.c (tui_enable): Register tui hooks after calling
15216 tui_display_main.
15217
5f23a082
CB
152182020-01-09 Christian Biesinger <cbiesinger@google.com>
15219
15220 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15221
3061113b
SM
152222020-01-08 Simon Marchi <simon.marchi@efficios.com>
15223
15224 * thread.c (print_thread_info_1): Fix indentation.
15225
57d75002
CB
152262020-01-09 Christian Biesinger <cbiesinger@google.com>
15227
15228 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15229 unique_xmalloc_ptr outside the if to always free the demangled name.
15230
6a053cb1
TT
152312020-01-08 Tom Tromey <tromey@adacore.com>
15232
15233 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15234 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15235 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15236 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15237 Remove.
15238 (section_offsets): New typedef.
15239 * symtab.c (fixup_section, get_msymbol_address): Update.
15240 * symmisc.c (dump_msymbols): Update.
15241 * symfile.h (relative_addr_info_to_section_offsets)
15242 (symfile_map_offsets_to_segments): Update.
15243 * symfile.c (build_section_addr_info_from_objfile)
15244 (init_objfile_sect_indices): Update.
15245 (struct place_section_arg): Change type of "offsets".
15246 (place_section): Update.
15247 (relative_addr_info_to_section_offsets): Change type of
15248 "section_offsets". Remove "num_sections" parameter.
15249 (default_symfile_offsets, syms_from_objfile_1)
15250 (set_objfile_default_section_offset): Update.
15251 (reread_symbols): No need to preserve section offsets by hand.
15252 (symfile_map_offsets_to_segments): Change type of "offsets".
15253 * stap-probe.c (relocate_address): Update.
15254 * stabsread.h (process_one_symbol): Update.
15255 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15256 (solib_target_relocate_section_addresses): Update.
15257 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15258 Update.
15259 * solib-frv.c (frv_relocate_main_executable): Update.
15260 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15261 * solib-aix.c (solib_aix_get_section_offsets): Change return
15262 type.
15263 (solib_aix_solib_create_inferior_hook): Update.
15264 * remote.c (remote_target::get_offsets): Update.
15265 * psymtab.c (find_pc_sect_psymtab): Update.
15266 * psympriv.h (struct partial_symbol) <address, text_low,
15267 text_high>: Update.
15268 * objfiles.h (obj_section_offset): Update.
15269 (struct objfile) <section_offsets>: Change type.
15270 <num_sections>: Remove.
15271 (objfile_relocate): Update.
15272 * objfiles.c (entry_point_address_query): Update
15273 (relocate_one_symbol): Change type of "section_offsets".
15274 (objfile_relocate1, objfile_relocate1): Change type of
15275 "new_offsets".
15276 (objfile_rebase1): Update.
15277 * mipsread.c (mipscoff_symfile_read): Update.
15278 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15279 parameter.
15280 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15281 (parse_external, psymtab_to_symtab_1): Update.
15282 * machoread.c (macho_symfile_offsets): Update.
15283 * ia64-tdep.c (ia64_find_unwind_table): Update.
15284 * hppa-tdep.c (read_unwind_info): Update.
15285 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15286 * dwarf2read.c (create_addrmap_from_index)
15287 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15288 (process_psymtab_comp_unit_reader, add_partial_symbol)
15289 (add_partial_subprogram, process_full_comp_unit)
15290 (read_file_scope, read_func_scope, read_lexical_block_scope)
15291 (read_call_site_scope, dwarf2_rnglists_process)
15292 (dwarf2_ranges_process, dwarf2_ranges_read)
15293 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15294 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15295 Update.
15296 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15297 Update.
15298 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15299 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15300 (process_one_symbol): Change type of "section_offsets".
15301 * ctfread.c (get_objfile_text_range): Update.
15302 * coffread.c (coff_symtab_read, enter_linenos)
15303 (process_coff_symbol): Update.
15304 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15305 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15306
456e800a
TT
153072020-01-08 Tom Tromey <tromey@adacore.com>
15308
15309 * dwarf2read.c (parse_macro_definition): Use std::string.
15310 (parse_macro_definition): Likewise.
15311
6dfa2fc2
TT
153122020-01-08 Tom Tromey <tromey@adacore.com>
15313
15314 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15315 (ATTR_ALLOC_CHUNK): Remove.
15316
421d1616
TT
153172020-01-08 Tom Tromey <tromey@adacore.com>
15318
15319 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15320
43816ebc
TT
153212020-01-08 Tom Tromey <tromey@adacore.com>
15322
15323 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15324 (dwarf2_compute_name, open_dwo_file): Likewise.
15325 (process_enumeration_scope): Use std::vector.
15326 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15327 (partial_die_info::fixup, dwarf2_start_subfile)
15328 (guess_full_die_structure_name, dwarf2_name): Likewise.
15329 (determine_prefix): Update.
15330 (guess_full_die_structure_name): Make return type const.
15331 (partial_die_full_name): Return unique_xmalloc_ptr.
15332 (DW_FIELD_ALLOC_CHUNK): Remove.
15333
4212d509
TT
153342020-01-07 Tom Tromey <tromey@adacore.com>
15335
15336 PR build/24937:
15337 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15338
06a6207a
JT
153392020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15340
15341 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15342
153d79c4
AB
153432020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15344
15345 * stack.c (print_frame_info): Move disassemble_next_line code
15346 inside source_print block.
15347
66182876
EZ
153482020-01-06 Eli Zaretskii <eliz@gnu.org>
15349
15350 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15351 gdb/signals.h, as we are now using native signal symbols.
15352
cbfa8581
SV
153532020-01-06 Shahab Vahedi <shahab@synopsys.com>
15354
15355 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15356 overflow by an early check of content vs threshold.
aac66a4c 15357 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15358 Likewise.
15359
3f602821
EZ
153602020-01-06 Eli Zaretskii <eliz@gnu.org>
15361
15362 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15363
a08c904d
JT
153642020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15365
15366 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15367 export table if no section contains it's RVA.
15368
89a65580
EZ
153692020-01-06 Eli Zaretskii <eliz@gnu.org>
15370
15371 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15372
8b7fcda2
HD
153732020-01-06 Hannes Domani <ssbssa@yahoo.de>
15374
15375 * source.c (print_source_lines_base): Set last_line_listed.
15376
a61b4f69
SV
153772020-01-06 Shahab Vahedi <shahab@synopsys.com>
15378
15379 * tui/tui-disasm.c: Remove trailing spaces.
15380
559e7e50
EZ
153812020-01-06 Eli Zaretskii <eliz@gnu.org>
15382 Pedro Alves <palves@redhat.com>
15383
15384 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15385 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15386 (windows_gdb_signal_to_target): New function, uses the above
15387 enumeration to convert GDB internal signal codes to equivalent
15388 Windows codes.
15389 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15390 * windows-nat.c: Include "gdb_wait.h".
15391 (get_windows_debug_event): Extract the fatal exception from the
15392 exit status and convert to the equivalent Posix signal number.
15393 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15394 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15395 * gdbsupport/gdb_wait.c: New file, implements
15396 windows_status_to_termsig.
15397 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15398 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15399
f2302a34
AB
154002020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15401
15402 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15403 show_layout.
15404
6a5206eb
LM
154052020-01-05 Luis Machado <luis.machado@linaro.org>
15406
15407 * aarch64-linux-nat.c
15408 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15409 and bfd_mach_aarch64.
15410
6ec1d75e
PW
154112020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15412
15413 * ui-file.c (stdio_file::can_emit_style_escape)
15414 (tee_file::can_emit_style_escape): Ensure style is used also on
15415 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15416 to gdb_stdout.
15417 * main.c (set_gdb_data_directory): Use file style to output the
15418 warning that the given pathname is not a directory.
15419 * top.c (show_history_filename, gdb_safe_append_history)
15420 (show_gdb_datadir): Use file style.
15421
44f81a76
HD
154222020-01-03 Hannes Domani <ssbssa@yahoo.de>
15423
15424 * solib-target.c (struct lm_info_target):
15425 Change offsets to be a unique_xmalloc_ptr.
15426 (solib_target_relocate_section_addresses): Update.
15427
25057eb0
HD
154282020-01-03 Hannes Domani <ssbssa@yahoo.de>
15429
15430 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15431
6e2118f5
BE
154322020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15433
15434 * MAINTAINERS (Write After Approval): Add myself.
15435
8133c7dc
LM
154362020-01-02 Luis Machado <luis.machado@linaro.org>
15437
15438 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15439 Cell BE architecture.
15440 * target.h (struct target_ops) <thread_architecture>: Likewise.
15441
48189bec
HD
154422020-01-01 Hannes Domani <ssbssa@yahoo.de>
15443
15444 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15445
ead1063b
HD
154462020-01-01 Hannes Domani <ssbssa@yahoo.de>
15447
15448 * MAINTAINERS (Write After Approval): Add myself.
15449
e5d78223
JB
154502020-01-01 Joel Brobecker <brobecker@adacore.com>
15451
15452 * gdbarch.sh: Update copyright year range of generated files.
15453
b811d2c2
JB
154542020-01-01 Joel Brobecker <brobecker@adacore.com>
15455
15456 Update copyright year range in all GDB files.
15457
5f4def5c
JB
154582020-01-01 Joel Brobecker <brobecker@adacore.com>
15459
15460 * copyright.py: Convert to Python 3.
15461
51fd4002
JB
154622020-01-01 Joel Brobecker <brobecker@adacore.com>
15463
15464 * copyright.py: Adapt after move of gnulib directory from gdb
15465 directory to toplevel directory.
15466
5fb651f2
JB
154672020-01-01 Joel Brobecker <brobecker@adacore.com>
15468
15469 * copyright.py (main): Exit if run from the wrong directory.
15470
5dd8bf88
JB
154712020-01-01 Joel Brobecker <brobecker@adacore.com>
15472
15473 * top.c (print_gdb_version): Change copyright year to 2020.
15474
9f71dacb 154752020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15476
9f71dacb 15477 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15478
9f71dacb 15479For older changes see ChangeLog-2019.
c906108c
SS
15480\f
15481Local Variables:
15482mode: change-log
15483left-margin: 8
15484fill-column: 74
15485version-control: never
57da7796 15486coding: utf-8
c906108c 15487End:
This page took 3.578329 seconds and 4 git commands to generate.