Fix gdb.base/corefile2.exp regression when running Docker/AUFS
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1bd57575
LM
12020-10-22 Luis Machado <luis.machado@linaro.org>
2
3 * corelow.c (core_target::xfer_partial): Also check for an empty
4 m_core_unavailable_mappings vector.
5
6b4c676c
AB
62020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
9 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
10 * f-exp.y (arglist): Allow for a series of subranges.
11 (subrange): Add cases for subranges with strides.
12 * f-lang.c (value_f90_subarray): Catch use of array strides and
13 throw an error.
14 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
15
f2d8e4c5
AB
162020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
17
18 * expprint.c (print_subexp_standard): Change enum range_type to
19 range_flag and rename variables to match.
20 (dump_subexp_body_standard): Likewise.
21 * expression.h (enum range_type): Rename to...
22 (enum range_flag): ...this.
23 (range_types): Rename to...
24 (range_flags): ...this.
25 * f-lang.c (value_f90_subarray): Change enum range_type to
26 range_flag and rename variables to match.
27 * parse.c (operator_length_standard): Likewise.
28 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
29 range_type to range_flag.
30 * rust-lang.c (rust_evaluate_funcall): Likewise.
31 (rust_range): Likewise.
32 (rust_compute_range): Likewise.
33 (rust_subscript): Likewise.
34
2f1b18db
AB
352020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * expprint.c (print_subexp_standard): Update to reflect changes to
38 enum range_type.
39 (dump_subexp_body_standard): Likewise.
40 * expression.h (enum range_type): Convert to a bit field enum, and
41 make the enum unsigned.
42 * f-exp.y (subrange): Update to reflect changes to enum
43 range_type.
44 * f-lang.c (value_f90_subarray): Likewise.
45 * parse.c (operator_length_standard): Likewise.
46 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
47 * rust-lang.c (rust_range): Likewise.
48 (rust_compute_range): Likewise.
49 (rust_subscript): Likewise.
50
a46d1843
SM
512020-10-21 Simon Marchi <simon.marchi@efficios.com>
52
53 * infrun.c (displaced_step_in_progress_thread): Fix comment.
54 (displaced_step_in_progress): Fix comment.
55
c21f37a8
SM
562020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * gdbarch.sh (make_corefile_notes): Return unique pointer.
59 * gdbarch.c: Re-generate.
60 * gdbarch.h: Re-generate.
61 * gcore.c (write_gcore_file_1): Adjust.
62 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
63 constructor.
64 <note_data>: Change type to unique pointer.
65 <abort_iteration>: Change type to bool.
66 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
67 (fbsd_collect_thread_registers): Return void, adjust.
68 (struct fbsd_corefile_thread_data): Add construtor.
69 <note_data>: Change type to unique pointer.
70 (fbsd_corefile_thread): Adjust.
71 (fbsd_make_corefile_notes): Return unique pointer, adjust.
72 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
73 to unique pointer, adjust.
74 (struct linux_collect_regset_section_cb_data): Add constructor.
75 <note_data>: Change type to unique pointer.
76 <abort_iteration>: Change type to bool.
77 (linux_collect_thread_registers): Return void, adjust.
78 (struct linux_corefile_thread_data): Add constructor.
79 <note_data>: Change type to unique pointer.
80 (linux_corefile_thread): Adjust.
81 (linux_make_corefile_notes): Return unique pointer, adjust.
82
07fbbd01
SM
832020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
86 * gdbarch.c: Re-generate.
87 * gdbarch.h: Re-generate.
88 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
89 bool.
90 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
91 Likewise.
92 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
93 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
94 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
95 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
96
39535193
SM
972020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * gdbarch.sh: Make generated predicates return bool.
100 * gdbarch.c: Re-generate.
101 * gdbarch.h: Re-generate.
102
ad523d01
TT
1032020-10-20 Tom Tromey <tom@tromey.com>
104
105 * varobj-iter.h (struct varobj_item): Remove typedef.
106
c4464ade
SM
1072020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * infrun.c (currently_stepping): Change int to bool
110 (maybe_software_singlestep): Likewise.
111 (show_stop_on_solib_events): Likewise.
112 (stepping_past_nonsteppable_watchpoint): Likewise.
113 (displaced_step_in_progress_any_inferior): Likewise.
114 (displaced_step_in_progress_thread): Likewise.
115 (keep_going_stepped_thread): Likewise.
116 (thread_still_needs_step_over): Likewise.
117 (start_step_over): Likewise.
118 (do_target_resume): Likewise.
119 (resume_1): Likewise.
120 (clear_proceed_status): Likewise.
121 (thread_still_needs_step_over_bp): Likewise.
122 (proceed): Likewise.
123 (switch_back_to_stepped_thread): Likewise.
124 (adjust_pc_after_break): Likewise.
125 (stepped_in_from): Likewise.
126 (handle_stop_requested): Likewise.
127 (handle_syscall_event): Likewise.
128 (handle_no_resumed): Likewise.
129 (handle_inferior_event): Likewise.
130 (finish_step_over): Likewise.
131 (handle_signal_stop): Likewise.
132 (process_event_stop_test): Likewise.
133
2eb20436
SM
1342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * infrun.c (get_displaced_stepping_state): Fix comment.
137
e0c45ded
AS
1382020-10-20 Andreas Schwab <schwab@linux-m68k.org>
139
140 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
141
22cc388e
TT
1422020-10-19 Tom Tromey <tromey@adacore.com>
143
144 PR tui/26719
145 * tui/tui-winsource.h (struct tui_source_window_base)
146 <refresh_window>: Rename from refresh_pad.
147 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
148 Rename from refresh_pad.
149 (tui_source_window_base::show_source_content)
150 (tui_source_window_base::do_scroll_horizontal): Update.
151
3c6eb4d4
TBA
1522020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
153
154 * thread.c (_initialize_thread): Fine-tune the help text of
155 'info threads'.
156
26703721
TBA
1572020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
158
159 * frame.c: Remove the unused 'uinteger_option_def' type alias.
160
61c26be8
MS
1612020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
162
163 * breakpoint.c (handle_jit_event): Add an argument, change how
164 `jit_event_handler` is called.
165
932539d7
TT
1662020-10-17 Tom Tromey <tom@tromey.com>
167
168 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
169 (scan_xcoff_symtab): Update.
170 * psymtab.h (class psymtab_storage) <global_psymbols,
171 static_psymbols, current_global_psymbols,
172 current_static_psymbols>: Remove.
173 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
174 (match_partial_symbol, lookup_partial_symbol): Update.
175 (print_partial_symbols): Change parameters.
176 (dump_psymtab, recursively_search_psymtabs)
177 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
178 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
179 (concat): Remove.
180 (end_psymtab_common): Simplify.
181 (append_psymbol_to_list): Change parameters.
182 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
183 (init_psymbol_list): Simplify.
184 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
185 * psympriv.h (struct partial_symtab) <empty>: New method.
186 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
187 Remove.
188 <global_psymbols, static_psymbols>: New members.
189 <add_psymbol>: New methods.
190 (add_psymbol_to_list): Don't declare.
191 (psymbol_placement): Move earlier.
192 * mdebugread.c (parse_partial_symbols): Update.
193 (handle_psymbol_enumerators): Change parameters.
194 (mdebug_expand_psymtab): Update.
195 * dwarf2/read.c (process_psymtab_comp_unit_reader)
196 (add_partial_symbol): Update.
197 * dwarf2/index-write.c (write_psymbols): Change parameters.
198 (write_one_signatured_type): Update.
199 (recursively_count_psymbols): Update.
200 (recursively_write_psymbols): Update.
201 (class debug_names) <recursively_write_psymbols>: Update.
202 <write_psymbols>: Change parameters.
203 <write_one_signatured_type>: Update.
204 * dbxread.c (read_dbx_symtab): Update.
205 (dbx_end_psymtab): Use partial_symtab::empty.
206 * ctfread.c (struct ctf_context) <pst>: New member.
207 (create_partial_symtab): Set it.
208 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
209 (scan_partial_symbols): Use the psymtab's context. Update.
210
cfabbd35
TT
2112020-10-17 Tom Tromey <tom@tromey.com>
212
213 * valprint.c (generic_value_print): Remove comment.
214 * m2-valprint.c (m2_value_print_inner): Remove comment.
215 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
216 type.
217
520596f2
TV
2182020-10-17 Tom de Vries <tdevries@suse.de>
219
220 PR symtab/26317
221 * source.c (select_source_symtab): Handling sal.symtab == NULL for
222 symbol main.
223
76547ab3
TV
2242020-10-14 Tom de Vries <tdevries@suse.de>
225
226 PR gdb/26733
227 * solib.c (solib_contains_address_p): Handle
228 'solib->sections == nullptr'.
229
d3a07122
SM
2302020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
231
232 PR gdb/26642
233 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
234 target can't do async.
235 * target.c (target_wait): Assert that we don't pass
236 TARGET_WNOHANG to a target that can't async.
237
1b71cfcf
KR
2382020-10-13 Kamil Rytarowski <n54@gmx.com>
239
240 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
241 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
242 * alpha-bsd-nat.c: Adjust include.
243 * alpha-bsd-tdep.h: Adjust comment.
244 * alpha-nbsd-tdep.c: Rename to ...
245 * alpha-netbsd-tdep.c: ... this, adjust include.
246 * amd64-nbsd-nat.c: Rename to ...
247 * amd64-netbsd-nat.c: ... this, adjust include.
248 * amd64-nbsd-tdep.c: Rename to ...
249 * amd64-netbsd-tdep.c: ... this, adjust include.
250 * amd64-tdep.h: Adjust include.
251 * arm-nbsd-nat.c: Rename to ...
252 * arm-netbsd-nat.c: ... this, adjust include.
253 * arm-nbsd-tdep.c: Rename to ...
254 * arm-netbsd-tdep.c: ... this, adjust include.
255 * arm-nbsd-tdep.h: Rename to ...
256 * arm-netbsd-tdep.h: ... this, adjust include.
257 * configure.nat: Adjust file lists.
258 * configure.tgt: Likewise.
259 * hppa-nbsd-nat.c: Rename to ...
260 * hppa-netbsd-nat.c: ... this, adjust include.
261 * hppa-nbsd-tdep.c: Rename to ...
262 * hppa-netbsd-tdep.c: ... this, adjust include.
263 * i386-nbsd-nat.c: Rename to ...
264 * i386-netbsd-nat.c: ... this, adjust include.
265 * i386-nbsd-tdep.c: Rename to ...
266 * i386-netbsd-tdep.c: ... this, adjust include.
267 * m68k-bsd-nat.c: Adjust include.
268 * mips-nbsd-nat.c: Rename to ...
269 * mips-netbsd-nat.c: ... this, adjust include.
270 * mips-nbsd-tdep.c: Rename to ...
271 * mips-netbsd-tdep.c: ... this, adjust include.
272 * mips-nbsd-tdep.h: Rename to ...
273 * mips-netbsd-tdep.h: ... this.
274 * nbsd-nat.c: Rename to ...
275 * netbsd-nat.c: ... this, adjust include.
276 * nbsd-nat.h: Rename to ...
277 * netbsd-nat.h: ... this, adjust include.
278 * nbsd-tdep.c: Rename to ...
279 * netbsd-tdep.c: ... this, adjust include.
280 * nbsd-tdep.h: Rename to ...
281 * netbsd-tdep.h: ... this.
282 * ppc-nbsd-nat.c: Rename to ...
283 * ppc-netbsd-nat.c: ... this, adjust include.
284 * ppc-nbsd-tdep.c: Rename to ...
285 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
286 * ppc-nbsd-tdep.h: Rename to ...
287 * ppc-netbsd-tdep.h: ... this.
288 * sh-nbsd-nat.c: Rename to ...
289 * sh-netbsd-nat.c: ... this, adjust include.
290 * sh-nbsd-tdep.c: Rename to ...
291 * sh-netbsd-tdep.c: ... this, adjust include.
292 * sparc-nbsd-nat.c: Rename to ...
293 * sparc-netbsd-nat.c: ... this.
294 * sparc-nbsd-tdep.c: Rename to ...
295 * sparc-netbsd-tdep.c: ... this, adjust include.
296 * sparc64-nbsd-nat.c: Rename to ...
297 * sparc64-netbsd-nat.c: ... this.
298 * sparc64-nbsd-tdep.c: Rename to ...
299 * sparc64-netbsd-tdep.c: ... this, adjust include.
300 * sparc64-tdep.h: Adjust comment.
301 * vax-bsd-nat.c: Adjust include.
302 * vax-nbsd-tdep.c: Rename to ...
303 * vax-netbsd-tdep.c: ... this, adjust include.
304
d7a78e5c
TT
3052020-10-12 Tom Tromey <tom@tromey.com>
306
307 * target.h (struct target_ops) <get_section_table>: Update.
308 (target_get_section_table): Update.
309 * target.c (target_get_section_table, target_section_by_addr)
310 (memory_xfer_partial_1): Update.
311 * target-section.h (target_section_table): Now an alias.
312 * target-delegates.c: Rebuild.
313 * target-debug.h (target_debug_print_target_section_table_p):
314 Rename from target_debug_print_struct_target_section_table_p.
315 * symfile.c (build_section_addr_info_from_section_table): Update.
316 * solib.c (solib_map_sections, solib_contains_address_p): Update.
317 * solib-svr4.c (scan_dyntag): Update.
318 * solib-dsbt.c (scan_dyntag): Update.
319 * remote.c (remote_target::remote_xfer_live_readonly_partial):
320 Update.
321 * record-full.c (record_full_core_target::xfer_partial): Update.
322 * progspace.h (struct program_space) <target_sections>: Update.
323 * exec.h (print_section_info): Update.
324 * exec.c (exec_target::close, build_section_table)
325 (add_target_sections, add_target_sections_of_objfile)
326 (remove_target_sections, exec_on_vfork)
327 (section_table_available_memory)
328 (section_table_xfer_memory_partial)
329 (exec_target::get_section_table, exec_target::xfer_partial)
330 (print_section_info, set_section_command)
331 (exec_set_section_address, exec_target::has_memory): Update.
332 * corelow.c (core_target::build_file_mappings)
333 (core_target::xfer_partial, core_target::info_proc_mappings)
334 (core_target::info_proc_mappings): Update.
335 * bfd-target.c (class target_bfd): Update
336
eda214ce
TT
3372020-10-12 Tom Tromey <tom@tromey.com>
338
339 * progspace.c (program_space::~program_space): Don't call
340 clear_section_table.
341 * exec.h (clear_section_table): Don't declare.
342 * exec.c (exec_target::close): Update.
343 (clear_section_table): Remove.
344
91840ee3
TT
3452020-10-12 Tom Tromey <tom@tromey.com>
346
347 * exec.c (add_target_sections_of_objfile): Simplify.
348
2d128614
TT
3492020-10-12 Tom Tromey <tom@tromey.com>
350
351 * solib.c (solib_map_sections): Update.
352 * record-full.c (record_full_core_open_1): Update.
353 * exec.h (build_section_table): Return a target_section_table.
354 * exec.c (exec_file_attach): Update.
355 (build_section_table): Return a target_section_table.
356 * corelow.c (core_target::core_target): Update.
357 * bfd-target.c (target_bfd::target_bfd): Update.
358
bb2a6777
TT
3592020-10-12 Tom Tromey <tom@tromey.com>
360
361 * target.c (target_section_by_addr, memory_xfer_partial_1):
362 Update.
363 * target-section.h (struct target_section_table): Use
364 std::vector.
365 * symfile.h (build_section_addr_info_from_section_table): Take a
366 target_section_table.
367 * symfile.c (build_section_addr_info_from_section_table): Take a
368 target_section_table.
369 * solist.h (struct so_list) <sections>: Change type.
370 <sections_end>: Remove.
371 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
372 (solib_contains_address_p): Update.
373 * solib-svr4.c (scan_dyntag): Update.
374 * solib-dsbt.c (scan_dyntag): Update.
375 * remote.c (remote_target::remote_xfer_live_readonly_partial):
376 Update.
377 * record-full.c (record_full_core_start, record_full_core_end):
378 Remove.
379 (record_full_core_sections): New global.
380 (record_full_core_open_1, record_full_core_target::xfer_partial):
381 Update.
382 * exec.h (build_section_table, section_table_xfer_memory_partial)
383 (add_target_sections): Take a target_section_table.
384 * exec.c (exec_file_attach, clear_section_table): Update.
385 (resize_section_table): Remove.
386 (build_section_table, add_target_sections): Take a
387 target_section_table.
388 (add_target_sections_of_objfile, remove_target_sections)
389 (exec_on_vfork): Update.
390 (section_table_available_memory): Take a target_section_table.
391 (section_table_read_available_memory): Update.
392 (section_table_xfer_memory_partial): Take a target_section_table.
393 (print_section_info, set_section_command)
394 (exec_set_section_address, exec_target::has_memory): Update.
395 * corelow.c (class core_target) <m_core_section_table,
396 m_core_file_mappings>: Remove braces.
397 <~core_target>: Remove.
398 (core_target::core_target): Update.
399 (core_target::~core_target): Remove.
400 (core_target::build_file_mappings)
401 (core_target::xfer_memory_via_mappings)
402 (core_target::xfer_partial, core_target::info_proc_mappings):
403 Update.
404 * bfd-target.c (target_bfd::xfer_partial): Update.
405 (target_bfd::target_bfd): Update.
406 (target_bfd::~target_bfd): Remove.
407
7b466b10
TT
4082020-10-12 Tom Tromey <tom@tromey.com>
409
410 * target.h (struct target_section, struct target_section_table):
411 Move to target-section.h.
412 * target-section.h: New file.
413
87a37e5e
PA
4142020-10-12 Pedro Alves <pedro@palves.net>
415
416 PR exp/26602
417 * valops.c (struct struct_field_searcher): New.
418 (update_search_result): Rename to ...
419 (struct_field_searcher::update_result): ... this. Simplify
420 prototype. Record all found fields.
421 (do_search_struct_field): Rename to ...
422 (struct_field_searcher::search): ... this. Simplify prototype.
423 Maintain stack of visited baseclass path. Call update_result for
424 fields too. Keep searching fields in baseclasses instead of
425 stopping at the first found field.
426 (search_struct_field): Use struct_field_searcher. When looking
427 for fields, report ambiguous access attempts.
428
9370fd51
AB
4292020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * frame.c (inside_main_func): Check full symbols as well as
432 minimal symbols.
433
59c8a30b
JB
4342020-10-09 Joel Brobecker <brobecker@adacore.com>
435
436 * ada-lang.c (advance_wild_match): Rewrite the function's
437 description. Change the type of target0, t0 and t1 to char.
438
7c184d33
TT
4392020-10-09 Tom Tromey <tromey@adacore.com>
440
441 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
442
5c4258f4
TT
4432020-10-09 Tom Tromey <tromey@adacore.com>
444
445 * ada-lang.h (ada_encode): Return std::string.
446 * ada-lang.c (ada_encode_1): Return std::string.
447 (ada_encode): Likewise.
448 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
449 Update.
450 * ada-exp.y (block_lookup, write_var_or_type): Update.
451
3d87245c
HD
4522020-10-09 Hannes Domani <ssbssa@yahoo.de>
453
454 PR exp/26714
455 * printcmd.c (print_formatted): Handle void results as
456 unformatted prints.
457
bbb826f5
AB
4582020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * arch/aarch32.c (aarch32_create_target_description): Release the
461 target_desc_up as late as possible.
462 * arch/aarch64.c (aarch64_create_target_description): Likewise.
463 * arch/amd64.c (amd64_create_target_description): Likewise.
464 * arch/arc.c (arc_create_target_description): Return a
465 target_desc_up, don't release it.
466 * arch/arc.h (arc_create_target_description): Update declaration.
467 (arc_lookup_target_description): Move target_desc_up into the
468 cache, and return a borrowed pointer.
469 * arch/arm.c (arm_create_target_description): Release the
470 target_desc_up as late as possible.
471 * arch/i386.c (i386_create_target_description): Likewise.
472 * arch/riscv.h (riscv_create_target_description): Update
473 declaration to match definition.
474 * arch/tic6x.c (tic6x_create_target_description): Release the
475 target_desc_up as late as possible.
476
361cb219
AB
4772020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
480 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
481
f5c4b229
JV
4822020-10-09 Jan Vrany <jan.vrany@labware.com>
483
484 * source.c (directory_command): Notify observers that "directories"
485 parameter has changed.
486
b2701685
TT
4872020-10-08 Tom Tromey <tom@tromey.com>
488
489 * cli/cli-cmds.c (print_disassembly): Style function name and
490 addresses. Add _() wrappers.
491
ada508b6
SV
4922020-10-08 Shahab Vahedi <shahab@synopsys.com>
493
494 * NEWS: Mention ARC support in GDBserver.
495
51a948fd
AB
4962020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * arch/aarch32.c (aarch32_create_target_description): Release
499 unique_ptr returned from allocate_target_description.
500 * arch/aarch64.c (aarch64_create_target_description): Likewise.
501 * arch/amd64.c (amd64_create_target_description): Likewise.
502 * arch/arc.c (arc_create_target_description): Likewise.
503 * arch/arm.c (arm_create_target_description): Likewise.
504 * arch/i386.c (i386_create_target_description): Likewise.
505 * arch/riscv.c (riscv_create_target_description): Update return
506 type. Handle allocate_target_description returning a unique_ptr.
507 (riscv_lookup_target_description): Update to handle unique_ptr.
508 * arch/tic6x.c (tic6x_create_target_description): Release
509 unique_ptr returned from allocate_target_description.
510 * features/microblaze-with-stack-protect.c: Regenerate.
511 * features/microblaze.c: Regenerate.
512 * features/mips-dsp-linux.c: Regenerate.
513 * features/mips-linux.c: Regenerate.
514 * features/mips64-dsp-linux.c: Regenerate.
515 * features/mips64-linux.c: Regenerate.
516 * features/nds32.c: Regenerate.
517 * features/nios2.c: Regenerate.
518 * features/or1k.c: Regenerate.
519 * features/rs6000/powerpc-32.c: Regenerate.
520 * features/rs6000/powerpc-32l.c: Regenerate.
521 * features/rs6000/powerpc-403.c: Regenerate.
522 * features/rs6000/powerpc-403gc.c: Regenerate.
523 * features/rs6000/powerpc-405.c: Regenerate.
524 * features/rs6000/powerpc-505.c: Regenerate.
525 * features/rs6000/powerpc-601.c: Regenerate.
526 * features/rs6000/powerpc-602.c: Regenerate.
527 * features/rs6000/powerpc-603.c: Regenerate.
528 * features/rs6000/powerpc-604.c: Regenerate.
529 * features/rs6000/powerpc-64.c: Regenerate.
530 * features/rs6000/powerpc-64l.c: Regenerate.
531 * features/rs6000/powerpc-7400.c: Regenerate.
532 * features/rs6000/powerpc-750.c: Regenerate.
533 * features/rs6000/powerpc-860.c: Regenerate.
534 * features/rs6000/powerpc-altivec32.c: Regenerate.
535 * features/rs6000/powerpc-altivec32l.c: Regenerate.
536 * features/rs6000/powerpc-altivec64.c: Regenerate.
537 * features/rs6000/powerpc-altivec64l.c: Regenerate.
538 * features/rs6000/powerpc-e500.c: Regenerate.
539 * features/rs6000/powerpc-e500l.c: Regenerate.
540 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
541 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
542 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
543 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
544 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
545 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
546 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
547 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
548 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
549 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
550 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
551 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
552 * features/rs6000/powerpc-vsx32.c: Regenerate.
553 * features/rs6000/powerpc-vsx32l.c: Regenerate.
554 * features/rs6000/powerpc-vsx64.c: Regenerate.
555 * features/rs6000/powerpc-vsx64l.c: Regenerate.
556 * features/rs6000/rs6000.c: Regenerate.
557 * features/rx.c: Regenerate.
558 * features/s390-gs-linux64.c: Regenerate.
559 * features/s390-linux32.c: Regenerate.
560 * features/s390-linux32v1.c: Regenerate.
561 * features/s390-linux32v2.c: Regenerate.
562 * features/s390-linux64.c: Regenerate.
563 * features/s390-linux64v1.c: Regenerate.
564 * features/s390-linux64v2.c: Regenerate.
565 * features/s390-te-linux64.c: Regenerate.
566 * features/s390-tevx-linux64.c: Regenerate.
567 * features/s390-vx-linux64.c: Regenerate.
568 * features/s390x-gs-linux64.c: Regenerate.
569 * features/s390x-linux64.c: Regenerate.
570 * features/s390x-linux64v1.c: Regenerate.
571 * features/s390x-linux64v2.c: Regenerate.
572 * features/s390x-te-linux64.c: Regenerate.
573 * features/s390x-tevx-linux64.c: Regenerate.
574 * features/s390x-vx-linux64.c: Regenerate.
575 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
576 from allocate_target_description.
577 * target-descriptions.c (allocate_target_description): Update
578 return type.
579 (print_c_tdesc::visit_pre): Release unique_ptr returned from
580 allocate_target_description.
581
485c47e5
TT
5822020-10-07 Tom Tromey <tromey@adacore.com>
583
584 * unittests/search-memory-selftests.c: New file.
585 * Makefile.in (SELFTESTS_SRCS): Add
586 unittests/search-memory-selftests.c.
587
3a135a91
TT
5882020-10-07 Tom Tromey <tromey@adacore.com>
589
590 PR gdb/16930:
591 * findcmd.c (_initialize_mem_search): Mention that the range is
592 inclusive.
593
4a72de73
TT
5942020-10-07 Tom Tromey <tromey@adacore.com>
595
596 * target.h (simple_search_memory): Don't declare.
597 * target.c (simple_search_memory): Move to gdbsupport.
598 (default_search_memory): Update.
599 * remote.c (remote_target::search_memory): Update.
600
a038ffd8
SM
6012020-10-07 Simon Marchi <simon.marchi@efficios.com>
602
603 * Makefile.in (COMPILE): Add CXXFLAGS.
604 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
605 (check-headers): Add CXXFLAGS.
606
cc463201
AK
6072020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
608
609 * arc-linux-tdep.h: New file.
610 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
611 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
612 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
613 arc_linux_gregset, arc_linux_v2_regset,
614 arc_linux_iterate_over_regset_sections,
615 arc_linux_core_read_description): Implement.
616 (arc_linux_init_osabi): Set iterate_over_regset_sections.
617 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
618 (arc_gdbarch_features_create): Add.
619 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
620
e4bd363f
SV
6212020-10-07 Shahab Vahedi <shahab@synopsys.com>
622
623 * arch/arc.h: Rename "arc_gdbarch_features" to
624 "arc_arch_features".
625 * arc-tdep.h: Likewise.
626 * arc-tdep.c: Likewise.
627
b68bef99
TBA
6282020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
629
630 * infcmd.c (attach_command): Remove the redundant call to
631 `clear_proceed_status`.
632
4641551a
KR
6332020-10-07 Kamil Rytarowski <n54@gmx.com>
634
635 * nat/netbsd-nat.c (write_memory, read_memory): Update.
636
91e5e8db
KR
6372020-10-07 Kamil Rytarowski <n54@gmx.com>
638
639 * nat/netbsd-nat.c (write_memory, read_memory): Add.
640 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
641 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
642
64c03bdb
SM
6432020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
644
645 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
646 (_initialize_break_catch_sig): Don't allocate array.
647
31a8f60f
AB
6482020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
649
650 * symtab.c (find_pc_line): Return unmapped addresses when the
651 requested address is also unmapped.
652
9e6dbd8b
SM
6532020-10-05 Simon Marchi <simon.marchi@efficios.com>
654
655 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
656 tui/tui-out.h.
657
a1d217e8
SM
6582020-10-05 Simon Marchi <simon.marchi@efficios.com>
659
660 * amd64-windows-tdep.c (amd64_windows_return_value): Use
661 type::is_vector instead of TYPE_VECTOR.
662
7d144117
SM
6632020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
664
665 * auto-load.c (auto_load_objfile_script_1): Don't use
666 debugfile_holder as temporary variable when stripping drive
667 letter.
668
cd096ec8
HD
6692020-10-05 Hannes Domani <ssbssa@yahoo.de>
670
671 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
672 Add TYPE_CODE_COMPLEX.
673 (amd64_windows_return_value): Fix types returned via XMM0.
674
b58e7f72
AH
6752020-10-05 Alan Hayward <alan.hayward@arm.com>
676
677 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
678 AArch64/ARM maintainers.
679
8d378f27
SM
6802020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
681
682 * NEWS: Mention set/show debug event-loop.
683
d5519913
TT
6842020-10-02 Tom Tromey <tromey@adacore.com>
685
686 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
687 REG_EXTENDED.
688
18b67edc
SM
6892020-10-02 Simon Marchi <simon.marchi@efficios.com>
690
691 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
692 * procfs.c (procfs_inferior_created): Remove.
693 (_initialize_procfs): Don't register procfs_inferior_created.
694
6b01403b
SM
6952020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
696
697 * async-event.c (invoke_async_signal_handlers): Add debug
698 print.
699 (check_async_event_handlers): Likewise.
700 * event-top.c (show_debug_event_loop): New function.
701 (_initialize_event_top): Register "set debug event-loop"
702 setting.
703
ba988419
SM
7042020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
707 * debug.h: Remove.
708 * infrun.c: Include gdbsupport/common-debug.h.
709 * linux-nat.c: Likewise.
710
db20ebdf
SM
7112020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
712
713 * async-event.h (create_async_signal_handler): Add name
714 parameter.
715 (create_async_event_handler): Likewise.
716 * async-event.c (struct async_signal_handler) <name>: New field.
717 (struct async_event_handler) <name>: New field.
718 (create_async_signal_handler): Assign name.
719 (create_async_event_handler): Assign name.
720 * event-top.c (async_init_signals): Pass name when creating
721 handler.
722 * infrun.c (_initialize_infrun): Likewise.
723 * record-btrace.c (record_btrace_push_target): Likewise.
724 * record-full.c (record_full_open): Likewise.
725 * remote-notif.c (remote_notif_state_allocate): Likewise.
726 * remote.c (remote_target::open_1): Likewise.
727 * tui/tui-win.c (tui_initialize_win): Likewise.
728
2554f6f5
SM
7292020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
730
731 * async-event.c (initialize_async_signal_handlers): Pass name to
732 add_file_handler
733 * event-top.c (ui_register_input_event_handler): Likewise.
734 * linux-nat.c (linux_nat_target::async): Likewise.
735 * run-on-main-thread.c (_initialize_run_on_main_thread):
736 Likewise
737 * ser-base.c (reschedule): Likewise.
738 (ser_base_async): Likewise.
739 * tui/tui-io.c: Likewise.
740 * top.h (struct ui) <num>: New field.
741 * top.c (highest_ui_num): New variable.
742 (ui::ui): Initialize num.
743
a7aba266
SM
7442020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
745
746 * observable.h <inferior_created>: Remove parameters. Update all
747 listeners.
748 * inferior.h (post_create_inferior): Remove target parameter.
749 Update all callers.
750
048fde1e 7512020-10-02 Nitika Achra <Nitika.Achra@amd.com>
752
753 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
754 and DW_MACRO_undef_strx.
755 (dwarf_decode_macros): Likewise
756 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
757 which is the value of DW_AT_str_offsets_base.
758 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
759 str_offsets_base.
760
064280be
KR
7612020-10-01 Kamil Rytarowski <n54@gmx.com>
762
763 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
764
6ff33035
KR
7652020-10-01 Kamil Rytarowski <n54@gmx.com>
766
767 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
768 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
769
1eb6eb79
KR
7702020-10-01 Kamil Rytarowski <n54@gmx.com>
771
772 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
773
95eb9e54
TV
7742020-09-30 Tom de Vries <tdevries@suse.de>
775
776 PR symtab/26683
777 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
778
cae21f8e
TT
7792020-09-30 Tom Tromey <tromey@adacore.com>
780
781 * dwarf2/read.c (handle_variant): Use constant_value.
782
529908cb
TT
7832020-09-29 Tom Tromey <tom@tromey.com>
784
785 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
786 (read_file_scope, dwarf2_get_pc_bounds)
787 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
788 (read_structure_type, handle_struct_member_die)
789 (read_enumeration_type, read_array_type, read_set_type)
790 (read_tag_pointer_type, read_tag_reference_type)
791 (read_subroutine_type, read_base_type, read_subrange_type)
792 (read_full_die_1, partial_die_info::read)
793 (partial_die_info::read, by, new_symbol)
794 (dwarf2_const_value_data, dwarf2_const_value_attr)
795 (dump_die_shallow, dwarf2_fetch_constant_bytes)
796 (prepare_one_comp_unit): Update.
797 * dwarf2/attribute.h (DW_UNSND): Remove.
798
c45bc3f8
TT
7992020-09-29 Tom Tromey <tom@tromey.com>
800
801 * dwarf2/read.c (read_func_scope, prototyped_function_p)
802 (read_subroutine_type, partial_die_info::read)
803 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
804 (dwarf2_add_member_fn): Update.
805 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
806 * dwarf2/attribute.c (attribute::as_boolean): New method.
807
23dca5c3
TT
8082020-09-29 Tom Tromey <tom@tromey.com>
809
810 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
811 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
812 method.
813 * dwarf2/attribute.c (attribute::as_virtuality): New method.
814
52c14d11
TT
8152020-09-29 Tom Tromey <tom@tromey.com>
816
817 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
818 the attribute's form.
819
e8e5c158
TT
8202020-09-29 Tom Tromey <tom@tromey.com>
821
822 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
823 (dwarf2_add_member_fn): Update.
824 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
825 * dwarf2/attribute.c (attribute::defaulted): New method, from
826 is_valid_DW_AT_defaulted.
827
d4df075e
TT
8282020-09-29 Tom Tromey <tom@tromey.com>
829
830 * dwarf2/read.c (dw2_get_file_names_reader)
831 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
832 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
833 (dwarf2_symbol_mark_computed): Use as_unsigned.
834 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
835 method.
836 <form_is_section_offset>: Update comment.
837
bf23a268
TT
8382020-09-29 Tom Tromey <tom@tromey.com>
839
840 * dwarf2/read.c (dwarf2_access_attribute): Rename from
841 dwarf2_default_access_attribute. Look up attribute.
842 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
843 Update.
844
7a5f294d
TT
8452020-09-29 Tom Tromey <tom@tromey.com>
846
847 * dwarf2/read.c (skip_one_die): Update.
848 (read_full_die_1): Change how reprocessing is done.
849 (partial_die_info::read): Update.
850 (read_attribute_value): Remove need_reprocess parameter.
851 (read_attribute): Likewise.
852 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
853 New method.
854
36d378cf
TT
8552020-09-29 Tom Tromey <tom@tromey.com>
856
857 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
858 (dwarf2_const_value_attr, dump_die_shallow)
859 (dwarf2_fetch_constant_bytes): Update.
860 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
861 comment.
862 <set_address>: New method.
863 (DW_ADDR): Remove.
864 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
865 (attribute::as_string, attribute::as_address): Add assert.
866
fe56917a
TT
8672020-09-29 Tom Tromey <tom@tromey.com>
868
869 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
870 (read_attribute_reprocess, read_attribute_value): Update.
871 (read_attribute): Clear requires_reprocessing.
872 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
873 form_requires_reprocessing>: New methods.
874 <string_init>: Clear requires_reprocessing.
875 <set_unsigned_reprocess>: New method.
876 <name>: Shrink by one bit.
877 <requires_reprocessing>: New member.
878 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
879 method.
880
414ad644
TT
8812020-09-29 Tom Tromey <tom@tromey.com>
882
883 * dwarf2/read.c (read_attribute_value): Update.
884 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
885 set_unsigned>: New methods.
886 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
887
1bc397c5
TT
8882020-09-29 Tom Tromey <tom@tromey.com>
889
890 * dwarf2/read.c (get_alignment, read_array_order)
891 (read_attribute_value, dwarf2_const_value_attr)
892 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
893 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
894 New methods.
895 (DW_SND): Remove.
896
630ed6b9
TT
8972020-09-29 Tom Tromey <tom@tromey.com>
898
899 * dwarf2/read.c (read_attribute_value, lookup_die_type)
900 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
901 Update.
902 * dwarf2/attribute.h (struct attribute) <as_signature,
903 set_signature>: New methods.
904 (DW_SIGNATURE): Remove.
905
9d2246fc
TT
9062020-09-29 Tom Tromey <tom@tromey.com>
907
908 * dwarf2/read.c (read_call_site_scope)
909 (handle_data_member_location, dwarf2_add_member_fn)
910 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
911 (partial_die_info::read, read_attribute_value)
912 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
913 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
914 (dwarf2_symbol_mark_computed): Update.
915 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
916 methods.
917 (DW_BLOCK): Remove.
918 * dwarf2/attribute.c (attribute::form_is_block): Add
919 DW_FORM_data16.
920
c6481205
TT
9212020-09-29 Tom Tromey <tom@tromey.com>
922
923 * dwarf2/read.c (read_cutu_die_from_dwo)
924 (read_attribute_reprocess, read_attribute_value, read_attribute)
925 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
926 (dwarf2_fetch_constant_bytes): Update.
927 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
928 <set_string_noncanonical, set_string_canonical>: New methods.
929 <string_is_canonical>: Update comment.
930 <canonical_string_p>: Add assert.
931 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
932 * dwarf2/attribute.c (attribute::form_is_string): New method.
933 (attribute::string): Use it.
934
3b64bf15
TT
9352020-09-29 Tom Tromey <tom@tromey.com>
936
937 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
938 (dump_die_shallow): Use canonical_string_p.
939 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
940 method.
941
2c830f54
TT
9422020-09-29 Tom Tromey <tom@tromey.com>
943
944 * dwarf2/read.c (partial_die_info::read)
945 (dwarf2_const_value_attr, anonymous_struct_prefix, )
946 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
947 attribute::as_string.
948
6c412691
TT
9492020-09-29 Tom Tromey <tom@tromey.com>
950
951 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
952 DW_ADDR.
953 (attribute::string): Don't use DW_STRING.
954 (attribute::get_ref_die_offset): Don't use DW_UNSND.
955 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
956
95f982e5
TT
9572020-09-29 Tom Tromey <tom@tromey.com>
958
959 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
960 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
961 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
962 * dwarf2/attribute.h (struct attribute): Rename methods.
963 * dwarf2/attribute.c (attribute::as_address): Rename from
964 value_as_address.
965 (attribute::as_string): Rename from value_as_string.
966
f800b00e
TT
9672020-09-29 Tom Tromey <tom@tromey.com>
968
969 * dwarf2/read.c (partial_die_info::read) <case
970 DW_AT_linkage_name>: Use value_as_string.
971 (dwarf2_string_attr): Use value_as_string.
972 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
973 method.
974 * dwarf2/attribute.c (attribute::value_as_string): New method.
975
de38d64a
PA
9762020-09-29 Pedro Alves <pedro@palves.net>
977
978 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
979 defined before using '#pragma GCC diagnostic' instead of checking
980 __clang__.
981
9aed480c
TT
9822020-09-28 Tom Tromey <tom@tromey.com>
983
984 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
985 (handle_signal_stop): Update.
986 * procfs.c (procfs_target::insert_watchpoint): Update.
987 * target.h (target_have_steppable_watchpoint): Now a function.
988
8a3ecb79
TT
9892020-09-28 Tom Tromey <tom@tromey.com>
990
991 * infrun.c (set_schedlock_func): Update.
992 * target.h (target_can_lock_scheduler): Now a function.
993
55f6301a
TT
9942020-09-28 Tom Tromey <tom@tromey.com>
995
996 * inferior.h (class inferior) <has_execution>: Update.
997 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
998 * valops.c (find_function_in_inferior)
999 (value_allocate_space_in_inferior): Update.
1000 * top.c (kill_or_detach): Update.
1001 * target.c (target_preopen, set_target_permissions): Update.
1002 (target_has_execution_current): Remove.
1003 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1004 Update.
1005 * solib.c (update_solib_list, reload_shared_libraries): Update.
1006 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1007 * solib-dsbt.c (enable_break): Update.
1008 * score-tdep.c (score7_fetch_inst): Update.
1009 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1010 Update.
1011 * remote.c (remote_target::start_remote)
1012 (remote_target::remote_check_symbols, remote_target::open_1)
1013 (remote_target::remote_detach_1, remote_target::verify_memory)
1014 (remote_target::xfer_partial, remote_target::read_description)
1015 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1016 * record-full.c (record_full_open_1): Update.
1017 * record-btrace.c (record_btrace_target_open): Update.
1018 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1019 (value_nsstring): Update.
1020 * linux-thread-db.c (add_thread_db_info)
1021 (thread_db_find_new_threads_silently, check_thread_db_callback)
1022 (try_thread_db_load_1, record_thread): Update.
1023 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1024 Update.
1025 * linux-fork.c (checkpoint_command): Update.
1026 * infrun.c (set_non_stop, set_observer_mode)
1027 (check_multi_target_resumption, for_each_just_stopped_thread)
1028 (maybe_remove_breakpoints, normal_stop)
1029 (class infcall_suspend_state): Update.
1030 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1031 (info_program_command, attach_command): Update.
1032 * infcall.c (call_function_by_hand_dummy): Update.
1033 * inf-loop.c (inferior_event_handler): Update.
1034 * gcore.c (gcore_command, derive_heap_segment): Update.
1035 * exec.c (exec_file_command): Update.
1036 * eval.c (evaluate_subexp): Update.
1037 * compile/compile.c (compile_to_object): Update.
1038 * cli/cli-dump.c (restore_command): Update.
1039 * breakpoint.c (update_watchpoint)
1040 (update_inserted_breakpoint_locations)
1041 (insert_breakpoint_locations, get_bpstat_thread): Update.
1042 * target.h (target_has_execution): Remove macro.
1043 (target_has_execution_current): Don't declare.
1044 (target_has_execution): Rename from target_has_execution_1. Add
1045 argument default.
1046
05374cfd
TT
10472020-09-28 Tom Tromey <tom@tromey.com>
1048
1049 * mi/mi-main.c (exec_reverse_continue)
1050 (mi_cmd_list_target_features): Update.
1051 * infrun.c (set_exec_direction_func): Update.
1052 * target.c (default_execution_direction): Update.
1053 * reverse.c (exec_reverse_once): Update.
1054 * target.h (target_can_execute_reverse): Now a function.
1055
9dccd06e
TT
10562020-09-28 Tom Tromey <tom@tromey.com>
1057
1058 * tui/tui-regs.c (tui_get_register)
1059 (tui_data_window::show_registers): Update.
1060 * thread.c (scoped_restore_current_thread::restore)
1061 (scoped_restore_current_thread::scoped_restore_current_thread):
1062 Update.
1063 * regcache-dump.c (regcache_print): Update.
1064 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1065 Update.
1066 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1067 * mep-tdep.c (current_me_module, current_options): Update.
1068 * linux-thread-db.c (thread_db_load): Update.
1069 * infcmd.c (registers_info, info_vector_command)
1070 (info_float_command): Update.
1071 * ia64-tdep.c (ia64_frame_prev_register)
1072 (ia64_sigtramp_frame_prev_register): Update.
1073 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1074 * gcore.c (derive_stack_segment): Update.
1075 * frame.c (get_current_frame, has_stack_frames): Update.
1076 * findvar.c (language_defn::read_var_value): Update.
1077 * arm-tdep.c (arm_pc_is_thumb): Update.
1078 * target.c (target_has_registers): Rename from
1079 target_has_registers_1.
1080 * target.h (target_has_registers): Remove macro.
1081 (target_has_registers): Rename from target_has_registers_1.
1082
841de120
TT
10832020-09-28 Tom Tromey <tom@tromey.com>
1084
1085 * windows-tdep.c (tlb_make_value): Update.
1086 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1087 * thread.c (scoped_restore_current_thread::restore)
1088 (scoped_restore_current_thread::scoped_restore_current_thread)
1089 (thread_command): Update.
1090 * stack.c (backtrace_command_1, frame_apply_level_command)
1091 (frame_apply_all_command, frame_apply_command): Update.
1092 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1093 Update.
1094 * gcore.c (derive_stack_segment): Update.
1095 * frame.c (get_current_frame, has_stack_frames): Update.
1096 * auxv.c (info_auxv_command): Update.
1097 * ada-tasks.c (ada_build_task_list): Update.
1098 * target.c (target_has_stack): Rename from target_has_stack_1.
1099 * target.h (target_has_stack): Remove macro.
1100 (target_has_stack): Rename from target_has_stack_1.
1101
a739972c
TT
11022020-09-28 Tom Tromey <tom@tromey.com>
1103
1104 * target.c (target_has_memory): Rename from target_has_memory_1.
1105 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1106 * thread.c (scoped_restore_current_thread::restore)
1107 (scoped_restore_current_thread::scoped_restore_current_thread):
1108 Update.
1109 * frame.c (get_current_frame, has_stack_frames): Update.
1110 * target.h (target_has_memory): Remove macro.
1111 (target_has_memory): Rename from target_has_memory_1.
1112
5b8a4776
TT
11132020-09-28 Tom Tromey <tom@tromey.com>
1114
1115 * target.c (target_has_all_memory_1): Remove.
1116 * target.h (target_has_all_memory): Remove define.
1117 (target_has_all_memory_1): Don't declare.
1118
bd356ec6
SM
11192020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1120
1121 * ser-base.c: Adjust comments formatting.
1122
2c72d5e5
TT
11232020-09-27 Tom Tromey <tom@tromey.com>
1124
1125 PR tui/25342:
1126 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1127
35a98237
TT
11282020-09-27 Tom Tromey <tom@tromey.com>
1129
1130 PR tui/25342:
1131 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1132
9e820dec
TT
11332020-09-27 Tom Tromey <tom@tromey.com>
1134
1135 * unittests/tui-selftests.c: Update.
1136 * tui/tui-winsource.h (struct tui_source_window_base)
1137 <extra_margin, show_line_number, refresh_pad>: New methods.
1138 <m_max_length, m_pad>: New members.
1139 (tui_copy_source_line): Update.
1140 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1141 first_col, line_width, ndigits parameters. Add length.
1142 (tui_source_window_base::show_source_line): Write to pad. Line
1143 number now 0-based.
1144 (tui_source_window_base::refresh_pad): New method.
1145 (tui_source_window_base::show_source_content): Write to pad. Call
1146 refresh_pad.
1147 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1148 not refill.
1149 (tui_source_window_base::update_exec_info): Call
1150 show_line_number.
1151 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1152 method.
1153 <m_digits>: New member.
1154 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1155 and m_max_length.
1156 (tui_source_window::show_line_number): New method.
1157 * tui/tui-io.h (tui_puts): Fix comment.
1158 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1159 m_max_length.
1160
c15c15c8
TT
11612020-09-27 Tom Tromey <tom@tromey.com>
1162
1163 * tui/tui-winsource.c
1164 (tui_source_window_base::set_is_exec_point_at): Don't call
1165 show_source_line.
1166
149830c1
TT
11672020-09-27 Tom Tromey <tom@tromey.com>
1168
1169 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1170 method.
1171 <erase>: Update.
1172 <cursor_x, cursor_y>: Remove.
1173 <m_inner_window>: New member.
1174 (tui_py_window::rerender): Create inner window.
1175 (tui_py_window::output): Write to inner window.
1176
8f9929bb
GR
11772020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1178
1179 PR python/26586
1180 * cli/cli-script.c (execute_control_commands): don't set
1181 instream to nullptr here as this breaks the from_tty argument
1182 to gdb.execute in Python.
1183 (execute_user_command): set instream to nullptr here instead.
1184
956bdb59
SM
11852020-09-25 Simon Marchi <simon.marchi@efficios.com>
1186
1187 * infrun.h (infrun_debug_printf): Fix formatting.
1188 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1189
3b93626b
SJ
11902020-09-25 Saagar Jha <saagar@saagarjha.com>
1191
1192 * compile/compile-object-load.h (struct munmap_list): Add
1193 explicitly-defined move constructor.
1194
b551a89f
TT
11952020-09-24 Tom Tromey <tromey@adacore.com>
1196
1197 PR tui/26638:
1198 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1199 method.
1200 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1201 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1202 (tui_prev_win): Rewrite.
1203
99bb393f
HD
12042020-09-23 Hannes Domani <ssbssa@yahoo.de>
1205
1206 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1207 in WOW64 processes as SIGINT.
1208 * nat/windows-nat.h: Make wow64_process a shared variable.
1209 * windows-nat.c: Remove static wow64_process variable.
1210
20a5fcbd
TT
12112020-09-23 Tom Tromey <tom@tromey.com>
1212
1213 PR symtab/25470:
1214 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1215 offset and bit size.
1216 * printcmd.c (print_scalar_formatted): Handle zero-length
1217 integer.
1218 (print_scalar_formatted): Use bit_size_differs_p.
1219 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1220 constant.
1221 (union type_specific): <int_stuff>: New member.
1222 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1223 methods.
1224 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1225 TYPE_SPECIFIC_FIELD.
1226 (recursive_dump_type, copy_type_recursive): Update.
1227 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1228 DW_AT_data_bit_offset.
1229
bac51ab7
TT
12302020-09-23 Tom Tromey <tom@tromey.com>
1231
1232 * utils.h (class gdb_argv): Add move operators.
1233 <append>: New methods.
1234 * compile/compile.c (build_argc_argv): Remove.
1235 (compile_args_argc): Remove.
1236 (compile_args_argv): Change type.
1237 (set_compile_args): Simplify.
1238 (append_args): Remove.
1239 (filter_args): Remove argcp parameter.
1240 (get_args): Return gdb_argv. Simplify.
1241 (compile_to_object): Update.
1242
92677124
TT
12432020-09-23 Tom Tromey <tom@tromey.com>
1244
1245 * compile/compile-object-run.c (do_module_cleanup)
1246 <~do_module_cleanup> :Remove.
1247 (do_module_cleanup): Update.
1248 * compile/compile-object-load.h (struct munmap_list): Add move
1249 assignment operator.
1250 <source_file>: Now a std::string.
1251 <munmap_list>: Rename. No longer a pointer.
1252 * compile/compile-object-load.c (struct setup_sections_data): Add
1253 constructor.
1254 <setup_one_section>: Declare.
1255 <munmap_list>: Move earlier.
1256 <m_bfd>: New member.
1257 <m_last_size, m_last_section_first, m_last_prot,
1258 m_last_max_alignment>: Rename, add initializers where needed.
1259 (setup_sections_data::setup_one_section): Rename from
1260 setup_sections. Update.
1261 (compile_object_load): Update. Don't use bfd_map_over_sections.
1262
e616f60a
TT
12632020-09-23 Tom Tromey <tom@tromey.com>
1264
1265 * compile/compile-object-run.c (struct do_module_cleanup): Add
1266 parameters to constructor. Update destructor.
1267 <source_file, scope, scope_data, out_value_type, out_value_addr,
1268 munmap_list_head, objfile_name_string>: Remove.
1269 <module>: New member.
1270 (do_module_cleanup): Update.
1271 (compile_object_run): Update.
1272
e947a848
TT
12732020-09-23 Tom Tromey <tom@tromey.com>
1274
1275 * compile/compile.c (eval_compile_command): Update.
1276 * compile/compile-object-run.h (compile_object_run): Take a
1277 compile_module_up.
1278 * compile/compile-object-run.c (compile_object_run): Take a
1279 compile_module_up.
1280 * compile/compile-object-load.h (struct compile_module): Add
1281 constructor, destructor.
1282 (compile_module_up): New typedef.
1283 (compile_object_load): Return compile_object_up.
1284 * compile/compile-object-load.c (compile_object_load): Return
1285 compile_module_up.
1286
0dbf6ee6
TT
12872020-09-23 Tom Tromey <tom@tromey.com>
1288
1289 * compile/compile-object-run.c (struct do_module_cleanup): Add
1290 constructor, destructor.
1291 <objfile_name_string>: Don't use struct hack.
1292 (do_module_cleanup): Use delete.
1293 (compile_object_run): Use new.
1294
ebe824f5
TT
12952020-09-23 Tom Tromey <tom@tromey.com>
1296
1297 * compile/compile-cplus-types.c
1298 (compile_cplus_convert_struct_or_union): Use std::vector.
1299 (compile_cplus_convert_func): Likewise.
1300 * compile/compile-c-types.c (convert_func): Use std::vector.
1301
5dd918d9
TT
13022020-09-21 Tom Tromey <tromey@adacore.com>
1303
1304 * sparc-tdep.c (sparc32_skip_prologue): Use
1305 skip_prologue_using_sal.
1306
5486c517
TT
13072020-09-19 Tom Tromey <tom@tromey.com>
1308
1309 * symfile.c (add_section_size_callback): Remove.
1310 (load_one_section): Rename from load_section_callback. Change
1311 parameters.
1312 (generic_load): Use foreach.
1313
8a6bb1d1
TT
13142020-09-19 Tom Tromey <tom@tromey.com>
1315
1316 * exec.c (add_to_section_table): Remove.
1317 (build_section_table): Use foreach.
1318
08f93a1a
TT
13192020-09-19 Tom Tromey <tom@tromey.com>
1320
1321 * elfread.c (elf_locate_sections): Change parameters.
1322 (elf_symfile_read): Use foreach.
1323
03cd72b8
TT
13242020-09-19 Tom Tromey <tom@tromey.com>
1325
1326 * cli/cli-dump.c (struct callback_data): Remove.
1327 (restore_one_section): Rename from restore_section_callback.
1328 Change parameters.
1329 (restore_binary_file): Change parameters.
1330 (restore_command): Use foreach.
1331
f4f2b85f
TT
13322020-09-19 Tom Tromey <tom@tromey.com>
1333
1334 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1335 (gcore_copy_callback): Likewise.
1336 (gcore_memory_sections): Use foreach.
1337
b35c1d1c
TT
13382020-09-19 Tom Tromey <tom@tromey.com>
1339
1340 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1341 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1342 parameters.
1343 (generic_elf_osabi_sniffer): Use foreach.
1344 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1345 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1346
5bb6e9dd
TT
13472020-09-19 Tom Tromey <tom@tromey.com>
1348
1349 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1350 (dwarf2_get_dwz_file): Use foreach.
1351 (dwarf2_locate_dwo_sections): Change parameters.
1352 (open_and_init_dwo_file): Use foreach.
1353 (dwarf2_locate_common_dwp_sections): Change parameters.
1354 (open_and_init_dwp_file): Use foreach.
1355
ad7277da
TT
13562020-09-19 Tom Tromey <tom@tromey.com>
1357
1358 * symfile.h: (find_lowest_section): Don't declare.
1359 * symfile.c (find_lowest_section): Now static. Change
1360 parameters.
1361 (struct place_section_arg): Remove.
1362 (place_section): Change parameters.
1363 (addr_info_make_relative): Use foreach.
1364 (symfile_dummy_outputs): Remove.
1365 (default_symfile_relocate): Use foreach.
1366
cb814f2e
TT
13672020-09-19 Tom Tromey <tom@tromey.com>
1368
1369 * objfiles.c (add_to_objfile_sections): Rename from
1370 add_to_objfile_sections_full.
1371 (add_to_objfile_sections): Remove.
1372 (build_objfile_section_table): Use foreach.
1373
3cabfd26
TT
13742020-09-19 Tom Tromey <tom@tromey.com>
1375
1376 * stap-probe.c (get_stap_base_address_1): Remove.
1377 (get_stap_base_address): Use foreach.
1378
1ce51eb5
TT
13792020-09-19 Tom Tromey <tom@tromey.com>
1380
1381 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1382 parameters.
1383 (gdb_bfd_close_or_warn): Use foreach.
1384
a190fabb
TT
13852020-09-19 Tom Tromey <tom@tromey.com>
1386
1387 * corelow.c (add_to_thread_list): Change parameters.
1388 (core_target_open): Use foreach.
1389
cafb0d81
TT
13902020-09-19 Tom Tromey <tom@tromey.com>
1391
1392 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1393 existing function.
1394
c8d5abea
AB
13952020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1398 for arrays.
1399
6d816919
AB
14002020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * eval.c: Remove 'f-lang.h' include.
1403 (value_f90_subarray): Moved to f-lang.c.
1404 (eval_call): Renamed to...
1405 (evaluate_subexp_do_call): ...this, is no longer static, header
1406 comment moved into header file.
1407 (evaluate_funcall): Update call to eval_call.
1408 (skip_undetermined_arglist): Moved to f-lang.c.
1409 (fortran_value_subarray): Likewise.
1410 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1411 moved to evaluate_subexp_f.
1412 (calc_f77_array_dims): Moved to f-lang.c
1413 * expprint.c (print_subexp_funcall): New function.
1414 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1415 moved to print_subexp_f, OP_FUNCALL uses new function.
1416 (dump_subexp_body_funcall): New function.
1417 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1418 moved to dump_subexp_f, OP_FUNCALL uses new function.
1419 * expression.h (evaluate_subexp_do_call): Declare.
1420 * f-lang.c (value_f90_subarray): Moved from eval.c.
1421 (skip_undetermined_arglist): Likewise.
1422 (calc_f77_array_dims): Likewise.
1423 (fortran_value_subarray): Likewise.
1424 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1425 (operator_length_f): Likewise.
1426 (print_subexp_f): Likewise.
1427 (dump_subexp_body_f): Likewise.
1428 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1429 declaration of this operation to here.
1430 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1431 support moved to operator_length_f.
1432 * parser-defs.h (dump_subexp_body_funcall): Declare.
1433 (print_subexp_funcall): Declare.
1434 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1435 fortran-operator.def.
1436
8c37706a
AB
14372020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * eval.c (fortran_value_subarray): New function, content is taken
1440 from...
1441 (evaluate_subexp_standard): ...here, in two places. Now arrays
1442 and strings both call the new function.
1443 (calc_f77_array_dims): Add header comment, handle strings.
1444
14f9473c
VC
14452020-09-18 Victor Collod <vcollod@nvidia.com>
1446
1447 PR gdb/26635
1448 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1449 (i386_analyze_prologue): Call i386_skip_endbr.
1450
b60cea74
TT
14512020-09-18 Tom Tromey <tromey@adacore.com>
1452
1453 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1454 (windows_nat_target::wait): Update.
1455 * target/wait.h (enum target_wait_flag): New. Use
1456 DEF_ENUM_FLAGS_TYPE.
1457 * target/target.h (target_wait): Change type of options.
1458 * target.h (target_options_to_string, default_target_wait):
1459 Update.
1460 (struct target_ops) <wait>: Change type of options.
1461 * target.c (target_wait, default_target_wait, do_option): Change
1462 type of "options".
1463 (target_options_to_string): Likewise.
1464 * target-delegates.c: Rebuild.
1465 * target-debug.h (target_debug_print_target_wait_flags): Rename
1466 from target_debug_print_options.
1467 * sol-thread.c (class sol_thread_target) <wait>: Update.
1468 (sol_thread_target::wait): Update.
1469 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1470 (rs6000_nat_target::wait): Update.
1471 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1472 Update.
1473 (remote_target::wait_ns, remote_target::wait_as): Change type of
1474 "options".
1475 (remote_target::wait): Update.
1476 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1477 (gdbsim_target::wait): Update.
1478 * record-full.c (class record_full_base_target) <wait>: Update.
1479 (record_full_wait_1): Change type of "options".
1480 (record_full_base_target::wait): Update.
1481 * record-btrace.c (class record_btrace_target) <wait>: Update.
1482 (record_btrace_target::wait): Update.
1483 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1484 Update.
1485 (ravenscar_thread_target::wait): Update.
1486 * procfs.c (class procfs_target) <wait>: Update.
1487 (procfs_target::wait): Update.
1488 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1489 * obsd-nat.c (obsd_nat_target::wait): Update.
1490 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1491 (nto_procfs_target::wait): Update.
1492 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1493 * nbsd-nat.c (nbsd_wait): Change type of "options".
1494 (nbsd_nat_target::wait): Update.
1495 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1496 (thread_db_target::wait): Update.
1497 * linux-nat.h (class linux_nat_target) <wait>: Update.
1498 * linux-nat.c (linux_nat_target::wait): Update.
1499 (linux_nat_wait_1): Update.
1500 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1501 "options".
1502 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1503 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1504 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1505 (go32_nat_target::wait): Update.
1506 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1507 * gnu-nat.c (gnu_nat_target::wait): Update.
1508 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1509 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1510 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1511 * darwin-nat.c (darwin_nat_target::wait): Update.
1512 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1513 (bsd_uthread_target::wait): Update.
1514 * aix-thread.c (class aix_thread_target) <wait>: Update.
1515 (aix_thread_target::wait): Update.
1516
0295dde6
AB
15172020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * compile/compile-object-run.c (create_copied_type_recursive): New
1520 function.
1521 (compile_object_run): Use new function.
1522
d3483b43
JT
15232020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1524
1525 * NEWS: Mention x86_64 Cygwin core file support.
1526
e7d612ad
JT
15272020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1528
1529 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1530 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1531
aff9d387
JT
15322020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1533
62a5151b
JT
1534 * windows-tdep.h: Add prototypes.
1535 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1536 (i386_windows_core_pid_to_str): Move and rename ...
1537 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1538 (windows_core_pid_to_str): ... and here.
1539 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1540
15412020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1542 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1543 (amd64_windows_init_abi_common): ... and register.
1544
7d155da3
JT
15452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1546
1547 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1548 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1549
e8ef12b9
PA
15502020-09-18 Pedro Alves <pedro@palves.net>
1551
1552 PR gdb/26631
1553 * thread.c (thread_find_command): Switch inferior before calling
1554 target methods.
1555
c1e1314d
TT
15562020-09-17 Tom Tromey <tromey@adacore.com>
1557
1558 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1559 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1560 (tdesc_arch_data_up): New typedef.
1561 (tdesc_use_registers, tdesc_data_alloc): Update.
1562 (tdesc_data_cleanup): Don't declare.
1563 * target-descriptions.c (tdesc_data_alloc): Return a
1564 tdesc_arch_data_up.
1565 (tdesc_arch_data_deleter::operator()): Rename from
1566 tdesc_data_cleanup. Change argument type.
1567 (tdesc_use_registers): Change early_data to an rvalue reference.
1568 (tdesc_use_registers): Don't use delete.
1569 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1570 * s390-tdep.c (s390_gdbarch_init): Update.
1571 * rx-tdep.c (rx_gdbarch_init): Update.
1572 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1573 * riscv-tdep.c (riscv_gdbarch_init): Update.
1574 * or1k-tdep.c (or1k_gdbarch_init): Update.
1575 * nios2-tdep.c (nios2_gdbarch_init): Update.
1576 * nds32-tdep.c (nds32_gdbarch_init): Update.
1577 * mips-tdep.c (mips_gdbarch_init): Update.
1578 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1579 * m68k-tdep.c (m68k_gdbarch_init): Update.
1580 * i386-tdep.c (i386_gdbarch_init): Update.
1581 * arm-tdep.c (arm_gdbarch_init): Update.
1582 * arc-tdep.c (arc_tdesc_init): Update.
1583 (arc_gdbarch_init): Update.
1584 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1585
0363df3d
HD
15862020-09-17 Hannes Domani <ssbssa@yahoo.de>
1587
1588 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1589 for WOW64 processes.
1590
280a9412
TT
15912020-09-17 Tom Tromey <tom@tromey.com>
1592
1593 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1594
6108fd18
TT
15952020-09-17 Tom Tromey <tom@tromey.com>
1596
1597 * value.c (preserve_values): Update.
1598 * python/py-type.c (save_objfile_types): Update.
1599 * guile/scm-type.c (save_objfile_types): Update.
1600 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1601 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1602 * compile/compile-object-run.c (compile_object_run): Update.
1603
fa9b1164
TT
16042020-09-17 Tom Tromey <tom@tromey.com>
1605
1606 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1607 Remove.
1608 <m_table>: Now htab_up.
1609 * typeprint.c (typedef_hash_table::recursively_update)
1610 (typedef_hash_table::add_template_parameters)
1611 (typedef_hash_table::typedef_hash_table): Update.
1612 (typedef_hash_table::~typedef_hash_table): Remove.
1613 (typedef_hash_table::typedef_hash_table)
1614 (typedef_hash_table::find_global_typedef)
1615 (typedef_hash_table::find_typedef): Update.
1616
eb53f105
TT
16172020-09-17 Tom Tromey <tom@tromey.com>
1618
1619 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1620
7a8a5d47
TT
16212020-09-17 Tom Tromey <tom@tromey.com>
1622
1623 * linespec.c (class decode_compound_collector)
1624 <~decode_compound_collector>: Remove.
1625 <m_unique_syms>: Now htab_up.
1626 (decode_compound_collector::operator ()): Update.
1627 (class symtab_collector) <~symtab_collector>: Remove.
1628 <m_symtab_table>: Now htab_up.
1629 (symtab_collector::operator ()): Update.
1630
99032cfc
TT
16312020-09-17 Tom Tromey <tom@tromey.com>
1632
1633 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1634 (filename_seen_cache::clear): Update.
1635 (~filename_seen_cache): Remove.
1636 (filename_seen_cache::seen): Update.
1637 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1638 htab_up.
1639 <~filename_seen_cache>: Remove.
1640 <traverse>: Update.
1641
32580f6d
TT
16422020-09-17 Tom Tromey <tom@tromey.com>
1643
1644 * completer.c (completion_tracker::discard_completions)
1645 (completion_tracker::~completion_tracker)
1646 (completion_tracker::maybe_add_completion)
1647 (completion_tracker::remove_completion)
1648 (completion_tracker::recompute_lowest_common_denominator)
1649 (completion_tracker::build_completion_result): Update.
1650 * completer.h (class completion_tracker) <have_completions>:
1651 Update.
1652 <m_entries_hash>: Now htab_up.
1653
c1fb9836
TT
16542020-09-17 Tom Tromey <tom@tromey.com>
1655
1656 * breakpoint.c (ambiguous_names_p): Use htab_up.
1657
88f07206
TT
16582020-09-17 Tom Tromey <tom@tromey.com>
1659
1660 * auto-load.c (struct auto_load_pspace_info)
1661 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1662 <loaded_script_files, loaded_script_texts>: Change type to
1663 htab_up.
1664 (~auto_load_pspace_info) Remove.
1665 (init_loaded_scripts_info, maybe_add_script_file)
1666 (maybe_add_script_text, auto_load_info_scripts): Update.
1667
9519b2ee
TT
16682020-09-17 Tom Tromey <tromey@adacore.com>
1669
1670 * c-exp.y (name_obstack): Now static.
1671
d2cd4113
CC
16722020-09-17 Chungyi Chi <demonic@csie.io>
1673
1674 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1675
b650a282
SM
16762020-09-16 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1679 (add_solib_catchpoint): Likewise.
1680 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1681 to bool.
1682 (add_solib_catchpoint): Change int parameter/variable to bool.
1683 (catch_load_or_unload): Likewise.
1684 (init_catchpoint): Likewise.
1685 (create_fork_vfork_event_catchpoint): Likewise.
1686 (catch_fork_command_1): Likewise.
1687 (catch_exec_command_1): Likewise.
1688
4d0bcfcf
SM
16892020-09-16 Simon Marchi <simon.marchi@efficios.com>
1690
1691 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1692 Change instance_flags to m_instance_flags.
1693
fe830662
TT
16942020-09-16 Tom Tromey <tromey@adacore.com>
1695
1696 PR gdb/26598:
1697 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1698
fe5ddfc3
JB
16992020-09-16 John Baldwin <jhb@FreeBSD.org>
1700
1701 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1702 PL_FLAG_EXEC.
1703 (fbsd_nat_target::insert_exec_catchpoint)
1704 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1705 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1706 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1707
e911c666
JB
17082020-09-16 John Baldwin <jhb@FreeBSD.org>
1709
1710 * configure.ac: Remove check for kinfo_getvmmap().
1711 * configure, config.in: Regenerate.
1712 * fbsd-nat.c (fbsd_read_mapping): Remove
1713 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1714 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1715 kinfo_get_vmmap() are always present.
1716
1f17d372
JB
17172020-09-16 John Baldwin <jhb@FreeBSD.org>
1718
1719 * fbsd-nat.c: Always include support for
1720 TARGET_OBJECT_SIGNAL_INFO.
1721
bcb1da7f
JB
17222020-09-16 John Baldwin <jhb@FreeBSD.org>
1723
1724 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1725 sysctl and remove procfs fallback.
1726
5515f729
JB
17272020-09-16 John Baldwin <jhb@FreeBSD.org>
1728
1729 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1730 * fbsd-nat.h: Likewise.
1731
da1df1db
TBA
17322020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1733
1734 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1735 argument.
1736
0e25e767
AB
17372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1738
1739 * ada-lang.c (ada_language_data): Delete.
1740 (ada_language): Remove references to ada_language_data.
1741 * c-lang.c (c_language_data): Delete.
1742 (c_language): Remove references to c_language_data.
1743 (cplus_language_data): Delete.
1744 (cplus_language): Remove references to cplus_language_data.
1745 (asm_language_data): Delete.
1746 (asm_language): Remove references to asm_language_data.
1747 (minimal_language_data): Delete.
1748 (minimal_language): Remove references to minimal_language_data.
1749 * d-lang.c (d_language_data): Delete.
1750 (d_language): Remove references to d_language_data.
1751 * f-lang.c (f_language_data): Delete.
1752 (f_language): Remove references to f_language_data.
1753 * go-lang.c (go_language_data): Delete.
1754 (go_language): Remove references to go_language_data.
1755 * language.c (unknown_language_data): Delete.
1756 (unknown_language): Remove references to unknown_language_data.
1757 (auto_language_data): Delete.
1758 (auto_language): Remove references to auto_language_data.
1759 * language.h (language_data): Delete struct.
1760 (language_defn): No longer inherit from language_data.
1761 * m2-lang.c (m2_language_data): Delete.
1762 (m2_language): Remove references to m2_language_data.
1763 * objc-lang.c (objc_language_data): Delete.
1764 (objc_language): Remove references to objc_language_data.
1765 * opencl-lang.c (opencl_language_data): Delete.
1766 (opencl_language): Remove references to opencl_language_data.
1767 * p-lang.c (pascal_language_data): Delete.
1768 (pascal_language): Remove references to pascal_language_data.
1769 * rust-lang.c (rust_language_data): Delete.
1770 (rust_language): Remove references to rust_language_data.
1771
b7c6e27d
AB
17722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1773
1774 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1775 initializer.
1776 (ada_language::opcode_print_table): New member function.
1777 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1778 (c_language::opcode_print_table): New member function.
1779 (cplus_language_data): Remove la_op_print_tab initializer.
1780 (cplus_language::opcode_print_table): New member function.
1781 (asm_language_data): Remove la_op_print_tab initializer.
1782 (asm_language::opcode_print_table): New member function.
1783 (minimal_language_data): Remove la_op_print_tab initializer.
1784 (minimal_language::opcode_print_table): New member function.
1785 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1786 (d_language::opcode_print_table): New member function.
1787 * expprint.c (print_subexp_standard): Update call to
1788 opcode_print_table.
1789 (op_string): Likewise.
1790 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1791 (f_language::opcode_print_table): New member function.
1792 * go-lang.c (go_language_data): Remove la_op_print_tab
1793 initializer.
1794 (go_language::opcode_print_table): New member function.
1795 * language.c (unknown_language_data): Remove la_op_print_tab
1796 initializer.
1797 (unknown_language::opcode_print_table): New member function.
1798 (auto_language_data): Remove la_op_print_tab initializer.
1799 (auto_language::opcode_print_table): New member function.
1800 * language.h (language_data): Remove la_op_print_tab field.
1801 (language_defn::opcode_print_table): Declare new member function.
1802 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1803 initializer.
1804 (m2_language::opcode_print_table): New member function.
1805 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1806 initializer.
1807 (objc_language::opcode_print_table): New member function.
1808 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1809 initializer.
1810 (opencl_language::opcode_print_table): New member function.
1811 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1812 initializer.
1813 (pascal_language::opcode_print_table): New member function.
1814 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1815 initializer.
1816 (rust_language::opcode_print_table): New member function.
1817
5aba6ebe
AB
18182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1821 (ada_language::expression_ops): New member function.
1822 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1823 (c_language::expression_ops): New member function.
1824 (cplus_language_data): Remove la_exp_desc initializer.
1825 (cplus_language::expression_ops): New member function.
1826 (asm_language_data): Remove la_exp_desc initializer.
1827 (asm_language::expression_ops): New member function.
1828 (minimal_language_data): Remove la_exp_desc initializer.
1829 (minimal_language::expression_ops): New member function.
1830 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1831 (d_language::expression_ops): New member function.
1832 * eval.c (evaluate_subexp): Update call to expression_ops.
1833 * expprint.c (print_subexp): Likewise.
1834 (op_name): Likewise.
1835 (dump_subexp_body): Likewise.
1836 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1837 (f_language::expression_ops): New member function.
1838 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1839 (go_language::expression_ops): New member function.
1840 * language.c (language_defn::expression_ops): New function.
1841 (unknown_language_data): Remove la_exp_desc initializer.
1842 (auto_language_data): Likewise.
1843 * language.h (language_data): Remove la_exp_desc field.
1844 (language_defn::expression_ops): Declare new member function.
1845 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1846 (m2_language::expression_ops): New member function.
1847 * objc-lang.c (objc_language_data): Remove la_exp_desc
1848 initializer.
1849 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1850 initializer.
1851 (opencl_language::expression_ops): New member function.
1852 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1853 * parse.c (operator_length): Update call to expression_ops.
1854 (exp_iterate): Likewise.
1855 * rust-lang.c (rust_language_data): Remove la_exp_desc
1856 initializer.
1857 (ruse_language::expression_ops): New member function.
1858
b63a3f3f
AB
18592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1862 initializer.
1863 (ada_language::varobj_ops): New member function.
1864 * c-lang.c (c_language_data): Remove la_varobj_ops
1865 initializer.
1866 (cplus_language_data): Likewise.
1867 (cplus_language::varobj_ops): New member function.
1868 (asm_language_data): Remove la_varobj_ops initializer.
1869 (minimal_language_data): Likewise.
1870 * d-lang.c (d_language_data): Likewise.
1871 * f-lang.c (f_language_data): Likewise.
1872 * go-lang.c (go_language_data): Likewise.
1873 * language.c (language_defn::varobj_ops): New function.
1874 (unknown_language_data): Remove la_varobj_ops
1875 initializer.
1876 (auto_language_data): Likewise.
1877 * language.h (language_data): Remove la_varobj_ops field.
1878 (language_defn::varobj_ops): Declare new member function.
1879 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1880 * objc-lang.c (objc_language_data): Likewise.
1881 * opencl-lang.c (opencl_language_data): Likewise.
1882 * p-lang.c (pascal_language_data): Likewise.
1883 * rust-lang.c (rust_language_data): Likewise.
1884 * varobj.c (varobj_create): Update call to varobj_ops.
1885 * varobj.h (default_varobj_ops): Delete define.
1886
1ac14a04
AB
18872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1890 initializer.
1891 * c-lang.c (c_language_data): Likewise.
1892 (c_language::macro_expansion): New member function.
1893 (cplus_language_data): Likewise.
1894 (cplus_language::macro_expansion): New member function.
1895 (asm_language_data): Likewise.
1896 (asm_language::macro_expansion): New member function.
1897 (minimal_language_data): Likewise.
1898 (minimal_language::macro_expansion): New member function.
1899 * d-lang.c (d_language_data): Remove la_macro_expansion
1900 initializer.
1901 * f-lang.c (f_language_data): Likewise.
1902 * go-lang.c (go_language_data): Likewise.
1903 * language.c (unknown_language_data): Likewise.
1904 (auto_language_data): Likewise.
1905 * language.h (language_data): Remove la_macro_expansion field.
1906 (language_defn::macro_expansion): New member function.
1907 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1908 initializer.
1909 * objc-lang.c (objc_language_data): Likewise.
1910 (objc_language::macro_expansion): New member function.
1911 * opencl-lang.c (opencl_language_data): Likewise.
1912 (opencl_language::macro_expansion): New member function.
1913 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1914 initializer.
1915 * rust-lang.c (rust_language_data): Likewise.
1916 * symtab.c (default_collect_symbol_completion_matches_break_on):
1917 Update call to macro_expansion.
1918
3a3440fb
AB
19192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1920
1921 * ada-lang.c (ada_language_data): Remove la_array_ordering
1922 initializer.
1923 * c-lang.c (c_language_data): Likewise.
1924 (cplus_language_data): Likewise.
1925 (asm_language_data): Likewise.
1926 (minimal_language_data): Likewise.
1927 * d-lang.c (d_language_data): Likewise.
1928 * dwarf2/read.c (read_array_order): Update for call to
1929 array_ordering.
1930 * f-lang.c (f_language_data): Remove la_array_ordering
1931 initializer.
1932 (f_language::array_ordering): New member function.
1933 * go-lang.c (go_language_data): Remove la_array_ordering
1934 initializer.
1935 * language.c (unknown_language_data): Likewise.
1936 (auto_language_data): Likewise.
1937 * language.h (language_data): Delete la_array_ordering field.
1938 (language_defn::array_ordering): New member function.
1939 * m2-lang.c (m2_language_data): Remove la_array_ordering
1940 initializer.
1941 * objc-lang.c (objc_language_data): Likewise.
1942 * opencl-lang.c (opencl_language_data): Likewise.
1943 * p-lang.c (pascal_language_data): Likewise.
1944 * rust-lang.c (rust_language_data): Likewise.
1945
0d201fa4
AB
19462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1947
1948 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1949 initializer.
1950 * c-lang.c (c_language_data): Likewise.
1951 (cplus_language_data): Likewise.
1952 (asm_language_data): Likewise.
1953 (minimal_language_data): Likewise.
1954 * d-lang.c (d_language_data): Likewise.
1955 * f-lang.c (f_language_data): Likewise.
1956 (f_language::case_sensitivity): New member function.
1957 * go-lang.c (go_language_data): Remove la_case_sensitivity
1958 initializer.
1959 * language.c (enum case_mode): Moved here from language.h.
1960 (case_mode): Make static.
1961 (show_case_command): Update for case_sensitivity being a method.
1962 (set_case_command): Likewise.
1963 (set_range_case): Likewise.
1964 (unknown_language_data): Remove la_case_sensitivity initializer.
1965 (auto_language_data): Likewise.
1966 * language.h (case_mode): Delete, move enum declaration to
1967 language.c.
1968 (language_data): Delete la_case_sensitivity field.
1969 (language_defn::case_sensitivity): New member function.
1970 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1971 initializer.
1972 * objc-lang.c (objc_language_data): Likewise.
1973 * opencl-lang.c (opencl_language_data): Likewise.
1974 * p-lang.c (pascal_language_data): Likewise.
1975 * rust-lang.c (rust_language_data): Likewise.
1976
efdf6a73
AB
19772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1978
1979 * ada-lang.c (ada_language_data): Remove la_range_check
1980 initializer.
1981 * c-lang.c (c_language_data): Likewise.
1982 (cplus_language_data): Likewise.
1983 (asm_language_data): Likewise.
1984 (minimal_language_data): Likewise.
1985 * d-lang.c (d_language_data): Likewise.
1986 * f-lang.c (f_language_data): Likewise.
1987 (f_language::range_checking_on_by_default): New member function.
1988 * go-lang.c (go_language_data): Remove la_range_check initializer.
1989 * language.c (enum range_mode): Moved here from language.h.
1990 (range_mode): Made static.
1991 (show_range_command): Update to use
1992 range_checking_on_by_default.
1993 (set_range_command): Likewise.
1994 (set_range_case): Likewise.
1995 (unknown_language_data): Remove la_range_check initializer.
1996 (auto_language_data): Likewise.
1997 * language.h (range_mode): Delete. Enum definition moved to
1998 language.c.
1999 (language_data): Remove la_range_check field.
2000 (language_defn::range_checking_on_by_default): New member
2001 function.
2002 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2003 (m2_language::range_checking_on_by_default): New member function.
2004 * objc-lang.c (objc_language_data): Remove la_range_check
2005 initializer.
2006 * opencl-lang.c (opencl_language_data): Likewise.
2007 * p-lang.c (pascal_language_data): Likewise.
2008 (pascal_language::range_checking_on_by_default): New member
2009 function.
2010 * rust-lang.c (rust_language_data): Remove la_range_check
2011 initializer.
2012 (rust_language::range_checking_on_by_default): New member
2013 function.
2014
bf92aec5
AB
20152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2016
2017 * dwarf2/read.c (dwarf2_physname): Remove special case for
2018 language_go.
2019 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2020 member function.
2021
d3355e4d
AB
20222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2023
2024 * ada-lang.c (ada_language_data): Remove
2025 la_store_sym_names_in_linkage_form_p initializer.
2026 (ada_language::store_sym_names_in_linkage_form_p): New member
2027 function.
2028 * c-lang.c (c_language_data): Remove
2029 la_store_sym_names_in_linkage_form_p initializer.
2030 (c_language::store_sym_names_in_linkage_form_p): New member
2031 function.
2032 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2033 initializer.
2034 (asm_language_data): Likewise.
2035 (asm_language::store_sym_names_in_linkage_form_p): New member
2036 function.
2037 (minimal_language_data): Remove
2038 la_store_sym_names_in_linkage_form_p initializer.
2039 (minimal_language::store_sym_names_in_linkage_form_p): New member
2040 function.
2041 * d-lang.c (d_language_data): Remove
2042 la_store_sym_names_in_linkage_form_p initializer.
2043 * dwarf2/read.c (dwarf2_physname): Update call to
2044 store_sym_names_in_linkage_form_p.
2045 * f-lang.c (f_language_data): Remove
2046 la_store_sym_names_in_linkage_form_p initializer.
2047 * go-lang.c (go_language_data): Remove
2048 la_store_sym_names_in_linkage_form_p initializer.
2049 * language.c (unknown_language_data): Remove
2050 la_store_sym_names_in_linkage_form_p initializer.
2051 (unknown_language::store_sym_names_in_linkage_form_p): New member
2052 function.
2053 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2054 initializer.
2055 (auto_language::store_sym_names_in_linkage_form_p): New member
2056 function.
2057 * language.h (language_data): Remove
2058 la_store_sym_names_in_linkage_form_p member variable.
2059 (language_defn::store_sym_names_in_linkage_form_p): New member
2060 function.
2061 * m2-lang.c (m2_language_data): Remove
2062 la_store_sym_names_in_linkage_form_p initializer.
2063 * objc-lang.c (objc_language_data): Likewise.
2064 * opencl-lang.c (opencl_language_data): Likewise.
2065 * p-lang.c (pascal_language_data): Likewise.
2066 * rust-lang.c (rust_language_data): Likewise.
2067
22c12a6c
AB
20682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2069
2070 * ada-lang.c (ada_language_data): Remove string_lower_bound
2071 initializer.
2072 * c-lang.c (c_language_data): Likewise.
2073 (cplus_language_data): Likewise.
2074 (asm_language_data): Likewise.
2075 (minimal_language_data): Likewise.
2076 * d-lang.c (d_language_data): Likewise.
2077 * f-lang.c (f_language_data): Likewise.
2078 * go-lang.c (go_language_data): Likewise.
2079 * language.c (unknown_language_data): Likewise.
2080 (auto_language_data): Likewise.
2081 * language.h (language_data): Remove string_lower_bound field.
2082 (language_defn::string_lower_bound): New member function.
2083 * m2-lang.c (m2_language_data): Remove string_lower_bound
2084 initializer.
2085 (m2_language::string_lower_bound): New member function.
2086 * objc-lang.c (objc_language_data): Remove string_lower_bound
2087 initializer.
2088 * opencl-lang.c (opencl_language_data): Likewise.
2089 * p-lang.c (pascal_language_data): Likewise.
2090 * rust-lang.c (rust_language_data): Likewise.
2091 * valops.c (value_cstring): Update call to string_lower_bound.
2092 (value_string): Likewise.
2093 * value.c (allocate_repeated_value): Likewise.
2094
1c236ddd
AB
20952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * valops.c (value_repeat): Fix incorrect argument name in comment.
2098
67bd3fd5
AB
20992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2100
2101 * ada-lang.c (ada_language_data): Remove c_style_arrays
2102 initializer.
2103 (ada_language::c_style_arrays_p): New member fuction.
2104 * c-lang.c (c_language_data): Remove c_style_arrays
2105 initializer.
2106 (cplus_language_data): Likewise.
2107 (asm_language_data): Likewise.
2108 (minimal_language_data): Likewise.
2109 * d-lang.c (d_language_data): Likewise.
2110 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2111 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2112 (f_language::c_style_arrays_p): New member function.
2113 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2114 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2115 * language.c (unknown_language_data): Remove c_style_arrays
2116 initializer.
2117 (auto_language_data): Likewise.
2118 * language.h (language_data): Remove c_style_arrays field.
2119 (language_defn::c_style_arrays_p): New member function.
2120 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2121 (m2_language::c_style_arrays_p): New member function.
2122 * objc-lang.c (objc_language_data): Remove c_style_arrays
2123 initializer.
2124 * opencl-lang.c (opencl_language_data): Likewise.
2125 * p-lang.c (pascal_language_data): Likewise.
2126 * rust-lang.c (rust_language_data): Likewise.
2127 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2128 and update local variable to a bool.
2129 * valops.c (value_cast): Update call to c_style_arrays_p.
2130 (value_array): Likewise.
2131 * value.c (coerce_array): Likewise.
2132
85967615
AB
21332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2134
2135 * ada-lang.c (ada_language_data): Remove la_language initializer.
2136 * c-lang.c (c_language_data): Likewise.
2137 (cplus_language_data): Likewise.
2138 (asm_language_data): Likewise.
2139 (minimal_language_data): Likewise.
2140 * d-lang.c (d_language_data): Likewise.
2141 * f-lang.c (f_language_data): Likewise.
2142 * go-lang.c (go_language_data): Likewise.
2143 * language.c (unknown_language_data): Likewise.
2144 (auto_language_data): Likewise.
2145 * language.h (language_data): Remove la_language field.
2146 (language_defn::language_defn): Initialise la_language field.
2147 (language_defn::la_language): New member variable.
2148 * m2-lang.c (m2_language_data): Remove la_language field.
2149 * objc-lang.c (objc_language_data): Likewise.
2150 * opencl-lang.c (opencl_language_data): Likewise.
2151 * p-lang.c (pascal_language_data): Likewise.
2152 * rust-lang.c (rust_language_data): Likewise.
2153
e171d6f1
AB
21542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * ada-lang.c (ada_extensions): Delete, moved into
2157 ada_language::filename_extensions.
2158 (ada_language_data): Remove la_filename_extensions initializer.
2159 (ada_language::filename_extensions): New member function.
2160 * c-lang.c (c_extensions): Delete, moved into
2161 c_language::filename_extensions.
2162 (c_language_data): Remove la_filename_extensions initializer.
2163 (c_language::filename_extensions): New member function.
2164 (cplus_extensions): Delete, moved into
2165 cplus_language::filename_extensions.
2166 (cplus_language_data): Remove la_filename_extensions initializer.
2167 (cplus_language::filename_extensions): New member function.
2168 (asm_extensions): Delete, moved into
2169 asm_language::filename_extensions.
2170 (asm_language_data): Remove la_filename_extensions initializer.
2171 (asm_language::filename_extensions): New member function.
2172 (minimal_language_data): Remove la_filename_extensions
2173 initializer.
2174 * d-lang.c (d_extensions): Delete, moved into
2175 d_language::filename_extensions.
2176 (d_language_data): Remove la_filename_extensions initializer.
2177 (d_language::filename_extensions): New member function.
2178 * f-lang.c (f_extensions): Delete, moved into
2179 f_language::filename_extensions.
2180 (f_language_data): Remove la_filename_extensions initializer.
2181 (f_language::filename_extensions): New member function.
2182 * go-lang.c (go_language_data): Remove la_filename_extensions
2183 initializer.
2184 * language.c (add_set_language_command): Update now that
2185 filename_extensions returns a vector.
2186 (unknown_language_data): Remove la_filename_extensions
2187 initializer.
2188 (auto_language_data): Likewise.
2189 * language.h (language_data): Remove la_filename_extensions field.
2190 (language_defn::filename_extensions): New member function.
2191 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2192 initializer.
2193 * objc-lang.c (objc_extensions): Delete, moved into
2194 objc_language::filename_extensions.
2195 (objc_language_data): Remove la_filename_extensions initializer.
2196 (objc_language::filename_extensions): New member function.
2197 * opencl-lang.c (opencl_language_data): Remove
2198 la_filename_extensions initializer.
2199 * p-lang.c (pascal_extensions): Delete, moved into
2200 pascal_language::filename_extensions.
2201 (pascal_language_data): Remove la_filename_extensions initializer.
2202 (pascal_language::filename_extensions): New member function.
2203 * rust-lang.c (rust_extensions): Delete, moved into
2204 rust_language::filename_extensions.
2205 (rust_language_data): Remove la_filename_extensions initializer.
2206 (rust_language::filename_extensions): New member function.
2207 * symfile.c (add_filename_language): Add new assert.
2208
6f7664a9
AB
22092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2210
2211 * ada-lang.c (ada_language_data): Remove la_name and
2212 la_natural_name initializers.
2213 (ada_language::name): New member function.
2214 (ada_language::natural_name): New member function.
2215 * c-lang.c (c_language_data): Remove la_name and
2216 la_natural_name initializers.
2217 (c_language::name): New member function.
2218 (c_language::natural_name): New member function.
2219 (cplus_language_data): Remove la_name and
2220 la_natural_name initializers.
2221 (cplus_language::name): New member function.
2222 (cplus_language::natural_name): New member function.
2223 (asm_language_data): Remove la_name and
2224 la_natural_name initializers.
2225 (asm_language::name): New member function.
2226 (asm_language::natural_name): New member function.
2227 (minimal_language_data): Remove la_name and
2228 la_natural_name initializers.
2229 (minimal_language::name): New member function.
2230 (minimal_language::natural_name): New member function.
2231 * compile/compile.c (compile_to_object): Update call to
2232 lanugage_defn::name.
2233 * d-lang.c (d_language_data): Remove la_name and
2234 la_natural_name initializers.
2235 (d_language::name): New member function.
2236 (d_language::natural_name): New member function.
2237 * expprint.c (print_subexp_standard): Update call to
2238 language_defn::name.
2239 (dump_raw_expression): Likewise
2240 (dump_prefix_expression): Likewise.
2241 * f-lang.c (f_language_data): Remove la_name and
2242 la_natural_name initializers.
2243 (f_language::name): New member function.
2244 (f_language::natural_name): New member function.
2245 * go-lang.c (go_language_data): Remove la_name and
2246 la_natural_name initializers.
2247 (go_language::name): New member function.
2248 (go_language::natural_name): New member function.
2249 * language.c (show_language_command): Update call to
2250 language_defn::name.
2251 (set_language_command): Likewise.
2252 (language_enum): Likewise.
2253 (language_str): Likewise.
2254 (add_set_language_command): Likewise, use
2255 language_defn::natural_name in the doc string.
2256 (unknown_language_data): Remove la_name and
2257 la_natural_name initializers.
2258 (unknown_language::name): New member function.
2259 (unknown_language::natural_name): New member function.
2260 (auto_language_data): Remove la_name and
2261 la_natural_name initializers.
2262 (auto_language::name): New member function.
2263 (auto_language::natural_name): New member function.
2264 (language_lookup_primitive_type_as_symbol): Update call to
2265 language_defn::name.
2266 * language.h (language_data): Remove la_name and la_natural_name
2267 member variables.
2268 (language_defn::name): New member function.
2269 (language_defn::natural_name): New member function.
2270 * m2-lang.c (m2_language_data): Remove la_name and
2271 la_natural_name initializers.
2272 (m2_language::name): New member function.
2273 (m2_language::natural_name): New member function.
2274 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2275 language_defn::natural_name.
2276 * objc-lang.c (objc_language_data): Remove la_name and
2277 la_natural_name initializers.
2278 (objc_language::name): New member function.
2279 (objc_language::natural_name): New member function.
2280 * opencl-lang.c (opencl_language_data): Remove la_name and
2281 la_natural_name initializers.
2282 (opencl_language::name): New member function.
2283 (opencl_language::natural_name): New member function.
2284 * p-lang.c (pascal_language_data): Remove la_name and
2285 la_natural_name initializers.
2286 (pascal_language::name): New member function.
2287 (pascal_language::natural_name): New member function.
2288 * rust-lang.c (rust_language_data): Remove la_name and
2289 la_natural_name initializers.
2290 (rust_language::name): New member function.
2291 (rust_language::natural_name): New member function.
2292 * symtab.c (lookup_language_this): Update call to
2293 language_defn::name.
2294
5bae7c4e
AB
22952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * ada-lang.c (ada_language_data): Remove la_name_of_this
2298 initializer.
2299 * ax-gdb.c (gen_expr): Update call to name_of_this.
2300 * c-exp.y (classify_name): Likewise.
2301 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2302 (cplus_language_data): Likewise.
2303 (cplus_language::name_of_this): New member function.
2304 (asm_language_data): Remove la_name_of_this initializer.
2305 (minimal_language_data): Likewise.
2306 * d-lang.c (d_language_data): Likewise.
2307 (d_language::name_of_this): New member function.
2308 * expprint.c (print_subexp_standard): Update call to name_of_this.
2309 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2310 * go-lang.c (go_language_data): Likewise.
2311 * language.c (unknown_language_data): Likewise.
2312 (unknown_language::name_of_this): New member function.
2313 (auto_language_data): Remove la_name_of_this initializer.
2314 (auto_language::name_of_this): New member function.
2315 * language.h (language_data): Delete la_name_of_this member
2316 variable.
2317 (language_defn::name_of_this): New member function.
2318 * m2-lang.c (m2_language_data): Remove la_name_of_this
2319 initializer.
2320 * objc-lang.c (objc_language_data): Likewise.
2321 (objc_language::name_of_this): New member function.
2322 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2323 initializer.
2324 * p-lang.c (pascal_language_data): Likewise.
2325 (pascal_language::name_of_this): New member function.
2326 * rust-lang.c (rust_language_data): Remove la_name_of_this
2327 initializer.
2328 * symtab.c (lookup_language_this): Update call to name_of_this.
2329 (lookup_symbol_aux): Likewise.
2330 * valops.c (value_of_this): Likewise.
2331
22e3f3ed
AB
23322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * ada-lang.c (ada_language_data): Remove
2335 la_struct_too_deep_ellipsis initializer.
2336 (ada_language::struct_too_deep_ellipsis): New member function.
2337 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2338 initializer.
2339 (cplus_language_data): Likewise.
2340 (asm_language_data): Likewise.
2341 (minimal_language_data): Likewise.
2342 * cp-valprint.c (cp_print_value): Update call to
2343 struct_too_deep_ellipsis.
2344 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2345 initializer.
2346 * f-lang.c (f_language_data): Likewise.
2347 (f_language::struct_too_deep_ellipsis): New member function.
2348 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2349 initializer.
2350 * language.c (unknown_language_data): Likewise.
2351 (auto_language_data): Likewise.
2352 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2353 member variable.
2354 (language_defn::struct_too_deep_ellipsis): New member function.
2355 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2356 initializer.Q
2357 * objc-lang.c (objc_language_data): Likewise.
2358 * opencl-lang.c (opencl_language_data): Likewise.
2359 * p-lang.c (pascal_language_data): Likewise.
2360 * rust-lang.c (rust_language_data): Likewise.
2361 * valprint.c (val_print_check_max_depth): Update call to
2362 struct_too_deep_ellipsis.
2363
ed29e1c7
FW
23642020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2365
2366 * MAINTAINERS (Write After Approval): Add myself.
2367
12d8f940
TT
23682020-09-15 Tom Tromey <tom@tromey.com>
2369
2370 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2371 Remove.
2372
6b5a7bc7
TT
23732020-09-15 Tom Tromey <tom@tromey.com>
2374
2375 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2376 and TYPE_CODE_METHODPTR cases.
2377 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2378 (c_value_print_inner): Update.
2379 * valprint.c (generic_value_print_memberptr): New function, from
2380 c_value_print_memberptr.
2381 (generic_value_print): Use it. Call cplus_print_method_ptr.
2382
47f0e2ff
TT
23832020-09-15 Tom Tromey <tromey@adacore.com>
2384
2385 * python/python-internal.h (PyInt_FromLong): Remove define.
2386 * python/py-value.c (convert_value_from_python): Use
2387 gdb_py_object_from_longest.
2388 * python/py-type.c (typy_get_code): Use
2389 gdb_py_object_from_longest.
2390 * python/py-symtab.c (salpy_get_line): Use
2391 gdb_py_object_from_longest.
2392 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2393 gdb_py_object_from_longest.
2394 * python/py-record.c (recpy_gap_reason_code): Use
2395 gdb_py_object_from_longest.
2396 * python/py-record-btrace.c (recpy_bt_insn_size)
2397 (recpy_bt_func_level, btpy_list_count): Use
2398 gdb_py_object_from_longest.
2399 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2400 gdb_py_object_from_longest. Fix error handling.
2401 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2402 gdb_py_object_from_longest.
2403 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2404 gdb_py_object_from_longest.
2405 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2406 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2407 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2408
512116ce
TT
24092020-09-15 Tom Tromey <tromey@adacore.com>
2410
2411 * python/python.c (gdbpy_parameter_value): Use
2412 gdb_py_object_from_ulongest.
2413
4ab1029c
TT
24142020-09-15 Tom Tromey <tromey@adacore.com>
2415
2416 * python/py-infevents.c (create_register_changed_event_object):
2417 Use gdb_py_object_from_longest.
2418 * python/py-exitedevent.c (create_exited_event_object): Use
2419 gdb_py_object_from_longest.
2420
062534d4
TT
24212020-09-15 Tom Tromey <tromey@adacore.com>
2422
2423 * python/python.c (gdbpy_parameter_value): Use
2424 gdb_py_object_from_longest.
2425 * python/py-type.c (convert_field, typy_range): Use
2426 gdb_py_object_from_longest.
2427 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2428 gdb_py_object_from_longest.
2429 * python/py-lazy-string.c (stpy_get_length): Use
2430 gdb_py_object_from_longest.
2431 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2432 gdb_py_object_from_longest.
2433 * python/py-infevents.c (create_memory_changed_event_object): Use
2434 gdb_py_object_from_longest.
2435 * python/py-inferior.c (infpy_get_num): Use
2436 gdb_py_object_from_longest.
2437 (infpy_get_pid): Likewise.
2438
d1cab987
TT
24392020-09-15 Tom Tromey <tromey@adacore.com>
2440
2441 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2442 defines.
2443 * python/py-value.c (valpy_long): Use
2444 gdb_py_object_from_ulongest.
2445 * python/py-symtab.c (salpy_get_pc): Use
2446 gdb_py_object_from_ulongest.
2447 (salpy_get_last): Likewise.
2448 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2449 gdb_py_object_from_ulongest.
2450 * python/py-lazy-string.c (stpy_get_address): Use
2451 gdb_py_object_from_ulongest.
2452 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2453 * python/py-arch.c (archpy_disassemble): Use
2454 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2455 error handling.
2456
4bde49dc
TT
24572020-09-15 Tom Tromey <tromey@adacore.com>
2458
2459 * python/python-internal.h (gdb_py_long_from_longest): Remove
2460 defines.
2461 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2462 * python/py-type.c (convert_field, typy_get_sizeof): Use
2463 gdb_py_object_from_longest.
2464 * python/py-record-btrace.c (btpy_list_index): Use
2465 gdb_py_object_from_longest.
2466
37431074
TT
24672020-09-15 Tom Tromey <tromey@adacore.com>
2468
2469 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2470 * python/py-record.c (recpy_element_number): Use
2471 gdb_py_object_from_longest.
2472 (recpy_gap_number): Likewise.
2473
cbe25684
TT
24742020-09-15 Tom Tromey <tromey@adacore.com>
2475
2476 * top.c (ui::ui): Update.
2477 (highest_ui_num): Remove.
2478 * top.h (struct ui) <num>: Remove.
2479
db92ac45
TT
24802020-09-15 Tom Tromey <tromey@adacore.com>
2481
2482 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2483 * ui-style.c (ansi_regex_text): Now array.
2484 * rust-exp.y (number_regex_text): Now array.
2485 * linespec.c (linespec_quote_characters): Now array.
2486 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2487 Now arrays.
2488
d2b31b67
SM
24892020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2490
2491 * debuginfod-support.c (debuginfod_client_deleter): New.
2492 (debuginfod_client_up): New.
2493 (debuginfod_init): Return debuginfod_client_up.
2494 (debuginfod_source_query): Adjust.
2495 (debuginfod_debuginfo_query): Adjust.
2496
3246bd8e
SM
24972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2498
2499 * debuginfod-support.c (debuginfod_source_query): Use
2500 make_unique_xstrdup.
2501
10242f36
SM
25022020-09-14 Simon Marchi <simon.marchi@efficios.com>
2503
2504 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2505 with `type::instance_flags`.
2506
e1044e6a
MM
25072020-09-14 Michael Mullin <masmullin@gmail.com>
2508
2509 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2510 Remove baton parameter.
2511
04902b09
PA
25122020-09-14 Pedro Alves <pedro@palves.net>
2513
2514 * Makefile.in (SELFTESTS_SRCS): Add
2515 unittests/enum-flags-selftests.c.
2516 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2517 btrace_function_flags instead of enum btrace_function_flag.
2518 * compile/compile-c-types.c (convert_qualified): Use
2519 enum_flags::raw.
2520 * compile/compile-cplus-symbols.c (convert_one_symbol)
2521 (convert_symbol_bmsym):
2522 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2523 (compile_cplus_convert_struct_or_union_methods)
2524 (compile_cplus_instance::convert_qualified_base):
2525 * go-exp.y (parse_string_or_char): Add cast to int.
2526 * unittests/enum-flags-selftests.c: New file.
2527 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2528 type to btrace_thread_flags from btrace_thread_flag.
2529 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2530 local's type to btrace_thread_flags from btrace_thread_flag. Add
2531 cast in DEBUG call.
2532
69896a2c
PA
25332020-09-14 Pedro Alves <pedro@palves.net>
2534
2535 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2536 * gdbtypes.c (address_space_name_to_int): Rename to ...
2537 (address_space_name_to_type_instance_flags): ... this.
2538 (address_space_int_to_name): Rename to ...
2539 (address_space_type_instance_flags_to_name): ... this.
2540 * gdbtypes.h (address_space_name_to_int): Rename to ...
2541 (address_space_name_to_type_instance_flags): ... this.
2542 (address_space_int_to_name): Rename to ...
2543 (address_space_type_instance_flags_to_name): ... this.
2544 * type-stack.c (type_stack::insert): Adjust to rename.
2545 * type-stack.h (type_stack::insert): Likewise.
2546
314ad88d
PA
25472020-09-14 Pedro Alves <pedro@palves.net>
2548 Andrew Burgess <andrew.burgess@embecosm.com>
2549
2550 * avr-tdep.c (avr_address_class_type_flags): Return
2551 type_instance_flags.
2552 (avr_address_class_type_flags_to_name): Take a
2553 type_instance_flags.
2554 (avr_address_class_name_to_type_flags): Return bool and take a
2555 type_instance_flags.
2556 * d-lang.c (build_d_types): Use type::set_instance_flags.
2557 * ft32-tdep.c (ft32_address_class_type_flags): Return
2558 type_instance_flags.
2559 (ft32_address_class_type_flags_to_name): Take a
2560 type_instance_flags.
2561 (ft32_address_class_name_to_type_flags): Return bool and take a
2562 type_instance_flags.
2563 (ft32_gdbarch_init): Use type::set_instance_flags.
2564 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2565 * gdbarch.h, gdbarch.c: Regenerate.
2566 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2567 (address_class_name_to_type_flags): Use type_instance_flags and
2568 bool.
2569 * gdbtypes.c (address_space_name_to_int)
2570 (address_space_int_to_name, make_qualified_type): Use
2571 type_instance_flags.
2572 (make_qualified_type): Use type_instance_flags and
2573 type::set_instance_flags.
2574 (make_type_with_address_space, make_cv_type, make_vector_type)
2575 (check_typedef): Use type_instance_flags.
2576 (recursive_dump_type): Cast type_instance_flags to unsigned for
2577 printing.
2578 (copy_type_recursive): Use type::set_instance_flags.
2579 (gdbtypes_post_init): Use type::set_instance_flags.
2580 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2581 <m_instance_flags>: ... this.
2582 <instance_flags, set_instance_flags>: New methods.
2583 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2584 (SET_TYPE_INSTANCE_FLAGS): New.
2585 (address_space_name_to_int, address_space_int_to_name)
2586 (make_type_with_address_space): Pass flags using
2587 type_instance_flags instead of int.
2588 * stabsread.c (cleanup_undefined_types_noname): Use
2589 type::set_instance_flags.
2590 * s390-tdep.c (s390_address_class_type_flags): Return
2591 type_instance_flags.
2592 (s390_address_class_type_flags_to_name): Take a
2593 type_instance_flags.
2594 (s390_address_class_name_to_type_flags): Return bool and take a
2595 type_instance_flags.
2596 * type-stack.c (type_stack::follow_types): Use
2597 type_instance_flags.
2598 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2599
27087b7f
TT
26002020-09-14 Tom Tromey <tromey@adacore.com>
2601
2602 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2603 * x86-tdep.c (x86_is_thunk_register_name)
2604 (x86_in_indirect_branch_thunk): Update.
2605 * sparc64-tdep.c (sparc64_fpu_register_names)
2606 (sparc64_cp0_register_names, sparc64_register_names)
2607 (sparc64_pseudo_register_names): Now const.
2608 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2609 cp0_registers_num>: Now const.
2610 * sparc-tdep.c (sparc_core_register_names)
2611 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2612 (sparc32_pseudo_register_names): Now const.
2613 (validate_tdesc_registers): Update.
2614 * rust-lang.c (rust_extensions): Now const.
2615 * p-lang.c (p_extensions): Now const.
2616 * objc-lang.c (objc_extensions): Now const.
2617 * nto-tdep.c (nto_thread_state_str): Now const.
2618 * moxie-tdep.c (moxie_register_names): Now const.
2619 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2620 Now const.
2621 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2622 (mips_linux_reg_names): Now const.
2623 (mips_gdbarch_init): Update.
2624 * microblaze-tdep.c (microblaze_register_names): Now const.
2625 * m68k-tdep.c (m68k_register_names): Now const.
2626 * m32r-tdep.c (m32r_register_names): Now const.
2627 * ia64-tdep.c (ia64_register_names): Now const.
2628 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2629 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2630 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2631 ymm_avx512_register_names, pkeys_register_names>: Now const.
2632 * i386-tdep.c (i386_register_names, i386_zmm_names)
2633 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2634 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2635 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2636 * f-lang.c (f_extensions): Now const.
2637 * d-lang.c (d_extensions): Now const.
2638 * csky-tdep.c (csky_register_names): Now const.
2639 * charset.c (default_charset_names, charset_enum): Now const.
2640 (_initialize_charset): Update.
2641 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2642 const.
2643 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2644 (bsd_uthread_solib_loaded): Update.
2645 (bsd_uthread_state): Now const.
2646 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2647 (amd64_ymm_avx512_names, amd64_ymmh_names)
2648 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2649 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2650 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2651 (amd64_dword_names): Now const.
2652 * agent.c (can_use_agent_enum): Now const.
2653 * ada-tasks.c (task_states, long_task_states): Now const.
2654 * ada-lang.c (known_runtime_file_name_patterns)
2655 (known_auxiliary_function_name_patterns, attribute_names)
2656 (standard_exc, ada_extensions): Now const.
2657
89806626
SM
26582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2659
2660 * bcache.h (struct bcache) <bcache>: Remove constructor.
2661 <m_hash_function, m_compare_function>: Remove.
2662 <~bcache>: Make virtual.
2663 <compare>: Remove static method, introduce virtual method.
2664 <default_hash>: Remove.
2665 <hash>: New virtual method.
2666 * bcache.c (bcache::expand_hash_table): Update.
2667 (bcache::insert): Update.
2668 (bcache::hash): New.
2669 (bcache::compare): Update comment and parameter names.
2670 * gdbtypes.c (types_deeply_equal): Update.
2671 * psymtab.h (struct psymbol_bcache): New struct.
2672 (class psymtab_storage) <psymtab_storage>: Make default.
2673 <psymbol_cache>: Change type to psymbol_bcache.
2674 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2675 (psymbol_hash): Change to...
2676 (psymbol_bcache::hash): ... this.
2677 (psymbol_compare): Change to...
2678 (psymbol_bcache::compare): ... this.
2679
677c92fe
SM
26802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2681
2682 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2683 checking for initial lwp.
2684
3eba3a01
TT
26852020-09-14 Tom Tromey <tromey@adacore.com>
2686
2687 * m68k-tdep.c (m68k_extract_return_value): Use
2688 pointer_result_regnum.
2689 (m68k_store_return_value): Likewise.
2690 (m68k_reg_struct_return_p): Handle vectors and arrays.
2691 (m68k_return_value): Handle arrays.
2692 (m68k_svr4_return_value): Fix single-element aggregate handling.
2693 Handle long double. Adjust for embedded ABI.
2694 (m68k_svr4_init_abi): Set pointer_result_regnum.
2695 (m68k_embedded_init_abi): New function.
2696 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2697 (m68k_osabi_sniffer): New function.
2698 (_initialize_m68k_tdep): Register osabi sniffer.
2699 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2700 member.
2701
33f4dd48
SM
27022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2705 with gdb::unique_xmalloc_ptr<char>.
2706
8400a90d
SM
27072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2708
2709 * xml-support.h (xml_fetch_another): Change type to be a
2710 function_view.
2711 (xml_process_xincludes): Remove baton parameter.
2712 (xml_fetch_content_from_file): Change baton parameter to
2713 dirname.
2714 * xml-support.c (struct xinclude_parsing_data)
2715 <xinclude_parsing_data>: Remove baton parameter.
2716 <fetcher_baton>: Remove.
2717 (xinclude_start_include): Adjust.
2718 (xml_process_xincludes): Adjust.
2719 (xml_fetch_content_from_file): Replace baton parameter with
2720 dirname.
2721 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2722 (xml_init_syscalls_info): Use a lambda.
2723 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2724 (file_read_description_xml): Use a lambda.
2725 (fetch_available_features_from_target): Change baton parameter
2726 to target_ops.
2727 (target_read_description_xml): Use a lambda.
2728 (target_fetch_description_xml): Use a lambda.
2729 (string_read_description_xml): Update.
2730
04f5bab2
SM
27312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2734 uses with type::endianity_is_not_default.
2735
db558e34
SM
27362020-09-14 Simon Marchi <simon.marchi@efficios.com>
2737
2738 * gdbtypes.h (struct type) <endianity_is_not_default,
2739 set_endianity_is_not_default>: New methods.
2740 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2741 type::endianity_is_not_default, change all write call sites to
2742 use type::set_endianity_is_not_default.
2743
22c4c60c
SM
27442020-09-14 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2747 uses with type::is_fixed_instance.
2748
9cdd0d12
SM
27492020-09-14 Simon Marchi <simon.marchi@efficios.com>
2750
2751 * gdbtypes.h (struct type) <is_fixed_instance,
2752 set_is_fixed_instance>: New methods.
2753 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2754 write call sites to use type::set_is_fixed_instance.
2755
0becda7a
SM
27562020-09-14 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2759 uses with type::is_gnu_ifunc.
2760
03cc7249
SM
27612020-09-14 Simon Marchi <simon.marchi@efficios.com>
2762
2763 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2764 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2765 use type::set_is_gnu_ifunc.
2766
3f46044c
SM
27672020-09-14 Simon Marchi <simon.marchi@efficios.com>
2768
2769 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2770 uses with type::stub_is_supported.
2771
9baccff6
SM
27722020-09-14 Simon Marchi <simon.marchi@efficios.com>
2773
2774 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2775 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2776 use type::set_stub_is_supported.
2777
bd63c870
SM
27782020-09-14 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2781 uses with type::is_vector.
2782
2062087b
SM
27832020-09-14 Simon Marchi <simon.marchi@efficios.com>
2784
2785 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2786 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2787 use type::set_is_vector.
2788
a409645d
SM
27892020-09-14 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2792 uses with type::has_varargs.
2793
1d6286ed
SM
27942020-09-14 Simon Marchi <simon.marchi@efficios.com>
2795
2796 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2797 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2798 use type::set_has_varargs.
2799
7f9f399b
SM
28002020-09-14 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2803 uses with type::is_prototyped.
2804
27e69b7a
SM
28052020-09-14 Simon Marchi <simon.marchi@efficios.com>
2806
2807 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2808 New methods.
2809 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2810 call sites to use type::set_is_prototyped.
2811
d2183968
SM
28122020-09-14 Simon Marchi <simon.marchi@efficios.com>
2813
2814 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2815 uses with type::target_is_stub.
2816
8f53807e
SM
28172020-09-14 Simon Marchi <simon.marchi@efficios.com>
2818
2819 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2820 New methods.
2821 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2822 sites to use type::set_target_is_stub.
2823
e46d3488
SM
28242020-09-14 Simon Marchi <simon.marchi@efficios.com>
2825
2826 * gdbtypes.h (TYPE_STUB): Remove, replace all
2827 uses with type::is_stub.
2828
b4b73759
SM
28292020-09-14 Simon Marchi <simon.marchi@efficios.com>
2830
2831 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2832 (TYPE_STUB): Use type::is_stub, change all write call sites to
2833 use type::set_is_stub.
2834
20ce4123
SM
28352020-09-14 Simon Marchi <simon.marchi@efficios.com>
2836
2837 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2838 type::has_no_signedness.
2839
15152a54
SM
28402020-09-14 Simon Marchi <simon.marchi@efficios.com>
2841
2842 * gdbtypes.h (struct type) <has_no_signedness,
2843 set_has_no_signedness>: New methods.
2844 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2845 call sites to use type::set_has_no_signedness.
2846
c6d940a9
SM
28472020-09-14 Simon Marchi <simon.marchi@efficios.com>
2848
2849 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2850 type::is_unsigned.
2851
653223d3
SM
28522020-09-14 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2855 methods.
2856 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2857 sites to use type::set_is_unsigned.
2858
55ea94da 28592020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2860 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2861
e851246a
SM
2862 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2863 pointer and stack frame offset when unwinding.
55ea94da 2864
6791b117
PA
28652020-09-13 Pedro Alves <pedro@palves.net>
2866
2867 * NEWS: Document "-break-insert --qualified".
2868 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2869
77f2120b
PA
28702020-09-13 Pedro Alves <pedro@palves.net>
2871
2872 * linespec.c (classify_mtype, compare_msyms): Delete.
2873 (search_minsyms_for_name): Remove classification logic. Instead
2874 filter out trampoline symbols if we also found an external
2875 function of the same name.
2876
ed6a896c
JB
28772020-09-13 Joel Brobecker <brobecker@adacore.com>
2878
2879 * NEWS: Create a new section for the next release branch.
2880 Rename the section of the current branch, now that it has
2881 been cut.
2882
32aea73e
JB
28832020-09-13 Joel Brobecker <brobecker@adacore.com>
2884
2885 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2886 * version.in: Bump version to 11.0.50.DATE-git.
2887
8087c3fa
JB
28882020-09-12 Joel Brobecker <brobecker@adacore.com>
2889
2890 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2891
2a67f09d
FW
28922020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2893 Felix Willgerodt <Felix.Willgerodt@intel.com>
2894
2895 * gdbarch.sh: Added bfloat16 type.
2896 * gdbarch.c: Regenerated.
2897 * gdbarch.h: Regenerated.
2898 * gdbtypes.c (floatformats_bfloat16): New struct.
2899 (gdbtypes_post_init): Add builtin_bfloat16.
2900 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2901 (floatformats_bfloat16): New struct.
2902 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2903 (i386_ymm_type): Add field "v16_bfloat16"
2904 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2905 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2906 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2907 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2908 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2909 * features/i386/64bit-avx512.c: Regenerated.
2910 * features/i386/64bit-sse.xml: Add bfloat16 type.
2911 * features/i386/64bit-sse.c: Regenerated.
2912
1347d111
FW
29132020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2914
2915 * i386-tdep.c (i386_zmm_type): Fix field names.
2916 (i386_ymm_type): Fix field names.
2917
7a4e8e7d
TBA
29182020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2919
2920 * breakpoint.c: Fix typo in the help message of the
2921 "set breakpoint condition-evaluation" command.
2922
cf4ac4be
KR
29232020-09-10 Kamil Rytarowski <n54@gmx.com>
2924
2925 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2926 * (nbsd_nat_target::pid_to_exec_file)
2927 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2928 (nbsd_nat_target::post_startup_inferior)
2929 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2930 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2931 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2932 * (nbsd_thread_lister): Remove.
2933
f404573e
KR
29342020-09-10 Kamil Rytarowski <n54@gmx.com>
2935
2936 * fork-inferior.c (startup_inferior): Avoid double free.
2937
1ccb2c17
KR
29382020-09-10 Kamil Rytarowski <n54@gmx.com>
2939
2940 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2941 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2942
feedfcc7
KR
29432020-09-10 Kamil Rytarowski <n54@gmx.com>
2944
2945 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2946 * netbsd-nat.c: Include <sys/ptrace.h>.
2947 * (netbsd_nat::enable_proc_events): Add.
2948
c489f8c6
KR
29492020-09-10 Kamil Rytarowski <n54@gmx.com>
2950
2951 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2952 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2953 (netbsd_nat::for_each_thread): Add.
2954 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2955 "gdbsupport/common-debug.h".
2956 * (netbsd_nat::netbsd_thread_lister)
2957 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2958 (netbsd_nat::for_each_thread): Add.
2959
330662f6
KR
29602020-09-10 Kamil Rytarowski <n54@gmx.com>
2961
2962 * netbsd-nat.h: Include <unistd.h>.
2963 * (netbsd_nat::pid_to_exec_file): Add.
2964 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2965 * (netbsd_nat::pid_to_exec_file) Add.
2966
70b67307
KR
29672020-09-10 Kamil Rytarowski <n54@gmx.com>
2968
2969 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2970
99cf6da6
KR
29712020-09-10 Kamil Rytarowski <n54@gmx.com>
2972
2973 * netbsd-nat.h: New file.
2974 * netbsd-nat.c: Likewise.
2975
1b788fb6
TT
29762020-09-09 Tom Tromey <tromey@adacore.com>
2977
2978 * ada-lang.c (remove_extra_symbols): Do not increment when
2979 removing an element
2980
03b0a45f
TT
29812020-09-08 Tom Tromey <tromey@adacore.com>
2982
2983 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2984
3cae4447
TT
29852020-09-08 Tom Tromey <tromey@adacore.com>
2986
2987 PR win32/25302:
2988 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2989 (gdb_bfd_init_data): New function.
2990 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2991
7f08fd51
TBA
29922020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2993
2994 * infrun.c (fetch_inferior_event): Use
2995 `switch_to_target_no_thread` to switch the target.
2996
3e6ff933
TT
29972020-09-06 Tom Tromey <tom@tromey.com>
2998
2999 * symfile.h (dwarf2_free_objfile): Don't declare.
3000
e56798df
AKS
30012020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3002
3003 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3004 to match 16 byte real/complex type generated by Flang compiler.
3005
8f5c6526
TV
30062020-09-03 Tom de Vries <tdevries@suse.de>
3007
3008 PR breakpoint/26546
3009 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3010 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3011
c5065df0
SM
30122020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3013
3014 * maint.c (index_digits): New function.
3015 (struct maint_print_section_data): Remove.
3016 (print_bfd_section_info): Remove print_data parameter, add arg
3017 and index_digits.
3018 (print_objfile_section_info): Likewise.
3019 (print_bfd_section_info_maybe_relocated): Likewise (plus
3020 objfile).
3021 (maintenance_info_sections): Adjust calls.
3022
02c6f3f1
TT
30232020-09-02 Tom Tromey <tromey@adacore.com>
3024
3025 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3026 for null pointers.
3027 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3028
ef5e5b0b
SM
30292020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3030
3031 * bcache.h (struct bcache) <insert>: Change type of `added` to
3032 pointer to bool.
3033 * bcache.c (bcache::insert): Likewise.
3034 * gdbtypes.c (check_types_worklist): Adjust.
3035 * psymtab.c (add_psymbol_to_bcache): Adjust.
3036
973695d6
KB
30372020-08-31 Kevin Buettner <kevinb@redhat.com>
3038
3039 * corelow.c (unordered_set): Include.
3040 (class core_target): Add field 'm_core_unavailable_mappings'.
3041 (core_target::build_file_mappings): Print only one warning
3042 per inaccessible file. Add unavailable/broken mappings
3043 to m_core_unavailable_mappings.
3044 (core_target::xfer_partial): Call...
3045 (core_target::xfer_memory_via_mappings): New method.
3046
264fc0e2
SM
30472020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3048
3049 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3050 type to bool.
3051
2de01bdb
SM
30522020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3053
3054 * dwarf2/read.c (struct field_info): Fix indentation.
3055
f3bd50f1
SM
30562020-08-31 Simon Marchi <simon.marchi@efficios.com>
3057
3058 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3059 ordering in comment.
3060 * frame.c (frame_id_eq): Fix indentation.
3061
22b9b4b0
SL
30622020-08-31 Scott Linder <scott@scottlinder.com>
3063 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3066 inline frame ids in outer frame.
3067
84154d16
SM
30682020-08-31 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3071 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3072 (outer_frame_id): Use FID_STACK_OUTER instead of
3073 FID_STACK_INVALID.
3074 (frame_id_p): Don't check for outer_frame_id.
3075
8efaf6b3
SM
30762020-08-31 Simon Marchi <simon.marchi@efficios.com>
3077
3078 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3079 regnum/frame in value. Call allocate_value_lazy.
3080 * frame.c (frame_unwind_register_value): Use
3081 val_print_not_saved.
3082
fe1fe7ea
SM
30832020-08-31 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3086
f7c7700d
PA
30872020-08-29 Pedro Alves <pedro@palves.net>
3088
3089 * progspace.c (print_program_space): Use all_inferiors. Switch to
3090 the inferior before calling target_pid_to_str.
3091
e0814aae
TT
30922020-08-28 Tom Tromey <tom@tromey.com>
3093
3094 * xcoffread.c (xcoff_end_psymtab): Update comment.
3095 * dbxread.c (dbx_end_psymtab): Update comment.
3096
626d2320
TV
30972020-08-28 Tom de Vries <tdevries@suse.de>
3098
3099 PR breakpoint/26544
3100 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3101 event_location.
3102 (create_breakpoint): Same.
3103 (base_breakpoint_decode_location): Same.
3104 (bkpt_create_sals_from_location): Same.
3105 (bkpt_decode_location): Same.
3106 (bkpt_probe_create_sals_from_location): Same.
3107 (bkpt_probe_decode_location): Same.
3108 (tracepoint_create_sals_from_location): Same.
3109 (tracepoint_decode_location): Same.
3110 (tracepoint_probe_decode_location): Same.
3111 (strace_marker_create_sals_from_location): Same.
3112 (strace_marker_decode_location): Same.
3113 (create_sals_from_location_default): Same.
3114 (decode_location_default): Same.
3115 * breakpoint.h (struct breakpoint_ops): Same.
3116 (create_breakpoint): Same.
3117 * linespec.h (decode_line_full): Same.
3118 * linespec.c (decode_line_full): Same. Throw error if
3119 result.size () == 0.
3120
df631783
PA
31212020-08-27 Pedro Alves <pedro@palves.net>
3122
3123 PR gdb/26524
3124 * breakpoint.c (until_break_fsm) <location_breakpoint,
3125 caller_breakpoint>: Delete fields.
3126 <breakpoints>: New field.
3127 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3128 two individual breakpoints.
3129 (until_break_fsm::should_stop): Loop over breakpoints in the
3130 breakpoint vector.
3131 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3132 vector.
3133 (until_break_command): Handle location expanding into multiple
3134 sals.
3135
b2b38aa4
PA
31362020-08-27 Pedro Alves <pedro@palves.net>
3137
3138 PR gdb/26523
3139 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3140 bp_until breakpoints user-specified locations. Update intro
3141 comment.
3142
b886559f
SM
31432020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3144
3145 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3146 gdb_bfd_sections): New.
3147 * maint.c (print_bfd_section_info): Change param type to
3148 maint_print_section_data.
3149 (print_objfile_section_info): Likewise.
3150 (print_bfd_section_info_maybe_relocated): Likewise.
3151 (maintenance_info_sections): Use gdb_bfd_sections.
3152
4c6e63bf
SV
31532020-08-25 Shahab Vahedi <shahab@synopsys.com>
3154
3155 * MAINTAINERS: Add ARC target and maintainer.
3156
8d7f0635
AK
31572020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3158
3159 * configure.tgt: ARC support for GNU/Linux.
3160 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3161 * arc-linux-tdep.c: New file.
3162 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3163 * arc-tdep.c (arc_write_pc): Use it.
3164
fdd8731b
SV
31652020-08-25 Shahab Vahedi <shahab@synopsys.com>
3166
3167 * arc-tdep.c (arc_check_for_hardware_loop): New.
3168 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3169
22459524
SV
31702020-08-25 Shahab Vahedi <shahab@synopsys.com>
3171
3172 * arc-tdep.h: Include "gdbarch.h".
3173
995d3a19
SV
31742020-08-25 Shahab Vahedi <shahab@synopsys.com>
3175
3176 * arch/arc.h
3177 (arc_gdbarch_features): New class to stir the selection of target XML.
3178 (arc_create_target_description): Use FEATURES to choose XML target.
3179 (arc_lookup_target_description): Use arc_create_target_description
3180 to create _new_ target descriptions or return the already created
3181 ones if the FEATURES is the same.
3182 * arch/arc.c: Implementation of prototypes described above.
3183 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3184 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3185 * arc-tdep.c (*_feature_name): Make feature names consistent.
3186 (arc_register_feature): A new struct to hold information about
3187 registers of a particular target/feature.
3188 (arc_check_tdesc_feature): Check if XML provides registers in
3189 compliance with ARC_REGISTER_FEATURE structs.
3190 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3191 (determine_*_reg_feature_set): Which feature name to look for.
3192 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3193 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3194 to expected ISA enums to be used in arc_gdbarch_features structs.
3195 * features/Makefile (FEATURE_XMLFILES): Add new files.
3196 * gdb/features/arc/v1-aux.c: New file.
3197 * gdb/features/arc/v1-aux.xml: Likewise.
3198 * gdb/features/arc/v1-core.c: Likewise.
3199 * gdb/features/arc/v1-core.xml: Likewise.
3200 * gdb/features/arc/v2-aux.c: Likewise.
3201 * gdb/features/arc/v2-aux.xml: Likewise.
3202 * gdb/features/arc/v2-core.c: Likewise.
3203 * gdb/features/arc/v2-core.xml: Likewise.
3204 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3205
3945d2d7
GM
32062020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3207 Andrew Burgess <andrew.burgess@embecosm.com>
3208
3209 PR m2/26372
fc5d6901 3210 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3211 an assert. Remove single element array indexing pattern as the
3212 MULTI_SUBSCRIPT support will handle this case too.
3213
2677f2d3
SM
32142020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3215
3216 * value.h (valprint_check_validity): Move declaration from
3217 here...
3218 * valprint.h (valprint_check_validity): ... to here.
3219
c426fddb
SM
32202020-08-24 Simon Marchi <simon.marchi@efficios.com>
3221
3222 * debug.h: New file.
3223 * debug.c (debug_prefixed_vprintf): New function.
3224 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3225 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3226
1eb8556f
SM
32272020-08-24 Simon Marchi <simon.marchi@efficios.com>
3228
3229 * infrun.h (infrun_debug_printf_1): New function declaration.
3230 (infrun_debug_printf): New macro.
3231 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3232 throughout.
3233 (infrun_debug_printf): New function.
3234 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3235 (handle_jit_event): Likewise.
3236
b8fff44e
MW
32372020-08-21 Mark Wielaard <mark@klomp.org>
3238
3239 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3240
d19c3068
SM
32412020-08-22 Simon Marchi <simon.marchi@efficios.com>
3242
3243 * frame.c (enum class frame_id_status): New.
3244 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3245 (fprintf_frame): Update.
3246 (compute_frame_id): Set frame id status to "computing" on entry.
3247 Set it back to "not_computed" on failure and to "computed" on
3248 success.
3249 (get_frame_id): Assert the frame id is not being computed.
3250 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3251 (create_new_frame): Likewise.
3252 (frame_cleanup_after_sniffer): Update assert.
3253
b70e516e
SM
32542020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3255
3256 * regcache.c (pid_ptid_regcache_map): New type.
3257 (target_ptid_regcache_map): Remove.
3258 (target_pid_ptid_regcache_map): New type.
3259 (regcaches): Change type to target_pid_ptid_regcache_map.
3260 (get_thread_arch_aspace_regcache): Update.
3261 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3262 case.
3263 (regcaches_size): Update.
3264 (regcache_count): Update.
3265 (registers_changed_ptid_target_pid_test): New.
3266 (_initialize_regcache): Register new test.
3267
cdd9148a
SM
32682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3269
3270 * regcache.c (regcache_count): New.
3271 (struct regcache_test_data): New.
3272 (regcache_test_data_up): New.
3273 (populate_regcaches_for_test): New.
3274 (regcaches_test): Remove.
3275 (get_thread_arch_aspace_regcache_test): New.
3276 (registers_changed_ptid_all_test): New.
3277 (registers_changed_ptid_target_test): New.
3278 (registers_changed_ptid_target_ptid_test): New.
3279 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3280 (_initialize_regcache): Register new tests.
3281
dd125343
SM
32822020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3285 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3286 gdbarch and aspace parameter. Use current inferior's aspace.
3287 Validate regcache's arch value.
3288 (regcaches_test): Update.
3289
3ee93972
SM
32902020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3291
3292 * regcache.c (regcaches_test): Call registers_changed.
3293
33bf4c5c
TBA
32942020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3295
3296 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3297
c2fd7fae
AKS
32982020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3299
3300 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3301 to find the end of prologue for flang compiled binaries.
3302 * arm-tdep.c (arm_skip_prologue): Likewise.
3303 * i386-tdep.c (i386_skip_prologue): Likewise.
3304 * producer.c (producer_is_llvm): New function.
3305 (producer_parsing_tests): Added new tests for clang/flang.
3306 * producer.h (producer_is_llvm): New declaration.
3307
9327494e
SM
33082020-08-18 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * linux-nat.c (linux_nat_debug_printf): New function.
3311 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3312
d138725a
AM
33132020-08-18 Aaron Merey <amerey@redhat.com>
3314
3315 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3316 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3317 (CLIBS): Add DEBUGINFOD_LIBS.
3318
f9b11e6b
ST
33192020-08-17 Sergei Trofimovich <siarheit@google.com>
3320
3321 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3322 'gdbarch_num_regs'.
3323
3ae7ab99
TT
33242020-08-17 Tom Tromey <tromey@adacore.com>
3325
3326 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3327 ada_get_decoded_value returns NULL.
3328
b017825f
TT
33292020-08-17 Tom Tromey <tromey@adacore.com>
3330
3331 * python/py-inferior.c (infpy_search_memory): Use
3332 gdb_py_object_from_ulongest.
3333 * python/py-infevents.c (create_inferior_call_event_object)
3334 (create_memory_changed_event_object): Use
3335 gdb_py_object_from_ulongest.
3336 * python/py-linetable.c (ltpy_entry_get_pc): Use
3337 gdb_py_object_from_ulongest.
3338
7635cf79
SM
33392020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3340
3341 * loc.c (class symbol_needs_eval_context): Fix indentation.
3342
f54be24b
SM
33432020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3344
3345 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3346 bool.
3347
53d5a2a5
TV
33482020-08-17 Tom de Vries <tdevries@suse.de>
3349
3350 PR gdb/26393
3351 * gdbtypes.c (dump_dynamic_prop): New function.
3352 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3353
547ce8f0
TV
33542020-08-15 Tom de Vries <tdevries@suse.de>
3355
3356 PR backtrace/26390
3357 * stack.c (print_frame_args): Temporarily set the selected
3358 frame to FRAME while printing the frame's arguments.
3359
6ea815e7
PFC
33602020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3361
3362 PR breakpoints/26385
3363 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3364 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3365
6e562fa3
PFC
33662020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3367
3368 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3369 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3370 and >= to check return value instead of == -1 and != -1.
3371
d369b608
SM
33722020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3373
3374 * utils.h (class gdb_argv) <as_array_view>: New method.
3375 * utils.c (gdb_argv_as_array_view_test): New.
3376 (_initialize_utils): Register selftest.
3377 * maint.c (maintenance_selftest): Use the new method.
3378
b31488a3
KR
33792020-08-13 Kamil Rytarowski <n54@gmx.com>
3380
3381 * target.h (supports_dumpcore, dumpcore): New
3382 function declarations.
3383 * target.c (supports_dumpcore, dumpcore): New
3384 functions.
3385 * target-delegates.c: Rebuild.
3386 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3387 and target_dumpcore ().
3388
002a3166
AM
33892020-08-13 Aaron Merey <amerey@redhat.com>
3390
3391 * debuginfod-support.c: Replace global variables with user_data.
3392
ece5bc8a
SM
33932020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3394
3395 * maint.c (maintenance_selftest): Split args and pass array_view
3396 to run_tests.
3397
6d8a0a5e
LM
33982020-08-12 Luis Machado <luis.machado@linaro.org>
3399
3400 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3401 type's length.
3402 Use %s and pulongest to print the length.
3403
7cf663a9
PA
34042020-08-12 Pedro Alves <palves@redhat.com>
3405
3406 * NEWS: Move "Multi-target debugging support" item to the
3407 "Changes since GDB 9" section.
3408
27c7b875
PA
34092020-08-12 Pedro Alves <palves@redhat.com>
3410
3411 PR gdb/26336
3412 * progspace.c (program_space::remove_objfile): Invalidate the
3413 frame cache.
3414
1796a2a1
TV
34152020-08-11 Tom de Vries <tdevries@suse.de>
3416
3417 * MAINTAINERS: Mark ms1 as deleted.
3418
f8e3fe0d
LM
34192020-08-10 Luis Machado <luis.machado@linaro.org>
3420
3421 PR gdb/26310
3422
3423 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3424 act accordingly.
3425 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3426 movz/str/stur/stp skipping behavior.
3427
cc308722
LM
34282020-08-10 Luis Machado <luis.machado@linaro.org>
3429
3430 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3431 struct user_sve_header instead of struct sve_context.
3432
041d9819
SM
34332020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3434
3435 * read.h (dwarf2_fetch_die_loc_sect_off,
3436 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3437 `void *` parameter with function_view.
3438 * read.c (dwarf2_fetch_die_loc_sect_off,
3439 dwarf2_fetch_die_loc_cu_off): Likewise.
3440 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3441 (per_cu_dwarf_call): Adjust.
3442 (get_frame_address_in_block_wrapper): Remove.
3443 (indirect_synthetic_pointer): Adjust.
3444 (get_ax_pc): Remove.
3445 (dwarf2_compile_expr_to_ax): Adjust.
3446
38f8aa06
TV
34472020-08-08 Tom de Vries <tdevries@suse.de>
3448
3449 PR build/26344
3450 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3451 constructor.
3452 * regcache.c (get_thread_arch_aspace_regcache): Same.
3453
a52b3ae2
TT
34542020-08-07 Tom Tromey <tromey@adacore.com>
3455
3456 * ravenscar-thread.c
3457 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3458 New method.
3459 (ravenscar_thread_target::wait): Check
3460 runtime_initialized.
3461 (ravenscar_thread_target::prepare_to_store)
3462 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3463 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3464 (ravenscar_thread_target::stopped_by_watchpoint)
3465 (ravenscar_thread_target::stopped_data_address)
3466 (ravenscar_thread_target::core_of_thread): Use
3467 scoped_restore_current_thread and
3468 set_base_thread_from_ravenscar_task.
3469
0e29517d
TT
34702020-08-07 Tom Tromey <tromey@adacore.com>
3471
3472 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3473
592f9bd7
TT
34742020-08-07 Tom Tromey <tromey@adacore.com>
3475
3476 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3477 update_inferior_ptid before update_thread_list.
3478 (temporarily_change_regcache_ptid): New class.
3479 (ravenscar_thread_target::fetch_registers)
3480 (ravenscar_thread_target::store_registers)
3481 (ravenscar_thread_target::prepare_to_store): Use base thread when
3482 forwarding operation.
3483
39e2018a
TT
34842020-08-07 Tom Tromey <tromey@adacore.com>
3485
3486 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3487 "is_pid" case.
3488
2080266b
TT
34892020-08-07 Tom Tromey <tromey@adacore.com>
3490
3491 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3492 New methods.
3493 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3494 first.
3495 (ravenscar_thread_target::add_thread): Rename from
3496 ravenscar_add_thread.
3497 (ravenscar_thread_target::update_thread_list): Use a lambda.
3498 (ravenscar_thread_target::xfer_partial): New method.
3499
78c02f21
TT
35002020-08-07 Tom Tromey <tromey@adacore.com>
3501
3502 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3503 gdb::function_view.
3504 (iterate_over_live_ada_tasks): Change type of argument.
3505 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3506 of argument.
3507
d5d833af
TT
35082020-08-07 Tom Tromey <tromey@adacore.com>
3509
3510 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3511 Remove.
3512 (ravenscar_thread_target::extra_thread_info): Remove.
3513 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3514 defer to target beneath for non-Ravenscar threads.
3515
a8ac85bb
TT
35162020-08-07 Tom Tromey <tromey@adacore.com>
3517
3518 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3519 get_base_thread_from_ravenscar_task>: Now methods.
3520 <m_cpu_map>: New member.
3521 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3522 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3523 (ravenscar_thread_target::task_is_currently_active): Update.
3524 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3525 Now a method.
3526 (ravenscar_thread_target::add_active_thread): Put initial thread
3527 into the m_cpu_map.
3528
550ab58d
TT
35292020-08-07 Tom Tromey <tromey@adacore.com>
3530
3531 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3532 event_ptid.
3533
e9546579
TT
35342020-08-07 Tom Tromey <tromey@adacore.com>
3535
3536 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3537 runtime_initialized.
3538
3d4470e5
TT
35392020-08-07 Tom Tromey <tromey@adacore.com>
3540
3541 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3542 add_active_thread.
3543 (ravenscar_thread_target::add_active_thread): Now public.
3544 (ravenscar_inferior_created): Call add_active_thread after pushing
3545 the target.
3546
888bdb2b
SM
35472020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3548
3549 * regcache.c (ptid_regcache_map): New type.
3550 (target_ptid_regcache_map): New type.
3551 (regcaches): Change type to target_ptid_regcache_map.
3552 (get_thread_arch_aspace_regcache): Update to regcaches' new
3553 type.
3554 (regcache_thread_ptid_changed): Likewise.
3555 (registers_changed_ptid): Likewise.
3556 (regcaches_size): Likewise.
3557 (regcaches_test): Update.
3558 (regcache_thread_ptid_changed): Update.
3559 * regcache.h (regcache_up): New type.
3560 * gdbsupport/ptid.h (hash_ptid): New struct.
3561
b161a60d
SM
35622020-08-07 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * observable.h (thread_ptid_changed): Add parameter
3565 `process_stratum_target *`.
3566 * infrun.c (infrun_thread_ptid_changed): Add parameter
3567 `process_stratum_target *` and use it.
3568 (selftests): New namespace.
3569 (infrun_thread_ptid_changed): New function.
3570 (_initialize_infrun): Register selftest.
3571 * regcache.c (regcache_thread_ptid_changed): Add parameter
3572 `process_stratum_target *` and use it.
3573 (regcache_thread_ptid_changed): New function.
3574 (_initialize_regcache): Register selftest.
3575 * thread.c (thread_change_ptid): Pass target to
3576 thread_ptid_changed observable.
3577
d2854d8d
CT
35782020-08-06 Caroline Tice <cmtice@google.com>
3579
fe4c3d43
SM
3580 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3581 (struct dwp_sections): Update field comments. Add loclists and
3582 rnglists fields.
3583 (struct virtual_v2_dwo_sections): Rename struct to
3584 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3585 size & offset fields for loclists and rnglists.
3586 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3587 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3588 skipping dummy type units.
3589 (create_dwp_hash_table): Update the large comment above the function to
3590 discuss Version 5 DWP files as well, with references. Update all the
3591 version checks in the function to check for version 5 as well. Add new
3592 section at the end to create dwp hash table for version 5.
3593 (create_dwp_v2_section): Rename function to
3594 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3595 Add V5 to error message text.
3596 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3597 into calls to create_dwp_v2_or_v5_section.
3598 (create_dwo_unit_in_dwp_v5): New function.
3599 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3600 check for version2; add else clause to handle version 5.
3601 (open_and_init_dwo_file): Add code to check dwarf version & only call
3602 create_debug_types_hash_table (with sections.types) if version is not 5;
3603 else call create_debug_type_hash_table, with sections.info.
3604 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3605 version 5.
3606 (dwarf2_locate_v5_dwp_sections): New function.
3607 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3608 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3609
159ed7d9
SM
36102020-08-06 Simon Marchi <simon.marchi@efficios.com>
3611
3612 * regcache.h (class regcache): Remove friend
3613 registers_changed_ptid.
3614 <regcache_thread_ptid_changed>: Remove.
3615 <regcaches>: Remove.
3616 * regcache.c (regcache::regcaches): Rename to...
3617 (regcaches): ... this. Make static.
3618 (get_thread_arch_aspace_regcache): Update.
3619 (regcache::regcache_thread_ptid_changed): Rename to...
3620 (regcache_thread_ptid_changed): ... this. Update.
3621 (class regcache_access): Remove.
3622 (regcaches_test): Update.
3623 (_initialize_regcache): Update.
3624 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3625 <forward_list>.
3626
174981ae
SM
36272020-08-06 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * regcache.h (class regcache) <current_regcache>: Rename to...
3630 <regcaches>: ... this. Move doc here.
3631 * regcache.c (regcache::current_regcache) Rename to...
3632 (regcache::regcaches): ... this. Move doc to header.
3633 (get_thread_arch_aspace_regcache): Update.
3634 (regcache::regcache_thread_ptid_changed): Update.
3635 (registers_changed_ptid): Update.
3636 (class regcache_access) <current_regcache_size>: Rename to...
3637 <regcaches_size>: ... this.
3638 (current_regcache_test): Rename to...
3639 (regcaches_test): ... this.
3640 (_initialize_regcache): Update.
3641
ed908db6
VC
36422020-08-06 Victor Collod <vcollod@nvidia.com>
3643
3644 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3645
b5582ab7
KB
36462020-08-05 Kevin Buettner <kevinb@redhat.com>
3647
3648 * corelow.c (core_target::build_file_mappings): Don't output
3649 null pathname in warning.
3650
ea946b86
SM
36512020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3652
3653 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3654 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3655 gdb.dwarf2/dw2-single-line-discriminators.exp,
3656 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3657
57d02173
TT
36582020-08-05 Tom Tromey <tromey@adacore.com>
3659
3660 PR rust/26197:
3661 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3662 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3663 Fix off-by-one and type size errors in ordinary case.
3664
5555c86d
TV
36652020-08-05 Tom de Vries <tdevries@suse.de>
3666
3667 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3668 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3669
97916bfe
SM
36702020-08-04 Simon Marchi <simon.marchi@efficios.com>
3671
3672 * frame.h (frame_id_p): Return bool.
3673 (frame_id_artificial_p): Return bool.
3674 (frame_id_eq): Return bool.
3675 (has_stack_frames): Return bool.
3676 (get_selected_frame): Fix typo in comment.
3677 (get_frame_pc_if_available): Return bool.
3678 (get_frame_address_in_block_if_available): Return bool.
3679 (get_frame_func_if_available): Return bool.
3680 (read_frame_register_unsigned): Return bool.
3681 (get_frame_register_bytes): Return bool.
3682 (safe_frame_unwind_memory): Return bool.
3683 (deprecated_frame_register_read): Return bool.
3684 (frame_unwinder_is): Return bool.
3685 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3686 bool.
3687 <this_id::p>: Likewise.
3688 <prev_p>: Likewise.
3689 (frame_stash_add): Return bool.
3690 (get_frame_id): Use bool.
3691 (frame_id_build_special) Use bool.
3692 (frame_id_build_unavailable_stack): Use bool.
3693 (frame_id_build): Use bool.
3694 (frame_id_p): Return bool, use true/false instead of 1/0.
3695 (frame_id_artificial_p): Likewise.
3696 (frame_id_eq): Likewise.
3697 (frame_id_inner): Likewise.
3698 (get_frame_func_if_available): Likewise.
3699 (read_frame_register_unsigned): Likewise.
3700 (deprecated_frame_register_read): Likewise.
3701 (get_frame_register_bytes): Likewise.
3702 (has_stack_frames): Likewise.
3703 (inside_main_func): Likewise.
3704 (inside_entry_func): Likewise.
3705 (get_frame_pc_if_available): Likewise.
3706 (get_frame_address_in_block_if_available): Likewise.
3707 (frame_unwinder_is): Likewise.
3708 (safe_frame_unwind_memory): Likewise.
3709 (frame_unwind_arch): Likewise.
3710
fedfee88
SM
37112020-08-04 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3714 type to cached_copy_status.
3715 (fprintf_frame): Adjust.
3716 (get_frame_func_if_available): Adjust.
3717 (frame_cleanup_after_sniffer): Adjust.
3718
6cfa9b59
MW
37192020-08-04 Mark Wielaard <mark@klomp.org>
3720
3721 * MAINTAINERS (Write After Approval): Update email address.
3722
66d6346b
SM
37232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3724
3725 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3726 dynamic_prop::const_val.
3727
8a6d5e35
SM
37282020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3729
3730 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3731 dynamic_prop::kind.
3732
51d6067d
SM
37332020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3734
3735 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3736
b26e2ae7
JM
37372020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3738
3739 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3740
39791af2
JM
37412020-08-04 Weimin Pan <weimin.pan@oracle.com>
3742 Jose E. Marchesi <jose.marchesi@oracle.com>
3743
3744 * configure.tgt: Add entry for bpf-*-*.
3745 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3746 (ALLDEPFILES): Add bpf-tdep.c.
3747 * bpf-tdep.c: New file.
3748 * MAINTAINERS: Add bpf target and maintainer.
3749 * NEWS: Mention the support for the new target.
3750
521894aa
TV
37512020-08-04 Tom de Vries <tdevries@suse.de>
3752
3753 PR symtab/23270
3754 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3755 Error.
3756
5d6356e9
JB
37572020-08-03 John Baldwin <jhb@FreeBSD.org>
3758
3759 * syscalls/freebsd.xml: Regenerate.
3760
0cf82b81
JB
37612020-08-03 John Baldwin <jhb@FreeBSD.org>
3762
3763 * syscalls/update-freebsd.sh: Fix usage and year range.
3764
8f34b746
TV
37652020-08-03 Tom de Vries <tdevries@suse.de>
3766
3767 PR symtab/26333
3768 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3769 DW_LNE_lo_user/DW_LNE_hi_user range.
3770
5e500d33
SM
37712020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3772
3773 PR ada/26318
3774 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3775 kind.
3776
78319c15
TBA
37772020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3778
3779 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3780
4c55e970
TBA
37812020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3782
3783 * breakpoint.c (set_breakpoint_condition): Update the condition
3784 expressions after checking that the input condition string parses
3785 successfully and does not contain junk at the end.
3786
1e620590
TBA
37872020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3788
3789 * breakpoint.c (set_breakpoint_condition): Update the
3790 condition string after parsing the new condition successfully.
3791
c8693053
RO
37922020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3793
3794 * proc-api.c (_STRUCTURED_PROC): Don't define.
3795 * proc-events.c: Likewise.
3796 * proc-flags.c: Likewise.
3797 * proc-why.c: Likewise.
3798 * procfs.c: Likewise.
3799
3800 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3801 * configure, config.in: Regenerate.
3802
5a99adb8
TV
38032020-07-30 Tom de Vries <tdevries@suse.de>
3804
3805 PR build/26320
3806 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3807 m_red/m_green/m_blue in a union.
3808
8ba83e91
TV
38092020-07-29 Tom de Vries <tdevries@suse.de>
3810
3811 PR tdep/26280
3812 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3813
f75a0693
AB
38142020-07-28 Tom Tromey <tromey@adacore.com>
3815
3816 PR symtab/26270:
3817 * symtab.h (find_pc_partial_function_sym): Declare.
3818 * cli/cli-cmds.c (disassemble_command): Use
3819 find_pc_partial_function_sym. Check asm_demangle.
3820 * blockframe.c (cache_pc_function_sym): New global.
3821 (cache_pc_function_name): Remove.
3822 (clear_pc_function_cache): Update.
3823 (find_pc_partial_function_sym): New function, from
3824 find_pc_partial_function.
3825 (find_pc_partial_function): Rewrite using
3826 find_pc_partial_function_sym.
3827
16f3242c
TT
38282020-07-28 Tom Tromey <tromey@adacore.com>
3829
3830 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3831 help. Add usage.
3832
4888741a
TT
38332020-07-28 Tom Tromey <tromey@adacore.com>
3834
3835 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3836 <DW_OP_GNU_variable_value>: Cast to address type.
3837
4d46f402
KR
38382020-07-28 Kamil Rytarowski <n54@gmx.com>
3839
3840 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3841 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3842 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3843 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3844 (nbsd_get_siginfo_type): New.
3845 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3846 (_initialize_nbsd_tdep): New.
3847
d70f978b
L
38482020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3849
3850 PR binutils/26301
3851 * configure: Regenerated.
3852
377170fa
L
38532020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3854
3855 PR binutils/26301
3856 * configure: Regenerated.
3857
43d5901d
AB
38582020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3859
3860 * python/py-frame.c: Remove 'user-regs.h' include.
3861 (frapy_read_register): Rewrite to make use of
3862 gdbpy_parse_register_id.
3863 * python/py-registers.c (gdbpy_parse_register_id): New function,
3864 moved here from python/py-unwind.c. Updated the return type, and
3865 also accepts register descriptor objects.
3866 * python/py-unwind.c: Remove 'user-regs.h' include.
3867 (pyuw_parse_register_id): Moved to python/py-registers.c.
3868 (unwind_infopy_add_saved_register): Update to use
3869 gdbpy_parse_register_id.
3870 (pending_framepy_read_register): Likewise.
3871 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3872
14fa8fb3
AB
38732020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3874
3875 * python/py-registers.c: Add 'user-regs.h' include.
3876 (register_descriptor_iter_find): New function.
3877 (register_descriptor_iterator_object_methods): New static global
3878 methods array.
3879 (register_descriptor_iterator_object_type): Add pointer to methods
3880 array.
3881
ddce1758
JB
38822020-07-27 John Baldwin <jhb@FreeBSD.org>
3883
3884 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3885 for all architectures on FreeBSD 11.3 and later.
3886
a4089f52
TT
38872020-07-27 Tom Tromey <tromey@adacore.com>
3888
3889 * gcore.h (load_corefile): Don't declare.
3890
95420d30
TV
38912020-07-27 Tom de Vries <tdevries@suse.de>
3892
3893 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3894 * config.in: Regenerate.
3895 * configure: Regenerate.
3896
05a6b8c2
EZ
38972020-07-26 Eli Zaretskii <eliz@gnu.org>
3898
3899 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3900 ws2tcpip.h. When checking whether socklen_t type is defined, use
3901 ws2tcpip.h if it is available and sys/socket.h isn't.
3902 * configure: Regenerate.
3903 * config.in: Regenerate.
3904
e79eb02f
AB
39052020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3906
3907 PR fortran/23051
3908 PR fortran/26139
3909 * valops.c (value_ind): Pass address to
3910 readjust_indirect_value_type.
3911 * value.c (readjust_indirect_value_type): Make parameter
3912 non-const, and add extra address parameter. Resolve original type
3913 before using it.
3914 * value.h (readjust_indirect_value_type): Update function
3915 signature and comment.
3916
876518dd
TV
39172020-07-25 Tom de Vries <tdevries@suse.de>
3918
3919 PR symtab/26243
3920 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3921 entries.
3922
f6720b1c
AM
39232020-07-24 Aaron Merey <amerey@redhat.com>
3924
3925 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3926 * configure: Rebuild.
3927
513487e1
KB
39282020-07-23 Kevin Buettner <kevinb@redhat.com>
3929
3930 PR corefiles/26294
3931 * corelow.c (_initialize_corelow): Add period to help text
3932 for "maintenance print core-file-backed-mappings".
3933
e7bc9db8
PA
39342020-07-23 Pedro Alves <pedro@palves.net>
3935
3936 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3937 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3938 meanwhile.
3939 * frame.c (frame_cache_generation, get_frame_cache_generation):
3940 New.
3941 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3942 (get_prev_frame_if_no_cycle): On exception, don't touch
3943 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3944 * frame.h (get_frame_cache_generation): Declare.
3945
90fcc466
TV
39462020-07-23 Tom de Vries <tdevries@suse.de>
3947
3948 PR tui/26282
3949 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3950 New default constructor.
3951
78344df7
AB
39522020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3953
3954 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3955 exclude non-statement entries.
3956
b089853a
KB
39572020-07-22 Kevin Buettner <kevinb@redhat.com>
3958
3959 * NEWS (New commands): Mention new command
3960 "maintenance print core-file-backed-mappings".
3961
09c2f5d4
KB
39622020-07-22 Kevin Buettner <kevinb@redhat.com>
3963
3964 * corelow.c (gdbcmd.h): Include.
3965 (core_target::info_proc_mappings): New method.
3966 (get_current_core_target): New function.
3967 (maintenance_print_core_file_backed_mappings): New function.
3968 (_initialize_corelow): Add core-file-backed-mappings to
3969 "maint print" commands.
3970
9c5ec5c2 39712020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3972
9c5ec5c2
KB
3973 * linux-tdep.c (dump_note_entry_p): New function.
3974 (linux_dump_mapping_p_ftype): New typedef.
3975 (linux_find_memory_regions_full): Add new parameter,
3976 should_dump_mapping_p.
3977 (linux_find_memory_regions): Adjust call to
3978 linux_find_memory_regions_full.
3979 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3980 call to linux_find_memory_regions_full.
3981
db082f59
KB
39822020-07-22 Kevin Buettner <kevinb@redhat.com>
3983
3984 * corelow.c (solist.h, unordered_map): Include.
3985 (class core_target): Add field m_core_file_mappings and
3986 method build_file_mappings.
3987 (core_target::core_target): Call build_file_mappings.
3988 (core_target::~core_target): Free memory associated with
3989 m_core_file_mappings.
3990 (core_target::build_file_mappings): New method.
3991 (core_target::xfer_partial): Use m_core_file_mappings
3992 for memory transfers.
3993 * linux-tdep.c (linux_read_core_file_mappings): New
3994 function.
3995 (linux_core_info_proc_mappings): Rewrite to use
3996 linux_read_core_file_mappings.
3997 (linux_init_abi): Register linux_read_core_file_mappings.
3998
7e183d27
KB
39992020-07-22 Kevin Buettner <kevinb@redhat.com>
4000
4001 * arch-utils.c (default_read_core_file_mappings): New function.
4002 * arch-utils.c (default_read_core_file_mappings): Declare.
4003 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4004 * gdbarch.h, gdbarch.c: Regenerate.
4005
2735d421
KB
40062020-07-22 Kevin Buettner <kevinb@redhat.com>
4007
4008 PR corefiles/25631
4009 * corelow.c (core_target:xfer_partial): Revise
4010 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4011 case after first checking the stratum beneath the core
4012 target.
4013 (has_all_memory): Return true.
4014 * target.c (raw_memory_xfer_partial): Revise comment
4015 regarding use of has_all_memory.
4016
e56cb451
KB
40172020-07-22 Kevin Buettner <kevinb@redhat.com>
4018
4019 * exec.h (section_table_xfer_memory): Revise declaration,
4020 replacing section name parameter with an optional callback
4021 predicate.
4022 * exec.c (section_table_xfer_memory): Likewise.
4023 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4024 of section_table_xfer_memory.
4025
32fa152e
TT
40262020-07-22 Tom Tromey <tromey@adacore.com>
4027
4028 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4029 lookup_symbol_search_name.
4030
a67a1c41
AB
40312020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4032
4033 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4034 redundant local variable.
4035 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4036 reference, not pointer, update code accordingly.
4037
a7b4ff4f
SM
40382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4039 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4040
4041 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4042 * jit.c (jit_breakpoint_re_set_internal): Use the
4043 `skip_jit_symbol_lookup` field.
4044
2340e834
SM
40452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4046 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4047
4048 * jit.c (jit_read_descriptor): Define the descriptor address once,
4049 use twice.
4050 (jit_breakpoint_deleted): Move the declaration of the loop variable
4051 `iter` into the loop header.
4052 (jit_breakpoint_re_set_internal): Move the declaration of the local
4053 variable `objf_data` to the first point of definition.
4054 (jit_event_handler): Move the declaration of local variables
4055 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4056 Rename `objf` to `jited`.
4057
c1072906
SM
40582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4059
4060 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4061 Remove.
4062 * jit.c (get_jiter_objfile_data): Update.
4063
c8474dc3
TBA
40642020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4065 Simon Marchi <simon.marchi@polymtl.ca>
4066
4067 * jit.c (struct jit_program_space_data): Remove.
4068 (jit_program_space_key): Remove.
4069 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4070 stuff.
4071 (get_jit_program_space_data): Remove.
4072 (jit_breakpoint_deleted): Iterate on all of the program space's
4073 objfiles.
4074 (jit_inferior_init): Likewise.
4075 (jit_breakpoint_re_set_internal): Likewise. Also change return
4076 type to void.
4077 (jit_breakpoint_re_set): Pass current_program_space to
4078 jit_breakpoint_re_set_internal.
4079
77208eb7
SM
40802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4081
4082 * jit.h (struct jiter_objfile_data) <cached_code_address,
4083 jit_breakpoint>: Move to here from ...
4084 * jit.c (jit_program_space_data): ... here.
4085 (jiter_objfile_data::~jiter_objfile_data): Update.
4086 (jit_breakpoint_deleted): Update.
4087 (jit_breakpoint_re_set_internal): Update.
4088
8c1c720f
SM
40892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4090
4091 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4092 checks.
4093 (jit_read_descriptor): Remove NULL check.
4094 (jit_event_handler): Add an assertion.
4095
0e74a041
SM
40962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4097
4098 * jit.h (struct jit_objfile_data): Split into...
4099 (struct jiter_objfile_data): ... this ...
4100 (struct jited_objfile_data): ... and this.
4101 * objfiles.h (struct objfile) <jit_data>: Remove.
4102 <jiter_data, jited_data>: New fields.
4103 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4104 (jiter_objfile_data::~jiter_objfile_data): ... this.
4105 (get_jit_objfile_data): Rename to ...
4106 (get_jiter_objfile_data): ... this.
4107 (add_objfile_entry): Update.
4108 (jit_read_descriptor): Use get_jiter_objfile_data.
4109 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4110 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4111 (jit_inferior_exit_hook): Use objfile's jited_data field.
4112
238b5c9f
SM
41132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4114
4115 * jit.h: Forward-declare `struct minimal_symbol`.
4116 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4117 constructor, destructor, and an objfile* field.
4118 * jit.c (jit_objfile_data): Remove.
4119 (struct jit_objfile_data): Migrate from here to jit.h.
4120 (jit_objfile_data::~jit_objfile_data): New destructor
4121 implementation with code moved from free_objfile_data.
4122 (free_objfile_data): Delete.
4123 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4124 (jit_find_objf_with_entry_addr): Ditto.
4125 (jit_inferior_exit_hook): Ditto.
4126 (_initialize_jit): Remove the call to
4127 register_objfile_data_with_cleanup.
4128 * objfiles.h (struct objfile) <jit_data>: New field.
4129
fe053b9e
TBA
41302020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4131
4132 * jit.h: Forward-declare `struct objfile`.
4133 (jit_event_handler): Add a second parameter, the JITer objfile.
4134 * jit.c (jit_read_descriptor): Change the signature to take the
4135 JITer objfile as an argument instead of the jit_program_space_data.
4136 (jit_inferior_init): Update the call to jit_read_descriptor.
4137 (jit_event_handler): Use the new JITer objfile argument when calling
4138 jit_read_descriptor.
4139 * breakpoint.c (handle_jit_event): Update the call to
4140 jit_event_handler to pass the JITer objfile.
4141
4cec0c66
JB
41422020-07-21 John Baldwin <jhb@FreeBSD.org>
4143
4144 * gdbarch.c: Regenerate.
4145 * gdbarch.h: Regenerate.
4146 * gdbarch.sh (handle_segmentation_fault): Remove method.
4147 * infrun.c (handle_segmentation_fault): Remove.
4148 (print_signal_received_reason): Remove call to
4149 handle_segmentation_fault.
4150
0e42f66a
JB
41512020-07-21 John Baldwin <jhb@FreeBSD.org>
4152
4153 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4154 Rename to sparc64_linux_report_signal_info and add siggnal
4155 argument.
4156 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4157 instead of sparc64_linux_handle_segmentation_fault.
4158
77bdfeb2
JB
41592020-07-21 John Baldwin <jhb@FreeBSD.org>
4160
4161 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4162 i386_linux_report_signal_info instead of
4163 i386_linux_handle_segmentation_fault.
4164 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4165 to i386_linux_report_signal_info and add siggnal argument.
4166 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4167 of i386_linux_handle_segmentation_fault.
4168 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4169 to i386_linux_report_signal_info and add siggnal argument.
4170
ad97bfc5
JB
41712020-07-21 John Baldwin <jhb@FreeBSD.org>
4172
4173 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4174 hook if present.
4175
272bb05c
JB
41762020-07-21 John Baldwin <jhb@FreeBSD.org>
4177
4178 * gdbarch.c: Regenerate.
4179 * gdbarch.h: Regenerate.
4180 * gdbarch.sh (report_signal_info): New method.
4181 * infrun.c (print_signal_received_reason): Invoke gdbarch
4182 report_signal_info hook if present.
4183
baf8791e
AB
41842020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4185
4186 * python/py-registers.c : Add 'unordered_map' include.
4187 (gdbpy_new_reggroup): Renamed to...
4188 (gdbpy_get_reggroup): ...this. Update to only create register
4189 group descriptors when needed.
4190 (gdbpy_reggroup_iter_next): Update.
4191
f7306dac
AB
41922020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4193
4194 * python/py-registers.c (gdbpy_register_object_data): New static
4195 global.
4196 (gdbpy_register_object_data_init): New function.
4197 (gdbpy_new_register_descriptor): Renamed to...
4198 (gdbpy_get_register_descriptor): ...this, and update to reuse
4199 existing register descriptors where possible.
4200 (gdbpy_register_descriptor_iter_next): Update.
4201 (gdbpy_initialize_registers): Register new gdbarch data.
4202
05c309a8
SM
42032020-07-21 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * linux-nat.c (stopped_pids): Make static.
4206
d1fd641e
SM
42072020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4208
4209 PR ada/26235
4210 * gdbtypes.c (ada_discrete_type_low_bound,
4211 ada_discrete_type_high_bound): Handle undefined bounds.
4212
1de14d77
KR
42132020-07-21 Kamil Rytarowski <n54@gmx.com>
4214
4215 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4216 declaration.
4217 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4218 function.
4219
ed810cc7
JB
42202020-07-20 John Baldwin <jhb@FreeBSD.org>
4221
4222 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4223 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4224 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4225 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4226 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4227 method.
4228
ae5369e7
LC
42292020-07-20 Ludovic Courtès <ludo@gnu.org>
4230
4231 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4232 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4233 which are deprecated in Guile 3.0.
4234 * configure.ac (try_guile_versions): Add "guile-3.0".
4235 * configure (try_guile_versions): Regenerate.
4236 * NEWS: Update entry.
4237
68cf161c
LC
42382020-07-20 Ludovic Courtès <ludo@gnu.org>
4239 Doug Evans <dje@google.com>
4240
4241 PR gdb/21104
4242 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4243 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4244 USING_GUILE_BEFORE_2_2.
4245 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4246 Change type to 'scm_t_port_type *'.
4247 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4248 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4249 parameter and honor it. Update callers.
4250 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4251 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4252 functions.
4253 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4254 USING_GUILE_BEFORE_2_2.
4255 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4256 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4257 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4258 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4259 and 'SCM_PORT_TYPE'.
4260 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4261 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4262 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4263 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4264 [!USING_GUILE_BEFORE_2_2]: New functions.
4265 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4266 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4267 'gdbscm_memory_port_read'.
4268 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4269 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4270 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4271 function.
4272 (ioscm_init_memory_port): Remove.
4273 (ioscm_init_memory_port_stream): New function
4274 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4275 function.
4276 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4277 Return scm_from_uint (0).
4278 (gdbscm_set_memory_port_read_buffer_size_x)
4279 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4280 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4281 Return scm_from_uint (0).
4282 (gdbscm_set_memory_port_write_buffer_size_x)
4283 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4284 * configure.ac (try_guile_versions): Add "guile-2.2".
4285 * configure: Regenerate.
4286 * NEWS: Add entry.
4287
aee91db3
TT
42882020-07-18 Tom Tromey <tom@tromey.com>
4289
4290 * linux-nat.c (linux_multi_process): Remove.
4291 (linux_nat_target::supports_multi_process): Return true.
4292
0e267416
AB
42932020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4294
4295 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4296 (riscv_lookup_target_description): Return pointer out of
4297 unique_ptr.
4298 * target-descriptions.c (allocate_target_description): Add
4299 comment.
4300 (target_desc_deleter::operator()): Likewise.
4301 * target-descriptions.h (struct target_desc_deleter): Moved to
4302 gdbsupport/tdesc.h.
4303 (target_desc_up): Likewise.
4304
f80c8ec4
TT
43052020-07-17 Tom Tromey <tromey@adacore.com>
4306
4307 * linux-nat.c (linux_nat_target::supports_non_stop)
4308 (linux_nat_target::always_non_stop_p): Use "true".
4309 (linux_nat_target::supports_disable_randomization): Use "true" and
4310 "false".
4311
d0ce17d8
CT
43122020-07-16 Caroline Tice <cmtice@google.com>
4313
4314 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4315 (RNGLIST_HEADER_SIZE64): New constant definition.
4316 (struct dwop_section_names): Add rnglists_dwo.
4317 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4318 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4319 (struct dwo_sections): Add rnglists field.
4320 (read_attribut_reprocess): Add tag parameter.
4321 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4322 (cu_debug_rnglists_section): New function (decl & definition).
4323 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4324 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4325 die whose range is being checked; get rnglist section from
4326 cu_debug_rnglists_section, to get from either objfile or dwo file as
4327 appropriate. Add cases for DW_RLE_base_addressx,
4328 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4329 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4330 test inside if-condition and updating complaint message.
4331 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4332 dwarf2_rnglists_process.
4333 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4334 dwarf2_ranges_process.
4335 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4336 need_ranges_base and update comment appropriately. Also pass die tag
4337 to dwarf2_ranges_read.
4338 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4339 need_ranges_base and update comment appropriately. Also pass die tag
4340 to dwarf2_ranges_process.
4341 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4342 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4343 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4344 need_ranges_base and update comment appropriately. Also pass die tag
4345 to read_attribute_reprocess and dwarf2_ranges_read.
4346 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4347 and update function comment appropriately.
4348 (read_loclist_index): Call read_loclists_rnglists_header instead of
4349 read_loclist_header.
4350 (read_rnglist_index): New function.
4351 (read_attribute_reprocess): Add tag parameter. Add code for
4352 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4353 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4354
3dcc261c
AB
43552020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4356
4357 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4358 being resolved.
4359
ccb9eba6
AB
43602020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4361
4362 * arch-utils.c (show_architecture): Update formatting of messages.
4363
cf88be68
SM
43642020-07-12 Simon Marchi <simon.marchi@efficios.com>
4365
4366 * gdbtypes.h (struct type) <bounds>: Handle array and string
4367 types.
4368 * ada-lang.c (assign_aggregate): Use type::bounds on
4369 array/string type.
4370 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4371 * c-varobj.c (c_number_of_children): Likewise.
4372 (c_describe_child): Likewise.
4373 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4374 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4375 (f_type_print_base): Likewise.
4376 * f-valprint.c (f77_array_offset_tbl): Likewise.
4377 (f77_get_upperbound): Likewise.
4378 (f77_print_array_1): Likewise.
4379 * guile/scm-type.c (gdbscm_type_range): Likewise.
4380 * m2-typeprint.c (m2_array): Likewise.
4381 (m2_is_long_set_of_type): Likewise.
4382 * m2-valprint.c (get_long_set_bounds): Likewise.
4383 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4384 * python/py-type.c (typy_range): Likewise.
4385 * rust-lang.c (rust_internal_print_type): Likewise.
4386 * type-stack.c (type_stack::follow_types): Likewise.
4387 * valarith.c (value_subscripted_rvalue): Likewise.
4388 * valops.c (value_cast): Likewise.
4389
509971ae
SM
43902020-07-12 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4393 callers to use the equivalent accessor methods.
4394
107406b7
SM
43952020-07-12 Simon Marchi <simon.marchi@efficios.com>
4396
4397 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4398 (struct type) <bit_stride>: New method.
4399 (TYPE_BIT_STRIDE): Remove.
4400 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4401
bb789949
SM
44022020-07-12 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4405 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4406 callers to use the equivalent accessor methods instead.
4407
39498edb
SM
44082020-07-12 Simon Marchi <simon.marchi@efficios.com>
4409
4410 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4411 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4412 callers to use the equivalent accessor methods instead.
4413
3b606f38
SM
44142020-07-12 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4417 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4418 to use dynamic_prop::kind.
4419
064d9cb9
SM
44202020-07-12 Simon Marchi <simon.marchi@efficios.com>
4421
4422 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4423 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4424 to get the bound property's kind and check against
4425 PROP_UNDEFINED.
4426
5537ddd0
SM
44272020-07-12 Simon Marchi <simon.marchi@efficios.com>
4428
4429 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4430 all callers to use type::range_bounds followed by
4431 dynamic_prop::{low,high}.
4432
8c2e4e06
SM
44332020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4434
4435 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4436 const_val, set_const_val, baton, set_locexpr, set_loclist,
4437 set_addr_offset, variant_parts, set_variant_parts,
4438 original_type, set_original_type>: New methods.
4439 <kind>: Rename to...
4440 <m_kind>: ... this. Update all users to use the new methods
4441 instead.
4442 <data>: Rename to...
4443 <m_data>: ... this. Update all users to use the new methods
4444 instead.
4445
7c6f2712
SM
44462020-07-12 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * gdbtypes.c (get_discrete_bounds): Return failure if
4449 the range type's bounds are not both defined and constant
4450 values.
4451 (get_array_bounds): Update comment. Remove undefined bound check.
4452
599088e3
SM
44532020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4454
4455 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4456 the type::bounds method directly.
4457
c4dfcb36
SM
44582020-07-12 Simon Marchi <simon.marchi@efficios.com>
4459
4460 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4461 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4462 are used to set the range type's bounds to use set_bounds.
4463
0a278aa7
PW
44642020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4465
4466 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4467
cce20f10
PA
44682020-07-10 Pedro Alves <pedro@palves.net>
4469
4470 * gdbthread.h (inferior_ref): Define.
4471 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4472 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4473 * thread.c
4474 (scoped_restore_current_thread::restore):
4475 Adjust to gdb::ref_ptr.
4476 (scoped_restore_current_thread::~scoped_restore_current_thread):
4477 Remove manual decref handling.
4478 (scoped_restore_current_thread::scoped_restore_current_thread):
4479 Adjust to use
4480 inferior_ref::new_reference/thread_info_ref::new_reference.
4481 Incref the thread before calling get_frame_id instead of after.
4482 Let TARGET_CLOSE_ERROR propagate.
4483
6d7aa592
PA
44842020-07-10 Pedro Alves <pedro@palves.net>
4485
4486 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4487 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4488 NOT_AVAILABLE_ERROR.
4489 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4490 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4491
b3e3a4c1
SM
44922020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4493 Pedro Alves <pedro@palves.net>
4494
4495 PR gdb/26199
4496 * infrun.c (threads_are_resumed_pending_p): Delete.
4497 (do_target_wait): Remove threads_are_executing and
4498 threads_are_resumed_pending_p checks from the inferior_matches
4499 lambda. Update comments.
4500
d6cc5d98
PA
45012020-07-10 Pedro Alves <pedro@palves.net>
4502
4503 PR gdb/26199
4504 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4505 executing threads.
4506
7d3badc6
PA
45072020-07-10 Pedro Alves <pedro@palves.net>
4508
4509 PR gdb/26199
4510 * infrun.c (handle_no_resumed): Handle multiple targets.
4511
42bd97a6
PA
45122020-07-10 Pedro Alves <pedro@palves.net>
4513
4514 PR gdb/26199
4515 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4516 target_is_async_p.
4517
43667cc6
PA
45182020-07-10 Pedro Alves <pedro@palves.net>
4519
4520 PR gdb/26199
4521 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4522 threads, not all threads.
4523
96118d11
PA
45242020-07-10 Pedro Alves <pedro@palves.net>
4525
4526 PR gdb/26199
4527 * remote.c (remote_target::open_1): Pass remote target pointer as
4528 data to create_async_event_handler.
4529 (remote_async_inferior_event_handler): Mark async event handler
4530 before returning if the remote target still has either pending
4531 events or unacknowledged notifications.
4532
54904d81
JB
45332020-07-10 John Baldwin <jhb@FreeBSD.org>
4534
4535 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4536 declaration.
4537 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4538 function.
4539
f37e5866
JB
45402020-07-09 John Baldwin <jhb@FreeBSD.org>
4541
4542 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4543 inferior_ptid.
4544
fc238d4a
JB
45452020-07-09 John Baldwin <jhb@FreeBSD.org>
4546
4547 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4548 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4549 AT_FREEBSD_PS_STRINGS.
4550
6e2469ff
HD
45512020-07-08 Hannes Domani <ssbssa@yahoo.de>
4552
4553 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4554 of debugfile path on Windows.
4555
d1076c41
JB
45562020-07-08 John Baldwin <jhb@FreeBSD.org>
4557
4558 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4559 argument to 'data'.
4560
15f3b077
TT
45612020-07-08 Tom Tromey <tromey@adacore.com>
4562
4563 * ada-lang.c (ada_exception_message_1): Use read_memory.
4564
9fc501fd
AB
45652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4566
4567 PR python/22748
4568 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4569 special handling for inline frames.
4570 * findvar.c (value_of_register_lazy): Skip inline frames when
4571 creating lazy register values.
4572 * frame.c (frame_id_computed_p): Delete definition.
4573 * frame.h (frame_id_computed_p): Delete declaration.
4574
64cb3757
AB
45752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 * NEWS: Mention additions to Python API.
4578 * python/py-arch.c (archpy_register_groups): New function.
4579 (arch_object_methods): Add 'register_groups' method.
4580 * python/py-registers.c (reggroup_iterator_object): New struct.
4581 (reggroup_object): New struct.
4582 (gdbpy_new_reggroup): New function.
4583 (gdbpy_reggroup_to_string): New function.
4584 (gdbpy_reggroup_name): New function.
4585 (gdbpy_reggroup_iter): New function.
4586 (gdbpy_reggroup_iter_next): New function.
4587 (gdbpy_new_reggroup_iterator): New function
4588 (gdbpy_initialize_registers): Register new types.
4589 (reggroup_iterator_object_type): Define new Python type.
4590 (gdbpy_reggroup_getset): New static global.
4591 (reggroup_object_type): Define new Python type.
4592 * python/python-internal.h
4593
0f767f94
AB
45942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4595
4596 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4597 * python/py-arch.c (archpy_registers): New function.
4598 (arch_object_methods): Add 'registers' method.
4599 * python/py-registers.c: New file.
4600 * python/python-internal.h
4601 (gdbpy_new_register_descriptor_iterator): Declare.
4602 (gdbpy_initialize_registers): Declare.
4603 * python/python.c (do_start_initialization): Call
4604 gdbpy_initialize_registers.
4605 * NEWS: Mention additions to the Python API.
4606
87dbc774
AB
46072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4608
4609 * NEWS: Mention new Python API method.
4610 * python/py-unwind.c (pending_framepy_architecture): New function.
4611 (pending_frame_object_methods): Add architecture method.
4612
3bc98c0c
AB
46132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4614
4615 * gdbarch.c: Regenerate.
4616 * gdbarch.h: Regenerate.
4617 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4618 (gdbarch_data): Use internal_error for the case where
4619 deprecated_set_gdbarch_data was originally needed.
4620 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4621 and use passed in obstack.
4622 (libunwind_frame_set_descr): Should no longer get back NULL from
4623 gdbarch_data.
4624 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4625 type.
4626 * user-regs.c (user_regs_init): Update parameters, and use passed
4627 in obstack.
4628 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4629 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4630
d8cc8af6
TV
46312020-07-06 Tom de Vries <tdevries@suse.de>
4632
4633 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4634 End-Of-Sequence in lte_is_less_than.
4635 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4636 "gdb: Don't reorder line table entries too much when sorting".
4637
947f7597
TV
46382020-07-06 Tom de Vries <tdevries@suse.de>
4639
4640 PR tui/26205
4641 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4642
1e7c1b22
TV
46432020-07-05 Tom de Vries <tdevries@suse.de>
4644
4645 PR build/26187
4646 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4647 std::uncaught_exceptions instead of deprecated
4648 std::uncaught_exception.
4649
a36158ec
SM
46502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4651
4652 * macroexp.h (macro_stringify): Return
4653 gdb::unique_xmalloc_ptr<char>.
4654 * macroexp.c (macro_stringify): Likewise.
4655 * macrotab.c (fixup_definition): Update.
4656
14d960c8
SM
46572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4658
4659 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4660 (lex_one_token): Update.
4661 * macroexp.c (struct macro_buffer) <release>: Return
4662 gdb::unique_xmalloc_ptr<char>.
4663 (macro_stringify): Update.
4664 (macro_expand): Update.
4665 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4666 * macroexp.h (macro_expand_next): Likewise.
4667
211d5b1c
SM
46682020-07-02 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * macroexp.h (macro_lookup_ftype): Remove.
4671 (macro_expand, macro_expand_once, macro_expand_next): Remove
4672 lookup function parameters, add scope parameter.
4673 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4674 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4675 * macroscope.h (standard_macro_lookup): Change parameter type
4676 to macro_scope.
4677 * macroscope.c (standard_macro_lookup): Likewise.
4678 * c-exp.y (lex_one_token): Update.
4679 * macrocmd.c (macro_expand_command): Likewise.
4680 (macro_expand_once_command): Likewise.
4681
b1a35af2
SM
46822020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4683
4684 * inf-loop.c (inferior_event_handler): Remove client_data param.
4685 * inf-loop.h (inferior_event_handler): Likewise.
4686 * infcmd.c (step_1): Adjust.
4687 * infrun.c (proceed): Adjust.
4688 (fetch_inferior_event): Remove client_data param.
4689 (infrun_async_inferior_event_handler): Adjust.
4690 * infrun.h (fetch_inferior_event): Remove `void *` param.
4691 * linux-nat.c (handle_target_event): Adjust.
4692 * record-btrace.c (record_btrace_handle_async_inferior_event):
4693 Adjust.
4694 * record-full.c (record_full_async_inferior_event_handler):
4695 Adjust.
4696 * remote.c (remote_async_inferior_event_handler): Adjust.
4697
1cdf9e33
TT
46982020-07-01 Tom Tromey <tom@tromey.com>
4699
4700 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4701 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4702
32c1e210
TT
47032020-07-01 Tom Tromey <tom@tromey.com>
4704
4705 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4706 tui_gen_win_info.
4707 (tui_win_info::make_window): Merge with
4708 tui_gen_win_info::make_window.
4709 (tui_win_info::make_visible): Move from tui_gen_win_info.
4710 * tui/tui-win.c (tui_win_info::max_width): Move from
4711 tui_gen_win_info.
4712 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4713 type.
4714 <window_factory>: Likewise.
4715 * tui/tui-layout.c (tui_win_info::resize): Move from
4716 tui_gen_win_info.
4717 (make_standard_window): Change return type.
4718 (get_locator_window, tui_get_window_by_name): Likewise.
4719 (tui_layout_window::apply): Remove a cast.
4720 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4721 (struct tui_win_info): Merge with tui_gen_win_info.
4722 (struct tui_gen_win_info): Remove.
4723
a30cb6da
TT
47242020-07-01 Tom Tromey <tom@tromey.com>
4725
4726 * tui/tui-stack.h (struct tui_locator_window): Derive from
4727 tui_win_info.
4728 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4729 <can_box>: New method.
4730
1eb2161f
TT
47312020-07-01 Tom Tromey <tom@tromey.com>
4732
4733 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4734
7134f2eb
TT
47352020-07-01 Tom Tromey <tom@tromey.com>
4736
4737 * tui/tui-regs.c (tui_data_window::display_registers_from)
4738 (tui_data_window::display_registers_from)
4739 (tui_data_window::first_data_item_displayed)
4740 (tui_data_window::delete_data_content_windows): Update.
4741 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4742 Remove.
4743 (tui_data_window::check_register_values): Update.
4744 (tui_data_item_window::rerender): Add parameters. Update.
4745 (tui_data_item_window::refresh_window): Remove.
4746 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4747 virtual.
4748 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4749 tui_gen_win_info.
4750 <refresh_window, max_height, min_height>: Remove.
4751 <rerender>: Add parameters.
4752 <x, y, visible>: New members.
4753 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4754 <m_item_width>: New member.
4755
22b7b041
TT
47562020-07-01 Tom Tromey <tom@tromey.com>
4757
4758 * tui/tui-regs.c (tui_data_window::show_register_group)
4759 (tui_data_window::check_register_values): Update.
4760 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4761 from item_no.
4762
c9753adb
TT
47632020-07-01 Tom Tromey <tom@tromey.com>
4764
4765 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4766 useless "if".
4767
9ab26b4a
TT
47682020-07-01 Tom Tromey <tom@tromey.com>
4769
4770 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4771 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4772
e555083f
TT
47732020-07-01 Tom Tromey <tom@tromey.com>
4774
4775 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4776 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4777 (struct tui_line_or_address): Move from tui-data.h.
4778 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4779 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4780 (tui_cmd_window, tui_source_window_base, tui_source_window)
4781 (tui_disasm_window): Don't declare.
4782 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4783 to tui-winsource.h.
4784 (SINGLE_KEY): Move to tui-stack.c.
4785
7a02bab7
TT
47862020-07-01 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4789 std::string.
4790 * tui/tui-regs.c (class tab_expansion_file): New.
4791 (tab_expansion_file::write): New method.
4792 (tui_register_format): Change return type. Use
4793 tab_expansion_file.
4794 (tui_get_register, tui_data_window::display_registers_from)
4795 (tui_data_item_window::rerender): Update.
4796 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4797 * tui/tui-io.c (tui_expand_tabs): Remove.
4798
ea68593b
TT
47992020-07-01 Tom Tromey <tom@tromey.com>
4800
4801 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4802
a8caed5d
FS
48032020-07-01 Fangrui Song <maskray@google.com>
4804
4805 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4806
9cdf9820
AKS
48072020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4808
4809 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4810 forms for DW_AT_associated and DW_AT_allocated attributes,
4811 which is already checked in function attr_to_dynamic_prop.
4812
a1520ad8
TT
48132020-06-30 Tom Tromey <tromey@adacore.com>
4814
4815 * dwarf2/read.c (quirk_rust_enum): Correctly call
4816 alloc_rust_variant for default-less enum.
4817
5ac58899
TT
48182020-06-30 Tom Tromey <tromey@adacore.com>
4819
4820 PR build/26183:
4821 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4822 gdb::to_string.
4823
19b187a9
SM
48242020-06-29 Simon Marchi <simon.marchi@efficios.com>
4825
4826 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4827 * gdbarch.h: Re-generate.
4828
cd4c4c07
TT
48292020-06-28 Tom Tromey <tom@tromey.com>
4830
4831 * command.h (cmd_types): Remove.
4832 (cmd_type): Don't declare.
4833 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4834 typedef.
4835 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4836 * cli/cli-decode.c (cmd_type): Remove.
4837
05779d57
PA
48382020-06-27 Pedro Alves <palves@redhat.com>
4839
4840 * fork-child.c (prefork_hook): Adjust.
4841 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4842 Delete.
4843 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4844 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4845 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4846 Remove declarations.
4847 (struct inferior) <set_tty, tty>: New methods.
4848 (struct inferior) <terminal>: Rename to ...
4849 (struct inferior) <m_terminal>: ... this and make private.
4850 * main.c (captured_main_1): Adjust.
4851 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4852 (mi_cmd_inferior_tty_show): Adjust.
4853 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4854 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4855
1776e3e5
NA
48562020-06-26 Nick Alcock <nick.alcock@oracle.com>
4857
4858 * configure.ac: Add --enable-libctf: handle --disable-static
4859 properly.
4860 * acinclude.m4: sinclude ../config/enable.m4.
4861 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4862 (LIBCTF): Substitute in.
4863 (CTF_DEPS): New, likewise.
4864 (CLIBS): libctf needs symbols from libbfd: move earlier.
4865 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4866 flags.
4867 * ctfread.c: Surround in ENABLE_LIBCTF.
4868 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4869 * configure: Regenerate.
4870 * config.in: Likewise.
4871
58373b80
SM
48722020-06-25 Simon Marchi <simon.marchi@efficios.com>
4873
4874 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4875
277474ee
SM
48762020-06-25 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * inferior.h (struct inferior) <terminal>: Change type to
4879 gdb::unique_xmalloc_ptr<char>.
4880 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4881 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4882 field, adjust to unique pointer.
4883 (get_inferior_io_terminal): Adjust to unique pointer.
4884
6d74da72
AB
48852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4886
4887 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4888 registers, not just the known core set of registers.
4889
2e52d038
AB
48902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4891
4892 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4893 fflags, frm, and fcsr registers.
4894 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4895 restore groups.
4896 (riscv_tdesc_unknown_reg): New function.
4897 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4898 tdesc_use_registers.
4899 * riscv-tdep.h (struct gdbarch_tdep): Add
4900 unknown_csrs_first_regnum, unknown_csrs_count,
4901 duplicate_fflags_regnum, duplicate_frm_regnum, and
4902 duplicate_fcsr_regnum fields.
4903
be64fd07
AB
49042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4905
4906 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4907 callback, use the callback (when not null) to help number unknown
4908 registers.
4909 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4910 (tdesc_use_registers): Add extra parameter to declaration.
4911
3b9fce96
AB
49122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4913
4914 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4915 in the file.
4916 (class riscv_pending_register_alias): Likewise.
4917 (riscv_register_feature::register_info): Change 'required_p' field
4918 to 'required', and change its type. Add 'check' member function.
4919 (riscv_register_feature::register_info::check): Define new member
4920 function.
4921 (riscv_xreg_feature): Change initialisation of 'required' field.
4922 (riscv_freg_feature): Likewise.
4923 (riscv_virtual_feature): Likewise.
4924 (riscv_csr_feature): Likewise.
4925 (riscv_check_tdesc_feature): Take extra parameter, the csr
4926 tdesc_feature, rewrite the function to use the new
4927 riscv_register_feature::register_info::check function.
4928 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4929
865bad26
AB
49302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4931
4932 * features/Makefile: Remove all references to the deleted files
4933 below.
4934 * features/riscv/32bit-csr.c: Deleted.
4935 * features/riscv/32bit-csr.xml: Deleted.
4936 * features/riscv/64bit-csr.c: Deleted.
4937 * features/riscv/64bit-csr.xml: Deleted.
4938 * features/riscv/rebuild-csr-xml.sh: Deleted.
4939
ed69cbc8
AB
49402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4941
4942 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4943 whitespace error for declaration of names member variable.
4944 (struct riscv_register_feature): Add new prefer_first_name member
4945 variable, and fix whitespace error in declaration of registers.
4946 (riscv_xreg_feature): Initialize prefer_first_name field.
4947 (riscv_freg_feature): Likewise.
4948 (riscv_virtual_feature): Likewise.
4949 (riscv_csr_feature): Likewise.
4950 (riscv_register_name): Expand on comments. Remove register name
4951 modifications for CSR and virtual registers.
4952
4445e8f5
AB
49532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4954
4955 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4956 errors.
4957
767a879e
AB
49582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4959
4960 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4961 riscv-opc.h.
4962 (class riscv_pending_register_alias): New class.
4963 (riscv_check_tdesc_feature): Take vector of pending aliases and
4964 populate it as appropriate.
4965 (riscv_setup_register_aliases): Delete.
4966 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4967 to riscv_check_tdesc_feature in all cases. Use the vector to
4968 create the register aliases.
4969
bb6e55f3
RO
49702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4971
4972 * sol2-tdep.c (sol2_static_transform_name): Remove.
4973 (sol2_init_abi): Don't register it.
4974 * gdbarch.sh (static_transform_name): Remove.
4975 * gdbarch.c, gdbarch.h: Regenerate.
4976
4977 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4978 gdbarch_static_transform_name.
4979 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4980 * stabsread.c (define_symbol) <'X'>: Remove.
4981 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4982 handling.
4983 <'V'>: Likewise.
4984 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4985 <'S'>: Remove call to gdbarch_static_transform_name.
4986
c6d36836
RO
49872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4988
4989 * procfs.c (procfs_pre_trace): New function.
4990 (procfs_target::create_inferior): Pass it to fork_inferior.
4991
a7e6196b
RO
49922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4993
4994 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4995 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4996 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4997 sol2-tdep.o, sparc-sol2-tdep.o.
4998 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4999 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5000 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5001 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5002
d412e696
RO
50032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5004
5005 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5006 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5007 Call sol2_init_abi.
5008 Remove calls to set_gdbarch_skip_solib_resolver,
5009 set_gdbarch_core_pid_to_str.
5010 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5011 (i386_sol2_static_transform_name): Remove.
5012 (i386_sol2_init_abi): Call sol2_init_abi.
5013 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5014 set_gdbarch_static_transform_name,
5015 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5016 Use sol2_sigtramp_p.
5017 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5018 (sol2_sigtramp_p): New function.
5019 (sol2_static_transform_name): New function.
5020 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5021 (sol2_init_abi): New function.
5022 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5023 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5024 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5025 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5026 (sparc_sol2_static_transform_name): Remove.
5027 (sparc32_sol2_init_abi): Call sol2_init_abi.
5028 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5029 set_gdbarch_static_transform_name,
5030 set_gdbarch_skip_solib_resolver,
5031 set_gdbarch_core_pid_to_str.
5032 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5033 (sparc_sol2_static_transform_name): Remove
5034 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5035 call sol2_sigtramp_p.
5036 (sparc64_sol2_init_abi): Call sol2_init_abi.
5037 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5038 set_gdbarch_static_transform_name,
5039 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5040
a8654e7d
PW
50412020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5042
5043 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5044 * exec.c (validate_exec_file): If from_tty, set both
5045 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5046 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5047 and from_tty, unconditionally ask a confirmation.
5048
caa7fd04
AB
50492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5050
5051 * target-descriptions.c (tdesc_architecture_name): Protect against
5052 NULL pointer dereference.
5053 (maint_print_xml_tdesc_cmd): New function.
5054 (_initialize_target_descriptions): Register new 'maint print
5055 xml-tdesc' command and give it the filename completer.
5056 * NEWS: Mention new 'maint print xml-tdesc' command.
5057
fbf42f4e
AB
50582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5059
5060 * target-descriptions.c (class tdesc_compatible_info): New class.
5061 (struct target_desc): Change type of compatible vector.
5062 (tdesc_compatible_p): Update for change in type of
5063 target_desc::compatible.
5064 (tdesc_compatible_info_list): New function.
5065 (tdesc_compatible_info_arch_name): New function.
5066 (tdesc_add_compatible): Update for change in type of
5067 target_desc::compatible.
5068 (print_c_tdesc::visit_pre): Likewise.
5069
20821f4e
AB
50702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5071
5072 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5073 whitespace to underscore.
5074 (maint_print_c_tdesc_cmd): Use fake filename for target
5075 descriptions that came from the target.
5076 (_initialize_target_descriptions): Add filename command completion
5077 for 'maint print c-tdesc'.
5078
1fb5ee62
SM
50792020-06-23 Simon Marchi <simon.marchi@efficios.com>
5080
5081 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5082 lines.
5083
fc3ecb3e
SM
50842020-06-23 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5087 lines.
5088 (dwarf2_find_location_expression): Likewise.
5089 (call_site_parameter_matches): Likewise.
5090 (dwarf2_compile_expr_to_ax): Likewise.
5091 (disassemble_dwarf_expression): Likewise.
5092 (loclist_describe_location): Likewise.
5093
236ef034
PA
50942020-06-23 Pedro Alves <palves@redhat.com>
5095
5096 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5097 progspace-and-thread.h. Include scoped-mock-context.h instead.
5098 (register_to_value_test): Use scoped_mock_context.
5099 * regcache.c: Include "scoped-mock-context.h".
5100 (cooked_read_test): Don't error out if a target is already pushed.
5101 Use scoped_mock_context. Adjust.
5102 * scoped-mock-context.h: New file.
5103
39e7ecca
AB
51042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5105
5106 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5107 initializer.
5108 (ada_language::is_string_type_p): New member function.
5109 * c-lang.c (c_language_data): Delete la_is_string_type_p
5110 initializer.
5111 (cplus_language_data): Likewise.
5112 (asm_language_data): Likewise.
5113 (minimal_language_data): Likewise.
5114 * d-lang.c (d_language_data): Likewise.
5115 * f-lang.c (f_is_string_type_p): Delete function, implementation
5116 moved to f_language::is_string_type_p.
5117 (f_language_data): Delete la_is_string_type_p initializer.
5118 (f_language::is_string_type_p): New member function,
5119 implementation from f_is_string_type_p.
5120 * go-lang.c (go_is_string_type_p): Delete function, implementation
5121 moved to go_language::is_string_type_p.
5122 (go_language_data): Delete la_is_string_type_p initializer.
5123 (go_language::is_string_type_p): New member function,
5124 implementation from go_is_string_type_p.
5125 * language.c (language_defn::is_string_type_p): Define new member
5126 function.
5127 (default_is_string_type_p): Make static, add comment copied from
5128 header file.
5129 (unknown_language_data): Delete la_is_string_type_p initializer.
5130 (unknown_language::is_string_type_p): New member function.
5131 (auto_language_data): Delete la_is_string_type_p initializer.
5132 (auto_language::is_string_type_p): New member function.
5133 * language.h (language_data): Delete la_is_string_type_p field.
5134 (language_defn::is_string_type_p): Declare new function.
5135 (default_is_string_type_p): Delete desclaration, move comment to
5136 definition.
5137 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5138 moved to m2_language::is_string_type_p.
5139 (m2_language_data): Delete la_is_string_type_p initializer.
5140 (m2_language::is_string_type_p): New member function,
5141 implementation from m2_is_string_type_p.
5142 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5143 initializer.
5144 * opencl-lang.c (opencl_language_data): Likewise.
5145 * p-lang.c (pascal_is_string_type_p): Delete function,
5146 implementation moved to pascal_language::is_string_type_p.
5147 (pascal_language_data): Delete la_is_string_type_p initializer.
5148 (pascal_language::is_string_type_p): New member function,
5149 implementation from pascal_is_string_type_p.
5150 * rust-lang.c (rust_is_string_type_p): Delete function,
5151 implementation moved to rust_language::is_string_type_p.
5152 (rust_language_data): Delete la_is_string_type_p initializer.
5153 (rust_language::is_string_type_p): New member function,
5154 implementation from rust_is_string_type_p.
5155 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5156 is_string_type_p.
5157
4ffc13fb
AB
51582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5159
5160 * ada-lang.c (ada_language_data): Delete la_print_typedef
5161 initializer.
5162 (ada_language::print_typedef): New member function.
5163 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5164 (cplus_language_data): Likewise.
5165 (asm_language_data): Likewise.
5166 (minimal_language_data): Likewise.
5167 * d-lang.c (d_language_data): Likewise.
5168 * f-lang.c (f_language_data): Likewise.
5169 (f_language::print_typedef): New member function.
5170 * go-lang.c (go_language_data): Delete la_print_typedef
5171 initializer.
5172 * language.c (language_defn::print_typedef): Define member
5173 function.
5174 (unknown_language_data): Delete la_print_typedef initializer.
5175 (unknown_language::print_typedef): New member function.
5176 (auto_language_data): Delete la_print_typedef initializer.
5177 (auto_language::print_typedef): New member function.
5178 * language.h (language_data): Delete la_print_typedef field.
5179 (language_defn::print_typedef): Declare new member function.
5180 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5181 (default_print_typedef): Delete declaration.
5182 * m2-lang.c (m2_language_data): Delete la_print_typedef
5183 initializer.
5184 (m2_language::print_typedef): New member function.
5185 * objc-lang.c (objc_language_data): Delete la_print_typedef
5186 initializer.
5187 * opencl-lang.c (opencl_language_data): Likewise.
5188 * p-lang.c (pascal_language_data): Likewise.
5189 (pascal_language::print_typedef): New member function.
5190 * rust-lang.c (rust_print_typedef): Delete function,
5191 implementation moved to rust_language::print_typedef.
5192 (rust_language): Delete la_print_typedef initializer.
5193 (rust_language::print_typedef): New member function,
5194 implementation from rust_print_typedef.
5195 * typeprint.c (default_print_typedef): Delete.
5196
d711ee67
AB
51972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5200 (ada_language::printstr): New member function.
5201 * c-lang.c (c_language_data): Delete la_printstr initializer.
5202 (cplus_language_data): Likewise.
5203 (asm_language_data): Likewise.
5204 (minimal_language_data): Likewise.
5205 * d-lang.c (d_language_data): Likewise.
5206 * f-lang.c (f_printstr): Rename to f_language::printstr.
5207 (f_language_data): Delete la_printstr initializer.
5208 (f_language::printstr): New member function, implementation from
5209 f_printstr.
5210 * go-lang.c (go_language_data): Delete la_printstr initializer.
5211 * language.c (language_defn::printstr): Define new member
5212 function.
5213 (unk_lang_printstr): Delete.
5214 (unknown_language_data): Delete la_printstr initializer.
5215 (unknown_language::printstr): New member function.
5216 (auto_language_data): Delete la_printstr initializer.
5217 (auto_language::printstr): New member function.
5218 * language.h (language_data): Delete la_printstr field.
5219 (language_defn::printstr): Declare new member function.
5220 (LA_PRINT_STRING): Update call to printstr.
5221 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5222 (m2_language_data): Delete la_printstr initializer.
5223 (m2_language::printstr): New member function, implementation from
5224 m2_printstr.
5225 * objc-lang.c (objc_language_data): Delete la_printstr
5226 initializer.
5227 * opencl-lang.c (opencl_language_data): Likewise.
5228 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5229 (pascal_language_data): Delete la_printstr initializer.
5230 (pascal_language::printstr): New member function, implementation
5231 from pascal_printstr.
5232 * p-lang.h (pascal_printstr): Delete declaration.
5233 * rust-lang.c (rust_printstr): Update header comment.
5234 (rust_language_data): Delete la_printstr initializer.
5235 (rust_language::printstr): New member function.
5236
52b50f2c
AB
52372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5238
5239 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5240 (ada_language::printchar): New member function.
5241 * c-lang.c (c_language_data): Delete la_printchar initializer.
5242 (cplus_language_data): Likewise.
5243 (asm_language_data): Likewise.
5244 (minimal_language_data): Likewise.
5245 * d-lang.c (d_language_data): Likewise.
5246 * f-lang.c (f_printchar): Rename to f_language::printchar.
5247 (f_language_data): Delete la_printchar initializer.
5248 (f_language::printchar): New member function, implementation from
5249 f_printchar.
5250 * go-lang.c (go_language_data): Delete la_printchar initializer.
5251 * language.c (unk_lang_printchar): Delete.
5252 (language_defn::printchar): Define new member function.
5253 (unknown_language_data): Delete la_printchar initializer.
5254 (unknown_language::printchar): New member function.
5255 (auto_language_data): Delete la_printchar initializer.
5256 (auto_language::printchar): New member function.
5257 * language.h (language_data): Delete la_printchar field.
5258 (language_defn::printchar): Declare new member function.
5259 (LA_PRINT_CHAR): Update call to printchar.
5260 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5261 (m2_language::printchar): New member function.
5262 * objc-lang.c (objc_language_data): Delete la_printchar
5263 initializer.
5264 * opencl-lang.c (opencl_language_data): Likewise.
5265 * p-lang.c (pascal_language_data): Delete la_printchar
5266 initializer.
5267 (pascal_language::printchar): New member function.
5268 * rust-lang.c (rust_printchar): Rename to
5269 rust_language::printchar.
5270 (rust_language_data): Delete la_printchar initializer.
5271 (rust_language::printchar): New member function, implementation
5272 from rust_printchar.
5273
ec8cec5b
AB
52742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5275
5276 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5277 (ada_language_data): Delete la_emitchar initializer.
5278 (ada_language::emitchar): New member function, implementation from
5279 emit_char.
5280 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5281 (cplus_language_data): Likewise.
5282 (asm_language_data): Likewise.
5283 (minimal_language_data): Likewise.
5284 * d-lang.c (d_language_data): Likewise.
5285 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5286 (f_language_data): Delete la_emitchar initializer.
5287 (f_language::emitchar): New member function, implementation from
5288 f_emit_char.
5289 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5290 * language.c (unk_lang_emit_char): Delete.
5291 (language_defn::emitchar): New member function definition.
5292 (unknown_language_data): Delete la_emitchar initializer.
5293 (unknown_language::emitchar): New member function.
5294 (auto_language_data): Delete la_emitchar initializer.
5295 (auto_language::emitchar): New member function.
5296 * language.h (language_data): Delete la_emitchar field.
5297 (language_defn::emitchar): New member field declaration.
5298 (LA_EMIT_CHAR): Update call to emitchar.
5299 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5300 (m2_language_data): Delete la_emitchar initializer.
5301 (m2_language::emitchar): New member function, implementation from
5302 m2_emit_char.
5303 * objc-lang.c (objc_language_data): Delete la_emitchar
5304 initializer.
5305 * opencl-lang.c (opencl_language_data): Likewise.
5306 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5307 (pascal_language_data): Delete la_emitchar initializer.
5308 (pascal_language::emitchar): New member function, implementation
5309 from pascal_emit_char.
5310 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5311 (rust_language_data): Delete la_emitchar initializer.
5312 (rust_language::emitchar): New member function, implementation
5313 from rust_emitchar.
5314
1bf9c363
AB
53152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5316
5317 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5318 (ada_language_data): Delete la_post_parser initializer.
5319 (ada_language::post_parser): New member function.
5320 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5321 (cplus_language_data): Likewise.
5322 (asm_language_data): Likewise.
5323 (minimal_language_data): Likewise.
5324 * d-lang.c (d_language_data): Likewise.
5325 * f-lang.c (f_language_data): Likewise.
5326 * go-lang.c (go_language_data): Likewise.
5327 * language.c (unknown_language_data): Likewise.
5328 (auto_language_data): Likewise.
5329 * language.h (language_data): Delete la_post_parser field.
5330 (language_defn::post_parser): New member function.
5331 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5332 * objc-lang.c (objc_language_data): Likewise.
5333 * opencl-lang.c (opencl_language_data): Likewise.
5334 * p-lang.c (pascal_language_data): Likewise.
5335 * parse.c (parse_exp_in_context): Update call to post_parser.
5336 (null_post_parser): Delete definition.
5337 * parser-defs.h (null_post_parser): Delete declaration.
5338 * rust-lang.c (rust_language_data): Delete la_post_parser
5339 initializer.
5340
87afa652
AB
53412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5342
5343 * ada-lang.c (parse): Rename to ada_language::parser.
5344 (ada_language_data): Delete la_parser initializer.
5345 (ada_language::parser): New member function, implementation from
5346 parse.
5347 * c-lang.c (c_language_data): Delete la_parser initializer.
5348 (cplus_language_data): Likewise.
5349 (asm_language_data): Likewise.
5350 (minimal_language_data): Likewise.
5351 * d-lang.c (d_language_data): Likewise.
5352 (d_language::parser): New member function.
5353 * f-lang.c (f_language_data): Delete la_parser initializer.
5354 (f_language::parser): New member function.
5355 * go-lang.c (go_language_data): Delete la_parser initializer.
5356 (go_language::parser): New member function.
5357 * language.c (unk_lang_parser): Delete.
5358 (language_defn::parser): Define new member function.
5359 (unknown_language_data): Delete la_parser initializer.
5360 (unknown_language::parser): New member function.
5361 (auto_language_data): Delete la_parser initializer.
5362 (auto_language::parser): New member function.
5363 * language.h (language_data): Delete la_parser field.
5364 (language_defn::parser): Declare new member function.
5365 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5366 (m2_language::parser): New member function.
5367 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5368 * opencl-lang.c (opencl_language_data): Likewise.
5369 * p-lang.c (pascal_language_data): Likewise.
5370 (pascal_language::parser): New member function.
5371 * parse.c (parse_exp_in_context): Update call to parser.
5372 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5373 (rust_language::parser): New member function.
5374
37825800
AB
53752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * top.c (print_gdb_configuration): Print --with-python-libdir
5378 configuration value.
5379
5b860c93
PW
53802020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5381
5382 * NEWS: Mention change to the alias command.
5383
cf00cd6f
PW
53842020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5385
5386 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5387 (alias_command_completer)
5388 (make_alias_options_def_group): New functions.
5389 (alias_opts, alias_option_defs): New struct and array.
5390 (alias_usage_error): Update usage.
5391 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5392 Use option framework.
5393 (_initialize_cli_cmds): Update alias command help.
5394 Update aliases command help.
5395 (show_user):
5396 Add NULL for new default_args lookup_cmd argument.
5397 (valid_command_p): Rename to validate_aliased_command.
5398 Add NULL for new default_args lookup_cmd argument. Verify that the
5399 aliased_command has no default args.
5400 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5401 (lookup_cmd_1, lookup_cmd): New argument default_args.
5402 (add_alias_cmd):
5403 Add NULL for new default_args lookup_cmd argument.
5404 (print_help_for_command): Show default args under the layout
5405 alias some_alias = some_aliased_cmd some_alias_default_arg.
5406 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5407 xfree default_args in destructor.
5408 * cli/cli-script.c (process_next_line, do_define_command):
5409 Add NULL for new default_args lookup_cmd argument.
5410 * command.h: Declare new default_args argument in lookup_cmd
5411 and lookup_cmd_1.
5412 * completer.c (complete_line_internal_1):
5413 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5414 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5415 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5416 Likewise.
5417 * infcmd.c (_initialize_infcmd): Likewise.
5418 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5419 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5420 * python/py-param.c (add_setshow_generic): Likewise.
5421 * remote.c (_initialize_remote): Likewise.
5422 * top.c (execute_command): Prepend default_args if command has some.
5423 (set_verbose):
5424 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5425 * tracepoint.c (validate_actionline, encode_actions_1):
5426 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5427
bd920864
TBA
54282020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5429
5430 * jit.c (jit_read_descriptor): Use bool as the return type.
5431 (jit_breakpoint_re_set_internal): Use bool as the return type.
5432 Invert the return value logic; return true if the jit breakpoint
5433 has been successfully initialized.
5434 (jit_inferior_init): Update the call to
5435 jit_breakpoint_re_set_internal.
5436
f8098322
PA
54372020-06-22 Pedro Alves <palves@redhat.com>
5438
5439 PR gdb/25939
5440 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5441 Use the current inferior instead. Don't return
5442 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5443 wait again.
5444 * sol-thread.c (sol_thread_target::wait): Don't reference
5445 inferior_ptid.
5446 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5447 (sol_update_thread_list_callback): Use the current inferior's pid
5448 instead of inferior_ptid.
5449
196535a6
RO
54502020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5451
5452 * procfs.c: Cleanup many comments.
5453
5454 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5455 (AFTER_WATCHFLAG): Replace by value.
5456
5457 (MAIN_PROC_NAME_FORMAT): Inline ...
5458 (create_procinfo): ... here.
5459
5460 (procfs_debug_inferior): Remove SYS_exec handling.
5461 (syscall_is_exec): Likewise.
5462 (procfs_set_exec_trap): Likewise.
5463
5464 (syscall_is_lwp_exit): Inline in callers.
5465 (syscall_is_exit): Likewise.
5466 (syscall_is_exec): Likewise.
5467 (syscall_is_lwp_create): Likewise.
5468
5469 (invalidate_cache): Remove #if 0 code.
5470
5471 (make_signal_thread_runnable): Remove.
5472 (procfs_target::resume): Remove #if 0 code.
5473
cf6f3e86
RO
54742020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5475
5476 PR gdb/25939
5477 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5478 call ...
5479 (procfs_target::create_inferior): ... here.
5480
48e9cc84
PW
54812020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5482
5483 * exec.c (validate_exec_file): Ensure the build-id is up to
5484 date by calling reopen_exec_file (that checks file timestamp
5485 to decide to re-read the file).
5486
3922b302
PA
54872020-06-18 Pedro Alves <palves@redhat.com>
5488
5489 PR gdb/25412
5490 * gdbthread.h (delete_thread, delete_thread_silent)
5491 (find_thread_ptid): Update comments.
5492 * thread.c (current_thread_): New global.
5493 (is_current_thread): Move higher, and reimplement.
5494 (inferior_thread): Reimplement.
5495 (set_thread_exited): Use bool. Add assertions.
5496 (add_thread_silent): Simplify thread-reuse handling by always
5497 calling delete_thread.
5498 (delete_thread): Remove intro comment.
5499 (find_thread_ptid): Skip exited threads.
5500 (switch_to_thread_no_regs): Write to current_thread_.
5501 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5502 INFERIOR_PTID. Clear current_thread_.
5503
6dbdab44
PA
55042020-06-18 Pedro Alves <palves@redhat.com>
5505
5506 * aix-thread.c (pd_update): Use switch_to_thread.
5507
2da4b788
PA
55082020-06-18 Pedro Alves <palves@redhat.com>
5509
5510 * ravenscar-thread.c (ravenscar_thread_target): Update.
5511 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5512 (ravenscar_thread_target::add_active_thread): ... this. Don't
5513 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5514 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5515
50838d1b
PA
55162020-06-18 Pedro Alves <palves@redhat.com>
5517
5518 * nat/windows-nat.c (current_windows_thread): Remove.
5519 * nat/windows-nat.h (current_windows_thread): Remove.
5520 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5521 Adjust.
5522 (display_selectors): Adjust to fetch the current
5523 windows_thread_info based on inferior_ptid.
5524 (fake_create_process): No longer write to current_windows_thread.
5525 (windows_nat_target::get_windows_debug_event):
5526 Don't set inferior_ptid or current_windows_thread.
5527 (windows_nat_target::wait): Adjust to not rely on
5528 current_windows_thread.
5529 (do_initial_windows_stuff): Now a method of windows_nat_target.
5530 Switch to the last_ptid thread.
5531 (windows_nat_target::attach): Adjust.
5532 (windows_nat_target::detach): Use switch_to_no_thread instead of
5533 writing to inferior_ptid directly.
5534 (windows_nat_target::create_inferior): Adjust.
5535
31ce04e9
PA
55362020-06-18 Pedro Alves <palves@redhat.com>
5537
5538 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5539
1ee1a363
PA
55402020-06-18 Pedro Alves <palves@redhat.com>
5541
5542 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5543 after creating it, instead of writing to inferior_ptid. Don't
5544 write to inferior_ptid.
5545
6d350754
PA
55462020-06-18 Pedro Alves <palves@redhat.com>
5547
5548 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5549
5d971d48
PA
55502020-06-18 Pedro Alves <palves@redhat.com>
5551
5552 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5553 it, instead of writing to inferior_ptid.
5554
86e57d1b
PA
55552020-06-18 Pedro Alves <palves@redhat.com>
5556
5557 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5558 to inferior_ptid.
5559
f2e1c129
PA
55602020-06-18 Pedro Alves <palves@redhat.com>
5561
5562 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5563 instead of writing to inferior_ptid directly.
5564
60db1b85
PA
55652020-06-18 Pedro Alves <palves@redhat.com>
5566
5567 * corelow.c (core_target::close): Use switch_to_no_thread instead
5568 of writing to inferior_ptid directly.
5569 (add_to_thread_list, core_target_open): Use switch_to_thread
5570 instead of writing to inferior_ptid directly.
5571
fe7d6a8d
PA
55722020-06-18 Pedro Alves <palves@redhat.com>
5573
5574 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5575 inferior_ptid.
5576 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5577 inferior_ptid.
5578 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5579 inferior_ptid directly.
5580 (darwin_nat_target::init_thread_list): Switch to thread, instead
5581 of writing to inferior_ptid.
5582 (darwin_nat_target::attach): Don't write to inferior_ptid.
5583 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5584
975f8708
PA
55852020-06-18 Pedro Alves <palves@redhat.com>
5586
5587 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5588 thread.
5589 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5590 Instead use switch_to_thread.
5591 (gnu_nat_target::detach): Use switch_to_no_thread
5592 instead of writing to inferior_ptid directly. Used passed-in
5593 inferior instead of looking up the inferior by pid.
5594
1a204730
PA
55952020-06-18 Pedro Alves <palves@redhat.com>
5596
5597 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5598 inferior_ptid.
5599
ebe84f23
PA
56002020-06-18 Pedro Alves <palves@redhat.com>
5601
5602 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5603 inferior_ptid.
5604 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5605 thread.
5606 (nto_procfs_target::detach): Avoid referencing
5607 inferior_ptid. Use switch_to_no_thread instead of writing to
5608 inferior_ptid directly.
5609 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5610 instead of writing to inferior_ptid directly.
5611 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5612 to thread.
5613
191f02e5
PA
56142020-06-18 Pedro Alves <palves@redhat.com>
5615
5616 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5617 after creating it, instead of writing to inferior_ptid.
5618 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5619 to inferior_ptid directly.
5620 (gdbsim_target::wait): Don't write to inferior_ptid.
5621
0ac55310
PA
56222020-06-18 Pedro Alves <palves@redhat.com>
5623
5624 * remote.c (remote_target::remote_notice_new_inferior): Use
5625 switch_to_thread instead of writing to inferior_ptid directly.
5626 (remote_target::add_current_inferior_and_thread): Use
5627 switch_to_no_thread instead of writing to inferior_ptid directly.
5628 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5629 and switch_to_thread instead of using set_current_inferior or
5630 writing to inferior_ptid directly.
5631
5233f39b
PA
56322020-06-18 Pedro Alves <palves@redhat.com>
5633
5634 * tracectf.c (ctf_target_open): Switch to added thread instead of
5635 writing to inferior_ptid directly.
5636 (ctf_target::close): Use switch_to_no_thread instead of writing to
5637 inferior_ptid directly.
5638
087e161b
PA
56392020-06-18 Pedro Alves <palves@redhat.com>
5640
5641 * tracefile-tfile.c (tfile_target_open): Don't write to
5642 inferior_ptid directly, instead switch to added thread.
5643 (tfile_target::close): Use switch_to_no_thread instead of writing
5644 to inferior_ptid directly.
5645
7fb43e53
PA
56462020-06-18 Pedro Alves <palves@redhat.com>
5647
5648 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5649 (procfs_target::detach): Use switch_to_no_thread
5650 instead of writing to inferior_ptid directly.
5651 (do_attach): Change return type to void. Switch to the added
5652 thread.
5653 (procfs_target::create_inferior): Switch to the added thread.
5654 (procfs_do_thread_registers): Don't write to inferior_ptid.
5655
18493a00
PA
56562020-06-18 Pedro Alves <palves@redhat.com>
5657
5658 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5659 of writing to inferior_ptid.
5660 (scoped_restore_exited_inferior): Delete.
5661 (handle_vfork_child_exec_or_exit): Simplify using
5662 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5663 instead of writing to inferior_ptid.
5664 (THREAD_STOPPED_BY): Delete.
5665 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5666 (thread_stopped_by_hw_breakpoint): Delete.
5667 (save_waitstatus): Use
5668 scoped_restore_current_thread+switch_to_thread, and call
5669 target_stopped_by_watchpoint instead of
5670 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5671 instead of thread_stopped_by_sw_breakpoint, and
5672 target_stopped_by_hw_breakpoint instead of
5673 thread_stopped_by_hw_breakpoint.
5674 (handle_inferior_event)
5675 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5676 inferior_ptid directly, nor
5677 set_current_inferior/set_current_program_space. Use
5678 switch_to_thread / switch_to_inferior_no_thread instead.
5679
a0776b13
PA
56802020-06-18 Pedro Alves <palves@redhat.com>
5681
5682 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5683 instead of writing to inferior_ptid.
5684
6155c136
PA
56852020-06-18 Pedro Alves <palves@redhat.com>
5686
5687 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5688 added thread.
5689 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5690 to the added thread.
5691 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5692 instead of writing to inferior_ptid.
5693
c5316fc6
PA
56942020-06-18 Pedro Alves <palves@redhat.com>
5695
5696 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5697 (register_to_value_test): Mock a program_space too. Heap-allocate
5698 the address space. Don't write to inferior_ptid. Use
5699 switch_to_thread instead.
5700
8df01799
PA
57012020-06-18 Pedro Alves <palves@redhat.com>
5702
5703 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5704 Delete.
5705 (find_signalled_thread()): New, factored out from
5706 linux_make_corefile_notes and adjusted to handle exited threads.
5707 (linux_make_corefile_notes): Adjust to use the new
5708 find_signalled_thread.
5709
41792d68
PA
57102020-06-18 Pedro Alves <palves@redhat.com>
5711
5712 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5713 of saving/restoring inferior_ptid.
5714
612f258a
TT
57152020-06-17 Tom Tromey <tom@tromey.com>
5716
5717 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5718 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5719 declare.
5720 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5721
efb763a5
SM
57222020-06-15 Simon Marchi <simon.marchi@efficios.com>
5723
5724 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5725 of partial symtabs.
5726
2951f6c0
SM
57272020-06-17 Simon Marchi <simon.marchi@efficios.com>
5728
5729 * regformats/reg-arm.dat: Remove.
5730 * regformats/reg-bfin.dat: Remove.
5731 * regformats/reg-cris.dat: Remove.
5732 * regformats/reg-crisv32.dat: Remove.
5733 * regformats/reg-m32r.dat: Remove.
5734 * regformats/reg-tilegx.dat: Remove.
5735 * regformats/reg-tilegx32.dat: Remove.
5736
7d458ea5
SM
57372020-06-17 Simon Marchi <simon.marchi@efficios.com>
5738
5739 * features/Makefile (WHICH): Remove arm files.
5740 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5741 * regformats/arm/arm-with-neon.dat: Remove.
5742 * regformats/arm/arm-with-vfpv2.dat: Remove.
5743 * regformats/arm/arm-with-vfpv3.dat: Remove.
5744
3af96c0d
SM
57452020-06-17 Simon Marchi <simon.marchi@efficios.com>
5746
5747 * features/Makefile (XMLTOC): Remove rx.xml.
5748
b25e22fd
PA
57492020-06-17 Pedro Alves <palves@redhat.com>
5750
5751 * gdbthread.h (thread_control_state) <trap_expected> Update
5752 comments.
5753
a78a19b1
AB
57542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5755
5756 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5757 ada_language::lookup_symbol_nonlocal.
5758 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5759 (ada_language::lookup_symbol_nonlocal): New member function,
5760 implementation from ada_lookup_symbol_nonlocal.
5761 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5762 initializer.
5763 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5764 initializer.
5765 (cplus_language::lookup_symbol_nonlocal): New member function.
5766 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5767 (minimal_language_data) Likewise.
5768 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5769 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5770 initializer.
5771 (d_language::lookup_symbol_nonlocal): New member function.
5772 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5773 initializer.
5774 (f_language::lookup_symbol_nonlocal): New member function.
5775 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5776 initializer.
5777 * language.c (unknown_language_data): Likewise.
5778 (auto_language_data): Likewise.
5779 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5780 field.
5781 (language_defn::lookup_symbol_nonlocal): New member function.
5782 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5783 initializer.
5784 * objc-lang.c (objc_language_data): Likewise.
5785 * opencl-lang.c (opencl_language_data): Likewise.
5786 * p-lang.c (pascal_language_data): Likewise.
5787 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5788 rust_language::lookup_symbol_nonlocal.
5789 (rust_language_data): Delete la_lookup_symbol_nonlocal
5790 initializer.
5791 (rust_language::lookup_symbol_nonlocal): New member function,
5792 implementation from rust_lookup_symbol_nonlocal.
5793 * symtab.c (lookup_symbol_aux): Update call to
5794 lookup_symbol_nonlocal.
5795 (basic_lookup_symbol_nonlocal): Rename to...
5796 (language_defn::lookup_symbol_nonlocal): ...this, and update
5797 header comment. Remove language_defn parameter, and replace with
5798 uses of `this'.
5799 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5800
ebe2334e
AB
58012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5802
5803 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5804 initializer.
5805 (ada_language::value_print_inner): New member function.
5806 * c-lang.c (c_language_data): Delete la_value_print_inner
5807 initializer.
5808 (cplus_language_data): Likewise.
5809 (asm_language_data): Likewise.
5810 (minimal_language_data): Likewise.
5811 * d-lang.c (d_language_data): Likewise.
5812 (d_language::value_print_inner): New member function.
5813 * f-lang.c (f_language_data): Delete la_value_print_inner
5814 initializer.
5815 (f_language::value_print_inner): New member function.
5816 * f-lang.h (f_value_print_innner): Rename to...
5817 (f_value_print_inner): ...this (note spelling of 'inner').
5818 * f-valprint.c (f_value_print_innner): Rename to...
5819 (f_value_print_inner): ...this (note spelling of 'inner').
5820 * go-lang.c (go_language_data): Delete la_value_print_inner
5821 initializer.
5822 (go_language::value_print_inner): New member function.
5823 * language.c (language_defn::value_print_inner): Define new member
5824 function.
5825 (unk_lang_value_print_inner): Delete.
5826 (unknown_language_data): Delete la_value_print_inner initializer.
5827 (unknown_language::value_print_inner): New member function.
5828 (auto_language_data): Delete la_value_print_inner initializer.
5829 (auto_language::value_print_inner): New member function.
5830 * language.h (language_data): Delete la_value_print_inner field.
5831 (language_defn::value_print_inner): Delcare new member function.
5832 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5833 initializer.
5834 (m2_language::value_print_inner): New member function.
5835 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5836 initializer.
5837 * opencl-lang.c (opencl_language_data): Likewise.
5838 * p-lang.c (pascal_language_data): Likewise.
5839 (pascal_language::value_print_inner): New member function.
5840 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5841 initializer.
5842 (rust_language::value_print_inner): New member function.
5843 * valprint.c (do_val_print): Update call to value_print_inner.
5844
a1d1fa3e
AB
58452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5846
5847 * ada-lang.c (ada_language_data): Delete la_value_print
5848 initializer.
5849 (ada_language::value_print): New member function.
5850 * c-lang.c (c_language_data): Delete la_value_print initializer.
5851 (cplus_language_data): Likewise.
5852 (asm_language_data): Likewise.
5853 (minimal_language_data): Likewise.
5854 * d-lang.c (d_language_data): Likewise.
5855 * f-lang.c (f_language_data): Likewise.
5856 * go-lang.c (go_language_data): Likewise.
5857 * language.c (unk_lang_value_print): Delete.
5858 (language_defn::value_print): Define new member function.
5859 (unknown_language_data): Delete la_value_print initializer.
5860 (unknown_language::value_print): New member function.
5861 (auto_language_data): Delete la_value_print initializer.
5862 (auto_language::value_print): New member function.
5863 * language.h (language_data): Delete la_value_print field.
5864 (language_defn::value_print): Declare new member function.
5865 (LA_VALUE_PRINT): Update call to value_print.
5866 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5867 * objc-lang.c (objc_language_data): Likewise.
5868 * opencl-lang.c (opencl_language_data): Likewise.
5869 * p-lang.c (pascal_language_data): Likewise.
5870 (pascal_language::value_print): New member function.
5871 * rust-lang.c (rust_language_data): Delete la_value_print
5872 initializer.
5873
f16a9f57
AB
58742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5875
5876 * ada-lang.c (ada_watch_location_expression): Rename to
5877 ada_language::watch_location_expression.
5878 (ada_language_data): Delete la_watch_location_expression
5879 initializer.
5880 (ada_language::watch_location_expression): New member function,
5881 implementation from ada_watch_location_expression.
5882 * breakpoint.c (watch_command_1): Update call to
5883 watch_location_expression.
5884 * c-lang.c (c_watch_location_expression): Rename to
5885 language_defn::watch_location_expression.
5886 (c_language_data): Delete la_watch_location_expression
5887 initializer.
5888 (cplus_language_data): Likewise.
5889 (asm_language_data): Likewise.
5890 (minimal_language_data): Likewise.
5891 * c-lang.h (c_watch_location_expression): Delete declaration.
5892 * d-lang.c (d_language_data): Delete la_watch_location_expression
5893 initializer.
5894 * f-lang.c (f_language_data): Likewise.
5895 * go-lang.c (go_language_data): Likewise.
5896 * language.c (language_defn::watch_location_expression): Member
5897 function implementation from c_watch_location_expression.
5898 (unknown_language_data): Delete la_watch_location_expression
5899 initializer.
5900 (auto_language_data): Likewise.
5901 * language.h (language_data): Delete la_watch_location_expression
5902 field.
5903 (language_defn::watch_location_expression): Declare new member
5904 function.
5905 * m2-lang.c (m2_language_data): Delete
5906 la_watch_location_expression initializer.
5907 * objc-lang.c (objc_language_data): Likewise.
5908 * opencl-lang.c (opencl_language_data): Likewise.
5909 * p-lang.c (pascal_language_data): Likewise.
5910 * rust-lang.c (rust_watch_location_expression): Rename to
5911 rust_language::watch_location_expression.
5912 (rust_language_data): Delete la_watch_location_expression
5913 initializer.
5914 (rust_language::watch_location_expression): New member function,
5915 implementation from rust_watch_location_expression.
5916
7e56227d
AB
59172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5918
5919 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5920 ada_language::collect_symbol_completion_matches.
5921 (ada_language_data): Delete la_collect_symbol_completion_matches
5922 initializer.
5923 (ada_language::collect_symbol_completion_matches): New member
5924 function, implementation from
5925 ada_collect_symbol_completion_matches.
5926 * c-lang.c (c_language_data): Delete
5927 la_collect_symbol_completion_matches initializer.
5928 (cplus_language_data): Likewise.
5929 (asm_language_data): Likewise.
5930 (minimal_language_data): Likewise.
5931 * d-lang.c (d_language_data): Likewise.
5932 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5933 f_language::collect_symbol_completion_matches.
5934 (f_language_data): Delete la_collect_symbol_completion_matches
5935 initializer.
5936 (f_language::collect_symbol_completion_matches) New member
5937 function, implementation from f_collect_symbol_completion_matches.
5938 * go-lang.c (go_language_data): Delete
5939 la_collect_symbol_completion_matches initializer.
5940 * language.c (unknown_language_data): Likewise.
5941 (auto_language_data): Likewise.
5942 * language.h (language_data): Delete
5943 la_collect_symbol_completion_matches field.
5944 (language_defn::collect_symbol_completion_matches): New member
5945 function.
5946 * m2-lang.c (m2_language_data): Delete
5947 la_collect_symbol_completion_matches initializer.
5948 * objc-lang.c (objc_language_data): Likewise.
5949 * opencl-lang.c (opencl_language_data): Likewise.
5950 * p-lang.c (pascal_language_data): Likewise.
5951 * rust-lang.c (rust_language_data): Likewise.
5952 * symtab.c (default_collect_symbol_completion_matches): Delete.
5953 (collect_symbol_completion_matches): Update call to
5954 collect_symbol_completion_matches.
5955 (collect_symbol_completion_matches_type): Likewise.
5956 * symtab.h (default_collect_symbol_completion_matches): Delete
5957 declaration.
5958
53fc67f8
AB
59592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5960
5961 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5962 (ada_language_data): Delete la_word_break_characters initializer.
5963 (ada_language::word_break_characters): New member function.
5964 * c-lang.c (c_language_data): Delete la_word_break_characters
5965 initializer.
5966 (cplus_language_data): Likewise.
5967 (asm_language_data): Likewise.
5968 (minimal_language_data): Likewise.
5969 * completer.c: Update global comment.
5970 (advance_to_expression_complete_word_point): Update call to
5971 word_break_characters.
5972 (complete_files_symbols): Likewise.
5973 (complete_line_internal_1): Likewise.
5974 (default_completer_handle_brkchars): Likewise.
5975 (skip_quoted_chars): Likewise.
5976 * d-lang.c (d_language_data): Delete la_word_break_characters
5977 initializer.
5978 * f-lang.c (f_word_break_characters): Delete.
5979 (f_language_data): Delete la_word_break_characters initializer.
5980 (f_language::word_break_characters): New member function.
5981 * go-lang.c (go_language_data): Delete la_word_break_characters
5982 initializer.
5983 * language.c (unknown_language_data): Likewise.
5984 (auto_language_data): Likewise.
5985 * language.h (default_word_break_characters): Move declaration to
5986 earlier in the file.
5987 (language_data): Delete la_word_break_characters field.
5988 (language_defn::word_break_characters): New member function.
5989 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5990 initializer.
5991 * objc-lang.c (objc_language_data): Likewise.
5992 * opencl-lang.c (opencl_language_data): Likewise.
5993 * p-lang.c (pascal_language_data): Likewise.
5994 * rust-lang.c (rust_language_data): Likewise.
5995
c9debfb9
AB
59962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5997
5998 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5999 (ada_language_data): Delete la_get_symbol_name_matcher
6000 initializer.
6001 (language_defn::get_symbol_name_matcher_inner): New member
6002 function.
6003 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6004 initializer.
6005 (cplus_language_data): Likewise.
6006 (cplus_language::get_symbol_name_matcher_inner): New member
6007 function.
6008 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6009 (minimal_language_data): Likewise.
6010 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6011 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6012 initializer.
6013 * dictionary.c (iter_match_first_hashed): Update call to
6014 get_symbol_name_matcher.
6015 (iter_match_next_hashed): Likewise.
6016 (iter_match_next_linear): Likewise.
6017 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6018 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6019 initializer.
6020 (f_language::get_symbol_name_matcher_inner): New member function.
6021 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6022 initializer.
6023 * language.c (default_symbol_name_matcher): Update header comment,
6024 make static.
6025 (language_defn::get_symbol_name_matcher): New definition.
6026 (language_defn::get_symbol_name_matcher_inner): Likewise.
6027 (get_symbol_name_matcher): Delete.
6028 (unknown_language_data): Delete la_get_symbol_name_matcher
6029 initializer.
6030 (auto_language_data): Likewise.
6031 * language.h (language_data): Delete la_get_symbol_name_matcher
6032 field.
6033 (language_defn::get_symbol_name_matcher): New member function.
6034 (language_defn::get_symbol_name_matcher_inner): Likewise.
6035 (default_symbol_name_matcher): Delete declaration.
6036 * linespec.c (find_methods): Update call to
6037 get_symbol_name_matcher.
6038 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6039 initializer.
6040 * minsyms.c (lookup_minimal_symbol): Update call to
6041 get_symbol_name_matcher.
6042 (iterate_over_minimal_symbols): Likewise.
6043 * objc-lang.c (objc_language_data): Delete
6044 la_get_symbol_name_matcher initializer.
6045 * opencl-lang.c (opencl_language_data): Likewise.
6046 * p-lang.c (pascal_language_data): Likewise.
6047 * psymtab.c (psymbol_name_matches): Update call to
6048 get_symbol_name_matcher.
6049 * rust-lang.c (rust_language_data): Delete
6050 la_get_symbol_name_matcher initializer.
6051 * symtab.c (symbol_matches_search_name): Update call to
6052 get_symbol_name_matcher.
6053 (compare_symbol_name): Likewise.
6054
9a49ad8c
AB
60552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6056
6057 * ada-lang.c (ada_language_data): Delete la_compute_program
6058 initializer.
6059 * c-lang.c (c_language_data): Likewise.
6060 (c_language::compute_program): New member function.
6061 (cplus_language_data): Delete la_compute_program initializer.
6062 (cplus_language::compute_program): New member function.
6063 (asm_language_data): Delete la_compute_program initializer.
6064 (minimal_language_data): Likewise.
6065 * c-lang.h (c_compute_program): Update comment.
6066 (cplus_compute_program): Likewise.
6067 * compile/compile-c-support.c (c_compute_program): Likewise.
6068 (cplus_compute_program): Likewise.
6069 * compile/compile.c (compile_to_object): Update call to
6070 la_compute_program.
6071 * d-lang.c (d_language_data): Delete la_compute_program
6072 initializer.
6073 * f-lang.c (f_language_data): Likewise.
6074 * go-lang.c (go_language_data): Likewise.
6075 * language.c (unknown_language_data): Likewise.
6076 (auto_language_data): Likewise.
6077 * language.h (language_data): Delete la_compute_program field.
6078 (language_defn::compute_program): New member function.
6079 * m2-lang.c (m2_language_data): Delete la_compute_program
6080 initializer.
6081 * objc-lang.c (objc_language_data): Likewise.
6082 * opencl-lang.c (opencl_language_data): Likewise.
6083 * p-lang.c (pascal_language_data): Likewise.
6084 * rust-lang.c (rust_language_data): Likewise.
6085
eff93b4d
AB
60862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6087
6088 * ada-lang.c (ada_language_data) Delete
6089 la_class_name_from_physname initializer.
6090 * c-lang.c (c_language_data): Likewise.
6091 (cplus_language_data): Likewise.
6092 (cplus_language::class_name_from_physname): New member function.
6093 (asm_language_data): Delete la_class_name_from_physname
6094 initializer.
6095 (minimal_language_data): Likewise.
6096 * d-lang.c (d_language_data): Likewise.
6097 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6098 method on language_defn class.
6099 (guess_full_die_structure_name): Likewise.
6100 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6101 initializer.
6102 * go-lang.c (go_language_data): Likewise.
6103 * language.c (language_class_name_from_physname): Delete.
6104 (unk_lang_class_name): Delete.
6105 (unknown_language_data): Delete la_class_name_from_physname
6106 initializer.
6107 (auto_language_data): Likewise.
6108 * language.h (language_data): Delete la_class_name_from_physname
6109 field.
6110 (language_defn::class_name_from_physname): New function.
6111 (language_class_name_from_physname): Delete declaration.
6112 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6113 initializer.
6114 * objc-lang.c (objc_language_data): Likewise.
6115 * opencl-lang.c (opencl_language_data): Likewise.
6116 * p-lang.c (pascal_language_data): Likewise.
6117 * rust-lang.c (rust_language_data): Likewise.
6118
de543742
TT
61192020-06-16 Tom Tromey <tom@tromey.com>
6120
6121 * tui/tui-data.h (STATUS_NAME): New macro.
6122 * tui/tui-layout.c (tui_remove_some_windows)
6123 (initialize_known_windows, tui_register_window)
6124 (tui_layout_split::remove_windows, initialize_layouts)
6125 (tui_new_layout_command): Don't use hard-coded window names.
6126
a350efd4
TT
61272020-06-16 Tom Tromey <tom@tromey.com>
6128
6129 PR tui/25348:
6130 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6131 tui_initialize_readline. Only run once. Call rl_initialize.
6132 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6133 tui_initialize_readline.
6134 * tui/tui-io.c (tui_setup_io): Call
6135 tui_ensure_readline_initialized.
6136 * tui/tui-interp.c (tui_interp::init): Update.
6137
39ec0490
TT
61382020-06-16 Tom Tromey <tom@tromey.com>
6139
6140 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6141 Also preserve the status window.
6142
d2d1ea20
TT
61432020-06-16 Tom Tromey <tom@tromey.com>
6144
6145 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6146 where m_window==nullptr.
6147
66920317
TT
61482020-06-15 Tom Tromey <tromey@adacore.com>
6149
6150 * windows-nat.c (windows_nat::handle_output_debug_string):
6151 Update.
6152 (windows_nat::handle_ms_vc_exception): Update.
6153 * target.h (target_read_string): Change API.
6154 * target.c (target_read_string): Change API.
6155 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6156 Update.
6157 * solib-frv.c (frv_current_sos): Update.
6158 * solib-dsbt.c (dsbt_current_sos): Update.
6159 * solib-darwin.c (darwin_current_sos): Update.
6160 * linux-thread-db.c (inferior_has_bug): Update.
6161 * expprint.c (print_subexp_standard): Update.
6162 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6163 (ada_exception_message_1): Update.
6164
a5d871dd
TT
61652020-06-15 Tom Tromey <tromey@adacore.com>
6166
6167 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6168
670e35fa
TT
61692020-06-15 Tom Tromey <tromey@adacore.com>
6170
6171 * valprint.c (read_string): Update comment.
6172 * target.c (MIN): Remove.
6173 (target_read_string): Rewrite.
6174
f5272a3b
TT
61752020-06-15 Tom Tromey <tromey@adacore.com>
6176
6177 * corefile.c (read_memory_string): Remove.
6178 * ada-valprint.c (ada_value_print_ptr): Update.
6179 * ada-lang.h (ada_tag_name): Change return type.
6180 * ada-lang.c (type_from_tag): Update.
6181 (ada_tag_name_from_tsd): Change return type. Use
6182 target_read_string.
6183 (ada_tag_name): Likewise.
6184 * gdbcore.h (read_memory_string): Don't declare.
6185
2c074f49
HD
61862020-06-14 Hannes Domani <ssbssa@yahoo.de>
6187
6188 * symtab.c (rbreak_command): Ignore Windows drive colon.
6189
6a17d503
SM
61902020-06-12 Simon Marchi <simon.marchi@efficios.com>
6191
6192 * NEWS: Mention removed GDBserver host support.
6193
453c733f
NC
61942020-06-12 Nelson Chu <nelson.chu@sifive.com>
6195
6196 * features/riscv/rebuild-csr-xml.sh: Updated.
6197
2b4e6a3f
TT
61982020-06-11 Tom Tromey <tom@tromey.com>
6199
6200 PR gdb/18318:
6201 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6202
4412332f
JG
62032020-06-09 Jonny Grant <jg@jguk.org>
62042020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6205
6206 * main.c (captured_main_1): Don't print new line after help.
6207 (print_gdb_help): add mailing list and IRC channel information
6208 to --help. Add new lines between items in the footer. Remove
6209 quotes around bug url.
6210
2f33032a
KS
62112020-06-11 Keith Seitz <keiths@redhat.com>
6212
6213 PR gdb/21356
6214 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6215 Resolve typedefs for type length calculations.
6216
7ab96794
TV
62172020-06-10 Tom de Vries <tdevries@suse.de>
6218
6219 PR ada/24713
6220 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6221 (write_psymbols): Enable .gdb_index for ada.
6222 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6223 ada.
6224
e5f3ece2
TV
62252020-06-10 Tom de Vries <tdevries@suse.de>
6226
6227 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6228 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6229 namei" instead of "const char *name" argument.
6230 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6231 dw2_symtab_iter_init.
6232
940da03e
SM
62332020-06-08 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6236 to use type::field and field::type instead.
6237
b6cdac4b
SM
62382020-06-08 Simon Marchi <simon.marchi@efficios.com>
6239
6240 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6241 to use field::type instead.
6242
5d14b6e5
SM
62432020-06-08 Simon Marchi <simon.marchi@efficios.com>
6244
6245 * gdbtypes.h (struct field) <type, set_type>: New methods.
6246 Rename `type` field to...
6247 <m_type>: ... this. Change references throughout to use type or
6248 set_type methods.
6249 (FIELD_TYPE): Use field::type. Change call sites that modify
6250 the field's type to use field::set_type instead.
6251
3d967001
SM
62522020-06-08 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6255 to use type::index_type instead.
6256
262abc0d
SM
62572020-06-08 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6260 methods.
6261 (TYPE_INDEX_TYPE): Use type::index_type.
6262 * gdbtypes.c (create_array_type_with_stride): Likewise.
6263
82836c92
TT
62642020-06-07 Tom Tromey <tom@tromey.com>
6265
6266 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6267 parameter.
6268 (generic_value_print): Update.
6269
940dace9
AB
62702020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6271
6272 Revert commit 982a38f60b0.
6273 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6274
982a38f6
AB
62752020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6276
6277 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6278 avoid use after free.
6279
82f06518
TV
62802020-06-05 Tom de Vries <tdevries@suse.de>
6281
6282 * NEWS: Fix typos.
6283
f8c41851
SM
62842020-06-04 Simon Marchi <simon.marchi@efficios.com>
6285
6286 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6287 the per_bfd object.
6288 (dwarf2_read_debug_names): Likewise.
6289 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6290 object when re-using a per_bfd object with an index.
6291
f9b5d5ea
TV
62922020-06-03 Tom de Vries <tdevries@suse.de>
6293
6294 PR symtab/26046
6295 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6296 children for C++.
6297 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6298 DW_TAG_subprogram.
6299
f6eee2d0
AB
63002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6301
6302 * ada-lang.c (ada_language_data): Delete skip_trampoline
6303 initializer.
6304 * c-lang.c (c_language_data): Likewise.
6305 (cplus_language_data): Likewise.
6306 (cplus_language::skip_trampoline): New member function.
6307 (asm_language_data): Delete skip_trampoline initializer.
6308 (minimal_language_data): Likewise.
6309 * d-lang.c (d_language_data): Likewise.
6310 * f-lang.c (f_language_data): Likewise.
6311 * go-lang.c (go_language_data): Likewise.
6312 * language.c (unk_lang_trampoline): Delete function.
6313 (skip_language_trampoline): Update.
6314 (unknown_language_data): Delete skip_trampoline initializer.
6315 (auto_language_data): Likewise.
6316 * language.h (language_data): Delete skip_trampoline field.
6317 (language_defn::skip_trampoline): New function.
6318 * m2-lang.c (m2_language_data): Delete skip_trampoline
6319 initializer.
6320 * objc-lang.c (objc_skip_trampoline): Delete function, move
6321 implementation to objc_language::skip_trampoline.
6322 (objc_language_data): Delete skip_trampoline initializer.
6323 (objc_language::skip_trampoline): New member function with
6324 implementation from objc_skip_trampoline.
6325 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6326 initializer.
6327 * p-lang.c (pascal_language_data): Likewise.
6328 * rust-lang.c (rust_language_data): Likewise.
6329
0a50df5d
AB
63302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6331
6332 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6333 (ada_language::demangle): New member function.
6334 * c-lang.c (c_language_data): Delete la_demangle initializer.
6335 (cplus_language_data): Delete la_demangle initializer.
6336 (cplus_language::demangle): New member function.
6337 (asm_language_data): Delete la_demangle initializer.
6338 (minimal_language_data): Delete la_demangle initializer.
6339 * d-lang.c (d_language_data): Delete la_demangle initializer.
6340 (d_language::demangle): New member function.
6341 * f-lang.c (f_language_data): Delete la_demangle initializer.
6342 (f_language::demangle): New member function.
6343 * go-lang.c (go_language_data): Delete la_demangle initializer.
6344 (go_language::demangle): New member function.
6345 * language.c (language_demangle): Update.
6346 (unk_lang_demangle): Delete.
6347 (unknown_language_data): Delete la_demangle initializer.
6348 (unknown_language::demangle): New member function.
6349 (auto_language_data): Delete la_demangle initializer.
6350 (auto_language::demangle): New member function.
6351 * language.h (language_data): Delete la_demangle field.
6352 (language_defn::demangle): New function.
6353 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6354 * objc-lang.c (objc_language_data): Delete la_demangle
6355 initializer.
6356 (objc_language::demangle): New member function.
6357 * opencl-lang.c (opencl_language_data): Delete la_demangle
6358 initializer.
6359 * p-lang.c (pascal_language_data): Likewise.
6360 * rust-lang.c (rust_language_data): Likewise.
6361 (rust_language::demangle): New member function.
6362
fbfb0a46
AB
63632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6364
6365 * ada-lang.c (ada_language_data): Delete la_print_type
6366 initializer.
6367 (ada_language::print_type): New member function.
6368 * c-lang.c (c_language_data): Delete la_print_type initializer.
6369 (c_language::print_type): New member function.
6370 (cplus_language_data): Delete la_print_type initializer.
6371 (cplus_language::print_type): New member function.
6372 (asm_language_data): Delete la_print_type initializer.
6373 (asm_language::print_type): New member function.
6374 (minimal_language_data): Delete la_print_type initializer.
6375 (minimal_language::print_type): New member function.
6376 * d-lang.c (d_language_data): Delete la_print_type initializer.
6377 (d_language::print_type): New member function.
6378 * f-lang.c (f_language_data): Delete la_print_type initializer.
6379 (f_language::print_type): New member function.
6380 * go-lang.c (go_language_data): Delete la_print_type initializer.
6381 (go_language::print_type): New member function.
6382 * language.c (unk_lang_print_type): Delete.
6383 (unknown_language_data): Delete la_print_type initializer.
6384 (unknown_language::print_type): New member function.
6385 (auto_language_data): Delete la_print_type initializer.
6386 (auto_language::print_type): New member function.
6387 * language.h (language_data): Delete la_print_type field.
6388 (language_defn::print_type): New function.
6389 (LA_PRINT_TYPE): Update.
6390 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6391 (m2_language::print_type): New member function.
6392 * objc-lang.c (objc_language_data): Delete la_print_type
6393 initializer.
6394 (objc_language::print_type): New member function.
6395 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6396 to opencl_language::print_type.
6397 (opencl_language_data): Delete la_print_type initializer.
6398 (opencl_language::print_type): New member function, implementation
6399 from opencl_print_type.
6400 * p-lang.c (pascal_language_data): Delete la_print_type
6401 initializer.
6402 (pascal_language::print_type): New member function.
6403 * rust-lang.c (rust_print_type): Delete, implementation moved to
6404 rust_language::print_type.
6405 (rust_language_data): Delete la_print_type initializer.
6406 (rust_language::print_type): New member function, implementation
6407 from rust_print_type.
6408
6f827019
AB
64092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6410
6411 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6412 implementation moves to...
6413 (ada_language::sniff_from_mangled_name): ...here. Update return
6414 type.
6415 (ada_language_data): Delete la_sniff_from_mangled_name
6416 initializer.
6417 * c-lang.c (c_language_data): Likewise.
6418 (cplus_language_data): Likewise.
6419 (cplus_language::sniff_from_mangled_name): New member function,
6420 implementation taken from gdb_sniff_from_mangled_name.
6421 (asm_language_data): Delete la_sniff_from_mangled_name
6422 initializer.
6423 (minimal_language_data): Likewise.
6424 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6425 implementation moves to cplus_language::sniff_from_mangled_name.
6426 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6427 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6428 moves to...
6429 (d_language::sniff_from_mangled_name): ...here.
6430 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6431 * f-lang.c (f_language_data): Likewise.
6432 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6433 moves to...
6434 (go_language::sniff_from_mangled_name): ...here.
6435 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6436 * language.c (language_sniff_from_mangled_name): Delete.
6437 (unknown_language_data): Delete la_sniff_from_mangled_name
6438 initializer.
6439 (auto_language_data): Likewise.
6440 * language.h (language_data): Delete la_sniff_from_mangled_name
6441 field.
6442 (language_defn::sniff_from_mangled_name): New function.
6443 (language_sniff_from_mangled_name): Delete declaration.
6444 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6445 field.
6446 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6447 implementation moves to...
6448 (objc_language::sniff_from_mangled_name): ...here.
6449 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6450 * opencl-lang.c (opencl_language_data): Likewise.
6451 * p-lang.c (pascal_language_data): Likewise.
6452 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6453 implementation moves to...
6454 (rust_language::sniff_from_mangled_name): ...here.
6455 (rust_language_data): Delete la_sniff_from_mangled_name
6456 initializer.
6457 * symtab.c (symbol_find_demangled_name): Call
6458 sniff_from_mangled_name member function.
6459
fb8006fd
AB
64602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6461
6462 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6463 initializer.
6464 * c-lang.c (c_language_data): Likewise.
6465 (cplus_language_data): Likewise.
6466 (cplus_language::search_name_hash): New member function.
6467 (asm_language_data): Delete la_search_name_hash initializer.
6468 (minimal_language_data): Likewise.
6469 * d-lang.c (d_language_data): Likewise.
6470 * dictionary.c (default_search_name_hash): Rename to...
6471 (language_defn::search_name_hash): ...this.
6472 * f-lang.c (f_language_data): Likewise.
6473 (f_language::search_name_hash): New member function.
6474 * go-lang.c (go_language_data): Delete la_search_name_hash
6475 initializer.
6476 * language.c (unknown_language_data): Likewise.
6477 (auto_language_data): Likewise.
6478 * language.h (struct language_data): Delete la_search_name_hash
6479 field.
6480 (language_defn::search_name_hash): Declare new member function.
6481 (default_search_name_hash): Delete declaration.
6482 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6483 initializer.
6484 * objc-lang.c (objc_language_data): Likewise.
6485 * opencl-lang.c (opencl_language_data): Likewise.
6486 * p-lang.c (pascal_language_data): Likewise.
6487 * rust-lang.c (rust_language_data): Likewise.
6488 * symtab.c (search_name_hash): Update call.
6489
8e25bafe
AB
64902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6491
6492 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6493 initializer.
6494 * c-lang.c (class compile_instance): Declare.
6495 (c_language_data): Delete la_get_compile_instance initializer.
6496 (c_language::get_compile_instance): New member function.
6497 (cplus_language_data): Delete la_get_compile_instance initializer.
6498 (cplus_language::get_compile_instance): New member function.
6499 (asm_language_data): Delete la_get_compile_instance initializer.
6500 (minimal_language_data): Likewise.
6501 * c-lang.h (c_get_compile_context): Update comment.
6502 (cplus_get_compile_context): Update comment.
6503 * compile/compile.c (compile_to_object): Update calls, don't rely
6504 on function pointer being NULL.
6505 * d-lang.c (d_language_data): Delete la_get_compile_instance
6506 initializer.
6507 * f-lang.c (f_language_data): Likewise.
6508 * go-lang.c (go_language_data): Likewise.
6509 * language.c (unknown_language_data): Likewise.
6510 (auto_language_data): Likewise.
6511 * language.h (language_data): Delete la_get_compile_instance field.
6512 (language_defn::get_compile_instance): New member function.
6513 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6514 initializer.
6515 * objc-lang.c (objc_language_data): Likewise.
6516 * opencl-lang.c (opencl_language_data): Likewise.
6517 * p-lang.c (pascal_language_data): Likewise.
6518 * rust-lang.c (rust_language_data): Likewise.
6519
4009ee92
AB
65202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6521
6522 * ada-lang.c (ada_add_all_symbols): Update comment.
6523 (ada_iterate_over_symbols): Delete, move implementation to...
6524 (ada_language::iterate_over_symbols): ...here, a new member
6525 function, rewrite to use range based for loop.
6526 (ada_language_data): Delete la_iterate_over_symbols initializer.
6527 * c-lang.c (c_language_data): Likewise.
6528 (cplus_language_data): Likewise.
6529 (asm_language_data): Likewise.
6530 (minimal_language_data): Likewise.
6531 * d-lang.c (d_language_data): Likewise.
6532 * f-lang.c (f_language_data): Likewise.
6533 * go-lang.c (go_language_data): Likewise.
6534 * language.c (unknown_language_data): Likewise.
6535 (auto_language_data): Likewise.
6536 * language.h (language_data): Delete la_iterate_over_symbols field.
6537 (language_defn::iterate_over_symbols): New member function.
6538 (LA_ITERATE_OVER_SYMBOLS): Update.
6539 * linespec.c (iterate_over_all_matching_symtabs): Update.
6540 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6541 initializer.
6542 * objc-lang.c (objc_language_data): Likewise.
6543 * opencl-lang.c (opencl_language_data): Likewise.
6544 * p-lang.c (pascal_language_data): Likewise.
6545 * rust-lang.c (rust_language_data): Likewise.
6546
54f4ca46
AB
65472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6548
6549 * ada-lang.c (ada_language_data): Delete
6550 la_lookup_transparent_type initializer.
6551 * c-lang.c (c_language_data): Likewise.
6552 (cplus_language_data): Likewise.
6553 (cplus_language::lookup_transparent_type): New member function.
6554 (asm_language_data): Delete la_lookup_transparent_type
6555 initializer.
6556 (minimal_language_data): Likewise.
6557 * d-lang.c (d_language_data): Likewise.
6558 * f-lang.c (f_language_data): Likewise.
6559 * go-lang.c (go_language_data): Likewise.
6560 * language.c (unknown_language_data): Likewise.
6561 (auto_language_data): Likewise.
6562 * language.h (struct language_data): Delete
6563 la_lookup_transparent_type field.
6564 (language_defn::lookup_transparent_type): New member function.
6565 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6566 initializer.
6567 * objc-lang.c (objc_language_data): Likewise.
6568 * opencl-lang.c (opencl_language_data): Likewise.
6569 * p-lang.c (pascal_language_data): Likewise.
6570 * rust-lang.c (rust_language_data): Likewise.
6571 * symtab.c (symbol_matches_domain): Update call.
6572
1fb314aa
AB
65732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6574
6575 * ada-lang.c (ada_language_arch_info): Delete function, move
6576 implementation to...
6577 (ada_language::language_arch_info): ...here, a new member
6578 function.
6579 (ada_language_data): Delete la_language_arch_info.
6580 * c-lang.c (c_language_data): Likewise.
6581 (c_language::language_arch_info): New member function.
6582 (cplus_language_arch_info): Delete function, move
6583 implementation to...
6584 (cplus_language::language_arch_info): ...here, a new member
6585 function.
6586 (cplus_language_data): Delete la_language_arch_info.
6587 (asm_language_data): Likewise.
6588 (asm_language::language_arch_info): New member function.
6589 (minimal_language_data): Delete la_language_arch_info.
6590 (minimal_language::language_arch_info): New member function.
6591 * d-lang.c (d_language_arch_info): Delete function, move
6592 implementation to...
6593 (d_language::language_arch_info): ...here, a new member
6594 function.
6595 (d_language_data): Delete la_language_arch_info.
6596 * f-lang.c (f_language_arch_info): Delete function, move
6597 implementation to...
6598 (f_language::language_arch_info): ...here, a new member
6599 function.
6600 (f_language_data): Delete la_language_arch_info.
6601 * go-lang.c (go_language_arch_info): Delete function, move
6602 implementation to...
6603 (go_language::language_arch_info): ...here, a new member
6604 function.
6605 (go_language_data): Delete la_language_arch_info.
6606 * language.c (unknown_language_data): Likewise.
6607 (unknown_language::language_arch_info): New member function.
6608 (auto_language_data): Delete la_language_arch_info.
6609 (auto_language::language_arch_info): New member function.
6610 (language_gdbarch_post_init): Update call to
6611 la_language_arch_info.
6612 * language.h (language_data): Delete la_language_arch_info
6613 function pointer.
6614 (language_defn::language_arch_info): New function.
6615 * m2-lang.c (m2_language_arch_info): Delete function, move
6616 implementation to...
6617 (m2_language::language_arch_info): ...here, a new member
6618 function.
6619 (m2_language_data): Delete la_language_arch_info.
6620 * objc-lang.c (objc_language_arch_info): Delete function, move
6621 implementation to...
6622 (objc_language::language_arch_info): ...here, a new member
6623 function.
6624 (objc_language_data): Delete la_language_arch_info.
6625 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6626 implementation to...
6627 (opencl_language::language_arch_info): ...here, a new member
6628 function.
6629 (opencl_language_data): Delete la_language_arch_info.
6630 * p-lang.c (pascal_language_arch_info): Delete function, move
6631 implementation to...
6632 (pascal_language::language_arch_info): ...here, a new member
6633 function.
6634 (pascal_language_data): Delete la_language_arch_info.
6635 * rust-lang.c (rust_language_arch_info): Delete function, move
6636 implementation to...
6637 (rust_language::language_arch_info): ...here, a new member
6638 function.
6639 (rust_language_data): Delete la_language_arch_info.
6640
48448202
AB
66412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6642
6643 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6644 initializer.
6645 * c-lang.c (c_language_data): Likewise.
6646 (cplus_language_data): Likewise.
6647 (cplus_language::pass_by_reference_info): New method.
6648 (asm_language_data): Delete la_pass_by_reference initializer.
6649 (minimal_language_data): Likewise.
6650 * cp-abi.c (cp_pass_by_reference): Remove use of
6651 default_pass_by_reference.
6652 * d-lang.c (d_language_data): Likewise.
6653 * f-lang.c (f_language_data): Likewise.
6654 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6655 default_pass_by_reference.
6656 * go-lang.c (go_language_data): Likewise.
6657 * language.c (language_pass_by_reference): Update.
6658 (default_pass_by_reference): Delete.
6659 (unknown_language_data): Delete la_pass_by_reference
6660 initializer.
6661 (auto_language_data): Likewise.
6662 * language.h (struct language_data): Delete la_pass_by_reference
6663 field.
6664 (language_defn::pass_by_reference_info): New member function.
6665 (default_pass_by_reference): Delete declaration.
6666 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6667 initializer.
6668 * objc-lang.c (objc_language_data): Likewise.
6669 * opencl-lang.c (opencl_language_data): Likewise.
6670 * p-lang.c (pascal_language_data): Likewise.
6671 * rust-lang.c (rust_language_data): Likewise.
6672
15e5fd35
AB
66732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6674
6675 * ada-lang.c (ada_read_var_value): Delete function, move
6676 implementation to...
6677 (ada_language::read_var_value): ...here.
6678 (ada_language_data): Delete la_read_var_value initializer.
6679 * c-lang.c (c_language_data): Likewise.
6680 (cplus_language_data): Likewise.
6681 (minimal_language_data): Likewise.
6682 * d-lang.c (d_language_data): Likewise.
6683 * f-lang.c (f_language_data): Likewise.
6684 * findvar.c (default_read_var_value): Rename to...
6685 (language_defn::read_var_value): ...this.
6686 * findvar.c (read_var_value): Update header comment, and change to
6687 call member function instead of function pointer.
6688 * go-lang.c (go_language_data): Likewise.
6689 * language.c (unknown_language_data): Delete la_read_var_value
6690 initializer.
6691 (auto_language_data): Likewise.
6692 * language.h (struct language_data): Delete la_read_var_value
6693 field.
6694 (language_defn::read_var_value): New member function.
6695 (default_read_var_value): Delete declaration.
6696 * m2-lang.c (m2_language_data): Delete la_read_var_value
6697 initializer.
6698 * objc-lang.c (objc_language_data): Likewise.
6699 * opencl-lang.c (opencl_language_data): Likewise.
6700 * p-lang.c (pascal_language_data): Likewise.
6701 * rust-lang.c (rust_language_data): Likewise.
6702 * value.h (default_read_var_value): Delete declaration.
6703
5bd40f2a
AB
67042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * ada-lang.c (ada_print_array_index): Delete function, move
6707 implementation to...
6708 (ada_language::print_array_index): ...here.
6709 (ada_language_data): Delete la_print_array_index initializer.
6710 * c-lang.c (c_language_data): Likewise.
6711 (cplus_language_data): Likewise.
6712 (minimal_language_data): Likewise.
6713 * d-lang.c (d_language_data): Likewise.
6714 * f-lang.c (f_language_data): Likewise.
6715 * go-lang.c (go_language_data): Likewise.
6716 * language.c (default_print_array_index): Delete function, move
6717 implementation to...
6718 (language_defn::print_array_index): ...here.
6719 (unknown_language_data): Delete la_print_array_index initializer.
6720 (auto_language_data): Likewise.
6721 * language.h (struct language_data): Delete la_print_array_index
6722 field.
6723 (language_defn::print_array_index): New member function.
6724 (LA_PRINT_ARRAY_INDEX): Update.
6725 (default_print_array_index): Delete declaration.
6726 * m2-lang.c (m2_language_data): Delete la_print_array_index
6727 initializer.
6728 * objc-lang.c (objc_language_data): Likewise.
6729 * opencl-lang.c (opencl_language_data): Likewise.
6730 * p-lang.c (pascal_language_data): Likewise.
6731 * rust-lang.c (rust_language_data): Likewise.
6732
0874fd07
AB
67332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6734
6735 * gdb/ada-lang.c (ada_language_defn): Convert to...
6736 (ada_language_data): ...this.
6737 (class ada_language): New class.
6738 (ada_language_defn): New static global.
6739 * gdb/c-lang.c (c_language_defn): Convert to...
6740 (c_language_data): ...this.
6741 (class c_language): New class.
6742 (c_language_defn): New static global.
6743 (cplus_language_defn): Convert to...
6744 (cplus_language_data): ...this.
6745 (class cplus_language): New class.
6746 (cplus_language_defn): New static global.
6747 (asm_language_defn): Convert to...
6748 (asm_language_data): ...this.
6749 (class asm_language): New class.
6750 (asm_language_defn): New static global.
6751 (minimal_language_defn): Convert to...
6752 (minimal_language_data): ...this.
6753 (class minimal_language): New class.
6754 (minimal_language_defn): New static global.
6755 * gdb/d-lang.c (d_language_defn): Convert to...
6756 (d_language_data): ...this.
6757 (class d_language): New class.
6758 (d_language_defn): New static global.
6759 * gdb/f-lang.c (f_language_defn): Convert to...
6760 (f_language_data): ...this.
6761 (class f_language): New class.
6762 (f_language_defn): New static global.
6763 * gdb/go-lang.c (go_language_defn): Convert to...
6764 (go_language_data): ...this.
6765 (class go_language): New class.
6766 (go_language_defn): New static global.
6767 * gdb/language.c (unknown_language_defn): Remove declaration.
6768 (current_language): Initialize to nullptr, real initialization is
6769 moved to _initialize_language.
6770 (languages): Delete global.
6771 (language_defn::languages): Define.
6772 (set_language_command): Use language_defn::languages.
6773 (set_language): Likewise.
6774 (range_error): Likewise.
6775 (language_enum): Likewise.
6776 (language_def): Likewise.
6777 (add_set_language_command): Use language_def::languages for the
6778 language list, and language_def to lookup language pointers.
6779 (skip_language_trampoline): Use language_defn::languages.
6780 (unknown_language_defn): Convert to...
6781 (unknown_language_data): ...this.
6782 (class unknown_language): New class.
6783 (unknown_language_defn): New static global.
6784 (auto_language_defn): Convert to...
6785 (auto_language_data): ...this.
6786 (class auto_language): New class.
6787 (auto_language_defn): New static global.
6788 (language_gdbarch_post_init): Use language_defn::languages.
6789 (_initialize_language): Initialize current_language.
6790 * gdb/language.h (struct language_defn): Rename to...
6791 (struct language_data): ...this.
6792 (struct language_defn): New.
6793 (auto_language_defn): Delete.
6794 (unknown_language_defn): Delete.
6795 (minimal_language_defn): Delete.
6796 (ada_language_defn): Delete.
6797 (asm_language_defn): Delete.
6798 (c_language_defn): Delete.
6799 (cplus_language_defn): Delete.
6800 (d_language_defn): Delete.
6801 (f_language_defn): Delete.
6802 (go_language_defn): Delete.
6803 (m2_language_defn): Delete.
6804 (objc_language_defn): Delete.
6805 (opencl_language_defn): Delete.
6806 (pascal_language_defn): Delete.
6807 (rust_language_defn): Delete.
6808 * gdb/m2-lang.c (m2_language_defn): Convert to...
6809 (m2_language_data): ...this.
6810 (class m2_language): New class.
6811 (m2_language_defn): New static global.
6812 * gdb/objc-lang.c (objc_language_defn): Convert to...
6813 (objc_language_data): ...this.
6814 (class objc_language): New class.
6815 (objc_language_defn): New static global.
6816 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6817 (opencl_language_data): ...this.
6818 (class opencl_language): New class.
6819 (opencl_language_defn): New static global.
6820 * gdb/p-lang.c (pascal_language_defn): Convert to...
6821 (pascal_language_data): ...this.
6822 (class pascal_language): New class.
6823 (pascal_language_defn): New static global.
6824 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6825 language pointer, update comment format.
6826 * gdb/rust-lang.c (rust_language_defn): Convert to...
6827 (rust_language_data): ...this.
6828 (class rust_language): New class.
6829 (rust_language_defn): New static global.
6830
1313c56e
AB
68312020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6832
6833 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6834 member variable.
6835 <m_stmt_at_address>: New member variable.
6836 (lnp_state_machine::record_line): Don't record some lines, update
6837 tracking of is_stmt at the same address.
6838 (lnp_state_machine::lnp_state_machine): Initialise new member
6839 variables.
6840
b7ed9f3d
ST
68412020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6842
6843 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6844 "-include gnu-nat-mig.h".
6845 * gnu-nat-mig.h: New file.
6846 * gnu-nat.c: Include "gnu-nat-mig.h".
6847 (exc_server, msg_reply_server, notify_server,
6848 process_reply_server): Remove declarations.
6849
14a8ad62
ST
68502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6851
6852 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6853 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6854 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6855 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6856 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6857 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6858 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6859 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6860 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6861 to gnu_nat_target class.
6862 * gnu-nat.c: Likewise.
6863 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6864 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6865 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6866 object.
6867 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6868 instead of `gnu_target'.
6869
0af5e106
ST
68702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6871
6872 * i386-gnu-tdep.c: Include "gdbcore.h"
6873 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6874 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6875 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6876 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6877 i386_gnu_sigcontext_addr): New functions
6878 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6879 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6880 tdep.
6881
078f2fc9
ST
68822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6883
6884 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6885 before fork_inferior call. Avoid calling it if target_is_pushed returns
6886 true.
6887
53dff92c
ST
68882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6889
6890 * gnu-nat.h (gnu_target): New variable declaration.
6891 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6892 gnu_target.
6893 * gnu-nat.c (gnu_target): New variable.
6894 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6895 add_thread_silent, and add_thread calls.
6896 (gnu_nat_target::create_inferior): Pass gnu_target to
6897 add_thread_silent, thread_change_ptid call.
6898 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6899 call.
6900
5a8b8627
ST
69012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6902
6903 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6904 (gnu_nat_target::find_memory_regions): Remove unused
6905 `old_address' variable.
6906
366f550a
ST
69072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6908
6909 * gnu-nat.c: Include "gdbarch.h".
6910
f14871bf
ST
69112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6912
6913 * reply_mig_hack.awk (Error return): Cast function through
6914 void *, to bypass compiler function call check.
6915
c6887cfb
ST
69162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6917
6918 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6919 $(srcdir)/reply_mig_hack.awk.
6920
6930bffe
ST
69212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6922
6923 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6924
112c22ed
JG
69252020-05-30 Jonny Grant <jg@jguk.org>
6926
6927 * configure.ac (ACX_BUGURL): change bug URL to https.
6928
f68f85b5
PA
69292020-05-30 Pedro Alves <palves@redhat.com>
6930
6931 * cp-support.c (replace_typedefs_template): New.
6932 (replace_typedefs_qualified_name): Handle
6933 DEMANGLE_COMPONENT_TEMPLATE.
6934
976ca316
SM
69352020-05-29 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6938 dwarf2/index-cache.h, dwarf2/index-write.c,
6939 dwarf2/index-write.h, dwarf2/line-header.c,
6940 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6941 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6942 variables and fields from `dwarf2_per_objfile` to just
6943 `per_objfile` throughout.
6944
989ade05
SM
69452020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6946
6947 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6948 <push_dwarf_reg_entry_value>: Add comment.
6949
c47bae85
KB
69502020-05-28 Kevin Buettner <kevinb@redhat.com>
6951 Keith Seitz <keiths@redhat.com>
6952
6953 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6954 instead of PyEval_ReleaseLock.
6955 (class gdbpy_gil): Move to earlier in file.
6956 (finalize_python): Set gdb_python_initialized.
6957 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6958 when not initialized.
6959
44486dcf
SM
69602020-05-28 Simon Marchi <simon.marchi@efficios.com>
6961
6962 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6963 <push_dwarf_reg_entry_value>: Remove assert. Override
6964 per_objfile with caller_per_objfile.
6965
f030440d
TV
69662020-05-28 Tom de Vries <tdevries@suse.de>
6967
6968 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6969 PR gold/15646 workaround to symbol kind "type".
6970
f0fbb768
TT
69712020-05-27 Tom Tromey <tromey@adacore.com>
6972
6973 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6974
af0b2a3e
TT
69752020-05-27 Tom Tromey <tromey@adacore.com>
6976
6977 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6978 Use htab_find_with_hash.
6979 <add_abbrev>: Remove "abbrev_number" parameter.
6980 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6981 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6982 (hash_abbrev): Add comment.
6983 (abbrev_table::lookup_abbrev): Move to header file.
6984 (abbrev_table::read): Update.
6985
7d00ffec
TT
69862020-05-27 Tom Tromey <tromey@adacore.com>
6987
6988 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6989 method.
6990 <canonical_name>: New member.
6991 <raw_name>: Rename from "name".
6992 (partial_die_info): Initialize canonical_name.
6993 (scan_partial_symbols): Check raw_name.
6994 (partial_die_parent_scope, partial_die_full_name)
6995 (add_partial_symbol, add_partial_subprogram)
6996 (add_partial_enumeration, load_partial_dies): Use "name" method.
6997 (partial_die_info::name): New method.
6998 (partial_die_info::read, guess_partial_die_structure_name)
6999 (partial_die_info::fixup): Update.
7000
697bba18
TT
70012020-05-27 Tom Tromey <tromey@adacore.com>
7002
7003 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7004 <get_ref_die_offset>: Inline.
7005 <get_ref_die_offset_complaint>: New method.
7006 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7007 (attribute::get_ref_die_offset_complaint): Rename from
7008 get_ref_die_offset. Just issue complaint.
7009
c17ace43
HD
70102020-05-27 Hannes Domani <ssbssa@yahoo.de>
7011
7012 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7013
96445f0b
HD
70142020-05-27 Hannes Domani <ssbssa@yahoo.de>
7015
7016 * exec.c (exec_file_attach): Use errno value of first openp failure.
7017
ac637ec3
HD
70182020-05-27 Hannes Domani <ssbssa@yahoo.de>
7019
7020 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7021 Don't close thread handle.
7022
17ee85fc
TT
70232020-05-27 Tom Tromey <tom@tromey.com>
7024 Simon Marchi <simon.marchi@efficios.com>
7025
7026 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7027 shared_ptr.
7028 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7029 member.
7030 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7031 dwarf2_per_bfd_objfile_data_key>: New globals.
7032 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7033 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7034 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7035 shared.
7036 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7037 short-circuit when sharing.
7038 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7039 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7040
39b16f87
SM
70412020-05-27 Simon Marchi <simon.marchi@efficios.com>
7042
7043 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7044 to...
7045 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7046 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7047
fcf23d5b
SM
70482020-05-27 Simon Marchi <simon.marchi@efficios.com>
7049
7050 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7051 build_name_components, find_name_components_bounds>:
7052 Add per_objfile parameter.
7053 (struct mapped_index) <symbol_name_at>: Likewise.
7054 (struct mapped_debug_names): Remove constructor.
7055 <dwarf2_per_objfile>: Remove field.
7056 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7057 (mapped_index_base::find_name_components_bounds,
7058 mapped_index_base::build_name_components,
7059 dw2_expand_symtabs_matching_symbol): Likewise.
7060 (class mock_mapped_index) <symbol_name_at>: Likewise.
7061 (check_match): Likewise.
7062 (check_find_bounds_finds): Likewise.
7063 (test_mapped_index_find_name_component_bounds): Update.
7064 (CHECK_MATCH): Update.
7065 (dw2_expand_symtabs_matching): Update.
7066 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7067 per_objfile parameter.
7068 <find_vec_in_debug_names>: Likewise.
7069 <m_per_objfile>: New field.
7070 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7071 parameter.
7072 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7073 (dw2_debug_names_iterator::next): Update.
7074 (dw2_debug_names_lookup_symbol): Update.
7075 (dw2_debug_names_expand_symtabs_for_function): Update.
7076 (dw2_debug_names_map_matching_symbols): Update.
7077 (dw2_debug_names_expand_symtabs_matching): Update.
7078 (dwarf2_read_debug_names): Update.
7079
7188ed02
SM
70802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7081
7082 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7083 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7084 move to dwarf2_per_objfile.
7085 <read_in_chain>: Remove.
7086 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7087 remove_all_cus, age_comp_units>: New methods.
7088 <m_dwarf2_cus>: New member.
7089 (struct dwarf2_per_cu_data) <cu>: Remove.
7090 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7091 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7092 moved to methods of dwarf2_per_objfile.
7093 (dwarf2_clear_marks): Remove.
7094 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7095 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7096 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7097 (dwarf2_per_objfile::remove_all_cus): New.
7098 (class free_cached_comp_units) <~free_cached_comp_units>:
7099 Update.
7100 (load_cu): Update.
7101 (dw2_do_instantiate_symtab): Adjust.
7102 (fill_in_sig_entry_from_dwo_entry): Adjust.
7103 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7104 (cutu_reader::cutu_reader): Likewise.
7105 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7106 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7107 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7108 and dwarf2_per_objfile::age_comp_units.
7109 (load_partial_comp_unit): Update.
7110 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7111 (process_queue): Likewise.
7112 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7113 backlink.
7114 (dwarf2_read_addr_index): Likewise.
7115 (follow_die_offset): Likewise.
7116 (dwarf2_fetch_die_loc_sect_off): Likewise.
7117 (dwarf2_fetch_constant_bytes): Likewise.
7118 (dwarf2_fetch_die_type_sect_off): Likewise.
7119 (follow_die_sig_1): Likewise.
7120 (load_full_type_unit): Likewise.
7121 (read_signatured_type): Likewise.
7122 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7123 (dwarf2_cu::~dwarf2_cu): Remove.
7124 (dwarf2_per_objfile::get_cu): New.
7125 (dwarf2_per_objfile::set_cu): New.
7126 (age_cached_comp_units): Rename to...
7127 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7128 to std::unordered_map.
7129 (free_one_cached_comp_unit): Rename to...
7130 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7131 to std::unordered_map.
7132 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7133 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7134 a dwarf2_per_objfile in data.
7135 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7136 (dwarf2_clear_marks): Remove.
7137
2e671100
SM
71382020-05-27 Simon Marchi <simon.marchi@efficios.com>
7139
7140 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7141 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7142 (init_tu_and_read_dwo_dies): Likewise.
7143 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7144 (cutu_reader::cutu_reader): Likewise.
7145 (load_partial_comp_unit): Likewise.
7146 (process_psymtab_comp_unit): Update.
7147 (build_type_psymtabs_1): Update.
7148 (process_skeletonless_type_unit): Update.
7149 (load_full_comp_unit): Update.
7150 (find_partial_die): Update.
7151 (dwarf2_read_addr_index): Update.
7152 (read_signatured_type): Update.
7153
2e6a9f79
SM
71542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7155
7156 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7157 m_header_read_in>: New fields.
7158 <get_header>: New method.
7159 * dwarf2/read.c (per_cu_header_read_in): Remove.
7160 (dwarf2_per_cu_data::get_header): New.
7161 (dwarf2_per_cu_data::addr_size): Update.
7162 (dwarf2_per_cu_data::offset_size): Update.
7163 (dwarf2_per_cu_data::ref_addr_size): Update.
7164
1b555f17
SM
71652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7166
7167 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7168 (dw2_do_instantiate_symtab): Update.
7169 (queue_and_load_all_dwo_tus): Change parameter from
7170 dwarf2_per_cu_data to dwarf2_cu.
7171 (dwarf2_fetch_die_loc_sect_off): Update.
7172 (dwarf2_fetch_constant_bytes): Update.
7173 (dwarf2_fetch_die_type_sect_off): Update.
7174
8fc0b21d
SM
71752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7176
7177 * dwarf2/read.c (process_full_comp_unit,
7178 process_full_type_unit): Remove per_cu, per_objfile paramters.
7179 Add dwarf2_cu parameter.
7180 (process_queue): Update.
7181
168c9250
SM
71822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7183
7184 * dwarf2/read.c (create_cu_from_index_list): Replace
7185 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7186 (create_cus_from_index_list): Likewise.
7187 (create_cus_from_index): Likewise.
7188 (create_signatured_type_table_from_index): Likewise.
7189 (create_cus_from_debug_names_list): Likewise.
7190 (create_cus_from_debug_names): Likewise.
7191 (dwarf2_read_gdb_index): Update.
7192 (dwarf2_read_debug_names): Update.
7193
e286671b
TT
71942020-05-27 Tom Tromey <tom@tromey.com>
7195 Simon Marchi <simon.marchi@efficios.com>
7196
7197 * dwarf2/read.h (struct dwarf2_per_objfile)
7198 <get_type_for_signatured_type, set_type_for_signatured_type>:
7199 New methods.
7200 <m_type_map>: New member.
7201 (struct signatured_type) <type>: Remove.
7202 * dwarf2/read.c
7203 (dwarf2_per_objfile::get_type_for_signatured_type,
7204 dwarf2_per_objfile::set_type_for_signatured_type): New.
7205 (get_signatured_type): Use new methods.
7206
8adb8487
TT
72072020-05-27 Tom Tromey <tom@tromey.com>
7208 Simon Marchi <simon.marchi@efficios.com>
7209
7210 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7211 (struct dwarf2_per_objfile) <type_units>: New member.
7212 <get_type_unit_group_unshareable>: New method.
7213 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7214 num_symtabs, symtabs>: Remove; move to
7215 type_unit_group_unshareable.
7216 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7217 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7218 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7219
127bbf4b
SM
72202020-05-27 Simon Marchi <simon.marchi@efficios.com>
7221
7222 * dwarf2/read.h (struct dwarf2_per_cu_data):
7223 <dwarf2_per_objfile>: Remove.
7224 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7225 dwarf2_per_objfile.
7226 (create_signatured_type_table_from_index): Likewise.
7227 (create_signatured_type_table_from_debug_names): Likewise.
7228 (create_debug_type_hash_table): Likewise.
7229 (fill_in_sig_entry_from_dwo_entry): Likewise.
7230 (create_type_unit_group): Likewise.
7231 (read_comp_units_from_section): Likewise.
7232 (create_cus_hash_table): Likewise.
7233
f6e649dd
SM
72342020-05-27 Simon Marchi <simon.marchi@efficios.com>
7235
7236 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7237 dwarf2_per_cu_data::dwarf2_per_objfile.
7238 (compute_compunit_symtab_includes): Likewise.
7239 (dwarf2_cu::start_symtab): Likewise.
7240
aa66c379
SM
72412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7242
7243 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7244 parameter.
7245 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7246 (read_namespace_alias): Update.
7247 (lookup_die_type): Update.
7248 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7249 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7250 Update.
7251 (disassemble_dwarf_expression): Update.
7252
120ce1b5
SM
72532020-05-27 Simon Marchi <simon.marchi@efficios.com>
7254
7255 * dwarf2/read.h (struct dwarf2_queue_item): Add
7256 dwarf2_per_objfile parameter, assign new parameter.
7257 <per_objfile>: New field.
7258 * dwarf2/read.c (free_one_cached_comp_unit): Add
7259 dwarf2_per_objfile parameter.
7260 (queue_comp_unit): Likewise.
7261 (dw2_do_instantiate_symtab): Update.
7262 (process_psymtab_comp_unit): Update.
7263 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7264 (process_imported_unit_die): Update.
7265 (queue_and_load_dwo_tu): Update.
7266 (follow_die_offset): Update.
7267 (follow_die_sig_1): Update.
7268
9f47c707
SM
72692020-05-27 Simon Marchi <simon.marchi@efficios.com>
7270
7271 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7272 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7273 (read_call_site_scope): Assign per_objfile.
7274 (dwarf2_per_cu_data::objfile): Remove.
7275 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7276 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7277 dwarf2_per_objfile parameter.
7278 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7279 dwarf2_per_objfile parameter.
7280 (dwarf_expr_reg_to_entry_parameter): Add output
7281 dwarf2_per_objfile parameter.
7282 (locexpr_get_frame_base): Update.
7283 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7284 <push_dwarf_reg_entry_value>: Update.
7285 <call_site_to_target_addr>: Update.
7286 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7287 parameter.
7288 (value_of_dwarf_reg_entry): Update.
7289 (rw_pieced_value): Update.
7290 (indirect_synthetic_pointer): Update.
7291 (dwarf2_evaluate_property): Update.
7292 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7293 parameter.
7294 (locexpr_read_variable): Update.
7295 (locexpr_get_symbol_read_needs): Update.
7296 (loclist_read_variable): Update.
7297
14095eb3
SM
72982020-05-27 Simon Marchi <simon.marchi@efficios.com>
7299
7300 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7301 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7302 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7303 parameter.
7304 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7305 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7306 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7307 parameter.
7308 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7309 sect_variable_value): Add dwarf2_per_objfile parameter.
7310 (class dwarf_evaluate_loc_desc) <dwarf_call,
7311 dwarf_variable_value>: Update.
7312 (fetch_const_value_from_synthetic_pointer): Add
7313 dwarf2_per_objfile parameter.
7314 (fetch_const_value_from_synthetic_pointer): Update.
7315 (coerced_pieced_ref): Update.
7316 (class symbol_needs_eval_context) <dwarf_call,
7317 dwarf_variable_value>: Update.
7318 (dwarf2_compile_expr_to_ax): Update.
7319
3c3cd3d4
SM
73202020-05-27 Simon Marchi <simon.marchi@efficios.com>
7321
7322 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7323 parameter.
7324 (dwarf2_evaluate_loc_desc_full): Update.
7325
82ca3f51
SM
73262020-05-27 Simon Marchi <simon.marchi@efficios.com>
7327
7328 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7329 parameter.
7330 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7331 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7332 dwarf2_per_objfile parameter.
7333 (decode_debug_loc_dwo_addresses): Likewise.
7334 (dwarf2_find_location_expression): Update.
7335 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7336 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7337 parameter.
7338 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7339 parameter.
7340 (locexpr_describe_location_1): Likewise.
7341 (locexpr_describe_location): Update.
7342
4b167ea1
SM
73432020-05-27 Simon Marchi <simon.marchi@efficios.com>
7344
7345 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7346 Remove.
7347 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7348 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7349 (dwarf2_compile_property_to_c): Update.
7350 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7351 use text offset from objfile.
7352 (locexpr_tracepoint_var_ref): Update.
7353 (locexpr_generate_c_location): Update.
7354 (loclist_describe_location): Update.
7355 (loclist_tracepoint_var_ref): Update.
7356 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7357 dwarf2_per_objfile parameter.
7358 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7359 use text offset from objfile.
7360 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7361
89b07335
SM
73622020-05-27 Simon Marchi <simon.marchi@efficios.com>
7363
7364 * dwarf2/expr.h (struct dwarf_expr_context)
7365 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7366 <offset>: Remove.
7367 <per_objfile>: New member.
7368 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7369 dwarf2_per_objfile parameter. Don't set offset, set
7370 per_objfile.
7371 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7372 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7373 a dwarf2_per_objfile object instead of an offset.
7374 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7375 constructor.
7376 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7377 to dwarf2_expr_executor constructor. Don't set offset.
7378 (dwarf2_fetch_cfa_info): Update.
7379 (struct dwarf2_frame_cache) <text_offset>: Remove.
7380 <per_objfile>: New field.
7381 (dwarf2_frame_cache): Update.
7382 (dwarf2_frame_prev_register): Update.
7383 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7384 <dwarf_evaluate_loc_desc>: Add constructor.
7385 (dwarf2_evaluate_loc_desc_full): Update.
7386 (dwarf2_locexpr_baton_eval): Update.
7387 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7388 Add constructor.
7389 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7390
293e7e51
SM
73912020-05-27 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7394 addr_sized_int_type>: Move to dwarf2_cu.
7395 <int_type>: Move to dwarf2_per_objfile.
7396 (struct dwarf2_per_objfile) <int_type>: Move here.
7397 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7398 addr_sized_int_type>: Move here.
7399 (read_func_scope): Update.
7400 (read_array_type): Update.
7401 (read_tag_string_type): Update.
7402 (attr_to_dynamic_prop): Update.
7403 (dwarf2_per_cu_data::int_type): Rename to...
7404 (dwarf2_per_objfile::int_type): ... this.
7405 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7406 (dwarf2_cu::addr_sized_int_type): ... this.
7407 (read_subrange_type): Update.
7408 (dwarf2_per_cu_data::addr_type): Rename to...
7409 (dwarf2_cu::addr_type): ... this.
7410 (set_die_type): Update.
7411
64874a40
SM
74122020-05-27 Simon Marchi <simon.marchi@efficios.com>
7413
7414 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7415 data through per_cu->cu.
7416
4ab09049
SM
74172020-05-27 Simon Marchi <simon.marchi@efficios.com>
7418
7419 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7420 dwarf2_per_cu_data parameter fo dwarf2_cu.
7421 (lookup_dwo_type_unit): Likewise.
7422 (read_cutu_die_from_dwo): Likewise.
7423 (lookup_dwo_unit): Likewise.
7424 (open_and_init_dwo_file): Likewise.
7425 (lookup_dwo_cutu): Likewise.
7426 (lookup_dwo_comp_unit): Likewise.
7427 (lookup_dwo_type_unit): Likewise.
7428 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7429 (cutu_reader::cutu_reader): Update.
7430
47b14e86
SM
74312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7434 parameter.
7435 (process_full_type_unit): Likewise.
7436 (process_queue): Update.
7437
43182c09
SM
74382020-05-27 Simon Marchi <simon.marchi@efficios.com>
7439
7440 * dwarf2/read.c (recursively_compute_inclusions): Add
7441 dwarf2_per_objfile parameter.
7442 (compute_compunit_symtab_includes): Likewise.
7443 (process_cu_includes): Update.
7444
7aa104c4
SM
74452020-05-27 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7448 parameter.
7449 (create_type_unit_group): Update.
7450 (process_psymtab_comp_unit_reader): Update.
7451 (build_type_psymtabs_reader): Update.
7452
e3beb21d
SM
74532020-05-27 Simon Marchi <simon.marchi@efficios.com>
7454
7455 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7456 object through m_this_cu->cu.
7457
d460f660
SM
74582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7459
7460 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7461 the info parameter.
7462 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7463
ab432490
SM
74642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7465
7466 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7467 per_objfile parameter.
7468 (load_full_type_unit): Add per_objfile parameter.
7469 (read_signatured_type): Likewise.
7470 (load_full_comp_unit): Likewise.
7471 (load_cu): Likewise.
7472 (dw2_do_instantiate_symtab): Likewise.
7473 (dw2_get_file_names): Likewise.
7474 (dw2_map_symtabs_matching_filename): Update.
7475 (dw_expand_symtabs_matching_file_matcher): Update.
7476 (dw2_map_symbol_filenames): Update.
7477 (process_psymtab_comp_unit): Add per_objfile parameter.
7478 (build_type_psymtabs_1): Update.
7479 (process_skeletonless_type_unit): Update.
7480 (dwarf2_build_psymtabs_hard): Update.
7481 (load_partial_comp_unit): Add per_objfile parameter.
7482 (scan_partial_symbols): Update.
7483 (load_full_comp_unit): Add per_objfile parameter.
7484 (process_imported_unit_die): Update.
7485 (create_cus_hash_table): Update.
7486 (find_partial_die): Update.
7487 (dwarf2_read_addr_index): Update.
7488 (follow_die_offset): Update.
7489 (dwarf2_fetch_die_loc_sect_off): Update.
7490 (dwarf2_fetch_constant_bytes): Update.
7491 (dwarf2_fetch_die_type_sect_off): Update.
7492 (follow_die_sig_1): Update.
7493 (load_full_type_unit): Add per_objfile parameter.
7494 (read_signatured_type): Likewise.
7495
313bad1b
SM
74962020-05-27 Simon Marchi <simon.marchi@efficios.com>
7497
7498 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7499 of objfile_name.
7500
c3699833
SM
75012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7502
7503 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7504 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7505 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7506 field.
7507 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7508 (create_cus_from_index): Update.
7509 (dwarf2_read_gdb_index): Update.
7510 (create_cus_from_debug_names): Update.
7511 (dwarf2_read_debug_names): Update.
7512 (get_abbrev_section_for_cu): Update.
7513 (create_all_comp_units): Update.
7514 (read_attribute_value): Update.
7515 (get_debug_line_section): Update.
7516 * dwarf2/index-cache.c (index_cache::store): Update.
7517 * dwarf2/index-write.c (save_gdb_index_command): Update.
7518 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7519
1859c670
SM
75202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7521
7522 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7523 member.
7524 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7525 dwarf2_per_cu_data::per_bfd.
7526 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7527 (create_type_unit_group): Likewise.
7528 (queue_comp_unit): Remove reference to
7529 per_cu->dwarf2_per_objfile.
7530 (maybe_queue_comp_unit): Likewise.
7531 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7532 (create_cus_hash_table): Assign new field.
7533
5e22e966
SM
75342020-05-27 Simon Marchi <simon.marchi@efficios.com>
7535
7536 * dwarf2/read.c: Replace
7537 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7538 dwarf2_cu->per_objfile throughout.
7539
97a1449a
SM
75402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7541
7542 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7543 parameter, don't use per_cu->dwarf2_per_objfile.
7544 (dw2_instantiate_symtab): Likewise.
7545 (dw2_find_last_source_symtab): Update.
7546 (dw2_map_expand_apply): Update.
7547 (dw2_lookup_symbol): Update.
7548 (dw2_expand_symtabs_for_function): Update.
7549 (dw2_expand_all_symtabs): Update.
7550 (dw2_expand_symtabs_with_fullname): Update.
7551 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7552 don't use per_cu->dwarf2_per_objfile.
7553 (dw2_expand_marked_cus): Update.
7554 (dw2_find_pc_sect_compunit_symtab): Update.
7555 (dw2_debug_names_lookup_symbol): Update.
7556 (dw2_debug_names_expand_symtabs_for_function): Update.
7557 (dw2_debug_names_map_matching_symbols): Update.
7558 (dwarf2_psymtab::expand_psymtab): Update.
7559
9e021579
SM
75602020-05-27 Simon Marchi <simon.marchi@efficios.com>
7561
7562 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7563 <per_objfile>: New member.
7564 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7565 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7566 call to dwarf2_cu.
7567 (cutu_reader::cutu_reader): Update.
7568 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7569
ae090bdb
SM
75702020-05-27 Simon Marchi <simon.marchi@efficios.com>
7571
7572 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7573 struct dwarf2_per_objfile.
7574 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7575 dwarf2_per_bfd.
7576 * dwarf2/read.c (set_die_type): Update.
7577 (get_die_type_at_offset): Update.
7578
af758d11
SM
75792020-05-27 Tom Tromey <tom@tromey.com>
7580 Simon Marchi <simon.marchi@efficios.com>
7581
7582 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7583 method.
7584 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7585 get_symtab, set_symtab>: New methods.
7586 <m_symtabs>: New field.
7587 (struct dwarf2_psymtab): Derive from partial_symtab.
7588 <readin_p, get_compunit_symtab>: Declare methods.
7589 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7590 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7591 New methods.
7592 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7593 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7594 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7595 (dw2_symtab_iter_next, dw2_print_stats)
7596 (dw2_expand_symtabs_with_fullname)
7597 (dw2_expand_symtabs_matching_one)
7598 (dw_expand_symtabs_matching_file_matcher)
7599 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7600 (dw2_debug_names_iterator::next)
7601 (dw2_debug_names_map_matching_symbols)
7602 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7603 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7604 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7605 New methods.
7606 (get_compunit_symtab, process_full_comp_unit)
7607 (process_full_type_unit): Update.
7608 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7609
5989a64e
SM
76102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7611
7612 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7613 then introduce a new dwarf2_per_objfile type.
7614 <read_line_string>: Move to the new dwarf2_per_objfile type.
7615 <objfile>: Likewise.
7616 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7617 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7618 dwarf2_per_objfile->per_bfd.
7619 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7620 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7621 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7622 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7623 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7624 (dwarf2_per_objfile::locate_sections): Rename to...
7625 (dwarf2_per_bfd::locate_sections): ... this.
7626 (dwarf2_per_objfile::get_cutu): Rename to...
7627 (dwarf2_per_bfd::get_cutu): ... this.
7628 (dwarf2_per_objfile::get_cu): Rename to...
7629 (dwarf2_per_bfd::get_cu): ... this.
7630 (dwarf2_per_objfile::get_tu): Rename to...
7631 (dwarf2_per_bfd::get_tu): ... this.
7632 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7633 (dwarf2_per_bfd::allocate_per_cu): ... this.
7634 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7635 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7636 (get_gdb_index_contents_ftype): Change parameter from
7637 dwarf2_per_objfile to dwarf2_per_bfd.
7638 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7639 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7640
a50264ba
TT
76412020-05-27 Tom Tromey <tom@tromey.com>
7642 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7645 (allocate_piece_closure): Set "per_objfile" member.
7646 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7647 (locexpr_describe_location, loclist_describe_location): Use new
7648 member.
7649 * dwarf2/read.c (read_call_site_scope)
7650 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7651 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7652 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7653 handle_data_member_location): Set per_objfile member.
7654 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7655 member.
7656 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7657
d3473f0c
TT
76582020-05-27 Tom Tromey <tom@tromey.com>
7659
7660 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7661 allocate_signatured_type>: Declare new methods.
7662 <m_num_psymtabs>: New member.
7663 (struct dwarf2_per_cu_data) <index>: New member.
7664 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7665 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7666 (create_cu_from_index_list): Use allocate_per_cu.
7667 (create_signatured_type_table_from_index)
7668 (create_signatured_type_table_from_debug_names)
7669 (create_debug_type_hash_table, add_type_unit)
7670 (read_comp_units_from_section): Use allocate_signatured_type.
7671
5717c425
TT
76722020-05-27 Tom Tromey <tom@tromey.com>
7673
7674 * psymtab.c (partial_map_expand_apply)
7675 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7676 (psym_lookup_global_symbol_language)
7677 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7678 (psym_print_stats, psym_expand_symtabs_for_function)
7679 (psym_map_symbol_filenames, psym_map_matching_symbols)
7680 (psym_expand_symtabs_matching)
7681 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7682 (maintenance_check_psymtabs): Update.
7683 * psympriv.h (struct partial_symtab) <readin_p,
7684 get_compunit_symtab>: Add objfile parameter.
7685 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7686 Likewise.
7687 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7688 get_compunit_symtab>: Likewise.
7689 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7690
45940949
TT
76912020-05-27 Tom Tromey <tom@tromey.com>
7692
7693 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7694 member.
7695 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7696 (create_cu_from_index_list)
7697 (create_signatured_type_table_from_index)
7698 (create_signatured_type_table_from_debug_names)
7699 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7700 (dwarf2_create_include_psymtab)
7701 (create_debug_type_hash_table, add_type_unit)
7702 (create_type_unit_group, read_comp_units_from_section)
7703 (dwarf2_compute_name, create_cus_hash_table)
7704 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7705 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7706 obstack.
7707 (dw2_get_real_path): Likewise. Change argument to
7708 dwarf2_per_objfile.
7709
f8c6d152
LM
77102020-05-27 Luis Machado <luis.machado@linaro.org>
7711
7712 PR tdep/26000
7713 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7714 for ldrd (immediate).
7715
e98d2e6d
PW
77162020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7717
7718 * command.h: Add comment giving the name of class_tui.
7719 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7720 create the fake command for the help for class_tui.
7721
53a47a3e
TT
77222020-05-26 Tom Tromey <tromey@adacore.com>
7723
7724 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7725 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7726 (val_atr): New function.
7727 (value_val_atr): Use it.
7728 * ada-valprint.c (print_optional_low_bound): Change low bound
7729 handling for enums.
7730 (val_print_packed_array_elements): Don't call discrete_position.
7731 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7732 discrete_position for enum types.
7733 * language.c (default_print_array_index): Change type.
7734 * language.h (struct language_defn) <la_print_array_index>: Add
7735 index_type parameter, change type of index_value.
7736 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7737 (default_print_array_index): Update.
7738 * valprint.c (maybe_print_array_index): Don't call
7739 value_from_longest. Update.
7740 (value_print_array_elements): Don't call discrete_position.
7741
0bc2354b
TT
77422020-05-26 Tom Tromey <tromey@adacore.com>
7743
7744 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7745 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7746
1218a4bf
CDA
77472020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7748
7749 PR gdb/13519
7750 * avr-tdep.c (avr_integer_to_address): Return data or code
7751 address accordingly to the second 'type' argument of the
7752 function.
7753
92651b1d
MW
77542020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7755
7756 * infcmd.c, inferior.h: (construct_inferior_arguments):
7757 Moved function from here to gdbsupport/common-inferior.{h,cc}
7758
0a4f5f8c
TT
77592020-05-23 Tom Tromey <tom@tromey.com>
7760
7761 Revert commit eca1f90c:
7762 * NEWS: Remove entry for completion styling.
7763 * completer.c (_rl_completion_prefix_display_length): Move
7764 declaration later.
7765 (gdb_fnprint): Revert.
7766 (gdb_display_match_list_1): Likewise.
7767 * cli/cli-style.c (completion_prefix_style)
7768 (completion_difference_style, completion_suffix_style): Remove.
7769 (_initialize_cli_style): Revert.
7770 * cli/cli-style.h (completion_prefix_style)
7771 (completion_difference_style, completion_suffix_style): Don't
7772 declare.
7773
e08bd6c5
PA
77742020-05-24 Pedro Alves <palves@redhat.com>
7775
7776 * symtab.c (completion_list_add_name): Return boolean indication
7777 of whether the symbol matched.
7778 (completion_list_add_symbol): Don't try to remove C++ aliases if
7779 the symbol didn't match in the first place.
7780 * symtab.h (completion_list_add_name): Return bool.
7781
ceacbf6e
SM
77822020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7783
7784 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7785 type::field.
7786
26f16254
JB
77872020-05-23 Joel Brobecker <brobecker@adacore.com>
7788
7789 GDB 9.2 released.
7790
eca1f90c
TT
77912020-05-23 Tom Tromey <tom@tromey.com>
7792
7793 * NEWS: Add entry for completion styling.
7794 * completer.c (_rl_completion_prefix_display_length): Move
7795 declaration earlier.
7796 (gdb_fnprint): Use completion_style.
7797 (gdb_display_match_list_1): Likewise.
7798 * cli/cli-style.c (completion_prefix_style)
7799 (completion_difference_style, completion_suffix_style): New
7800 globals.
7801 (_initialize_cli_style): Register new globals.
7802 * cli/cli-style.h (completion_prefix_style)
7803 (completion_difference_style, completion_suffix_style): Declare.
7804
51e2cfa2
PA
78052020-05-23 Pedro Alves <palves@redhat.com>
7806
7807 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7808 (parse_escape): Use ISDIGIT instead of isdigit.
7809 (puts_debug): Use gdb_isprint instead of isprint.
7810 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7811 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7812 ISSPACE instead of isspace.
7813 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7814 instead of isspace.
7815 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7816 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7817 instead of isxdigit and ISDIGIT instead of isdigit.
7818
80fc5e77
SM
78192020-05-22 Simon Marchi <simon.marchi@efficios.com>
7820
7821 * gdbtypes.h (struct type) <field>: New method.
7822 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7823 or type::field.
7824
3cabb6b0
SM
78252020-05-22 Simon Marchi <simon.marchi@efficios.com>
7826
7827 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7828 (TYPE_FIELDS): Use type::fields. Change all call sites that
7829 modify the propery to use type::set_fields instead.
7830
1f704f76
SM
78312020-05-22 Simon Marchi <simon.marchi@efficios.com>
7832
7833 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7834 type::num_fields instead.
7835
5e33d5f4
SM
78362020-05-22 Simon Marchi <simon.marchi@efficios.com>
7837
7838 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7839 methods.
7840 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7841 that modify the number of fields to use type::set_num_fields
7842 instead.
7843
9392ebb3
TT
78442020-05-22 Tom Tromey <tromey@adacore.com>
7845
7846 * compile/compile-object-load.h (munmap_list_free): Don't
7847 declare.
7848
7c13f4e8
AB
78492020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7850
7851 * annotate.c (annotate_source_line): Update return type, add call
7852 to update current symtab and line.
7853 * annotate.h (annotate_source_line): Update return type, and
7854 extend header comment.
7855 * source.c (info_line_command): Check annotation_level before
7856 calling annotate_source_line.
7857 * stack.c (print_frame_info): If calling annotate_source_line
7858 returns true, then don't print any other source line information.
7859
aa370940
SM
78602020-05-21 Simon Marchi <simon.marchi@efficios.com>
7861
7862 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7863
84d53fa9
SM
78642020-05-21 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * coffread.c (patch_type): Remove NULL check before xfree.
7867 * corefile.c (set_gnutarget): Likewise.
7868 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7869 * exec.c (build_section_table): Likewise.
7870 * remote.c (remote_target::pass_signals): Likewise.
7871 * utils.c (n_spaces): Likewise.
7872 * cli/cli-script.c (document_command): Likewise.
7873 * i386-windows-tdep.c (core_process_module_section): Likewise.
7874 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7875
9d428aae
SM
78762020-05-20 Simon Marchi <simon.marchi@efficios.com>
7877
7878 * symfile.c (reread_symbols): Clear objfile's section_offsets
7879 vector and section indices, re-compute them by calling
7880 sym_offsets.
7881
250106a7
TT
78822020-05-20 Tom Tromey <tromey@adacore.com>
7883
7884 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7885 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7886
9a0bacfb
TV
78872020-05-20 Tom de Vries <tdevries@suse.de>
7888
7889 PR symtab/25833
7890 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7891
7b958a48
AM
78922020-05-20 Alan Modra <amodra@gmail.com>
7893
7894 PR 25993
7895 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7896 bfd_set_filename.
7897 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7898 passed to bfd_set_filename.
7899 * symfile-mem.c (add_vsyscall_page): Likewise for string
7900 passed to symbol_file_add_from_memory.
7901 (symbol_file_add_from_memory): Make name param a const char* and
7902 don't strdup.
7903
c7e97679
AM
79042020-05-20 Alan Modra <amodra@gmail.com>
7905
7906 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7907 rather than accessing bfd->filename directly.
7908 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7909 and use bfd_section_name.
7910 * dwarf2/frame.c (decode_frame_entry): Likewise.
7911 * exec.c (exec_set_section_address): Likewise.
7912 * solib-aix.c (solib_aix_bfd_open): Likewise.
7913 * stap-probe.c (get_stap_base_address): Likewise.
7914 * symfile.c (reread_symbols): Likewise.
7915
563c591b
TT
79162020-05-19 Tom Tromey <tromey@adacore.com>
7917
7918 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7919
f408d82c
SM
79202020-05-19 Simon Marchi <simon.marchi@efficios.com>
7921
7922 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7923
98c59b52
PA
79242020-05-19 Pedro Alves <palves@redhat.com>
7925
7926 * NEWS (set exec-file-mismatch): Adjust entry.
7927 * exec.c: Include "build-id.h".
7928 (validate_exec_file): Try to match build IDs instead of filenames.
7929 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7930 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7931 and pass down 'warn_if_slow'.
7932 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7933 gdb_bfd_open_closure to pass it down.
7934 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7935
4111f652
PA
79362020-05-19 Pedro Alves <palves@redhat.com>
7937
7938 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7939 * target.c (target_fileio_open_1): Rename to target_fileio_open
7940 and make extern. Use bool.
7941 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7942 (target_fileio_read_alloc_1): Adjust.
7943 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7944 (target_fileio_open_warn_if_slow): Delete declaration.
7945
ad80db5b
PA
79462020-05-19 Pedro Alves <palves@redhat.com>
7947
7948 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7949 Adjust all callers.
7950
1d6ce4d3
YS
79512020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7952
7953 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7954 whether disp is negative.
7955
9005fbbb
SM
79562020-05-19 Simon Marchi <simon.marchi@efficios.com>
7957
7958 * symfile.h (struct symfile_segment_data)
7959 <~symfile_segment_data>: Remove.
7960 <segment_info>: Change to std::vector.
7961 * symfile.c (default_symfile_segments): Update.
7962 * elfread.c (elf_symfile_segments): Update.
7963
68b888ff
SM
79642020-05-19 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7967 <segments>: New.
7968 <segment_bases, segment_sizes>: Remove.
7969 * symfile.c (default_symfile_segments): Update.
7970 * elfread.c (elf_symfile_segments): Update.
7971 * remote.c (remote_target::get_offsets): Update.
7972 * solib-target.c (solib_target_relocate_section_addresses):
7973 Update.
7974
62982abd
SM
79752020-05-19 Simon Marchi <simon.marchi@efficios.com>
7976
7977 * symfile.h (struct symfile_segment_data): Initialize fields.
7978 <~symfile_segment_data>: Add.
7979 (symfile_segment_data_up): New.
7980 (struct sym_fns) <sym_segments>: Return a
7981 symfile_segment_data_up.
7982 (default_symfile_segments): Return a symfile_segment_data_up.
7983 (free_symfile_segment_data): Remove.
7984 (get_symfile_segment_data): Return a symfile_segment_data_up.
7985 * symfile.c (default_symfile_segments): Likewise.
7986 (get_symfile_segment_data): Likewise.
7987 (free_symfile_segment_data): Remove.
7988 (symfile_find_segment_sections): Update.
7989 * elfread.c (elf_symfile_segments): Return a
7990 symfile_segment_data_up.
7991 * remote.c (remote_target::get_offsets): Update.
7992 * solib-target.c (solib_target_relocate_section_addresses):
7993 Update.
7994 * symfile-debug.c (debug_sym_segments): Return a
7995 symfile_segment_data_up.
7996
7f204339
RO
79972020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7998
e52a0f1b
RO
7999 PR build/25981
8000 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8001 Hardcode register numbers.
8002
7f204339
RO
8003 PR build/25981
8004 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8005 procfs_find_LDT_entry): Remove.
8006 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8007 procfs_find_LDT_entry): Remove.
8008 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8009 Remove.
8010
7f32a4d5
PA
80112020-05-17 Pedro Alves <palves@redhat.com>
8012 Andrew Burgess <andrew.burgess@embecosm.com>
8013 Keno Fischer <keno@juliacomputing.com>
8014
8015 PR gdb/25741
8016 * breakpoint.c (build_target_condition_list): Update comments.
8017 (build_target_command_list): Update comments and skip matching
8018 locations.
8019 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8020 a separate function. Simplify "set breakpoint auto-hw off"
8021 handling.
8022 (insert_breakpoints): Update comment.
8023 (tracepoint_locations_match): New parameter. For breakpoints,
8024 compare location types too, if the caller wants to.
8025 (handle_automatic_hardware_breakpoints): New functions.
8026 (bp_location_is_less_than): Also sort by location type and
8027 hardware breakpoint length.
8028 (update_global_location_list): Handle "set breakpoint auto-hw on"
8029 here.
8030 (update_breakpoint_locations): Ask breakpoint_locations_match to
8031 ignore location types.
8032
7d93a1e0
SM
80332020-05-16 Simon Marchi <simon.marchi@efficios.com>
8034
8035 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8036 type::name instead.
8037
d0e39ea2
SM
80382020-05-16 Simon Marchi <simon.marchi@efficios.com>
8039
8040 * gdbtypes.h (struct type) <name, set_name>: New methods.
8041 (TYPE_CODE): Use type::name. Change all call sites used to set
8042 the name to use type::set_name instead.
8043
2dab0c7b
TT
80442020-05-16 Tom Tromey <tom@tromey.com>
8045
8046 * top.c (quit_force): Update.
8047 * infrun.c (handle_no_resumed): Update.
8048 * top.h (all_uis): New function.
8049 (ALL_UIS): Remove.
8050
59f7bd8d
SM
80512020-05-16 Simon Marchi <simon.marchi@efficios.com>
8052
8053 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8054
9bf058f0
PA
80552020-05-16 Pedro Alves <palves@redhat.com>
8056
8057 * ia64-linux-nat.c
8058 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8059 Declare method.
8060 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8061
8f86ae1a
SM
80622020-05-15 Simon Marchi <simon.marchi@efficios.com>
8063
8064 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8065 (sparc64_adi_info): Likewise.
8066
d6bc0792
TT
80672020-05-15 Tom Tromey <tom@tromey.com>
8068
8069 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8070 block_objfile.
8071 (lookup_objfile_from_block): Remove.
8072 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8073 (lookup_global_symbol): Use block_objfile.
8074 * symtab.h (lookup_objfile_from_block): Don't declare.
8075 * printcmd.c (clear_dangling_display_expressions): Use
8076 block_objfile.
8077 * parse.c (operator_check_standard): Use block_objfile.
8078
8c14c3a3
TT
80792020-05-15 Tom Tromey <tom@tromey.com>
8080
8081 * language.c (language_alloc_type_symbol): Set
8082 SYMBOL_SECTION.
8083 * symtab.c (initialize_objfile_symbol): Remove.
8084 (allocate_symbol): Remove.
8085 (allocate_template_symbol): Remove.
8086 * dwarf2/read.c (fixup_go_packaging): Use "new".
8087 (new_symbol): Use "new".
8088 (read_variable): Don't call initialize_objfile_symbol. Use
8089 "new".
8090 (read_func_scope): Use "new".
8091 * xcoffread.c (process_xcoff_symbol): Don't call
8092 initialize_objfile_symbol.
8093 (SYMBOL_DUP): Remove.
8094 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8095 "new".
8096 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8097 (allocate_template_symbol): Don't declare.
8098 (struct symbol): Add copy constructor. Change defaults.
8099 * jit.c (finalize_symtab): Use "new".
8100 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8101 Use "new".
8102 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8103 (common_block_end): Use "new".
8104 * mdebugread.c (parse_symbol): Use "new".
8105 (new_symbol): Likewise.
8106
5b4a1a8d
PW
81072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8108
8109 * NEWS: Mention changes to help and apropos.
8110
57b4f16e
PW
81112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8112
8113 * command.h (enum command_class): Improve comments, document
8114 that class_alias is for user-defined aliases, give the class
8115 name for each class, remove unused class_xdb.
8116 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8117 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8118 by a precise class.
8119 * infcmd.c (_initialize_infcmd): Likewise.
8120 * reverse.c (_initialize_reverse): Likewise.
8121 * stack.c (_initialize_stack): Likewise.
8122 * symfile.c (_initialize_symfile): Likewise.
8123 * tracepoint.c (_initialize_tracepoint): Likewise.
8124
7c05caf7
PW
81252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8126
8127 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8128 when their aliased command is traversed.
8129 (help_cmd): Add fput_command_names_styled call to
8130 output command name and aliases when command has an alias.
8131
3b3aaacb
PW
81322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8133
8134 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8135 * cli/cli-decode.c (help_cmd_list): Declare as static,
8136 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8137 a command together with the command.
8138 (fput_command_name_styled, fput_command_names_styled): New functions.
8139 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8140 fput_command_name_styled.
8141 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8142 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8143
7aa1b46f
PW
81442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8145
8146 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8147 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8148 * command.h (cmd_show_list): Likewise.
8149 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8150 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8151
89bcba74
PW
81522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8153
8154 * unittests/command-def-selftests.c (traverse_command_structure):
8155 Verify all commands of a list have the same prefix command and
8156 that only the top cmdlist commands have a null prefix.
8157
3f4d92eb
PW
81582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8159
8160 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8161 as prefix, not one of its aliases.
8162 (set_cmd_prefix): Remove.
8163 (do_add_cmd): Centralize the setting of the prefix of a command, when
8164 command is defined after its full chain of prefix commands.
8165 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8166 (add_setshow_cmd_full): Likewise.
8167 (update_prefix_field_of_prefixed_commands): New function.
8168 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8169 update_prefix_field_of_prefixed_commands.
8170 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8171 addresses of remote_set_cmdlist and remote_show_cmdlist given
8172 as argument, not the address of an argument.
8173 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8174 * gdb/remote.c (_initialize_remote): Likewise.
8175
0605465f
PW
81762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8177
8178 * cli/cli-cmds.c (alias_command): Check for an existing alias
8179 using lookup_cmd_composition, as valid_command_p is too strict
8180 and forbids aliases that are the prefix of an existing alias
8181 or command.
8182 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8183 command is properly recognised as a valid command.
8184
58e6ac70
PW
81852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8186
8187 * unittests/help-doc-selftests.c: Rename to
8188 unittests/command-def-selftests.c
8189 * unittests/command-def-selftests.c (help_doc_tests): Update some
8190 comments.
8191 (command_structure_tests, traverse_command_structure): New namespace
8192 and function.
8193 (command_structure_invariants_tests): New function.
8194 (_initialize_command_def_selftests) Renamed from
8195 _initialize_help_doc_selftests, register command_structure_invariants
8196 selftest.
8197
a7b9ceb8
PW
81982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8199
8200 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8201 an alias of 'show'.
8202
b2188a06
JB
82032020-05-15 Joel Brobecker <brobecker@adacore.com>
8204
8205 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8206 ada_is_fixed_point_type. Update all callers.
8207 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8208 all callers.
8209 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8210 Update all callers.
8211 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8212 print_fixed_point_type. Update all callers.
8213 * ada-valprint.c (ada_value_print_num): Replace call to
8214 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8215
a51951c2
KB
82162020-05-14 Kevin Buettner <kevinb@redhat.com>
8217
8218 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8219 processors.
8220 (cpu_supports_bts): Add CV_AMD case.
8221
29d6859f
LM
82222020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8223 Simon Marchi <simon.marchi@efficios.com>
8224
8225 * infrun.c (stop_all_threads): Collect multiple wait events at
8226 each pass.
8227
78134374
SM
82282020-05-14 Simon Marchi <simon.marchi@efficios.com>
8229
8230 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8231 type::code instead.
8232
67607e24
SM
82332020-05-14 Simon Marchi <simon.marchi@efficios.com>
8234
8235 * gdbtypes.h (struct type) <code, set_code>: New methods.
8236 (TYPE_CODE): Use type::code. Change all call sites used to set
8237 the code to use type::set_code instead.
8238
a05575d3
TBA
82392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8240 Tom de Vries <tdevries@suse.de>
8241 Pedro Alves <palves@redhat.com>
8242
8243 PR threads/25478
8244 * infrun.c (stop_all_threads): Do NOT ignore
8245 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8246 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8247 received.
8248 (handle_no_resumed): Remove code handling a live inferior with no
8249 threads.
8250 * remote.c (has_single_non_exited_thread): New.
8251 (remote_target::update_thread_list): Do not delete a thread if is
8252 the last thread of the process.
8253 * thread.c (thread_select): Call delete_exited_threads instead of
8254 prune_threads.
8255
6ad82919
TBA
82562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8257
8258 * infrun.c (stop_all_threads): Enable/disable thread events of all
8259 targets. Move a debug message denoting the end of the function
8260 into the SCOPED_EXIT block.
8261
d890404b
TBA
82622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8263
8264 * process-stratum-target.h: Include <set>.
8265 (all_non_exited_process_targets, switch_to_target_no_thread): New
8266 function declarations.
8267 * process-stratum-target.c (all_non_exited_process_targets)
8268 (switch_to_target_no_thread): New function implementations.
8269
293b3ebc
TBA
82702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8271
8272 * infrun.c (handle_inferior_event): Extract out a piece of code
8273 into...
8274 (mark_non_executing_threads): ...this new function.
8275
7ca9b62a
TBA
82762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8277
8278 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8279 use.
8280
fc75c28b
TBA
82812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8282
8283 * regcache.c (regcache_read_pc_protected): New function
8284 implementation that returns 0 if the PC cannot read via
8285 'regcache_read_pc'.
8286 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8287 instead of 'regcache_read_pc'.
8288 (keep_going_pass_signal): Ditto.
8289
a89febbd
TT
82902020-05-13 Tom Tromey <tromey@adacore.com>
8291
8292 * ada-lang.c (align_value): Remove.
8293 (ada_template_to_fixed_record_type_1): Use align_up.
8294
f7e23710
TBA
82952020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8296
8297 * async-event.c: Update the copyright year.
8298 * async-event.h: Update the copyright year.
8299
02ff80c2
SM
83002020-05-12 Simon Marchi <simon.marchi@efficios.com>
8301
8302 * objfiles.h (is_addr_in_objfile,
8303 shared_objfile_contains_address_p): Return bool.
8304 * objfile.c (is_addr_in_objfile,
8305 shared_objfile_contains_address_p): Return bool.
8306
4fd6c7e8
TT
83072020-05-11 Tom Tromey <tromey@adacore.com>
8308
8309 * cli/cli-cmds.c (info_command): Restore.
8310 (_initialize_cli_cmds): Use add_prefix_command for "info".
8311 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8312
5eb68a39
TT
83132020-05-11 Tom Tromey <tromey@adacore.com>
8314
8315 * ada-lang.c (ada_value_primitive_field): Now public.
8316 * ada-lang.h (ada_value_primitive_field): Declare.
8317 * ada-valprint.c (print_field_values): Use
8318 ada_value_primitive_field for wrapper fields.
8319
7666722f
TV
83202020-05-11 Tom de Vries <tdevries@suse.de>
8321
8322 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8323 MODULE_DOMAIN.
8324
3ee6bb11
TV
83252020-05-11 Tom de Vries <tdevries@suse.de>
8326
8327 PR symtab/25941
8328 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8329 with length 0, if not gdb-produced.
8330 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8331
43434996
TV
83322020-05-09 Tom de Vries <tdevries@suse.de>
8333
8334 PR gdb/25955
8335 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8336 calculation.
8337
2f78cffc
TT
83382020-05-09 Tom Tromey <tom@tromey.com>
8339
8340 * top.c (server_command): Now bool.
8341 * top.h (server_command): Now bool.
8342
4f7bc5ed
TT
83432020-05-08 Tom Tromey <tromey@adacore.com>
8344
8345 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8346 already being processed.
8347
8be4b118
TT
83482020-05-08 Tom Tromey <tom@tromey.com>
8349
8350 * printcmd.c (struct display) <next>: Remove.
8351 <display>: New constructor.
8352 <exp_string>: Now a std::string.
8353 <enabled_p>: Now a bool.
8354 (display_number): Move definition earlier.
8355 (displays): Rename from display_chain. Now a std::vector.
8356 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8357 (display_command): Update.
8358 (do_one_display, disable_display)
8359 (enable_disable_display_command, do_enable_disable_display):
8360 Update.
8361 (free_display): Remove.
8362 (clear_displays): Rewrite.
8363 (delete_display): Update.
8364 (map_display_numbers): Use function_view. Remove "data"
8365 parameter. Update.
8366 (do_delete_display): Remove.
8367 (undisplay_command): Update.
8368 (do_one_display, do_displays, disable_display)
8369 (info_display_command): Update.
8370 (do_enable_disable_display): Remove.
8371 (enable_disable_display_command)
8372 (clear_dangling_display_expressions): Update.
8373
94c93c35
TT
83742020-05-08 Tom Tromey <tom@tromey.com>
8375
8376 * symtab.c (set_symbol_cache_size)
8377 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8378 (maintenance_print_symbol_cache_statistics): Update.
8379 * symmisc.c (print_symbol_bcache_statistics)
8380 (print_objfile_statistics, maintenance_print_objfiles)
8381 (maintenance_info_symtabs, maintenance_check_symtabs)
8382 (maintenance_expand_symtabs, maintenance_info_line_tables):
8383 Update.
8384 * symfile-debug.c (set_debug_symfile): Update.
8385 * source.c (forget_cached_source_info): Update.
8386 * python/python.c (gdbpy_progspaces): Update.
8387 * psymtab.c (maintenance_info_psymtabs): Update.
8388 * probe.c (parse_probes): Update.
8389 * linespec.c (iterate_over_all_matching_symtabs)
8390 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8391 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8392 * exec.c (exec_target::close): Update.
8393 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8394 * breakpoint.c (print_one_breakpoint_location)
8395 (create_longjmp_master_breakpoint)
8396 (create_std_terminate_master_breakpoint): Update.
8397 * progspace.c (program_spaces): Now a std::vector.
8398 (maybe_new_address_space): Update.
8399 (add_program_space): Remove.
8400 (program_space::program_space): Update.
8401 (remove_program_space): Update.
8402 (number_of_program_spaces): Remove.
8403 (print_program_space, update_address_spaces): Update.
8404 * progspace.h (program_spaces): Change type.
8405 (ALL_PSPACES): Remove.
8406 (number_of_program_spaces): Don't declare.
8407 (struct program_space) <next>: Remove.
8408
a1fd1ac9
TT
84092020-05-08 Tom Tromey <tom@tromey.com>
8410
8411 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8412 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8413 (enable_break): Update.
8414 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8415 (frv_fdpic_find_canonical_descriptor): Update.
8416 (frv_fetch_objfile_link_map): Update.
8417 * progspace.c (program_space::free_all_objfiles): Update.
8418 (program_space::solibs): New method.
8419 * progspace.h (struct program_space) <solibs>: New method.
8420 * solist.h (master_so_list): Don't declare.
8421 (ALL_SO_LIBS): Remove.
8422 * solib.h (so_list_head): Remove.
8423 (update_solib_list): Update comment.
8424 * solib.c (master_so_list): Remove.
8425 (solib_used, update_solib_list, solib_add)
8426 (info_sharedlibrary_command, clear_solib)
8427 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8428
38eae084
TT
84292020-05-08 Tom Tromey <tom@tromey.com>
8430
8431 * extension.c (extension_languages): Now a std::array.
8432 (ALL_EXTENSION_LANGUAGES): Remove.
8433 (get_ext_lang_defn, get_ext_lang_of_file)
8434 (eval_ext_lang_from_control_command): Update.
8435 (finish_ext_lang_initialization)
8436 (auto_load_ext_lang_scripts_for_objfile)
8437 (ext_lang_type_printers::ext_lang_type_printers)
8438 (apply_ext_lang_type_printers)
8439 (ext_lang_type_printers::~ext_lang_type_printers)
8440 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8441 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8442 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8443 (get_matching_xmethod_workers, ext_lang_colorize)
8444 (ext_lang_before_prompt): Update.
8445 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8446
596dc4ad
TT
84472020-05-08 Tom Tromey <tom@tromey.com>
8448
8449 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8450 overload.
8451 <swap_string, m_string>: Remove.
8452 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8453 Update.
8454 * stabsread.c (define_symbol, read_type): Update.
8455 * linespec.c (find_linespec_symbols): Update.
8456 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8457 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8458 * dbxread.c (read_dbx_symtab): Update.
8459 * cp-support.h (cp_canonicalize_string_full)
8460 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8461 Return unique_xmalloc_ptr.
8462 * cp-support.c (inspect_type): Update.
8463 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8464 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8465 Likewise.
8466 * c-typeprint.c (print_name_maybe_canonical): Update.
8467 * break-catch-throw.c (check_status_exception_catchpoint):
8468 Update.
8469
bf4cb9be
TV
84702020-05-08 Tom de Vries <tdevries@suse.de>
8471
8472 * infrun.c (follow_fork): Copy current_line and current_symtab to
8473 child thread.
8474
a1b68f28
SM
84752020-05-07 Simon Marchi <simon.marchi@efficios.com>
8476
8477 * async-event.c (struct async_signal_handler, struct
8478 async_event_handler): Reformat, remove typedef.
8479
98d48915
SM
84802020-05-07 Simon Marchi <simon.marchi@efficios.com>
8481
8482 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8483 access thistype->main_type->dyn_prop_list directly.
8484
7aa91313
SM
84852020-05-07 Simon Marchi <simon.marchi@efficios.com>
8486
8487 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8488 (remove_dyn_prop): Remove. Update all users to use
8489 type::remove_dyn_prop.
8490 * gdbtypes.c (remove_dyn_prop): Rename to...
8491 (type::remove_dyn_prop): ... this.
8492
5c54719c
SM
84932020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8494
8495 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8496 (add_dyn_prop): Remove. Update all users to use
8497 type::add_dyn_prop.
8498 * gdbtypes.c (add_dyn_prop): Rename to...
8499 (type::add_dyn_prop): ... this.
8500
24e99c6c
SM
85012020-05-07 Simon Marchi <simon.marchi@efficios.com>
8502
8503 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8504 (get_dyn_prop): Remove. Update all users to use
8505 type::dyn_prop.
8506 * gdbtypes.c (get_dyn_prop): Rename to...
8507 (type::dyn_prop): ... this.
8508
0d4bf016
SM
85092020-05-06 Simon Marchi <simon.marchi@efficios.com>
8510
8511 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8512
ac4a4f1c
SM
85132020-05-06 Simon Marchi <simon.marchi@efficios.com>
8514
8515 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8516 instruction, skip it if it's there.
8517
a3bbacc1
SM
85182020-05-05 Simon Marchi <simon.marchi@efficios.com>
8519
8520 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8521
c3236f84
SM
85222020-05-04 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8525 * gdbtypes.c (recursive_dump_type): Remove use of
8526 TYPE_INCOMPLETE.
8527
3b6acaee
TT
85282020-05-03 Tom Tromey <tom@tromey.com>
8529
8530 * breakpoint.c (catch_command, tcatch_command): Remove.
8531 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8532 add_show_prefix_cmd.
8533 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8534 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8535 Remove.
8536 (add_internal_problem_command): Use add_basic_prefix_cmd,
8537 add_show_prefix_cmd.
8538 * mips-tdep.c (set_mipsfpu_command): Remove.
8539 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8540 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8541 (_initialize_index_cache): Use add_basic_prefix_cmd.
8542 * memattr.c (dummy_cmd): Remove.
8543 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8544 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8545 (_initialize_tui_win): Use add_basic_prefix_cmd,
8546 add_show_prefix_cmd.
8547 * cli/cli-logging.c (set_logging_command): Remove.
8548 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8549 add_show_prefix_cmd.
8550 (show_logging_command): Remove.
8551 * target.c (target_command): Remove.
8552 (add_target): Use add_basic_prefix_cmd.
8553
a51119cd
HD
85542020-05-02 Hannes Domani <ssbssa@yahoo.de>
8555
8556 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8557
652fc23a 85582020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8559
652fc23a
PW
8560 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8561 info_command.
8562
117539e6
KR
85632020-04-30 Kamil Rytarowski <n54@gmx.com>
8564
8565 * nbsd-nat.c (nbsd_enable_proc_events)
8566 (nbsd_nat_target::post_startup_inferior): Add.
8567 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8568 (nbsd_nat_target::update_thread_list): Rewrite.
8569 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8570 "PTRACE_LWP_CREATE".
8571 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8572
102e38eb 85732020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8574
102e38eb
PW
8575 * stack.c (_initialize_stack): Remove duplicated creation
8576 of "frame" command and "f" alias.
8577
ee9d1e5f
HD
85782020-04-30 Hannes Domani <ssbssa@yahoo.de>
8579
8580 PR gdb/18706
8581 * gdbtypes.c (check_typedef): Calculate size of array of
8582 stubbed type.
8583
627c7fb8
HD
85842020-04-30 Hannes Domani <ssbssa@yahoo.de>
8585
8586 PR gdb/15559
8587 * i386-tdep.c (i386_push_dummy_call): Call
8588 i386_thiscall_push_dummy_call.
8589 (i386_thiscall_push_dummy_call): New function.
8590 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8591 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8592 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8593
ffc2844e
SM
85942020-04-29 Simon Marchi <simon.marchi@efficios.com>
8595
8596 * gdbarch.sh (do_read): Add shellcheck disable directive for
8597 warning SC2162.
8598
1207375d
SM
85992020-04-29 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8602 "referenced but not assigned" warning.
8603
9fdb2916
SM
86042020-04-29 Simon Marchi <simon.marchi@efficios.com>
8605
8606 * gdbarch.sh: Remove code that sets fallbackdefault.
8607
759cea5e
SM
86082020-04-29 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * gdbarch.sh: Use shell operators && and || instead of
8611 -a and -o.
8612
cb02ab24
SM
86132020-04-29 Simon Marchi <simon.marchi@efficios.com>
8614
8615 * gdbarch.sh: Use $(...) instead of `...`.
8616
a6fc5ffc
SM
86172020-04-29 Simon Marchi <simon.marchi@efficios.com>
8618
8619 * gdbarch.sh: Use double quotes around variables.
8620
8d113d13
SM
86212020-04-29 Simon Marchi <simon.marchi@efficios.com>
8622
8623 * gdbarch.sh: Use %s with printf, instead of variables in the
8624 format string.
8625
ed6acedd
TT
86262020-04-29 Tom Tromey <tromey@adacore.com>
8627
8628 PR ada/25875:
8629 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8630 type fields here.
8631 (read_enumeration_type): Call
8632 update_enumeration_type_from_children later. Update comments.
8633 (process_enumeration_scope): Don't create type fields.
8634
b68b1b58
KR
86352020-04-29 Kamil Rytarowski <n54@gmx.com>
8636
8637 * nbsd-tdep.c: Include "xml-syscall.h".
8638 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8639
f94b2e03
KR
86402020-04-29 Kamil Rytarowski <n54@gmx.com>
8641
8642 * nbsd-nat.c: Include "sys/wait.h".
8643 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8644 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8645 (nbsd_nat_target::remove_exec_catchpoint)
8646 (nbsd_nat_target::set_syscall_catchpoint): Add.
8647 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8648 (nbsd_nat_target::insert_exec_catchpoint)
8649 (nbsd_nat_target::remove_exec_catchpoint)
8650 (nbsd_nat_target::set_syscall_catchpoint): Add.
8651 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8652 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8653 `nbsd_get_syscall_number'.
8654
fc49bc72
TT
86552020-04-29 Tom Tromey <tom@tromey.com>
8656
8657 * stack.c (print_block_frame_labels): Remove.
8658
d642b692
HD
86592020-04-29 Hannes Domani <ssbssa@yahoo.de>
8660
8661 PR gdb/17320
8662 * ada-valprint.c (val_print_packed_array_elements): Move array
8663 end bracket to new line.
8664 (ada_val_print_string): Remove extra spaces before first array
8665 element.
8666 * c-valprint.c (c_value_print_array): Likewise.
8667 * m2-valprint.c (m2_print_array_contents): Likewise.
8668 (m2_value_print_inner): Likewise.
8669 * p-valprint.c (pascal_value_print_inner): Likewise.
8670 * valprint.c (generic_val_print_array): Likewise.
8671 (value_print_array_elements): Move first array element and array
8672 end bracket to new line.
8673
ea90f227
TV
86742020-04-29 Tom de Vries <tdevries@suse.de>
8675
8676 PR symtab/25889
8677 * linespec.c (find_method): Fix ix calculation.
8678
4498ef4f
KR
86792020-04-28 Kamil Rytarowski <n54@gmx.com>
8680
8681 * syscalls/update-netbsd.sh: New file.
8682 * syscalls/netbsd.xml: Regenerate.
8683 * data-directory/Makefile.in: Register `netbsd.xml' in
8684 `SYSCALLS_FILES'.
8685
a55e30b5
SM
86862020-04-28 Simon Marchi <simon.marchi@efficios.com>
8687
8688 * syscalls/update-freebsd.sh: Add double quotes.
8689
2b2fbab8
TT
86902020-04-28 Tom Tromey <tom@tromey.com>
8691
8692 * NEWS: Update.
8693 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8694 (cmdpy_init): Allow class_tui.
8695
a65189c9
TV
86962020-04-28 Mark Williams <mark@myosotissp.com>
8697
8698 PR gdb/24480
8699 * dwarf2read.c: Add missing assingments to list_in_scope when
8700 start_symtab was already called.
8701
1b95cdb7
SM
87022020-04-28 Simon Marchi <simon.marchi@efficios.com>
8703
8704 PR gdb/25881
8705 * dwarf2/read.c (offset_map_type): Use
8706 gdb:hash_enum<sect_offset> as hash function.
8707
15cd93d0
TV
87082020-04-28 Tom de Vries <tdevries@suse.de>
8709
8710 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8711 with DW_AT_signature.
8712
1eb39914
SM
87132020-04-27 Simon Marchi <simon.marchi@efficios.com>
8714
8715 * configure.ac: Remove check for fs_base/gs_base in
8716 user_regs_struct.
8717 * configure: Re-generate.
8718 * config.in: Re-generate.
8719 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8720 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8721 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8722
991a3e2e
LM
87232020-04-27 Luis Machado <luis.machado@linaro.org>
8724
8725 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8726 problematic inline frame unwinding situation.
8727 * frame.c (frame_id_computed_p): New function.
8728 * frame.h (frame_id_computed_p): New prototype.
8729
361ba0e8
TT
87302020-04-26 Tom Tromey <tom@tromey.com>
8731
8732 * command.h (enum command_class) <class_pseudo>: Remove.
8733
bc3609fd
PW
87342020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8735
8736 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8737 and whitespace.
8738
b9771db7
KR
87392020-04-25 Kamil Rytarowski <n54@gmx.com>
8740
ec16513e
SM
8741 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8742 `PT_GET_PROCESS_STATE' block.
b9771db7 8743
7151c1af
TT
87442020-04-24 Tom Tromey <tom@tromey.com>
8745
8746 * symtab.h (symbol_get_demangled_name): Don't declare.
8747 * symtab.c (symbol_get_demangled_name): Remove.
8748 (general_symbol_info::natural_name)
8749 (general_symbol_info::demangled_name): Update.
8750
906bb4c5
TT
87512020-04-24 Tom Tromey <tom@tromey.com>
8752
8753 PR rust/25025:
8754 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8755
bcfe6157
TT
87562020-04-24 Tom Tromey <tom@tromey.com>
8757
8758 PR symtab/12707:
8759 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8760 exists.
8761 (new_symbol): Likewise.
8762 * compile/compile-object-load.c (get_out_value_type): Use
8763 symbol_matches_search_name.
8764
f049a313
TT
87652020-04-24 Tom Tromey <tom@tromey.com>
8766
8767 * dwarf2/read.c (add_partial_symbol): Do not call
8768 compute_and_set_names.
8769
76e288d1
TT
87702020-04-24 Tom Tromey <tom@tromey.com>
8771
8772 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8773 overload.
8774
2467f4f6
TT
87752020-04-24 Tom Tromey <tom@tromey.com>
8776
8777 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8778 (add_psymbol_to_list): New overload. Make old overload call new
8779 one.
8780 * psympriv.h (add_psymbol_to_list): New overload.
8781
e61108c9
TT
87822020-04-24 Tom Tromey <tom@tromey.com>
8783
8784 * dwarf2/read.c (partial_die_info::read) <case
8785 DW_AT_linkage_name>: Use value_as_string.
8786 (dwarf2_string_attr): Use value_as_string.
8787 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8788 method.
8789 * dwarf2/attribute.c (attribute::value_as_string): New method.
8790
8c87a452
TT
87912020-04-24 Tom Tromey <tom@tromey.com>
8792
8793 * symtab.c (general_symbol_info::natural_name)
8794 (general_symbol_info::demangled_name): Check for language_rust.
8795
787de330
TT
87962020-04-24 Tom Tromey <tom@tromey.com>
8797
8798 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8799 (dwarf2_physname): ... from here.
8800 (partial_die_info::read): Add Rust "{" hack.
8801
ff985671
TT
88022020-04-24 Tom Tromey <tom@tromey.com>
8803
8804 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8805 method.
8806 (symbol_set_demangled_name): Don't declare.
8807 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8808 symbol_set_demangled_name.
8809 (general_symbol_info::set_language)
8810 (general_symbol_info::compute_and_set_names): Update.
8811 * minsyms.c (minimal_symbol_reader::install): Update.
8812 * dwarf2/read.c (new_symbol): Update.
8813
1acda803
TT
88142020-04-24 Tom Tromey <tromey@adacore.com>
8815
8816 PR python/23662:
8817 * python/py-type.c (convert_field): Handle
8818 FIELD_LOC_KIND_DWARF_BLOCK.
8819 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8820 (typy_get_dynamic): Nw function.
8821 (type_object_getset): Add "dynamic".
8822 * NEWS: Add entry.
8823
d656f129
TT
88242020-04-24 Tom Tromey <tromey@adacore.com>
8825
8826 * ada-typeprint.c (print_choices, print_variant_part)
8827 (print_record_field_types_dynamic): New functions.
8828 (print_record_field_types): Use print_record_field_types_dynamic.
8829
7d79de9a
TT
88302020-04-24 Tom Tromey <tromey@adacore.com>
8831
8832 * dwarf2/read.c (handle_data_member_location): New overload.
8833 (dwarf2_add_field): Use it.
8834 (decode_locdesc): Add "computed" parameter. Update comment.
8835 * gdbtypes.c (is_dynamic_type_internal): Also look for
8836 FIELD_LOC_KIND_DWARF_BLOCK.
8837 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8838 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8839 virtual base classes.
8840 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8841 FIELD_LOC_KIND_DWARF_BLOCK.
8842
f8e89861
TT
88432020-04-24 Tom Tromey <tromey@adacore.com>
8844
8845 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8846 * gdbtypes.c (is_dynamic_type_internal): Check
8847 TYPE_HAS_DYNAMIC_LENGTH.
8848 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8849 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8850 New macros.
8851 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8852 constant.
8853
9c6a1327
TT
88542020-04-24 Tom Tromey <tromey@adacore.com>
8855
8856 * dwarf2/read.c (struct variant_field): Rewrite.
8857 (struct variant_part_builder): New.
8858 (struct nextfield): Remove "variant" field. Add "offset".
8859 (struct field_info): Add "current_variant_part" and
8860 "variant_parts".
8861 (alloc_discriminant_info): Remove.
8862 (alloc_rust_variant): New function.
8863 (quirk_rust_enum): Update.
8864 (dwarf2_add_field): Set "offset" member. Don't handle
8865 DW_TAG_variant_part.
8866 (offset_map_type): New typedef.
8867 (convert_variant_range, create_one_variant)
8868 (create_one_variant_part, create_variant_parts)
8869 (add_variant_property): New functions.
8870 (dwarf2_attach_fields_to_type): Call add_variant_property.
8871 (read_structure_type): Don't handle DW_TAG_variant_part.
8872 (handle_variant_part, handle_variant): New functions.
8873 (handle_struct_member_die): Use them.
8874 (process_structure_scope): Don't handle variant parts.
8875 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8876 (struct discriminant_info): Remove.
8877 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8878 (struct main_type) <flag_discriminated_union>: Remove.
8879 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8880 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8881 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8882 Update.
8883 * valops.c (value_union_variant): Remove.
8884 * value.h (value_union_variant): Don't declare.
8885
b249d2c2
TT
88862020-04-24 Tom Tromey <tromey@adacore.com>
8887
8888 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8889 (ada_value_primitive_packed_val): Update.
8890 * ada-valprint.c (ada_value_print_1): Update.
8891 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8892 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8893 just an address. Use evaluate_for_locexpr_baton.
8894 (dwarf2_evaluate_property): Update.
8895 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8896 array_view.
8897 * findvar.c (default_read_var_value): Update.
8898 * gdbtypes.c (compute_variant_fields_inner)
8899 (resolve_dynamic_type_internal): Update.
8900 (resolve_dynamic_type): Change type of valaddr parameter.
8901 * gdbtypes.h (resolve_dynamic_type): Update.
8902 * valarith.c (value_subscripted_rvalue): Update.
8903 * value.c (value_from_contents_and_address): Update.
8904
61122aa9
TT
89052020-04-24 Tom Tromey <tromey@adacore.com>
8906
8907 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8908 "push_initial_value" parameter.
8909 (dwarf2_evaluate_property): Likewise.
8910 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8911
ef83a141
TT
89122020-04-24 Tom Tromey <tromey@adacore.com>
8913
8914 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8915 (variant::matches, compute_variant_fields_recurse)
8916 (compute_variant_fields_inner, compute_variant_fields): New
8917 functions.
8918 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8919 Use resolved_type after type is made.
8920 (operator==): Add new cases.
8921 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8922 (struct discriminant_range, struct variant, struct variant_part):
8923 New.
8924 (union dynamic_prop_data) <variant_parts, original_type>: New
8925 members.
8926 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8927 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8928 constants.
8929 * value.c (unpack_bits_as_long): Now public.
8930 * value.h (unpack_bits_as_long): Declare.
8931
675127ec
TT
89322020-04-24 Tom Tromey <tromey@adacore.com>
8933
8934 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8935 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8936
9852ceef
HD
89372020-04-24 Hannes Domani <ssbssa@yahoo.de>
8938
8939 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8940
7632c6ce
KR
89412020-04-24 Kamil Rytarowski <n54@gmx.com>
8942
8943 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8944 (remove_fork_catchpoint, post_startup_inferior)
8945 (post_attach): Move...
8946 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8947 (remove_fork_catchpoint, post_startup_inferior)
8948 (post_attach): ...here.
8949 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8950 (remove_fork_catchpoint, post_startup_inferior)
8951 (post_attach): Move...
8952 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8953 (remove_fork_catchpoint, post_startup_inferior)
8954 (post_attach): ...here.
8955
7be2bb4f
TT
89562020-04-24 Tom Tromey <tromey@adacore.com>
8957
8958 * nat/windows-nat.h (struct windows_thread_info)
8959 <pc_adjusted>: New member.
8960 * windows-nat.c (windows_fetch_one_register): Check
8961 pc_adjusted.
8962 (windows_nat_target::get_windows_debug_event)
8963 (windows_nat_target::wait): Set pc_adjusted.
8964
f80cb3b4
TV
89652020-04-24 Tom de Vries <tdevries@suse.de>
8966
8967 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8968 Run gdb-add-index inside temp dir.
8969
29514b87
TT
89702020-04-23 Tom Tromey <tromey@adacore.com>
8971
8972 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8973 in loop.
8974
5939967b
LM
89752020-04-23 Luis Machado <luis.machado@linaro.org>
8976
8977 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8978 get_frame_register instead of gdbarch_unwind_pc.
8979
70bc38f5
TV
89802020-04-23 Tom de Vries <tdevries@suse.de>
8981
8982 * symtab.c (lookup_global_symbol): Prefer def over decl.
8983
de82891c
TV
89842020-04-23 Tom de Vries <tdevries@suse.de>
8985
8986 PR symtab/25807
8987 * block.c (best_symbol, better_symbol): Promote to external.
8988 * block.h (best_symbol, better_symbol): Declare.
8989 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8990 decl.
8991
ecc6c606
TT
89922020-04-23 Tom Tromey <tromey@adacore.com>
8993
8994 PR ada/25837:
8995 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8996 "const char *", not a "const std::string &".
8997 <name_and_matcher::operator==>: Update.
8998 * unittests/lookup_name_info-selftests.c: Change type of
8999 "result".
9000
740480b8
TT
90012020-04-23 Tom Tromey <tom@tromey.com>
9002
9003 * inferior.h (iterate_over_inferiors): Don't declare.
9004 * inferior.c (iterate_over_inferiors): Remove.
9005 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9006 Remove.
9007 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9008 use iterate_over_inferiors.
9009 (darwin_resume_inferior_it)
9010 (struct resume_inferior_threads_param)
9011 (darwin_resume_inferior_threads_it): Remove.
9012 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9013
ae3ab1f0
TV
90142020-04-23 Tom de Vries <tdevries@suse.de>
9015
9016 * blockframe.c (find_pc_partial_function): Use
9017 find_pc_sect_compunit_symtab rather than
9018 objfile->sf->qf->find_pc_sect_compunit_symtab.
9019
317d2668
TV
90202020-04-22 Tom de Vries <tdevries@suse.de>
9021
9022 PR symtab/25764
9023 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9024 in psymtabs.
9025
eea9e357
TV
90262020-04-22 Tom de Vries <tdevries@suse.de>
9027
9028 PR symtab/25801
9029 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9030 symtabs.
9031
3d5afab3
TV
90322020-04-22 Tom de Vries <tdevries@suse.de>
9033
9034 PR symtab/25700
9035 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9036 CU if already created.
9037
d43b7a2d
TBA
90382020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9039
9040 * infrun.c (displaced_step_fixup): Switch to the event_thread
9041 before calling displaced_step_restore, not after.
9042
d89edf9b
MM
90432020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9044
9045 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9046 its inferior is not recorded by us.
9047 (record_btrace_target_open): Replace call to
9048 all_non_exited_threads () with call to current_inferior
9049 ()->non_exited_threads ().
9050 (record_btrace_target::stop_recording): Likewise.
9051 (record_btrace_target::close): Likewise.
9052 (record_btrace_target::wait): Likewise.
9053 (record_btrace_target::record_stop_replaying): Likewise.
9054
5897fd49
MM
90552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9056
9057 * btrace.c (btrace_enable): Throw an error on double enables and
9058 when enabling recording fails.
9059 (btrace_disable): Throw an error if the thread is not recorded.
9060
1a476b6d
MM
90612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9062
9063 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9064 request if we do not have a thread_info.
9065
4778a5f8
TV
90662020-04-21 Tom de Vries <tdevries@suse.de>
9067
9068 PR gdb/25471
9069 * thread.c
9070 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9071 exception in get_frame_id.
9072
0fa7617d
TT
90732020-04-20 Tom Tromey <tromey@adacore.com>
9074
9075 * python/python.c (struct gdbpy_event): Mark move constructor as
9076 noexcept.
9077 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9078 constructor as noexcept.
9079 * completer.h (struct completion_result): Mark move constructor as
9080 noexcept.
9081 * completer.c (completion_result::completion_result): Use
9082 initialization style. Don't call reset_match_list.
9083
ad23bda0
MS
90842020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9085
9086 * MAINTAINERS (Write After Approval): Add myself.
9087
45e1f031
TT
90882020-04-18 Tom Tromey <tom@tromey.com>
9089
9090 * windows-tdep.c (init_w32_command_list)
9091 (w32_prefix_command_valid): Restore.
9092 (_initialize_windows_tdep): Call init_w32_command_list.
9093
08feed99
TT
90942020-04-18 Tom Tromey <tom@tromey.com>
9095
9096 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9097 * value.c (value_fn_field): Update.
9098 * valops.c (find_function_in_inferior)
9099 (value_allocate_space_in_inferior): Update.
9100 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9101 Update.
9102 * tui/tui-source.c (tui_source_window::set_contents): Update.
9103 * symtab.c (lookup_global_or_static_symbol)
9104 (find_function_start_sal_1, skip_prologue_sal)
9105 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9106 * symmisc.c (dump_msymbols, dump_symtab_1)
9107 (maintenance_print_one_line_table): Update.
9108 * symfile.c (init_entry_point_info, section_is_mapped)
9109 (list_overlays_command, simple_read_overlay_table)
9110 (simple_overlay_update_1): Update.
9111 * stap-probe.c (handle_stap_probe): Update.
9112 * stabsread.c (dbx_init_float_type, define_symbol)
9113 (read_one_struct_field, read_enum_type, read_range_type): Update.
9114 * source.c (info_line_command): Update.
9115 * python/python.c (gdbpy_source_objfile_script)
9116 (gdbpy_execute_objfile_script): Update.
9117 * python/py-type.c (save_objfile_types): Update.
9118 * python/py-objfile.c (py_free_objfile): Update.
9119 * python/py-inferior.c (python_new_objfile): Update.
9120 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9121 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9122 (maintenance_check_psymtabs): Update.
9123 * printcmd.c (info_address_command): Update.
9124 * objfiles.h (struct objfile) <arch>: New method, from
9125 get_objfile_arch.
9126 (get_objfile_arch): Don't declare.
9127 * objfiles.c (get_objfile_arch): Remove.
9128 (filter_overlapping_sections): Update.
9129 * minsyms.c (msymbol_is_function): Update.
9130 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9131 (output_nondebug_symbol): Update.
9132 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9133 (mdebug_expand_psymtab): Update.
9134 * machoread.c (macho_add_oso_symfile): Update.
9135 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9136 Update.
9137 * linux-fork.c (checkpoint_command): Update.
9138 * linespec.c (convert_linespec_to_sals): Update.
9139 * jit.c (finalize_symtab): Update.
9140 * infrun.c (insert_exception_resume_from_probe): Update.
9141 * ia64-tdep.c (ia64_find_unwind_table): Update.
9142 * hppa-tdep.c (internalize_unwinds): Update.
9143 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9144 Update.
9145 * gcore.c (call_target_sbrk): Update.
9146 * elfread.c (record_minimal_symbol, elf_symtab_read)
9147 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9148 (elf_gnu_ifunc_resolve_by_got): Update.
9149 * dwarf2/read.c (create_addrmap_from_index)
9150 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9151 (read_debug_names_from_section)
9152 (process_psymtab_comp_unit_reader, add_partial_symbol)
9153 (add_partial_subprogram, process_full_comp_unit)
9154 (read_file_scope, read_func_scope, read_lexical_block_scope)
9155 (read_call_site_scope, dwarf2_ranges_read)
9156 (dwarf2_record_block_ranges, dwarf2_add_field)
9157 (mark_common_block_symbol_computed, read_tag_pointer_type)
9158 (read_tag_string_type, dwarf2_init_float_type)
9159 (dwarf2_init_complex_target_type, read_base_type)
9160 (partial_die_info::read, partial_die_info::read)
9161 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9162 (dwarf2_fetch_die_loc_sect_off): Update.
9163 * dwarf2/loc.c (dwarf2_find_location_expression)
9164 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9165 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9166 (dwarf2_loc_desc_get_symbol_read_needs)
9167 (locexpr_describe_location_piece, locexpr_describe_location_1)
9168 (loclist_describe_location): Update.
9169 * dwarf2/index-write.c (write_debug_names): Update.
9170 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9171 * dtrace-probe.c (dtrace_process_dof): Update.
9172 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9173 (process_one_symbol): Update.
9174 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9175 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9176 (coff_read_enum_type): Update.
9177 * cli/cli-cmds.c (edit_command, list_command): Update.
9178 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9179 * breakpoint.c (create_overlay_event_breakpoint)
9180 (create_longjmp_master_breakpoint)
9181 (create_std_terminate_master_breakpoint)
9182 (create_exception_master_breakpoint, get_sal_arch): Update.
9183 * block.c (block_gdbarch): Update.
9184 * annotate.c (annotate_source_line): Update.
9185
0743fc83
TT
91862020-04-17 Tom Tromey <tromey@adacore.com>
9187
9188 * auto-load.c (show_auto_load_cmd): Remove.
9189 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9190 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9191 (maintenance_print_arc_command): Remove.
9192 * tui/tui-win.c (tui_command): Remove.
9193 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9194 * tui/tui-layout.c (tui_layout_command): Remove.
9195 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9196 * python/python.c (user_set_python, user_show_python): Remove.
9197 (_initialize_python): Use add_basic_prefix_cmd,
9198 add_show_prefix_cmd.
9199 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9200 (install_gdb_commands): Use add_basic_prefix_cmd,
9201 add_show_prefix_cmd.
9202 (info_guile_command): Remove.
9203 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9204 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9205 add_show_prefix_cmd.
9206 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9207 Remove do_set and do_show parameters.
9208 * cli/cli-style.c (set_style, show_style): Remove.
9209 (_initialize_cli_style): Use add_basic_prefix_cmd,
9210 add_show_prefix_cmd.
9211 (cli_style_option::add_setshow_commands): Remove do_set and
9212 do_show parameters.
9213 (cli_style_option::add_setshow_commands): Use
9214 add_basic_prefix_cmd, add_show_prefix_cmd.
9215 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9216 (set_style_name): Remove.
9217 * cli/cli-dump.c (dump_command, append_command): Remove.
9218 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9219 (tekhex_dump_command, binary_dump_command)
9220 (binary_append_command): Remove.
9221 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9222 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9223 (init_w32_command_list): Remove; move into ...
9224 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9225 * valprint.c (set_print, show_print, set_print_raw)
9226 (show_print_raw): Remove.
9227 (_initialize_valprint): Use add_basic_prefix_cmd,
9228 add_show_prefix_cmd.
9229 * typeprint.c (set_print_type, show_print_type): Remove.
9230 (_initialize_typeprint): Use add_basic_prefix_cmd,
9231 add_show_prefix_cmd.
9232 * record.c (set_record_command, show_record_command): Remove.
9233 (_initialize_record): Use add_basic_prefix_cmd,
9234 add_show_prefix_cmd.
9235 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9236 add_show_prefix_cmd.
9237 (info_command, show_command, set_debug, show_debug): Remove.
9238 * top.h (set_history, show_history): Don't declare.
9239 * top.c (set_history, show_history): Remove.
9240 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9241 (unset_tdesc_cmd): Remove.
9242 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9243 add_show_prefix_cmd.
9244 * symtab.c (info_module_command): Remove.
9245 (_initialize_symtab): Use add_basic_prefix_cmd.
9246 * symfile.c (overlay_command): Remove.
9247 (_initialize_symfile): Use add_basic_prefix_cmd.
9248 * sparc64-tdep.c (info_adi_command): Remove.
9249 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9250 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9251 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9252 add_show_prefix_cmd.
9253 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9254 (_initialize_serial): Use add_basic_prefix_cmd,
9255 add_show_prefix_cmd.
9256 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9257 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9258 add_show_prefix_cmd.
9259 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9260 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9261 add_show_prefix_cmd.
9262 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9263 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9264 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9265 add_show_prefix_cmd.
9266 * remote.c (remote_command, set_remote_cmd): Remove.
9267 (_initialize_remote): Use add_basic_prefix_cmd.
9268 * record-full.c (set_record_full_command)
9269 (show_record_full_command): Remove.
9270 (_initialize_record_full): Use add_basic_prefix_cmd,
9271 add_show_prefix_cmd.
9272 * record-btrace.c (cmd_set_record_btrace)
9273 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9274 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9275 (cmd_show_record_btrace_pt): Remove.
9276 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9277 add_show_prefix_cmd.
9278 * ravenscar-thread.c (set_ravenscar_command)
9279 (show_ravenscar_command): Remove.
9280 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9281 add_show_prefix_cmd.
9282 * mips-tdep.c (show_mips_command, set_mips_command)
9283 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9284 add_show_prefix_cmd.
9285 * maint.c (maintenance_command, maintenance_info_command)
9286 (maintenance_check_command, maintenance_print_command)
9287 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9288 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9289 add_show_prefix_cmd.
9290 (show_per_command_cmd): Remove.
9291 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9292 Remove.
9293 (maintenance_show_test_settings_cmd): Remove.
9294 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9295 add_show_prefix_cmd.
9296 * maint-test-options.c (maintenance_test_options_command):
9297 Remove.
9298 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9299 * macrocmd.c (macro_command): Remove
9300 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9301 * language.c (set_check, show_check): Remove.
9302 (_initialize_language): Use add_basic_prefix_cmd,
9303 add_show_prefix_cmd.
9304 * infcmd.c (unset_command): Remove.
9305 (_initialize_infcmd): Use add_basic_prefix_cmd.
9306 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9307 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9308 add_show_prefix_cmd.
9309 * go32-nat.c (go32_info_dos_command): Remove.
9310 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9311 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9312 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9313 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9314 (_initialize_frame): Use add_basic_prefix_cmd,
9315 add_show_prefix_cmd.
9316 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9317 (_initialize_dcache): Use add_basic_prefix_cmd,
9318 add_show_prefix_cmd.
9319 * cp-support.c (maint_cplus_command): Remove.
9320 (_initialize_cp_support): Use add_basic_prefix_cmd.
9321 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9322 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9323 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9324 add_basic_prefix_cmd, add_show_prefix_cmd.
9325 * breakpoint.c (save_command): Remove.
9326 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9327 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9328 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9329 add_show_prefix_cmd.
9330 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9331 (set_ada_command, show_ada_command): Remove.
9332 (_initialize_ada_language): Use add_basic_prefix_cmd,
9333 add_show_prefix_cmd.
9334 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9335
3557f442
KR
93362020-04-16 Kamil Rytarowski <n54@gmx.com>
9337
9338 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9339 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9340
16197208
SM
93412020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9342
9343 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9344 warning messages.
9345
00ac85d3
SM
93462020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9347
9348 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9349 import table is not at beginning of .idata section.
9350
381ce63f
PA
93512020-04-16 Pedro Alves <palves@redhat.com>
9352
9353 * inferior.c (delete_inferior): Use delete operator directly
9354 instead of delete_program_space.
9355 * progspace.c (add_program_space): New, factored out from
9356 program_space::program_space.
9357 (remove_program_space): New, factored out from
9358 delete_program_space.
9359 (program_space::program_space): Remove intro comment. Rewrite.
9360 (program_space::~program_space): Remove intro comment. Call
9361 remove_program_space.
9362 (delete_program_space): Delete.
9363 * progspace.h (program_space::program_space): Make explicit. Move
9364 intro comment here, adjusted.
9365 (program_space::~program_space): Move intro comment here,
9366 adjusted.
9367 (delete_program_space): Remove.
9368
a010605f
TT
93692020-04-16 Tom Tromey <tromey@adacore.com>
9370
9371 * windows-nat.c (windows_nat::handle_access_violation): New
9372 function.
9373 * nat/windows-nat.h (handle_access_violation): Declare.
9374 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9375 windows-nat.c. Call handle_access_violation.
9376
efba5c23
TV
93772020-04-16 Tom de Vries <tdevries@suse.de>
9378
9379 PR symtab/25791
9380 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9381 CUs without psymtab.
9382
97ed802d
KB
93832020-04-16 Kevin Buettner <kevinb@redhat.com>
9384
9385 * python/python.c (do_start_initialization): Don't call
9386 PyEval_InitThreads for Python 3.9 and beyond.
9387
c7d64809
KR
93882020-04-15 Kamil Rytarowski <n54@gmx.com>
9389
9390 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9391 thread functions.
9392 (obsd_nat_target::wait): Likewise.
9393
ce127a96
TT
93942020-04-15 Tom Tromey <tromey@adacore.com>
9395
9396 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9397 (DEBUG_EXCEPT): Use debug_printf.
9398
99f1bc6a
AB
93992020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9400
9401 * completer.c (class completion_tracker::completion_hash_entry)
9402 <hash_name>: New member function.
9403 (completion_tracker::discard_completions): New callback to hash a
9404 completion_hash_entry, pass this to htab_create_alloc.
9405
a0e9b532
JT
94062016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9407
9408 * windows-nat.c (windows_make_so): Warn rather than stopping with
9409 an error if realpath() fails.
9410
06ca5dd4
KR
94112020-04-14 Kamil Rytarowski <n54@gmx.com>
9412
9413 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9414 (nbsd_nat_target::info_proc): Add do_status.
9415
194d088f
TV
94162020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9417 Tom de Vries <tdevries@suse.de>
9418
9419 PR symtab/25718
9420 * psympriv.h (struct partial_symtab::read_symtab)
9421 (struct partial_symtab::expand_psymtab)
9422 (struct partial_symtab::read_dependencies): Update comments.
9423 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9424 read_symtab for includer.
9425 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9426 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9427 (struct dwarf2_include_psymtab::m_readin): Remove.
9428 (struct dwarf2_include_psymtab::includer): New member function.
9429 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9430
c1a66c06
TV
94312020-04-14 Tom de Vries <tdevries@suse.de>
9432
9433 PR symtab/25720
9434 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9435 with NULL symbol_matcher and lookup_name.
9436 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9437 and lookup_name.
9438 * dwarf2/read.c (dw2_expand_symtabs_matching)
9439 (dw2_debug_names_expand_symtabs_matching): Same.
9440 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9441 Make lookup_name a pointer. Update comment.
9442 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9443 lookup_name being a pointer.
9444 * symfile.c (expand_symtabs_matching): Same.
9445 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9446 * linespec.c (iterate_over_all_matching_symtabs): Same.
9447
400b5eca
TT
94482020-04-13 Tom Tromey <tom@tromey.com>
9449
9450 * run-on-main-thread.c: Update include.
9451 * unittests/main-thread-selftests.c: Update include.
9452 * tui/tui-win.c: Update include.
9453 * tui/tui-io.c: Update include.
9454 * tui/tui-interp.c: Update include.
9455 * tui/tui-hooks.c: Update include.
9456 * top.h: Update include.
9457 * top.c: Update include.
9458 * ser-base.c: Update include.
9459 * remote.c: Update include.
9460 * remote-notif.c: Update include.
9461 * remote-fileio.c: Update include.
9462 * record-full.c: Update include.
9463 * record-btrace.c: Update include.
9464 * python/python.c: Update include.
9465 * posix-hdep.c: Update include.
9466 * mingw-hdep.c: Update include.
9467 * mi/mi-main.c: Update include.
9468 * mi/mi-interp.c: Update include.
9469 * main.c: Update include.
9470 * linux-nat.c: Update include.
9471 * interps.c: Update include.
9472 * infrun.c: Update include.
9473 * inf-loop.c: Update include.
9474 * event-top.c: Update include.
9475 * event-loop.c: Move to ../gdbsupport/.
9476 * event-loop.h: Move to ../gdbsupport/.
9477 * async-event.h: Update include.
9478 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9479
93b54c8e
TT
94802020-04-13 Tom Tromey <tom@tromey.com>
9481
9482 * tui/tui-win.c: Include async-event.h.
9483 * remote.c: Include async-event.h.
9484 * remote-notif.c: Include async-event.h.
9485 * record-full.c: Include async-event.h.
9486 * record-btrace.c: Include async-event.h.
9487 * infrun.c: Include async-event.h.
9488 * event-top.c: Include async-event.h.
9489 * event-loop.h: Move some declarations to async-event.h.
9490 * event-loop.c: Don't include ser-event.h or top.h. Move some
9491 code to async-event.c.
9492 * async-event.h: New file.
9493 * async-event.c: New file.
9494 * Makefile.in (COMMON_SFILES): Add async-event.c.
9495 (HFILES_NO_SRCDIR): Add async-event.h.
9496
c1cd3163
TT
94972020-04-13 Tom Tromey <tom@tromey.com>
9498
9499 * utils.c (flush_streams): New function.
9500 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9501
29f2bf4f
TT
95022020-04-13 Tom Tromey <tom@tromey.com>
9503
9504 * event-loop.c (handle_file_event): Use warning, not
9505 printf_unfiltered.
9506
98029d02
TT
95072020-04-13 Tom Tromey <tom@tromey.com>
9508
9509 * event-loop.c: Include <chrono>.
9510
06cc9596
TT
95112020-04-13 Tom Tromey <tom@tromey.com>
9512
9513 * gdb_select.h: Move to ../gdbsupport/.
9514 * event-loop.c: Update include path.
9515 * top.c: Update include path.
9516 * ser-base.c: Update include path.
9517 * ui-file.c: Update include path.
9518 * ser-tcp.c: Update include path.
9519 * guile/scm-ports.c: Update include path.
9520 * posix-hdep.c: Update include path.
9521 * ser-unix.c: Update include path.
9522 * gdb_usleep.c: Update include path.
9523 * mingw-hdep.c: Update include path.
9524 * inflow.c: Update include path.
9525 * infrun.c: Update include path.
9526 * event-top.c: Update include path.
9527
8ae8e197
TT
95282020-04-13 Tom Tromey <tom@tromey.com>
9529
9530 * configure: Rebuild.
9531 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9532
58cf28e8
TT
95332020-04-13 Tom Tromey <tom@tromey.com>
9534
9535 * event-loop.h (start_event_loop): Don't declare.
9536 * event-loop.c (start_event_loop): Move...
9537 * main.c (start_event_loop): ...here. Now static.
9538
b7f999ae
SDJ
95392020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9540
9541 * MAINTAINERS: Update my email address.
9542
1085dfd4
KR
95432020-04-12 Kamil Rytarowski <n54@gmx.com>
9544
9545 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9546 IP_ALL.
9547
49d1d1f5
KR
95482020-04-12 Kamil Rytarowski <n54@gmx.com>
9549
9550 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9551 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9552
b4848d2a
KR
95532020-04-12 Kamil Rytarowski <n54@gmx.com>
9554
9555 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9556 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9557
51c133d5
KR
95582020-04-12 Kamil Rytarowski <n54@gmx.com>
9559
9560 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9561
54b8cbd0
KR
95622020-04-11 Kamil Rytarowski <n54@gmx.com>
9563
9564 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9565 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9566 (nbsd_nat_target::info_proc): New functions.
9567 * nbsd-nat.c (kinfo_get_vmmap): New function.
9568 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9569 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9570 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9571 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9572 functions.
9573 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9574 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9575 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9576 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9577 (KINFO_VME_FLAG_GROWS_DOWN): New.
9578
cf83625d
AS
95792020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9580
9581 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9582 bit shift.
9583
0c4311ab
TT
95842020-04-10 Tom Tromey <tromey@adacore.com>
9585
9586 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9587
3e65b3e9
TT
95882020-04-10 Tom Tromey <tromey@adacore.com>
9589
9590 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9591 separate debug files.
9592
13302e95
HD
95932020-04-10 Hannes Domani <ssbssa@yahoo.de>
9594
9595 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9596 Move to...
9597 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9598 ... here.
9599 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9600 Check for STATUS_WX86_BREAKPOINT.
9601 (windows_nat_target::wait): Same.
9602
bdfc1e8a
TV
96032020-04-10 Tom de Vries <tdevries@suse.de>
9604
9605 PR cli/25808
9606 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9607
f4460aec
SM
96082020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9609
9610 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9611 (Write After Approval): Remove Tom de Vries.
9612
a25198bb
BE
96132020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9614
9615 revert partially:
9616 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9617
aac66a4c
SM
9618 * buildsym.c (record_line): Fix undefined behavior and preserve
9619 lines at eof.
a25198bb 9620
206c98a6
KR
96212020-04-09 Kamil Rytarowski <n54@gmx.com>
9622
9623 * auxv.h (svr4_auxv_parse): New.
9624 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9625 and generic_auxv_parse.
9626 (svr4_auxv_parse): Add.
9627 * obsd-tdep.c: Include "auxv.h".
9628 (obsd_auxv_parse): Remove.
9629 (obsd_init_abi): Remove comment.
9630 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9631 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9632 * nbsd-tdep.c: Include "auxv.h".
9633 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9634
71fbdbaf
TT
96352020-04-08 Tom Tromey <tromey@adacore.com>
9636
9637 * nat/windows-nat.h (last_wait_event): Don't declare.
9638 (wait_for_debug_event): Update comment.
9639 * nat/windows-nat.c (last_wait_event): Now static.
9640
2c1d95e8
TT
96412020-04-08 Tom Tromey <tromey@adacore.com>
9642
9643 * windows-nat.c (wait_for_debug_event): Move to
9644 nat/windows-nat.c.
9645 * nat/windows-nat.h (wait_for_debug_event): Declare.
9646 * nat/windows-nat.c (wait_for_debug_event): Move from
9647 windows-nat.c. No longer static.
9648
d2977bc4
TT
96492020-04-08 Tom Tromey <tromey@adacore.com>
9650
9651 * windows-nat.c (get_windows_debug_event): Use
9652 fetch_pending_stop.
9653 * nat/windows-nat.h (fetch_pending_stop): Declare.
9654 * nat/windows-nat.c (fetch_pending_stop): New function.
9655
e758e19c
TT
96562020-04-08 Tom Tromey <tromey@adacore.com>
9657
9658 * windows-nat.c (windows_continue): Use matching_pending_stop and
9659 continue_last_debug_event.
9660 * nat/windows-nat.h (matching_pending_stop)
9661 (continue_last_debug_event): Declare.
9662 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9663 (matching_pending_stop, continue_last_debug_event): New
9664 functions.
9665
8d30e395
TT
96662020-04-08 Tom Tromey <tromey@adacore.com>
9667
9668 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9669 (handle_exception_result): Move to nat/windows-nat.h.
9670 (DEBUG_EXCEPTION_SIMPLE): Remove.
9671 (windows_nat::handle_ms_vc_exception): New function.
9672 (handle_exception): Move to nat/windows-nat.c.
9673 (get_windows_debug_event): Update.
9674 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9675 nat/windows-nat.c.
9676 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9677 (handle_exception_result): Move from windows-nat.c.
9678 (handle_exception): Declare.
9679 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9680 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9681 windows-nat.c.
9682
29de418d
TT
96832020-04-08 Tom Tromey <tromey@adacore.com>
9684
9685 * windows-nat.c (exception_count, event_count): Remove.
9686 (handle_exception, get_windows_debug_event)
9687 (do_initial_windows_stuff): Update.
9688
a816ba18
TT
96892020-04-08 Tom Tromey <tromey@adacore.com>
9690
9691 * windows-nat.c (windows_nat::handle_load_dll)
9692 (windows_nat::handle_unload_dll): Rename. No longer static.
9693 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9694 Declare.
9695
a00caa12
TT
96962020-04-08 Tom Tromey <tromey@adacore.com>
9697
9698 * complaints.h (stop_whining): Declare at top-level.
9699 (complaint): Don't declare stop_whining.
9700
d41b524f
TT
97012020-04-08 Tom Tromey <tromey@adacore.com>
9702
9703 * windows-nat.c (windows_nat::handle_output_debug_string):
9704 Rename. No longer static.
9705 * nat/windows-nat.h (handle_output_debug_string): Declare.
9706
3c76026d
TT
97072020-04-08 Tom Tromey <tromey@adacore.com>
9708
9709 * windows-nat.c (current_process_handle, current_process_id)
9710 (main_thread_id, last_sig, current_event, last_wait_event)
9711 (current_windows_thread, desired_stop_thread_id, pending_stops)
9712 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9713 (display_selectors, fake_create_process)
9714 (get_windows_debug_event): Update.
9715 * nat/windows-nat.h (current_process_handle, current_process_id)
9716 (main_thread_id, last_sig, current_event, last_wait_event)
9717 (current_windows_thread, desired_stop_thread_id, pending_stops)
9718 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9719 * nat/windows-nat.c (current_process_handle, current_process_id)
9720 (main_thread_id, last_sig, current_event, last_wait_event)
9721 (current_windows_thread, desired_stop_thread_id, pending_stops)
9722 (siginfo_er): New globals. Move from windows-nat.c.
9723
9d8679cc
TT
97242020-04-08 Tom Tromey <tromey@adacore.com>
9725
9726 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9727 (handle_load_dll): Update.
9728 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9729
28688adf
TT
97302020-04-08 Tom Tromey <tromey@adacore.com>
9731
9732 * windows-nat.c (enum thread_disposition_type): Move to
9733 nat/windows-nat.h.
9734 (windows_nat::thread_rec): Rename from thread_rec. No longer
9735 static.
9736 (windows_add_thread, windows_nat_target::fetch_registers)
9737 (windows_nat_target::store_registers, handle_exception)
9738 (windows_nat_target::resume, get_windows_debug_event)
9739 (windows_nat_target::get_tib_address)
9740 (windows_nat_target::thread_name)
9741 (windows_nat_target::thread_alive): Update.
9742 * nat/windows-nat.h (enum thread_disposition_type): Move from
9743 windows-nat.c.
9744 (thread_rec): Declare.
9745
4834dad0
TT
97462020-04-08 Tom Tromey <tromey@adacore.com>
9747
9748 * windows-nat.c: Add "using namespace".
9749 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9750 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9751
65bafd5b
TT
97522020-04-08 Tom Tromey <tromey@adacore.com>
9753
9754 * nat/windows-nat.h (struct windows_thread_info): Declare
9755 destructor.
9756 * nat/windows-nat.c (~windows_thread_info): New.
9757
0a4afda3
TT
97582020-04-08 Tom Tromey <tromey@adacore.com>
9759
9760 PR gdb/22992
9761 * windows-nat.c (current_event): Update comment.
9762 (last_wait_event, desired_stop_thread_id): New globals.
9763 (struct pending_stop): New.
9764 (pending_stops): New global.
9765 (windows_nat_target) <stopped_by_sw_breakpoint>
9766 <supports_stopped_by_sw_breakpoint>: New methods.
9767 (windows_fetch_one_register): Add assertions. Adjust PC.
9768 (windows_continue): Handle pending stops. Suspend other threads
9769 when stepping. Use last_wait_event
9770 (wait_for_debug_event): New function.
9771 (get_windows_debug_event): Use wait_for_debug_event. Handle
9772 pending stops. Queue spurious stops.
9773 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9774 (windows_nat_target::kill): Use wait_for_debug_event.
9775 * nat/windows-nat.h (struct windows_thread_info)
9776 <stopped_at_software_breakpoint>: New field.
9777 * nat/windows-nat.c (windows_thread_info::resume): Clear
9778 stopped_at_software_breakpoint.
9779
8e61ebec
TT
97802020-04-08 Tom Tromey <tromey@adacore.com>
9781
9782 * windows-nat.c (enum thread_disposition_type): New.
9783 (thread_rec): Replace "get_context" parameter with "disposition";
9784 change type.
9785 (windows_add_thread, windows_nat_target::fetch_registers)
9786 (windows_nat_target::store_registers, handle_exception)
9787 (windows_nat_target::resume, get_windows_debug_event)
9788 (windows_nat_target::get_tib_address)
9789 (windows_nat_target::thread_name)
9790 (windows_nat_target::thread_alive): Update.
9791
98a03287
TT
97922020-04-08 Tom Tromey <tromey@adacore.com>
9793
9794 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9795 (windows_continue): Use windows_continue::resume.
9796 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9797 resume>: Declare new methods.
9798 * nat/windows-nat.c: New file.
9799 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9800
7c7411bc
TT
98012020-04-08 Tom Tromey <tromey@adacore.com>
9802
9803 * windows-nat.c (windows_add_thread, windows_delete_thread)
9804 (windows_nat_target::fetch_registers)
9805 (windows_nat_target::store_registers, fake_create_process)
9806 (windows_nat_target::resume, windows_nat_target::resume)
9807 (get_windows_debug_event, windows_nat_target::wait)
9808 (windows_nat_target::pid_to_str)
9809 (windows_nat_target::get_tib_address)
9810 (windows_nat_target::get_ada_task_ptid)
9811 (windows_nat_target::thread_name)
9812 (windows_nat_target::thread_alive): Use lwp, not tid.
9813
2950fdf7
TT
98142020-04-08 Tom Tromey <tromey@adacore.com>
9815
9816 * windows-nat.c (handle_exception)
9817 (windows_nat_target::thread_name): Update.
9818 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9819 <name>: Now unique_xmalloc_ptr.
9820
62fe396b
TT
98212020-04-08 Tom Tromey <tromey@adacore.com>
9822
9823 * windows-nat.c (thread_rec)
9824 (windows_nat_target::fetch_registers): Update.
9825 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9826 Update comment.
9827 <debug_registers_changed, reload_context>: Now bool.
9828
e9534bd2
TT
98292020-04-08 Tom Tromey <tromey@adacore.com>
9830
9831 * windows-nat.c (windows_add_thread): Use new.
9832 (windows_init_thread_list, windows_delete_thread): Use delete.
9833 (get_windows_debug_event): Update.
9834 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9835 destructor, and initializers.
9836
ae1f8880
TT
98372020-04-08 Tom Tromey <tromey@adacore.com>
9838
9839 * windows-nat.c (struct windows_thread_info): Remove.
9840 * nat/windows-nat.h: New file.
9841
55a1e039
TT
98422020-04-08 Tom Tromey <tromey@adacore.com>
9843
9844 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9845 (thread_rec, windows_add_thread, windows_delete_thread)
9846 (windows_continue): Update.
9847
93366324
TT
98482020-04-08 Tom Tromey <tromey@adacore.com>
9849
9850 * windows-nat.c (struct windows_thread_info): Remove typedef.
9851 (thread_head): Remove.
9852 (thread_list): New global.
9853 (thread_rec, windows_add_thread, windows_init_thread_list)
9854 (windows_delete_thread, windows_continue): Update.
9855
0f2265e2
SM
98562020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9857
9858 * windows-tdep.h (windows_init_abi): Add comment.
9859 (cygwin_init_abi): New declaration.
9860 * windows-tdep.c: Split signal enumeration in two, one for
9861 Windows and one for Cygwin.
9862 (windows_gdb_signal_to_target): Only deal with signal of the
9863 Windows OS ABI.
9864 (cygwin_gdb_signal_to_target): New function.
9865 (windows_init_abi): Rename to windows_init_abi_common, don't set
9866 gdb_signal_to_target gdbarch method. Add new new function with
9867 this name.
9868 (cygwin_init_abi): New function.
9869 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9870 comment. Don't call windows_init_abi.
9871 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9872 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9873 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9874 i386_windows_init_abi_common, don't call windows_init_abi. Add
9875 a new function of this name.
9876 (i386_cygwin_init_abi): New function.
9877 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9878 OS ABI Cygwin.
9879
3810f182
SM
98802020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9881
9882 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9883 parameter.c.
9884 (dwarf2_read_gdb_index): Update.
9885
063f8e80
KR
98862020-04-07 Kamil Rytarowski <n54@gmx.com>
9887
9888 * nbsd-tdep.c: Include "objfiles.h".
9889 (nbsd_skip_solib_resolver): New.
9890 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9891
85a9510c 98922020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9893
9894 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9895 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9896 with DW_LLE_base_addressx are being emitted in DWARFv5.
9897 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9898 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9899 unsigned integer.
9900
9fc3eaae 99012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9902
9903 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9904 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9905 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9906 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9907 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9908 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9909 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9910
9911
41144253 99122020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9913
9914 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9915 (read_loclist_index): New function definition.
9916 (lookup_loclist_base): New function definition.
9917 (read_loclist_header): New function definition.
9918 (dwarf2_cu): Add loclist_base and loclist_header field.
9919 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9920 (read_full_die_1): Read the value of DW_AT_loclists_base.
9921 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9922 (read_attribute_value): Handle DW_FORM_loclistx.
9923 (skip_one_die): Handle DW_FORM_loclistx.
9924 (loclist_header): New structure declaration.
9925 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9926
9f4e76a4
SM
99272020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9928
9929 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9930 constructor. Remove `addr` parameter from other constructor and
9931 add `per_cu` parameter.
9932 * dwarf2/read.c (create_partial_symtab): Update.
9933
25c11aca
TV
99342020-04-07 Tom de Vries <tdevries@suse.de>
9935
9936 PR symtab/25796
9937 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9938 (partial_die_info::fixup): Inherit has_const_value.
9939
5707e24b
TV
99402020-04-07 Tom de Vries <tdevries@suse.de>
9941
9942 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9943 symbols without address.
9944
05f00e22
KR
99452020-04-06 Kamil Rytarowski <n54@gmx.com>
9946
9947 * nbsd-nat.h (struct thread_info): Add forward declaration.
9948 (nbsd_nat_target::thread_alive): Add.
9949 (nbsd_nat_target::thread_name): Likewise.
9950 (nbsd_nat_target::update_thread_list): Likewise.
9951 (update_thread_list::post_attach): Likewise.
9952 (post_attach::pid_to_str): Likewise.
9953 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9954 (nbsd_thread_lister): Add.
9955 (nbsd_nat_target::thread_alive): Likewise.
9956 (nbsd_nat_target::thread_name): Likewise.
9957 (nbsd_add_threads): Likewise.
9958 (update_thread_list::post_attach): Likewise.
9959 (nbsd_nat_target::update_thread_list): Likewise.
9960 (post_attach::pid_to_str): Likewise.
9961
6ee448cc
TT
99622020-04-06 Tom Tromey <tromey@adacore.com>
9963
9964 * ada-valprint.c (print_variant_part): Extract the variant field.
9965 (print_field_values): Use the field as the outer value when
9966 recursing.
9967
dea34e8c
TT
99682020-04-06 Tom Tromey <tromey@adacore.com>
9969
9970 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9971 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9972 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9973 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9974 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9975
93689ce9
TT
99762020-04-06 Tom Tromey <tromey@adacore.com>
9977
9978 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9979 TYPE_CODE_ERROR.
9980
79743962
KR
99812020-04-06 Kamil Rytarowski <n54@gmx.com>
9982
9983 * nbsd-tdep.c: Include "gdbarch.h".
9984 Define enum with NetBSD signal numbers.
9985 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9986 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9987 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9988 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9989 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9990 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9991 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9992 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9993 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9994 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9995 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9996 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9997
9e7c9a03
HD
99982020-04-03 Hannes Domani <ssbssa@yahoo.de>
9999
10000 PR gdb/25325
10001 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10002
d9e49b61
TT
100032020-04-03 Tom Tromey <tromey@adacore.com>
10004
10005 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10006 Read constant block.
10007
e0fc5c3f
SM
100082020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10009
10010 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10011 (gdb_bfd_get_full_section_contents): New declaration.
10012 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10013 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10014 gdb_bfd_get_full_section_contents.
10015
e2ff18a0
SM
100162020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10017
10018 * exec.c (build_section_table): Replace internal_error with
10019 gdb_assert.
10020 (section_table_xfer_memory_partial): Likewise.
10021 * mdebugread.c (parse_partial_symbols): Likewise.
10022 * psymtab.c (lookup_partial_symbol): Likewise.
10023 * utils.c (wrap_here): Likewise.
10024
0830d301
TT
100252020-04-02 Tom Tromey <tromey@adacore.com>
10026
10027 * f-lang.c (build_fortran_types): Use arch_type to initialize
10028 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10029
e7da7f8f
TT
100302020-04-02 Tom Tromey <tromey@adacore.com>
10031
10032 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10033 of attributes.
10034
c90d28ac
AB
100352020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10036 Bernd Edlinger <bernd.edlinger@hotmail.de>
10037 Tom Tromey <tromey@adacore.com>
10038
10039 * buildsym.c (buildsym_compunit::record_line): Remove
10040 deduplication code.
10041
1aa98955
TV
100422020-04-02 Tom de Vries <tdevries@suse.de>
10043
10044 PR ada/24671
10045 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10046
d3214198
TV
100472020-04-02 Tom de Vries <tdevries@suse.de>
10048
10049 * dwarf2/read.c (dwarf2_gdb_index_functions,
10050 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10051 NULL.
10052 * psymtab.c (psym_lookup_global_symbol_language): New function.
10053 (psym_functions): Init psym_lookup_global_symbol_language with
10054 psym_lookup_global_symbol_language.
10055 * symfile-debug.c (debug_sym_quick_functions): Init
10056 lookup_global_symbol_language with NULL.
10057 * symfile.c (set_initial_language): Remove fixme comment.
10058 * symfile.h (struct quick_symbol_functions): Add
10059 lookup_global_symbol_language.
10060 * symtab.c (find_quick_global_symbol_language): New function.
10061 (find_main_name): Use find_quick_global_symbol_language.
10062
2836752f
SM
100632020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10064
10065 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10066
64dc2d4b
BE
100672020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10068
10069 * buildsym.c (record_line): Fix undefined behavior and preserve
10070 lines at eof.
10071
bbe3dc41
BE
100722020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10073
10074 * buildsym.c (record_line): Fix the resizing condition.
10075
6b4a335b
TT
100762020-04-01 Tom Tromey <tom@tromey.com>
10077
10078 * value.h (value_literal_complex): Add comment.
10079 * valops.c (value_literal_complex): Refer to value.h.
10080
3638a098
TT
100812020-04-01 Tom Tromey <tom@tromey.com>
10082
10083 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10084 (scalar_type): New rule, from typebase.
10085 (typebase): Use scalar_type. Recognize complex types.
10086 (field_name): Handle FLOAT_KEYWORD.
10087 (ident_tokens): Add _Complex and __complex__.
10088
c34e8714
TT
100892020-04-01 Tom Tromey <tom@tromey.com>
10090
10091 PR exp/25299:
10092 * valarith.c (promotion_type, complex_binop): New functions.
10093 (scalar_binop): Handle complex numbers. Use promotion_type.
10094 (value_pos, value_neg, value_complement): Handle complex numbers.
10095
fa649bb7
TT
100962020-04-01 Tom Tromey <tom@tromey.com>
10097
10098 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10099 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10100 (parse_number): Handle complex numbers.
10101
981c08ce
TT
101022020-04-01 Tom Tromey <tom@tromey.com>
10103
10104 * c-valprint.c (c_decorations): Change complex suffix to "i".
10105
4c99290d
TT
101062020-04-01 Tom Tromey <tom@tromey.com>
10107
10108 * valprint.c (generic_value_print_complex): Use accessors.
10109 * value.h (value_real_part, value_imaginary_part): Declare.
10110 * valops.c (value_real_part, value_imaginary_part): New
10111 functions.
10112 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10113
5b930b45
TT
101142020-04-01 Tom Tromey <tom@tromey.com>
10115
10116 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10117 (read_range_type): Update.
10118 * mdebugread.c (basic_type): Update.
10119 * go-lang.c (build_go_types): Use init_complex_type.
10120 * gdbtypes.h (struct main_type) <complex_type>: New member.
10121 (init_complex_type): Update.
10122 (arch_complex_type): Don't declare.
10123 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10124 Make name if none given. Use alloc_type_copy. Look for cached
10125 complex type.
10126 (arch_complex_type): Remove.
10127 (gdbtypes_post_init): Use init_complex_type.
10128 * f-lang.c (build_fortran_types): Use init_complex_type.
10129 * dwarf2/read.c (read_base_type): Update.
10130 * d-lang.c (build_d_types): Use init_complex_type.
10131 * ctfread.c (read_base_type): Update.
10132
53cccef1
TBA
101332020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10134
10135 * infrun.c (stop_all_threads): Update assertion, plus when
10136 stopping threads, take into account that we might be trying
10137 to stop an all-stop target.
10138 (stop_waiting): Call 'stop_all_threads' if there exists a
10139 non-stop target.
10140
a0714d30
TBA
101412020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10142
10143 * target.h (exists_non_stop_target): New function declaration.
10144 * target.c (exists_non_stop_target): New function.
10145
60e22c1e
HD
101462020-04-01 Hannes Domani <ssbssa@yahoo.de>
10147
10148 PR gdb/24789
10149 * eval.c (is_integral_or_integral_reference): New function.
10150 (evaluate_subexp_standard): Allow integer references in
10151 pointer arithmetic.
10152
e139a727
TBA
101532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10154
10155 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10156 check for no ptid in the stop reply when the target is non-stop.
10157
e0802d59
TT
101582020-04-01 Tom Tromey <tromey@adacore.com>
10159
10160 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10161 "name" parameter to rvalue reference. Initialize m_name_holder.
10162 <lookup_name_info>: New overloads.
10163 <name>: Return gdb::string_view.
10164 <c_str>: New method.
10165 <make_ignore_params>: Update.
10166 <search_name_hash>: Update.
10167 <language_lookup_name>: Return const char *.
10168 <m_name>: Change type.
10169 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10170 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10171 (lookup_name_info::match_any): Update.
10172 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10173 Update.
10174 * minsyms.c (linkage_name_str): Update.
10175 * language.c (default_symbol_name_matcher): Update.
10176 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10177 Update.
10178 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10179 (ada_lookup_name_info::ada_lookup_name_info): Update.
10180 (literal_symbol_name_matcher): Update.
10181
8c072cb6
TT
101822020-04-01 Tom Tromey <tromey@adacore.com>
10183
10184 * psymtab.c (psymtab_search_name): Remove function.
10185 (psym_lookup_symbol): Create search name and lookup name here.
10186 (lookup_partial_symbol): Remove "name" parameter; add
10187 lookup_name.
10188 (psym_expand_symtabs_for_function): Update.
10189
6f29a534
TT
101902020-03-31 Joel Jones <joelkevinjones@gmail.com>
10191
10192 PR tui/25597:
10193 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10194
af62665e
TT
101952020-03-31 Tom Tromey <tromey@adacore.com>
10196
10197 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10198 memcpy.
10199
d1a89da5
NC
102002020-03-30 Nelson Chu <nelson.chu@sifive.com>
10201
10202 * features/riscv/32bit-csr.xml: Regenerated.
10203 * features/riscv/64bit-csr.xml: Regenerated.
10204
d8af9068
TT
102052020-03-30 Tom Tromey <tromey@adacore.com>
10206
10207 * ada-valprint.c (print_variant_part): Update.
10208 * ada-lang.h (ada_which_variant_applies): Update.
10209 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10210 outer_valaddr parameters; replace with "outer" value parameter.
10211 (to_fixed_variant_branch_type): Update.
10212
227c0bf4
PFC
102132020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10214
10215 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10216 <list>. Remove inclusion of observable.h.
10217 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10218 (struct arch_lwp_info): New struct.
10219 (class ppc_linux_dreg_interface): New class.
10220 (struct ppc_linux_process_info): New struct.
10221 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10222 <low_new_clone, low_forget_process, low_prepare_to_resume>
10223 <copy_thread_dreg_state, mark_thread_stale>
10224 <mark_debug_registers_changed, register_hw_breakpoint>
10225 <clear_hw_breakpoint, register_wp, clear_wp>
10226 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10227 <num_memory_accesses, get_trigger_type>
10228 <create_watchpoint_request, hwdebug_point_cmp>
10229 <init_arch_lwp_info, get_arch_lwp_info>
10230 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10231 methods.
10232 <struct ptid_hash>: New inner struct.
10233 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10234 members.
10235 (saved_dabr_value, hwdebug_info, max_slots_number)
10236 (struct hw_break_tuple, struct thread_points, ppc_threads)
10237 (have_ptrace_hwdebug_interface)
10238 (hwdebug_find_thread_points_by_tid)
10239 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10240 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10241 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10242 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10243 use m_dreg_interface.
10244 (hwdebug_point_cmp): Change to...
10245 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10246 reference arguments instead of pointers.
10247 (ppc_linux_nat_target::ranged_break_num_registers): Use
10248 m_dreg_interface.
10249 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10250 m_dreg_interface. Call register_hw_breakpoint.
10251 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10252 m_dreg_interface. Call clear_hw_breakpoint.
10253 (get_trigger_type): Change to...
10254 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10255 comment.
10256 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10257 use m_dreg_interface. Call register_hw_breakpoint.
10258 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10259 use m_dreg_interface. Call clear_hw_breakpoint.
10260 (can_use_watchpoint_cond_accel): Change to...
10261 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10262 method. Update comment, use m_dreg_interface and
10263 m_process_info.
10264 (calculate_dvc): Change to...
10265 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10266 m_dreg_interface.
10267 (num_memory_accesses): Change to...
10268 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10269 (check_condition): Change to...
10270 (ppc_linux_nat_target::check_condition): ...this method.
10271 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10272 comment, use m_dreg_interface.
10273 (create_watchpoint_request): Change to...
10274 (ppc_linux_nat_target::create_watchpoint_request): ...this
10275 method. Use m_dreg_interface.
10276 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10277 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10278 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10279 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10280 (ppc_linux_nat_target::low_forget_process)
10281 (ppc_linux_nat_target::low_new_fork)
10282 (ppc_linux_nat_target::low_new_clone)
10283 (ppc_linux_nat_target::low_delete_thread)
10284 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10285 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10286 only call mark_thread_stale.
10287 (ppc_linux_thread_exit): Remove.
10288 (ppc_linux_nat_target::stopped_data_address): Change to...
10289 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10290 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10291 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10292 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10293 comment. Call low_stopped_data_address.
10294 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10295 m_dreg_interface.
10296 (ppc_linux_nat_target::masked_watch_num_registers): Use
10297 m_dreg_interface.
10298 (ppc_linux_nat_target::copy_thread_dreg_state)
10299 (ppc_linux_nat_target::mark_thread_stale)
10300 (ppc_linux_nat_target::mark_debug_registers_changed)
10301 (ppc_linux_nat_target::register_hw_breakpoint)
10302 (ppc_linux_nat_target::clear_hw_breakpoint)
10303 (ppc_linux_nat_target::register_wp)
10304 (ppc_linux_nat_target::clear_wp)
10305 (ppc_linux_nat_target::init_arch_lwp_info)
10306 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10307 (_initialize_ppc_linux_nat): Remove observer callback.
10308
4db10d8f
PFC
103092020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10310
10311 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10312 (ppc_linux_nat_target::auxv_parse)
10313 (ppc_linux_nat_target::read_description)
10314 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10315 Move up.
10316
1310c1b0
PFC
103172020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10318
10319 * linux-nat.h (low_new_clone): New method.
10320 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10321
69b037c3
SM
103222020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10323
10324 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10325 (dbx_expand_psymtab): ... this.
10326 (start_psymtab): Update.
10327 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10328 (mdebug_expand_psymtab): ... this.
10329 (parse_partial_symbols): Update.
10330 (new_psymtab): Update.
10331 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10332 (xcoff_expand_psymtab): ... this.
10333 (xcoff_start_psymtab): Update.
10334
48993951
SM
103352020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10336
10337 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10338 <expand_dependencies>: ... this.
10339 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10340 (partial_symtab::expand_dependencies): ... this.
10341 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10342 Update.
10343 (dwarf2_psymtab::expand_psymtab): Update.
10344 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10345 * mdebugread.c (psymtab_to_symtab_1): Update.
10346 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10347
3ad83046
SM
103482020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10349
10350 * psympriv.h (discard_psymtab): Remove.
10351 * dbxread.c (dbx_end_psymtab): Update.
10352 * xcoffread.c (xcoff_end_psymtab): Update.
10353
4d1b9ab6
TT
103542020-03-28 Tom Tromey <tom@tromey.com>
10355
10356 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10357 comment.
10358
f1749218
TT
103592020-03-28 Tom Tromey <tom@tromey.com>
10360
10361 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10362
ebea7626
HD
103632020-03-27 Hannes Domani <ssbssa@yahoo.de>
10364
10365 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10366
a879b4d5
JB
103672020-03-26 John Baldwin <jhb@FreeBSD.org>
10368
10369 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10370
0826b30a
TT
103712020-03-26 Tom Tromey <tom@tromey.com>
10372
10373 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10374 (mark_common_block_symbol_computed, read_tag_string_type)
10375 (attr_to_dynamic_prop, read_subrange_type): Update.
10376 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10377 to be methods on struct attribute.
10378 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10379 (read_call_site_scope, partial_die_info::read)
10380 (partial_die_info::read, lookup_die_type, follow_die_ref):
10381 Update.
10382 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10383 from dwarf2_get_ref_die_offset.
10384 (attribute::constant_value): New method, from
10385 dwarf2_get_attr_constant_value.
10386 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10387 Declare method.
10388 <constant_value>: New method.
10389
2b2558bf
TT
103902020-03-26 Tom Tromey <tom@tromey.com>
10391
10392 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10393 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10394 (dwarf_type_encoding_name): Move to stringify.c.
10395 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10396 * dwarf2/stringify.c: New file.
10397 * dwarf2/stringify.h: New file.
10398
eeb64781
TT
103992020-03-26 Tom Tromey <tom@tromey.com>
10400
10401 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10402 Rewrite.
10403
a39fdb41
TT
104042020-03-26 Tom Tromey <tom@tromey.com>
10405
10406 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10407 methods.
10408 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10409 (lookup_ranges_base): Likewise.
10410 (read_cutu_die_from_dwo, read_full_die_1): Update.
10411
436c571c
TT
104122020-03-26 Tom Tromey <tom@tromey.com>
10413
10414 * dwarf2/read.c (read_import_statement, read_file_scope)
10415 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10416 (read_lexical_block_scope, read_call_site_scope)
10417 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10418 (handle_struct_member_die, process_structure_scope)
10419 (update_enumeration_type_from_children)
10420 (process_enumeration_scope, read_array_type, read_common_block)
10421 (read_namespace, read_module, read_subroutine_type): Update.
10422 (sibling_die): Remove.
10423
052c8bb8
TT
104242020-03-26 Tom Tromey <tom@tromey.com>
10425
10426 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10427 (build_type_psymtabs_reader, read_structure_type)
10428 (read_enumeration_type, read_full_die_1): Update.
10429 (dwarf2_attr_no_follow): Move to die.h.
10430 * dwarf2/die.h (struct die_info) <attr>: New method.
10431
2b24b6e4
TT
104322020-03-26 Tom Tromey <tom@tromey.com>
10433
10434 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10435 <base_address>: Now an optional.
10436 (dwarf2_find_base_address, dwarf2_rnglists_process)
10437 (dwarf2_ranges_process, fill_in_loclist_baton)
10438 (dwarf2_symbol_mark_computed): Update.
10439
c2d50fd0
TT
104402020-03-26 Tom Tromey <tom@tromey.com>
10441
10442 * dwarf2/read.c (struct die_info): Move to die.h.
10443 * dwarf2/die.h: New file.
10444
0df7ad3a
TT
104452020-03-26 Tom Tromey <tom@tromey.com>
10446
10447 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10448 * dwarf2/read.c
10449 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10450 Move to line-header.c.
10451 (read_checked_initial_length_and_offset, read_formatted_entries):
10452 Likewise.
10453 (dwarf_decode_line_header): Split into two.
10454 * dwarf2/line-header.c
10455 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10456 Move from read.c.
10457 (read_checked_initial_length_and_offset, read_formatted_entries):
10458 Likewise.
10459 (dwarf_decode_line_header): New function, split from read.c.
10460
86c0bb4c
TT
104612020-03-26 Tom Tromey <tom@tromey.com>
10462
10463 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10464 Declare method.
10465 * dwarf2/read.c (read_attribute_value): Update.
10466 (dwarf2_per_objfile::read_line_string): Rename from
10467 read_indirect_line_string.
10468 (read_formatted_entries): Update.
10469
2ef46c2f
TT
104702020-03-26 Tom Tromey <tom@tromey.com>
10471
10472 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10473 variable.
10474
4f9c1eda
TT
104752020-03-26 Tom Tromey <tom@tromey.com>
10476
10477 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10478 const.
10479 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10480 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10481 parameter const.
10482
5a0e026f
TT
104832020-03-26 Tom Tromey <tom@tromey.com>
10484
10485 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10486 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10487 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10488 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10489
8844c11b
TT
104902020-03-26 Tom Tromey <tom@tromey.com>
10491
10492 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10493 file_names_size, file_full_name, file_file_name>: Use const.
10494 <file_name_at, file_names>: Add const overload.
10495 * dwarf2/line-header.c (line_header::file_file_name)
10496 (line_header::file_full_name): Update.
10497
c90ec28a
TT
104982020-03-26 Tom Tromey <tom@tromey.com>
10499
10500 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10501 (macro_start_file, consume_improper_spaces)
10502 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10503 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10504 (dwarf_decode_macros): Move to macro.c.
10505 * dwarf2/macro.c: New file.
10506 * dwarf2/macro.h: New file.
10507 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10508
4f44ae6c
TT
105092020-03-26 Tom Tromey <tom@tromey.com>
10510
10511 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10512 method.
10513 * dwarf2/section.c: New method. From
10514 read_indirect_string_at_offset_from.
10515 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10516 (read_indirect_string_at_offset_from): Move to section.c.
10517 (read_indirect_string_at_offset): Rewrite.
10518 (read_indirect_line_string_at_offset): Remove.
10519 (read_indirect_string, read_indirect_line_string)
10520 (dwarf_decode_macro_bytes): Update.
10521
a0194fa8
TT
105222020-03-26 Tom Tromey <tom@tromey.com>
10523
10524 * dwarf2/section.h (struct dwarf2_section_info)
10525 <overload_complaint>: Declare.
10526 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10527 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10528 Rename from dwarf2_section_buffer_overflow_complaint.
10529 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10530 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10531
3d27bbdb
TT
105322020-03-26 Tom Tromey <tom@tromey.com>
10533
10534 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10535 Declare.
10536 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10537 Move from read.c.
10538 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10539 to section.c.
10540
9eac9650
TT
105412020-03-26 Tom Tromey <tom@tromey.com>
10542
10543 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10544
bf80d710
TT
105452020-03-26 Tom Tromey <tom@tromey.com>
10546
10547 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10548 "builder".
10549 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10550 parameter.
10551 (dwarf_decode_macros): Update.
10552
0314b390
TT
105532020-03-26 Tom Tromey <tom@tromey.com>
10554
10555 * dwarf2/read.c (read_attribute_value): Update.
10556 (read_indirect_string_from_dwz): Move to dwz.c; change into
10557 method.
10558 (dwarf_decode_macro_bytes): Update.
10559 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10560 * dwarf2/dwz.c: New file.
10561 * Makefile.in (COMMON_SFILES): Add dwz.c.
10562
9fda78b6
TT
105632020-03-26 Tom Tromey <tom@tromey.com>
10564
10565 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10566 * dwarf2/read.c: Add include.
10567 * dwarf2/index-write.c: Add include.
10568 * dwarf2/index-cache.c: Add include.
10569 * dwarf2/dwz.h: New file.
10570
33aa3c10
TT
105712020-03-25 Tom Tromey <tom@tromey.com>
10572
10573 * compile/compile-object-load.c (get_out_value_type): Mention
10574 correct symbol name in error message.
10575
d503b685
HD
105762020-03-25 Hannes Domani <ssbssa@yahoo.de>
10577
10578 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10579
7b1eff95
TV
105802020-03-25 Tom de Vries <tdevries@suse.de>
10581
10582 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10583 * symmisc.c (dump_symtab_1): Print user and includes fields.
10584 (maintenance_info_symtabs): Same.
10585
dd895392
AB
105862020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10587
10588 PR gdb/25534
10589 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10590 (riscv_regcache_cooked_write): New function.
10591 (riscv_push_dummy_call): Use new function.
10592 (riscv_return_value): Likewise.
10593
5ab2fbf1
SM
105942020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10595
10596 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10597 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10598 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10599 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10600 * infrun.c (follow_fork): Likewise.
10601 (follow_fork_inferior): Likewise.
10602 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10603 * linux-nat.h (class linux_nat_target): Likewise.
10604 * remote.c (class remote_target) <follow_fork>: Likewise.
10605 (remote_target::follow_fork): Likewise.
10606 * target-delegates.c: Re-generate.
10607 * target.c (default_follow_fork): Likewise.
10608 (target_follow_fork): Likewise.
10609 * target.h (struct target_ops) <follow_fork>: Likewise.
10610 (target_follow_fork): Likewise.
10611
a64fafb5
TV
106122020-03-24 Tom de Vries <tdevries@suse.de>
10613
10614 * psymtab.c (maintenance_info_psymtabs): Print user field.
10615
fe26d3a3
TT
106162020-03-20 Tom Tromey <tromey@adacore.com>
10617
10618 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10619 const.
10620 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10621 const.
10622
c884cc46
SM
106232020-03-20 Simon Marchi <simon.marchi@efficios.com>
10624
10625 * ptrace.m4: Don't check for ptrace declaration.
10626 * config.in: Re-generate.
10627 * configure: Re-generate.
10628 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10629 not defined.
10630
1ff700c2
KR
106312020-03-20 Kamil Rytarowski <n54@gmx.com>
10632
10633 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10634 `PTRACE_TYPE_RET'.
10635 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10636 * sparc-nat.c (gdb_ptrace): Likewise.
10637 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10638
f7d4f0b1
TT
106392020-03-20 Tom Tromey <tromey@adacore.com>
10640
10641 * c-exp.y (lex_one_token): Fix assert.
10642
f67210ff
TT
106432020-03-20 Tom Tromey <tromey@adacore.com>
10644
10645 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10646 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10647 strncpy call.
10648
1773be9e
TT
106492020-03-20 Tom Tromey <tromey@adacore.com>
10650
10651 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10652
70304be9
TT
106532020-03-20 Tom Tromey <tromey@adacore.com>
10654
10655 * ada-valprint.c (print_variant_part): Remove parameters; switch
10656 to value-based API.
10657 (print_field_values): Likewise.
10658 (ada_val_print_struct_union): Likewise.
10659 (ada_value_print_1): Update.
10660
9faa006d
KR
106612020-03-20 Kamil Rytarowski <n54@gmx.com>
10662
10663 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10664 nbsd_nat_target instead of inf_ptrace_target.
10665 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10666 nbsd_nat_target.
10667
4a90f062
KR
106682020-03-20 Kamil Rytarowski <n54@gmx.com>
10669
10670 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10671 it to the ptrace call.
10672 * (store_registers): Likewise.
10673
106742020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10675
10676 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10677 it to the ptrace call.
10678 * (store_registers): Likewise.
10679
2d07da27
LM
106802020-03-19 Luis Machado <luis.machado@linaro.org>
10681
10682 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10683 valid, fetch vg value from ptrace.
10684
f09db380
KR
106852020-03-19 Kamil Rytarowski <n54@gmx.com>
10686 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10687 * inf-ptrace.c: Likewise.
10688 * (gdb_ptrace): Add.
10689 * (inf_ptrace_target::resume): Update.
10690 * (inf_ptrace_target::xfer_partial): Likewise.
10691 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10692 * (inf_ptrace_peek_poke): Update.
10693
fcc7376e
KR
106942020-03-19 Kamil Rytarowski <n54@gmx.com>
10695
10696 * x86-bsd-nat.c (gdb_ptrace): New.
10697 * (x86bsd_dr_set): Add new argument `ptid'.
10698 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10699 x86bsd_dr_set_addr): Update.
10700
cada5fc9
AB
107012020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10702
10703 * remote.c (remote_target::process_stop_reply): Handle events for
10704 all threads differently.
10705
19a2740f
AB
107062020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10707
10708 * completer.c (completion_tracker::remove_completion): Define new
10709 function.
10710 * completer.h (completion_tracker::remove_completion): Declare new
10711 function.
10712 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10713 when adding a C++ function symbol.
10714
724fd9ba
AB
107152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10716
10717 * completer.c (completion_tracker::completion_hash_entry): Define
10718 new class.
10719 (advance_to_filename_complete_word_point): Call
10720 recompute_lowest_common_denominator.
10721 (completion_tracker::completion_tracker): Call discard_completions
10722 to setup the hash table.
10723 (completion_tracker::discard_completions): Allow for being called
10724 from the constructor, pass new equal function, and element deleter
10725 when constructing the hash table. Initialise new class member
10726 variables.
10727 (completion_tracker::maybe_add_completion): Remove use of
10728 m_entries_vec, and store more information into m_entries_hash.
10729 (completion_tracker::recompute_lcd_visitor): New function, most
10730 content taken from...
10731 (completion_tracker::recompute_lowest_common_denominator):
10732 ...here, this now just visits each item in the hash calling the
10733 above visitor.
10734 (completion_tracker::build_completion_result): Remove use of
10735 m_entries_vec, call recompute_lowest_common_denominator.
10736 * completer.h (completion_tracker::have_completions): Remove use
10737 of m_entries_vec.
10738 (completion_tracker::completion_hash_entry): Declare new class.
10739 (completion_tracker::recompute_lowest_common_denominator): Change
10740 function signature.
10741 (completion_tracker::recompute_lcd_visitor): Declare new function.
10742 (completion_tracker::m_entries_vec): Delete.
10743 (completion_tracker::m_entries_hash): Initialize to NULL.
10744 (completion_tracker::m_lowest_common_denominator_valid): New
10745 member variable.
10746 (completion_tracker::m_lowest_common_denominator_max_length): New
10747 member variable.
10748
5a82b8a1
KR
107492020-03-17 Kamil Rytarowski <n54@gmx.com>
10750
10751 * regformats/regdef.h: Put reg in gdb namespace.
10752
fb516a69
KR
107532020-03-17 Kamil Rytarowski <n54@gmx.com>
10754
10755 * i386-bsd-nat.c (gdb_ptrace): New.
10756 * (i386bsd_fetch_inferior_registers,
10757 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10758 * (i386bsd_fetch_inferior_registers,
10759 i386bsd_store_inferior_registers) Use gdb_ptrace.
10760
1c0aa1fb
KR
107612020-03-17 Kamil Rytarowski <n54@gmx.com>
10762
10763 * amd64-bsd-nat.c (gdb_ptrace): New.
10764 * (amd64bsd_fetch_inferior_registers,
10765 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10766 * (amd64bsd_fetch_inferior_registers,
10767 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10768
5ccd2fb7
KR
107692020-03-17 Kamil Rytarowski <n54@gmx.com>
10770
10771 * user-regs.c (user_reg::read): Rename to...
10772 (user_reg::xread): ...this.
10773 * (append_user_reg): Rename argument `read' to `xread'.
10774 * (user_reg_add_builtin): Likewise.
10775 * (user_reg_add): Likewise.
10776 * (value_of_user_reg): Likewise.
10777
2108a63a
KR
107782020-03-17 Kamil Rytarowski <n54@gmx.com>
10779
10780 * sparc-nat.c (gdb_ptrace): New.
10781 * sparc-nat.c (sparc_fetch_inferior_registers)
10782 (sparc_store_inferior_registers) Remove obsolete comment.
10783 * sparc-nat.c (sparc_fetch_inferior_registers)
10784 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10785 * sparc-nat.c (sparc_fetch_inferior_registers)
10786 (sparc_store_inferior_registers) Use gdb_ptrace.
10787
a225c9a8
KR
107882020-03-17 Kamil Rytarowski <n54@gmx.com>
10789
10790 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10791 it to the ptrace call.
10792 * sh-nbsd-nat.c (store_registers): Likewise.
10793
98097623
KR
107942020-03-17 Kamil Rytarowski <n54@gmx.com>
10795
10796 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10797 nbsd_nat_target instead of inf_ptrace_target.
10798 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10799 nbsd_nat_target.
10800
9e38d619
KR
108012020-03-17 Kamil Rytarowski <n54@gmx.com>
10802
10803 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10804
a2ecbe9f
KR
108052020-03-17 Kamil Rytarowski <n54@gmx.com>
10806
10807 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10808 <sys/sysctl.h>.
10809 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10810
58990295
TV
108112020-03-17 Tom de Vries <tdevries@suse.de>
10812
10813 PR gdb/23710
10814 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10815 fields.
10816 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10817 fields.
10818 (process_imported_unit_die): Skip import of c++ CUs.
10819
771dd3a8
TT
108202020-03-16 Tom Tromey <tom@tromey.com>
10821
10822 * p-valprint.c (pascal_object_print_value): Initialize
10823 base_value.
10824
817a7585
AK
108252020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10826 Shahab Vahedi <shahab@synopsys.com>
10827
10828 * Makefile.in: Add arch/arc.o
10829 * configure.tgt: Likewise.
10830 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10831 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10832 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10833 * arc-tdep.h (arc_read_description): Add proto type.
10834 * arch/arc.c: New file.
10835 * arch/arc.h: Likewise.
10836 * features/Makefile: Replace old target descriptions with new.
10837 * features/arc-arcompact.c: Remove.
10838 * features/arc-arcompact.xml: Likewise.
10839 * features/arc-v2.c: Likewise
10840 * features/arc-v2.xml: Likewise
10841 * features/arc/aux-arcompact.xml: New file.
10842 * features/arc/aux-v2.xml: Likewise.
10843 * features/arc/core-arcompact.xml: Likewise.
10844 * features/arc/core-v2.xml: Likewise.
10845 * features/arc/aux-arcompact.c: Generate.
10846 * features/arc/aux-v2.c: Likewise.
10847 * features/arc/core-arcompact.c: Likewise.
10848 * features/arc/core-v2.c: Likewise.
10849 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10850
67430cd0
TT
108512020-03-16 Tom Tromey <tromey@adacore.com>
10852
10853 PR gdb/25663:
10854 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10855 putting value into bcache.
10856
30efb6c7
SM
108572020-03-16 Simon Marchi <simon.marchi@efficios.com>
10858
10859 PR gdb/21500
10860 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10861 to...
10862 (amd64_windows_init_abi_common): ... this. Don't set size of
10863 long type.
10864 (amd64_windows_init_abi): New function.
10865 (amd64_cygwin_init_abi): New function.
10866 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10867 the Cygwin OS ABI.
10868 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10869 comment.
10870
8db52437
SM
108712020-03-16 Simon Marchi <simon.marchi@efficios.com>
10872
10873 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10874 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10875 (pe_import_directory_entry): New struct type.
10876 (is_linked_with_cygwin_dll): New function.
10877 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10878 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10879 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10880
5982a56a
SM
108812020-03-16 Simon Marchi <simon.marchi@efficios.com>
10882
10883 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10884 i386_cygwin_core_osabi_sniffer.
10885
7a1998df
SM
108862020-03-16 Simon Marchi <simon.marchi@efficios.com>
10887
10888 * i386-cygwin-tdep.c: Rename to...
10889 * i386-windows-tdep.c: ... this.
10890 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10891 i386-windows-tdep.c.
10892 * configure.tgt: Likewise.
10893
053205cc
SM
108942020-03-16 Simon Marchi <simon.marchi@efficios.com>
10895
10896 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10897 * osabi.c (gdb_osabi_names): Add "Windows".
10898 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10899 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10900 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10901 i386_cygwin_osabi_sniffer.
10902 (_initialize_i386_cygwin_tdep): Register OS ABI
10903 GDB_OSABI_WINDOWS for i386.
10904 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10905 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10906 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10907 for x86-64.
10908 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10909 when the target matches '*-*-mingw*'.
10910
fe4b2ee6
SM
109112020-03-16 Simon Marchi <simon.marchi@efficios.com>
10912
10913 * defs.h (enum gdb_osabi): Move to...
10914 * osabi.h (enum gdb_osabi): ... here.
10915 * gdbarch.sh: Include osabi.h in gdbarch.h.
10916 * gdbarch.h: Re-generate.
10917
cb9b645d
SM
109182020-03-16 Simon Marchi <simon.marchi@efficios.com>
10919
10920 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10921 function.
10922 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10923
3293bbaf
TT
109242020-03-14 Tom Tromey <tom@tromey.com>
10925
10926 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10927 for C++.
10928 (c_type_print_modifier): Likewise. Add "language" parameter.
10929 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10930 (c_type_print_base_1): Update.
10931 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10932 constants.
10933 * type-stack.c (type_stack::insert): Handle tp_atomic and
10934 tp_restrict.
10935 (type_stack::follow_type_instance_flags): Likewise.
10936 (type_stack::follow_types): Likewise. Merge type-following code.
10937 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10938 (space_identifier, cv_with_space_id)
10939 (const_or_volatile_or_space_identifier_noopt)
10940 (const_or_volatile_or_space_identifier): Remove.
10941 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10942 rules.
10943 (ptr_operator, typebase): Update.
10944 (enum token_flag) <FLAG_C>: New constant.
10945 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10946 "_Atomic".
10947 (lex_one_token): Handle FLAG_C.
10948
154151a6
KR
109492020-03-14 Kamil Rytarowski <n54@gmx.com>
10950
10951 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10952 it to the ptrace call.
10953 * m68k-bsd-nat.c (store_registers): Likewise.
10954
bc107784
KR
109552020-03-14 Kamil Rytarowski <n54@gmx.com>
10956
10957 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10958 gdb_byte *.
10959 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10960 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10961 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10962
01a80117
KR
109632020-03-14 Kamil Rytarowski <n54@gmx.com>
10964
10965 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10966 nbsd_nat_target instead of inf_ptrace_target.
10967 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10968 nbsd_nat_target.
10969
f90280ca
KR
109702020-03-14 Kamil Rytarowski <n54@gmx.com>
10971
10972 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10973 register_t.
10974
6def66f1
KR
109752020-03-14 Kamil Rytarowski <n54@gmx.com>
10976
10977 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10978 it to the ptrace call.
10979 * alpha-bsd-nat.c (store_registers): Likewise.
10980
66eaca97
KR
109812020-03-14 Kamil Rytarowski <n54@gmx.com>
10982
10983 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10984 includes.
10985 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10986 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10987 fill_fpregset): Likewise.
10988
4fed520b
KR
109892020-03-14 Kamil Rytarowski <n54@gmx.com>
10990
10991 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10992 nbsd_nat_target instead of inf_ptrace_target.
10993 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10994 nbsd_nat_target.
10995
2190cf06
KR
109962020-03-14 Kamil Rytarowski <n54@gmx.com>
10997
10998 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10999 register_t.
11000
75c56d3d
KR
110012020-03-14 Kamil Rytarowski <n54@gmx.com>
11002
11003 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11004 it to the ptrace call.
11005 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11006 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11007 * arm-nbsd-nat.c (store_register): Likewise.
11008 * arm-nbsd-nat.c (store_regs): Likewise.
11009 * arm-nbsd-nat.c (store_fp_register): Likewise.
11010 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11011
6018d381
KR
110122020-03-14 Kamil Rytarowski <n54@gmx.com>
11013
11014 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11015 nbsd_nat_target instead of inf_ptrace_target.
11016 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11017 nbsd_nat_target.
11018
013f99f0
KR
110192020-03-14 Kamil Rytarowski <n54@gmx.com>
11020
11021 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11022 it to the ptrace call.
11023 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11024
12753073
KR
110252020-03-14 Kamil Rytarowski <n54@gmx.com>
11026
6227b330
KR
11027 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11028 it to the ptrace call.
11029 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11030
110312020-03-14 Kamil Rytarowski <n54@gmx.com>
11032
11033 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11034 gdb_byte *.
12753073
KR
11035 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11036
d5be5fa4
KR
110372020-03-14 Kamil Rytarowski <n54@gmx.com>
11038
11039 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11040 instead of inf_ptrace_target.
11041 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11042 nbsd_nat_target.
11043
8110f842
KR
110442020-03-14 Kamil Rytarowski <n54@gmx.com>
11045
11046 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11047 register_t.
11048
52feded7
KR
110492020-03-14 Kamil Rytarowski <n54@gmx.com>
11050
11051 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11052 register_t.
11053
25567eee
KR
110542020-03-14 Kamil Rytarowski <n54@gmx.com>
11055
11056 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11057 register_t.
11058
426a9c18
TT
110592020-03-13 Tom Tromey <tom@tromey.com>
11060
11061 * value.h (val_print): Don't declare.
11062 * valprint.h (val_print_array_elements)
11063 (val_print_scalar_formatted, generic_val_print): Don't declare.
11064 * valprint.c (generic_val_print_array): Take a struct value.
11065 (generic_val_print_ptr, generic_val_print_memberptr)
11066 (generic_val_print_bool, generic_val_print_int)
11067 (generic_val_print_char, generic_val_print_complex)
11068 (generic_val_print): Remove.
11069 (generic_value_print): Update.
11070 (do_val_print): Remove unused parameters. Don't call
11071 la_val_print.
11072 (val_print): Remove.
11073 (common_val_print): Update. Don't call value_check_printable.
11074 (val_print_scalar_formatted, val_print_array_elements): Remove.
11075 * rust-lang.c (rust_val_print): Remove.
11076 (rust_language_defn): Update.
11077 * p-valprint.c (pascal_val_print): Remove.
11078 (pascal_value_print_inner): Update.
11079 (pascal_object_print_val_fields, pascal_object_print_val):
11080 Remove.
11081 (pascal_object_print_static_field): Update.
11082 * p-lang.h (pascal_val_print): Don't declare.
11083 * p-lang.c (pascal_language_defn): Update.
11084 * opencl-lang.c (opencl_language_defn): Update.
11085 * objc-lang.c (objc_language_defn): Update.
11086 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11087 * m2-lang.h (m2_val_print): Don't declare.
11088 * m2-lang.c (m2_language_defn): Update.
11089 * language.h (struct language_defn) <la_val_print>: Remove.
11090 * language.c (unk_lang_value_print_inner): Rename. Change
11091 argument types.
11092 (unknown_language_defn, auto_language_defn): Update.
11093 * go-valprint.c (go_val_print): Remove.
11094 * go-lang.h (go_val_print): Don't declare.
11095 * go-lang.c (go_language_defn): Update.
11096 * f-valprint.c (f_val_print): Remove.
11097 * f-lang.h (f_value_print): Don't declare.
11098 * f-lang.c (f_language_defn): Update.
11099 * d-valprint.c (d_val_print): Remove.
11100 * d-lang.h (d_value_print): Don't declare.
11101 * d-lang.c (d_language_defn): Update.
11102 * cp-valprint.c (cp_print_value_fields)
11103 (cp_print_value_fields_rtti, cp_print_value): Remove.
11104 (cp_print_static_field): Update.
11105 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11106 (c_val_print_struct, c_val_print_union, c_val_print_int)
11107 (c_val_print_memberptr, c_val_print): Remove.
11108 * c-lang.h (c_val_print_array, cp_print_value_fields)
11109 (cp_print_value_fields_rtti): Don't declare.
11110 * c-lang.c (c_language_defn, cplus_language_defn)
11111 (asm_language_defn, minimal_language_defn): Update.
11112 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11113 (ada_val_print_enum): Take a struct value.
11114 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11115 (ada_val_print): Remove.
11116 (ada_value_print_1): Update.
11117 (printable_val_type): Remove.
11118 * ada-lang.h (ada_val_print): Don't declare.
11119 * ada-lang.c (ada_language_defn): Update.
11120
42331a1e
TT
111212020-03-13 Tom Tromey <tom@tromey.com>
11122
11123 * valprint.c (do_val_print): Update.
11124 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11125 a struct value.
11126 (value_to_value_object_no_release): Declare.
11127 * python/py-value.c (value_to_value_object_no_release): New
11128 function.
11129 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11130 struct value.
11131 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11132 function.
11133 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11134 a struct value.
11135 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11136 Declare.
11137 (gdbscm_apply_val_pretty_printer): Take a struct value.
11138 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11139 value.
11140 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11141 value.
11142 * extension-priv.h (struct extension_language_ops)
11143 <apply_val_pretty_printer>: Take a struct value.
11144 * cp-valprint.c (cp_print_value): Create a struct value.
11145 (cp_print_value): Update.
11146
3a916a97
TT
111472020-03-13 Tom Tromey <tom@tromey.com>
11148
11149 * ada-valprint.c (print_field_values): Call common_val_print.
11150
b59eac37
TT
111512020-03-13 Tom Tromey <tom@tromey.com>
11152
11153 * ada-valprint.c (val_print_packed_array_elements): Remove
11154 bitoffset and val parameters. Call common_val_print.
11155 (ada_val_print_string): Remove offset, address, and original_value
11156 parameters.
11157 (ada_val_print_array): Update.
11158 (ada_value_print_array): New function.
11159 (ada_value_print_1): Call it.
11160
03371129
TT
111612020-03-13 Tom Tromey <tom@tromey.com>
11162
11163 * ada-valprint.c (ada_value_print): Use common_val_print.
11164
2e088f8b
TT
111652020-03-13 Tom Tromey <tom@tromey.com>
11166
11167 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11168
39ef85a8
TT
111692020-03-13 Tom Tromey <tom@tromey.com>
11170
11171 * ada-valprint.c (ada_value_print_num): New function.
11172 (ada_value_print_1): Use it.
11173
b9fa6e07
TT
111742020-03-13 Tom Tromey <tom@tromey.com>
11175
11176 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11177
416595d6
TT
111782020-03-13 Tom Tromey <tom@tromey.com>
11179
11180 * ada-valprint.c (ada_value_print_ptr): New function.
11181 (ada_value_print_1): Use it.
11182
5b5e15ec
TT
111832020-03-13 Tom Tromey <tom@tromey.com>
11184
11185 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11186 call common_val_print.
11187 (ada_val_print_1): Update.
11188 (ada_value_print_1): New function.
11189 (ada_value_print_inner): Rewrite.
11190
fbf54e75
TT
111912020-03-13 Tom Tromey <tom@tromey.com>
11192
11193 * cp-valprint.c (cp_print_value_fields): Update.
11194 (cp_print_value): New function.
11195
64b653ca
TT
111962020-03-13 Tom Tromey <tom@tromey.com>
11197
11198 * m2-valprint.c (m2_value_print_inner): Use
11199 cp_print_value_fields.
11200 * cp-valprint.c (cp_print_value_fields): New function.
11201 * c-valprint.c (c_value_print_struct): New function.
11202 (c_value_print_inner): Use c_value_print_struct.
11203 * c-lang.h (cp_print_value_fields): Declare.
11204
6999f067
TT
112052020-03-13 Tom Tromey <tom@tromey.com>
11206
11207 * c-valprint.c (c_value_print_array): New function.
11208 (c_value_print_inner): Use it.
11209
ce80b8bd
TT
112102020-03-13 Tom Tromey <tom@tromey.com>
11211
11212 * c-valprint.c (c_value_print_memberptr): New function.
11213 (c_value_print_inner): Use it.
11214
2faac269
TT
112152020-03-13 Tom Tromey <tom@tromey.com>
11216
11217 * c-valprint.c (c_value_print_int): New function.
11218 (c_value_print_inner): Use it.
11219
da3e2c29
TT
112202020-03-13 Tom Tromey <tom@tromey.com>
11221
11222 * c-valprint.c (c_value_print_ptr): New function.
11223 (c_value_print_inner): Use it.
11224
50836231
TT
112252020-03-13 Tom Tromey <tom@tromey.com>
11226
11227 * c-valprint.c (c_value_print_inner): Rewrite.
11228
4f412b6e
TT
112292020-03-13 Tom Tromey <tom@tromey.com>
11230
11231 * valprint.c (generic_value_print_complex): New function.
11232 (generic_value_print): Use it.
11233
f5354008
TT
112342020-03-13 Tom Tromey <tom@tromey.com>
11235
11236 * valprint.c (generic_val_print_float): Don't call
11237 val_print_scalar_formatted.
11238 (generic_val_print, generic_value_print): Update.
11239
3eec3b05
TT
112402020-03-13 Tom Tromey <tom@tromey.com>
11241
11242 * valprint.c (generic_value_print_char): New function
11243 (generic_value_print): Use it.
11244
fdddfccb
TT
112452020-03-13 Tom Tromey <tom@tromey.com>
11246
11247 * valprint.c (generic_value_print_int): New function.
11248 (generic_value_print): Use it.
11249
6dde7521
TT
112502020-03-13 Tom Tromey <tom@tromey.com>
11251
11252 * valprint.c (generic_value_print_bool): New function.
11253 (generic_value_print): Use it.
11254
4112d2e6
TT
112552020-03-13 Tom Tromey <tom@tromey.com>
11256
11257 * valprint.c (generic_val_print_func): Simplify.
11258 (generic_val_print, generic_value_print): Update.
11259
65786af6
TT
112602020-03-13 Tom Tromey <tom@tromey.com>
11261
11262 * valprint.c (generic_val_print_flags): Remove.
11263 (generic_val_print, generic_value_print): Update.
11264 (val_print_type_code_flags): Add original_value parameter.
11265
40f3ce18
TT
112662020-03-13 Tom Tromey <tom@tromey.com>
11267
11268 * valprint.c (generic_val_print): Update.
11269 (generic_value_print): Update.
11270 * valprint.c (generic_val_print_enum): Don't call
11271 val_print_scalar_formatted.
11272
2a5b130b
TT
112732020-03-13 Tom Tromey <tom@tromey.com>
11274
11275 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11276 * valprint.c (generic_value_print_ptr): New function.
11277
abc66ce9
TT
112782020-03-13 Tom Tromey <tom@tromey.com>
11279
11280 * valprint.c (generic_value_print): Rewrite.
11281
07a32858
TT
112822020-03-13 Tom Tromey <tom@tromey.com>
11283
11284 * p-valprint.c (pascal_object_print_value_fields)
11285 (pascal_object_print_value): New functions.
11286
64d64d3a
TT
112872020-03-13 Tom Tromey <tom@tromey.com>
11288
11289 * p-valprint.c (pascal_value_print_inner): Rewrite.
11290
6a95a1f5
TT
112912020-03-13 Tom Tromey <tom@tromey.com>
11292
11293 * f-valprint.c (f_value_print_innner): Rewrite.
11294
59fcdac6
TT
112952020-03-13 Tom Tromey <tom@tromey.com>
11296
11297 * m2-valprint.c (m2_print_unbounded_array): New overload.
11298 (m2_print_unbounded_array): Update.
11299 (m2_print_array_contents): Take a struct value.
11300 (m2_value_print_inner): Rewrite.
11301
d133c3e1
TT
113022020-03-13 Tom Tromey <tom@tromey.com>
11303
11304 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11305 (d_value_print_inner): New function.
11306 * d-lang.h (d_value_print_inner): Declare.
11307 * d-lang.c (d_language_defn): Use d_value_print_inner.
11308
23b0f06b
TT
113092020-03-13 Tom Tromey <tom@tromey.com>
11310
11311 * go-valprint.c (go_value_print_inner): New function.
11312 * go-lang.h (go_value_print_inner): Declare.
11313 * go-lang.c (go_language_defn): Use go_value_print_inner.
11314
5f56f7cb
TT
113152020-03-13 Tom Tromey <tom@tromey.com>
11316
11317 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11318 API.
11319 (rust_val_print): Rewrite.
11320 (rust_value_print_inner): New function, from rust_val_print.
11321 (rust_language_defn): Use rust_value_print_inner.
11322
26792ee0
TT
113232020-03-13 Tom Tromey <tom@tromey.com>
11324
11325 * ada-valprint.c (ada_value_print_inner): New function.
11326 * ada-lang.h (ada_value_print_inner): Declare.
11327 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11328
24051bbe
TT
113292020-03-13 Tom Tromey <tom@tromey.com>
11330
11331 * f-valprint.c (f_value_print_innner): New function.
11332 * f-lang.h (f_value_print_innner): Declare.
11333 * f-lang.c (f_language_defn): Use f_value_print_innner.
11334
c0941be6
TT
113352020-03-13 Tom Tromey <tom@tromey.com>
11336
11337 * p-valprint.c (pascal_value_print_inner): New function.
11338 * p-lang.h (pascal_value_print_inner): Declare.
11339 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11340
62c4663d
TT
113412020-03-13 Tom Tromey <tom@tromey.com>
11342
11343 * m2-valprint.c (m2_value_print_inner): New function.
11344 * m2-lang.h (m2_value_print_inner): Declare.
11345 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11346
62182190
TT
113472020-03-13 Tom Tromey <tom@tromey.com>
11348
11349 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11350 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11351 * c-valprint.c (c_value_print_inner): New function.
11352 * c-lang.h (c_value_print_inner): Declare.
11353 * c-lang.c (c_language_defn, cplus_language_defn)
11354 (asm_language_defn, minimal_language_defn): Use
11355 c_value_print_inner.
11356
1e592a8a
TT
113572020-03-13 Tom Tromey <tom@tromey.com>
11358
11359 * p-valprint.c (pascal_object_print_value_fields): Now static.
11360 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11361
7fe471e9
TT
113622020-03-13 Tom Tromey <tom@tromey.com>
11363
11364 * c-valprint.c (c_val_print_array): Simplify.
11365
d121c6ce
TT
113662020-03-13 Tom Tromey <tom@tromey.com>
11367
11368 * valprint.c (value_print_array_elements): New function.
11369 * valprint.h (value_print_array_elements): Declare.
11370
4dba70ee
TT
113712020-03-13 Tom Tromey <tom@tromey.com>
11372
11373 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11374 * mips-tdep.c (mips_print_register): Use
11375 value_print_scalar_formatted.
11376
4f9ae810
TT
113772020-03-13 Tom Tromey <tom@tromey.com>
11378
11379 * valprint.h (value_print_scalar_formatted): Declare.
11380 * valprint.c (value_print_scalar_formatted): New function.
11381
156bfec9
TT
113822020-03-13 Tom Tromey <tom@tromey.com>
11383
11384 * valprint.h (generic_value_print): Declare.
11385 * valprint.c (generic_value_print): New function.
11386
2b4e573d
TT
113872020-03-13 Tom Tromey <tom@tromey.com>
11388
11389 * valprint.c (do_val_print): Call la_value_print_inner, if
11390 available.
11391 * rust-lang.c (rust_language_defn): Update.
11392 * p-lang.c (pascal_language_defn): Update.
11393 * opencl-lang.c (opencl_language_defn): Update.
11394 * objc-lang.c (objc_language_defn): Update.
11395 * m2-lang.c (m2_language_defn): Update.
11396 * language.h (struct language_defn) <la_value_print_inner>: New
11397 member.
11398 * language.c (unknown_language_defn, auto_language_defn): Update.
11399 * go-lang.c (go_language_defn): Update.
11400 * f-lang.c (f_language_defn): Update.
11401 * d-lang.c (d_language_defn): Update.
11402 * c-lang.c (c_language_defn, cplus_language_defn)
11403 (asm_language_defn, minimal_language_defn): Update.
11404 * ada-lang.c (ada_language_defn): Update.
11405
a1f6a07c
TT
114062020-03-13 Tom Tromey <tom@tromey.com>
11407
11408 * c-valprint.c (c_value_print): Use common_val_print.
11409
410cf315
TT
114102020-03-13 Tom Tromey <tom@tromey.com>
11411
11412 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11413
72a45c93
TT
114142020-03-13 Tom Tromey <tom@tromey.com>
11415
11416 * f-valprint.c (f77_print_array_1, f_val_print): Use
11417 common_val_print.
11418
040f66bd
TT
114192020-03-13 Tom Tromey <tom@tromey.com>
11420
11421 * riscv-tdep.c (riscv_print_one_register_info): Use
11422 common_val_print.
11423
a6e05a6c
TT
114242020-03-13 Tom Tromey <tom@tromey.com>
11425
11426 * mi/mi-main.c (output_register): Use common_val_print.
11427
3444c526
TT
114282020-03-13 Tom Tromey <tom@tromey.com>
11429
11430 * infcmd.c (default_print_one_register_info): Use
11431 common_val_print.
11432
c2a44efe
TT
114332020-03-13 Tom Tromey <tom@tromey.com>
11434
11435 * valprint.h (common_val_print_checked): Declare.
11436 * valprint.c (common_val_print_checked): New function.
11437 * stack.c (print_frame_arg): Use common_val_print_checked.
11438
b0c26e99
TT
114392020-03-13 Tom Tromey <tom@tromey.com>
11440
11441 * valprint.c (do_val_print): New function, from val_print.
11442 (val_print): Use do_val_print.
11443 (common_val_print): Use do_val_print.
11444
ce3acbe9
TT
114452020-03-13 Tom Tromey <tom@tromey.com>
11446
11447 * valprint.c (value_print): Use scoped_value_mark.
11448
96c7f873
TV
114492020-03-13 Tom de Vries <tdevries@suse.de>
11450
11451 PR symtab/25646
11452 * psymtab.c (partial_symtab::partial_symtab): Don't set
11453 globals_offset and statics_offset. Push element onto
11454 current_global_psymbols and current_static_psymbols stacks.
11455 (concat): New function.
11456 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11457 element from current_global_psymbols and current_static_psymbols
11458 stacks. Concat popped elements to global_psymbols and
11459 static_symbols.
11460 (add_psymbol_to_list): Use current_global_psymbols and
11461 current_static_psymbols stacks.
11462 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11463 current_static_psymbols fields.
11464
6ba0a321
CB
114652020-03-12 Christian Biesinger <cbiesinger@google.com>
11466
11467 * corelow.c (sniff_core_bfd): Remove.
11468 (class core_target) <m_core_vec>: Remove.
11469 (core_target::core_target): Update.
11470 (core_file_fns): Remove.
11471 (deprecated_add_core_fns): Remove.
11472 (default_core_sniffer): Remove.
11473 (sniff_core_bfd): Remove.
11474 (default_check_format): Remove.
11475 (gdb_check_format): Remove.
11476 (core_target_open): Update.
11477 (core_target::get_core_register_section): Update.
11478 (get_core_registers_cb): Update.
11479 (core_target::fetch_registers): Update.
11480 * gdbcore.h (struct core_fns): Remove.
11481 (deprecated_add_core_fns): Remove.
11482 (default_core_sniffer): Remove.
11483 (default_check_format): Remove.
11484
227031b2
TT
114852020-03-12 Tom Tromey <tom@tromey.com>
11486
11487 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11488 CORE_ADDR.
11489 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11490
53807e9f
TT
114912020-03-12 Tom Tromey <tom@tromey.com>
11492
11493 * remote.c (remote_target::download_tracepoint)
11494 (remote_target::enable_tracepoint)
11495 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11496 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11497 sprintf_vma.
11498
64f25102
TT
114992020-03-12 Tom Tromey <tom@tromey.com>
11500
11501 * symfile-mem.c: Update CORE_ADDR size assert.
11502
272cd5a3
SM
115032020-03-12 Simon Marchi <simon.marchi@efficios.com>
11504
11505 * selftest.m4: Move to gdbsupport/.
11506 * acinclude.m4: Update path to selftest.m4.
11507
74cd3f9d
SM
115082020-03-12 Simon Marchi <simon.marchi@efficios.com>
11509
11510 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11511 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11512 gdbarch-selfselftests.c and selftest-arch.c.
11513 (SUBDIR_UNITTESTS_OBS): Rename to...
11514 (SELFTESTS_OBS): ... this.
11515 (COMMON_SFILES): Remove disasm-selftests.c and
11516 gdbarch-selftests.c.
11517 * configure.ac: Don't add selftest-arch.{c,o} to
11518 CONFIG_{SRCS,OBS}.
11519 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11520 preprocessor conditions.
11521
db6878ac
SM
115222020-03-12 Simon Marchi <simon.marchi@efficios.com>
11523
11524 * configure.ac: Don't source bfd/development.sh.
11525 * selftest.m4: Modify comment.
11526 * configure: Re-generate.
11527
4d696a5c
SM
115282020-03-12 Simon Marchi <simon.marchi@efficios.com>
11529
11530 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11531 not "true" or "false".
11532 * configure: Re-generate.
11533
8dd8e1c7
CB
115342020-03-12 Christian Biesinger <cbiesinger@google.com>
11535
11536 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11537 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11538 renamed to arm_nbsd_supply_gregset.
11539 (fetch_register): Update to call arm_nbsd_supply_gregset.
11540 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11541 (arm_netbsd_nat_target::fetch_registers): Update.
11542 (fetch_elfcore_registers): Removed.
11543 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11544 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11545 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11546 not require NetBSD system headers.
11547 (arm_nbsd_regset): New struct.
11548 (arm_nbsd_iterate_over_regset_sections): New function.
11549 (arm_netbsd_init_abi_common): Updated to call
11550 set_gdbarch_iterate_over_regset_sections.
11551 * arm-nbsd-tdep.h: New file.
11552
dd69bf7a
KB
115532020-03-11 Kevin Buettner <kevinb@redhat.com>
11554
11555 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11556 recursion.
11557
a0761e34
SM
115582020-03-11 Simon Marchi <simon.marchi@efficios.com>
11559
11560 * configure: Re-generate.
11561
e7a82140
TT
115622020-03-11 Tom Tromey <tromey@adacore.com>
11563
11564 * ada-typeprint.c (print_choices): Fix comment.
11565
dcc050c8
AB
115662020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11567
11568 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11569 previous item in the list, when the list has no items.
11570
1c33af77
TV
115712020-03-11 Tom de Vries <tdevries@suse.de>
11572
11573 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11574 PROP_LOCLIST handling code.
11575
8c95582d
AB
115762020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11577
11578 * buildsym-legacy.c (record_line): Pass extra parameter to
11579 record_line.
11580 * buildsym.c (buildsym_compunit::record_line): Take an extra
11581 parameter, reduce duplication in the line table, and record the
11582 is_stmt flag in the line table.
11583 * buildsym.h (buildsym_compunit::record_line): Add extra
11584 parameter.
11585 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11586 non-statement lines.
11587 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11588 this to the symtab builder.
11589 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11590 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11591 through to dwarf_record_line_1.
11592 * infrun.c (process_event_stop_test): When stepping, don't stop at
11593 a non-statement instruction, and only refresh the step info when
11594 we land in the middle of a line's range. Also add an extra
11595 comment.
11596 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11597 field.
11598 * record-btrace.c (btrace_find_line_range): Only record lines
11599 marked as is-statement.
11600 * stack.c (frame_show_address): Show the frame address if we are
11601 in a non-statement sal.
11602 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11603 (maintenance_print_one_line_table): Print a header for the is_stmt
11604 column, and include is_stmt information in the output.
11605 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11606 preference to non-statements.
11607 (find_pcs_for_symtab_line): Prefer is-statement entries.
11608 (find_line_common): Likewise.
11609 * symtab.h (struct linetable_entry): Add is_stmt field.
11610 (struct symtab_and_line): Likewise.
11611 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11612 arranging the line table.
11613
e4003a34
TV
116142020-03-07 Tom de Vries <tdevries@suse.de>
11615
11616 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11617 DIE.
11618
e8932576
TT
116192020-03-07 Tom Tromey <tom@tromey.com>
11620
11621 * valops.c (value_literal_complex): Remove obsolete comment.
11622 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11623 comment.
11624
29734269
SM
116252020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11626
11627 * infrun.h: Forward-declare thread_info.
11628 (set_step_info): Add thread_info parameter, add doc.
11629 * infrun.c (set_step_info): Add thread_info parameter, move doc
11630 to header.
11631 * infrun.c (process_event_stop_test): Pass thread to
11632 set_step_info call.
11633 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11634 set_step_info.
11635 (prepare_one_step): Add thread_info parameter, pass it to
11636 set_step_frame and prepare_one_step (recursive) call.
11637 (step_1): Pass thread to prepare_one_step call.
11638 (step_command_fsm::should_stop): Pass thread to
11639 prepare_one_step.
11640 (until_next_fsm): Pass thread to set_step_frame call.
11641 (finish_command): Pass thread to set_step_info call.
11642
b7d64b29
HD
116432020-03-06 Hannes Domani <ssbssa@yahoo.de>
11644
11645 * windows-tdep.c (windows_solib_create_inferior_hook):
11646 Check if inferior is running.
11647
09f2921c
TV
116482020-03-06 Tom de Vries <tdevries@suse.de>
11649
11650 * NEWS: Fix "the the".
11651 * ctfread.c: Same.
11652
fd760e79
TV
116532020-03-06 Tom de Vries <tdevries@suse.de>
11654
11655 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11656
20ea4a60
AB
116572020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11658
11659 * .dir-locals.el: Add a comment referencing the other copies of
11660 this file.
11661
0afbabf0
JB
116622020-03-05 John Baldwin <jhb@FreeBSD.org>
11663
11664 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11665 psargs.
11666
842806cb
TBA
116672020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11668
11669 * .gitattributes: New file.
11670
be1e3d3e
TT
116712020-03-04 Tom Tromey <tom@tromey.com>
11672
11673 * symmisc.c (print_symbol_bcache_statistics)
11674 (print_objfile_statistics): Update.
11675 * symfile.c (allocate_symtab): Use intern.
11676 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11677 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11678 macro_cache>: Remove.
11679 <string_cache>: New member.
11680 (struct objfile) <intern>: New methods.
11681 * elfread.c (elf_symtab_read): Use intern.
11682 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11683 (dwarf2_compute_name, dwarf2_physname)
11684 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11685 names.
11686 (guess_partial_die_structure_name): Update.
11687 (partial_die_info::fixup): Intern name.
11688 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11689 name.
11690 (dwarf2_name): Intern name. Update.
11691 * buildsym.c (buildsym_compunit::get_macro_table): Use
11692 string_cache.
11693
4e7625fd
TT
116942020-03-04 Tom Tromey <tom@tromey.com>
11695
11696 * jit.c (bfd_open_from_target_memory): Make "target" const.
11697 * corefile.c (gnutarget): Now const.
11698 * gdbcore.h (gnutarget): Now const.
11699
46f9f931
HD
117002020-03-04 Hannes Domani <ssbssa@yahoo.de>
11701
11702 * NEWS: Mention support for WOW64 processes.
11703 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11704 (amd64_windows_segment_register_p): Remove static.
11705 (_initialize_amd64_windows_nat): Update.
11706 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11707 * i386-windows-nat.c (context_offset): Update.
11708 (i386_mappings): Rename and remove static.
11709 (i386_windows_segment_register_p): Remove static.
11710 (_initialize_i386_windows_nat): Update.
11711 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11712 (STATUS_WX86_SINGLE_STEP): New macro.
11713 (EnumProcessModulesEx): New macro.
11714 (Wow64SuspendThread): New macro.
11715 (Wow64GetThreadContext): New macro.
11716 (Wow64SetThreadContext): New macro.
11717 (Wow64GetThreadSelectorEntry): New macro.
11718 (windows_set_context_register_offsets): Add static.
11719 (windows_set_segment_register_p): Likewise.
11720 (windows_add_thread): Adapt for WOW64 processes.
11721 (windows_fetch_one_register): Likewise.
11722 (windows_nat_target::fetch_registers): Likewise.
11723 (windows_store_one_register): Likewise.
11724 (display_selector): Likewise.
11725 (display_selectors): Likewise.
11726 (handle_exception): Likewise.
11727 (windows_continue): Likewise.
11728 (windows_nat_target::resume): Likewise.
11729 (windows_add_all_dlls): Likewise.
11730 (do_initial_windows_stuff): Likewise.
11731 (windows_nat_target::attach): Likewise.
11732 (windows_get_exec_module_filename): Likewise.
11733 (windows_nat_target::create_inferior): Likewise.
11734 (windows_xfer_siginfo): Likewise.
11735 (_initialize_loadable): Initialize Wow64SuspendThread,
11736 Wow64GetThreadContext, Wow64SetThreadContext,
11737 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11738 * windows-nat.h (windows_set_context_register_offsets):
11739 Remove declaration.
11740 (windows_set_segment_register_p): Likewise.
11741 (i386_windows_segment_register_p): Add declaration.
11742 (amd64_windows_segment_register_p): Likewise.
11743
440cf44e
LM
117442020-03-04 Luis Machado <luis.machado@linaro.org>
11745
11746 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11747 in "info registers" for AArch64/ARM.
11748
11749 The change caused "info registers" to not print GPR's.
11750
11751 gdb/ChangeLog:
11752
11753 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11754
11755 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11756 when reg->group is empty and reggroup is not.
11757
1009d92f
TT
117582020-03-03 Tom Tromey <tromey@adacore.com>
11759
11760 * dwarf2/frame.c (struct dwarf2_frame_cache)
11761 <checked_tailcall_bottom, entry_cfa_sp_offset,
11762 entry_cfa_sp_offset_p>: Remove members.
11763 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11764 (dwarf2_frame_prev_register): Don't call
11765 dwarf2_tailcall_sniffer_first.
11766 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11767 * frame-unwind.c (add_unwinder): New fuction.
11768 (frame_unwind_init): Use it. Add tailcall unwinder.
11769
5e5d66b6
AB
117702020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11771 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11772
11773 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11774 value should be printed as true.
11775
584cf46d
HD
117762020-03-03 Hannes Domani <ssbssa@yahoo.de>
11777
11778 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11779 (windows_init_abi): Set and use windows_so_ops.
11780
7b973adc
SDJ
117812020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11782
11783 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11784 when verifying if dealing with a convenience variable.
11785
bb7b70ab
LM
117862020-03-03 Luis Machado <luis.machado@linaro.org>
11787
11788 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11789
9822cb57
SM
117902020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11791
11792 * infrun.c (gdbarch_supports_displaced_stepping): New.
11793 (use_displaced_stepping): Break up conditions in smaller pieces.
11794 Use gdbarch_supports_displaced_stepping.
11795 (displaced_step_prepare_throw): Use
11796 gdbarch_supports_displaced_stepping.
11797
63e163f2
AB
117982020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11799
11800 * NEWS: Mention new behaviour of the history filename.
11801 * top.c (write_history_p): Add comment.
11802 (show_write_history_p): Add header comment, give a different
11803 message when history writing is on, but the history filename is
11804 empty.
11805 (history_filename): Add comment.
11806 (history_filename_empty): New function.
11807 (show_history_filename): Add header comment, give a different
11808 message when the filename is empty.
11809 (init_history): Compare history_filename against nullptr, and only
11810 read history if the filename is not empty.
11811 (set_history_filename): Add header comment, and only make
11812 non-empty filenames absolute.
11813 (init_main): Make the filename argument to 'set history filename'
11814 optional.
11815
81b86b97
CB
118162020-03-02 Christian Biesinger <cbiesinger@google.com>
11817
11818 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11819 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11820 (fetch_fp_register): Update.
11821 (fetch_fp_regs): Update.
11822 (store_fp_register): Update.
11823 (store_fp_regs): Update.
11824 (arm_netbsd_nat_target::read_description): New function.
11825 (fetch_elfcore_registers): Update.
11826
24ed6739
AB
118272020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11828
11829 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11830 general_thread if the stop reply is missing a thread-id.
11831 (remote_target::process_stop_reply): Use the first non-exited
11832 thread if the target didn't pass a thread-id.
11833 * infrun.c (do_target_wait): Move call to
11834 switch_to_inferior_no_thread to ....
11835 (do_target_wait_1): ... here.
11836
a84bb2a0
JT
118372020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11838
11839 * debuginfod-support.c: Include defs.h first.
11840
658dadf0
TV
118412020-02-28 Tom de Vries <tdevries@suse.de>
11842
11843 * symfile.c (set_initial_language): Use default language for lookup.
11844
4ebe4877
SM
118452020-02-28 Simon Marchi <simon.marchi@efficios.com>
11846
11847 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11848 reader variable, pass `this` to read_cutu_die_from_dwo.
11849
e5da1139
AM
118502020-02-27 Aaron Merey <amerey@redhat.com>
11851
11852 * source.c (open_source_file): Check for nullptr when computing
11853 srcpath.
11854
317f7127
TT
118552020-02-27 Tom Tromey <tromey@adacore.com>
11856
11857 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11858 member.
11859 (dwarf2_add_field): Don't update nfields.
11860 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11861
3104d9ee
AB
118622020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11863
11864 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11865 abs.
11866
b83470bf
TT
118672020-02-26 Tom Tromey <tom@tromey.com>
11868
11869 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11870 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11871 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11872 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11873 per_cu_data.
11874
edfe0a0c
TT
118752020-02-26 Tom Tromey <tom@tromey.com>
11876
11877 * dwarf2/index-write.c (psym_index_map): Change type.
11878 (add_address_entry_worker, write_one_signatured_type)
11879 (recursively_count_psymbols, recursively_write_psymbols)
11880 (class debug_names, psyms_seen_size, write_gdbindex)
11881 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11882
0d79cdc4
AM
118832020-02-26 Aaron Merey <amerey@redhat.com>
11884
11885 * Makefile.in: Handle optional debuginfod support.
11886 * NEWS: Update.
11887 * README: Add --with-debuginfod summary.
11888 * config.in: Regenerate.
11889 * configure: Regenerate.
11890 * configure.ac: Handle optional debuginfod support.
11891 * debuginfod-support.c: debuginfod helper functions.
11892 * debuginfod-support.h: Ditto.
11893 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11894 summary.
11895 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11896 when a dwz file cannot be found.
11897 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11898 debuginfo file cannot be found.
11899 * source.c (open_source_file): Query debuginfod servers when a
11900 source file cannot be found.
11901 * top.c (print_gdb_configuration): Include
11902 --{with,without}-debuginfod in the output.
11903
b65ce565
JG
119042020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11905
11906 * thread.c (thr_try_catch_cmd): Print thread name.
11907
d4c9a4f8
SM
119082020-02-26 Simon Marchi <simon.marchi@efficios.com>
11909
11910 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11911 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11912 dwarf2_fetch_die_type_sect_off): Move to...
11913 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11914 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11915 dwarf2_fetch_die_type_sect_off): ... here.
11916 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11917 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11918 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11919
0dce4280
TV
119202020-02-26 Tom de Vries <tdevries@suse.de>
11921
11922 PR gdb/25603
11923 * symfile.c (set_initial_language): Exit-early if
11924 language_mode == language_mode_manual.
11925
450a1bfc
SM
119262020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11927
11928 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11929 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11930 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11931
9e80cfa1
AB
119322020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11933
11934 * gdbtypes.c (create_array_type_with_stride): Handle negative
11935 array strides.
11936 * valarith.c (value_subscripted_rvalue): Likewise.
11937
09624f1f
LM
119382020-02-25 Luis Machado <luis.machado@linaro.org>
11939
11940 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11941
8cb5117c
SM
119422020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11943
11944 * loc.h (dwarf2_get_die_type): Move to...
11945 * read.h (dwarf2_get_die_type): ... here.
11946 * read.c (dwarf2_get_die_type): Move doc to header.
11947
c325c44e
JB
119482020-02-25 Joel Brobecker <brobecker@adacore.com>
11949
11950 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11951 'gnulib/Makefile.in' to the list.
11952
4ac93832
TT
119532020-02-24 Tom Tromey <tom@tromey.com>
11954
11955 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11956 Remove.
11957 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11958 XOBNEWVEC.
11959
197400e8
TT
119602020-02-24 Tom Tromey <tom@tromey.com>
11961
11962 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11963 New method.
11964 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11965 (dw2_do_instantiate_symtab, dw2_get_file_names)
11966 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11967
76935768
TT
119682020-02-24 Tom Tromey <tom@tromey.com>
11969
11970 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11971 make_scoped_restore.
11972 (dwarf2_psymtab::read_symtab): Don't clear
11973 reading_partial_symbols.
11974
a88ef40d
TV
119752020-02-24 Tom de Vries <tdevries@suse.de>
11976
11977 PR gdb/25592
11978 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11979
c9af6521
TV
119802020-02-24 Tom de Vries <tdevries@suse.de>
11981
11982 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11983 commands layout next/prev/regs.
11984
5707a07a
TT
119852020-02-22 Tom Tromey <tom@tromey.com>
11986
11987 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11988 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11989
3b0fb49e
TT
119902020-02-22 Tom Tromey <tom@tromey.com>
11991
11992 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11993
283be8bf
TT
119942020-02-22 Tom Tromey <tom@tromey.com>
11995
11996 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11997 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11998 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11999 * tui/tui.c (_initialize_tui): Add usage text.
12000
ca793b96
TT
120012020-02-22 Tom Tromey <tom@tromey.com>
12002
12003 * tui/tui-win.c (tui_set_focus_command)
12004 (tui_set_win_height_command): Use error_no_arg.
12005 (_initialize_tui_win): Update help text.
12006 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12007
432b5c40
TT
120082020-02-22 Tom Tromey <tom@tromey.com>
12009
12010 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12011 * tui/tui-disasm.h (struct tui_disasm_window)
12012 <display_start_addr>: Declare.
12013 * tui/tui-source.h (struct tui_source_window)
12014 <display_start_addr>: Declare.
12015 * tui/tui-winsource.h (struct tui_source_window_base)
12016 <show_source_line, display_start_addr>: New methods.
12017 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12018 Rename and move to protected section.
12019 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12020 (tui_source_window_base::do_erase_source_content): Update.
12021 (tui_source_window_base::show_source_line): Now a method.
12022 (tui_source_window_base::show_source_content)
12023 (tui_source_window_base::tui_source_window_base)
12024 (tui_source_window_base::rerender)
12025 (tui_source_window_base::refill)
12026 (tui_source_window_base::do_scroll_horizontal)
12027 (tui_source_window_base::set_is_exec_point_at)
12028 (tui_source_window_base::update_breakpoint_info)
12029 (tui_source_window_base::update_exec_info): Update.
12030 * tui/tui-source.c (tui_source_window::set_contents)
12031 (tui_source_window::showing_source_p)
12032 (tui_source_window::do_scroll_vertical)
12033 (tui_source_window::location_matches_p)
12034 (tui_source_window::line_is_displayed): Update.
12035 (tui_source_window::display_start_addr): New method.
12036 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12037 (tui_disasm_window::do_scroll_vertical)
12038 (tui_disasm_window::location_matches_p): Update.
12039 (tui_disasm_window::display_start_addr): New method.
12040
01b1af32
TT
120412020-02-22 Tom Tromey <tom@tromey.com>
12042
12043 * NEWS: Add entry for gdb.register_window_type.
12044 * tui/tui-layout.h (window_factory): New typedef.
12045 (tui_register_window): Declare.
12046 * tui/tui-layout.c (saved_tui_windows): New global.
12047 (tui_apply_current_layout): Use it.
12048 (tui_register_window): New function.
12049 * python/python.c (do_start_initialization): Call
12050 gdbpy_initialize_tui.
12051 (python_GdbMethods): Add "register_window_type" function.
12052 * python/python-internal.h (gdbpy_register_tui_window)
12053 (gdbpy_initialize_tui): Declare.
12054 * python/py-tui.c: New file.
12055 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12056
fc96d20b
TT
120572020-02-22 Tom Tromey <tom@tromey.com>
12058
12059 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12060
935c78c0
TT
120612020-02-22 Tom Tromey <tom@tromey.com>
12062
12063 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12064 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12065 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12066 (tui_set_win_focus_to): Move from tui-win.c.
12067
0240c8f1
TT
120682020-02-22 Tom Tromey <tom@tromey.com>
12069
12070 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12071 functions.
12072 (known_window_types): New global.
12073 (tui_get_window_by_name): Reimplement.
12074 (initialize_known_windows): New function.
12075 (validate_window_name): Rewrite.
12076 (_initialize_tui_layout): Call initialize_known_windows.
12077
fdb01f0c
TT
120782020-02-22 Tom Tromey <tom@tromey.com>
12079
12080 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12081 Remove constants.
12082 * tui/tui-winsource.h (struct tui_source_window_base)
12083 <tui_source_window_base>: Remove parameter.
12084 * tui/tui-winsource.c
12085 (tui_source_window_base::tui_source_window_base): Remove
12086 parameter.
12087 (tui_source_window_base::refill): Update.
12088 * tui/tui-stack.h (struct tui_locator_window)
12089 <tui_locator_window>: Update.
12090 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12091 Default the constructor.
12092 * tui/tui-regs.h (struct tui_data_item_window)
12093 <tui_data_item_window>: Default the constructor.
12094 (struct tui_data_window) <tui_data_window>: Likewise.
12095 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12096 Default the constructor.
12097 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12098 Default the constructor.
12099 <type>: Remove.
12100 (struct tui_win_info) <tui_win_info>: Default the constructor.
12101 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12102 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12103 Default the constructor.
12104
865a5aec
TT
121052020-02-22 Tom Tromey <tom@tromey.com>
12106
12107 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12108 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12109 * tui/tui-win.c (tui_resize_all): Don't call
12110 tui_delete_invisible_windows.
12111 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12112 done.
12113 (tui_set_layout): Update.
12114 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12115 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12116 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12117
e098d18c
TT
121182020-02-22 Tom Tromey <tom@tromey.com>
12119
12120 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12121 correctly.
12122
eb9c8874
TT
121232020-02-22 Tom Tromey <tom@tromey.com>
12124
12125 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12126
7eed1a8e
TT
121272020-02-22 Tom Tromey <tom@tromey.com>
12128
12129 * tui/tui-winsource.h (struct tui_source_window_iterator)
12130 <inner_iterator>: New etytypedef.
12131 <tui_source_window_iterator>: Take "end" parameter.
12132 <tui_source_window_iterator>: Take iterator.
12133 <operator*, advance>: Update.
12134 <m_iter>: Change type.
12135 <m_end>: New field.
12136 (struct tui_source_windows) <begin, end>: Update.
12137 * tui/tui-layout.c (tui_windows): New global.
12138 (tui_apply_current_layout): Clear tui_windows.
12139 (tui_layout_window::apply): Update tui_windows.
12140 * tui/tui-data.h (tui_windows): Declare.
12141 (all_tui_windows): Now inline function.
12142 (class tui_window_iterator, struct all_tui_windows): Remove.
12143
7c043ba6
TT
121442020-02-22 Tom Tromey <tom@tromey.com>
12145
12146 PR tui/17850:
12147 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12148 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12149 "height" argument.
12150 (class tui_layout_window) <get_sizes>: Likewise.
12151 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12152 argument.
12153 <get_sizes>: Add "height" argument.
12154 <m_vertical>: New field.
12155 * tui/tui-layout.c (tui_layout_split::clone): Update.
12156 (tui_layout_split::get_sizes): Add "height" argument.
12157 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12158 (tui_new_layout_command): Parse "-horizontal".
12159 (_initialize_tui_layout): Update help string.
12160 (tui_layout_split::specification): Add "-horizontal" when needed.
12161 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12162 argument.
12163 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12164 New methods.
12165
6bc56648
TT
121662020-02-22 Tom Tromey <tom@tromey.com>
12167
12168 * tui/tui-layout.h (enum tui_adjust_result): New.
12169 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12170 (class tui_layout_window) <adjust_size>: Return
12171 tui_adjust_result. Rewrite.
12172 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12173 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12174
c22fef7e
TT
121752020-02-22 Tom Tromey <tom@tromey.com>
12176
12177 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12178 parameter and return types.
12179 (class tui_layout_base) <specification>: Add "depth".
12180 (class tui_layout_window) <specification>: Add "depth".
12181 (class tui_layout_split) <specification>: Add "depth".
12182 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12183 and return types.
12184 (tui_new_layout_command): Parse sub-layouts.
12185 (_initialize_tui_layout): Update help string.
12186 (tui_layout_window::specification): Add "depth".
12187 (add_layout_command): Update.
12188
ee325b61
TT
121892020-02-22 Tom Tromey <tom@tromey.com>
12190
12191 * NEWS: Add "tui new-layout" item.
12192 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12193 Add new-layout command to help text.
12194 (validate_window_name): New function.
12195 (tui_new_layout_command): New function.
12196 (_initialize_tui_layout): Register "new-layout".
12197 (tui_layout_window::specification): New method.
12198 (tui_layout_window::specification): New method.
12199 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12200 method.
12201 (class tui_layout_window) <specification>: New method.
12202 (class tui_layout_split) <specification>: New method.
12203
416eb92d
TT
122042020-02-22 Tom Tromey <tom@tromey.com>
12205
12206 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12207 * tui/tui-win.c (window_name_completer): Update comment.
12208 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12209 Declare method.
12210 (class tui_layout_window) <replace_window>: Likewise.
12211 (class tui_layout_split) <replace_window>: Likewise.
12212 (tui_set_layout): Don't declare.
12213 (tui_set_initial_layout): Declare function.
12214 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12215 (asm_regs_layout): New globals.
12216 (tui_current_layout, show_layout): Remove.
12217 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12218 (find_layout, tui_apply_layout): New function.
12219 (layout_completer): Remove.
12220 (tui_next_layout): Reimplement.
12221 (tui_next_layout_command): New function.
12222 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12223 (tui_regs_layout): Reimplement.
12224 (tui_regs_layout_command): New function.
12225 (extract_display_start_addr): Rewrite.
12226 (next_layout, prev_layout): Remove.
12227 (tui_layout_window::replace_window): New method.
12228 (tui_layout_split::replace_window): New method.
12229 (destroy_layout): New function.
12230 (layout_list): New global.
12231 (add_layout_command): New function.
12232 (initialize_layouts): Update.
12233 (tui_layout_command): New function.
12234 (_initialize_tui_layout): Install "layout" commands.
12235 * tui/tui-data.h (enum tui_layout_type): Remove.
12236 (tui_current_layout): Don't declare.
12237
0dbc2fc7
TT
122382020-02-22 Tom Tromey <tom@tromey.com>
12239
12240 * tui/tui-regs.c (tui_reg_layout): Remove.
12241 (tui_reg_command): Use tui_regs_layout.
12242 * tui/tui-layout.h (tui_reg_command): Declare.
12243 * tui/tui-layout.c (tui_reg_command): New function.
12244
5afe342e
TT
122452020-02-22 Tom Tromey <tom@tromey.com>
12246
12247 * tui/tui.c (tui_rl_delete_other_windows): Call
12248 tui_remove_some_windows.
12249 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12250 Declare method.
12251 (class tui_layout_window) <remove_windows>: New method.
12252 (class tui_layout_split) <remove_windows>: Declare.
12253 (tui_remove_some_windows): Declare.
12254 * tui/tui-layout.c (tui_remove_some_windows): New function.
12255 (tui_layout_split::remove_windows): New method.
12256
427326a8
TT
122572020-02-22 Tom Tromey <tom@tromey.com>
12258
12259 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12260 * tui/tui-layout.h (tui_next_layout): Declare.
12261 * tui/tui-layout.c (tui_next_layout): New function.
12262
3fe12b6d
TT
122632020-02-22 Tom Tromey <tom@tromey.com>
12264
12265 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12266 correct coordinates.
12267
59b8b5d2
TT
122682020-02-22 Tom Tromey <tom@tromey.com>
12269
12270 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12271 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12272 DATA_WIN case.
12273
2a3d458b
TT
122742020-02-22 Tom Tromey <tom@tromey.com>
12275
12276 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12277 TUI_DISASM_WIN, not tui_win_list.
12278
3f0cbb04
TT
122792020-02-22 Tom Tromey <tom@tromey.com>
12280
12281 * valprint.c (generic_val_print_enum_1)
12282 (val_print_type_code_flags): Style member names.
12283 * rust-lang.c (val_print_struct, rust_print_enum)
12284 (rust_print_struct_def, rust_internal_print_type): Style member
12285 names.
12286 * p-valprint.c (pascal_object_print_value_fields): Style member
12287 names. Only call fprintf_symbol_filtered for static members.
12288 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12289 * f-valprint.c (f_val_print): Style member names.
12290 * f-typeprint.c (f_type_print_base): Style member names.
12291 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12292 call fprintf_symbol_filtered for static members.
12293 (cp_print_class_member): Style member names.
12294 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12295 member names.
12296 * ada-valprint.c (ada_print_scalar): Style enum names.
12297 (ada_val_print_enum): Likewise.
12298 * ada-typeprint.c (print_enum_type): Style enum names.
12299
d4d947ae
TT
123002020-02-21 Tom Tromey <tom@tromey.com>
12301
12302 * psympriv.h (struct partial_symtab): Update comment.
12303
e94e944b
TT
123042020-02-21 Tom Tromey <tromey@adacore.com>
12305
12306 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12307 type is CORE_ADDR.
12308
1eb73179
TV
123092020-02-21 Tom de Vries <tdevries@suse.de>
12310
12311 PR gdb/25534
12312 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12313 if dependencies[i]->user != NULL.
12314
4f180d53
AT
123152020-02-21 Ali Tamur <tamur@google.com>
12316
12317 * dwarf2/read.c (dwarf2_name): Add null check.
12318
22b6cd70
TT
123192020-02-20 Tom Tromey <tom@tromey.com>
12320
12321 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12322 ">=", in binary search.
12323 (dwarf2_find_containing_comp_unit): New overload.
12324 (run_test): New self-test.
12325 (_initialize_dwarf2_read): Register new test.
12326
bd0cf5a6
NC
123272020-02-20 Nelson Chu <nelson.chu@sifive.com>
12328
12329 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12330 * riscv-tdep.h: Likewise.
12331 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12332 rv32-only CSR.
12333 * features/riscv/64bit-csr.xml: Regenerated.
12334
3f702acd
SDJ
123352020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12336 Tom Tromey <tom@tromey.com>
12337
12338 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12339 of 'fputc_unfiltered'.
12340 (putchar_unfiltered): Call 'fputc_unfiltered'.
12341 (fputc_unfiltered): Call 'fputs_unfiltered'.
12342
d13c7322
AB
123432020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12344
12345 * config.in: Regenerate.
12346 * configure: Regenerate.
12347 * configure.ac: Add --with-python-libdir option.
12348 * main.c: Use WITH_PYTHON_LIBDIR.
12349
869d8950
TT
123502020-02-19 Tom Tromey <tom@tromey.com>
12351
12352 * symtab.c (general_symbol_info::compute_and_set_names): Use
12353 obstack_strndup. Simplify call to symbol_set_demangled_name.
12354
298e9637
SM
123552020-02-19 Simon Marchi <simon.marchi@efficios.com>
12356
12357 * dwarf2/read.c (allocate_signatured_type_table,
12358 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12359 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12360 Remove objfile parameter, update all callers.
12361
08410482
DE
123622020-02-19 Doug Evans <dje@google.com>
12363
12364 PR rust/25535
12365 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12366 rust_enum_variant calculation.
12367
dfdeeca1
TT
123682020-02-19 Tom Tromey <tromey@adacore.com>
12369
12370 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12371
2ef5453b
TT
123722020-02-19 Tom Tromey <tromey@adacore.com>
12373
12374 * ada-lang.c (cache_symbol): Use obstack_strdup.
12375
9f1528a1
AB
123762020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12377
12378 * configure: Regenerate.
12379
d3c22fa8
TT
123802020-02-19 Tom Tromey <tromey@adacore.com>
12381
12382 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12383 NULL check.
12384
bf84f706
MR
123852020-02-19 Maciej W. Rozycki <macro@wdc.com>
12386
12387 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12388
d1c9b20f
AB
123892020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12390
12391 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12392 if GDBSERVER is not defined.
12393 (riscv_tdesc_cache): Likewise, also store const target_desc.
12394 (STATIC_IN_GDB): Define.
12395 (riscv_create_target_description): Update declaration with
12396 STATIC_IN_GDB.
12397 (riscv_lookup_target_description): New function, only define if
12398 GDBSERVER is not defined.
12399 * arch/riscv.h (riscv_create_target_description): Declare only
12400 when GDBSERVER is defined.
12401 (riscv_lookup_target_description): New declaration when GDBSERVER
12402 is not defined.
12403 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12404 (riscv_linux_read_features): ...this, and return
12405 riscv_gdbarch_features instead of target_desc.
12406 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12407 (riscv_linux_read_description): Rename to...
12408 (riscv_linux_read_features): ...this.
12409 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12410 Update to use riscv_gdbarch_features and
12411 riscv_lookup_target_description.
12412 * riscv-tdep.c (riscv_find_default_target_description): Use
12413 riscv_lookup_target_description instead of
12414 riscv_create_target_description.
12415
373d7ac0
SM
124162020-02-18 Simon Marchi <simon.marchi@efficios.com>
12417
12418 * valprint.c (generic_val_print_enum_1): When printing a flag
12419 enum with value 0 and there is no enumerator with value 0, print
12420 just "0" instead of "(unknown: 0x0)".
12421
b29a2df0
SM
124222020-02-18 Simon Marchi <simon.marchi@efficios.com>
12423
12424 * valprint.c (generic_val_print_enum_1): Print unknown part of
12425 flag enum in hex.
12426
6740f0cc
SM
124272020-02-18 Simon Marchi <simon.marchi@efficios.com>
12428
12429 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12430 flag enums to contain duplicate enumerators.
12431 * valprint.c (generic_val_print_enum_1): Update comment.
12432
edd45eb0
SM
124332020-02-18 Simon Marchi <simon.marchi@efficios.com>
12434
12435 * dwarf2/read.c: Include "count-one-bits.h".
12436 (update_enumeration_type_from_children): If an enumerator has
12437 multiple bits set, don't treat the enumeration as a "flag enum".
12438 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12439 of flag enums have 0 or 1 bit set.
12440
6d0cf446
BE
124412020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12442
12443 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12444 conversion.
12445 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12446 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12447 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12448 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12449 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12450
7001c1b7
SM
124512020-02-18 Simon Marchi <simon.marchi@efficios.com>
12452
12453 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12454
fdb61c6c
SM
124552020-02-14 Simon Marchi <simon.marchi@efficios.com>
12456
12457 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12458 displaced_step_closure_up.
12459 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12460 (struct displaced_step_closure_up):
12461 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12462 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12463 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12464 Likewise.
12465 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12466 * gdbarch.c, gdbarch.h: Re-generate.
12467 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12468 displaced_step_closure_up.
12469 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12470 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12471 * infrun.h (displaced_step_closure_up): New type alias.
12472 (struct displaced_step_inferior_state) <step_closure>: Change
12473 type to displaced_step_closure_up.
12474 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12475 displaced_step_closure_up.
12476 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12477
a4a38eb4
TT
124782020-02-14 Tom Tromey <tom@tromey.com>
12479
12480 * minidebug.c (gnu_debug_key): New global.
12481 (find_separate_debug_file_in_section): Use it.
12482
e8217e61
SM
124832020-02-14 Simon Marchi <simon.marchi@efficios.com>
12484
12485 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12486 std::unique_ptr.
12487 * gdbarch.c: Re-generate.
12488 * gdbarch.h: Re-generate.
12489 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12490 change.
12491 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12492 type to std::unique_ptr.
12493 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12494 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12495 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12496 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12497 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12498 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12499 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12500 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12501 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12502
d8d83535
SM
125032020-02-14 Simon Marchi <simon.marchi@efficios.com>
12504
12505 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12506 std::unique_ptr.
12507 (displaced_step_clear): Rename to...
12508 (displaced_step_reset): ... this. Just call displaced->reset ().
12509 (displaced_step_clear_cleanup): Rename to...
12510 (displaced_step_reset_cleanup): ... this.
12511 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12512 (displaced_step_fixup): Likewise.
12513 (resume_1): Likewise.
12514 (handle_inferior_event): Restore child's memory before calling
12515 displaced_step_fixup on the parent.
12516 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12517 to std::unique_ptr.
12518 <step_closure>: Change type to std::unique_ptr.
12519
5f661e03
SM
125202020-02-14 Simon Marchi <simon.marchi@efficios.com>
12521
12522 * arm-tdep.c: Include count-one-bits.h.
12523 (cleanup_block_store_pc): Use count_one_bits.
12524 (cleanup_block_load_pc): Use count_one_bits.
12525 (arm_copy_block_xfer): Use count_one_bits.
12526 (thumb2_copy_block_xfer): Use count_one_bits.
12527 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12528 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12529 (thumb_get_next_pcs_raw): Use count_one_bits.
12530 (arm_get_next_pcs_raw): Use count_one_bits_l.
12531 * arch/arm.c (bitcount): Remove.
12532 * arch/arm.h (bitcount): Remove.
12533
8084e579
TT
125342020-02-14 Tom Tromey <tromey@adacore.com>
12535
12536 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12537 Update.
12538 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12539 * dwarf2/loc.c (call_site_find_chain_1): Return
12540 unique_xmalloc_ptr.
12541 (call_site_find_chain): Likewise.
12542
258bf0ee
RB
125432020-02-14 Richard Biener <rguenther@suse.de>
12544
12545 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12546 on expression with division operators.
12547
f98a8458
AKS
125482020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12549
12550 * MAINTAINERS (Write After Approval): Adding myself.
12551
d1437c0e
TT
125522020-02-12 Tom Tromey <tom@tromey.com>
12553
12554 * event-loop.c (event_data, gdb_event, event_handler_func):
12555 Remove.
12556
3d4560f7
TT
125572020-02-12 Tom Tromey <tom@tromey.com>
12558
12559 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12560 (dwarf2_frame_objfile_data): Add comment.
12561 (find_comp_unit, set_comp_unit): New functions.
12562 (dwarf2_frame_find_fde): Use find_comp_unit.
12563 (dwarf2_build_frame_info): Use set_comp_unit.
12564
21982304
TT
125652020-02-12 Tom Tromey <tom@tromey.com>
12566
12567 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12568 (comp_unit): Don't initialize objfile.
12569 (execute_cfa_program): Add text_offset parameter.
12570 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12571 (dwarf2_frame_cache): Update.
12572 (dwarf2_build_frame_info): Don't set "objfile" member.
12573
4debb237
TT
125742020-02-12 Tom Tromey <tom@tromey.com>
12575
12576 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12577 (decode_frame_entry): Likewise.
12578 (dwarf2_build_frame_info): Update.
12579
0d404d44
TT
125802020-02-12 Tom Tromey <tom@tromey.com>
12581
12582 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12583 (decode_frame_entry_1): Use the comp_unit obstack.
12584
a7a3ae5c
TT
125852020-02-12 Tom Tromey <tom@tromey.com>
12586
12587 * dwarf2/frame.c (struct comp_unit): Add initializers and
12588 constructor.
12589 (dwarf2_frame_objfile_data): Store a comp_unit.
12590 (dwarf2_frame_find_fde): Update.
12591 (dwarf2_build_frame_info): Use "new".
12592
a9d65418
TT
125932020-02-12 Tom Tromey <tom@tromey.com>
12594
12595 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12596 (dwarf2_fde_table): Typedef for std::vector.
12597 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12598 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12599 (decode_frame_entry): Update.
12600 (dwarf2_build_frame_info): Use "new".
12601
7559c217
CB
126022020-02-12 Christian Biesinger <cbiesinger@google.com>
12603
12604 * arm-tdep.c (arm_gdbarch_init): Update.
12605 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12606 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12607 have_neon, is_m>: Change to bool.
12608
aeefc73c
CB
126092020-02-12 Christian Biesinger <cbiesinger@google.com>
12610
12611 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12612
d27b8e5f
TT
126132020-02-12 Tom Tromey <tom@tromey.com>
12614
12615 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12616
cd5900f3
HD
126172020-02-12 Hannes Domani <ssbssa@yahoo.de>
12618
12619 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12620 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12621
f056b22b
TT
126222020-02-11 Tom Tromey <tom@tromey.com>
12623
12624 * psymtab.h: Update comment.
12625
f92ff6b5
TT
126262020-02-11 Tom Tromey <tom@tromey.com>
12627
12628 * gdb_obstack.h (struct auto_obstack): Use
12629 DISABLE_COPY_AND_ASSIGN.
12630
3fd6912b
TT
126312020-02-11 Tom Tromey <tom@tromey.com>
12632
12633 * dwarf2/frame.h (struct objfile): Don't forward declare.
12634
69ed9b74
CB
126352020-02-11 Christian Biesinger <cbiesinger@google.com>
12636
12637 * cris-tdep.c (cris_supply_gregset): Change signature to match
12638 what struct regset expects.
12639 (cris_regset): New struct.
12640 (fetch_core_registers): Remove.
12641 (cris_iterate_over_regset_sections): New function.
12642 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12643 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12644
bda874f6
CB
126452020-02-11 Christian Biesinger <cbiesinger@google.com>
12646
12647 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12648 registers.
12649
754e1564
CB
126502020-02-11 Christian Biesinger <cbiesinger@google.com>
12651
12652 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12653
8ddd8e0e
SM
126542020-02-11 Simon Marchi <simon.marchi@efficios.com>
12655
12656 * configure: Re-generate.
12657
898e7f60
SM
126582020-02-11 Simon Marchi <simon.marchi@efficios.com>
12659
12660 * configure: Re-generate.
12661
58df732b
SM
126622020-02-11 Simon Marchi <simon.marchi@efficios.com>
12663
12664 * acinclude: Update warning.m4 path.
12665 * warning.m4: Move to gdbsupport.
12666
da5bd37e
TT
126672020-02-11 Tom Tromey <tromey@adacore.com>
12668
12669 * remote.c (remote_console_output): Update.
12670 * printcmd.c (printf_command): Update.
12671 * event-loop.c (gdb_wait_for_event): Update.
12672 * linux-nat.c (sigchld_handler): Update.
12673 * remote-sim.c (gdb_os_write_stdout): Update.
12674 (gdb_os_flush_stdout): Update.
12675 (gdb_os_flush_stderr): Update.
12676 (gdb_os_write_stderr): Update.
12677 * exceptions.c (print_exception): Update.
12678 * remote-fileio.c (remote_fileio_func_read): Update.
12679 (remote_fileio_func_write): Update.
12680 * tui/tui.c (tui_enable): Update.
12681 * tui/tui-interp.c (tui_interp::init): Update.
12682 * utils.c (init_page_info): Update.
12683 (putchar_unfiltered, fputc_unfiltered): Update.
12684 (gdb_flush): Update.
12685 (emit_style_escape): Update.
12686 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12687 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12688 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12689 (stderr_file::write): Update.
12690 (stderr_file::puts): Update.
12691 * ui-file.h (ui_file_isatty, ui_file_write)
12692 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12693 (ui_file_puts): Don't declare.
12694
85f0dd3c
TV
126952020-02-10 Tom de Vries <tdevries@suse.de>
12696
12697 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12698 sentinel to char *.
12699
2e927613
TV
127002020-02-09 Tom de Vries <tdevries@suse.de>
12701
12702 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12703 filename if it matches "<artificial>".
12704
6bafc845
HD
127052020-02-09 Hannes Domani <ssbssa@yahoo.de>
12706
12707 * windows-tdep.c (struct enum_value_name): New struct.
12708 (create_enum): New function.
12709 (windows_get_siginfo_type): Create and use enum types.
12710
7928d571
HD
127112020-02-09 Hannes Domani <ssbssa@yahoo.de>
12712
12713 * NEWS: Mention $_siginfo support for Windows.
12714 * windows-nat.c (handle_exception): Set siginfo_er.
12715 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12716 (windows_xfer_siginfo): New function.
12717 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12718 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12719 (init_windows_gdbarch_data): New function.
12720 (get_windows_gdbarch_data): New function.
12721 (windows_get_siginfo_type): New function.
12722 (windows_init_abi): Register windows_get_siginfo_type.
12723 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12724
6751ebae
TT
127252020-02-08 Tom Tromey <tom@tromey.com>
12726
12727 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12728 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12729 <keep>: Declare method.
12730 <m_keep>: Remove member.
12731 <~cutu_reader>: Remove.
12732 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12733 (cutu_reader::cutu_reader): Update.
12734 (cutu_reader::keep): Rename from ~cutu_reader.
12735 (process_psymtab_comp_unit, build_type_psymtabs_1)
12736 (process_skeletonless_type_unit, load_partial_comp_unit)
12737 (load_full_comp_unit, dwarf2_read_addr_index)
12738 (read_signatured_type): Update.
12739
135f5437
TT
127402020-02-08 Tom Tromey <tom@tromey.com>
12741
12742 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12743 "want_partial_unit" parameter.
12744 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12745 Inline check for DW_TAG_partial_unit.
12746 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12747
9f66ff1c
TT
127482020-02-08 Tom Tromey <tom@tromey.com>
12749
12750 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12751 read.c.
12752 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12753 read.c.
12754
c8a7a66f
TT
127552020-02-08 Tom Tromey <tom@tromey.com>
12756
12757 * dwarf2/read.c (read_address): Move to comp-unit.c.
12758 (dwarf2_rnglists_process, dwarf2_ranges_process)
12759 (read_attribute_value, dwarf_decode_lines_1)
12760 (var_decode_location, decode_locdesc): Update.
12761 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12762 read.c. Remove "cu" parameter.
12763 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12764 method.
12765
8266302d
TT
127662020-02-08 Tom Tromey <tom@tromey.com>
12767
12768 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12769 (read_indirect_line_string): Update.
12770 * dwarf2/comp-unit.c (read_offset): Remove.
12771 (read_comp_unit_head): Update.
12772 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12773 method.
12774 (read_offset): Don't declare.
12775
4057dfde
TT
127762020-02-08 Tom Tromey <tom@tromey.com>
12777
12778 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12779 * dwarf2/read.c (struct comp_unit_head): Move to
12780 dwarf2/comp-unit.h.
12781 (enum class rcuh_kind): Move to comp-unit.h.
12782 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12783 (read_comp_unit_head, error_check_comp_unit_head)
12784 (read_and_check_comp_unit_head): Move to comp-unit.c.
12785 (read_offset, dwarf_unit_type_name): Likewise.
12786 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12787 (cutu_reader::cutu_reader, read_call_site_scope)
12788 (find_partial_die, follow_die_offset): Update.
12789 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12790
24aa364d
TT
127912020-02-08 Tom Tromey <tom@tromey.com>
12792
12793 * dwarf2/read.c (read_offset_1): Move to leb.c.
12794 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12795 (dwarf_decode_macro_bytes): Update.
12796 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12797 * dwarf2/leb.h (read_offset): Declare.
12798
2c7d5afc
TT
127992020-02-08 Tom Tromey <tom@tromey.com>
12800
12801 * dwarf2/read.c (dwarf2_section_size): Remove.
12802 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12803 Update.
12804 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12805
4075cb26
TT
128062020-02-08 Tom Tromey <tom@tromey.com>
12807
12808 * dwarf2/read.c (read_initial_length): Move to leb.c.
12809 * dwarf2/leb.h (read_initial_length): Declare.
12810 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12811 handle_nonstd parameter.
12812 * dwarf2/frame.c (read_initial_length): Remove.
12813 (decode_frame_entry_1): Update.
12814
09ba997f
TT
128152020-02-08 Tom Tromey <tom@tromey.com>
12816
12817 * dwarf2/loc.c (dwarf2_find_location_expression)
12818 (dwarf_evaluate_loc_desc::get_tls_address)
12819 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12820 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12821 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12822 (dwarf2_compile_property_to_c)
12823 (dwarf2_loc_desc_get_symbol_read_needs)
12824 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12825 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12826 (loclist_describe_location, loclist_tracepoint_var_ref)
12827 (loclist_generate_c_location): Update.
12828 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12829 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12830 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12831 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12832 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12833 (dwarf2_per_cu_data::addr_size)
12834 (dwarf2_per_cu_data::ref_addr_size)
12835 (dwarf2_per_cu_data::text_offset)
12836 (dwarf2_per_cu_data::addr_type): Now methods.
12837 (per_cu_header_read_in): Make per_cu "const".
12838 (dwarf2_version): Remove.
12839 (dwarf2_per_cu_data::int_type): Now a method.
12840 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12841 (set_die_type, read_array_type, read_subrange_index_type)
12842 (read_tag_string_type, read_subrange_type): Update.
12843 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12844 offset_size, ref_addr_size, text_offset, addr_type, version,
12845 objfile, int_type, addr_sized_int_type>: Declare methods.
12846
96c738c0
TT
128472020-02-08 Tom Tromey <tom@tromey.com>
12848
12849 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12850 Move earlier.
12851
8fdd972c
TT
128522020-02-08 Tom Tromey <tom@tromey.com>
12853
12854 * dwarf2/read.h (dwarf_line_debug): Declare.
12855 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12856 * dwarf2/read.c: Move line_header code to new files.
12857 (dwarf_line_debug): No longer static.
12858 * dwarf2/line-header.c: New file.
12859 * dwarf2/line-header.h: New file.
12860
03075812
TT
128612020-02-08 Tom Tromey <tom@tromey.com>
12862
12863 * dwarf2/read.c (struct line_header) <file_full_name,
12864 file_file_name>: Return unique_xmalloc_ptr.
12865 (line_header::file_file_name): Update.
12866 (line_header::file_full_name): Update.
12867 (dw2_get_file_names_reader): Update.
12868 (macro_start_file): Update.
12869
bb822404
TT
128702020-02-08 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/read.c (struct line_header) <file_full_name,
12873 file_file_name>: Declare methods.
12874 (dw2_get_file_names_reader): Update.
12875 (file_file_name): Now a method.
12876 (file_full_name): Likewise.
12877 (macro_start_file): Update.
12878
009b64fc
TT
128792020-02-08 Tom Tromey <tom@tromey.com>
12880
12881 * dwarf2/read.c (dwarf_always_disassemble)
12882 (show_dwarf_always_disassemble): Move to loc.c.
12883 (_initialize_dwarf2_read): Move "always-disassemble" registration
12884 to loc.c.
12885 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12886 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12887 static.
12888 (show_dwarf_always_disassemble): Move from read.c.
12889 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12890
5895093f
TT
128912020-02-08 Tom Tromey <tom@tromey.com>
12892
12893 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12894 (create_quick_file_names_table): Return htab_up.
12895 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12896 Update.
12897 * dwarf2/read.h (struct dwarf2_per_objfile)
12898 <quick_file_names_table>: Now htab_up.
12899
b3b32279
TT
129002020-02-08 Tom Tromey <tom@tromey.com>
12901
12902 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12903
1d33d811
TT
129042020-02-08 Tom Tromey <tom@tromey.com>
12905
12906 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12907 Rewrite.
12908 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12909 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12910 (abbrev_table::abbrev_table): No longer inline.
12911 (ABBREV_HASH_SIZE): Remove.
12912 (abbrev_table::m_abbrevs): Now an htab_up.
12913
86de1d91
TT
129142020-02-08 Tom Tromey <tom@tromey.com>
12915
12916 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12917 (cutu_reader): Update.
12918 (build_type_psymtabs_1): Update.
12919 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12920 (abbrev_table::alloc_abbrev): Update.
12921 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12922 (abbrev_table::read): New static method, renamed from
12923 abbrev_table_read_table.
12924 (abbrev_table::alloc_abbrev)
12925 (abbrev_table::add_abbrev): Now private.
12926 (abbrev_table::abbrev_table): Now private.
12927 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12928
0335378b
TT
129292020-02-08 Tom Tromey <tom@tromey.com>
12930
12931 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12932 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12933 htab_up.
12934
48b490f2
TT
129352020-02-08 Tom Tromey <tom@tromey.com>
12936
12937 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12938 htab_up.
12939 (lookup_dwo_unit_in_dwp): Update.
12940 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12941 on obstack.
12942
bc68fb19
TT
129432020-02-08 Tom Tromey <tom@tromey.com>
12944
12945 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12946 obstack.
12947
d15acc42
TT
129482020-02-08 Tom Tromey <tom@tromey.com>
12949
12950 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12951 line_header_hash.
12952 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12953 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12954 Change type to htab_up.
12955
eaa5fa8b
TT
129562020-02-08 Tom Tromey <tom@tromey.com>
12957
12958 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12959 htab_up. Don't allocate on obstack.
12960 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12961 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12962 Change type to htab_up.
12963
b0b6a987
TT
129642020-02-08 Tom Tromey <tom@tromey.com>
12965
12966 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12967 Change type to htab_up.
12968 * dwarf2/read.c (create_signatured_type_table_from_index)
12969 (create_signatured_type_table_from_debug_names)
12970 (create_all_type_units, add_type_unit)
12971 (lookup_dwo_signatured_type, lookup_signatured_type)
12972 (process_skeletonless_type_unit): Update.
12973 (create_debug_type_hash_table, create_debug_types_hash_table):
12974 Change type of types_htab.
12975 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12976 htab_up. Don't allocate on obstack.
12977 (create_cus_hash_table): Change type of cus_htab parameter.
12978 (struct dwo_file) <cus, tus>: Now htab_up.
12979 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12980 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12981 (queue_and_load_all_dwo_tus): Update.
12982 * dwarf2/index-write.c (write_gdbindex): Update.
12983 (write_debug_names): Update.
12984
39856def
TT
129852020-02-08 Tom Tromey <tom@tromey.com>
12986
12987 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12988 dwarf2/read.c. Remove "next" member. Add constructor ntad
12989 destructor.
12990 (struct dwarf2_per_objfile) <queue>: New member.
12991 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12992 dwarf2/read.h.
12993 (dwarf2_queue, dwarf2_queue_tail): Remove.
12994 (class dwarf2_queue_guard): Add parameter to constructor. Use
12995 DISABLE_COPY_AND_ASSIGN.
12996 <m_per_objfile>: New member.
12997 <~dwarf2_queue_guard>: Rewrite.
12998 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12999 Update.
13000 (~dwarf2_queue_item): New.
13001
3e225074
TT
130022020-02-08 Tom Tromey <tom@tromey.com>
13003
13004 * dwarf2/read.c (struct die_info) <has_children>: New member.
13005 (dw2_get_file_names_reader): Remove has_children.
13006 (dw2_get_file_names): Update.
13007 (read_cutu_die_from_dwo): Remove has_children.
13008 (cutu_reader::init_tu_and_read_dwo_dies)
13009 (cutu_reader::cutu_reader): Update.
13010 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13011 Remove has_children.
13012 (build_type_psymtabs_1, process_skeletonless_type_unit)
13013 (load_partial_comp_unit, load_full_comp_unit): Update.
13014 (create_dwo_cu_reader): Remove has_children.
13015 (create_cus_hash_table, read_die_and_children): Update.
13016 (read_full_die_1,read_full_die): Remove has_children.
13017 (read_signatured_type): Update.
13018 (class cutu_reader) <has_children>: Remove.
13019
82ca8957
TT
130202020-02-08 Tom Tromey <tom@tromey.com>
13021
13022 * dwarf2/expr.c: Rename from dwarf2expr.c.
13023 * dwarf2/expr.h: Rename from dwarf2expr.h.
13024 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13025 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13026 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13027 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13028 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13029 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13030 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13031 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13032 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13033 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13034 * dwarf2/loc.c: Rename from dwarf2loc.c.
13035 * dwarf2/loc.h: Rename from dwarf2loc.h.
13036 * dwarf2/read.c: Rename from dwarf2read.c.
13037 * dwarf2/read.h: Rename from dwarf2read.h.
13038 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13039 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13040 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13041 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13042 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13043 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13044 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13045 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13046 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13047 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13048 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13049 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13050 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13051 Update.
13052 * Makefile.in (COMMON_SFILES): Update.
13053 (HFILES_NO_SRCDIR): Update.
13054
9e35d499
TT
130552020-02-08 Tom Tromey <tom@tromey.com>
13056
13057 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13058 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13059
1eba2311
TT
130602020-02-08 Tom Tromey <tom@tromey.com>
13061
13062 * dwarf2read.h (struct die_info): Don't declare.
13063
e41c2da2
TT
130642020-02-08 Tom Tromey <tom@tromey.com>
13065
13066 * dwarf2read.h (die_info_ptr): Remove typedef.
13067
4fc6c0d5
TT
130682020-02-08 Tom Tromey <tom@tromey.com>
13069
13070 * dwarf2read.c (read_call_site_scope)
13071 (handle_data_member_location, dwarf2_add_member_fn)
13072 (mark_common_block_symbol_computed, read_common_block)
13073 (attr_to_dynamic_prop, partial_die_info::read)
13074 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13075 (dwarf2_symbol_mark_computed, set_die_type): Update.
13076 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13077 method.
13078 (attr_form_is_block): Don't declare.
13079 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13080
cd6c91b4
TT
130812020-02-08 Tom Tromey <tom@tromey.com>
13082
13083 * dwarf2read.c (dwarf2_find_base_address, )
13084 (read_call_site_scope, rust_containing_type)
13085 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13086 (handle_data_member_location, dwarf2_add_member_fn)
13087 (get_alignment, read_structure_type, process_structure_scope)
13088 (mark_common_block_symbol_computed, read_common_block)
13089 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13090 (partial_die_info::read, read_attribute_value, new_symbol)
13091 (lookup_die_type, dwarf2_get_ref_die_offset)
13092 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13093 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13094 (dwarf2_symbol_mark_computed): Update.
13095 * dwarf2/attribute.h (struct attribute) <value_as_address,
13096 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13097 methods.
13098 (value_as_address, attr_form_is_section_offset)
13099 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13100 * dwarf2/attribute.c (attribute::value_as_address)
13101 (attribute::form_is_section_offset, attribute::form_is_constant)
13102 (attribute::form_is_ref): Now methods.
13103
162dce55
TT
131042020-02-08 Tom Tromey <tom@tromey.com>
13105
13106 * dwarf2read.c (struct attribute, DW_STRING)
13107 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13108 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13109 (attr_form_is_block, attr_form_is_section_offset)
13110 (attr_form_is_constant, attr_form_is_ref): Move.
13111 * dwarf2/attribute.h: New file.
13112 * dwarf2/attribute.c: New file, from dwarf2read.c.
13113 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13114
3054dd54
TT
131152020-02-08 Tom Tromey <tom@tromey.com>
13116
13117 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13118 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13119 Move.
13120 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13121 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13122 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13123 abbrev.c.
13124 * dwarf2/abbrev.h: New file.
13125 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13126 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13127
96b79293
TT
131282020-02-08 Tom Tromey <tom@tromey.com>
13129
13130 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13131 (dwarf2_section_size, dwarf2_get_section_info)
13132 (create_signatured_type_table_from_debug_names)
13133 (create_addrmap_from_aranges, read_debug_names_from_section)
13134 (get_gdb_index_contents_from_section, read_comp_unit_head)
13135 (error_check_comp_unit_head, read_abbrev_offset)
13136 (create_debug_type_hash_table, init_cu_die_reader)
13137 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13138 (read_comp_units_from_section, create_cus_hash_table)
13139 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13140 (create_dwp_v2_section, dwarf2_rnglists_process)
13141 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13142 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13143 (read_indirect_string_from_dwz, read_addr_index_1)
13144 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13145 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13146 (fill_in_loclist_baton): Update.
13147 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13148 get_containing_section, get_bfd_owner, get_bfd_section,
13149 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13150 (dwarf2_read_section, get_section_name, get_section_file_name)
13151 (get_containing_section, get_section_bfd_owner)
13152 (get_section_bfd_section, get_section_name, get_section_file_name)
13153 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13154 declare.
13155 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13156 (dwarf2_section_info::get_bfd_owner)
13157 (dwarf2_section_info::get_bfd_section)
13158 (dwarf2_section_info::get_name)
13159 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13160 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13161 (dwarf2_section_info::read): Now methods.
13162 * dwarf-index-write.c (class debug_names): Update.
13163
2c86cff9
TT
131642020-02-08 Tom Tromey <tom@tromey.com>
13165
13166 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13167 Move to dwarf2/section.h.
13168 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13169 (get_section_bfd_section, get_section_name)
13170 (get_section_file_name, get_section_id, get_section_flags)
13171 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13172 dwarf2/section.c.
13173 * dwarf2/section.h: New file.
13174 * dwarf2/section.c: New file, from dwarf2read.c.
13175 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13176
f4382c45
TT
131772020-02-08 Tom Tromey <tom@tromey.com>
13178
13179 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13180 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13181 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13182 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13183 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13184 * dwarf2/leb.h: New file, from dwarf2read.c.
13185 * dwarf2/leb.c: New file, from dwarf2read.c.
13186 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13187 Remove.
13188 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13189 (COMMON_SFILES): Add dwarf2/leb.c.
13190
01840b7a
JB
131912020-02-08 Joel Brobecker <brobecker@adacore.com>
13192
13193 GDB 9.1 released.
13194
dfcb27e4
IB
131952020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13196
13197 PR gdb/25190:
aac66a4c
SM
13198 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13199 * gdb/remote.c (remote_console_output): Update.
13200 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13201 (ui_file_puts): ...this.
13202 * gdb/ui-file.h (ui_file_puts): Add declaration.
13203 * gdb/utils.c (emit_style_escape): Update.
13204 (flush_wrap_buffer): Update.
13205 (fputs_maybe_filtered): Update.
13206 (fputs_unfiltered): Add function.
dfcb27e4 13207
faa17681
IB
132082020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13209
aac66a4c
SM
13210 * gdb/event-loop.c (gdb_wait_for_event): Update.
13211 * gdb/printcmd.c (printf_command): Update.
13212 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13213 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13214 (gdb_os_flush_stderr): Update.
13215 * gdb/remote.c (remote_console_output): Update.
13216 * gdb/ui-file.c (gdb_flush): Rename to...
13217 (ui_file_flush): ...this.
13218 (stderr_file::write): Update.
13219 (stderr_file::puts): Update.
13220 * gdb/ui-file.h (gdb_flush): Rename to...
13221 (ui_file_flush): ...this.
13222 * gdb/utils.c (gdb_flush): Add function.
13223 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13224
5abbbe1d
TT
132252020-02-07 Tom Tromey <tromey@adacore.com>
13226
13227 PR breakpoints/24915:
13228 * source.c (find_and_open_source): Do not check basenames_may_differ.
13229
919adfe8
TT
132302020-02-07 Tom Tromey <tom@tromey.com>
13231
13232 * README: Update gdbserver documentation.
13233 * gdbserver: Move to top level.
13234 * configure.tgt (build_gdbserver): Remove.
13235 * configure.ac: Remove --enable-gdbserver.
13236 * configure: Rebuild.
13237 * Makefile.in (distclean): Don't mention gdbserver.
13238
1d5d29e7
SV
132392020-02-06 Shahab Vahedi <shahab@synopsys.com>
13240
13241 * source-cache.c (source_cache::ensure): Surround
13242 get_plain_source_lines with a try/catch.
13243 (source_cache::get_line_charpos): Get rid of try/catch
13244 and only check for the return value of "ensure".
13245 * tui/tui-source.c (tui_source_window::set_contents):
13246 Simplify "nlines" calculation.
13247
6eb1129c
SV
132482020-02-06 Shahab Vahedi <shahab@synopsys.com>
13249
13250 * MAINTAINERS (Write After Approval): Add myself.
13251
c6a42d11
CB
132522020-02-05 Christian Biesinger <cbiesinger@google.com>
13253
13254 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13255 function call.
13256
c8ecdda6
CB
132572020-02-05 Christian Biesinger <cbiesinger@google.com>
13258
13259 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13260
f6480e70
MR
132612020-02-05 Maciej W. Rozycki <macro@wdc.com>
13262
13263 * nat/riscv-linux-tdesc.h: New file.
13264 * nat/riscv-linux-tdesc.c: New file, taking code from...
13265 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13266 ... here.
13267 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13268 NATDEPFILES.
13269
dcc9fbc6
AB
132702020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13271
13272 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13273 we don't set the fake simulator ptid to the null_ptid.
13274
719546c4
SM
132752020-02-03 Simon Marchi <simon.marchi@efficios.com>
13276
13277 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13278 * gdbthread.h (class thread_info) <resumed>: Likewise.
13279 * infrun.c (resume_1): Likewise.
13280 (proceed): Likewise.
13281 (infrun_thread_stop_requested): Likewise.
13282 (stop_all_threads): Likewise.
13283 (handle_inferior_event): Likewise.
13284 (restart_threads): Likewise.
13285 (finish_step_over): Likewise.
13286 (keep_going_stepped_thread): Likewise.
13287 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13288 (linux_handle_extended_wait): Likewise.
13289 * record-btrace.c (get_thread_current_frame_id): Likewise.
13290 * record-full.c (record_full_wait_1): Likewise.
13291 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13292 * target.c (target_resume): Likewise.
13293 * thread.c (set_running_thread): Likewise.
13294
e409c542
AKS
132952020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13296
13297 * f-valprint.c (f77_print_array_1): Changed datatype of index
13298 variable to LONGEST from int to enable it to contain bound
13299 values correctly.
13300
ee98c0da
MR
133012020-02-03 Maciej W. Rozycki <macro@wdc.com>
13302
13303 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13304 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13305 offsets according to FLEN determined.
13306 (riscv_linux_nat_target::read_description): Determine FLEN
13307 dynamically.
13308 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13309 according to FLEN determined.
13310 (riscv_linux_nat_target::store_registers): Likewise.
13311
aa66aac4
SV
133122020-02-01 Shahab Vahedi <shahab@synopsys.com>
13313
13314 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13315 when reg->group is empty and reggroup is not.
13316
fd9faca8
TT
133172020-01-31 Tom Tromey <tromey@adacore.com>
13318
13319 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13320 Call beneath target's mourn_inferior after unpushing.
13321
42330a68
AB
133222020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13323
13324 PR tui/9765
13325 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13326 have enough lines to fill the screen, still return the lowest
13327 address we found.
13328
7a27a45b
AB
133292020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13330
13331 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13332 '-', '<', and '>' commands.
13333
c47f70e2
PA
133342020-01-29 Pedro Alves <palves@redhat.com>
13335 Sergio Durigan Junior <sergiodj@redhat.com>
13336
13337 * infcmd.c (construct_inferior_arguments): Assert that
13338 'argc' is greater than 0.
13339
5133a315
LM
133402020-01-29 Luis Machado <luis.machado@linaro.org>
13341
13342 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13343 (BRK_INSN_MASK): Define to 0xd4200000.
13344 (aarch64_program_breakpoint_here_p): New function.
13345 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13346 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13347 breakpoint.c.
13348 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13349 breakpoint.h
13350 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13351 call gdbarch_program_breakpoint_here_p.
13352 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13353 default_program_breakpoint_here_p, changed return type to bool and
13354 simplified.
13355 * breakpoint.h (program_breakpoint_here): Moved prototype to
13356 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13357 return type to bool.
13358 * gdbarch.c: Regenerate.
13359 * gdbarch.h: Regenerate.
13360 * gdbarch.sh (program_breakpoint_here_p): New method.
13361 * infrun.c (handle_signal_stop): Call
13362 gdbarch_program_breakpoint_here_p.
13363
168f8c6b
TT
133642020-01-26 Tom Tromey <tom@tromey.com>
13365
13366 * ctfread.c (struct ctf_fp_info): Reindent.
13367 (_initialize_ctfread): Remove.
13368
128a391f
TT
133692020-01-26 Tom Tromey <tom@tromey.com>
13370
13371 * psymtab.c (partial_map_expand_apply)
13372 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13373 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13374 (psym_print_stats, psym_expand_symtabs_for_function)
13375 (psym_map_symbol_filenames, psym_map_matching_symbols)
13376 (psym_expand_symtabs_matching)
13377 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13378 (maintenance_check_psymtabs): Use new methods.
13379 * psympriv.h (struct partial_symtab) <readin_p,
13380 get_compunit_symtab>: New methods.
13381 <readin, compunit_symtab>: Remove members.
13382 (struct standard_psymtab): New.
13383 (struct legacy_psymtab): Derive from standard_psymtab.
13384 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13385 standard_psymtab.
13386 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13387
0494dbec
TT
133882020-01-26 Tom Tromey <tom@tromey.com>
13389
13390 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13391 read_dependencies. Add assert.
13392 * psymtab.c (partial_symtab::read_dependencies): New method.
13393 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13394 method.
13395 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13396 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13397 read_dependencies.
13398 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13399 Add assert.
13400
8566b89b
TT
134012020-01-26 Tom Tromey <tom@tromey.com>
13402
13403 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13404 Call expand_psymtab.
13405 (xcoff_read_symtab): Call expand_psymtab.
13406 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13407 legacy_expand_psymtab.
13408 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13409 method.
13410 (struct legacy_psymtab) <expand_psymtab>: Implement.
13411 <legacy_expand_psymtab>: New member.
13412 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13413 (parse_partial_symbols): Set legacy_expand_psymtab.
13414 (psymtab_to_symtab_1): Change argument order. Call
13415 expand_psymtab.
13416 (new_psymtab): Set legacy_expand_psymtab.
13417 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13418 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13419 expand_psymtab.
13420 (dwarf2_psymtab::expand_psymtab): Rename from
13421 psymtab_to_symtab_1. Call expand_psymtab.
13422 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13423 (dbx_end_psymtab): Likewise.
13424 (dbx_psymtab_to_symtab_1): Change argument order. Call
13425 expand_psymtab.
13426 (dbx_read_symtab): Call expand_psymtab.
13427 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13428 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13429 (ctf_psymtab::read_symtab): Call expand_psymtab.
13430
077cbab2
TT
134312020-01-26 Tom Tromey <tom@tromey.com>
13432
13433 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13434 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13435 messages.
13436 * mdebugread.c (mdebug_read_symtab): Remove prints.
13437 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13438 assert.
13439 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13440
891813be
TT
134412020-01-26 Tom Tromey <tom@tromey.com>
13442
13443 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13444 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13445 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13446 legacy_symtab.
13447 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13448 * psymtab.c (psymtab_to_symtab): Call method.
13449 (dump_psymtab): Update.
13450 * psympriv.h (struct partial_symtab): Add virtual destructor.
13451 <read_symtab>: New method.
13452 (struct legacy_symtab): New.
13453 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13454 (struct pst_map) <pst>: Now a legacy_psymtab.
13455 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13456 (new_psymtab): Use legacy_psymtab.
13457 * dwarf2read.h (struct dwarf2_psymtab): New.
13458 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13459 * dwarf2read.c (dwarf2_create_include_psymtab)
13460 (dwarf2_build_include_psymtabs, create_type_unit_group)
13461 (create_partial_symtab, process_psymtab_comp_unit_reader)
13462 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13463 (set_partial_user): Use dwarf2_psymtab.
13464 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13465 (psymtab_to_symtab_1, process_full_comp_unit)
13466 (process_full_type_unit, dwarf2_ranges_read)
13467 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13468 (dwarf_decode_lines): Use dwarf2_psymtab.
13469 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13470 (add_address_entry_worker, write_one_signatured_type)
13471 (recursively_count_psymbols, recursively_write_psymbols)
13472 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13473 (write_debug_names): Likewise.
13474 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13475 <pst>: Now a legacy_psymtab.
13476 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13477 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13478 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13479 * ctfread.c (struct ctf_psymtab): New.
13480 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13481 ctf_psymtab.
13482 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13483 (create_partial_symtab): Return a ctf_psymtab.
13484 (scan_partial_symbols): Update.
13485
c3693a1d
TT
134862020-01-26 Tom Tromey <tom@tromey.com>
13487
13488 * xcoffread.c (xcoff_start_psymtab): Use new.
13489 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13490 renamed from start_psymtab_common.
13491 * psympriv.h (struct partial_symtab): Add new constructor.
13492 (start_psymtab_common): Don't declare.
13493 * mdebugread.c (parse_partial_symbols): Use new.
13494 * dwarf2read.c (create_partial_symtab): Use new.
13495 * dbxread.c (start_psymtab): Use new.
13496 * ctfread.c (create_partial_symtab): Use new.
13497
32caafd0
TT
134982020-01-26 Tom Tromey <tom@tromey.com>
13499
13500 * xcoffread.c (xcoff_end_psymtab): Use new.
13501 * psymtab.c (start_psymtab_common): Use new.
13502 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13503 Update.
13504 * psympriv.h (struct partial_symtab): Add parameters to
13505 constructor. Don't inline.
13506 (allocate_psymtab): Don't declare.
13507 * mdebugread.c (new_psymtab): Use new.
13508 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13509 * dbxread.c (dbx_end_psymtab): Use new.
13510
abaa2f23
TT
135112020-01-26 Tom Tromey <tom@tromey.com>
13512
13513 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13514 allocate_psymtab. Update documentation.
13515 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13516 allocate_psymtab. Do not use new.
13517 (allocate_psymtab): Use new. Update.
13518
6d94535f
TT
135192020-01-26 Tom Tromey <tom@tromey.com>
13520
13521 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13522 * psymtab.c (psym_print_stats): Update.
13523 * psympriv.h (struct partial_symtab) <readin,
13524 psymtabs_addrmap_supported, anonymous>: Now bool.
13525 * mdebugread.c (psymtab_to_symtab_1): Update.
13526 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13527 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13528 (process_full_comp_unit, process_full_type_unit): Update.
13529 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13530 * ctfread.c (psymtab_to_symtab): Update.
13531
6f17252b
TT
135322020-01-26 Tom Tromey <tom@tromey.com>
13533
13534 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13535 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13536 * psymtab.c (psymtab_storage): Delete psymtabs.
13537 (psymtab_storage::allocate_psymtab): Use new.
13538 (psymtab_storage::discard_psymtab): Use delete.
13539 * psympriv.h (struct partial_symtab): Add constructor and
13540 initializers.
13541
f6f1cebc
TT
135422020-01-26 Tom Tromey <tom@tromey.com>
13543
13544 * machoread.c: Do not include psympriv.h.
13545
e47e48f6
PW
135462020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13547
13548 * NEWS: Mention the new option and the set/show commands.
13549
a2fedca9
PW
135502020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13551
13552 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13553 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13554 (validate_exec_file): New variables, enums, functions.
13555 (exec_file_locate_attach, print_section_info): Style the filenames.
13556 (_initialize_exec): Install show_exec_file_mismatch_command and
13557 set_exec_file_mismatch_command.
13558 * gdbcore.h (validate_exec_file): Declare.
13559 * infcmd.c (attach_command): Call validate_exec_file.
13560 * remote.c ( remote_target::remote_add_inferior): Likewise.
13561
7ffa82e1
AB
135622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13563
13564 * frame.c (find_frame_sal): Move call to get_next_frame into more
13565 inner scope.
13566 * inline-frame.c (inilne_state) <inline_state>: Update argument
13567 types.
13568 (inilne_state) <skipped_symbol>: Rename to...
13569 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13570 (skip_inline_frames): Build vector of skipped symbols and use this
13571 to reate the inline_state.
13572 (inline_skipped_symbol): Add a comment and some assertions, fetch
13573 skipped symbol from the list.
13574
3d92a3e3
AB
135752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13576
13577 * buildsym.c (lte_is_less_than): Delete.
13578 (buildsym_compunit::end_symtab_with_blockvector): Create local
13579 lambda function to sort line table entries, and use
13580 std::stable_sort instead of std::sort.
13581 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13582 markers when looking for a previous line.
13583
94a72be7
AB
135842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13585
13586 * dwarf2read.c (lnp_state_machine::record_line): Include
13587 end_sequence parameter in debug print out. Record the line if we
13588 are at an end_sequence marker even if it's not the start of a
13589 statement.
13590 * symmisc.c (maintenance_print_one_line_table): Print end of
13591 sequence markers with 'END' not '0'.
13592
53af73bf
PA
135932020-01-24 Pedro Alves <palves@redhat.com>
13594
13595 PR gdb/25410
13596 * thread.c (scoped_restore_current_thread::restore): Use
13597 switch_to_inferior_no_thread.
13598 * exec.c: Include "progspace-and-thread.h".
13599 (add_target_sections, remove_target_sections):
13600 scoped_restore_current_pspace_and_thread instead of
13601 scoped_restore_current_thread.
13602 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13603 and aspace to the inferior before calling clone_program_space.
13604 Remove stale comment.
13605
3050c6f4
CB
136062020-01-24 Christian Biesinger <cbiesinger@google.com>
13607
13608 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13609 (arm_netbsd_nat_target::fetch_registers): ...this.
13610 (arm_nbsd_nat_target::store_registers): Rename to...
13611 (arm_netbsd_nat_target::store_registers): ...this.
13612
73685c7e
CB
136132020-01-24 Christian Biesinger <cbiesinger@google.com>
13614
13615 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13616 register_t.
13617
89203d40
CB
136182020-01-24 Christian Biesinger <cbiesinger@google.com>
13619
13620 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13621 Update comment.
13622 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13623 Likewise.
13624 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13625 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13626 the correct replacement (iterate_over_regset_sections).
13627 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13628 Update comment.
13629
1ba1ac88
AB
136302020-01-24 Graham Markall <graham.markall@embecosm.com>
13631
13632 PR gdb/23718
13633 * gdb/python/python.c (execute_gdb_command): Call
13634 async_enable_stdin in catch block.
13635
f3364a6d
AB
136362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13637
13638 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13639 SWITCH_THRU_ALL_UIS.
13640
733d0a67
AB
136412020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13642
13643 PR tui/9765
13644 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13645 comment, add extra parameter, and update to store previous symbol
13646 when appropriate.
13647 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13648 add extra parameter.
13649 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13650 remove unneeded parameter, add try/catch around gdb_print_insn,
13651 rewrite to add items to asm_lines vector.
13652 (tui_find_backward_disassembly_start_address): New function.
13653 (tui_find_disassembly_address): Updated throughout.
13654 (tui_disasm_window::set_contents): Update for changes to
13655 tui_disassemble.
13656 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13657 number of lines to scroll.
13658
b3b3bada
SM
136592020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13660
13661 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13662 (SECT_OFF_DATA): Likewise.
13663 (SECT_OFF_RODATA): Likewise.
13664 (SECT_OFF_TEXT): Likewise.
13665 (SECT_OFF_BSS): Likewise.
13666 (struct objfile) <text_section_offset, data_section_offset>: New
13667 methods.
13668 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13669 objfile::text_section_offset.
13670 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13671 * coffread.c (coff_symtab_read): Likewise.
13672 (enter_linenos): Likewise.
13673 (process_coff_symbol): Likewise.
13674 * ctfread.c (get_objfile_text_range): Likewise.
13675 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13676 Use objfile::data_section_offset.
13677 * dwarf2-frame.c (execute_cfa_program): Use
13678 objfile::text_section_offset.
13679 (dwarf2_frame_find_fde): Likewise.
13680 * dwarf2read.c (create_addrmap_from_index): Likewise.
13681 (create_addrmap_from_aranges): Likewise.
13682 (dw2_find_pc_sect_compunit_symtab): Likewise.
13683 (process_psymtab_comp_unit_reader): Likewise.
13684 (add_partial_symbol): Likewise.
13685 (add_partial_subprogram): Likewise.
13686 (process_full_comp_unit): Likewise.
13687 (read_file_scope): Likewise.
13688 (read_func_scope): Likewise.
13689 (read_lexical_block_scope): Likewise.
13690 (read_call_site_scope): Likewise.
13691 (dwarf2_rnglists_process): Likewise.
13692 (dwarf2_ranges_process): Likewise.
13693 (dwarf2_ranges_read): Likewise.
13694 (dwarf_decode_lines_1): Likewise.
13695 (new_symbol): Likewise.
13696 (dwarf2_fetch_die_loc_sect_off): Likewise.
13697 (dwarf2_per_cu_text_offset): Likewise.
13698 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13699 * hppa-tdep.c (read_unwind_info): Likewise.
13700 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13701 * psympriv.h (struct partial_symtab): Likewise.
13702 * psymtab.c (find_pc_sect_psymtab): Likewise.
13703 * solib-svr4.c (enable_break): Likewise.
13704 * stap-probe.c (relocate_address): Use
13705 objfile::data_section_offset.
13706 * xcoffread.c (enter_line_range): Use
13707 objfile::text_section_offset.
13708 (read_xcoff_symtab): Likewise.
13709
ab53f382
SM
137102020-01-23 Simon Marchi <simon.marchi@efficios.com>
13711
13712 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13713 declaration to narrower scopes.
13714
e7eee665
SM
137152020-01-23 Simon Marchi <simon.marchi@efficios.com>
13716
13717 * darwin-nat.h (struct darwin_exception_msg, enum
13718 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13719 Move up.
13720 (class darwin_nat_target) <wait_1, check_new_threads,
13721 decode_exception_message, decode_message, stop_inferior,
13722 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13723 * darwin-nat.c (darwin_check_new_threads): Rename to...
13724 (darwin_nat_target::check_new_threads): ... this.
13725 (darwin_suspend_inferior_it): Remove.
13726 (darwin_decode_exception_message): Rename to...
13727 (darwin_nat_target::decode_exception_message): ... this.
13728 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13729 (darwin_decode_message): Rename to...
13730 (darwin_nat_target::decode_message): ... this.
13731 (cancel_breakpoint): Rename to...
13732 (darwin_nat_target::cancel_breakpoint): ... this.
13733 (darwin_wait): Rename to...
13734 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13735 instead of iterate_over_inferiors.
13736 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13737 (darwin_stop_inferior): Rename to...
13738 (darwin_nat_target::stop_inferior): ... this.
13739 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13740 (darwin_init_thread_list): Rename to...
13741 (darwin_nat_target::init_thread_list): ... this.
13742 (darwin_ptrace_him): Rename to...
13743 (darwin_nat_target::ptrace_him): ... this.
13744 (darwin_nat_target::create_inferior): Pass lambda function to
13745 fork_inferior.
13746 (darwin_nat_target::detach): Call stop_inferior instead of
13747 darwin_stop_inferior.
13748 * fork-inferior.h (fork_inferior): Change init_trace_fun
13749 parameter to gdb::function_view.
13750 * fork-inferior.c (fork_inferior): Likewise.
13751
c162ed3e
HD
137522020-01-23 Hannes Domani <ssbssa@yahoo.de>
13753
13754 * i386-cygwin-tdep.c (core_process_module_section): Update.
13755 * windows-nat.c (struct lm_info_windows): Add text_offset.
13756 (windows_xfer_shared_libraries): Update.
13757 * windows-tdep.c (windows_xfer_shared_library):
13758 Add text_offset_cached argument.
13759 * windows-tdep.h (windows_xfer_shared_library): Update.
13760
a1237872
SM
137612020-01-21 Simon Marchi <simon.marchi@efficios.com>
13762
13763 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13764
b3ee6dd9
SM
137652020-01-21 Simon Marchi <simon.marchi@efficios.com>
13766
13767 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13768 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13769 replace with range-based for.
13770 (gdbsim_interrupt_inferior): Remove.
13771 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13772 with a range-based for. Inline code from
13773 gdbsim_interrupt_inferior.
13774
f9fac3c8
SM
137752020-01-21 Simon Marchi <simon.marchi@efficios.com>
13776
13777 * infrun.c (proceed): Fix indentation.
13778
f6474de9
TT
137792020-01-21 Tom Tromey <tromey@adacore.com>
13780
13781 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13782 * python/python.c (python_extension_ops): Update.
13783 (gdbpy_colorize): New function.
13784 * python/lib/gdb/__init__.py (colorize): New function.
13785 * extension.h (ext_lang_colorize): Declare.
13786 * extension.c (ext_lang_colorize): New function.
13787 * extension-priv.h (struct extension_language_ops) <colorize>: New
13788 member.
13789 * cli/cli-style.c (_initialize_cli_style): Update help text.
13790
f0c702d4
LM
137912020-01-21 Luis Machado <luis.machado@linaro.org>
13792
13793 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13794 <cond>: Change type to bool.
13795 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13796 (aarch64_displaced_step_cb): Likewise.
13797 (aarch64_displaced_step_tb): Likewise.
13798
1ab139e5
LM
137992020-01-21 Luis Machado <luis.machado@linaro.org>
13800
13801 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13802 output.
13803
0c271889
LM
138042020-01-21 Luis Machado <luis.machado@linaro.org>
13805
13806 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13807 <pc_adjust>: Adjust the documentation.
13808 (aarch64_displaced_step_fixup): Check if PC really moved before
13809 adjusting it.
13810
4d89c1c7
TT
138112020-01-19 Tom Tromey <tom@tromey.com>
13812
13813 * disasm.c (~gdb_disassembler): New destructor.
13814 (gdb_buffered_insn_length): Call disassemble_free_target.
13815 * disasm.h (class gdb_disassembler): Declare destructor. Use
13816 DISABLE_COPY_AND_ASSIGN.
13817
c0ab21c2
TT
138182020-01-19 Tom Tromey <tom@tromey.com>
13819
13820 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13821 (die_reader_func_ftype): Remove.
13822 (cutu_reader): New class.
13823 (dw2_get_file_names_reader): Remove "data" parameter.
13824 (dw2_get_file_names): Use cutu_reader.
13825 (create_debug_type_hash_table): Update.
13826 (read_cutu_die_from_dwo): Update comment.
13827 (lookup_dwo_unit): Add dwo_name parameter.
13828 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13829 die_reader_func_ftype and data parameters.
13830 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13831 Remove die_reader_func_ftype and data parameters.
13832 (~cutu_reader): New; from init_cutu_and_read_dies.
13833 (cutu_reader::cutu_reader): Rename from
13834 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13835 and data parameters.
13836 (init_cutu_and_read_dies_simple): Remove.
13837 (struct process_psymtab_comp_unit_data): Remove.
13838 (process_psymtab_comp_unit_reader): Remove data parameter; add
13839 want_partial_unit and pretend_language parameters.
13840 (process_psymtab_comp_unit): Use cutu_reader.
13841 (build_type_psymtabs_reader): Remove data parameter.
13842 (build_type_psymtabs_1): Use cutu_reader.
13843 (process_skeletonless_type_unit): Likewise.
13844 (load_partial_comp_unit_reader): Remove.
13845 (load_partial_comp_unit): Use cutu_reader.
13846 (load_full_comp_unit_reader): Remove.
13847 (load_full_comp_unit): Use cutu_reader.
13848 (struct create_dwo_cu_data): Remove.
13849 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13850 dwo_unit parameters.
13851 (create_cus_hash_table): Use cutu_reader.
13852 (struct dwarf2_read_addr_index_data): Remove.
13853 (dwarf2_read_addr_index_reader): Remove.
13854 (dwarf2_read_addr_index): Use cutu_reader.
13855 (read_signatured_type_reader): Remove.
13856 (read_signatured_type): Use cutu_reader.
13857
45bbae5c
TT
138582020-01-19 Tom Tromey <tom@tromey.com>
13859
13860 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13861 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13862 (tui_wrefresh): Declare.
13863 * tui/tui-wingeneral.c (suppress_output): New global.
13864 (tui_suppress_output, ~tui_suppress_output): New constructor and
13865 destructor.
13866 (tui_wrefresh): New function.
13867 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13868 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13869 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13870 method.
13871 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13872 tui_wrefresh.
13873 (tui_data_window::no_refresh): New method.
13874 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13875 (tui_reg_command): Use tui_suppress_output
13876 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13877 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13878 method.
13879 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13880
4f13c1c0
TT
138812020-01-19 Tom Tromey <tom@tromey.com>
13882
13883 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13884 Handle case where symtab is null.
13885
fa47e446
SM
138862020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13887
13888 * linux-fork.c (one_fork_p): Simplify.
13889
26f42329
SM
138902020-01-17 Simon Marchi <simon.marchi@efficios.com>
13891
13892 * top.c (struct qt_args): Remove.
13893 (kill_or_detach): Change return type to void, replace `void *`
13894 parameter with a proper one.
13895 (print_inferior_quit_action): Likewise.
13896 (quit_confirm): Use range-based for loop to iterate over inferiors.
13897 (quit_force): Likewise.
13898
a9ac81b1
SM
138992020-01-17 Simon Marchi <simon.marchi@efficios.com>
13900
13901 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13902 `void *` parameter with proper parameters.
13903 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13904 (print_one_inferior): Change return type to void, replace `void *`
13905 parameter with proper parameters.
13906 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13907 inferiors.
13908 (get_other_inferior): Remove.
13909 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13910 inferiors.
13911
788eca49
SM
139122020-01-17 Simon Marchi <simon.marchi@efficios.com>
13913
13914 * mi/mi-interp.c (report_initial_inferior): Remove.
13915 (mi_interp::init): Use range-based for to iterate over inferiors.
13916
d9bc85b6
SM
139172020-01-17 Simon Marchi <simon.marchi@efficios.com>
13918
13919 * python/py-inferior.c (build_inferior_list): Remove.
13920 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13921
40c94099
CB
139222020-01-16 Christian Biesinger <cbiesinger@google.com>
13923
13924 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13925 (btrace_stitch_trace): Likewise.
13926 * charset.c (intermediate_encoding): Likewise (vaild).
13927 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13928 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13929 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13930
e0cdfe3c
HD
139312020-01-16 Hannes Domani <ssbssa@yahoo.de>
13932
13933 * windows-tdep.c (windows_get_tlb_type):
13934 Add rtl_user_process_parameters type.
13935
790f1718 139362020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13937 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13938
13939 PR build/24805
13940 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13941 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13942 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13943 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13944 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13945 (ps_plog): Redeclare exported functions with default visibility.
13946
3112ed97
NA
139472020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13948
13949 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13950 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13951
8dc3273e
SM
139522020-01-15 Simon Marchi <simon.marchi@efficios.com>
13953
13954 * infcmd.c (post_create_inferior): Use get_thread_regcache
13955 instead of get_current_regcache.
13956
ff47f4f0
TT
139572020-01-14 Tom Tromey <tom@tromey.com>
13958
13959 PR symtab/12535:
13960 * python/python.c (gdbpy_decode_line): Treat empty string the same
13961 as no argument.
13962
975f45b7
TT
139632020-01-14 Tom Tromey <tom@tromey.com>
13964
13965 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13966
25e57356
TT
139672020-01-14 Tom Tromey <tom@tromey.com>
13968
13969 * nat/linux-btrace.c: Don't include <config.h>.
13970 * nat/linux-ptrace.c: Don't include <config.h>.
13971 * nat/x86-linux-dregs.c: Don't include <config.h>.
13972
05ea2a05
TT
139732020-01-14 Tom Tromey <tom@tromey.com>
13974
13975 * configure: Rebuild.
13976 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13977
01027315
TT
139782020-01-14 Tom Tromey <tom@tromey.com>
13979
13980 * nat/x86-linux-dregs.c: Include configh.h.
13981 * nat/linux-ptrace.c: Include configh.h.
13982 * nat/linux-btrace.c: Include configh.h.
13983 * defs.h: Include config.h, bfd.h.
13984 * configure.ac: Don't source common.host.
13985 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13986 * configure: Rebuild.
13987 * acinclude.m4: Update path.
13988 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13989 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13990 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13991 (CLIBS): Add LIBSUPPORT.
13992 (CDEPS): Likewise.
13993 (COMMON_SFILES): Remove gdbsupport files.
13994 (HFILES_NO_SRCDIR): Likewise.
13995 (stamp-version): Update path to create-version.sh.
13996 (ALLDEPFILES): Remove gdbsupport files.
13997
b2ceabe8
TT
139982020-01-14 Tom Tromey <tom@tromey.com>
13999
14000 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14001 USE_WIN32API when needed.
14002 * configure.ac (USE_WIN32API): Don't define.
14003 (WIN32LIBS): Use WIN32APILIBS.
14004 * configure: Rebuild.
14005
25c51f71
TT
140062020-01-14 Tom Tromey <tom@tromey.com>
14007
14008 * configure: Rebuild.
14009 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14010
717c684d
BE
140112020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14012
14013 * skip.c (skip_function_command): Make skip w/o arguments use the
14014 name of the inlined function if pc is inside any inlined function.
14015
7da6a5b9
LM
140162020-01-14 Luis Machado <luis.machado@linaro.org>
14017
14018 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14019 * infrun.c (resume_1): Likewise.
14020 (handle_inferior_event): Remove stale comment.
14021 * linux-nat.c (linux_nat_target::resume): Update comments.
14022 (save_stop_reason): Likewise.
14023 (linux_nat_filter_event): Likewise.
14024 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14025
44e4c775
AB
140262020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14027
14028 * elfread.c (record_minimal_symbol): Set section index to 0 for
14029 non-allocatable sections.
14030
18a8505e
AT
14031
140322020-01-13 Ali Tamur <tamur@google.com>
14033
14034 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14035 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14036 to gdb::optional. Update comments.
14037 (dwo_file): Update comments.
14038 (read_attribute): Update API to take an additional out parameter,
14039 need_reprocess. This is used to mark attributes that need other
14040 attributes (e.g. str_offsets_base) for correct computation which may not
14041 have been read yet.
14042 (read_attribute_reprocess): New function declaration.
14043 (read_addr_index): Likewise.
14044 (read_dwo_str_index): Likewise.
14045 (read_stub_str_index): Likewise.
14046 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14047 (lookup_addr_base): New function definition.
14048 (lookup_ranges_base): Likewise.
14049 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14050 lookup_ranges_base.
14051 (init_cutu_and_read_dies): Update comments.
14052 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14053 unit. This is used to inherit parent's str_offsets_base and addr_base.
14054 Update comments.
14055 (init_cutu_and_read_dies_simple): Reflect API changes.
14056 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14057 (create_cus_hash_table): Change API to take parent compile unit.
14058 Reflect API changes.
14059 (open_and_init_dwo_file): Reflect API changes.
14060 (dwarf2_get_pc_bounds): Update comments.
14061 (dwarf2_record_block_ranges): Likewise.
14062 (read_full_die_1): Change implementation to reprocess attributes that
14063 need str_offsets_base and addr_base.
14064 (partial_die_info::read): Likewise.
14065 (read_attribute_reprocess): New function definition.
14066 (read_attribute_value): Change API to take an additional out parameter,
14067 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14068 when a non-dwo compile unit has index based attributes.
14069 (read_attribute): Reflect API changes.
14070 (read_addr_index_1): Reflect API changes. Update comments.
14071 (dwarf2_read_addr_index_data): Reflect API changes.
14072 (dwarf2_read_addr_index): Likewise.
14073 (read_str_index): Change API and implementation. This becomes a helper
14074 to be used by the new string index related methods. Update error
14075 message and comments.
14076 (read_dwo_str_index): New function definition.
14077 (read_stub_str_index): Likewise.
14078 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14079 * symfile.h (dwarf2_debug_sections): Likewise.
14080 * xcoffread.c (dwarf2_debug_sections): Likewise.
14081
0cac9354
SM
140822020-01-13 Simon Marchi <simon.marchi@efficios.com>
14083
14084 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14085 core_reg_sect type to gdb_byte *.
14086 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14087 * cris-tdep.c (fetch_core_registers): Likewise.
14088 * corelow.c (core_target::get_core_register_section): Change
14089 type of `contents` to gdb::byte_vector.
14090
9a6d629c
AB
140912020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14092
14093 * tui/tui-wingeneral.c (box_win): Position the title in the center
14094 of the border.
14095
d8b2f9e3
SM
140962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14097
14098 * corelow.c (core_target::get_core_register_section): Use
14099 std::vector instead of alloca.
14100
bb564c58
SM
141012020-01-13 Simon Marchi <simon.marchi@efficios.com>
14102
14103 * warning.m4: Add -Wmissing-declarations to build_warnings.
14104 * configure: Re-generate.
14105
6b366111
SM
141062020-01-13 Simon Marchi <simon.marchi@efficios.com>
14107
14108 * python/python.c (init__gdb_module): Add declaration.
14109
6c265988
SM
141102020-01-13 Simon Marchi <simon.marchi@efficios.com>
14111
14112 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14113 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14114 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14115 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14116 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14117 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14118 * ada-exp.y (_initialize_ada_exp): Add declaration.
14119 * ada-lang.c (_initialize_ada_language): Add declaration.
14120 * ada-tasks.c (_initialize_tasks): Add declaration.
14121 * agent.c (_initialize_agent): Add declaration.
14122 * aix-thread.c (_initialize_aix_thread): Add declaration.
14123 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14124 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14125 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14126 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14127 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14128 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14129 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14130 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14131 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14132 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14133 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14134 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14135 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14136 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14137 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14138 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14139 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14140 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14141 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14142 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14143 * annotate.c (_initialize_annotate): Add declaration.
14144 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14145 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14146 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14147 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14148 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14149 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14150 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14151 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14152 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14153 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14154 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14155 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14156 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14157 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14158 * auto-load.c (_initialize_auto_load): Add declaration.
14159 * auxv.c (_initialize_auxv): Add declaration.
14160 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14161 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14162 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14163 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14164 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14165 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14166 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14167 * breakpoint.c (_initialize_breakpoint): Add declaration.
14168 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14169 * btrace.c (_initialize_btrace): Add declaration.
14170 * charset.c (_initialize_charset): Add declaration.
14171 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14172 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14173 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14174 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14175 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14176 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14177 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14178 * coffread.c (_initialize_coffread): Add declaration.
14179 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14180 * compile/compile.c (_initialize_compile): Add declaration.
14181 * complaints.c (_initialize_complaints): Add declaration.
14182 * completer.c (_initialize_completer): Add declaration.
14183 * copying.c (_initialize_copying): Add declaration.
14184 * corefile.c (_initialize_core): Add declaration.
14185 * corelow.c (_initialize_corelow): Add declaration.
14186 * cp-abi.c (_initialize_cp_abi): Add declaration.
14187 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14188 * cp-support.c (_initialize_cp_support): Add declaration.
14189 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14190 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14191 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14192 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14193 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14194 * ctfread.c (_initialize_ctfread): Add declaration.
14195 * d-lang.c (_initialize_d_language): Add declaration.
14196 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14197 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14198 * dbxread.c (_initialize_dbxread): Add declaration.
14199 * dcache.c (_initialize_dcache): Add declaration.
14200 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14201 * disasm.c (_initialize_disasm): Add declaration.
14202 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14203 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14204 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14205 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14206 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14207 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14208 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14209 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14210 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14211 * elfread.c (_initialize_elfread): Add declaration.
14212 * exec.c (_initialize_exec): Add declaration.
14213 * extension.c (_initialize_extension): Add declaration.
14214 * f-lang.c (_initialize_f_language): Add declaration.
14215 * f-valprint.c (_initialize_f_valprint): Add declaration.
14216 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14217 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14218 * filesystem.c (_initialize_filesystem): Add declaration.
14219 * findcmd.c (_initialize_mem_search): Add declaration.
14220 * findvar.c (_initialize_findvar): Add declaration.
14221 * fork-child.c (_initialize_fork_child): Add declaration.
14222 * frame-base.c (_initialize_frame_base): Add declaration.
14223 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14224 * frame.c (_initialize_frame): Add declaration.
14225 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14226 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14227 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14228 * gcore.c (_initialize_gcore): Add declaration.
14229 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14230 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14231 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14232 * gdbarch.c (_initialize_gdbarch): Add declaration.
14233 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14234 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14235 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14236 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14237 * go-lang.c (_initialize_go_language): Add declaration.
14238 * go32-nat.c (_initialize_go32_nat): Add declaration.
14239 * guile/guile.c (_initialize_guile): Add declaration.
14240 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14241 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14242 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14243 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14244 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14245 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14246 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14247 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14248 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14249 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14250 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14251 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14252 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14253 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14254 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14255 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14256 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14257 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14258 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14259 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14260 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14261 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14262 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14263 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14264 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14265 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14266 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14267 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14268 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14269 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14270 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14271 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14272 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14273 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14274 * infcall.c (_initialize_infcall): Add declaration.
14275 * infcmd.c (_initialize_infcmd): Add declaration.
14276 * inflow.c (_initialize_inflow): Add declaration.
14277 * infrun.c (_initialize_infrun): Add declaration.
14278 * interps.c (_initialize_interpreter): Add declaration.
14279 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14280 * jit.c (_initialize_jit): Add declaration.
14281 * language.c (_initialize_language): Add declaration.
14282 * linux-fork.c (_initialize_linux_fork): Add declaration.
14283 * linux-nat.c (_initialize_linux_nat): Add declaration.
14284 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14285 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14286 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14287 * m2-lang.c (_initialize_m2_language): Add declaration.
14288 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14289 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14290 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14291 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14292 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14293 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14294 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14295 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14296 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14297 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14298 * machoread.c (_initialize_machoread): Add declaration.
14299 * macrocmd.c (_initialize_macrocmd): Add declaration.
14300 * macroscope.c (_initialize_macroscope): Add declaration.
14301 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14302 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14303 * maint.c (_initialize_maint_cmds): Add declaration.
14304 * mdebugread.c (_initialize_mdebugread): Add declaration.
14305 * memattr.c (_initialize_mem): Add declaration.
14306 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14307 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14308 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14309 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14310 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14311 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14312 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14313 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14314 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14315 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14316 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14317 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14318 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14319 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14320 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14321 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14322 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14323 * mipsread.c (_initialize_mipsread): Add declaration.
14324 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14325 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14326 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14327 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14328 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14329 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14330 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14331 * nto-procfs.c (_initialize_procfs): Add declaration.
14332 * objc-lang.c (_initialize_objc_language): Add declaration.
14333 * observable.c (_initialize_observer): Add declaration.
14334 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14335 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14336 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14337 * osabi.c (_initialize_gdb_osabi): Add declaration.
14338 * osdata.c (_initialize_osdata): Add declaration.
14339 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14340 * parse.c (_initialize_parse): Add declaration.
14341 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14342 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14343 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14344 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14345 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14346 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14347 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14348 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14349 * printcmd.c (_initialize_printcmd): Add declaration.
14350 * probe.c (_initialize_probe): Add declaration.
14351 * proc-api.c (_initialize_proc_api): Add declaration.
14352 * proc-events.c (_initialize_proc_events): Add declaration.
14353 * proc-service.c (_initialize_proc_service): Add declaration.
14354 * procfs.c (_initialize_procfs): Add declaration.
14355 * producer.c (_initialize_producer): Add declaration.
14356 * psymtab.c (_initialize_psymtab): Add declaration.
14357 * python/python.c (_initialize_python): Add declaration.
14358 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14359 * record-btrace.c (_initialize_record_btrace): Add declaration.
14360 * record-full.c (_initialize_record_full): Add declaration.
14361 * record.c (_initialize_record): Add declaration.
14362 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14363 * regcache.c (_initialize_regcache): Add declaration.
14364 * reggroups.c (_initialize_reggroup): Add declaration.
14365 * remote-notif.c (_initialize_notif): Add declaration.
14366 * remote-sim.c (_initialize_remote_sim): Add declaration.
14367 * remote.c (_initialize_remote): Add declaration.
14368 * reverse.c (_initialize_reverse): Add declaration.
14369 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14370 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14371 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14372 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14373 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14374 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14375 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14376 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14377 Add declaration.
14378 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14379 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14380 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14381 * rust-exp.y (_initialize_rust_exp): Add declaration.
14382 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14383 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14384 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14385 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14386 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14387 * score-tdep.c (_initialize_score_tdep): Add declaration.
14388 * ser-go32.c (_initialize_ser_dos): Add declaration.
14389 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14390 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14391 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14392 * ser-uds.c (_initialize_ser_socket): Add declaration.
14393 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14394 * serial.c (_initialize_serial): Add declaration.
14395 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14396 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14397 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14398 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14399 * skip.c (_initialize_step_skip): Add declaration.
14400 * sol-thread.c (_initialize_sol_thread): Add declaration.
14401 * solib-aix.c (_initialize_solib_aix): Add declaration.
14402 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14403 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14404 * solib-frv.c (_initialize_frv_solib): Add declaration.
14405 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14406 * solib-target.c (_initialize_solib_target): Add declaration.
14407 * solib.c (_initialize_solib): Add declaration.
14408 * source-cache.c (_initialize_source_cache): Add declaration.
14409 * source.c (_initialize_source): Add declaration.
14410 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14411 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14412 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14413 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14414 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14415 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14416 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14417 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14418 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14419 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14420 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14421 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14422 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14423 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14424 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14425 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14426 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14427 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14428 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14429 * stabsread.c (_initialize_stabsread): Add declaration.
14430 * stack.c (_initialize_stack): Add declaration.
14431 * stap-probe.c (_initialize_stap_probe): Add declaration.
14432 * std-regs.c (_initialize_frame_reg): Add declaration.
14433 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14434 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14435 * symfile.c (_initialize_symfile): Add declaration.
14436 * symmisc.c (_initialize_symmisc): Add declaration.
14437 * symtab.c (_initialize_symtab): Add declaration.
14438 * target.c (_initialize_target): Add declaration.
14439 * target-connection.c (_initialize_target_connection): Add
14440 declaration.
14441 * target-dcache.c (_initialize_target_dcache): Add declaration.
14442 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14443 * thread.c (_initialize_thread): Add declaration.
14444 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14445 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14446 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14447 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14448 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14449 * tracectf.c (_initialize_ctf): Add declaration.
14450 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14451 * tracefile.c (_initialize_tracefile): Add declaration.
14452 * tracepoint.c (_initialize_tracepoint): Add declaration.
14453 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14454 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14455 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14456 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14457 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14458 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14459 * tui/tui.c (_initialize_tui): Add declaration.
14460 * typeprint.c (_initialize_typeprint): Add declaration.
14461 * ui-style.c (_initialize_ui_style): Add declaration.
14462 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14463 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14464 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14465 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14466 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14467 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14468 * unittests/filtered_iterator-selftests.c
14469 (_initialize_filtered_iterator_selftests): Add declaration.
14470 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14471 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14472 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14473 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14474 * unittests/main-thread-selftests.c
14475 (_initialize_main_thread_selftests): Add declaration.
14476 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14477 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14478 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14479 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14480 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14481 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14482 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14483 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14484 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14485 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14486 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14487 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14488 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14489 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14490 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14491 declaration.
14492 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14493 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14494 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14495 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14496 * user-regs.c (_initialize_user_regs): Add declaration.
14497 * utils.c (_initialize_utils): Add declaration.
14498 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14499 * valops.c (_initialize_valops): Add declaration.
14500 * valprint.c (_initialize_valprint): Add declaration.
14501 * value.c (_initialize_values): Add declaration.
14502 * varobj.c (_initialize_varobj): Add declaration.
14503 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14504 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14505 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14506 * windows-nat.c (_initialize_windows_nat): Add declaration.
14507 (_initialize_check_for_gdb_ini): Add declaration.
14508 (_initialize_loadable): Add declaration.
14509 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14510 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14511 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14512 * xcoffread.c (_initialize_xcoffread): Add declaration.
14513 * xml-support.c (_initialize_xml_support): Add declaration.
14514 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14515 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14516 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14517 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14518
e2de1eec
SM
145192020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14520
14521 * regformats/regdat.sh: Generate declaration for init function.
14522
e0037b4c
SM
145232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14524
14525 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14526 up.
14527 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14528 close_one_inferior>: New methods.
14529 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14530 pass down target to find_inferior_pid.
14531 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14532 Pass down target to find_inferior_ptid.
14533 (gdbsim_target::create_inferior): Pass down target to
14534 add_thread_silent.
14535 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14536 target down to find_inferior_ptid and switch_to_thread.
14537 (gdbsim_target::close): Update to call close_one_inferior.
14538 (struct resume_data): Remove.
14539 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14540 directly, rather than through a void pointer.
14541 (gdbsim_target::resume): Update to call resume_one_inferior.
14542
58920b5b
SM
145432020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14544
14545 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14546
4ec89149
PA
145472020-01-12 Pedro Alves <palves@redhat.com>
14548
14549 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14550 directly for the current inferior instead of
14551 discard_all_inferiors.
14552 (discard_all_inferiors): Delete.
14553
7c392d1d
TT
145542020-01-11 Tom Tromey <tom@tromey.com>
14555
14556 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14557 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14558 deprecated_safe_get_selected_frame.
14559
d9ebdab7
TBA
145602020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14561
14562 * inferior.c (print_inferior): Switch inferior before printing it.
14563
f3c469b9
PA
145642020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14565 Pedro Alves <palves@redhat.com>
14566
14567 * progspace-and-thread.c (switch_to_program_space_and_thread):
14568 Assert there's an inferior for PSPACE. Use
14569 switch_to_inferior_no_thread to switch the inferior too.
14570 * progspace.c (program_space::~program_space): Call
14571 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14572 (program_space::free_all_objfiles): Don't call clear_symtab_users
14573 here.
14574 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14575
65c574f6
PA
145762020-01-10 Pedro Alves <palves@redhat.com>
14577
14578 * NEWS: Mention multi-target debugging, "info connections", and
14579 "add-inferior -no-connection".
14580
2f4fcf00
PA
145812020-01-10 Pedro Alves <palves@redhat.com>
14582
14583 * infrun.c: Include "target-connection.h".
14584 (check_multi_target_resumption): New.
14585 (proceed): Call it.
14586 * target-connection.c (make_target_connection_string): Make
14587 extern.
14588 * target-connection.h (make_target_connection_string): Declare.
14589
121b3efd
PA
145902020-01-10 Pedro Alves <palves@redhat.com>
14591
14592 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14593 * inferior.c (uiout_field_connection): New function.
14594 (print_inferior): Add new "connection-id" column.
14595 (add_inferior_command): Show connection number/string of added
14596 inferior.
14597 * process-stratum-target.h
14598 (process_stratum_target::connection_string): New virtual method.
14599 (process_stratum_target::connection_number): New field.
14600 * remote.c (remote_target::connection_string): New override.
14601 * target-connection.c: New file.
14602 * target-connection.h: New file.
14603 * target.c (decref_target): Remove process_stratum targets from
14604 the connection list.
14605 (target_stack::push): Add process_stratum targets to the
14606 connection list.
14607
4f837581
PA
146082020-01-10 Pedro Alves <palves@redhat.com>
14609
14610 Revert:
14611 2016-04-12 Pedro Alves <palves@redhat.com>
14612 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14613 Remove references to name.
14614 * serial.h (struct serial) <name>: Delete.
14615
f4ec508e
PA
146162020-01-10 Pedro Alves <palves@redhat.com>
14617
14618 * gdbarch-selftests.c (register_to_value_test): Remove "target
14619 already pushed" check.
14620
5b6d1e4f
PA
146212020-01-10 Pedro Alves <palves@redhat.com>
14622 John Baldwin <jhb@FreeBSD.org>
14623
14624 * aarch64-linux-nat.c
14625 (aarch64_linux_nat_target::thread_architecture): Adjust.
14626 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14627 (task_command_1): Likewise.
14628 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14629 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14630 (aix_thread_target::store_registers)
14631 (aix_thread_target::thread_alive): Adjust.
14632 * amd64-fbsd-tdep.c: Include "inferior.h".
14633 (amd64fbsd_get_thread_local_address): Pass down target.
14634 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14635 thread's gdbarch instead of target_gdbarch.
14636 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14637 get_last_target_status.
14638 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14639 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14640 inferiors.
14641 (update_inserted_breakpoint_locations): Skip if inferiors with no
14642 execution.
14643 (update_global_location_list): When handling moribund locations,
14644 find representative inferior for location's pspace, and use thread
14645 count of its process_stratum target.
14646 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14647 * bsd-uthread.c (bsd_uthread_target::wait): Use
14648 as_process_stratum_target and adjust thread_change_ptid and
14649 add_thread calls.
14650 (bsd_uthread_target::update_thread_list): Use
14651 as_process_stratum_target and adjust find_thread_ptid,
14652 thread_change_ptid and add_thread calls.
14653 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14654 find_thread_ptid call.
14655 * corelow.c (add_to_thread_list): Adjust add_thread call.
14656 (core_target_open): Adjust add_thread_silent and thread_count
14657 calls.
14658 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14659 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14660 * event-top.c (async_disconnect): Pop targets from all inferiors.
14661 * exec.c (add_target_sections): Push exec target on all inferiors
14662 sharing the program space.
14663 (remove_target_sections): Remove the exec target from all
14664 inferiors sharing the program space.
14665 (exec_on_vfork): New.
14666 * exec.h (exec_on_vfork): Declare.
14667 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14668 Pass it down.
14669 (fbsd_nat_target::update_thread_list): Adjust.
14670 (fbsd_nat_target::resume): Adjust.
14671 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14672 down.
14673 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14674 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14675 get_thread_arch_regcache call.
14676 * fork-child.c (gdb_startup_inferior): Pass target down to
14677 startup_inferior and set_executing.
14678 * gdbthread.h (struct process_stratum_target): Forward declare.
14679 (add_thread, add_thread_silent, add_thread_with_info)
14680 (in_thread_list): Add process_stratum_target parameter.
14681 (find_thread_ptid(inferior*, ptid_t)): New overload.
14682 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14683 parameter.
14684 (all_threads()): Delete overload.
14685 (all_threads, all_non_exited_threads): Add process_stratum_target
14686 parameter.
14687 (all_threads_safe): Use brace initialization.
14688 (thread_count): Add process_stratum_target parameter.
14689 (set_resumed, set_running, set_stop_requested, set_executing)
14690 (threads_are_executing, finish_thread_state): Add
14691 process_stratum_target parameter.
14692 (switch_to_thread): Use is_current_thread.
14693 * i386-fbsd-tdep.c: Include "inferior.h".
14694 (i386fbsd_get_thread_local_address): Pass down target.
14695 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14696 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14697 have_inferiors check.
14698 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14699 (inf_ptrace_target::attach): Adjust.
14700 * infcall.c (run_inferior_call): Adjust.
14701 * infcmd.c (run_command_1): Pass target to
14702 scoped_finish_thread_state.
14703 (proceed_thread_callback): Skip inferiors with no execution.
14704 (continue_command): Rename 'all_threads' local to avoid hiding
14705 'all_threads' function. Adjust get_last_target_status call.
14706 (prepare_one_step): Adjust set_running call.
14707 (signal_command): Use user_visible_resume_target. Compare thread
14708 pointers instead of inferior_ptid.
14709 (info_program_command): Adjust to pass down target.
14710 (attach_command): Mark target's 'thread_executing' flag.
14711 (stop_current_target_threads_ns): New, factored out from ...
14712 (interrupt_target_1): ... this. Switch inferior before making
14713 target calls.
14714 * inferior-iter.h
14715 (struct all_inferiors_iterator, struct all_inferiors_range)
14716 (struct all_inferiors_safe_range)
14717 (struct all_non_exited_inferiors_range): Filter on
14718 process_stratum_target too. Remove explicit.
14719 * inferior.c (inferior::inferior): Push dummy target on target
14720 stack.
14721 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14722 Add process_stratum_target parameter, and pass it down.
14723 (have_live_inferiors): Adjust.
14724 (switch_to_inferior_and_push_target): New.
14725 (add_inferior_command, clone_inferior_command): Handle
14726 "-no-connection" parameter. Use
14727 switch_to_inferior_and_push_target.
14728 (_initialize_inferior): Mention "-no-connection" option in
14729 the help of "add-inferior" and "clone-inferior" commands.
14730 * inferior.h: Include "process-stratum-target.h".
14731 (interrupt_target_1): Use bool.
14732 (struct inferior) <push_target, unpush_target, target_is_pushed,
14733 find_target_beneath, top_target, process_target, target_at,
14734 m_stack>: New.
14735 (discard_all_inferiors): Delete.
14736 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14737 (all_inferiors, all_non_exited_inferiors): Add
14738 process_stratum_target parameter.
14739 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14740 (target_last_proc_target): New global.
14741 (follow_fork_inferior): Push target on new inferior. Pass target
14742 to add_thread_silent. Call exec_on_vfork. Handle target's
14743 reference count.
14744 (follow_fork): Adjust get_last_target_status call. Also consider
14745 target.
14746 (follow_exec): Push target on new inferior.
14747 (struct execution_control_state) <target>: New field.
14748 (user_visible_resume_target): New.
14749 (do_target_resume): Call target_async.
14750 (resume_1): Set target's threads_executing flag. Consider resume
14751 target.
14752 (commit_resume_all_targets): New.
14753 (proceed): Also consider resume target. Skip threads of inferiors
14754 with no execution. Commit resumtion in all targets.
14755 (start_remote): Pass current inferior to wait_for_inferior.
14756 (infrun_thread_stop_requested): Consider target as well. Pass
14757 thread_info pointer to clear_inline_frame_state instead of ptid.
14758 (infrun_thread_thread_exit): Consider target as well.
14759 (random_pending_event_thread): New inferior parameter. Use it.
14760 (do_target_wait): Rename to ...
14761 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14762 down.
14763 (threads_are_resumed_pending_p, do_target_wait): New.
14764 (prepare_for_detach): Adjust calls.
14765 (wait_for_inferior): New inferior parameter. Handle it. Use
14766 do_target_wait_1 instead of do_target_wait.
14767 (fetch_inferior_event): Adjust. Switch to representative
14768 inferior. Pass target down.
14769 (set_last_target_status): Add process_stratum_target parameter.
14770 Save target in global.
14771 (get_last_target_status): Add process_stratum_target parameter and
14772 handle it.
14773 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14774 (context_switch): Check inferior_ptid == null_ptid before calling
14775 inferior_thread().
14776 (get_inferior_stop_soon): Pass down target.
14777 (wait_one): Rename to ...
14778 (poll_one_curr_target): ... this.
14779 (struct wait_one_event): New.
14780 (wait_one): New.
14781 (stop_all_threads): Adjust.
14782 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14783 event's target.
14784 (switch_back_to_stepped_thread): Also consider target.
14785 (print_stop_event): Update.
14786 (normal_stop): Update. Also consider the resume target.
14787 * infrun.h (wait_for_inferior): Remove declaration.
14788 (user_visible_resume_target): New declaration.
14789 (get_last_target_status, set_last_target_status): New
14790 process_stratum_target parameter.
14791 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14792 process_stratum_target parameter, and use it.
14793 (clear_inline_frame_state (thread_info*)): New.
14794 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14795 process_stratum_target parameter.
14796 (clear_inline_frame_state (thread_info*)): Declare.
14797 * linux-fork.c (delete_checkpoint_command): Pass target down to
14798 find_thread_ptid.
14799 (checkpoint_command): Adjust.
14800 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14801 instead of just tweaking inferior_ptid.
14802 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14803 (exit_lwp): Pass target down to find_thread_ptid.
14804 (attach_proc_task_lwp_callback): Pass target down to
14805 add_thread/set_running/set_executing.
14806 (linux_nat_target::attach): Pass target down to
14807 thread_change_ptid.
14808 (get_detach_signal): Pass target down to find_thread_ptid.
14809 Consider last target status's target.
14810 (linux_resume_one_lwp_throw, resume_lwp)
14811 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14812 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14813 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14814 (linux_nat_target::async_wait_fd): New.
14815 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14816 target down.
14817 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14818 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14819 * linux-thread-db.c (struct thread_db_info::process_target): New
14820 field.
14821 (add_thread_db_info): Save target.
14822 (get_thread_db_info): New process_stratum_target parameter. Also
14823 match target.
14824 (delete_thread_db_info): New process_stratum_target parameter.
14825 Also match target.
14826 (thread_from_lwp): Adjust to pass down target.
14827 (thread_db_notice_clone): Pass down target.
14828 (check_thread_db_callback): Pass down target.
14829 (try_thread_db_load_1): Always push the thread_db target.
14830 (try_thread_db_load, record_thread): Pass target down.
14831 (thread_db_target::detach): Pass target down. Always unpush the
14832 thread_db target.
14833 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14834 target down. Always unpush the thread_db target.
14835 (find_new_threads_callback, thread_db_find_new_threads_2)
14836 (thread_db_target::update_thread_list): Pass target down.
14837 (thread_db_target::pid_to_str): Pass current inferior down.
14838 (thread_db_target::get_thread_local_address): Pass target down.
14839 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14840 target down.
14841 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14842 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14843 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14844 (procfs_init_inferior): Rename to ...
14845 (procfs_target::procfs_init_inferior): ... this and adjust.
14846 (procfs_target::create_inferior, procfs_notice_thread)
14847 (procfs_do_thread_registers): Adjust.
14848 * ppc-fbsd-tdep.c: Include "inferior.h".
14849 (ppcfbsd_get_thread_local_address): Pass down target.
14850 * proc-service.c (ps_xfer_memory): Switch current inferior and
14851 program space as well.
14852 (get_ps_regcache): Pass target down.
14853 * process-stratum-target.c
14854 (process_stratum_target::thread_address_space)
14855 (process_stratum_target::thread_architecture): Pass target down.
14856 * process-stratum-target.h
14857 (process_stratum_target::threads_executing): New field.
14858 (as_process_stratum_target): New.
14859 * ravenscar-thread.c
14860 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14861 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14862 down.
14863 * record-btrace.c (record_btrace_target::info_record): Adjust.
14864 (record_btrace_target::record_method)
14865 (record_btrace_target::record_is_replaying)
14866 (record_btrace_target::fetch_registers)
14867 (get_thread_current_frame_id, record_btrace_target::resume)
14868 (record_btrace_target::wait, record_btrace_target::stop): Pass
14869 target down.
14870 * record-full.c (record_full_wait_1): Switch to event thread.
14871 Pass target down.
14872 * regcache.c (regcache::regcache)
14873 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14874 process_stratum_target parameter and handle it.
14875 (current_thread_target): New global.
14876 (get_thread_regcache): Add process_stratum_target parameter and
14877 handle it. Switch inferior before calling target method.
14878 (get_thread_regcache): Pass target down.
14879 (get_thread_regcache_for_ptid): Pass target down.
14880 (registers_changed_ptid): Add process_stratum_target parameter and
14881 handle it.
14882 (registers_changed_thread, registers_changed): Pass target down.
14883 (test_get_thread_arch_aspace_regcache): New.
14884 (current_regcache_test): Define a couple local test_target_ops
14885 instances and use them for testing.
14886 (readwrite_regcache): Pass process_stratum_target parameter.
14887 (cooked_read_test, cooked_write_test): Pass mock_target down.
14888 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14889 (get_thread_arch_aspace_regcache): Add process_stratum_target
14890 parameter.
14891 (regcache::target): New method.
14892 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14893 (regcache::registers_changed_ptid): Add process_stratum_target
14894 parameter.
14895 (regcache::m_target): New field.
14896 (registers_changed_ptid): Add process_stratum_target parameter.
14897 * remote.c (remote_state::supports_vCont_probed): New field.
14898 (remote_target::async_wait_fd): New method.
14899 (remote_unpush_and_throw): Add remote_target parameter.
14900 (get_current_remote_target): Adjust.
14901 (remote_target::remote_add_inferior): Push target.
14902 (remote_target::remote_add_thread)
14903 (remote_target::remote_notice_new_inferior)
14904 (get_remote_thread_info): Pass target down.
14905 (remote_target::update_thread_list): Skip threads of inferiors
14906 bound to other targets. (remote_target::close): Don't discard
14907 inferiors. (remote_target::add_current_inferior_and_thread)
14908 (remote_target::process_initial_stop_replies)
14909 (remote_target::start_remote)
14910 (remote_target::remote_serial_quit_handler): Pass down target.
14911 (remote_target::remote_unpush_target): New remote_target
14912 parameter. Unpush the target from all inferiors.
14913 (remote_target::remote_unpush_and_throw): New remote_target
14914 parameter. Pass it down.
14915 (remote_target::open_1): Check whether the current inferior has
14916 execution instead of checking whether any inferior is live. Pass
14917 target down.
14918 (remote_target::remote_detach_1): Pass down target. Use
14919 remote_unpush_target.
14920 (extended_remote_target::attach): Pass down target.
14921 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14922 (remote_target::append_resumption): Pass down target.
14923 (remote_target::append_pending_thread_resumptions)
14924 (remote_target::remote_resume_with_hc, remote_target::resume)
14925 (remote_target::commit_resume): Pass down target.
14926 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14927 (remote_target::interrupt_query)
14928 (remote_target::remove_new_fork_children)
14929 (remote_target::check_pending_events_prevent_wildcard_vcont)
14930 (remote_target::remote_parse_stop_reply)
14931 (remote_target::process_stop_reply): Pass down target.
14932 (first_remote_resumed_thread): New remote_target parameter. Pass
14933 it down.
14934 (remote_target::wait_as): Pass down target.
14935 (unpush_and_perror): New remote_target parameter. Pass it down.
14936 (remote_target::readchar, remote_target::remote_serial_write)
14937 (remote_target::getpkt_or_notif_sane_1)
14938 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14939 down target.
14940 (remote_target::mourn_inferior): Pass down target. Use
14941 remote_unpush_target.
14942 (remote_target::core_of_thread)
14943 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14944 (remote_target::pid_to_exec_file)
14945 (remote_target::thread_handle_to_thread_info): Pass down target.
14946 (remote_target::async_wait_fd): New.
14947 * riscv-fbsd-tdep.c: Include "inferior.h".
14948 (riscv_fbsd_get_thread_local_address): Pass down target.
14949 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14950 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14951 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14952 Adjust.
14953 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14954 * solib-svr4.c (enable_break): Pass down target.
14955 * spu-multiarch.c (parse_spufs_run): Pass down target.
14956 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14957 * target-delegates.c: Regenerate.
14958 * target.c (g_target_stack): Delete.
14959 (current_top_target): Return the current inferior's top target.
14960 (target_has_execution_1): Refer to the passed-in inferior's top
14961 target.
14962 (target_supports_terminal_ours): Check whether the initial
14963 inferior was already created.
14964 (decref_target): New.
14965 (target_stack::push): Incref/decref the target.
14966 (push_target, push_target, unpush_target): Adjust.
14967 (target_stack::unpush): Defref target.
14968 (target_is_pushed): Return bool. Adjust to refer to the current
14969 inferior's target stack.
14970 (dispose_inferior): Delete, and inline parts ...
14971 (target_preopen): ... here. Only dispose of the current inferior.
14972 (target_detach): Hold strong target reference while detaching.
14973 Pass target down.
14974 (target_thread_name): Add assertion.
14975 (target_resume): Pass down target.
14976 (target_ops::beneath, find_target_at): Adjust to refer to the
14977 current inferior's target stack.
14978 (get_dummy_target): New.
14979 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14980 has a thread running.
14981 (initialize_targets): Rename to ...
14982 (_initialize_target): ... this.
14983 * target.h: Include "gdbsupport/refcounted-object.h".
14984 (struct target_ops): Inherit refcounted_object.
14985 (target_ops::shortname, target_ops::longname): Make const.
14986 (target_ops::async_wait_fd): New method.
14987 (decref_target): Declare.
14988 (struct target_ops_ref_policy): New.
14989 (target_ops_ref): New typedef.
14990 (get_dummy_target): Declare function.
14991 (target_is_pushed): Return bool.
14992 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14993 (all_matching_threads_iterator::all_matching_threads_iterator):
14994 Handle filter target.
14995 * thread-iter.h (struct all_matching_threads_iterator, struct
14996 all_matching_threads_range, class all_non_exited_threads_range):
14997 Filter by target too. Remove explicit.
14998 * thread.c (threads_executing): Delete.
14999 (inferior_thread): Pass down current inferior.
15000 (clear_thread_inferior_resources): Pass down thread pointer
15001 instead of ptid_t.
15002 (add_thread_silent, add_thread_with_info, add_thread): Add
15003 process_stratum_target parameter. Use it for thread and inferior
15004 searches.
15005 (is_current_thread): New.
15006 (thread_info::deletable): Use it.
15007 (find_thread_ptid, thread_count, in_thread_list)
15008 (thread_change_ptid, set_resumed, set_running): New
15009 process_stratum_target parameter. Pass it down.
15010 (set_executing): New process_stratum_target parameter. Pass it
15011 down. Adjust reference to 'threads_executing'.
15012 (threads_are_executing): New process_stratum_target parameter.
15013 Adjust reference to 'threads_executing'.
15014 (set_stop_requested, finish_thread_state): New
15015 process_stratum_target parameter. Pass it down.
15016 (switch_to_thread): Also match inferior.
15017 (switch_to_thread): New process_stratum_target parameter. Pass it
15018 down.
15019 (update_threads_executing): Reimplement.
15020 * top.c (quit_force): Pop targets from all inferior.
15021 (gdb_init): Don't call initialize_targets.
15022 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15023 Declare.
15024 (windows_add_thread, windows_delete_thread): Adjust.
15025 (get_windows_debug_event): Rename to ...
15026 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15027 * tracefile-tfile.c (tfile_target_open): Pass down target.
15028 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15029 Forward declare.
15030 (switch_to_thread): Add process_stratum_target parameter.
15031 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15032 parameter. Use it.
15033 (mi_on_resume): Pass target down.
15034 * nat/fork-inferior.c (startup_inferior): Add
15035 process_stratum_target parameter. Pass it down.
15036 * nat/fork-inferior.h (startup_inferior): Add
15037 process_stratum_target parameter.
15038 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15039
75c6c844
PA
150402020-01-10 Pedro Alves <palves@redhat.com>
15041
15042 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15043 directly. Instead find the first thread in the thread list and
15044 use switch_to_thread.
15045
78f2c40a
PA
150462020-01-10 Pedro Alves <palves@redhat.com>
15047
15048 * remote.c (remote_target::remote_add_inferior): Don't bind a
15049 process to the current inferior if the current inferior is already
15050 bound to a process.
15051
e7af6c70
TBA
150522020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15053 Pedro Alves <palves@redhat.com>
15054
15055 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15056 If no process is specified, return null_ptid instead of
15057 inferior_ptid.
15058 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15059 TARGET_WAITKIND_SIGNALLED with no pid.
15060
31ba933e
PA
150612020-01-10 Pedro Alves <palves@redhat.com>
15062
15063 * remote.c (first_remote_resumed_thread): New.
15064 (remote_target::wait_as): Use it as default event_ptid instead of
15065 inferior_ptid.
15066
735fc2ca
PA
150672020-01-10 Pedro Alves <palves@redhat.com>
15068
15069 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15070
c17e02e1
PA
150712020-01-10 Pedro Alves <palves@redhat.com>
15072
15073 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15074 not -1.
15075
ab1ddbcf
PA
150762020-01-10 Pedro Alves <palves@redhat.com>
15077
15078 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15079 ptid to get_last_target_status.
15080 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15081 ptid to get_last_target_status.
15082 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15083 get_last_target_status.
15084 (info_program_command): Don't pass a target_waitstatus to
15085 get_last_target_status.
15086 * infrun.c (init_wait_for_inferior): Use
15087 nullify_last_target_wait_ptid.
15088 (get_last_target_status): Handle nullptr arguments.
15089 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15090 (print_stop_event): Don't pass a ptid to get_last_target_status.
15091 (normal_stop): Don't pass a ptid to get_last_target_status.
15092 * infrun.h (get_last_target_status, set_last_target_status): Move
15093 comments here and update.
15094 (nullify_last_target_wait_ptid): Declare.
15095 * linux-fork.c (fork_load_infrun_state): Remove local extern
15096 declaration of nullify_last_target_wait_ptid.
15097 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15098 to get_last_target_status.
15099
f3f8ece4
PA
151002020-01-10 Pedro Alves <palves@redhat.com>
15101
15102 * gdbthread.h (scoped_restore_current_thread)
15103 <dont_restore, restore, m_dont_restore>: Declare.
15104 * thread.c (thread_alive): Add assertion. Return bool.
15105 (switch_to_thread_if_alive): New.
15106 (prune_threads): Switch inferior/thread.
15107 (print_thread_info_1): Switch thread before calling target methods.
15108 (scoped_restore_current_thread::restore): New, factored out from
15109 ...
15110 (scoped_restore_current_thread::~scoped_restore_current_thread):
15111 ... this.
15112 (scoped_restore_current_thread::scoped_restore_current_thread):
15113 Add assertion.
15114 (thread_apply_all_command, thread_select): Use
15115 switch_to_thread_if_alive.
15116 * infrun.c (proceed, restart_threads, handle_signal_stop)
15117 (switch_back_to_stepped_thread): Switch current thread before
15118 calling target methods.
15119
db2d40f7
PA
151202020-01-10 Pedro Alves <palves@redhat.com>
15121
15122 * inferior.c (switch_to_inferior_no_thread): New function,
15123 factored out from ...
15124 (inferior_command): ... here.
15125 * inferior.h (switch_to_inferior_no_thread): Declare.
15126 * mi/mi-main.c (run_one_inferior): Use
15127 switch_to_inferior_no_thread.
15128
bd420a2d
PA
151292020-01-10 Pedro Alves <palves@redhat.com>
15130
15131 * infcmd.c (kill_command): Remove dead code.
15132
ddf5db90
PA
151332020-01-10 Pedro Alves <palves@redhat.com>
15134
15135 * remote.c (remote_target::mourn_inferior): No longer check
15136 whether the target is running.
15137
5018ce90
PA
151382020-01-10 Pedro Alves <palves@redhat.com>
15139
15140 * corelow.c (core_target::has_execution): Change parameter type to
15141 inferior pointer.
15142 * inferior.c (number_of_live_inferiors): Use
15143 inferior::has_execution instead of target_has_execution_1.
15144 * inferior.h (inferior::has_execution): New.
15145 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15146 inferior::has_execution instead of target_has_execution_1.
15147 * process-stratum-target.c
15148 (process_stratum_target::has_execution): Change parameter type to
15149 inferior pointer. Check the inferior's PID instead of
15150 inferior_ptid.
15151 * process-stratum-target.h
15152 (process_stratum_target::has_execution): Change parameter type to
15153 inferior pointer.
15154 * record-full.c (record_full_core_target::has_execution): Change
15155 parameter type to inferior pointer.
15156 * target.c (target_has_execution_1): Change parameter type to
15157 inferior pointer.
15158 (target_has_execution_current): Adjust.
15159 * target.h (target_ops::has_execution): Change parameter type to
15160 inferior pointer.
15161 (target_has_execution_1): Change parameter type to inferior
15162 pointer. Change return type to bool.
15163 * tracefile.h (tracefile_target::has_execution): Change parameter
15164 type to inferior pointer.
15165
74375d18
PA
151662020-01-10 Pedro Alves <palves@redhat.com>
15167
15168 * exceptions.c (print_flush): Remove current_top_target() check.
15169
acdf84a6
PA
151702020-01-10 Pedro Alves <palves@redhat.com>
15171
15172 * remote.c (show_remote_exec_file): Show the current inferior's
15173 exec-file instead of the command variable's value.
15174
ec506636
PA
151752020-01-10 Pedro Alves <palves@redhat.com>
15176
15177 * record-full.c (record_full_resume_ptid): New global.
15178 (record_full_target::resume): Set it.
15179 (record_full_wait_1): Use record_full_resume_ptid instead of
15180 inferior_ptid.
15181
873657b9
PA
151822020-01-10 Pedro Alves <palves@redhat.com>
15183
15184 * gdbthread.h (scoped_restore_current_thread)
15185 <dont_restore, restore, m_dont_restore>: Declare.
15186 * thread.c (thread_alive): Add assertion. Return bool.
15187 (switch_to_thread_if_alive): New.
15188 (prune_threads): Switch inferior/thread.
15189 (print_thread_info_1): Switch thread before calling target methods.
15190 (scoped_restore_current_thread::restore): New, factored out from
15191 ...
15192 (scoped_restore_current_thread::~scoped_restore_current_thread):
15193 ... this.
15194 (scoped_restore_current_thread::scoped_restore_current_thread):
15195 Add assertion.
15196 (thread_apply_all_command, thread_select): Use
15197 switch_to_thread_if_alive.
15198
7f0ae84c
GB
151992020-01-10 George Barrett <bob@bob131.so>
15200
15201 * stap-probe.c (stap_modify_semaphore): Don't check for null
15202 semaphores.
15203 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15204 for null semaphores.
15205
f5a7c406
AB
152062020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15207
15208 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15209 all source windows, and maintain horizontal scroll status while
15210 doing so.
15211
9ae6bf64
TT
152122020-01-09 Tom Tromey <tom@tromey.com>
15213
15214 PR tui/18932:
15215 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15216 update_source_window, not print_source_lines.
15217
b2efe70c
AB
152182020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15219
15220 * tui/tui.c (tui_enable): Register tui hooks after calling
15221 tui_display_main.
15222
5f23a082
CB
152232020-01-09 Christian Biesinger <cbiesinger@google.com>
15224
15225 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15226
3061113b
SM
152272020-01-08 Simon Marchi <simon.marchi@efficios.com>
15228
15229 * thread.c (print_thread_info_1): Fix indentation.
15230
57d75002
CB
152312020-01-09 Christian Biesinger <cbiesinger@google.com>
15232
15233 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15234 unique_xmalloc_ptr outside the if to always free the demangled name.
15235
6a053cb1
TT
152362020-01-08 Tom Tromey <tromey@adacore.com>
15237
15238 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15239 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15240 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15241 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15242 Remove.
15243 (section_offsets): New typedef.
15244 * symtab.c (fixup_section, get_msymbol_address): Update.
15245 * symmisc.c (dump_msymbols): Update.
15246 * symfile.h (relative_addr_info_to_section_offsets)
15247 (symfile_map_offsets_to_segments): Update.
15248 * symfile.c (build_section_addr_info_from_objfile)
15249 (init_objfile_sect_indices): Update.
15250 (struct place_section_arg): Change type of "offsets".
15251 (place_section): Update.
15252 (relative_addr_info_to_section_offsets): Change type of
15253 "section_offsets". Remove "num_sections" parameter.
15254 (default_symfile_offsets, syms_from_objfile_1)
15255 (set_objfile_default_section_offset): Update.
15256 (reread_symbols): No need to preserve section offsets by hand.
15257 (symfile_map_offsets_to_segments): Change type of "offsets".
15258 * stap-probe.c (relocate_address): Update.
15259 * stabsread.h (process_one_symbol): Update.
15260 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15261 (solib_target_relocate_section_addresses): Update.
15262 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15263 Update.
15264 * solib-frv.c (frv_relocate_main_executable): Update.
15265 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15266 * solib-aix.c (solib_aix_get_section_offsets): Change return
15267 type.
15268 (solib_aix_solib_create_inferior_hook): Update.
15269 * remote.c (remote_target::get_offsets): Update.
15270 * psymtab.c (find_pc_sect_psymtab): Update.
15271 * psympriv.h (struct partial_symbol) <address, text_low,
15272 text_high>: Update.
15273 * objfiles.h (obj_section_offset): Update.
15274 (struct objfile) <section_offsets>: Change type.
15275 <num_sections>: Remove.
15276 (objfile_relocate): Update.
15277 * objfiles.c (entry_point_address_query): Update
15278 (relocate_one_symbol): Change type of "section_offsets".
15279 (objfile_relocate1, objfile_relocate1): Change type of
15280 "new_offsets".
15281 (objfile_rebase1): Update.
15282 * mipsread.c (mipscoff_symfile_read): Update.
15283 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15284 parameter.
15285 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15286 (parse_external, psymtab_to_symtab_1): Update.
15287 * machoread.c (macho_symfile_offsets): Update.
15288 * ia64-tdep.c (ia64_find_unwind_table): Update.
15289 * hppa-tdep.c (read_unwind_info): Update.
15290 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15291 * dwarf2read.c (create_addrmap_from_index)
15292 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15293 (process_psymtab_comp_unit_reader, add_partial_symbol)
15294 (add_partial_subprogram, process_full_comp_unit)
15295 (read_file_scope, read_func_scope, read_lexical_block_scope)
15296 (read_call_site_scope, dwarf2_rnglists_process)
15297 (dwarf2_ranges_process, dwarf2_ranges_read)
15298 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15299 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15300 Update.
15301 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15302 Update.
15303 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15304 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15305 (process_one_symbol): Change type of "section_offsets".
15306 * ctfread.c (get_objfile_text_range): Update.
15307 * coffread.c (coff_symtab_read, enter_linenos)
15308 (process_coff_symbol): Update.
15309 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15310 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15311
456e800a
TT
153122020-01-08 Tom Tromey <tromey@adacore.com>
15313
15314 * dwarf2read.c (parse_macro_definition): Use std::string.
15315 (parse_macro_definition): Likewise.
15316
6dfa2fc2
TT
153172020-01-08 Tom Tromey <tromey@adacore.com>
15318
15319 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15320 (ATTR_ALLOC_CHUNK): Remove.
15321
421d1616
TT
153222020-01-08 Tom Tromey <tromey@adacore.com>
15323
15324 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15325
43816ebc
TT
153262020-01-08 Tom Tromey <tromey@adacore.com>
15327
15328 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15329 (dwarf2_compute_name, open_dwo_file): Likewise.
15330 (process_enumeration_scope): Use std::vector.
15331 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15332 (partial_die_info::fixup, dwarf2_start_subfile)
15333 (guess_full_die_structure_name, dwarf2_name): Likewise.
15334 (determine_prefix): Update.
15335 (guess_full_die_structure_name): Make return type const.
15336 (partial_die_full_name): Return unique_xmalloc_ptr.
15337 (DW_FIELD_ALLOC_CHUNK): Remove.
15338
4212d509
TT
153392020-01-07 Tom Tromey <tromey@adacore.com>
15340
15341 PR build/24937:
15342 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15343
06a6207a
JT
153442020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15345
15346 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15347
153d79c4
AB
153482020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15349
15350 * stack.c (print_frame_info): Move disassemble_next_line code
15351 inside source_print block.
15352
66182876
EZ
153532020-01-06 Eli Zaretskii <eliz@gnu.org>
15354
15355 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15356 gdb/signals.h, as we are now using native signal symbols.
15357
cbfa8581
SV
153582020-01-06 Shahab Vahedi <shahab@synopsys.com>
15359
15360 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15361 overflow by an early check of content vs threshold.
aac66a4c 15362 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15363 Likewise.
15364
3f602821
EZ
153652020-01-06 Eli Zaretskii <eliz@gnu.org>
15366
15367 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15368
a08c904d
JT
153692020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15370
15371 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15372 export table if no section contains it's RVA.
15373
89a65580
EZ
153742020-01-06 Eli Zaretskii <eliz@gnu.org>
15375
15376 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15377
8b7fcda2
HD
153782020-01-06 Hannes Domani <ssbssa@yahoo.de>
15379
15380 * source.c (print_source_lines_base): Set last_line_listed.
15381
a61b4f69
SV
153822020-01-06 Shahab Vahedi <shahab@synopsys.com>
15383
15384 * tui/tui-disasm.c: Remove trailing spaces.
15385
559e7e50
EZ
153862020-01-06 Eli Zaretskii <eliz@gnu.org>
15387 Pedro Alves <palves@redhat.com>
15388
15389 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15390 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15391 (windows_gdb_signal_to_target): New function, uses the above
15392 enumeration to convert GDB internal signal codes to equivalent
15393 Windows codes.
15394 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15395 * windows-nat.c: Include "gdb_wait.h".
15396 (get_windows_debug_event): Extract the fatal exception from the
15397 exit status and convert to the equivalent Posix signal number.
15398 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15399 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15400 * gdbsupport/gdb_wait.c: New file, implements
15401 windows_status_to_termsig.
15402 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15403 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15404
f2302a34
AB
154052020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15406
15407 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15408 show_layout.
15409
6a5206eb
LM
154102020-01-05 Luis Machado <luis.machado@linaro.org>
15411
15412 * aarch64-linux-nat.c
15413 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15414 and bfd_mach_aarch64.
15415
6ec1d75e
PW
154162020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15417
15418 * ui-file.c (stdio_file::can_emit_style_escape)
15419 (tee_file::can_emit_style_escape): Ensure style is used also on
15420 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15421 to gdb_stdout.
15422 * main.c (set_gdb_data_directory): Use file style to output the
15423 warning that the given pathname is not a directory.
15424 * top.c (show_history_filename, gdb_safe_append_history)
15425 (show_gdb_datadir): Use file style.
15426
44f81a76
HD
154272020-01-03 Hannes Domani <ssbssa@yahoo.de>
15428
15429 * solib-target.c (struct lm_info_target):
15430 Change offsets to be a unique_xmalloc_ptr.
15431 (solib_target_relocate_section_addresses): Update.
15432
25057eb0
HD
154332020-01-03 Hannes Domani <ssbssa@yahoo.de>
15434
15435 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15436
6e2118f5
BE
154372020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15438
15439 * MAINTAINERS (Write After Approval): Add myself.
15440
8133c7dc
LM
154412020-01-02 Luis Machado <luis.machado@linaro.org>
15442
15443 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15444 Cell BE architecture.
15445 * target.h (struct target_ops) <thread_architecture>: Likewise.
15446
48189bec
HD
154472020-01-01 Hannes Domani <ssbssa@yahoo.de>
15448
15449 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15450
ead1063b
HD
154512020-01-01 Hannes Domani <ssbssa@yahoo.de>
15452
15453 * MAINTAINERS (Write After Approval): Add myself.
15454
e5d78223
JB
154552020-01-01 Joel Brobecker <brobecker@adacore.com>
15456
15457 * gdbarch.sh: Update copyright year range of generated files.
15458
b811d2c2
JB
154592020-01-01 Joel Brobecker <brobecker@adacore.com>
15460
15461 Update copyright year range in all GDB files.
15462
5f4def5c
JB
154632020-01-01 Joel Brobecker <brobecker@adacore.com>
15464
15465 * copyright.py: Convert to Python 3.
15466
51fd4002
JB
154672020-01-01 Joel Brobecker <brobecker@adacore.com>
15468
15469 * copyright.py: Adapt after move of gnulib directory from gdb
15470 directory to toplevel directory.
15471
5fb651f2
JB
154722020-01-01 Joel Brobecker <brobecker@adacore.com>
15473
15474 * copyright.py (main): Exit if run from the wrong directory.
15475
5dd8bf88
JB
154762020-01-01 Joel Brobecker <brobecker@adacore.com>
15477
15478 * top.c (print_gdb_version): Change copyright year to 2020.
15479
9f71dacb 154802020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15481
9f71dacb 15482 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15483
9f71dacb 15484For older changes see ChangeLog-2019.
c906108c
SS
15485\f
15486Local Variables:
15487mode: change-log
15488left-margin: 8
15489fill-column: 74
15490version-control: never
57da7796 15491coding: utf-8
c906108c 15492End:
This page took 3.947985 seconds and 4 git commands to generate.